Skip to content

Commit 75659a8

Browse files
author
Owen Jones
committed
Use id_sett instead of std::set<irep_idt>
1 parent c877a14 commit 75659a8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/java_bytecode/ci_lazy_methods.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ bool ci_lazy_methodst::operator()(
107107
methods_to_convert_later.insert(
108108
extra_entry_points.begin(), extra_entry_points.end());
109109

110-
std::set<irep_idt> instantiated_classes;
110+
id_sett instantiated_classes;
111111

112112
{
113113
id_sett initial_callable_methods;
@@ -119,7 +119,7 @@ bool ci_lazy_methodst::operator()(
119119
initial_callable_methods.begin(), initial_callable_methods.end());
120120
}
121121

122-
std::set<irep_idt> methods_already_populated;
122+
id_sett methods_already_populated;
123123
std::unordered_set<exprt, irep_hash> virtual_function_calls;
124124

125125
bool any_new_methods=true;
@@ -399,7 +399,7 @@ void ci_lazy_methodst::gather_virtual_callsites(
399399
/// \param symbol_table: global symbol table
400400
void ci_lazy_methodst::get_virtual_method_targets(
401401
const exprt &called_function,
402-
const std::set<irep_idt> &instantiated_classes,
402+
const id_sett &instantiated_classes,
403403
id_sett &callable_methods,
404404
symbol_tablet &symbol_table)
405405
{
@@ -528,7 +528,7 @@ void ci_lazy_methodst::gather_field_types(
528528
/// `call_basename` if found and `classname` is present in
529529
/// `instantiated_classes`, or irep_idt() otherwise.
530530
irep_idt ci_lazy_methodst::get_virtual_method_target(
531-
const std::set<irep_idt> &instantiated_classes,
531+
const id_sett &instantiated_classes,
532532
const irep_idt &call_basename,
533533
const irep_idt &classname,
534534
const symbol_tablet &symbol_table)

src/java_bytecode/ci_lazy_methods.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ci_lazy_methodst:public messaget
135135

136136
void get_virtual_method_targets(
137137
const exprt &called_function,
138-
const std::set<irep_idt> &instantiated_classes,
138+
const id_sett &instantiated_classes,
139139
id_sett &callable_methods,
140140
symbol_tablet &symbol_table);
141141

@@ -150,7 +150,7 @@ class ci_lazy_methodst:public messaget
150150
ci_lazy_methods_neededt &needed_lazy_methods);
151151

152152
irep_idt get_virtual_method_target(
153-
const std::set<irep_idt> &instantiated_classes,
153+
const id_sett &instantiated_classes,
154154
const irep_idt &call_basename,
155155
const irep_idt &classname,
156156
const symbol_tablet &symbol_table);

src/java_bytecode/ci_lazy_methods_needed.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ci_lazy_methods_neededt
2121
public:
2222
ci_lazy_methods_neededt(
2323
id_sett &_callable_methods,
24-
std::set<irep_idt> &_instantiated_classes,
24+
id_sett &_instantiated_classes,
2525
symbol_tablet &_symbol_table):
2626
callable_methods(_callable_methods),
2727
instantiated_classes(_instantiated_classes),
@@ -42,7 +42,7 @@ class ci_lazy_methods_neededt
4242
// instantiated_classes on the other hand is a true set of every class
4343
// found so far, so we can use a membership test to avoid
4444
// repeatedly exploring a class hierarchy.
45-
std::set<irep_idt> &instantiated_classes;
45+
id_sett &instantiated_classes;
4646
symbol_tablet &symbol_table;
4747
};
4848

0 commit comments

Comments
 (0)