mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
This file uses cerr without including <iostream>. Since it's just for debugging, comment it out
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5636eec5fb
commit
ca82e6c3d1
@ -94,8 +94,8 @@ class TarjanSCC_iterator : public forward_iterator<SCC<GraphT, GT>, ptrdiff_t>
|
|||||||
SCCNodeStack.push(N);
|
SCCNodeStack.push(N);
|
||||||
MinVisitNumStack.push(visitNum);
|
MinVisitNumStack.push(visitNum);
|
||||||
VisitStack.push(make_pair(N, GT::child_begin(N)));
|
VisitStack.push(make_pair(N, GT::child_begin(N)));
|
||||||
DEBUG(std::cerr << "TarjanSCC: Node " << N <<
|
//DEBUG(std::cerr << "TarjanSCC: Node " << N <<
|
||||||
" : visitNum = " << visitNum << "\n");
|
// " : visitNum = " << visitNum << "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// The stack-based DFS traversal; defined below.
|
// The stack-based DFS traversal; defined below.
|
||||||
@ -133,9 +133,9 @@ class TarjanSCC_iterator : public forward_iterator<SCC<GraphT, GT>, ptrdiff_t>
|
|||||||
if (! MinVisitNumStack.empty() && MinVisitNumStack.top() > minVisitNum)
|
if (! MinVisitNumStack.empty() && MinVisitNumStack.top() > minVisitNum)
|
||||||
MinVisitNumStack.top() = minVisitNum;
|
MinVisitNumStack.top() = minVisitNum;
|
||||||
|
|
||||||
DEBUG(std::cerr << "TarjanSCC: Popped node " << visitingN <<
|
//DEBUG(std::cerr << "TarjanSCC: Popped node " << visitingN <<
|
||||||
" : minVisitNum = " << minVisitNum << "; Node visit num = " <<
|
// " : minVisitNum = " << minVisitNum << "; Node visit num = " <<
|
||||||
nodeVisitNumbers[visitingN] << "\n");
|
// nodeVisitNumbers[visitingN] << "\n");
|
||||||
|
|
||||||
if (minVisitNum == nodeVisitNumbers[visitingN])
|
if (minVisitNum == nodeVisitNumbers[visitingN])
|
||||||
{ // A full SCC is on the SCCNodeStack! It includes all nodes below
|
{ // A full SCC is on the SCCNodeStack! It includes all nodes below
|
||||||
|
@ -94,8 +94,8 @@ class TarjanSCC_iterator : public forward_iterator<SCC<GraphT, GT>, ptrdiff_t>
|
|||||||
SCCNodeStack.push(N);
|
SCCNodeStack.push(N);
|
||||||
MinVisitNumStack.push(visitNum);
|
MinVisitNumStack.push(visitNum);
|
||||||
VisitStack.push(make_pair(N, GT::child_begin(N)));
|
VisitStack.push(make_pair(N, GT::child_begin(N)));
|
||||||
DEBUG(std::cerr << "TarjanSCC: Node " << N <<
|
//DEBUG(std::cerr << "TarjanSCC: Node " << N <<
|
||||||
" : visitNum = " << visitNum << "\n");
|
// " : visitNum = " << visitNum << "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// The stack-based DFS traversal; defined below.
|
// The stack-based DFS traversal; defined below.
|
||||||
@ -133,9 +133,9 @@ class TarjanSCC_iterator : public forward_iterator<SCC<GraphT, GT>, ptrdiff_t>
|
|||||||
if (! MinVisitNumStack.empty() && MinVisitNumStack.top() > minVisitNum)
|
if (! MinVisitNumStack.empty() && MinVisitNumStack.top() > minVisitNum)
|
||||||
MinVisitNumStack.top() = minVisitNum;
|
MinVisitNumStack.top() = minVisitNum;
|
||||||
|
|
||||||
DEBUG(std::cerr << "TarjanSCC: Popped node " << visitingN <<
|
//DEBUG(std::cerr << "TarjanSCC: Popped node " << visitingN <<
|
||||||
" : minVisitNum = " << minVisitNum << "; Node visit num = " <<
|
// " : minVisitNum = " << minVisitNum << "; Node visit num = " <<
|
||||||
nodeVisitNumbers[visitingN] << "\n");
|
// nodeVisitNumbers[visitingN] << "\n");
|
||||||
|
|
||||||
if (minVisitNum == nodeVisitNumbers[visitingN])
|
if (minVisitNum == nodeVisitNumbers[visitingN])
|
||||||
{ // A full SCC is on the SCCNodeStack! It includes all nodes below
|
{ // A full SCC is on the SCCNodeStack! It includes all nodes below
|
||||||
|
Loading…
Reference in New Issue
Block a user