diff options
Diffstat (limited to 'src/map/if')
-rw-r--r-- | src/map/if/if.h | 2 | ||||
-rw-r--r-- | src/map/if/ifTune.c | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/map/if/if.h b/src/map/if/if.h index 8114e5c3..a94a5fe8 100644 --- a/src/map/if/if.h +++ b/src/map/if/if.h @@ -623,6 +623,8 @@ extern void If_ManComputeRequired( If_Man_t * p ); extern void If_CutRotatePins( If_Man_t * p, If_Cut_t * pCut ); extern int If_CutComputeTruth( If_Man_t * p, If_Cut_t * pCut, If_Cut_t * pCut0, If_Cut_t * pCut1, int fCompl0, int fCompl1 ); extern int If_CutComputeTruthPerm( If_Man_t * p, If_Cut_t * pCut, If_Cut_t * pCut0, If_Cut_t * pCut1, int fCompl0, int fCompl1 ); +/*=== ifTune.c ===========================================================*/ +extern void * If_ManSatBuildFromCell( char * pStr, Vec_Int_t ** pvPiVars, Vec_Int_t ** pvPoVars, void ** ppNtk ); /*=== ifUtil.c ============================================================*/ extern void If_ManCleanNodeCopy( If_Man_t * p ); extern void If_ManCleanCutData( If_Man_t * p ); diff --git a/src/map/if/ifTune.c b/src/map/if/ifTune.c index f75192b6..6e48448b 100644 --- a/src/map/if/ifTune.c +++ b/src/map/if/ifTune.c @@ -621,6 +621,15 @@ sat_solver * Ifn_ManSatBuild( Ifn_Ntk_t * p, Vec_Int_t ** pvPiVars, Vec_Int_t ** Gia_ManStop( p2 ); return pSat; } +void * If_ManSatBuildFromCell( char * pStr, Vec_Int_t ** pvPiVars, Vec_Int_t ** pvPoVars, void ** ppNtk ) +{ + Ifn_Ntk_t * p = Ifn_NtkParse( pStr ); + *ppNtk = p; + if ( p == NULL ) + return NULL; +// Ifn_NtkPrint( p ); + return Ifn_ManSatBuild( p, pvPiVars, pvPoVars ); +} /**Function************************************************************* |