--- bdd.c +++ bdd.c @@ -113,7 +113,7 @@ /* Initialize a keytable. */ kp->n = n; kp->elements_in_table = 0; - kp->hash_table_buf = (bdd_ptr *)malloc(n*sizeof(bdd_ptr)); + kp->hash_table_buf = (bdd_ptr *)smv_malloc(n*sizeof(bdd_ptr)); { /* Initialize hash bin list pointers to NULL. */ register int i; @@ -139,7 +139,7 @@ /* Create key tables. */ create_keytable(&reduce_table, KEYTABLESIZE); apply_cache_size = APPLY_CACHE_SIZE; - apply_cache = (apply_rec *)malloc(sizeof(apply_rec)*apply_cache_size); + apply_cache = (apply_rec *)smv_malloc(sizeof(apply_rec)*apply_cache_size); { int i; for(i=0;ileft,n); r = auxcount_bdd_log2(d->right,n); if(l < r) { - if(r - l > INFINITY) temp.a = r; + if(r - l > SMV_INFINITY) temp.a = r; else temp.a = l - 1.0 + log2(1.0 + pow(2.0,r-l)); } else { - if(l - r > INFINITY) temp.a = l; + if(l - r > SMV_INFINITY) temp.a = l; else temp.a = r - 1.0 + log2(1.0 + pow(2.0,l-r)); } }