Skip to content

Commit 258b7a9

Browse files
Use goto verifier for --paths with show-vcc and -program-only in CBMC
We can now use single_path_symex_only_checkert instead of bmct.
1 parent 2bfd25e commit 258b7a9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Author: Daniel Kroening, [email protected]
4040
#include <goto-checker/multi_path_symex_checker.h>
4141
#include <goto-checker/multi_path_symex_only_checker.h>
4242
#include <goto-checker/properties.h>
43+
#include <goto-checker/single_path_symex_only_checker.h>
4344
#include <goto-checker/stop_on_fail_verifier.h>
4445

4546
#include <goto-programs/adjust_float_expressions.h>
@@ -559,13 +560,20 @@ int cbmc_parse_optionst::doit()
559560
options.get_bool_option("program-only") ||
560561
options.get_bool_option("show-vcc"))
561562
{
562-
if(!options.get_bool_option("paths"))
563+
if(options.get_bool_option("paths"))
564+
{
565+
all_properties_verifiert<single_path_symex_only_checkert> verifier(
566+
options, ui_message_handler, goto_model);
567+
(void)verifier();
568+
}
569+
else
563570
{
564571
all_properties_verifiert<multi_path_symex_only_checkert> verifier(
565572
options, ui_message_handler, goto_model);
566573
(void)verifier();
567-
return CPROVER_EXIT_SUCCESS;
568574
}
575+
576+
return CPROVER_EXIT_SUCCESS;
569577
}
570578

571579
if(

0 commit comments

Comments
 (0)