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

17 lines
298 B
Plaintext
Raw Normal View History

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