File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ int cbmc_parse_optionst::doit()
557
557
catch (const char *error_msg)
558
558
{
559
559
error () << error_msg << eom;
560
- return CPROVER_EXIT_USAGE_ERROR; // should contemplate EX_SOFTWARE from sysexits.h
560
+ return CPROVER_EXIT_EXCEPTION;
561
561
}
562
562
563
563
prop_convt &prop_conv=cbmc_solver->prop_conv ();
@@ -595,8 +595,9 @@ bool cbmc_parse_optionst::set_properties()
595
595
return true ;
596
596
}
597
597
598
- catch (int )
598
+ catch (int e )
599
599
{
600
+ error () << " Numeric exception : " << e << eom;
600
601
return true ;
601
602
}
602
603
@@ -654,8 +655,9 @@ int cbmc_parse_optionst::get_goto_program(
654
655
return CPROVER_EXIT_EXCEPTION;
655
656
}
656
657
657
- catch (int )
658
+ catch (int e )
658
659
{
660
+ error () << " Numeric exception : " << e << eom;
659
661
return CPROVER_EXIT_EXCEPTION;
660
662
}
661
663
@@ -713,13 +715,15 @@ void cbmc_parse_optionst::preprocessing()
713
715
error () << e << eom;
714
716
}
715
717
716
- catch (int )
718
+ catch (int e )
717
719
{
720
+ error () << " Numeric exception : " << e << eom;
718
721
}
719
722
720
723
catch (std::bad_alloc)
721
724
{
722
725
error () << " Out of memory" << eom;
726
+ exit (CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY);
723
727
}
724
728
}
725
729
@@ -846,14 +850,16 @@ bool cbmc_parse_optionst::process_goto_program(
846
850
return true ;
847
851
}
848
852
849
- catch (int )
853
+ catch (int e )
850
854
{
855
+ error () << " Numeric exception : " << e << eom;
851
856
return true ;
852
857
}
853
858
854
859
catch (std::bad_alloc)
855
860
{
856
861
error () << " Out of memory" << eom;
862
+ exit (CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY);
857
863
return true ;
858
864
}
859
865
You can’t perform that action at this time.
0 commit comments