solidity/test/libyul/yulOptimizerTests/expressionSimplifier/idempotency.yul
2020-09-14 17:35:04 +02:00

17 lines
307 B
Plaintext

{
let x := calldataload(0)
let z := calldataload(1)
let t := and(and(x, z), x)
let w := or(or(x, z), x)
sstore(t, w)
}
// ----
// step: expressionSimplifier
//
// {
// let x := calldataload(0)
// let z := calldataload(1)
// let t := and(x, z)
// sstore(t, or(x, z))
// }