aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityOptimizer.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-19 18:31:17 +0800
committerChristian <c@ethdev.com>2015-01-09 22:16:09 +0800
commit65df7459db0e9d3bbe034d1a3abdc6dc9219d6c8 (patch)
treef5b461b14e8e9458f33d52f26737f827a966f91b /SolidityOptimizer.cpp
parent4f7bb098213294dacb200b21f631824f30e1ed8c (diff)
downloaddexon-solidity-65df7459db0e9d3bbe034d1a3abdc6dc9219d6c8.tar.gz
dexon-solidity-65df7459db0e9d3bbe034d1a3abdc6dc9219d6c8.tar.zst
dexon-solidity-65df7459db0e9d3bbe034d1a3abdc6dc9219d6c8.zip
Arbitrary precision integer constants.
Diffstat (limited to 'SolidityOptimizer.cpp')
-rw-r--r--SolidityOptimizer.cpp8
1 files changed, 4 insertions, 4 deletions
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)");
}