summaryrefslogtreecommitdiff
path: root/highlevelil.cpp
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2021-08-23 10:43:07 -0400
committerKyleMiles <krm504@nyu.edu>2021-10-21 18:49:41 -0400
commit35b56762efa96a490ef9a5066cbe1eb3e704a68b (patch)
treeba8a4ec86bd1ddff857b8f25d04248c7f2ae81f2 /highlevelil.cpp
parent5bb20da936a412f69c9e32ebed5c7ad9f7e4abaa (diff)
Add HighLevelILFunction::IsVarLiveAt and HighLevelILFunction::IsSSAVarLiveAt
Diffstat (limited to 'highlevelil.cpp')
-rw-r--r--highlevelil.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/highlevelil.cpp b/highlevelil.cpp
index f5b7fba2..8856b551 100644
--- a/highlevelil.cpp
+++ b/highlevelil.cpp
@@ -329,6 +329,18 @@ bool HighLevelILFunction::IsSSAVarLive(const SSAVariable& var) const
}
+bool HighLevelILFunction::IsSSAVarLiveAt(const SSAVariable& var, const size_t instr) const
+{
+ return BNIsHighLevelILSSAVarLiveAt(m_object, &var.var, var.version, instr);
+}
+
+
+bool HighLevelILFunction::IsVarLiveAt(const Variable& var, const size_t instr) const
+{
+ return BNIsHighLevelILVarLiveAt(m_object, &var, instr);
+}
+
+
set<size_t> HighLevelILFunction::GetVariableDefinitions(const Variable& var) const
{
size_t count;