solidity/test/libsolidity/smtCheckerTests/special/msg_value_1.sol

10 lines
650 B
Solidity
Raw Normal View History

2021-01-20 10:22:28 +00:00
pragma experimental SMTChecker;
contract C {
function f() public payable {
assert ((5 + msg.value + msg.value) - (4 + msg.value) > 0);
}
}
// ----
// Warning 4984: (87-100): CHC: Overflow (resulting value larger than 2**256 - 1) happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f(){ value: 115792089237316195423570985008687907853269984665640564039457584007913129639931 }
// Warning 4984: (87-112): CHC: Overflow (resulting value larger than 2**256 - 1) happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f(){ value: 57896044618658097711785492504343953926634992332820282019728792003956564819966 }