Skip to content

Commit e9547d7

Browse files
committed
Add minimized testcase from both apron branches dead without threadflag
1 parent 40aeef6 commit e9547d7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// SKIP PARAM: --set ana.activated[+] apron --set ana.activated[-] threadflag
2+
// Minimized from sv-benchmarks/c/systemc/pipeline.cil-1.c
3+
#include <assert.h>
4+
5+
int main_clk_pos_edge;
6+
int main_in1_req_up;
7+
8+
int main()
9+
{
10+
// main_clk_pos_edge = 2; // TODO: uncomment to unskip apron test
11+
if (main_in1_req_up == 1) // TODO: both branches are dead
12+
assert(0); // FAIL (unreachable)
13+
else
14+
assert(1); // reachable
15+
return (0);
16+
}

0 commit comments

Comments
 (0)