From 714dc22ccb12efdc203e8ce92d6e546ca9ffb157 Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Thu, 20 Nov 2014 12:41:12 +0100 Subject: refactor integer overflow detection, add signed int Instead of checking for every possible casse which result in overflow, it is much simpler to perform the operation using integers with bigger dimension and check if the result overflow --- tools/klee/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index decf586d..8a246685 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -768,6 +768,7 @@ static const char *modelledExternals[] = { "__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