diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-07-29 17:49:56 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-07-29 17:49:56 +0000 |
commit | 179a8930253e7e81dda77fda1db11a6d11b22f14 (patch) | |
tree | e8f1ceb0ef844deb88adc2c8fea1890993a73c2b /include | |
parent | f1b9d5d45886d7c989f14a57fcc0851b8b219917 (diff) | |
download | klee-179a8930253e7e81dda77fda1db11a6d11b22f14.tar.gz |
Sign extend, rather than zero extend, narrow gep indices
For example, clang creates these for ++ and -- operations on pointers on 64-bit platforms. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@136474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/Expr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/klee/Expr.h b/include/klee/Expr.h index ccbd9163..3e296934 100644 --- a/include/klee/Expr.h +++ b/include/klee/Expr.h @@ -230,7 +230,8 @@ public: /* Kind utilities */ /* Utility creation functions */ - static ref<Expr> createCoerceToPointerType(ref<Expr> e); + static ref<Expr> createSExtToPointerWidth(ref<Expr> e); + static ref<Expr> createZExtToPointerWidth(ref<Expr> e); static ref<Expr> createImplies(ref<Expr> hyp, ref<Expr> conc); static ref<Expr> createIsZero(ref<Expr> e); |