summaryrefslogtreecommitdiffstats
path: root/src/bdd/cudd/cuddClip.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2021-11-27 17:37:34 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2021-11-27 17:37:34 -0800
commitf26ea1eaea5b51a3aec8107636c9f88eadfdcee0 (patch)
tree59f90e5e857950020c4108c31dbfbc6e768b5f91 /src/bdd/cudd/cuddClip.c
parent96bdcd2bb274e2cf01d2362294d5f5fdeb009533 (diff)
downloadabc-f26ea1eaea5b51a3aec8107636c9f88eadfdcee0.tar.gz
abc-f26ea1eaea5b51a3aec8107636c9f88eadfdcee0.tar.bz2
abc-f26ea1eaea5b51a3aec8107636c9f88eadfdcee0.zip
Changes to make compiler happy.
Diffstat (limited to 'src/bdd/cudd/cuddClip.c')
-rw-r--r--src/bdd/cudd/cuddClip.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/bdd/cudd/cuddClip.c b/src/bdd/cudd/cuddClip.c
index 9e3572f9..32ee7f6e 100644
--- a/src/bdd/cudd/cuddClip.c
+++ b/src/bdd/cudd/cuddClip.c
@@ -250,6 +250,34 @@ cuddBddClippingAndAbstract(
/*---------------------------------------------------------------------------*/
/* Definition of static functions */
/*---------------------------------------------------------------------------*/
+#ifdef USE_CASH_DUMMY
+/**Function********************************************************************
+
+ Synopsis We need to declare a function passed to cuddCacheLookup2 that can
+ be casted to DD_CTFP.
+
+******************************************************************************/
+static DdNode *
+Cudd_bddClippingAnd_dummy(DdManager *dd, DdNode *f, DdNode *g)
+{
+ assert(0);
+ return 0;
+}
+
+
+/**Function********************************************************************
+
+ Synopsis We need to declare a function passed to cuddCacheLookup2 that can
+ be casted to DD_CTFP.
+
+******************************************************************************/
+static DdNode *
+cuddBddClippingAnd_dummy(DdManager *dd, DdNode *f, DdNode *g)
+{
+ assert(0);
+ return 0;
+}
+#endif
/**Function********************************************************************
@@ -309,8 +337,12 @@ cuddBddClippingAndRecur(
}
F = Cudd_Regular(f);
G = Cudd_Regular(g);
+#ifdef USE_CASH_DUMMY
+ cacheOp = (DD_CTFP) (direction ? Cudd_bddClippingAnd_dummy : cuddBddClippingAnd_dummy);
+#else
cacheOp = (DD_CTFP)
(direction ? Cudd_bddClippingAnd : cuddBddClippingAnd);
+#endif
if (F->ref != 1 || G->ref != 1) {
r = cuddCacheLookup2(manager, cacheOp, f, g);
if (r != NULL) return(r);