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. --- tools/klee/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 23c07f03..8a246685 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -765,6 +765,10 @@ static const char *modelledExternals[] = { "_Znwj", "_Znam", "_Znwm", + "__ubsan_handle_add_overflow", + "__ubsan_handle_sub_overflow", + "__ubsan_handle_mul_overflow", + "__ubsan_handle_divrem_overflow", }; // Symbols we aren't going to warn about static const char *dontCareExternals[] = { -- cgit 1.4.1