Skip to content

Commit 2789dba

Browse files
Use goto verifier for dimacs and SMT2 outfile in CBMC
1 parent 781ab0c commit 2789dba

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
@@ -573,9 +573,23 @@ int cbmc_parse_optionst::doit()
573573
}
574574
}
575575

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

578-
if(!options.get_bool_option("paths") && !options.is_set("cover"))
590+
if(
591+
!options.get_bool_option("paths") && !options.is_set("cover") &&
592+
!options.get_bool_option("dimacs") && options.get_option("outfile").empty())
579593
{
580594
if(options.get_bool_option("stop-on-fail"))
581595
{

0 commit comments

Comments
 (0)