mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Checks for overflow/underflow after add/sub operations.
This commit is contained in:
@@ -23,9 +23,9 @@ contract C {
|
||||
|
||||
// ----
|
||||
// constructor(), 1 ether ->
|
||||
// gas irOptimized: 270677
|
||||
// gas legacy: 464030
|
||||
// gas legacyOptimized: 304049
|
||||
// gas irOptimized: 270449
|
||||
// gas legacy: 456680
|
||||
// gas legacyOptimized: 302975
|
||||
// f(uint256): 0 -> FAILURE
|
||||
// f(uint256): 1 -> FAILURE
|
||||
// f(uint256): 2 -> FAILURE
|
||||
|
||||
+3
-3
@@ -26,9 +26,9 @@ contract C {
|
||||
// revertStrings: debug
|
||||
// ----
|
||||
// constructor(), 1 ether ->
|
||||
// gas irOptimized: 428679
|
||||
// gas legacy: 832976
|
||||
// gas legacyOptimized: 509560
|
||||
// gas irOptimized: 428444
|
||||
// gas legacy: 825625
|
||||
// gas legacyOptimized: 508492
|
||||
// f(uint256): 0 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code"
|
||||
// f(uint256): 1 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code"
|
||||
// f(uint256): 2 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code"
|
||||
|
||||
@@ -17,9 +17,9 @@ contract C {
|
||||
// EVMVersion: >=byzantium
|
||||
// ----
|
||||
// constructor(), 20 wei
|
||||
// gas irOptimized: 184221
|
||||
// gas irOptimized: 184005
|
||||
// gas legacy: 294335
|
||||
// gas legacyOptimized: 174279
|
||||
// gas legacyOptimized: 173427
|
||||
// f(uint256): 20 -> 1370859564726510389319704988634906228201275401179
|
||||
// x() -> 1
|
||||
// f(uint256): 20 -> FAILURE
|
||||
@@ -27,7 +27,7 @@ contract C {
|
||||
// stack(uint256): 1023 -> FAILURE
|
||||
// gas irOptimized: 260987
|
||||
// gas legacy: 483942
|
||||
// gas legacyOptimized: 298807
|
||||
// gas legacyOptimized: 302349
|
||||
// x() -> 1
|
||||
// stack(uint256): 10 -> 693016686122178122849713379390321835634789309880
|
||||
// x() -> 2
|
||||
|
||||
Reference in New Issue
Block a user