diff options
author | Christian <c@ethdev.com> | 2014-12-12 00:34:47 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-12 00:48:44 +0800 |
commit | 7ad8f94a7e4990de96f23b794f454dc87f94f813 (patch) | |
tree | eff79e0fe937b0f0fa2f7dfc25c4da0f2769cbd4 /solidityCompiler.cpp | |
parent | c68d1c62e0fbf0b656ced8c0aab9017370c1ed33 (diff) | |
download | dexon-solidity-7ad8f94a7e4990de96f23b794f454dc87f94f813.tar.gz dexon-solidity-7ad8f94a7e4990de96f23b794f454dc87f94f813.tar.zst dexon-solidity-7ad8f94a7e4990de96f23b794f454dc87f94f813.zip |
Do not add at the end of the function selector "loop".
Diffstat (limited to 'solidityCompiler.cpp')
-rw-r--r-- | solidityCompiler.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/solidityCompiler.cpp b/solidityCompiler.cpp index 004740b5..eae8f314 100644 --- a/solidityCompiler.cpp +++ b/solidityCompiler.cpp @@ -87,7 +87,7 @@ BOOST_AUTO_TEST_CASE(smoke_test) "}\n"; bytes code = compileContract(sourceCode); - unsigned boilerplateSize = 42; + unsigned boilerplateSize = 40; bytes expectation({byte(Instruction::JUMPDEST), byte(Instruction::PUSH1), 0x0, // initialize local variable x byte(Instruction::PUSH1), 0x2, @@ -107,8 +107,8 @@ BOOST_AUTO_TEST_CASE(different_argument_numbers) "}\n"; bytes code = compileContract(sourceCode); - unsigned shift = 70; - unsigned boilerplateSize = 83; + unsigned shift = 68; + unsigned boilerplateSize = 81; bytes expectation({byte(Instruction::JUMPDEST), byte(Instruction::PUSH1), 0x0, // initialize return variable d byte(Instruction::DUP3), @@ -158,8 +158,8 @@ BOOST_AUTO_TEST_CASE(ifStatement) "}\n"; bytes code = compileContract(sourceCode); - unsigned shift = 29; - unsigned boilerplateSize = 42; + unsigned shift = 27; + unsigned boilerplateSize = 40; bytes expectation({byte(Instruction::JUMPDEST), byte(Instruction::PUSH1), 0x0, byte(Instruction::DUP1), @@ -200,8 +200,8 @@ BOOST_AUTO_TEST_CASE(loops) "}\n"; bytes code = compileContract(sourceCode); - unsigned shift = 29; - unsigned boilerplateSize = 42; + unsigned shift = 27; + unsigned boilerplateSize = 40; bytes expectation({byte(Instruction::JUMPDEST), byte(Instruction::JUMPDEST), byte(Instruction::PUSH1), 0x1, |