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

13 lines
211 B
Solidity
Raw Normal View History

2019-12-04 12:11:13 +00:00
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;
}
}
2020-08-11 13:53:24 +00:00
// ----