We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 486fd49 commit 1837fa2Copy full SHA for 1837fa2
regression/contracts/function_check_05/main.c
@@ -10,7 +10,9 @@ __CPROVER_ensures(__CPROVER_return_value == 1)
10
int main() {
11
int y = 0;
12
int z = foo(&y);
13
+ // This assert should fail.
14
assert(y == 0);
15
+ // This one should succeed.
16
assert(z == 1);
17
return 0;
18
}
regression/contracts/function_check_05/test.desc
@@ -1,8 +1,8 @@
1
KNOWNBUG # Contract checking does not properly havoc function calls
2
main.c
3
--check-code-contracts
4
-^\[main.assertion.1\] assertion x == 0: FAILURE$
5
-^\[main.assertion.2\] assertion y == 1: SUCCESS$
+^\[main.assertion.1\] assertion y == 0: FAILURE$
+^\[main.assertion.2\] assertion z == 1: SUCCESS$
6
^\[foo.1\] : SUCCESS$
7
8
^VERIFICATION SUCCESSFUL$
0 commit comments