about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2016-02-23 17:21:42 +0000
committerDan Liew <daniel.liew@imperial.ac.uk>2016-02-23 17:25:58 +0000
commit238998f8e17b554d0c28931a61271619310a098f (patch)
tree53136e513ca93fd48ea28dd0f5b2462c2bbee2be /lib
parent7f67a03988b6c0c5976d8b0aceb5406fd858c216 (diff)
downloadklee-238998f8e17b554d0c28931a61271619310a098f.tar.gz
Move ``Assignment::dump()`` into its own implementation file so
that it's possible to call it from gdb.
Diffstat (limited to 'lib')
-rw-r--r--lib/Expr/Assigment.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Expr/Assigment.cpp b/lib/Expr/Assigment.cpp
new file mode 100644
index 00000000..900c6d10
--- /dev/null
+++ b/lib/Expr/Assigment.cpp
@@ -0,0 +1,21 @@
+//===-- 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() {
+  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";
+  }
+}
+}