#include "defs.h" /* routine to compute the 'connectedness' of chip c */ fio(c) CHP c; { INT v; REG j, k; PIN p; REG PIN n; v = 1000; for (p = c->pins; p < &c->pins[c->siz]; p++) { k = 1; for (n = CHAIN(p); n != p; n = CHAIN(n)) { j = n->x & UNPLAC; if (j == k) goto mix; k = j - UNPLAC; } if (k & UNPLAC) v++; else if (k == 0) v--; mix: ; } return(v); }