diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2016-12-14 18:12:10 +0000 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2017-02-24 09:34:58 +0000 |
commit | 479f8068a769885e0fb50bf37f886ef839e63609 (patch) | |
tree | 2e5681a8c8f51b98fde6ea50f7c8797aaa9b41c1 /lib/Core/Executor.h | |
parent | 1b67624c3a2fc1ca6f60d0a2b0f675d046dbba76 (diff) | |
download | klee-479f8068a769885e0fb50bf37f886ef839e63609.tar.gz |
Teach KLEE to respect the requested memory alignment of globals and stack
variables when possible. Previously an alignment 8 was always used which did not faithfully emulate what was either explicitly requested in the LLVM IR or what the default alignment was for the target.
Diffstat (limited to 'lib/Core/Executor.h')
-rw-r--r-- | lib/Core/Executor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Core/Executor.h b/lib/Core/Executor.h index 93d1443e..ae8e45e9 100644 --- a/lib/Core/Executor.h +++ b/lib/Core/Executor.h @@ -505,6 +505,7 @@ public: std::map<const std::string*, std::set<unsigned> > &res); Expr::Width getWidthForLLVMType(LLVM_TYPE_Q llvm::Type *type) const; + size_t getAllocationAlignment(const llvm::Value *allocSite) const; }; } // End klee namespace |