Skip to content

Commit 4549514

Browse files
Use goto verifier for dimacs and SMT2 outfile in CBMC
1 parent cd772bb commit 4549514

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,25 @@ int cbmc_parse_optionst::doit()
573573
}
574574
}
575575

576+
if(
577+
options.get_bool_option("dimacs") ||
578+
!options.get_option("outfile").empty())
579+
{
580+
if(!options.get_bool_option("paths"))
581+
{
582+
stop_on_fail_verifiert<multi_path_symex_checkert> verifier(
583+
options, ui_message_handler, goto_model);
584+
(void)verifier();
585+
return CPROVER_EXIT_SUCCESS;
586+
}
587+
}
588+
576589
std::unique_ptr<goto_verifiert> verifier = nullptr;
577590

578-
if(!options.get_bool_option("paths") && !options.is_set("cover"))
591+
if(
592+
!options.get_bool_option("paths") && !options.is_set("cover") &&
593+
!options.get_bool_option("dimacs") &&
594+
options.get_option("outfile").empty())
579595
{
580596
if(options.get_bool_option("stop-on-fail"))
581597
{

0 commit comments

Comments
 (0)