@@ -125,7 +125,7 @@ int goto_instrument_parse_optionst::doit()
125
125
if (cmdline.args .size ()!=1 && cmdline.args .size ()!=2 )
126
126
{
127
127
help ();
128
- return CPROVER_EXIT_SUCCESS ;
128
+ return CPROVER_EXIT_USAGE_ERROR ;
129
129
}
130
130
131
131
eval_verbosity ();
@@ -716,7 +716,7 @@ int goto_instrument_parse_optionst::doit()
716
716
{
717
717
error () << " Failed to open output file "
718
718
<< cmdline.args [1 ] << eom;
719
- return CPROVER_EXIT_USAGE_ERROR ;
719
+ return CPROVER_EXIT_CONVERSION_FAILED ;
720
720
}
721
721
722
722
horn_encoding (goto_model, out);
@@ -748,13 +748,13 @@ int goto_instrument_parse_optionst::doit()
748
748
749
749
if (write_goto_binary (
750
750
cmdline.args [1 ], goto_model, get_message_handler ()))
751
- return CPROVER_EXIT_USAGE_ERROR ;
751
+ return CPROVER_EXIT_CONVERSION_FAILED ;
752
752
else
753
753
return CPROVER_EXIT_SUCCESS;
754
754
}
755
755
756
756
help ();
757
- return CPROVER_EXIT_SUCCESS ;
757
+ return CPROVER_EXIT_USAGE_ERROR ;
758
758
}
759
759
760
760
catch (const char *e)
@@ -769,8 +769,9 @@ int goto_instrument_parse_optionst::doit()
769
769
return CPROVER_EXIT_EXCEPTION_GOTO_INSTRUMENT;
770
770
}
771
771
772
- catch (int )
772
+ catch (int e )
773
773
{
774
+ error () << " Numeric exception : " << e << eom;
774
775
return CPROVER_EXIT_EXCEPTION_GOTO_INSTRUMENT;
775
776
}
776
777
0 commit comments