We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74f3649 commit 5f1b020Copy full SHA for 5f1b020
tests/regression/37-congruence/15-congruence-hardness-unsound-branches.c
@@ -1,11 +1,21 @@
1
// PARAM: --enable ana.int.congruence --enable ana.int.interval
2
// reduced (via creduce and manually) from sv-benchmarks/c/hardness-nfm22/hardness_codestructure_dependencies_file-70.c
3
4
+#include <goblint.h>
5
+
6
main() {
7
int a;
8
unsigned c = 1;
9
if (a)
10
c = 4;
- if (c + (c + 2)) // NOWARN
11
12
+ // The following condition evaluated to "both branches dead", due to a bug in the congruence domain.
13
+ // --- Even though the condition is true the concrete.
14
+ if (c + (c + 2))
15
a = 1;
16
17
+ // Check that this is reachable.
18
+ // That is, check that not both branches of previous condition are dead.
19
+ __goblint_check(1);
20
+ return 0;
21
}
0 commit comments