@@ -541,122 +541,118 @@ int jbmc_parse_optionst::doit()
541
541
if (get_goto_program_ret != -1 )
542
542
return get_goto_program_ret;
543
543
544
+ if (
545
+ options.get_bool_option (" program-only" ) ||
546
+ options.get_bool_option (" show-vcc" ) ||
547
+ (options.get_bool_option (" symex-driven-lazy-loading" ) &&
548
+ (cmdline.isset (" show-symbol-table" ) || cmdline.isset (" list-symbols" ) ||
549
+ cmdline.isset (" show-goto-functions" ) ||
550
+ cmdline.isset (" list-goto-functions" ) ||
551
+ cmdline.isset (" show-properties" ) || cmdline.isset (" show-loops" ))))
544
552
{
545
- if (
546
- options.get_bool_option (" program-only" ) ||
547
- options.get_bool_option (" show-vcc" ) ||
548
- (options.get_bool_option (" symex-driven-lazy-loading" ) &&
549
- (cmdline.isset (" show-symbol-table" ) || cmdline.isset (" list-symbols" ) ||
550
- cmdline.isset (" show-goto-functions" ) ||
551
- cmdline.isset (" list-goto-functions" ) ||
552
- cmdline.isset (" show-properties" ) || cmdline.isset (" show-loops" ))))
553
+ if (options.get_bool_option (" paths" ))
553
554
{
554
- if (options.get_bool_option (" paths" ))
555
- {
556
- all_properties_verifiert<java_single_path_symex_only_checkert> verifier (
557
- options, ui_message_handler, *goto_model_ptr);
558
- (void )verifier ();
559
- }
560
- else
561
- {
562
- all_properties_verifiert<java_multi_path_symex_only_checkert> verifier (
563
- options, ui_message_handler, *goto_model_ptr);
564
- (void )verifier ();
565
- }
566
-
567
- if (options.get_bool_option (" symex-driven-lazy-loading" ))
568
- {
569
- // We can only output these after goto-symex has run.
570
- (void )show_loaded_symbols (*goto_model_ptr);
571
- (void )show_loaded_functions (*goto_model_ptr);
572
- }
573
-
574
- return CPROVER_EXIT_SUCCESS;
555
+ all_properties_verifiert<java_single_path_symex_only_checkert> verifier (
556
+ options, ui_message_handler, *goto_model_ptr);
557
+ (void )verifier ();
575
558
}
576
-
577
- if (
578
- options.get_bool_option (" dimacs" ) ||
579
- !options.get_option (" outfile" ).empty ())
559
+ else
580
560
{
581
- if (options.get_bool_option (" paths" ))
582
- {
583
- stop_on_fail_verifiert<java_single_path_symex_checkert> verifier (
584
- options, ui_message_handler, *goto_model_ptr);
585
- (void )verifier ();
586
- }
587
- else
588
- {
589
- stop_on_fail_verifiert<java_multi_path_symex_checkert> verifier (
590
- options, ui_message_handler, *goto_model_ptr);
591
- (void )verifier ();
592
- }
561
+ all_properties_verifiert<java_multi_path_symex_only_checkert> verifier (
562
+ options, ui_message_handler, *goto_model_ptr);
563
+ (void )verifier ();
564
+ }
593
565
594
- return CPROVER_EXIT_SUCCESS;
566
+ if (options.get_bool_option (" symex-driven-lazy-loading" ))
567
+ {
568
+ // We can only output these after goto-symex has run.
569
+ (void )show_loaded_symbols (*goto_model_ptr);
570
+ (void )show_loaded_functions (*goto_model_ptr);
595
571
}
596
572
597
- std::unique_ptr<goto_verifiert> verifier = nullptr ;
573
+ return CPROVER_EXIT_SUCCESS;
574
+ }
598
575
599
- if (
600
- options.get_bool_option (" stop-on-fail" ) &&
601
- options.get_bool_option (" paths" ))
576
+ if (
577
+ options.get_bool_option (" dimacs" ) || !options.get_option (" outfile" ).empty ())
578
+ {
579
+ if (options.get_bool_option (" paths" ))
602
580
{
603
- verifier = util_make_unique<
604
- stop_on_fail_verifiert<java_single_path_symex_checkert>>(
581
+ stop_on_fail_verifiert<java_single_path_symex_checkert> verifier (
605
582
options, ui_message_handler, *goto_model_ptr);
583
+ (void )verifier ();
606
584
}
607
- else if (
608
- options.get_bool_option (" stop-on-fail" ) &&
609
- !options.get_bool_option (" paths" ))
585
+ else
610
586
{
611
- if (options.get_bool_option (" localize-faults" ))
612
- {
613
- verifier =
614
- util_make_unique<stop_on_fail_verifier_with_fault_localizationt<
615
- java_multi_path_symex_checkert>>(
616
- options, ui_message_handler, *goto_model_ptr);
617
- }
618
- else
619
- {
620
- verifier = util_make_unique<
621
- stop_on_fail_verifiert<java_multi_path_symex_checkert>>(
587
+ stop_on_fail_verifiert<java_multi_path_symex_checkert> verifier (
588
+ options, ui_message_handler, *goto_model_ptr);
589
+ (void )verifier ();
590
+ }
591
+
592
+ return CPROVER_EXIT_SUCCESS;
593
+ }
594
+
595
+ std::unique_ptr<goto_verifiert> verifier = nullptr ;
596
+
597
+ if (
598
+ options.get_bool_option (" stop-on-fail" ) && options.get_bool_option (" paths" ))
599
+ {
600
+ verifier =
601
+ util_make_unique<stop_on_fail_verifiert<java_single_path_symex_checkert>>(
602
+ options, ui_message_handler, *goto_model_ptr);
603
+ }
604
+ else if (
605
+ options.get_bool_option (" stop-on-fail" ) &&
606
+ !options.get_bool_option (" paths" ))
607
+ {
608
+ if (options.get_bool_option (" localize-faults" ))
609
+ {
610
+ verifier =
611
+ util_make_unique<stop_on_fail_verifier_with_fault_localizationt<
612
+ java_multi_path_symex_checkert>>(
622
613
options, ui_message_handler, *goto_model_ptr);
623
- }
624
614
}
625
- else if (
626
- !options.get_bool_option (" stop-on-fail" ) &&
627
- options.get_bool_option (" paths" ))
615
+ else
628
616
{
629
- verifier = util_make_unique<all_properties_verifier_with_trace_storaget<
630
- java_single_path_symex_checkert >>(
617
+ verifier = util_make_unique<
618
+ stop_on_fail_verifiert<java_multi_path_symex_checkert >>(
631
619
options, ui_message_handler, *goto_model_ptr);
632
620
}
633
- else if (
634
- !options.get_bool_option (" stop-on-fail" ) &&
635
- !options.get_bool_option (" paths" ))
621
+ }
622
+ else if (
623
+ !options.get_bool_option (" stop-on-fail" ) &&
624
+ options.get_bool_option (" paths" ))
625
+ {
626
+ verifier = util_make_unique<all_properties_verifier_with_trace_storaget<
627
+ java_single_path_symex_checkert>>(
628
+ options, ui_message_handler, *goto_model_ptr);
629
+ }
630
+ else if (
631
+ !options.get_bool_option (" stop-on-fail" ) &&
632
+ !options.get_bool_option (" paths" ))
633
+ {
634
+ if (options.get_bool_option (" localize-faults" ))
636
635
{
637
- if (options.get_bool_option (" localize-faults" ))
638
- {
639
- verifier =
640
- util_make_unique<all_properties_verifier_with_fault_localizationt<
641
- java_multi_path_symex_checkert>>(
642
- options, ui_message_handler, *goto_model_ptr);
643
- }
644
- else
645
- {
646
- verifier = util_make_unique<all_properties_verifier_with_trace_storaget<
636
+ verifier =
637
+ util_make_unique<all_properties_verifier_with_fault_localizationt<
647
638
java_multi_path_symex_checkert>>(
648
639
options, ui_message_handler, *goto_model_ptr);
649
- }
650
640
}
651
641
else
652
642
{
653
- UNREACHABLE;
643
+ verifier = util_make_unique<all_properties_verifier_with_trace_storaget<
644
+ java_multi_path_symex_checkert>>(
645
+ options, ui_message_handler, *goto_model_ptr);
654
646
}
655
-
656
- const resultt result = (*verifier)();
657
- verifier->report ();
658
- return result_to_exit_code (result);
659
647
}
648
+ else
649
+ {
650
+ UNREACHABLE;
651
+ }
652
+
653
+ const resultt result = (*verifier)();
654
+ verifier->report ();
655
+ return result_to_exit_code (result);
660
656
}
661
657
662
658
int jbmc_parse_optionst::get_goto_program (
0 commit comments