solidity/test/cmdlineTests/model_checker_timeout_bmc/input.sol

12 lines
275 B
Solidity
Raw Normal View History

2020-11-02 20:20:20 +00:00
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
pragma experimental SMTChecker;
contract test {
2020-11-05 14:03:02 +00:00
function f(uint x, uint y, uint k) public pure {
require(k > 0);
require(x % k == 0);
require(y % k == 0);
uint r = mulmod(x, y, k);
assert(r % k == 0);
}
2020-11-02 20:20:20 +00:00
}