diff --git a/rust/src/hlil/function.rs b/rust/src/hlil/function.rs index c291bd492..32db5822d 100644 --- a/rust/src/hlil/function.rs +++ b/rust/src/hlil/function.rs @@ -230,6 +230,16 @@ impl HighLevelILFunction { unsafe { Array::new(variables, count, ()) } } + /// This returns a list of Variables that are taken reference to and used + /// elsewhere. You may also wish to consider [HighLevelILFunction::variables] + /// and [crate::function::Function::parameter_variables] + pub fn aliased_variables(&self) -> Array { + let mut count = 0; + let variables = unsafe { BNGetHighLevelILAliasedVariables(self.handle, &mut count) }; + assert!(!variables.is_null()); + unsafe { Array::new(variables, count, ()) } + } + /// This gets just the HLIL SSA variables - you may be interested in the union /// of [crate::function::Function::parameter_variables] and /// [crate::mlil::function::MediumLevelILFunction::aliased_variables] as well for all the