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

15 lines
256 B
Solidity
Raw Normal View History

2019-12-04 12:11:13 +00:00
contract C {
2020-12-16 17:32:34 +00:00
function mul(uint8 a, uint8 b) internal pure returns (uint8) {
uint8 c;
2019-12-04 12:11:13 +00:00
if (a != 0) {
c = a * b;
require(c / a == b);
}
return c;
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2020-08-11 13:53:24 +00:00
// ----
2021-03-31 15:11:54 +00:00
// Warning 6838: (129-139): BMC: Condition is always true.