solidity/test/libsolidity/smtCheckerTests/operators/division_5.sol
2021-04-08 21:03:39 +02:00

15 lines
256 B
Solidity

contract C {
function mul(uint8 a, uint8 b) internal pure returns (uint8) {
uint8 c;
if (a != 0) {
c = a * b;
require(c / a == b);
}
return c;
}
}
// ====
// SMTEngine: all
// ----
// Warning 6838: (129-139): BMC: Condition is always true.