broken yul optimizer test

This commit is contained in:
Daniel Kirchner 2022-09-05 12:55:52 +02:00
parent 548a4b4ac6
commit d5e2925326

View File

@ -0,0 +1,27 @@
{
function conditionallyStop() {
if calldataload(0) { leave }
return(0, 0)
}
let x := 0
let y := 1
sstore(x, y)
conditionallyStop()
sstore(x, y)
}
// ----
// step: unusedStoreEliminator
//
// {
// {
// let x := 0
// let y := 1
// conditionallyStop()
// sstore(x, y)
// }
// function conditionallyStop()
// {
// if calldataload(0) { leave }
// return(0, 0)
// }
// }