Skip to content

Commit 8606554

Browse files
Use goto verifier for stop-on-fail in CBMC
1 parent 24b8f5d commit 8606554

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Author: Daniel Kroening, [email protected]
2020
#include <util/exception_utils.h>
2121
#include <util/exit_codes.h>
2222
#include <util/invariant.h>
23+
#include <util/make_unique.h>
2324
#include <util/unicode.h>
2425
#include <util/version.h>
2526

@@ -36,6 +37,7 @@ Author: Daniel Kroening, [email protected]
3637
#include <goto-checker/multi_path_symex_checker.h>
3738
#include <goto-checker/multi_path_symex_only_checker.h>
3839
#include <goto-checker/properties.h>
40+
#include <goto-checker/stop_on_fail_verifier.h>
3941

4042
#include <goto-programs/adjust_float_expressions.h>
4143
#include <goto-programs/initialize_goto_model.h>
@@ -560,7 +562,13 @@ int cbmc_parse_optionst::doit()
560562

561563
if(!options.get_bool_option("paths") && !options.is_set("cover"))
562564
{
563-
if(!options.get_bool_option("stop-on-fail"))
565+
if(options.get_bool_option("stop-on-fail"))
566+
{
567+
verifier =
568+
util_make_unique<stop_on_fail_verifiert<multi_path_symex_checkert>>(
569+
options, ui_message_handler, goto_model);
570+
}
571+
else
564572
{
565573
verifier = util_make_unique<
566574
all_properties_verifier_with_trace_storaget<multi_path_symex_checkert>>(

0 commit comments

Comments
 (0)