mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
680 B
Solidity
22 lines
680 B
Solidity
contract C {
|
|
uint a;
|
|
bool b;
|
|
|
|
constructor(bool _b) {
|
|
b = _b;
|
|
}
|
|
|
|
function f() public returns(uint c) {
|
|
c = b ? a + 10 : ++a;
|
|
assert(c >= a);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// ----
|
|
// Warning 1218: (134-140): CHC: Error trying to invoke SMT solver.
|
|
// Warning 4984: (134-140): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
|
// Warning 4984: (143-146): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
|
// Warning 2661: (134-140): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
// Warning 2661: (143-146): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|