From 65df7459db0e9d3bbe034d1a3abdc6dc9219d6c8 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 19 Dec 2014 11:31:17 +0100 Subject: Arbitrary precision integer constants. --- SolidityOptimizer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'SolidityOptimizer.cpp') diff --git a/SolidityOptimizer.cpp b/SolidityOptimizer.cpp index 97233250..41ec1f90 100644 --- a/SolidityOptimizer.cpp +++ b/SolidityOptimizer.cpp @@ -94,7 +94,7 @@ BOOST_AUTO_TEST_CASE(large_integers) b = 0x10000000000000000000000002; } })"; - compileBothVersions(58, sourceCode); + compileBothVersions(36, sourceCode); compareVersions("f()"); } @@ -106,7 +106,7 @@ BOOST_AUTO_TEST_CASE(invariants) return int(0) | (int(1) * (int(0) ^ (0 + a))); } })"; - compileBothVersions(53, sourceCode); + compileBothVersions(41, sourceCode); compareVersions("f(uint256)", u256(0x12334664)); } @@ -120,7 +120,7 @@ BOOST_AUTO_TEST_CASE(unused_expressions) data; } })"; - compileBothVersions(36, sourceCode); + compileBothVersions(33, sourceCode); compareVersions("f()"); } @@ -135,7 +135,7 @@ BOOST_AUTO_TEST_CASE(constant_folding_both_sides) return 98 ^ (7 * ((1 | (x | 1000)) * 40) ^ 102); } })"; - compileBothVersions(56, sourceCode); + compileBothVersions(37, sourceCode); compareVersions("f(uint256)"); } -- cgit v1.2.3