81 static char rcsid[]
DD_UNUSED =
"$Id: cuddRead.c,v 1.6 2004/08/13 18:04:50 fabio Exp $";
166 int u, v, err, i, nv;
169 DdNode **lx, **ly, **lxn, **lyn;
174 err = fscanf(fp,
"%d %d", &u, &v);
177 }
else if (err != 2) {
185 for (lnx=0; u > 0; lnx++) {
208 for (lny=0; v > 0; lny++) {
228 for (i = *nx, nv = bx + (*nx) * sx; i < lnx; i++, nv += sx) {
233 if (lx[i] == NULL)
return(0);
239 if (lxn[i] == NULL)
return(0);
242 for (i = *ny, nv = by + (*ny) * sy; i < lny; i++, nv += sy) {
247 if (ly[i] == NULL)
return(0);
253 if (lyn[i] == NULL)
return(0);
263 err = fscanf(fp,
"%d %d %lf", &u, &v, &val);
266 }
else if (err != 3) {
268 }
else if (u >= *m || v >= *n || u < 0 || v < 0) {
275 for (i = lnx - 1; i>=0; i--) {
290 for (i = lny - 1; i>=0; i--) {
387 int u, v, err, i, nv;
394 err = fscanf(fp,
"%d %d", &u, &v);
397 }
else if (err != 2) {
405 for (lnx=0; u > 0; lnx++) {
420 for (lny=0; v > 0; lny++) {
432 for (i = *nx, nv = bx + (*nx) * sx; i < lnx; i++, nv += sx) {
437 if (lx[i] == NULL)
return(0);
440 for (i = *ny, nv = by + (*ny) * sy; i < lny; i++, nv += sy) {
445 if (ly[i] == NULL)
return(0);
455 err = fscanf(fp,
"%d %d", &u, &v);
458 }
else if (err != 2) {
460 }
else if (u >= *m || v >= *n || u < 0 || v < 0) {
467 for (i = lnx - 1; i>=0; i--) {
482 for (i = lny - 1; i>=0; i--) {
int Cudd_addRead(FILE *fp, DdManager *dd, DdNode **E, DdNode ***x, DdNode ***y, DdNode ***xn, DdNode ***yn_, int *nx, int *ny, int *m, int *n, int bx, int sx, int by, int sy)
void Cudd_RecursiveDeref(DdManager *table, DdNode *n)
DdNode * cuddUniqueConst(DdManager *unique, CUDD_VALUE_TYPE value)
#define ABC_REALLOC(type, obj, num)
int Cudd_bddRead(FILE *fp, DdManager *dd, DdNode **E, DdNode ***x, DdNode ***y, int *nx, int *ny, int *m, int *n, int bx, int sx, int by, int sy)
DdNode * Cudd_addApply(DdManager *dd, DdNode *(*)(DdManager *, DdNode **, DdNode **), DdNode *f, DdNode *g)
#define ABC_NAMESPACE_IMPL_END
#define ABC_NAMESPACE_IMPL_START
DdNode * Cudd_addIte(DdManager *dd, DdNode *f, DdNode *g, DdNode *h)
static ABC_NAMESPACE_IMPL_START char rcsid[] DD_UNUSED
DdNode * Cudd_bddAnd(DdManager *dd, DdNode *f, DdNode *g)
DdNode * Cudd_addTimes(DdManager *dd, DdNode **f, DdNode **g)
DdNode * cuddUniqueInter(DdManager *unique, int index, DdNode *T, DdNode *E)