2020-08-18 17:25:36 +00:00
|
|
|
contract C {
|
|
|
|
uint a;
|
|
|
|
bool b;
|
|
|
|
|
2020-12-16 17:32:34 +00:00
|
|
|
constructor(bool _b) {
|
|
|
|
b = _b;
|
|
|
|
}
|
|
|
|
|
2020-08-18 17:25:36 +00:00
|
|
|
function f() public returns(uint c) {
|
2020-12-16 17:32:34 +00:00
|
|
|
c = b ? a + 10 : ++a;
|
|
|
|
assert(c >= a);
|
2020-08-18 17:25:36 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-08-18 17:25:36 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// 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.
|