@@ -87,7 +87,7 @@ pointer_typet select_pointer_typet::specialize_generics(
87
87
// avoid infinite recursion
88
88
if (visited_nodes.find (parameter_name) != visited_nodes.end ())
89
89
{
90
- optionalt<pointer_typet> result = get_instantiated_type (
90
+ optionalt<pointer_typet> result = get_recursively_instantiated_type (
91
91
parameter_name, generic_parameter_specialization_map);
92
92
if (result.has_value ())
93
93
{
@@ -144,7 +144,8 @@ pointer_typet select_pointer_typet::specialize_generics(
144
144
// / \param generic_specialization_map Map of type names to specialization stack
145
145
// / \return The first instantiated type for the generic type or nothing if no
146
146
// / such instantiation exists.
147
- optionalt<pointer_typet> select_pointer_typet::get_instantiated_type (
147
+ optionalt<pointer_typet>
148
+ select_pointer_typet::get_recursively_instantiated_type (
148
149
const irep_idt ¶meter_name,
149
150
const generic_parameter_specialization_mapt
150
151
&generic_parameter_specialization_map) const
@@ -157,7 +158,7 @@ optionalt<pointer_typet> select_pointer_typet::get_instantiated_type(
157
158
irep_idt current_parameter = parameter_name;
158
159
while (depth < max)
159
160
{
160
- const auto retval = get_instantiated_type (
161
+ const auto retval = get_recursively_instantiated_type (
161
162
current_parameter, generic_parameter_specialization_map, visited, depth);
162
163
if (retval.has_value ())
163
164
{
@@ -177,12 +178,13 @@ optionalt<pointer_typet> select_pointer_typet::get_instantiated_type(
177
178
return {};
178
179
}
179
180
180
- // / See get_instantiated_type , the additional parameters just track the
181
- // / recursion to prevent, visiting the same depth again and specify which stack
182
- // / depth is analyzed.
181
+ // / See get_recursively instantiated_type , the additional parameters just track
182
+ // / the recursion to prevent, visiting the same depth again and specify which
183
+ // / stack depth is analyzed.
183
184
// / \param visited Tracks the visited parameter names
184
185
// / \param depth Stack depth to analyze
185
- optionalt<pointer_typet> select_pointer_typet::get_instantiated_type (
186
+ optionalt<pointer_typet>
187
+ select_pointer_typet::get_recursively_instantiated_type (
186
188
const irep_idt ¶meter_name,
187
189
const generic_parameter_specialization_mapt
188
190
&generic_parameter_specialization_map,
@@ -220,7 +222,7 @@ optionalt<pointer_typet> select_pointer_typet::get_instantiated_type(
220
222
221
223
visited.insert (parameter_name);
222
224
const auto &gen_type = to_java_generic_parameter (type).type_variable ();
223
- const auto inst_val = get_instantiated_type (
225
+ const auto inst_val = get_recursively_instantiated_type (
224
226
gen_type.get_identifier (),
225
227
generic_parameter_specialization_map,
226
228
visited,
0 commit comments