Skip to content

Commit d39b6ed

Browse files
Use goto verifier for dimacs and SMT2 outfile in CBMC
1 parent cd94612 commit d39b6ed

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,23 @@ int cbmc_parse_optionst::doit()
558558
}
559559
}
560560

561+
if(
562+
options.get_bool_option("dimacs") || !options.get_option("outfile").empty())
563+
{
564+
if(!options.get_bool_option("paths"))
565+
{
566+
stop_on_fail_verifiert<multi_path_symex_checkert> verifier(
567+
options, ui_message_handler, goto_model);
568+
(void)verifier();
569+
return CPROVER_EXIT_SUCCESS;
570+
}
571+
}
572+
561573
std::unique_ptr<goto_verifiert> verifier = nullptr;
562574

563-
if(!options.get_bool_option("paths") && !options.is_set("cover"))
575+
if(
576+
!options.get_bool_option("paths") && !options.is_set("cover") &&
577+
!options.get_bool_option("dimacs") && options.get_option("outfile").empty())
564578
{
565579
if(options.get_bool_option("stop-on-fail"))
566580
{

0 commit comments

Comments
 (0)