From 75252678abe81f0d115db5c46f2f867551511f6f Mon Sep 17 00:00:00 2001 From: Scott Lagler Date: Fri, 12 Dec 2025 22:45:08 -0500 Subject: [PATCH] Add missing LowLevelILFunction::AddOverFlow API --- binaryninjaapi.h | 1 + lowlevelilinstruction.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 55aa96ca47..dca05be8cf 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -14577,6 +14577,7 @@ namespace BinaryNinja { size_t size, ExprId a, ExprId b, const ILSourceLocation& loc = ILSourceLocation()); ExprId TestBit(size_t size, ExprId a, ExprId b, const ILSourceLocation& loc = ILSourceLocation()); ExprId BoolToInt(size_t size, ExprId a, const ILSourceLocation& loc = ILSourceLocation()); + ExprId AddOverflow(size_t size, ExprId left, ExprId right, const ILSourceLocation& loc = ILSourceLocation()); /*! Returns a system call expression. diff --git a/lowlevelilinstruction.cpp b/lowlevelilinstruction.cpp index 036ef0937a..bb7fba9937 100644 --- a/lowlevelilinstruction.cpp +++ b/lowlevelilinstruction.cpp @@ -3555,6 +3555,10 @@ ExprId LowLevelILFunction::BoolToInt(size_t size, ExprId a, const ILSourceLocati return AddExprWithLocation(LLIL_BOOL_TO_INT, loc, size, 0, a); } +ExprId LowLevelILFunction::AddOverflow(size_t size, ExprId left, ExprId right, const ILSourceLocation& loc) +{ + return AddExprWithLocation(LLIL_ADD_OVERFLOW, loc, size, left, right); +} ExprId LowLevelILFunction::SystemCall(const ILSourceLocation& loc) {