Skip to content

Commit fb14e9f

Browse files
Use goto verifier for dimacs and SMT2 outfile in JBMC
1 parent 2789dba commit fb14e9f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,25 @@ int jbmc_parse_optionst::doit()
590590
}
591591
}
592592

593+
if(
594+
options.get_bool_option("dimacs") ||
595+
!options.get_option("outfile").empty())
596+
{
597+
if(!options.get_bool_option("paths"))
598+
{
599+
stop_on_fail_verifiert<multi_path_symex_checkert> verifier(
600+
options, ui_message_handler, goto_model);
601+
(void)verifier();
602+
return CPROVER_EXIT_SUCCESS;
603+
}
604+
}
605+
593606
std::unique_ptr<goto_verifiert> verifier = nullptr;
594607

595-
if(!options.get_bool_option("paths") && !options.is_set("cover"))
608+
if(
609+
!options.get_bool_option("paths") && !options.is_set("cover") &&
610+
!options.get_bool_option("dimacs") &&
611+
options.get_option("outfile").empty())
596612
{
597613
if(options.get_bool_option("stop-on-fail"))
598614
{

0 commit comments

Comments
 (0)