mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
402 B
Solidity
13 lines
402 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
contract c {
|
||
|
uint x;
|
||
|
function f() internal returns (uint) {
|
||
|
x = x + 1;
|
||
|
}
|
||
|
bool b = (f() > 0) || (f() > 0);
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (100-105): Overflow (resulting value larger than 2**256 - 1) happens here
|
||
|
// Warning: (100-105): Underflow (resulting value less than 0) happens here
|
||
|
// Warning: (100-105): Overflow (resulting value larger than 2**256 - 1) happens here
|