From d999ff47c7c81030e5c592f93d8a1415de058882 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 20 Jul 2021 16:28:33 -0400 Subject: Python API : Fix copyright year, add .vars to IL functions, remove BNGetFunctionILVariables, prevent variables without types (from Mapped MLIL) from erroring out in function.Variable's __repr__, added BNGetLowLevel-Registers, RegisterStacks, Flags, MemoryVersions, and their respective SSA versions, added `LowLevelILFunction`- `.vars`, `.ssa_vars`, `.registers`, `.register_stacks`, `.flags`, `.memory_versions` and ssa versions. --- function.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 70985d64..9c9e5e68 100644 --- a/function.cpp +++ b/function.cpp @@ -1107,23 +1107,6 @@ map Function::GetVariables() } -set Function::GetILVariables(BNFunctionGraphType ilType) -{ - size_t count; - auto* vars = BNGetFunctionILVariables(m_object, ilType, &count); - - set result; - for (size_t i = 0; i < count; i++) - { - Variable v(vars[i]); - result.insert(v); - } - - BNFreeVariableList(vars); - return result; -} - - void Function::CreateAutoVariable(const Variable& var, const Confidence>& type, const string& name, bool ignoreDisjointUses) { @@ -2183,7 +2166,7 @@ vector Function::GetMediumLevelILVariableReferences(const Var varData.type = var.type; varData.index = var.index; varData.storage = var.storage; - + BNILReferenceSource* refs = BNGetMediumLevelILVariableReferences(m_object, &varData, &count); vector result; @@ -2268,7 +2251,7 @@ vector Function::GetHighLevelILVariableReferences(const Varia varData.type = var.type; varData.index = var.index; varData.storage = var.storage; - + BNILReferenceSource* refs = BNGetHighLevelILVariableReferences(m_object, &varData, &count); vector result; -- cgit v1.3.1