Skip to content

Commit c188986

Browse files
authored
Merge pull request #1957 from smowton/smowton/cleanup/show-goto-functions-documentation
Clarify slightly that show-symbol-table et al are restricted to loaded symbols
2 parents 0b17511 + 0759129 commit c188986

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

src/cbmc/cbmc_parse_options.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ void cbmc_parse_optionst::help()
942942
"\n"
943943
"Program representations:\n"
944944
" --show-parse-tree show parse tree\n"
945-
" --show-symbol-table show symbol table\n"
945+
" --show-symbol-table show loaded symbol table\n"
946946
HELP_SHOW_GOTO_FUNCTIONS
947947
" --drop-unused-functions drop functions trivially unreachable from main function\n" // NOLINT(*)
948948
"\n"

src/clobber/clobber_parse_options.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void clobber_parse_optionst::help()
398398
" --big-endian allow big-endian word-byte conversions\n"
399399
" --unsigned-char make \"char\" unsigned by default\n"
400400
" --show-parse-tree show parse tree\n"
401-
" --show-symbol-table show symbol table\n"
401+
" --show-symbol-table show loaded symbol table\n"
402402
HELP_SHOW_GOTO_FUNCTIONS
403403
" --ppc-macos set MACOS/PPC architecture\n"
404404
" --mm model set memory model (default: sc)\n"

src/goto-analyzer/goto_analyzer_parse_options.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ void goto_analyzer_parse_optionst::help()
896896
"\n"
897897
"Program representations:\n"
898898
" --show-parse-tree show parse tree\n"
899-
" --show-symbol-table show symbol table\n"
899+
" --show-symbol-table show loaded symbol table\n"
900900
HELP_SHOW_GOTO_FUNCTIONS
901901
HELP_SHOW_PROPERTIES
902902
"\n"

src/goto-instrument/goto_instrument_parse_options.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ void goto_instrument_parse_optionst::help()
14801480
"Diagnosis:\n"
14811481
" --show-loops show the loops in the program\n"
14821482
HELP_SHOW_PROPERTIES
1483-
" --show-symbol-table show symbol table\n"
1483+
" --show-symbol-table show loaded symbol table\n"
14841484
" --list-symbols list symbols with type information\n"
14851485
HELP_SHOW_GOTO_FUNCTIONS
14861486
" --drop-unused-functions drop functions trivially unreachable from main function\n" // NOLINT(*)

src/goto-programs/show_goto_functions.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class goto_functionst;
2424
"(list-goto-functions)"
2525

2626
#define HELP_SHOW_GOTO_FUNCTIONS \
27-
" --show-goto-functions show goto program\n" \
28-
" --list-goto-functions list goto functions\n"
27+
" --show-goto-functions show loaded goto program\n" \
28+
" --list-goto-functions list loaded goto functions\n"
2929
// clang-format on
3030

3131
void show_goto_functions(

src/java_bytecode/java_bytecode_language.h

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Author: Daniel Kroening, [email protected]
5252
" --java-cp-include-files regexp or JSON list of files to load (with '@' prefix)\n" /* NOLINT(*) */ \
5353
" --lazy-methods only translate methods that appear to be reachable from\n" /* NOLINT(*) */ \
5454
" the --function entry point or main class\n" /* NOLINT(*) */ \
55+
" Note --show-symbol-table/goto-functions/properties output\n"/* NOLINT(*) */ \
56+
" will be restricted to loaded methods in this case\n" /* NOLINT(*) */ \
5557
" --lazy-methods-extra-entry-point METHODNAME\n" /* NOLINT(*) */ \
5658
" treat METHODNAME as a possible program entry point for\n" /* NOLINT(*) */ \
5759
" the purpose of lazy method loading\n" /* NOLINT(*) */ \

src/jbmc/jbmc_parse_options.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ void jbmc_parse_optionst::help()
10271027
"\n"
10281028
"Program representations:\n"
10291029
" --show-parse-tree show parse tree\n"
1030-
" --show-symbol-table show symbol table\n"
1030+
" --show-symbol-table show loaded symbol table\n"
10311031
HELP_SHOW_GOTO_FUNCTIONS
10321032
" --drop-unused-functions drop functions trivially unreachable from main function\n" // NOLINT(*)
10331033
"\n"
@@ -1050,6 +1050,9 @@ void jbmc_parse_optionst::help()
10501050
" --java-unwind-enum-static try to unwind loops in static initialization of enums\n" // NOLINT(*)
10511051
// Currently only supported in the JBMC frontend:
10521052
" --symex-driven-lazy-loading only load functions when first entered by symbolic execution\n" // NOLINT(*)
1053+
" Note --show-symbol-table/goto-functions/properties output\n" // NOLINT(*)
1054+
" will be restricted to loaded methods in this case, and only\n" // NOLINT(*)
1055+
" output after the symex phase\n"
10531056
"\n"
10541057
"BMC options:\n"
10551058
HELP_BMC

0 commit comments

Comments
 (0)