@@ -560,32 +560,11 @@ int cbmc_parse_optionst::doit()
560
560
561
561
bool cbmc_parse_optionst::set_properties ()
562
562
{
563
- try
564
- {
565
- if (cmdline.isset (" claim" )) // will go away
566
- ::set_properties (goto_model, cmdline.get_values(" claim" ));
567
-
568
- if (cmdline.isset (" property" )) // use this one
569
- ::set_properties (goto_model, cmdline.get_values(" property" ));
570
- }
571
-
572
- catch (const char *e)
573
- {
574
- error () << e << eom;
575
- return true ;
576
- }
577
-
578
- catch (const std::string &e)
579
- {
580
- error () << e << eom;
581
- return true ;
582
- }
563
+ if (cmdline.isset (" claim" )) // will go away
564
+ ::set_properties (goto_model, cmdline.get_values(" claim" ));
583
565
584
- catch (int e)
585
- {
586
- error () << " Numeric exception : " << e << eom;
587
- return true ;
588
- }
566
+ if (cmdline.isset (" property" )) // use this one
567
+ ::set_properties (goto_model, cmdline.get_values(" property" ));
589
568
590
569
return false ;
591
570
}
@@ -644,7 +623,6 @@ int cbmc_parse_optionst::get_goto_program(
644
623
645
624
void cbmc_parse_optionst::preprocessing (const optionst &options)
646
625
{
647
- try
648
626
{
649
627
if (cmdline.args .size ()!=1 )
650
628
{
@@ -676,35 +654,13 @@ void cbmc_parse_optionst::preprocessing(const optionst &options)
676
654
if (language->preprocess (infile, filename, std::cout))
677
655
error () << " PREPROCESSING ERROR" << eom;
678
656
}
679
-
680
- catch (const char *e)
681
- {
682
- error () << e << eom;
683
- }
684
-
685
- catch (const std::string &e)
686
- {
687
- error () << e << eom;
688
- }
689
-
690
- catch (int e)
691
- {
692
- error () << " Numeric exception : " << e << eom;
693
- }
694
-
695
- catch (const std::bad_alloc &)
696
- {
697
- error () << " Out of memory" << eom;
698
- exit (CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY);
699
- }
700
657
}
701
658
702
659
bool cbmc_parse_optionst::process_goto_program (
703
660
goto_modelt &goto_model,
704
661
const optionst &options,
705
662
messaget &log)
706
663
{
707
- try
708
664
{
709
665
// Remove inline assembler; this needs to happen before
710
666
// adding the library.
@@ -832,31 +788,6 @@ bool cbmc_parse_optionst::process_goto_program(
832
788
remove_skip (goto_model);
833
789
}
834
790
835
- catch (const char *e)
836
- {
837
- log .error () << e << eom;
838
- return true ;
839
- }
840
-
841
- catch (const std::string &e)
842
- {
843
- log .error () << e << eom;
844
- return true ;
845
- }
846
-
847
- catch (int e)
848
- {
849
- log .error () << " Numeric exception : " << e << eom;
850
- return true ;
851
- }
852
-
853
- catch (const std::bad_alloc &)
854
- {
855
- log .error () << " Out of memory" << eom;
856
- exit (CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY);
857
- return true ;
858
- }
859
-
860
791
return false ;
861
792
}
862
793
0 commit comments