aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityCompiler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-09 08:25:14 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-09 08:25:14 +0800
commit4f97c89d4f0df983e7c8ecdf7e2b4e63e340b712 (patch)
tree0008624f5405d50db6a834d52e4172e3f16f14a5 /SolidityCompiler.cpp
parentea12af607442318516190a79af1ec94e4bb055fb (diff)
downloaddexon-solidity-4f97c89d4f0df983e7c8ecdf7e2b4e63e340b712.tar.gz
dexon-solidity-4f97c89d4f0df983e7c8ecdf7e2b4e63e340b712.tar.zst
dexon-solidity-4f97c89d4f0df983e7c8ecdf7e2b4e63e340b712.zip
Adjusting Solidity Optimizer Tests
Diffstat (limited to 'SolidityCompiler.cpp')
-rw-r--r--SolidityCompiler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/SolidityCompiler.cpp b/SolidityCompiler.cpp
index ea09678d..1a9685f0 100644
--- a/SolidityCompiler.cpp
+++ b/SolidityCompiler.cpp
@@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(smoke_test)
"}\n";
bytes code = compileContract(sourceCode);
- unsigned boilerplateSize = 72;
+ unsigned boilerplateSize = 73;
bytes expectation({byte(Instruction::JUMPDEST),
byte(Instruction::PUSH1), 0x0, // initialize local variable x
byte(Instruction::PUSH1), 0x2,
@@ -115,8 +115,8 @@ BOOST_AUTO_TEST_CASE(different_argument_numbers)
" function g() returns (uint e, uint h) { h = f(1, 2, 3); }\n"
"}\n";
bytes code = compileContract(sourceCode);
- unsigned shift = 102;
- unsigned boilerplateSize = 115;
+ unsigned shift = 103;
+ unsigned boilerplateSize = 116;
bytes expectation({byte(Instruction::JUMPDEST),
byte(Instruction::PUSH1), 0x0, // initialize return variable d
byte(Instruction::DUP3),
@@ -165,8 +165,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 = 59;
- unsigned boilerplateSize = 72;
+ unsigned shift = 60;
+ unsigned boilerplateSize = 73;
bytes expectation({byte(Instruction::JUMPDEST),
byte(Instruction::PUSH1), 0x0,
byte(Instruction::DUP1),
@@ -206,8 +206,8 @@ BOOST_AUTO_TEST_CASE(loops)
" function f() { while(true){1;break;2;continue;3;return;4;} }"
"}\n";
bytes code = compileContract(sourceCode);
- unsigned shift = 59;
- unsigned boilerplateSize = 72;
+ unsigned shift = 60;
+ unsigned boilerplateSize = 73;
bytes expectation({byte(Instruction::JUMPDEST),
byte(Instruction::JUMPDEST),
byte(Instruction::PUSH1), 0x1,