@@ -417,7 +417,7 @@ int jbmc_parse_optionst::doit()
417
417
if (cmdline.isset (" version" ))
418
418
{
419
419
std::cout << CBMC_VERSION << ' \n ' ;
420
- return 0 ; // should contemplate EX_OK from sysexits.h
420
+ return CPROVER_EXIT_SUCCESS;
421
421
}
422
422
423
423
messaget::eval_verbosity (
@@ -469,7 +469,7 @@ int jbmc_parse_optionst::doit()
469
469
if (cmdline.args .size ()!=1 )
470
470
{
471
471
log .error () << " Please give exactly one source file" << messaget::eom;
472
- return 6 ;
472
+ return CPROVER_EXIT_INCORRECT_TASK ;
473
473
}
474
474
475
475
std::string filename=cmdline.args [0 ];
@@ -484,7 +484,7 @@ int jbmc_parse_optionst::doit()
484
484
{
485
485
log .error () << " failed to open input file `" << filename << " '"
486
486
<< messaget::eom;
487
- return 6 ;
487
+ return CPROVER_EXIT_INCORRECT_TASK ;
488
488
}
489
489
490
490
std::unique_ptr<languaget> language=
@@ -494,7 +494,7 @@ int jbmc_parse_optionst::doit()
494
494
{
495
495
log .error () << " failed to figure out type of file `" << filename << " '"
496
496
<< messaget::eom;
497
- return 6 ;
497
+ return CPROVER_EXIT_INCORRECT_TASK ;
498
498
}
499
499
500
500
language->set_language_options (options);
@@ -505,11 +505,11 @@ int jbmc_parse_optionst::doit()
505
505
if (language->parse (infile, filename))
506
506
{
507
507
log .error () << " PARSING ERROR" << messaget::eom;
508
- return 6 ;
508
+ return CPROVER_EXIT_PARSE_ERROR ;
509
509
}
510
510
511
511
language->show_parse (std::cout);
512
- return 0 ;
512
+ return CPROVER_EXIT_SUCCESS ;
513
513
}
514
514
515
515
object_factory_params.set (options);
@@ -520,7 +520,7 @@ int jbmc_parse_optionst::doit()
520
520
if (cmdline.args .empty ())
521
521
{
522
522
log .error () << " Please provide a program to verify" << messaget::eom;
523
- return 6 ;
523
+ return CPROVER_EXIT_INCORRECT_TASK ;
524
524
}
525
525
526
526
if (cmdline.args .size () != 1 )
@@ -531,7 +531,7 @@ int jbmc_parse_optionst::doit()
531
531
" or '--lazy-methods-extra-entry-point "
532
532
" somepackage.SomeClass.method' along with '--classpath'"
533
533
<< messaget::eom;
534
- return 6 ;
534
+ return CPROVER_EXIT_INCORRECT_TASK ;
535
535
}
536
536
537
537
std::unique_ptr<abstract_goto_modelt> goto_model_ptr;
@@ -689,7 +689,7 @@ int jbmc_parse_optionst::get_goto_program(
689
689
goto_model_ptr = lazy_goto_modelt::process_whole_model_and_freeze (
690
690
std::move (lazy_goto_model));
691
691
if (goto_model_ptr == nullptr )
692
- return 6 ;
692
+ return CPROVER_EXIT_INTERNAL_ERROR ;
693
693
694
694
goto_modelt &goto_model = dynamic_cast <goto_modelt &>(*goto_model_ptr);
695
695
@@ -712,7 +712,7 @@ int jbmc_parse_optionst::get_goto_program(
712
712
if (!lazy_goto_model.symbol_table .has_symbol (goto_functionst::entry_point ()))
713
713
{
714
714
log .error () << " the program has no entry point" << messaget::eom;
715
- return 6 ;
715
+ return CPROVER_EXIT_INCORRECT_TASK ;
716
716
}
717
717
718
718
if (cmdline.isset (" validate-goto-model" ))
0 commit comments