solidity/test/libyul/yulOptimizerTests/expressionSimplifier/sub_eq.yul
2020-12-22 15:11:48 +01:00

17 lines
298 B
Plaintext

{
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) }
// }