mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
slt test case.
This commit is contained in:
parent
aa1e56bf2c
commit
118a0f2125
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
let y := calldataload(0)
|
||||||
|
let t := calldataload(32)
|
||||||
|
|
||||||
|
if sgt(sub(y, 1), y) {
|
||||||
|
// y - 1 > y, i.e. y is the most negative value
|
||||||
|
if eq(y, sub(0, y)) {
|
||||||
|
sstore(0, 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// ----
|
||||||
|
// step: reasoningBasedSimplifier
|
||||||
|
//
|
||||||
|
// {
|
||||||
|
// let y := calldataload(0)
|
||||||
|
// let t := calldataload(32)
|
||||||
|
// if sgt(sub(y, 1), y) { if 1 { sstore(0, 1) } }
|
||||||
|
// }
|
Loading…
Reference in New Issue
Block a user