Skip to content

Commit 5019d02

Browse files
committed
goto-diff: reinstate --show-properties
This was wrongly removed in 3d8b0cd as the show-properties option is used to control goto-diff's default output. (This use of show-properties is quite different from the support in other cbmc or goto-instrument.)
1 parent d71e46c commit 5019d02

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/goto-diff/goto_diff_parse_options.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ void goto_diff_parse_optionst::get_command_line_options(optionst &options)
6464
// all checks supported by goto_check
6565
PARSE_OPTIONS_GOTO_CHECK(cmdline, options);
6666

67+
options.set_option("show-properties", cmdline.isset("show-properties"));
68+
6769
// Options for process_goto_program
6870
options.set_option("rewrite-union", true);
6971
}
@@ -224,6 +226,7 @@ void goto_diff_parse_optionst::help()
224226
"\n"
225227
"Diff options:\n"
226228
HELP_SHOW_GOTO_FUNCTIONS
229+
HELP_SHOW_PROPERTIES
227230
" --show-loops show the loops in the programs\n"
228231
" -u | --unified output unified diff\n"
229232
" --change-impact | \n"

src/goto-diff/goto_diff_parse_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class optionst;
3030
#define GOTO_DIFF_OPTIONS \
3131
"(json-ui)" \
3232
OPT_SHOW_GOTO_FUNCTIONS \
33+
OPT_SHOW_PROPERTIES \
3334
"(show-loops)" \
3435
OPT_GOTO_CHECK \
3536
OPT_COVER \

0 commit comments

Comments
 (0)