mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
361 B
Plaintext
24 lines
361 B
Plaintext
{
|
|
let c
|
|
let d
|
|
c := calldataload(0)
|
|
// This assignment will be overwritten in all branches and thus can be removed.
|
|
d := 1
|
|
if c {
|
|
d := 2
|
|
}
|
|
d := 3
|
|
mstore(0, d)
|
|
}
|
|
// ----
|
|
// step: unusedAssignEliminator
|
|
//
|
|
// {
|
|
// let c
|
|
// let d
|
|
// c := calldataload(0)
|
|
// if c { }
|
|
// d := 3
|
|
// mstore(0, d)
|
|
// }
|