[SMTChecker] Shortcut RationalNumber expressions

This commit is contained in:
Leonardo Alt
2019-03-11 12:53:49 +01:00
parent 4d8c57006b
commit a8209e9899
6 changed files with 48 additions and 1 deletions
@@ -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