Make timeout tests harder

This commit is contained in:
Leonardo Alt
2020-11-06 13:35:07 +00:00
parent 6309d78762
commit 1b6abfa37f
15 changed files with 769 additions and 157 deletions
@@ -2,9 +2,11 @@
pragma solidity >=0.0;
pragma experimental SMTChecker;
contract test {
function f(uint x) public pure {
assert(x > 0);
assert(x > 2);
assert(x > 4);
}
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);
}
}