This commit is contained in:
chriseth 2019-05-10 13:19:02 +02:00
parent 439a225cee
commit 246c1c939f
6 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,12 @@
{
for {} calldatasize() { mstore(1, 2) } {
mstore(4, 5)
break
}
}
// ====
// step: controlFlowSimplifier
// ----
// {
// if calldatasize() { mstore(4, 5) }
// }

View File

@ -0,0 +1,21 @@
{
for {} calldatasize() { mstore(8, 9) } {
for {} calldatasize() { mstore(1, 2) } {
mstore(4, 5)
break
}
if mload(10) { continue }
break
}
}
// ====
// step: controlFlowSimplifier
// ----
// {
// for { } calldatasize() { mstore(8, 9) }
// {
// if calldatasize() { mstore(4, 5) }
// if mload(10) { continue }
// break
// }
// }

View File

@ -0,0 +1,22 @@
{
for {} calldatasize() { mstore(8, 9) } {
for {} calldatasize() { mstore(1, 2) } {
mstore(4, 5)
continue
}
break
}
}
// ====
// step: controlFlowSimplifier
// ----
// {
// if calldatasize()
// {
// for { } calldatasize() { mstore(1, 2) }
// {
// mstore(4, 5)
// continue
// }
// }
// }

View File

@ -0,0 +1,18 @@
{
for {} calldatasize() { mstore(1, 2) } {
let x := 7
mstore(4, 5)
revert(0, x)
}
}
// ====
// step: controlFlowSimplifier
// ----
// {
// if calldatasize()
// {
// let x := 7
// mstore(4, 5)
// revert(0, x)
// }
// }

View File

@ -0,0 +1,20 @@
{
for {} calldatasize() { mstore(1, 2) } {
let x := 7
mstore(4, 5)
break
revert(0, x)
}
}
// ====
// step: controlFlowSimplifier
// ----
// {
// for { } calldatasize() { mstore(1, 2) }
// {
// let x := 7
// mstore(4, 5)
// break
// revert(0, x)
// }
// }

View File

@ -0,0 +1,18 @@
{
for {} calldatasize() { mstore(1, 2) } {
if calldatasize() { continue }
mstore(4, 5)
break
}
}
// ====
// step: controlFlowSimplifier
// ----
// {
// for { } calldatasize() { mstore(1, 2) }
// {
// if calldatasize() { continue }
// mstore(4, 5)
// break
// }
// }