solidity/test/libsolidity/smtCheckerTests/bmc_coverage/math.sol
2022-04-01 23:41:18 -05:00

22 lines
728 B
Solidity

contract C {
function a(uint x, uint y) public pure returns (uint) {
return x + y;
}
function s(uint x, uint y) public pure returns (uint) {
return x - y;
}
function m(uint x, uint y) public pure returns (uint) {
return x * y;
}
function d(uint x, uint y) public pure returns (uint) {
return x / y;
}
}
// ====
// SMTEngine: bmc
// ----
// Warning 2661: (79-84='x + y'): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
// Warning 4144: (155-160='x - y'): BMC: Underflow (resulting value less than 0) happens here.
// Warning 2661: (231-236='x * y'): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
// Warning 3046: (307-312='x / y'): BMC: Division by zero happens here.