37 for (DataDependenceGraph::NodeSet::iterator i =
writes.begin();
39 if ((*i)->isScheduled()) {
43 for (DataDependenceGraph::NodeSet::iterator i =
reads.begin();
44 i !=
reads.end(); i++) {
45 if ((*i)->isScheduled()) {
49 for (DataDependenceGraph::NodeSet::iterator i =
guards.begin();
51 if ((*i)->isScheduled()) {
61 for (DataDependenceGraph::NodeSet::iterator i =
writes.begin();
63 rv << (*i)->toString() <<
" ";
65 for (DataDependenceGraph::NodeSet::iterator i =
reads.begin();
66 i !=
reads.end(); i++) {
67 rv << (*i)->toString() <<
" ";
69 for (DataDependenceGraph::NodeSet::iterator i =
guards.begin();
71 rv << (*i)->toString() <<
" ";
79 for (DataDependenceGraph::NodeSet::iterator i =
writes.begin();
81 if ((*i)->isScheduled()) {
82 fc = std::min(fc, (*i)->cycle());
85 for (DataDependenceGraph::NodeSet::iterator i =
reads.begin();
86 i !=
reads.end(); i++) {
87 if ((*i)->isScheduled()) {
88 fc = std::min(fc, (*i)->cycle());
92 for (DataDependenceGraph::NodeSet::iterator i =
guards.begin();
94 if ((*i)->isScheduled()) {
95 fc = std::min(fc, (*i)->cycle());
105 for (DataDependenceGraph::NodeSet::iterator i =
writes.begin();
107 if ((*i)->isScheduled()) {
108 fc = std::max(fc, (*i)->cycle());
111 for (DataDependenceGraph::NodeSet::iterator i =
reads.begin();
112 i !=
reads.end(); i++) {
113 if ((*i)->isScheduled()) {
114 fc = std::max(fc, (*i)->cycle());
118 for (DataDependenceGraph::NodeSet::iterator i =
guards.begin();
120 if ((*i)->isScheduled()) {
121 fc = std::max(fc, (*i)->cycle());