diff options
author | Christian <c@ethdev.com> | 2015-01-30 05:50:20 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-30 05:50:20 +0800 |
commit | a55a99a2b0ce860134a4e30b2f27a20489f37f0a (patch) | |
tree | d816d5ecc2bf7e61212bc963a6b41ef260e8d5a5 /SolidityCompiler.cpp | |
parent | 5da76a3bbdb9c55d7c079b82d6bebfedcd7073b6 (diff) | |
download | dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.gz dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.bz2 dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.lz dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.xz dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.zst dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.zip |
Fallback functions.
Diffstat (limited to 'SolidityCompiler.cpp')
-rw-r--r-- | SolidityCompiler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/SolidityCompiler.cpp b/SolidityCompiler.cpp index 98397af7..17d9a7c0 100644 --- a/SolidityCompiler.cpp +++ b/SolidityCompiler.cpp @@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(smoke_test) "}\n"; bytes code = compileContract(sourceCode); - unsigned boilerplateSize = 73; + unsigned boilerplateSize = 69; bytes expectation({byte(Instruction::JUMPDEST), byte(Instruction::PUSH1), 0x0, // initialize local variable x byte(Instruction::PUSH1), 0x2, @@ -114,8 +114,8 @@ BOOST_AUTO_TEST_CASE(ifStatement) " function f() { bool x; if (x) 77; else if (!x) 78; else 79; }" "}\n"; bytes code = compileContract(sourceCode); - unsigned shift = 60; - unsigned boilerplateSize = 73; + unsigned shift = 56; + unsigned boilerplateSize = 69; bytes expectation({byte(Instruction::JUMPDEST), byte(Instruction::PUSH1), 0x0, byte(Instruction::DUP1), @@ -155,8 +155,8 @@ BOOST_AUTO_TEST_CASE(loops) " function f() { while(true){1;break;2;continue;3;return;4;} }" "}\n"; bytes code = compileContract(sourceCode); - unsigned shift = 60; - unsigned boilerplateSize = 73; + unsigned shift = 56; + unsigned boilerplateSize = 69; bytes expectation({byte(Instruction::JUMPDEST), byte(Instruction::JUMPDEST), byte(Instruction::PUSH1), 0x1, |