diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-08-24 19:49:18 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-08-24 19:49:18 -0700 |
commit | 77d64787e07638ac9e44ee892e4d4db5b52686e1 (patch) | |
tree | 18c1b7d3eea9e38c875afc80980352c43baef9e4 /src/bool/dec | |
parent | 1fffe8f6f3274e03289a67a0abf9c7aa4028f823 (diff) | |
download | abc-77d64787e07638ac9e44ee892e4d4db5b52686e1.tar.gz abc-77d64787e07638ac9e44ee892e4d4db5b52686e1.tar.bz2 abc-77d64787e07638ac9e44ee892e4d4db5b52686e1.zip |
Changes to be able to compile ABC without CUDD.
Diffstat (limited to 'src/bool/dec')
-rw-r--r-- | src/bool/dec/decFactor.c | 8 | ||||
-rw-r--r-- | src/bool/dec/decUtil.c | 9 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/bool/dec/decFactor.c b/src/bool/dec/decFactor.c index 391496e1..59ea6f26 100644 --- a/src/bool/dec/decFactor.c +++ b/src/bool/dec/decFactor.c @@ -19,9 +19,12 @@ #include "base/abc/abc.h" #include "base/main/main.h" #include "misc/mvc/mvc.h" -#include "misc/extra/extraBdd.h" #include "dec.h" +#ifdef ABC_USE_CUDD +#include "misc/extra/extraBdd.h" +#endif + ABC_NAMESPACE_IMPL_START @@ -352,6 +355,8 @@ Mvc_Cover_t * Dec_ConvertSopToMvc( char * pSop ) return pMvc; } +#ifdef ABC_USE_CUDD + /**Function************************************************************* Synopsis [Verifies that the factoring is correct.] @@ -387,6 +392,7 @@ int Dec_FactorVerify( char * pSop, Dec_Graph_t * pFForm ) return RetValue; } +#endif //////////////////////////////////////////////////////////////////////// /// END OF FILE /// diff --git a/src/bool/dec/decUtil.c b/src/bool/dec/decUtil.c index d64aa4fa..eade1f5b 100644 --- a/src/bool/dec/decUtil.c +++ b/src/bool/dec/decUtil.c @@ -17,9 +17,12 @@ ***********************************************************************/ #include "base/abc/abc.h" -#include "misc/extra/extraBdd.h" #include "dec.h" +#ifdef ABC_USE_CUDD +#include "misc/extra/extraBdd.h" +#endif + ABC_NAMESPACE_IMPL_START @@ -31,6 +34,8 @@ ABC_NAMESPACE_IMPL_START /// FUNCTION DEFINITIONS /// //////////////////////////////////////////////////////////////////////// +#ifdef ABC_USE_CUDD + /**Function************************************************************* Synopsis [Converts graph to BDD.] @@ -81,6 +86,8 @@ DdNode * Dec_GraphDeriveBdd( DdManager * dd, Dec_Graph_t * pGraph ) return Cudd_NotCond( bFunc, Dec_GraphIsComplement(pGraph) ); } +#endif + /**Function************************************************************* Synopsis [Derives the truth table.] |