solidity/test/libsolidity/smtCheckerTests/operators/division_5.sol
2019-12-09 15:32:08 +01:00

12 lines
203 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;
}
}