Hash number literals according to their value instead of their string representation.

This commit is contained in:
chriseth
2022-11-08 20:34:10 +01:00
parent 19fc395662
commit cffacac9de
8 changed files with 32 additions and 11 deletions
@@ -0,0 +1,17 @@
{
f()
g()
function f() { mstore(0x01, mload(0x00)) }
function g() { mstore(1, mload(0)) }
}
// ----
// step: equivalentFunctionCombiner
//
// {
// f()
// f()
// function f()
// { mstore(0x01, mload(0x00)) }
// function g()
// { mstore(1, mload(0)) }
// }