diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-08-01 16:31:34 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2020-04-17 14:20:36 -0400 |
| commit | c9845e5a200228f20809336d9e9afee45e776d19 (patch) | |
| tree | 3b02742c03e6a63075663a68c0a36d9ad16187fa /highlevelil.cpp | |
| parent | 652dd72149b9c030e438d6de1a03ef54eafd8091 (diff) | |
Add mem SSA to HLIL
Diffstat (limited to 'highlevelil.cpp')
| -rw-r--r-- | highlevelil.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/highlevelil.cpp b/highlevelil.cpp index 10fb9703..679344ce 100644 --- a/highlevelil.cpp +++ b/highlevelil.cpp @@ -124,7 +124,18 @@ vector<uint64_t> HighLevelILFunction::GetOperandList(ExprId expr, size_t listOpe } -ExprId HighLevelILFunction::AddOperandList(const vector<ExprId> operands) +ExprId HighLevelILFunction::AddOperandList(const vector<ExprId>& 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<size_t>& operands) { uint64_t* operandList = new uint64_t[operands.size()]; for (size_t i = 0; i < operands.size(); i++) |
