diff options
author | Martin Nowack <martin.nowack@gmail.com> | 2015-08-09 23:44:43 +0200 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-12-17 19:30:14 +0000 |
commit | c7e5ed32a3cb869d63fbb3f98b55035cbc4bbcf7 (patch) | |
tree | 7ce2201ab6a8bc8a26d5cefaab7c37ffd0ded6d9 /include | |
parent | 512b9f16e1c7ef23c8adc25cb435517de6bf3e81 (diff) | |
download | klee-c7e5ed32a3cb869d63fbb3f98b55035cbc4bbcf7.tar.gz |
Add dump function for Assignment
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/util/Assignment.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/klee/util/Assignment.h b/include/klee/util/Assignment.h index 6fee5cb1..e7478d33 100644 --- a/include/klee/util/Assignment.h +++ b/include/klee/util/Assignment.h @@ -49,6 +49,15 @@ namespace klee { template<typename InputIterator> 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(); j<k; ++j ) + llvm::errs() << (int)(*i).second[j] << ","; + llvm::errs() << "]\n"; + } + } }; class AssignmentEvaluator : public ExprEvaluator { |