blob: 8e4771792d4b0714acb07b0d442f724c5cc00c08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
pragma experimental SMTChecker;
// Variable is reset in both branches
contract C {
function f(uint x) public pure {
uint a = 2;
if (x > 10) {
a = 3;
} else {
a = 4;
}
assert(a >= 3);
}
}
|