Skip to content

Commit 7b56203

Browse files
authored
Merge pull request diffblue#1965 from smowton/smowton/fix/reachability-slicer-incompatible-with-symex-driven-loading
Mark the new reachability-slicer incompatible with symex-driven loading
2 parents 5903b62 + e25a7ac commit 7b56203

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

regression/cbmc-java/reachability-slice/test.desc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE symex-driven-lazy-loading-expected-failure
22
A.class
33
--reachability-slice --show-goto-functions --property 'java::A.foo:(I)V.coverage.3' --cover location
44
1001
@@ -9,3 +9,5 @@ A.class
99
--
1010
Note: 1002 might and might not be removed, based on where the assertion for coverage resides.
1111
At the time of writing of this test, 1002 is removed.
12+
13+
Doesn't work with symex-driven lazy loading because the reachability slicer is a whole-program pass.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE symex-driven-lazy-loading-expected-failure
22
A.class
33
--reachability-slice-fb --show-goto-functions --property 'java::A.foo:(I)V.coverage.3' --cover location
44
1001
@@ -7,3 +7,5 @@ A.class
77
1005
88
--
99
1004
10+
--
11+
Doesn't work with symex-driven lazy loading because the reachability slicer is a whole-program pass.
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
CORE
1+
CORE symex-driven-lazy-loading-expected-failure
22
A.class
33
--reachability-slice --show-goto-functions --cover location
44
1001
55
1002
66
1003
77
1004
88
1005
9+
--
10+
--
11+
Doesn't work with symex-driven lazy loading because the reachability slicer is a whole-program pass.

src/jbmc/jbmc_parse_options.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
385385
for(const char *opt :
386386
{ "nondet-static",
387387
"full-slice",
388-
"lazy-methods" })
388+
"lazy-methods",
389+
"reachability-slice",
390+
"reachability-slice-fb" })
389391
{
390392
if(cmdline.isset(opt))
391393
{

0 commit comments

Comments
 (0)