From c9845e5a200228f20809336d9e9afee45e776d19 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Thu, 1 Aug 2019 16:31:34 -0400 Subject: Add mem SSA to HLIL --- highlevelil.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'highlevelil.cpp') diff --git a/highlevelil.cpp b/highlevelil.cpp index 10fb9703..679344ce 100644 --- a/highlevelil.cpp +++ b/highlevelil.cpp @@ -124,7 +124,18 @@ vector HighLevelILFunction::GetOperandList(ExprId expr, size_t listOpe } -ExprId HighLevelILFunction::AddOperandList(const vector operands) +ExprId HighLevelILFunction::AddOperandList(const vector& operands) +{ + uint64_t* operandList = new uint64_t[operands.size()]; + for (size_t i = 0; i < operands.size(); i++) + operandList[i] = operands[i]; + ExprId result = (ExprId)BNHighLevelILAddOperandList(m_object, operandList, operands.size()); + delete[] operandList; + return result; +} + + +ExprId HighLevelILFunction::AddIndexList(const vector& operands) { uint64_t* operandList = new uint64_t[operands.size()]; for (size_t i = 0; i < operands.size(); i++) -- cgit v1.3.1