summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-09-11 18:19:36 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-09-11 18:19:36 -0700
commit211ac730c60d1827882c3fa3bf2fe648e3d6380d (patch)
tree156b28c3769afdbc7c7b992710ef699ea2dd44c8 /src/misc
parent5d6f05a9a28c545e8ab8d79e4d9c44a6eeed2afc (diff)
downloadabc-211ac730c60d1827882c3fa3bf2fe648e3d6380d.tar.gz
abc-211ac730c60d1827882c3fa3bf2fe648e3d6380d.tar.bz2
abc-211ac730c60d1827882c3fa3bf2fe648e3d6380d.zip
Improvements to the new technology mapper.
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/extra/extra.h7
-rw-r--r--src/misc/extra/extraUtilDsd.c16
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;