Skip to content

Commit c4ed1ae

Browse files
Revert security-scanner version of recording symbol table
Go back to non-virtual symbol_tablet
1 parent a6adb19 commit c4ed1ae

40 files changed

+191
-674
lines changed

src/analyses/is_threaded.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class is_threaded_domaint:public ai_domain_baset
8585
void is_threadedt::compute(const goto_functionst &goto_functions)
8686
{
8787
// the analysis doesn't actually use the namespace, fake one
88-
concrete_symbol_tablet symbol_table;
88+
symbol_tablet symbol_table;
8989
const namespacet ns(symbol_table);
9090

9191
ait<is_threaded_domaint> is_threaded_analysis;

src/ansi-c/ansi_c_language.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool ansi_c_languaget::typecheck(
106106
symbol_tablet &symbol_table,
107107
const std::string &module)
108108
{
109-
concrete_symbol_tablet new_symbol_table;
109+
symbol_tablet new_symbol_table;
110110

111111
if(ansi_c_typecheck(
112112
parse_tree,

src/ansi-c/ansi_c_typecheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool ansi_c_typecheck(
4242
const unsigned errors_before=
4343
message_handler.get_message_count(messaget::M_ERROR);
4444

45-
concrete_symbol_tablet symbol_table;
45+
symbol_tablet symbol_table;
4646
ansi_c_parse_treet ansi_c_parse_tree;
4747

4848
ansi_c_typecheckt ansi_c_typecheck(

src/ansi-c/type2name.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,6 @@ std::string type2name(const typet &type, const namespacet &ns)
269269

270270
std::string type2name(const typet &type)
271271
{
272-
concrete_symbol_tablet symbol_table;
272+
symbol_tablet symbol_table;
273273
return type2name(type, namespacet(symbol_table));
274274
}

src/cbmc/bmc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class bmct:public safety_checkert
6868

6969
protected:
7070
const optionst &options;
71-
concrete_symbol_tablet new_symbol_table;
71+
symbol_tablet new_symbol_table;
7272
namespacet ns;
7373
symex_target_equationt equation;
7474
symex_bmct symex;

src/cpp/cpp_language.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ bool cpp_languaget::typecheck(
126126
if(module=="")
127127
return false;
128128

129-
concrete_symbol_tablet new_symbol_table;
129+
symbol_tablet new_symbol_table;
130130

131131
if(cpp_typecheck(
132132
cpp_parse_tree, new_symbol_table, module, get_message_handler()))

src/cpp/cpp_typecheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ bool cpp_typecheck(
102102
const unsigned errors_before=
103103
message_handler.get_message_count(messaget::M_ERROR);
104104

105-
concrete_symbol_tablet symbol_table;
105+
symbol_tablet symbol_table;
106106
cpp_parse_treet cpp_parse_tree;
107107

108108
cpp_typecheckt cpp_typecheck(cpp_parse_tree, symbol_table,

src/goto-cc/linker_script_merge.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int linker_script_merget::add_linker_script_definitions()
5353
return fail;
5454
}
5555

56-
concrete_symbol_tablet original_st;
56+
symbol_tablet original_st;
5757
goto_functionst original_gf;
5858
fail=read_goto_binary(goto_file, original_st, original_gf,
5959
get_message_handler());

src/goto-instrument/dump_c.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void dump_ct::operator()(std::ostream &os)
4646

4747
// add copies of struct types when ID_C_transparent_union is only
4848
// annotated to parameter
49-
concrete_symbol_tablet symbols_transparent;
49+
symbol_tablet symbols_transparent;
5050
for(const auto &named_symbol : copied_symbol_table.symbols)
5151
{
5252
const symbolt &symbol=named_symbol.second;

src/goto-instrument/dump_c_class.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class dump_ct
4848

4949
protected:
5050
const goto_functionst &goto_functions;
51-
concrete_symbol_tablet copied_symbol_table;
51+
symbol_tablet copied_symbol_table;
5252
const namespacet ns;
5353
std::unique_ptr<languaget> language;
5454
const bool harness;

src/goto-instrument/model_argc_argv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool model_argc_argv(
106106
ansi_c_language.parse(iss, "");
107107
config.ansi_c.preprocessor=pp;
108108

109-
concrete_symbol_tablet tmp_symbol_table;
109+
symbol_tablet tmp_symbol_table;
110110
ansi_c_language.typecheck(tmp_symbol_table, "<built-in-library>");
111111

112112
goto_programt init_instructions;

src/goto-programs/goto_model.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Author: Daniel Kroening, [email protected]
2222
class goto_modelt
2323
{
2424
public:
25-
concrete_symbol_tablet symbol_table;
25+
symbol_tablet symbol_table;
2626
goto_functionst goto_functions;
2727

2828
void clear()

src/goto-programs/goto_program_template.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ class goto_program_templatet
495495
/// Output goto-program to given stream
496496
std::ostream &output(std::ostream &out) const
497497
{
498-
return output(namespacet(concrete_symbol_tablet()), "", out);
498+
return output(namespacet(symbol_tablet()), "", out);
499499
}
500500

501501
/// Output a single instruction

src/goto-programs/read_goto_binary.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ bool read_object_and_link(
251251
/// \return true on error, false otherwise
252252
bool read_object_and_link(
253253
const std::string &file_name,
254-
concrete_symbol_tablet &dest_symbol_table,
254+
symbol_tablet &dest_symbol_table,
255255
goto_functionst &dest_functions,
256256
message_handlert &message_handler)
257257
{

src/goto-programs/read_goto_binary.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class goto_functionst;
1818
class goto_modelt;
1919
class message_handlert;
2020
class symbol_tablet;
21-
class concrete_symbol_tablet;
21+
class symbol_tablet;
2222

2323
bool read_goto_binary(
2424
const std::string &filename,
@@ -35,7 +35,7 @@ bool is_goto_binary(const std::string &filename);
3535

3636
bool read_object_and_link(
3737
const std::string &file_name,
38-
concrete_symbol_tablet &,
38+
symbol_tablet &,
3939
goto_functionst &,
4040
message_handlert &);
4141

src/goto-symex/symex_target_equation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ std::ostream &operator<<(
723723
const symex_target_equationt::SSA_stept &step)
724724
{
725725
// may cause lookup failures, since it's blank
726-
concrete_symbol_tablet symbol_table;
726+
symbol_tablet symbol_table;
727727
namespacet ns(symbol_table);
728728
step.output(ns, out);
729729
return out;

src/java_bytecode/java_bytecode_parse_tree.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void java_bytecode_parse_treet::classt::output(std::ostream &out) const
8383

8484
void java_bytecode_parse_treet::annotationt::output(std::ostream &out) const
8585
{
86-
concrete_symbol_tablet symbol_table;
86+
symbol_tablet symbol_table;
8787
namespacet ns(symbol_table);
8888

8989
out << '@' << type2java(type, ns);
@@ -109,7 +109,7 @@ void java_bytecode_parse_treet::annotationt::output(std::ostream &out) const
109109
void java_bytecode_parse_treet::annotationt::element_value_pairt::output(
110110
std::ostream &out) const
111111
{
112-
concrete_symbol_tablet symbol_table;
112+
symbol_tablet symbol_table;
113113
namespacet ns(symbol_table);
114114

115115
out << '"' << element_name << '"' << '=';
@@ -118,7 +118,7 @@ void java_bytecode_parse_treet::annotationt::element_value_pairt::output(
118118

119119
void java_bytecode_parse_treet::methodt::output(std::ostream &out) const
120120
{
121-
concrete_symbol_tablet symbol_table;
121+
symbol_tablet symbol_table;
122122
namespacet ns(symbol_table);
123123

124124
for(const auto &annotation : annotations)

src/jsil/jsil_language.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool jsil_languaget::to_expr(
152152
result=true;
153153
else
154154
{
155-
concrete_symbol_tablet symbol_table;
155+
symbol_tablet symbol_table;
156156
result=
157157
jsil_convert(parse_tree, symbol_table, get_message_handler());
158158

src/jsil/jsil_typecheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ bool jsil_typecheck(
925925
const unsigned errors_before=
926926
message_handler.get_message_count(messaget::M_ERROR);
927927

928-
concrete_symbol_tablet symbol_table;
928+
symbol_tablet symbol_table;
929929

930930
jsil_typecheckt jsil_typecheck(
931931
symbol_table,

src/langapi/language_ui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class language_uit:public messaget
2121
{
2222
public:
2323
language_filest language_files;
24-
concrete_symbol_tablet symbol_table;
24+
symbol_tablet symbol_table;
2525

2626
language_uit(
2727
const cmdlinet &cmdline,

src/langapi/language_util.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ std::string type_to_name(
153153

154154
std::string from_expr(const exprt &expr)
155155
{
156-
concrete_symbol_tablet symbol_table;
156+
symbol_tablet symbol_table;
157157
return from_expr(namespacet(symbol_table), "", expr);
158158
}
159159

160160
std::string from_type(const typet &type)
161161
{
162-
concrete_symbol_tablet symbol_table;
162+
symbol_tablet symbol_table;
163163
return from_type(namespacet(symbol_table), "", type);
164164
}
165165

@@ -185,6 +185,6 @@ exprt to_expr(
185185

186186
std::string type_to_name(const typet &type)
187187
{
188-
concrete_symbol_tablet symbol_table;
188+
symbol_tablet symbol_table;
189189
return type_to_name(namespacet(symbol_table), "", type);
190190
}

src/pointer-analysis/goto_program_dereference.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ void dereference(
436436
value_setst &value_sets)
437437
{
438438
optionst options;
439-
concrete_symbol_tablet new_symbol_table;
439+
symbol_tablet new_symbol_table;
440440
goto_program_dereferencet
441441
goto_program_dereference(ns, new_symbol_table, options, value_sets);
442442
goto_program_dereference.dereference_expression(target, expr);

src/util/recording_symbol_table.h

-111
This file was deleted.

0 commit comments

Comments
 (0)