solidity/test/libsolidity/smtCheckerTests/math/addmod_mulmod.sol

15 lines
491 B
Solidity
Raw Normal View History

contract C {
function test() public pure {
uint x;
if ((2**255 + 2**255) % 7 != addmod(2**255, 2**255, 7)) x = 1;
if ((2**255 + 2**255) % 7 != addmod(2**255, 2**255, 7)) x = 2;
assert(x == 0);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2023-02-09 16:07:13 +00:00
// Info 1391: CHC: 3 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
2021-03-31 15:11:54 +00:00
// Warning 6838: (60-110): BMC: Condition is always false.
// Warning 6838: (125-175): BMC: Condition is always false.