Skip to content

Commit fe2448e

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 cba7647 commit fe2448e

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
@@ -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,22 @@ 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+
std::unique_ptr<goto_verifiert> verifier;
564+
if(options.get_bool_option("paths"))
563565
{
564-
all_properties_verifiert<multi_path_symex_only_checkert> verifier(
566+
verifier = util_make_unique<
567+
all_properties_verifiert<single_path_symex_only_checkert>>(
565568
options, ui_message_handler, goto_model);
566-
(void)verifier();
567-
return CPROVER_EXIT_SUCCESS;
568569
}
570+
else
571+
{
572+
verifier = util_make_unique<
573+
all_properties_verifiert<multi_path_symex_only_checkert>>(
574+
options, ui_message_handler, goto_model);
575+
}
576+
577+
(void)(*verifier)();
578+
return CPROVER_EXIT_SUCCESS;
569579
}
570580

571581
if(

0 commit comments

Comments
 (0)