Skip to content

Commit

Permalink
Add dump function for Assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowack authored and Dan Liew committed Dec 17, 2015
1 parent 512b9f1 commit c7e5ed3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/klee/util/Assignment.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c7e5ed3

Please sign in to comment.