34
34
#include < cpp/cprover_library.h>
35
35
36
36
#include < goto-checker/all_properties_verifier.h>
37
+ #include < goto-checker/all_properties_verifier_with_fault_localization.h>
37
38
#include < goto-checker/all_properties_verifier_with_trace_storage.h>
38
39
#include < goto-checker/bmc_util.h>
39
40
#include < goto-checker/cover_goals_verifier_with_trace_storage.h>
43
44
#include < goto-checker/single_path_symex_checker.h>
44
45
#include < goto-checker/single_path_symex_only_checker.h>
45
46
#include < goto-checker/stop_on_fail_verifier.h>
47
+ #include < goto-checker/stop_on_fail_verifier_with_fault_localization.h>
46
48
47
49
#include < goto-programs/adjust_float_expressions.h>
48
50
#include < goto-programs/initialize_goto_model.h>
@@ -625,9 +627,19 @@ int cbmc_parse_optionst::doit()
625
627
}
626
628
else
627
629
{
628
- verifier =
629
- util_make_unique<stop_on_fail_verifiert<multi_path_symex_checkert>>(
630
- options, ui_message_handler, goto_model);
630
+ if (options.get_bool_option (" localize-faults" ))
631
+ {
632
+ verifier =
633
+ util_make_unique<stop_on_fail_verifier_with_fault_localizationt<
634
+ multi_path_symex_checkert>>(
635
+ options, ui_message_handler, goto_model);
636
+ }
637
+ else
638
+ {
639
+ verifier =
640
+ util_make_unique<stop_on_fail_verifiert<multi_path_symex_checkert>>(
641
+ options, ui_message_handler, goto_model);
642
+ }
631
643
}
632
644
}
633
645
else
@@ -639,8 +651,20 @@ int cbmc_parse_optionst::doit()
639
651
}
640
652
else
641
653
{
642
- verifier = util_make_unique<all_properties_verifier_with_trace_storaget<
643
- multi_path_symex_checkert>>(options, ui_message_handler, goto_model);
654
+ if (options.get_bool_option (" localize-faults" ))
655
+ {
656
+ verifier =
657
+ util_make_unique<all_properties_verifier_with_fault_localizationt<
658
+ multi_path_symex_checkert>>(
659
+ options, ui_message_handler, goto_model);
660
+ }
661
+ else
662
+ {
663
+ verifier =
664
+ util_make_unique<all_properties_verifier_with_trace_storaget<
665
+ multi_path_symex_checkert>>(
666
+ options, ui_message_handler, goto_model);
667
+ }
644
668
}
645
669
}
646
670
}
0 commit comments