From 238998f8e17b554d0c28931a61271619310a098f Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Tue, 23 Feb 2016 17:21:42 +0000 Subject: Move ``Assignment::dump()`` into its own implementation file so that it's possible to call it from gdb. --- include/klee/util/Assignment.h | 10 +--------- lib/Expr/Assigment.cpp | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 lib/Expr/Assigment.cpp diff --git a/include/klee/util/Assignment.h b/include/klee/util/Assignment.h index e7478d33..5d8aa1ab 100644 --- a/include/klee/util/Assignment.h +++ b/include/klee/util/Assignment.h @@ -49,15 +49,7 @@ namespace klee { template bool satisfies(InputIterator begin, InputIterator end); - - void 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(); jname << "\n["; + for (int j = 0, k = (*i).second.size(); j < k; ++j) + llvm::errs() << (int)(*i).second[j] << ","; + llvm::errs() << "]\n"; + } +} +} -- cgit 1.4.1