solidity/test/libsolidity/smtCheckerTests/operators/fixed_point_compound_add.sol

9 lines
265 B
Solidity
Raw Normal View History

2020-05-29 16:13:03 +00:00
pragma experimental SMTChecker;
contract C {
fixed[] b;
function f() internal { b[0] += 1; }
}
// ----
// Warning: (84-93): Underflow (resulting value less than 0) happens here
// Warning: (84-93): Overflow (resulting value larger than 2**256 - 1) happens here