From bcdc0d9b89605936a1cb6cf3ffaaece60d3c5777 Mon Sep 17 00:00:00 2001 From: Ryan Snyder Date: Fri, 24 Jan 2025 17:57:26 -0500 Subject: uidf refactor --- highlevelil.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'highlevelil.cpp') diff --git a/highlevelil.cpp b/highlevelil.cpp index 23587fca..b88e1a96 100644 --- a/highlevelil.cpp +++ b/highlevelil.cpp @@ -86,6 +86,20 @@ void HighLevelILFunction::SetRootExpr(const HighLevelILInstruction& expr) } +size_t HighLevelILFunction::CachePossibleValueSet(const PossibleValueSet& pvs) +{ + BNPossibleValueSet ugh = pvs.ToAPIObject(); + return BNCacheHighLevelILPossibleValueSet(m_object, &ugh); +} + + +PossibleValueSet HighLevelILFunction::GetCachedPossibleValueSet(size_t idx) +{ + BNPossibleValueSet api = BNGetCachedHighLevelILPossibleValueSet(m_object, idx); + return PossibleValueSet::FromAPIObject(api); +} + + ExprId HighLevelILFunction::AddExpr( BNHighLevelILOperation operation, size_t size, ExprId a, ExprId b, ExprId c, ExprId d, ExprId e) { -- cgit v1.3.1