29
29
#include < ansi-c/ansi_c_language.h>
30
30
31
31
#include < goto-checker/all_properties_verifier.h>
32
+ #include < goto-checker/all_properties_verifier_with_fault_localization.h>
32
33
#include < goto-checker/all_properties_verifier_with_trace_storage.h>
33
34
#include < goto-checker/stop_on_fail_verifier.h>
35
+ #include < goto-checker/stop_on_fail_verifier_with_fault_localization.h>
34
36
35
37
#include < goto-programs/adjust_float_expressions.h>
36
38
#include < goto-programs/lazy_goto_model.h>
@@ -613,9 +615,19 @@ int jbmc_parse_optionst::doit()
613
615
}
614
616
else
615
617
{
616
- verifier = util_make_unique<
617
- stop_on_fail_verifiert<java_multi_path_symex_checkert>>(
618
- options, ui_message_handler, goto_model);
618
+ if (options.get_bool_option (" localize-faults" ))
619
+ {
620
+ verifier =
621
+ util_make_unique<stop_on_fail_verifier_with_fault_localizationt<
622
+ java_multi_path_symex_checkert>>(
623
+ options, ui_message_handler, goto_model);
624
+ }
625
+ else
626
+ {
627
+ verifier = util_make_unique<
628
+ stop_on_fail_verifiert<java_multi_path_symex_checkert>>(
629
+ options, ui_message_handler, goto_model);
630
+ }
619
631
}
620
632
}
621
633
else
@@ -629,10 +641,20 @@ int jbmc_parse_optionst::doit()
629
641
}
630
642
else
631
643
{
632
- verifier =
633
- util_make_unique<all_properties_verifier_with_trace_storaget<
634
- java_multi_path_symex_checkert>>(
635
- options, ui_message_handler, goto_model);
644
+ if (options.get_bool_option (" localize-faults" ))
645
+ {
646
+ verifier =
647
+ util_make_unique<all_properties_verifier_with_fault_localizationt<
648
+ java_multi_path_symex_checkert>>(
649
+ options, ui_message_handler, goto_model);
650
+ }
651
+ else
652
+ {
653
+ verifier =
654
+ util_make_unique<all_properties_verifier_with_trace_storaget<
655
+ java_multi_path_symex_checkert>>(
656
+ options, ui_message_handler, goto_model);
657
+ }
636
658
}
637
659
}
638
660
}
0 commit comments