mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
391 B
Plaintext
24 lines
391 B
Plaintext
{
|
|
let x
|
|
// Will be used in some and overwritten in others
|
|
x := 1
|
|
switch calldataload(0)
|
|
case 0 { x := 2 }
|
|
default { mstore(x, 1) }
|
|
mstore(x, 0)
|
|
}
|
|
// ----
|
|
// redundantAssignEliminator
|
|
// {
|
|
// let x
|
|
// x := 1
|
|
// switch calldataload(0)
|
|
// case 0 {
|
|
// x := 2
|
|
// }
|
|
// default {
|
|
// mstore(x, 1)
|
|
// }
|
|
// mstore(x, 0)
|
|
// }
|