57 nPorts = nCircuits = nSources = 0;
58 insertedNodes = inserted = reduced = 0;
69 nPorts = nCircuits = nSources = 0;
70 insertedNodes = inserted = reduced = 0;
87 for (
int i = 0;
i < orgacts->
length ();
i++)
delete orgacts->
get (
i);
98 nPorts = nCircuits = nSources = 0;
99 insertedNodes = inserted = reduced = 0;
146 if (root) root->
setPrev (NULL);
175 if (
c == cand)
return 1;
196 if (n == NULL)
return NULL;
197 for (
int i = 0;
i < actions->
length ();
i++) {
209 for (
int i = 0;
i < actions->
length ();
i++) {
220 for (
int i = 0; alist &&
i < alist->
length ();
i++) {
238 for (i = 0; i < actions->
length (); i++) {
239 a = actions->
get (i);
248 for (i = 0; i < actions->
length (); i++) {
249 a = actions->
get (i);
254 for (i = 0; i < actions->
length (); i++) {
255 a = actions->
get (i);
261 for (i = 0; i < actions->
length (); i++) {
262 a = actions->
get (i);
273 for (
int i = 0;
i < actions->
length ();
i++) {
302 int i, dcApplied = 0;
309 for (i = 0; i < actions->
length (); i++) {
310 a = actions->
get (i);
312 if (cn != NULL && !strcmp (cn, child->
getName ())) {
324 for (i = 0; i < actions->
length (); i++) {
325 a = actions->
get (i);
329 }
while (parent != NULL);
342 for (
int i = 0; alist &&
i < alist->
length ();
i++) {
372 return child ? child : a;
403 if (!
c->isOriginal ()) {
421 if (
c->getPort ())
continue;
423 for (
int i = 0;
i <
c->getSize ();
i++) {
424 _node =
c->getNode (
i);
425 if (!strcmp (_node->
getName (), _name)) {
444 for (
int i = 0;
i <
c->getSize ();
i++) {
445 _node =
c->getNode (
i);
446 if (!strcmp (_node->
getName (), _name)) {
459 sprintf (n,
"reduced%d", reduced++);
467 sprintf (n,
"inserted%d", inserted);
476 sprintf (n,
"inode%d", insertedNodes++);
487 if (
c->getPrev()->getNext () !=
c) {
493 if (
c->getNext()->getPrev () !=
c) {
507 if (
c->getPort ()) count++;
517 if (!
c->getPort ()) count +=
c->getSize ();
527 if (
c->isNonLinear ()) count++;
543 for (
nodeset *
n = nset;
n != NULL;
n = next) {
544 next =
n->getNext ();
560 for (
int i = 0;
i <
c->getSize ();
i++) {
562 c->getNode(
i)->getName (),
c->getNode(
i)->getNode ());
563 if (i < c->getSize () - 1)