diff options
Diffstat (limited to 'src/misc/extra')
-rw-r--r-- | src/misc/extra/extra.h | 7 | ||||
-rw-r--r-- | src/misc/extra/extraUtilDsd.c | 16 |
2 files changed, 19 insertions, 4 deletions
diff --git a/src/misc/extra/extra.h b/src/misc/extra/extra.h index 4b1d38f0..f4dcd154 100644 --- a/src/misc/extra/extra.h +++ b/src/misc/extra/extra.h @@ -220,9 +220,12 @@ extern int Sdm_ManCanRead(); extern Sdm_Man_t * Sdm_ManRead(); extern void Sdm_ManQuit(); extern int Sdm_ManComputeFunc( Sdm_Man_t * p, int iDsdLit0, int iDsdLit1, int * pCut, int uMask, int fXor ); -extern int Sdm_ManReadCnfSize( Sdm_Man_t * p, int iDsd ); -extern char * Sdm_ManReadDsdStr( Sdm_Man_t * p, int iDsd ); extern void Sdm_ManPrintDsdStats( Sdm_Man_t * p, int fVerbose ); +extern int Sdm_ManReadDsdVarNum( Sdm_Man_t * p, int iDsd ); +extern int Sdm_ManReadDsdAndNum( Sdm_Man_t * p, int iDsd ); +extern int Sdm_ManReadDsdClauseNum( Sdm_Man_t * p, int iDsd ); +extern word Sdm_ManReadDsdTruth( Sdm_Man_t * p, int iDsd ); +extern char * Sdm_ManReadDsdStr( Sdm_Man_t * p, int iDsd ); /*=== extraUtilProgress.c ================================================================*/ diff --git a/src/misc/extra/extraUtilDsd.c b/src/misc/extra/extraUtilDsd.c index 9a6d1f14..7b023d8c 100644 --- a/src/misc/extra/extraUtilDsd.c +++ b/src/misc/extra/extraUtilDsd.c @@ -990,7 +990,7 @@ Kit_DsdPrintFromTruth( (unsigned *)&t, 6 ); printf( "\n" ); /**Function************************************************************* - Synopsis [Returns CNF size for the given DSD class.] + Synopsis [] Description [] @@ -999,10 +999,22 @@ Kit_DsdPrintFromTruth( (unsigned *)&t, 6 ); printf( "\n" ); SeeAlso [] ***********************************************************************/ -int Sdm_ManReadCnfSize( Sdm_Man_t * p, int iDsd ) +int Sdm_ManReadDsdVarNum( Sdm_Man_t * p, int iDsd ) +{ + return p->pDsd6[iDsd].nVars; +} +int Sdm_ManReadDsdAndNum( Sdm_Man_t * p, int iDsd ) +{ + return p->pDsd6[iDsd].nAnds; +} +int Sdm_ManReadDsdClauseNum( Sdm_Man_t * p, int iDsd ) { return p->pDsd6[iDsd].nClauses; } +word Sdm_ManReadDsdTruth( Sdm_Man_t * p, int iDsd ) +{ + return p->pDsd6[iDsd].uTruth; +} char * Sdm_ManReadDsdStr( Sdm_Man_t * p, int iDsd ) { return p->pDsd6[iDsd].pStr; |