From 5d4fc5f1fb7a0c368d2a048a5d750564c970c9c9 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 13 Oct 2025 19:35:01 -0400 Subject: Add derived strings and string recognizer API --- highlevelilinstruction.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'highlevelilinstruction.cpp') diff --git a/highlevelilinstruction.cpp b/highlevelilinstruction.cpp index 964e1af9..6fe43618 100644 --- a/highlevelilinstruction.cpp +++ b/highlevelilinstruction.cpp @@ -1012,6 +1012,24 @@ void HighLevelILInstructionBase::ClearAttribute(BNILInstructionAttribute attribu } +std::optional HighLevelILInstructionBase::GetDerivedStringReference() const +{ + return function->GetDerivedStringReferenceForExpr(exprIndex); +} + + +void HighLevelILInstructionBase::SetDerivedStringReference(const DerivedString& str) +{ + function->SetDerivedStringReferenceForExpr(exprIndex, str); +} + + +void HighLevelILInstructionBase::RemoveDerivedStringReference() +{ + function->RemoveDerivedStringReferenceForExpr(exprIndex); +} + + size_t HighLevelILInstructionBase::GetInstructionIndex() const { return function->GetInstructionForExpr(exprIndex); -- cgit v1.3.1