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

14 lines
279 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): CHC: Error trying to invoke SMT solver.