mirror of https://github.com/YosysHQ/abc.git
Sweeper internal verification.
This commit is contained in:
parent
a564e2ab81
commit
74893bf3d4
|
|
@ -1008,7 +1008,7 @@ extern Gia_Man_t * Gia_ManDupDfsCiMap( Gia_Man_t * p, int * pCi2Lit, Vec
|
||||||
extern Gia_Man_t * Gia_ManDupDfsClasses( Gia_Man_t * p );
|
extern Gia_Man_t * Gia_ManDupDfsClasses( Gia_Man_t * p );
|
||||||
extern Gia_Man_t * Gia_ManDupTopAnd( Gia_Man_t * p, int fVerbose );
|
extern Gia_Man_t * Gia_ManDupTopAnd( Gia_Man_t * p, int fVerbose );
|
||||||
extern Gia_Man_t * Gia_ManMiter( Gia_Man_t * pAig0, Gia_Man_t * pAig1, int nInsDup, int fDualOut, int fSeq, int fImplic, int fVerbose );
|
extern Gia_Man_t * Gia_ManMiter( Gia_Man_t * pAig0, Gia_Man_t * pAig1, int nInsDup, int fDualOut, int fSeq, int fImplic, int fVerbose );
|
||||||
extern Gia_Man_t * Gia_ManDupAndOr( Gia_Man_t * p, int fUseOr, int fCompl );
|
extern Gia_Man_t * Gia_ManDupAndOr( Gia_Man_t * p, int nOuts, int fUseOr, int fCompl );
|
||||||
extern Gia_Man_t * Gia_ManDupZeroUndc( Gia_Man_t * p, char * pInit, int fVerbose );
|
extern Gia_Man_t * Gia_ManDupZeroUndc( Gia_Man_t * p, char * pInit, int fVerbose );
|
||||||
extern Gia_Man_t * Gia_ManMiter2( Gia_Man_t * p, char * pInit, int fVerbose );
|
extern Gia_Man_t * Gia_ManMiter2( Gia_Man_t * p, char * pInit, int fVerbose );
|
||||||
extern Gia_Man_t * Gia_ManTransformMiter( Gia_Man_t * p );
|
extern Gia_Man_t * Gia_ManTransformMiter( Gia_Man_t * p );
|
||||||
|
|
|
||||||
|
|
@ -2027,7 +2027,7 @@ Gia_Man_t * Gia_ManMiter( Gia_Man_t * p0, Gia_Man_t * p1, int nInsDup, int fDual
|
||||||
SeeAlso []
|
SeeAlso []
|
||||||
|
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
Gia_Man_t * Gia_ManDupAndOr( Gia_Man_t * p, int fUseOr, int fCompl )
|
Gia_Man_t * Gia_ManDupAndOr( Gia_Man_t * p, int nOuts, int fUseOr, int fCompl )
|
||||||
{
|
{
|
||||||
Gia_Man_t * pNew, * pTemp;
|
Gia_Man_t * pNew, * pTemp;
|
||||||
Gia_Obj_t * pObj;
|
Gia_Obj_t * pObj;
|
||||||
|
|
@ -2054,8 +2054,10 @@ Gia_Man_t * Gia_ManDupAndOr( Gia_Man_t * p, int fUseOr, int fCompl )
|
||||||
iResult = Gia_ManHashAnd( pNew, iResult, Gia_ObjFanin0Copy(pObj) );
|
iResult = Gia_ManHashAnd( pNew, iResult, Gia_ObjFanin0Copy(pObj) );
|
||||||
}
|
}
|
||||||
iResult = Abc_LitNotCond( iResult, (int)(fCompl > 0) );
|
iResult = Abc_LitNotCond( iResult, (int)(fCompl > 0) );
|
||||||
Gia_ManForEachPo( p, pObj, i )
|
// Gia_ManForEachPo( p, pObj, i )
|
||||||
pObj->Value = Gia_ManAppendCo( pNew, iResult );
|
// pObj->Value = Gia_ManAppendCo( pNew, iResult );
|
||||||
|
for ( i = 0; i < nOuts; i++ )
|
||||||
|
Gia_ManAppendCo( pNew, iResult );
|
||||||
Gia_ManHashStop( pNew );
|
Gia_ManHashStop( pNew );
|
||||||
Gia_ManSetRegNum( pNew, Gia_ManRegNum(p) );
|
Gia_ManSetRegNum( pNew, Gia_ManRegNum(p) );
|
||||||
pNew = Gia_ManCleanup( pTemp = pNew );
|
pNew = Gia_ManCleanup( pTemp = pNew );
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ int Ssc_PerformVerification( Gia_Man_t * p0, Gia_Man_t * p1, Gia_Man_t * pC )
|
||||||
int Status;
|
int Status;
|
||||||
Cec_ParCec_t ParsCec, * pPars = &ParsCec;
|
Cec_ParCec_t ParsCec, * pPars = &ParsCec;
|
||||||
// derive the OR of constraint outputs
|
// derive the OR of constraint outputs
|
||||||
Gia_Man_t * pCond = Gia_ManDupAndOr( pC, 1, 0 );
|
Gia_Man_t * pCond = Gia_ManDupAndOr( pC, Gia_ManPoNum(p0), 1, 0 );
|
||||||
// derive F = F & !OR(c0, c1, c2, ...)
|
// derive F = F & !OR(c0, c1, c2, ...)
|
||||||
Gia_Man_t * p0c = Gia_ManMiter( p0, pCond, 0, 0, 0, 1, 0 );
|
Gia_Man_t * p0c = Gia_ManMiter( p0, pCond, 0, 0, 0, 1, 0 );
|
||||||
// derive F = F & !OR(c0, c1, c2, ...)
|
// derive F = F & !OR(c0, c1, c2, ...)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue