From: Brian Norris Date: Thu, 2 Aug 2012 19:33:43 +0000 (-0700) Subject: nodestack: clean up comments X-Git-Tag: pldi2013~293 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca068852b58dc76016534ba38a00faf054c7efb2;p=model-checker.git nodestack: clean up comments --- diff --git a/nodestack.cc b/nodestack.cc index bdccf38..b93ed46 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -57,33 +57,29 @@ void Node::print_may_read_from() (*it)->print(); } -/** This method sets a promise to explore meeting with the given - * node. - * @param i is the promise index. +/** + * Sets a promise to explore meeting with the given node. + * @param i is the promise index. */ - void Node::set_promise(uint32_t i) { if (i>=promises.size()) promises.resize(i+1,0); promises[i]=1; } -/** This method looks up whether a given promise should be satisfied - * by this node. - * - * @param i is the promise index. +/** + * Looks up whether a given promise should be satisfied by this node. + * @param i The promise index. * @return true if the promise should be satisfied by the given model action. */ - bool Node::get_promise(uint32_t i) { return (i=future_values.size()); } @@ -261,7 +254,6 @@ bool Node::increment_read_from() { * Increments the index into the future_values set to explore the next item. * @return Returns false if we have explored all values. */ - bool Node::increment_future_value() { future_index++; return (future_index