Skip to content

Commit 04466cc

Browse files
authored
Merge pull request #5956 from tautschnig/symtab2gb-config
symtab2gb should populate configt
2 parents 1feb6e4 + 64a7ca9 commit 04466cc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

scripts/expected_doxygen_warnings.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ warning: Included by graph for 'goto_functions.h' not generated, too many nodes
2323
warning: Included by graph for 'goto_model.h' not generated, too many nodes (111), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2424
warning: Included by graph for 'arith_tools.h' not generated, too many nodes (181), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2525
warning: Included by graph for 'c_types.h' not generated, too many nodes (141), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
26-
warning: Included by graph for 'config.h' not generated, too many nodes (87), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
26+
warning: Included by graph for 'config.h' not generated, too many nodes (88), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2727
warning: Included by graph for 'exception_utils.h' not generated, too many nodes (61), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2828
warning: Included by graph for 'expr.h' not generated, too many nodes (87), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2929
warning: Included by graph for 'expr_util.h' not generated, too many nodes (61), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.

src/symtab2gb/symtab2gb_parse_options.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Author: Diffblue Ltd.
1717
#include <goto-programs/link_goto_model.h>
1818
#include <goto-programs/write_goto_binary.h>
1919
#include <json-symtab-language/json_symtab_language.h>
20+
21+
#include <util/config.h>
2022
#include <util/exception_utils.h>
2123
#include <util/exit_codes.h>
2224
#include <util/invariant.h>
@@ -81,6 +83,7 @@ static void run_symtab2gb(
8183
throw invalid_source_file_exceptiont{
8284
"failed to typecheck symbol table from file '" + symtab_filename + "'"};
8385
}
86+
config.set_from_symbol_table(symtab);
8487
goto_modelt goto_model{};
8588
goto_model.symbol_table = symtab;
8689
goto_convert(goto_model, message_handler);
@@ -110,6 +113,7 @@ int symtab2gb_parse_optionst::doit()
110113
{
111114
gb_filename = cmdline.get_value(SYMTAB2GB_OUT_FILE_OPT);
112115
}
116+
config.set(cmdline);
113117
run_symtab2gb(symtab_filenames, gb_filename);
114118
return CPROVER_EXIT_SUCCESS;
115119
}

0 commit comments

Comments
 (0)