Skip to content

Commit 57d21a9

Browse files
Use goto verifier for --paths with show-vcc and -program-only
1 parent eecd1f8 commit 57d21a9

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Author: Daniel Kroening, [email protected]
3737
#include <goto-checker/multi_path_symex_checker.h>
3838
#include <goto-checker/multi_path_symex_only_checker.h>
3939
#include <goto-checker/properties.h>
40+
#include <goto-checker/single_path_symex_only_checker.h>
4041
#include <goto-checker/stop_on_fail_verifier.h>
4142

4243
#include <goto-programs/adjust_float_expressions.h>
@@ -549,13 +550,22 @@ int cbmc_parse_optionst::doit()
549550
options.get_bool_option("program-only") ||
550551
options.get_bool_option("show-vcc"))
551552
{
552-
if(!options.get_bool_option("paths"))
553+
std::unique_ptr<goto_verifiert> verifier;
554+
if(options.get_bool_option("paths"))
553555
{
554-
all_properties_verifiert<multi_path_symex_only_checkert> verifier(
556+
verifier = util_make_unique<
557+
all_properties_verifiert<single_path_symex_only_checkert>>(
555558
options, ui_message_handler, goto_model);
556-
(void)verifier();
557-
return CPROVER_EXIT_SUCCESS;
558559
}
560+
else
561+
{
562+
verifier = util_make_unique<
563+
all_properties_verifiert<multi_path_symex_only_checkert>>(
564+
options, ui_message_handler, goto_model);
565+
}
566+
567+
(void)(*verifier)();
568+
return CPROVER_EXIT_SUCCESS;
559569
}
560570

561571
if(

0 commit comments

Comments
 (0)