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

17 lines
291 B
Plaintext
Raw Normal View History

{
let a := calldataload(0)
let b := calldataload(0x20)
let x := sub(a, b)
2021-01-06 10:30:28 +00:00
if iszero(x) {
sstore(0, 1)
}
}
// ----
// step: expressionSimplifier
//
// {
// let _1 := 0
// let a := calldataload(_1)
2021-01-06 10:30:28 +00:00
// if eq(a, calldataload(0x20)) { sstore(_1, 1) }
// }