We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d6a842 commit 8cce1c5Copy full SHA for 8cce1c5
regression/goto-analyzer/variable-sensitivity-annihiliator-test/main.c
@@ -0,0 +1,25 @@
1
+extern int g_in1;
2
+extern int g_in2;
3
+
4
+int g_out;
5
6
+void func(void);
7
8
+void main(void)
9
+{
10
+ g_in1 = 1;
11
12
+ func();
13
+}
14
15
+void func(void)
16
17
+ if (g_in1 == 0)
18
+ g_out = 1; // unreachable.
19
20
+ if (g_in2 == 0)
21
+ g_out = 2;
22
23
+ if (g_in1 == 0 && g_in2 == 0)
24
+ g_out = 3; // unreachable, but not .
25
regression/goto-analyzer/variable-sensitivity-annihiliator-test/test.desc
@@ -0,0 +1,10 @@
+CORE
+main.c
+--variable-sensitivity --pointers --arrays --structs --unreachable-instructions
+^EXIT=0$
+^SIGNAL=0$
+line 18 function func
+g_out = 1;
+line 24 function func
+g_out = 3;
+--
0 commit comments