while (!toVisit.empty())
{
// The current node we are processing
- unc_preprocess_stack_element& stackHead = toVisit.back();
+ TNode current = toVisit.back().node;
+ TNode parent = toVisit.back().parent;
toVisit.pop_back();
- TNode current = stackHead.node;
TNodeCountMap::iterator find = d_visited.find(current);
if (find != d_visited.end()) {
}
d_visited[current] = 1;
- d_visitedOnce[current] = stackHead.parent;
+ d_visitedOnce[current] = parent;
if (current.getNumChildren() == 0) {
if (current.isVar()) {