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) {