Another attempt to make CUDD platform- and runtime-independent.

This commit is contained in:
Alan Mishchenko 2011-12-06 18:58:41 -08:00
parent 780321cf54
commit 68baf03809
5 changed files with 6 additions and 6 deletions

View File

@ -259,7 +259,7 @@ cuddBddAndAbstractRecur(
}
}
if ( manager->TimeStop && manager->TimeStop < clock() )
if ( manager->TimeStop && manager->TimeStop < time(NULL) )
return NULL;
if (topf == top) {

View File

@ -926,7 +926,7 @@ cuddBddAndRecur(
if (r != NULL) return(r);
}
if ( manager->TimeStop && manager->TimeStop < clock() )
if ( manager->TimeStop && manager->TimeStop < time(NULL) )
return NULL;
/* Here we can skip the use of cuddI, because the operands are known

View File

@ -976,9 +976,9 @@ cuddBddTransferRecur(
if (st_lookup(table, (const char *)f, (char **)&res))
return(Cudd_NotCond(res,comple));
if ( ddS->TimeStop && ddS->TimeStop < clock() )
if ( ddS->TimeStop && ddS->TimeStop < time(NULL) )
return NULL;
if ( ddD->TimeStop && ddD->TimeStop < clock() )
if ( ddD->TimeStop && ddD->TimeStop < time(NULL) )
return NULL;
/* Recursive step. */

View File

@ -1251,7 +1251,7 @@ cuddBddVarMapRecur(
return(Cudd_NotCond(res,F != f));
}
if ( manager->TimeStop && manager->TimeStop < clock() )
if ( manager->TimeStop && manager->TimeStop < time(NULL) )
return NULL;
/* Split and recur on children of this node. */

View File

@ -367,7 +367,7 @@ cuddSymmSifting(
if (ddTotalNumberSwapping >= table->siftMaxSwap)
break;
// enable timeout during variable reodering - alanmi 2/13/11
if ( table->TimeStop && table->TimeStop < clock() )
if ( table->TimeStop && table->TimeStop < time(NULL) )
break;
x = table->perm[var[i]];
#ifdef DD_STATS