solidity/test/libsolidity/smtCheckerTests/overflow/safe_add_1.sol

10 lines
149 B
Solidity

pragma experimental SMTChecker;
contract C
{
function add(uint x, uint y) public pure returns (uint) {
require(x + y >= x);
return x + y;
}
}