From 5006d2cc099934b716f2474885fde5114225e438 Mon Sep 17 00:00:00 2001 From: Scott Lagler Date: Thu, 29 Jan 2026 13:29:08 -0500 Subject: Add missing LowLevelILFunction::AddOverFlow API (#7788) --- binaryninjaapi.h | 1 + lowlevelilinstruction.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/binaryninjaapi.h b/binaryninjaapi.h index c27f1cde..481e4102 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -14725,6 +14725,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 cbb8afe4..8b943dd1 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) { -- cgit v1.3.1