mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
262 B
Solidity
14 lines
262 B
Solidity
pragma experimental SMTChecker;
|
|
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;
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 6838: (161-171): BMC: Condition is always true.
|