From 0cf8d022ae7d2e2da347347fdc76ba9529149c35 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 18 Nov 2015 17:12:39 +0100 Subject: Addmod and mulmod. --- libsolidity/analysis/GlobalContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libsolidity/analysis') 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>{make_shared< make_shared("now", make_shared(256)), make_shared("suicide", make_shared(strings{"address"}, strings{}, FunctionType::Location::Suicide)), + make_shared("addmod", + make_shared(strings{"uint256", "uint256", "uint256"}, strings{"uint256"}, FunctionType::Location::AddMod)), + make_shared("mulmod", + make_shared(strings{"uint256", "uint256", "uint256"}, strings{"uint256"}, FunctionType::Location::MulMod)), make_shared("sha3", make_shared(strings(), strings{"bytes32"}, FunctionType::Location::SHA3, true)), make_shared("log0", -- cgit