solidity/test/libsolidity/smtCheckerTests/functions/functions_bound_1.sol
2021-04-20 17:38:29 +02:00

21 lines
286 B
Solidity

library L
{
function add(uint x, uint y) internal pure returns (uint) {
require(x < 1000);
require(y < 1000);
return x + y;
}
}
contract C
{
using L for uint;
function f(uint x) public pure {
uint y = x.add(999);
assert(y < 10000);
}
}
// ====
// SMTEngine: all
// ----