solidity/test/libsolidity/smtCheckerTests/operators/division_3.sol

11 lines
309 B
Solidity
Raw Normal View History

2019-12-04 12:11:13 +00:00
pragma experimental SMTChecker;
contract C {
function f(int x, int y) public pure returns (int) {
require(y != 0);
return x / y;
}
}
// ----
2020-08-11 13:53:24 +00:00
// Warning 1218: (127-132): Error trying to invoke SMT solver.
2020-09-09 14:12:55 +00:00
// Warning 2661: (127-132): Overflow (resulting value larger than 0x80 * 2**248 - 1) happens here.