about summary refs log tree commit diff homepage
path: root/lib/Expr/Assigment.cpp
diff options
context:
space:
mode:
authorMartinNowack <martin.nowack@gmail.com>2016-02-27 10:51:26 +0100
committerMartinNowack <martin.nowack@gmail.com>2016-02-27 10:51:26 +0100
commit0fc86ca9e28cc411cb5e00afa22c32e77aca7e57 (patch)
tree9b5f194182f919a79cb3f10758d31da1080c18e2 /lib/Expr/Assigment.cpp
parentd5df88965392327d1f32890c1a8be4be164248fd (diff)
parent9bc1d11162403e331e99d5d0494feab70ace6fbc (diff)
downloadklee-0fc86ca9e28cc411cb5e00afa22c32e77aca7e57.tar.gz
Merge pull request #342 from delcypher/expr_fixes
A few Expr related clean ups
Diffstat (limited to 'lib/Expr/Assigment.cpp')
-rw-r--r--lib/Expr/Assigment.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/Expr/Assigment.cpp b/lib/Expr/Assigment.cpp
new file mode 100644
index 00000000..635362d4
--- /dev/null
+++ b/lib/Expr/Assigment.cpp
@@ -0,0 +1,25 @@
+//===-- Assignment.cpp ----------------------------------------------------===//
+//
+//                     The KLEE Symbolic Virtual Machine
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+#include "klee/util/Assignment.h"
+namespace klee {
+
+void Assignment::dump() {
+  if (bindings.size() == 0) {
+    llvm::errs() << "No bindings\n";
+    return;
+  }
+  for (bindings_ty::iterator i = bindings.begin(), e = bindings.end(); i != e;
+       ++i) {
+    llvm::errs() << (*i).first->name << "\n[";
+    for (int j = 0, k = (*i).second.size(); j < k; ++j)
+      llvm::errs() << (int)(*i).second[j] << ",";
+    llvm::errs() << "]\n";
+  }
+}
+}