File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,16 @@ impl HighLevelILFunction {
230
230
unsafe { Array :: new ( variables, count, ( ) ) }
231
231
}
232
232
233
+ /// This returns a list of Variables that are taken reference to and used
234
+ /// elsewhere. You may also wish to consider [HighLevelILFunction::variables]
235
+ /// and [crate::function::Function::parameter_variables]
236
+ pub fn aliased_variables ( & self ) -> Array < Variable > {
237
+ let mut count = 0 ;
238
+ let variables = unsafe { BNGetHighLevelILAliasedVariables ( self . handle , & mut count) } ;
239
+ assert ! ( !variables. is_null( ) ) ;
240
+ unsafe { Array :: new ( variables, count, ( ) ) }
241
+ }
242
+
233
243
/// This gets just the HLIL SSA variables - you may be interested in the union
234
244
/// of [crate::function::Function::parameter_variables] and
235
245
/// [crate::mlil::function::MediumLevelILFunction::aliased_variables] as well for all the
You can’t perform that action at this time.
0 commit comments