mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
256 B
Solidity
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.
|