diff options
author | chriseth <c@ethdev.com> | 2015-11-19 00:12:39 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-11-19 00:12:39 +0800 |
commit | 0cf8d022ae7d2e2da347347fdc76ba9529149c35 (patch) | |
tree | 0193a0e120ed554566e4d11c4af50bce4bf84adb /libsolidity/analysis | |
parent | b4e666ccf4fe39b0a1fc909b61daf6dc39e77fc4 (diff) | |
download | dexon-solidity-0cf8d022ae7d2e2da347347fdc76ba9529149c35.tar dexon-solidity-0cf8d022ae7d2e2da347347fdc76ba9529149c35.tar.gz dexon-solidity-0cf8d022ae7d2e2da347347fdc76ba9529149c35.tar.bz2 dexon-solidity-0cf8d022ae7d2e2da347347fdc76ba9529149c35.tar.lz dexon-solidity-0cf8d022ae7d2e2da347347fdc76ba9529149c35.tar.xz dexon-solidity-0cf8d022ae7d2e2da347347fdc76ba9529149c35.tar.zst dexon-solidity-0cf8d022ae7d2e2da347347fdc76ba9529149c35.zip |
Addmod and mulmod.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/GlobalContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/analysis/GlobalContext.cpp b/libsolidity/analysis/GlobalContext.cpp index 20f8272f..d519934d 100644 --- a/libsolidity/analysis/GlobalContext.cpp +++ b/libsolidity/analysis/GlobalContext.cpp @@ -40,6 +40,10 @@ m_magicVariables(vector<shared_ptr<MagicVariableDeclaration const>>{make_shared< make_shared<MagicVariableDeclaration>("now", make_shared<IntegerType>(256)), make_shared<MagicVariableDeclaration>("suicide", make_shared<FunctionType>(strings{"address"}, strings{}, FunctionType::Location::Suicide)), + make_shared<MagicVariableDeclaration>("addmod", + make_shared<FunctionType>(strings{"uint256", "uint256", "uint256"}, strings{"uint256"}, FunctionType::Location::AddMod)), + make_shared<MagicVariableDeclaration>("mulmod", + make_shared<FunctionType>(strings{"uint256", "uint256", "uint256"}, strings{"uint256"}, FunctionType::Location::MulMod)), make_shared<MagicVariableDeclaration>("sha3", make_shared<FunctionType>(strings(), strings{"bytes32"}, FunctionType::Location::SHA3, true)), make_shared<MagicVariableDeclaration>("log0", |