From a743d7072d9ccf11f96e3df45f25ad07da6ad9d6 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Tue, 10 Feb 2015 13:29:11 +0000 Subject: Merged @luckyluke's change for detecting overflow of unsigned add, sub and mul operations. Refactored tests into two main cases, and disabled them on LLVM 2.9, which does not support -fsanitized=*signed-integer-overflow. --- lib/Core/SpecialFunctionHandler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Core/SpecialFunctionHandler.h') diff --git a/lib/Core/SpecialFunctionHandler.h b/lib/Core/SpecialFunctionHandler.h index f68c6edb..d52b8fc5 100644 --- a/lib/Core/SpecialFunctionHandler.h +++ b/lib/Core/SpecialFunctionHandler.h @@ -132,6 +132,10 @@ namespace klee { HANDLER(handleUnderConstrained); HANDLER(handleWarning); HANDLER(handleWarningOnce); + HANDLER(handleAddOverflow); + HANDLER(handleMulOverflow); + HANDLER(handleSubOverflow); + HANDLER(handleDivRemOverflow); #undef HANDLER }; } // End klee namespace -- cgit 1.4.1