about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2023-10-30 14:54:46 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2024-02-08 13:17:19 +0000
commit01af1ca33400a075a953050ce80985eea47ee2b2 (patch)
tree1fc3e80894170838dad39572263f9435bd797eb8
parent157a0c5502134c34e4edc2320566065e67115a35 (diff)
downloadklee-01af1ca33400a075a953050ce80985eea47ee2b2.tar.gz
Add support to `aligned_alloc` generated by LLVM
Handle like `memalign` for now.
-rw-r--r--lib/Core/SpecialFunctionHandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Core/SpecialFunctionHandler.cpp b/lib/Core/SpecialFunctionHandler.cpp
index 4589471c..b0c28fbc 100644
--- a/lib/Core/SpecialFunctionHandler.cpp
+++ b/lib/Core/SpecialFunctionHandler.cpp
@@ -87,6 +87,7 @@ static constexpr std::array handlerInfo = {
   addDNR("klee_abort", handleAbort),
   addDNR("klee_silent_exit", handleSilentExit),
   addDNR("klee_report_error", handleReportError),
+  add("aligned_alloc", handleMemalign, true),
   add("calloc", handleCalloc, true),
   add("free", handleFree, false),
   add("klee_assume", handleAssume, false),