mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
23 lines
345 B
Plaintext
23 lines
345 B
Plaintext
{
|
|
let c
|
|
let d
|
|
c := calldataload(0)
|
|
d := 1
|
|
if c {
|
|
d := 2
|
|
}
|
|
// This enforces that none of the assignments above can be removed.
|
|
mstore(0, d)
|
|
}
|
|
// ----
|
|
// step: unusedAssignEliminator
|
|
//
|
|
// {
|
|
// let c
|
|
// let d
|
|
// c := calldataload(0)
|
|
// d := 1
|
|
// if c { d := 2 }
|
|
// mstore(0, d)
|
|
// }
|