| 1579 | |
| 1580 | |
| 1581 | set<Variable> Function::GetHighLevelILVariablesIfAvailable() |
| 1582 | { |
| 1583 | Ref<HighLevelILFunction> hlil = this->GetHighLevelILIfAvailable(); |
| 1584 | if (!hlil) |
| 1585 | return {}; |
| 1586 | |
| 1587 | size_t count; |
| 1588 | BNVariable* vars = BNGetHighLevelILVariables(hlil->GetObject(), &count); |
| 1589 | |
| 1590 | set<Variable> result; |
| 1591 | for (size_t i = 0; i < count; ++i) |
| 1592 | result.emplace(vars[i]); |
| 1593 | |
| 1594 | BNFreeVariableList(vars); |
| 1595 | return result; |
| 1596 | } |
| 1597 | |
| 1598 | |
| 1599 | set<Variable> Function::GetHighLevelILAliasedVariablesIfAvailable() |
nothing calls this directly
no test coverage detected