Skip to content

Commit 875e596

Browse files
Use goto verifier for --paths with show-vcc and -program-only
1 parent 518ad9d commit 875e596

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
@@ -38,6 +38,7 @@ Author: Daniel Kroening, [email protected]
3838
#include <goto-checker/multi_path_symex_checker.h>
3939
#include <goto-checker/multi_path_symex_only_checker.h>
4040
#include <goto-checker/properties.h>
41+
#include <goto-checker/single_path_symex_only_checker.h>
4142
#include <goto-checker/stop_on_fail_verifier.h>
4243

4344
#include <goto-programs/adjust_float_expressions.h>
@@ -551,13 +552,22 @@ int cbmc_parse_optionst::doit()
551552
options.get_bool_option("program-only") ||
552553
options.get_bool_option("show-vcc"))
553554
{
554-
if(!options.get_bool_option("paths"))
555+
std::unique_ptr<goto_verifiert> verifier;
556+
if(options.get_bool_option("paths"))
555557
{
556-
all_properties_verifiert<multi_path_symex_only_checkert> verifier(
558+
verifier = util_make_unique<
559+
all_properties_verifiert<single_path_symex_only_checkert>>(
557560
options, ui_message_handler, goto_model);
558-
(void)verifier();
559-
return CPROVER_EXIT_SUCCESS;
560561
}
562+
else
563+
{
564+
verifier = util_make_unique<
565+
all_properties_verifiert<multi_path_symex_only_checkert>>(
566+
options, ui_message_handler, goto_model);
567+
}
568+
569+
(void)(*verifier)();
570+
return CPROVER_EXIT_SUCCESS;
561571
}
562572

563573
if(

0 commit comments

Comments
 (0)