Merge pull request #6848 from ethereum/invertibleRelation

Implement references using InvertibleRelation as data structure.
This commit is contained in:
chriseth
2019-05-29 13:34:10 +02:00
committed by GitHub
7 changed files with 86 additions and 23 deletions
@@ -0,0 +1,21 @@
{
let a := calldataload(0)
let x := calldataload(0x20)
x := a
let z := 0
x := z
a := 9
sstore(x, 3)
}
// ====
// step: commonSubexpressionEliminator
// ----
// {
// let a := calldataload(0)
// let x := calldataload(0x20)
// x := a
// let z := 0
// x := z
// a := 9
// sstore(z, 3)
// }