Remove fuzzer mode from yul optimizer unit test framework.

This commit is contained in:
Bhargava Shastry
2021-01-18 10:27:58 +01:00
parent 3e7659596e
commit 02b28b42e8
37 changed files with 163 additions and 198 deletions
@@ -15,10 +15,6 @@
// step: loopInvariantCodeMotion
//
// {
// function g() -> x
// { x := create(100, 0, 32) }
// function f() -> x_1
// { x_1 := mload(0) }
// let b := 1
// let a := 1
// let z := f()
@@ -27,4 +23,8 @@
// let q := sload(5)
// let r := g()
// }
// function g() -> x
// { x := create(100, 0, 32) }
// function f() -> x_1
// { x_1 := mload(0) }
// }
@@ -12,8 +12,6 @@
// step: loopInvariantCodeMotion
//
// {
// function g() -> x
// { x := add(sload(mload(x)), 1) }
// let b := 1
// let a := 1
// let t := mload(g())
@@ -21,4 +19,6 @@
// let q := g()
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// { }
// function g() -> x
// { x := add(sload(mload(x)), 1) }
// }
@@ -12,14 +12,14 @@
// step: loopInvariantCodeMotion
//
// {
// function f() -> x
// { x := mload(g()) }
// function g() -> x_1
// { x_1 := add(sload(x_1), 1) }
// let b := 1
// let a := 1
// let t := extcodesize(f())
// let q := g()
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// { }
// function f() -> x
// { x := mload(g()) }
// function g() -> x_1
// { x_1 := add(sload(x_1), 1) }
// }
@@ -12,14 +12,14 @@
// step: loopInvariantCodeMotion
//
// {
// function f() -> x
// { x := g() }
// function g() -> x_1
// { x_1 := add(x_1, 1) }
// let b := 1
// let a := 1
// let t := sload(f())
// let q := g()
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// { }
// function f() -> x
// { x := g() }
// function g() -> x_1
// { x_1 := add(x_1, 1) }
// }
@@ -14,10 +14,6 @@
//
// {
// let a := 1
// function f() -> x
// { invalid() }
// function g() -> y
// { return(0, 0) }
// let i := 1
// for { } iszero(eq(i, 10)) { a := add(i, 1) }
// {
@@ -26,4 +22,8 @@
// let d := g()
// let e := sload(g())
// }
// function f() -> x
// { invalid() }
// function g() -> y
// { return(0, 0) }
// }
@@ -12,13 +12,6 @@
// step: loopInvariantCodeMotion
//
// {
// function f() -> x
// { x := g() }
// function g() -> x_1
// {
// for { } 1 { }
// { }
// }
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
@@ -26,4 +19,11 @@
// let t := f()
// let q := g()
// }
// function f() -> x
// { x := g() }
// function g() -> x_1
// {
// for { } 1 { }
// { }
// }
// }
@@ -12,13 +12,6 @@
// step: loopInvariantCodeMotion
//
// {
// function f() -> x
// { x := g() }
// function g() -> x_1
// {
// for { } 1 { }
// { }
// }
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
@@ -26,4 +19,11 @@
// let t := mload(f())
// let q := g()
// }
// function f() -> x
// { x := g() }
// function g() -> x_1
// {
// for { } 1 { }
// { }
// }
// }
@@ -12,10 +12,6 @@
// step: loopInvariantCodeMotion
//
// {
// function f() -> x
// { x := g() }
// function g() -> x_1
// { x_1 := g() }
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
@@ -23,4 +19,8 @@
// let t := f()
// let q := g()
// }
// function f() -> x
// { x := g() }
// function g() -> x_1
// { x_1 := g() }
// }
@@ -15,13 +15,6 @@
// step: loopInvariantCodeMotion
//
// {
// function f() -> x
// { x := g() }
// function g() -> x_1
// {
// x_1 := add(x_1, 1)
// sstore(0x00, 0x00)
// }
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
@@ -29,4 +22,11 @@
// let t := extcodesize(f())
// let q := sload(g())
// }
// function f() -> x
// { x := g() }
// function g() -> x_1
// {
// x_1 := add(x_1, 1)
// sstore(0x00, 0x00)
// }
// }
@@ -12,13 +12,6 @@
// step: loopInvariantCodeMotion
//
// {
// function f() -> x
// { x := g() }
// function g() -> x_1
// {
// for { } 1 { }
// { }
// }
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
@@ -26,4 +19,11 @@
// let t := extcodesize(f())
// let q := g()
// }
// function f() -> x
// { x := g() }
// function g() -> x_1
// {
// for { } 1 { }
// { }
// }
// }
@@ -12,10 +12,6 @@
// step: loopInvariantCodeMotion
//
// {
// function f() -> x
// { x := g() }
// function g() -> x_1
// { x_1 := g() }
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
@@ -23,4 +19,8 @@
// let t := extcodesize(f())
// let q := sload(g())
// }
// function f() -> x
// { x := g() }
// function g() -> x_1
// { x_1 := g() }
// }
@@ -14,6 +14,10 @@
// step: loopInvariantCodeMotion
//
// {
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// { let q := sload(g()) }
// function f() -> x
// { x := g() }
// function g() -> x_1
@@ -21,8 +25,4 @@
// x_1 := add(x_1, 1)
// sstore(0x00, 0x00)
// }
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// { let q := sload(g()) }
// }
@@ -11,6 +11,10 @@
// step: loopInvariantCodeMotion
//
// {
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// { let t := sload(f()) }
// function f() -> x
// { x := g() }
// function g() -> x_1
@@ -18,8 +22,4 @@
// for { } 1 { }
// { }
// }
// let b := 1
// let a := 1
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// { let t := sload(f()) }
// }
@@ -11,11 +11,11 @@
// step: loopInvariantCodeMotion
//
// {
// function g() -> x
// { x := add(mload(x), 1) }
// let b := 1
// let a := 1
// let q := keccak256(g(), 32)
// for { } iszero(eq(a, 10)) { a := add(a, 1) }
// { sstore(0, a) }
// function g() -> x
// { x := add(mload(x), 1) }
// }