mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Shortcut RationalNumber expressions
This commit is contained in:
@@ -7,4 +7,3 @@ contract C
|
||||
int[3*1] x;
|
||||
}
|
||||
// ----
|
||||
// Warning: (153-156): Assertion checker does not yet implement this operator on non-integer types.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract c {
|
||||
function f() public pure returns (uint) {
|
||||
uint x = 8e130%9;
|
||||
assert(x == 8);
|
||||
assert(x != 8);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (128-142): Assertion violation happens here
|
||||
Reference in New Issue
Block a user