Skip to content

Commit cd94612

Browse files
Use goto verifier for stop-on-fail in JBMC
1 parent 8606554 commit cd94612

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@ Author: Daniel Kroening, [email protected]
1919
#include <util/config.h>
2020
#include <util/exit_codes.h>
2121
#include <util/invariant.h>
22+
#include <util/make_unique.h>
2223
#include <util/unicode.h>
23-
#include <util/xml.h>
2424
#include <util/version.h>
25+
#include <util/xml.h>
2526

2627
#include <langapi/language.h>
2728

2829
#include <ansi-c/ansi_c_language.h>
2930

3031
#include <goto-checker/all_properties_verifier.h>
3132
#include <goto-checker/all_properties_verifier_with_trace_storage.h>
33+
#include <goto-checker/stop_on_fail_verifier.h>
3234

3335
#include <goto-programs/adjust_float_expressions.h>
3436
#include <goto-programs/lazy_goto_model.h>
@@ -585,7 +587,13 @@ int jbmc_parse_optionst::doit()
585587

586588
if(!options.get_bool_option("paths") && !options.is_set("cover"))
587589
{
588-
if(!options.get_bool_option("stop-on-fail"))
590+
if(options.get_bool_option("stop-on-fail"))
591+
{
592+
verifier = util_make_unique<
593+
stop_on_fail_verifiert<java_multi_path_symex_checkert>>(
594+
options, ui_message_handler, goto_model);
595+
}
596+
else
589597
{
590598
verifier = util_make_unique<all_properties_verifier_with_trace_storaget<
591599
java_multi_path_symex_checkert>>(

0 commit comments

Comments
 (0)