Tests and Changelog

This commit is contained in:
Harikrishnan Mulackal
2020-08-19 12:41:29 +02:00
parent 5c6e7f03b4
commit bbf15c9af3
26 changed files with 750 additions and 6 deletions
@@ -0,0 +1,23 @@
{
let b := 1
for { let a := 1 } iszero(eq(a, 10)) { a := add(a, 1) } {
let inv := add(b, 42)
let x := extcodesize(keccak256(mul(mload(inv), 3), 32))
a := add(x, 1)
sstore(a, inv)
}
}
// ----
// step: loopInvariantCodeMotion
//
// {
// let b := 1
// let a := 1
// let inv := add(b, 42)
// let x := extcodesize(keccak256(mul(mload(inv), 3), 32))
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// {
// a := add(x, 1)
// sstore(a, inv)
// }
// }