@@ -242,7 +242,7 @@ int goto_diff_parse_optionst::doit()
242
242
if (cmdline.isset (" version" ))
243
243
{
244
244
std::cout << CBMC_VERSION << ' \n ' ;
245
- return 0 ;
245
+ return CPROVER_EXIT_SUCCESS ;
246
246
}
247
247
248
248
//
@@ -264,7 +264,7 @@ int goto_diff_parse_optionst::doit()
264
264
if (cmdline.args .size ()!=2 )
265
265
{
266
266
error () << " Please provide two programs to compare" << eom;
267
- return 6 ;
267
+ return CPROVER_EXIT_INCORRECT_TASK ;
268
268
}
269
269
270
270
goto_modelt goto_model1, goto_model2;
@@ -282,7 +282,7 @@ int goto_diff_parse_optionst::doit()
282
282
{
283
283
show_loop_ids (get_ui (), goto_model1);
284
284
show_loop_ids (get_ui (), goto_model2);
285
- return true ;
285
+ return CPROVER_EXIT_SUCCESS ;
286
286
}
287
287
288
288
if (
@@ -299,7 +299,7 @@ int goto_diff_parse_optionst::doit()
299
299
get_message_handler (),
300
300
ui_message_handler.get_ui (),
301
301
cmdline.isset (" list-goto-functions" ));
302
- return 0 ;
302
+ return CPROVER_EXIT_SUCCESS ;
303
303
}
304
304
305
305
if (cmdline.isset (" change-impact" ) ||
@@ -318,7 +318,7 @@ int goto_diff_parse_optionst::doit()
318
318
impact_mode,
319
319
cmdline.isset (" compact-output" ));
320
320
321
- return 0 ;
321
+ return CPROVER_EXIT_SUCCESS ;
322
322
}
323
323
324
324
if (cmdline.isset (" unified" ) ||
@@ -328,15 +328,15 @@ int goto_diff_parse_optionst::doit()
328
328
u ();
329
329
u.output (std::cout);
330
330
331
- return 0 ;
331
+ return CPROVER_EXIT_SUCCESS ;
332
332
}
333
333
334
334
syntactic_difft sd (goto_model1, goto_model2, get_message_handler ());
335
335
sd.set_ui (get_ui ());
336
336
sd ();
337
337
sd.output_functions (std::cout);
338
338
339
- return 0 ;
339
+ return CPROVER_EXIT_SUCCESS ;
340
340
}
341
341
342
342
int goto_diff_parse_optionst::get_goto_program (
@@ -353,7 +353,7 @@ int goto_diff_parse_optionst::get_goto_program(
353
353
goto_model.symbol_table ,
354
354
goto_model.goto_functions ,
355
355
languages.get_message_handler ()))
356
- return 6 ;
356
+ return CPROVER_EXIT_INCORRECT_TASK ;
357
357
358
358
config.set (cmdline);
359
359
@@ -374,7 +374,7 @@ int goto_diff_parse_optionst::get_goto_program(
374
374
if (languages.parse () ||
375
375
languages.typecheck () ||
376
376
languages.final ())
377
- return 6 ;
377
+ return CPROVER_EXIT_INCORRECT_TASK ;
378
378
379
379
// we no longer need any parse trees or language files
380
380
languages.clear_parse ();
@@ -388,7 +388,7 @@ int goto_diff_parse_optionst::get_goto_program(
388
388
ui_message_handler);
389
389
390
390
if (process_goto_program (options, goto_model))
391
- return 6 ;
391
+ return CPROVER_EXIT_INTERNAL_ERROR ;
392
392
393
393
// if we had a second argument then we will handle it next
394
394
if (arg2!=" " )
0 commit comments