diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-22 03:21:02 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-22 03:21:02 +0000 |
commit | a99507bc04f2c16e6de118795a63a074899df66b (patch) | |
tree | 34e4b92522d482155a98619b5918a19dabb3de77 /include | |
parent | 2ec4358c44e21fd43fa78d933dca7fbc55f0a908 (diff) | |
download | klee-a99507bc04f2c16e6de118795a63a074899df66b.tar.gz |
Add ConstantExpr::toString (instead of using getConstantValue()).
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/Expr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/klee/Expr.h b/include/klee/Expr.h index 24a1cb2e..31bed1a8 100644 --- a/include/klee/Expr.h +++ b/include/klee/Expr.h @@ -329,6 +329,9 @@ public: return (value > Limit) ? Limit : getZExtValue(); } + /// toString - Return the constant value as a decimal string. + void toString(std::string &Res) const; + int compareContents(const Expr &b) const { const ConstantExpr &cb = static_cast<const ConstantExpr&>(b); if (width != cb.width) return width < cb.width ? -1 : 1; |