mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Simplify test and add Changelog entry.
This commit is contained in:
parent
d46da8e53c
commit
308549f950
@ -4,6 +4,7 @@ Language Features:
|
|||||||
* Possibility to use ``catch Panic(uint code)`` to catch a panic failure from an external call.
|
* Possibility to use ``catch Panic(uint code)`` to catch a panic failure from an external call.
|
||||||
|
|
||||||
Compiler Features:
|
Compiler Features:
|
||||||
|
* Optimizer: Add rule to replace ``iszero(sub(x,y))`` by ``eq(x,y)``.
|
||||||
* Parser: Report meaningful error if parsing a version pragma failed.
|
* Parser: Report meaningful error if parsing a version pragma failed.
|
||||||
* SMTChecker: Support ABI functions as uninterpreted functions.
|
* SMTChecker: Support ABI functions as uninterpreted functions.
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
let a := calldataload(0)
|
let a := calldataload(0)
|
||||||
let b := calldataload(0x20)
|
let b := calldataload(0x20)
|
||||||
let x := sub(a, b)
|
let x := sub(a, b)
|
||||||
if gt(x, 0) {
|
if iszero(x) {
|
||||||
sstore(0, 1)
|
sstore(0, 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -12,5 +12,5 @@
|
|||||||
// {
|
// {
|
||||||
// let _1 := 0
|
// let _1 := 0
|
||||||
// let a := calldataload(_1)
|
// let a := calldataload(_1)
|
||||||
// if iszero(eq(a, calldataload(0x20))) { sstore(_1, 1) }
|
// if eq(a, calldataload(0x20)) { sstore(_1, 1) }
|
||||||
// }
|
// }
|
Loading…
Reference in New Issue
Block a user