-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into breaking
- Loading branch information
Showing
8 changed files
with
81 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1373,5 +1373,9 @@ | |
"0.7.5": { | ||
"bugs": [], | ||
"released": "2020-11-18" | ||
}, | ||
"0.7.6": { | ||
"bugs": [], | ||
"released": "2020-12-16" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/libsolidity/smtCheckerTests/operators/const_exp_1.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pragma experimental SMTChecker; | ||
|
||
contract C { | ||
uint constant x = 2; | ||
uint constant y = x ** 10; | ||
|
||
function f() public view { | ||
assert(y == 2 ** 10); | ||
assert(y == 1024); | ||
assert(y == 14); // should fail | ||
} | ||
} | ||
// ---- | ||
// Warning 2018: (98-206): Function state mutability can be restricted to pure | ||
// Warning 6328: (172-187): CHC: Assertion violation happens here.\nCounterexample:\nx = 2, y = 1024\n\n\n\nTransaction trace:\nconstructor()\nState: x = 2, y = 1024\nf() |
13 changes: 13 additions & 0 deletions
13
test/libsolidity/smtCheckerTests/operators/constant_propagation_1.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
pragma experimental SMTChecker; | ||
|
||
contract C { | ||
uint constant DEPOSIT_CONTRACT_TREE_DEPTH = 32; | ||
uint constant MAX_DEPOSIT_COUNT = 2**DEPOSIT_CONTRACT_TREE_DEPTH - 1; | ||
function f() public pure { | ||
assert(DEPOSIT_CONTRACT_TREE_DEPTH == 32); | ||
assert(MAX_DEPOSIT_COUNT == 4294967295); | ||
assert(MAX_DEPOSIT_COUNT == 2); // should fail | ||
} | ||
} | ||
// ---- | ||
// Warning 6328: (284-314): CHC: Assertion violation happens here.\nCounterexample:\nDEPOSIT_CONTRACT_TREE_DEPTH = 32, MAX_DEPOSIT_COUNT = 4294967295\n\n\n\nTransaction trace:\nconstructor()\nState: DEPOSIT_CONTRACT_TREE_DEPTH = 32, MAX_DEPOSIT_COUNT = 4294967295\nf() |
18 changes: 9 additions & 9 deletions
18
test/libsolidity/syntaxTests/comments/unicode_direction_override_1.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
contract TimelockUpgrade { | ||
function confirmUpgrade() external { | ||
uint256 m; | ||
uint256 d; | ||
(/*year*/,/*month*/,d/*yad*/,m/*hour*/,/*minute*/,/*second*/) = BokkyDateTime.timestampToDateTime(block.timestamp); | ||
} | ||
} | ||
|
||
contract TimelockUpgrade { | ||
function confirmUpgrade() external { | ||
uint256 m; | ||
uint256 d; | ||
(/*year*/,/*month*/,d/*yad*/,m/*hour*/,/*minute*/,/*second*/) = BokkyDateTime.timestampToDateTime(block.timestamp); | ||
} | ||
} | ||
|
||
// ---- | ||
// ParserError 8936: (128-139): Mismatching directional override markers in comment or string literal. | ||
// ParserError 8936: (124-135): Mismatching directional override markers in comment or string literal. |