From 09f2b5f1254aeaa7dc6b54500a71dfe86f783d84 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 17 Aug 2022 18:01:47 +0800 Subject: Improve Python/C++ APIs to get registers, register stacks, and flags for LLIL --- binaryninjaapi.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index ecb25684..f18cd5d9 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -7967,13 +7967,20 @@ namespace BinaryNinja { void ClearIndirectBranches(); void SetIndirectBranches(const std::vector& branches); + // Get a list of registers used in the LLIL function std::vector GetRegisters(); std::vector GetRegisterStacks(); std::vector GetFlags(); + // Get a list of SSA registers used in the LLIL SSA function, without versions. + std::vector GetSSARegistersWithoutVersions(); + std::vector GetSSARegisterStacksWithoutVersions(); + std::vector GetSSAFlagsWithoutVersions(); + + // Get a list of SSA registers used in the LLIL SSA function, with versions std::vector GetSSARegisters(); - std::vector GetRegisterStackSSAVersions(); - std::vector GetFlagSSAVersions(); + std::vector GetSSARegisterStacks(); + std::vector GetSSAFlags(); ExprId AddExpr(BNLowLevelILOperation operation, size_t size, uint32_t flags, ExprId a = 0, ExprId b = 0, ExprId c = 0, ExprId d = 0); -- cgit v1.3.1