@@ -136,12 +136,13 @@ pointer_typet select_pointer_typet::specialize_generics(
136
136
return pointer_type;
137
137
}
138
138
139
- // / Return the first concrete type instantiation if any such exists.
139
+ // / Return the first concrete type instantiation if any such exists. This method
140
+ // / is only to be called when the `specialize_generics` cannot find an
141
+ // / instantiation due to a loop in its recursion.
140
142
// / \param parameter_name The name of the generic parameter type we want to have
141
143
// / instantiated
142
144
// / \param generic_specialization_map Map of type names to specialization stack
143
- // / \param depth start depth for instantiation search
144
- // / \return the first instantiated type for the generic type or nothing if no
145
+ // / \return The first instantiated type for the generic type or nothing if no
145
146
// / such instantiation exists.
146
147
optionalt<pointer_typet> select_pointer_typet::get_instantiated_type (
147
148
const irep_idt ¶meter_name,
@@ -179,8 +180,8 @@ optionalt<pointer_typet> select_pointer_typet::get_instantiated_type(
179
180
// / See get_instantiated_type, the additional parameters just track the
180
181
// / recursion to prevent, visiting the same depth again and specify which stack
181
182
// / depth is analyzed.
182
- // / \param visited tracks the visited parameter names
183
- // / \param depth stack depth to analyze
183
+ // / \param visited Tracks the visited parameter names
184
+ // / \param depth Stack depth to analyze
184
185
optionalt<pointer_typet> select_pointer_typet::get_instantiated_type (
185
186
const irep_idt ¶meter_name,
186
187
const generic_parameter_specialization_mapt
0 commit comments