solidity/test/libyul/yulOptimizerTests/memoryStoreRemover/simple5.yul
2021-04-26 09:33:18 +02:00

20 lines
330 B
Plaintext

{
// x is not in SSA form
let x := 10
if calldataload(0) {
x := 25
}
let y := 20
// Should not be removed because x is not in SSA form
mstore(x, y)
}
// ----
// step: memoryStoreRemover
//
// {
// let x := 10
// if calldataload(0) { x := 25 }
// let y := 20
// mstore(x, y)
// }