File tree 2 files changed +13
-3
lines changed 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -636,9 +636,14 @@ int cbmc_parse_optionst::get_goto_program(
636
636
}
637
637
638
638
// show it?
639
- if (cmdline.isset (" show-goto-functions" ))
639
+ if (
640
+ cmdline.isset (" show-goto-functions" ) ||
641
+ cmdline.isset (" list-goto-functions" ))
640
642
{
641
- show_goto_functions (goto_model, ui_message_handler.get_ui ());
643
+ show_goto_functions (
644
+ goto_model,
645
+ ui_message_handler.get_ui (),
646
+ cmdline.isset (" list-goto-functions" ));
642
647
return CPROVER_EXIT_SUCCESS;
643
648
}
644
649
@@ -897,6 +902,7 @@ int cbmc_parse_optionst::do_bmc(bmct &bmc)
897
902
// / display command line help
898
903
void cbmc_parse_optionst::help ()
899
904
{
905
+ // clang-format off
900
906
std::cout <<
901
907
" \n "
902
908
" * * CBMC " CBMC_VERSION " - Copyright (C) 2001-2017 " ;
@@ -1025,4 +1031,5 @@ void cbmc_parse_optionst::help()
1025
1031
HELP_GOTO_TRACE
1026
1032
" --verbosity # verbosity level\n "
1027
1033
" \n " ;
1034
+ // clang-format on
1028
1035
}
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class bmct;
26
26
class goto_functionst ;
27
27
class optionst ;
28
28
29
+ // clang-format off
29
30
#define CBMC_OPTIONS \
30
31
" (program-only)(preprocess)(slice-by-trace):" \
31
32
OPT_FUNCTIONS \
@@ -50,7 +51,8 @@ class optionst;
50
51
" (string-max-input-length):" \
51
52
" (aig)(16)(32)(64)(LP64)(ILP64)(LLP64)(ILP32)(LP32)" \
52
53
" (little-endian)(big-endian)" \
53
- " (show-goto-functions)(show-loops)" \
54
+ OPT_SHOW_GOTO_FUNCTIONS \
55
+ " (show-loops)" \
54
56
" (show-symbol-table)(show-parse-tree)(show-vcc)" \
55
57
" (show-claims)(claim):(show-properties)" \
56
58
" (drop-unused-functions)" \
@@ -69,6 +71,7 @@ class optionst;
69
71
" (localize-faults)(localize-faults-method):" \
70
72
OPT_GOTO_TRACE \
71
73
" (fixedbv)(floatbv)(all-claims)(all-properties)" // legacy, and will eventually disappear // NOLINT(whitespace/line_length)
74
+ // clang-format on
72
75
73
76
class cbmc_parse_optionst :
74
77
public parse_options_baset,
You can’t perform that action at this time.
0 commit comments