solidity/test/libyul/yulOptimizerTests/expressionSimplifier/iszero_sub_to_eq.yul
Daniel Kirchner 10618188dd Update tests.
2021-11-09 14:34:05 +01:00

19 lines
321 B
Plaintext

{
let a := calldataload(0)
let b := calldataload(0x20)
let x := sub(a, b)
if iszero(x) {
sstore(0, 1)
}
}
// ----
// step: expressionSimplifier
//
// {
// {
// let _1 := 0
// let a := calldataload(_1)
// if eq(a, calldataload(0x20)) { sstore(_1, 1) }
// }
// }