aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/special/difficulty.sol
blob: 4469d4e57a666376300ac91724afbbbbc3055f27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
pragma experimental SMTChecker;

contract C
{
    function f(uint difficulty) public view {
        assert(block.difficulty == difficulty);
    }
}
// ----
// Warning: (91-129): Assertion violation happens here