solidity/test/libyul/yulOptimizerTests/expressionSimplifier/idempotency.yul

17 lines
307 B
Plaintext
Raw Normal View History

{
let x := calldataload(0)
let z := calldataload(1)
let t := and(and(x, z), x)
let w := or(or(x, z), x)
2020-08-03 20:42:39 +00:00
sstore(t, w)
}
// ----
// step: expressionSimplifier
//
// {
// let x := calldataload(0)
// let z := calldataload(1)
// let t := and(x, z)
2020-08-03 20:42:39 +00:00
// sstore(t, or(x, z))
// }