Skip to content

Commit f1c6488

Browse files
Use goto verifier for program-only and show-vcc in CBMC
1 parent 79bde98 commit f1c6488

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ Author: Daniel Kroening, [email protected]
3030

3131
#include <cpp/cprover_library.h>
3232

33+
#include <goto-checker/all_properties_verifier.h>
3334
#include <goto-checker/bmc_util.h>
35+
#include <goto-checker/multi_path_symex_only_checker.h>
36+
#include <goto-checker/properties.h>
3437

3538
#include <goto-programs/adjust_float_expressions.h>
3639
#include <goto-programs/initialize_goto_model.h>
@@ -553,6 +556,19 @@ int cbmc_parse_optionst::doit()
553556
goto_model.validate(validation_modet::INVARIANT);
554557
}
555558

559+
if(
560+
options.get_bool_option("program-only") ||
561+
options.get_bool_option("show-vcc"))
562+
{
563+
if(!options.get_bool_option("paths"))
564+
{
565+
all_properties_verifiert<multi_path_symex_only_checkert> verifier(
566+
options, ui_message_handler, goto_model);
567+
(void)verifier();
568+
return CPROVER_EXIT_SUCCESS;
569+
}
570+
}
571+
556572
return bmct::do_language_agnostic_bmc(
557573
options, goto_model, ui_message_handler);
558574
}

0 commit comments

Comments
 (0)