solidity/test/libsolidity/smtCheckerTests/operators/division_5.sol
2020-08-14 12:58:27 +02:00

14 lines
274 B
Solidity

pragma experimental SMTChecker;
contract C {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c;
if (a != 0) {
c = a * b;
require(c / a == b);
}
return c;
}
}
// ----
// Warning 1218: (151-156): Error trying to invoke SMT solver.