mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7020 from ethereum/smt_fix_callstack_message
[SMTChecker] Fix wrong assertion in callstack message
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
uint x = f(2);
|
||||
|
||||
function f(uint y) internal pure returns (uint) {
|
||||
assert(y > 1000);
|
||||
return y;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (116-132): Assertion violation happens here
|
||||
// Warning: (116-132): Assertion violation happens here
|
||||
Reference in New Issue
Block a user