From ae22fcfde9f5bb6894df8bd62ead28f289b82012 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 27 Sep 2012 12:29:05 -0700 Subject: [PATCH] nodestack: add debug prints --- nodestack.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nodestack.cc b/nodestack.cc index 378dd8f..85bbf71 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -121,6 +121,8 @@ bool Node::get_promise(unsigned int i) { * @return true if we have a valid combination. */ bool Node::increment_promise() { + DBG(); + for (unsigned int i = 0; i < promises.size(); i++) { if (promises[i] == PROMISE_UNFULFILLED) { promises[i] = PROMISE_FULFILLED; @@ -321,6 +323,8 @@ const ModelAction * Node::get_read_from() { * @return Returns false if we have explored all items. */ bool Node::increment_read_from() { + DBG(); + read_from_index++; return (read_from_index < may_read_from.size()); } @@ -330,6 +334,8 @@ bool Node::increment_read_from() { * @return Returns false if we have explored all values. */ bool Node::increment_future_value() { + DBG(); + future_index++; return (future_index < future_values.size()); } -- 2.34.1