Skip to content

Commit 59c3680

Browse files
committed
aggressive slicer regression tests
1 parent 58627be commit 59c3680

File tree

12 files changed

+216
-0
lines changed

12 files changed

+216
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
void D()
2+
{
3+
__CPROVER_assert(0,"");
4+
}
5+
6+
void C()
7+
{
8+
int nondet;
9+
if(nondet)
10+
D();
11+
}
12+
13+
void B()
14+
{
15+
C();
16+
};
17+
18+
int main()
19+
{
20+
int nondet;
21+
22+
__CPROVER_assume(nondet!=3);
23+
switch(nondet)
24+
{
25+
case 1: B(); break;
26+
case 3: C(); break;
27+
default: break;
28+
}
29+
return 0;
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--aggressive-slice
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
void D()
2+
{
3+
__CPROVER_assert(0,"");
4+
}
5+
6+
void C()
7+
{
8+
int nondet;
9+
if(nondet)
10+
D();
11+
}
12+
13+
void B()
14+
{
15+
C();
16+
};
17+
18+
int main()
19+
{
20+
int nondet;
21+
22+
__CPROVER_assume(nondet!=3);
23+
switch(nondet)
24+
{
25+
case 1: B(); break;
26+
case 3: C(); break;
27+
default: break;
28+
}
29+
return 0;
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--aggressive-slice --property D.assertion.1
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
void D()
2+
{
3+
__CPROVER_assert(0,"");
4+
}
5+
6+
void C()
7+
{
8+
int nondet;
9+
if(nondet)
10+
D();
11+
}
12+
13+
void B()
14+
{
15+
C();
16+
};
17+
18+
int main()
19+
{
20+
int nondet;
21+
22+
switch(nondet)
23+
{
24+
case 1: B(); break;
25+
case 3: C(); break;
26+
default: break;
27+
}
28+
return 0;
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--aggressive-slice
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--
8+
^warning: ignoring
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
void D()
2+
{
3+
__CPROVER_assert(0,"");
4+
}
5+
6+
void C()
7+
{
8+
int nondet;
9+
if(nondet)
10+
D();
11+
}
12+
13+
void B()
14+
{
15+
C();
16+
};
17+
18+
int main()
19+
{
20+
int nondet;
21+
__CPROVER_assume(nondet!=3);
22+
switch(nondet)
23+
{
24+
case 1: B(); break;
25+
case 3: C(); break;
26+
default: break;
27+
}
28+
return 0;
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--aggressive-slice --preserve-function B
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--
8+
^warning: ignoring
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
void D()
2+
{
3+
__CPROVER_assert(0,"");
4+
}
5+
6+
void C()
7+
{
8+
int nondet;
9+
if(nondet)
10+
D();
11+
}
12+
13+
void B()
14+
{
15+
C();
16+
};
17+
18+
int main()
19+
{
20+
int nondet;
21+
__CPROVER_assume(nondet!=3);
22+
switch(nondet)
23+
{
24+
case 1: B(); break;
25+
case 3: C(); break;
26+
default: break;
27+
}
28+
return 0;
29+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
void D()
2+
{
3+
__CPROVER_assert(0,"");
4+
}
5+
6+
void C()
7+
{
8+
int nondet;
9+
if(nondet)
10+
D();
11+
}
12+
13+
void B()
14+
{
15+
C();
16+
};
17+
18+
int main()
19+
{
20+
int nondet;
21+
__CPROVER_assume(nondet!=3);
22+
switch(nondet)
23+
{
24+
case 1: B(); break;
25+
case 3: C(); break;
26+
default: break;
27+
}
28+
return 0;
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--aggressive-slice --call-depth 1
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)