@@ -435,7 +435,7 @@ int cbmc_parse_optionst::doit()
435
435
return CPROVER_EXIT_EXCEPTION;
436
436
}
437
437
438
- catch (const std::string error_msg)
438
+ catch (const std::string & error_msg)
439
439
{
440
440
error () << error_msg << eom;
441
441
return CPROVER_EXIT_EXCEPTION;
@@ -589,7 +589,7 @@ bool cbmc_parse_optionst::set_properties()
589
589
return true ;
590
590
}
591
591
592
- catch (const std::string e)
592
+ catch (const std::string & e)
593
593
{
594
594
error () << e << eom;
595
595
return true ;
@@ -649,7 +649,7 @@ int cbmc_parse_optionst::get_goto_program(
649
649
return CPROVER_EXIT_EXCEPTION;
650
650
}
651
651
652
- catch (const std::string e)
652
+ catch (const std::string & e)
653
653
{
654
654
error () << e << eom;
655
655
return CPROVER_EXIT_EXCEPTION;
@@ -661,7 +661,7 @@ int cbmc_parse_optionst::get_goto_program(
661
661
return CPROVER_EXIT_EXCEPTION;
662
662
}
663
663
664
- catch (std::bad_alloc)
664
+ catch (const std::bad_alloc & )
665
665
{
666
666
error () << " Out of memory" << eom;
667
667
return CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY;
@@ -710,7 +710,7 @@ void cbmc_parse_optionst::preprocessing()
710
710
error () << e << eom;
711
711
}
712
712
713
- catch (const std::string e)
713
+ catch (const std::string & e)
714
714
{
715
715
error () << e << eom;
716
716
}
@@ -720,7 +720,7 @@ void cbmc_parse_optionst::preprocessing()
720
720
error () << " Numeric exception : " << e << eom;
721
721
}
722
722
723
- catch (std::bad_alloc)
723
+ catch (const std::bad_alloc & )
724
724
{
725
725
error () << " Out of memory" << eom;
726
726
exit (CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY);
@@ -844,7 +844,7 @@ bool cbmc_parse_optionst::process_goto_program(
844
844
return true ;
845
845
}
846
846
847
- catch (const std::string e)
847
+ catch (const std::string & e)
848
848
{
849
849
error () << e << eom;
850
850
return true ;
@@ -856,7 +856,7 @@ bool cbmc_parse_optionst::process_goto_program(
856
856
return true ;
857
857
}
858
858
859
- catch (std::bad_alloc)
859
+ catch (const std::bad_alloc & )
860
860
{
861
861
error () << " Out of memory" << eom;
862
862
exit (CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY);
0 commit comments