Skip to content

Commit d5e2925

Browse files
committed
broken yul optimizer test
1 parent 548a4b4 commit d5e2925

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
function conditionallyStop() {
3+
if calldataload(0) { leave }
4+
return(0, 0)
5+
}
6+
let x := 0
7+
let y := 1
8+
sstore(x, y)
9+
conditionallyStop()
10+
sstore(x, y)
11+
}
12+
// ----
13+
// step: unusedStoreEliminator
14+
//
15+
// {
16+
// {
17+
// let x := 0
18+
// let y := 1
19+
// conditionallyStop()
20+
// sstore(x, y)
21+
// }
22+
// function conditionallyStop()
23+
// {
24+
// if calldataload(0) { leave }
25+
// return(0, 0)
26+
// }
27+
// }

0 commit comments

Comments
 (0)