File tree Expand file tree Collapse file tree 12 files changed +216
-0
lines changed
regression/goto-instrument Expand file tree Collapse file tree 12 files changed +216
-0
lines changed Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 1+ CORE
2+ main.c
3+ --aggressive-slice
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ ^VERIFICATION SUCCESSFUL$
7+ --
8+ ^warning: ignoring
Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 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 number Diff line number Diff line change 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 number Diff line number Diff line change 1+ CORE
2+ main.c
3+ --aggressive-slice
4+ ^EXIT=10$
5+ ^SIGNAL=0$
6+ ^VERIFICATION FAILED$
7+ --
8+ ^warning: ignoring
Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 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 number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments