Skip to content

Commit

Permalink
Enable list-goto-functions in JBMC
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschrammel committed Jan 12, 2018
1 parent 9e1705f commit 2fabbd4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/jbmc/jbmc_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,14 @@ int jbmc_parse_optionst::get_goto_program(
}

// show it?
if(cmdline.isset("show-goto-functions"))
if(
cmdline.isset("show-goto-functions") ||
cmdline.isset("list-goto-functions"))
{
show_goto_functions(*goto_model, ui_message_handler.get_ui());
show_goto_functions(
*goto_model,
ui_message_handler.get_ui(),
cmdline.isset("list-goto-functions"));
return 0;
}

Expand Down
5 changes: 4 additions & 1 deletion src/jbmc/jbmc_parse_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class bmct;
class goto_functionst;
class optionst;

// clang-format off
#define JBMC_OPTIONS \
"(program-only)(preprocess)(slice-by-trace):" \
OPT_FUNCTIONS \
Expand All @@ -49,7 +50,8 @@ class optionst;
"(string-max-length):" \
"(string-max-input-length):" \
"(16)(32)(64)(LP64)(ILP64)(LLP64)(ILP32)(LP32)" \
"(show-goto-functions)(show-loops)" \
OPT_SHOW_GOTO_FUNCTIONS \
"(show-loops)" \
"(show-symbol-table)(show-parse-tree)(show-vcc)" \
"(show-properties)" \
"(drop-unused-functions)" \
Expand All @@ -66,6 +68,7 @@ class optionst;
"(java-unwind-enum-static)" \
"(localize-faults)(localize-faults-method):" \
OPT_GOTO_TRACE
// clang-format on

class jbmc_parse_optionst:
public parse_options_baset,
Expand Down

0 comments on commit 2fabbd4

Please sign in to comment.