working on pdr with wla

This commit is contained in:
Yen-Sheng Ho 2017-02-19 16:09:59 -08:00
parent 2d1792040a
commit 1a66a5823a
2 changed files with 6 additions and 3 deletions

View File

@ -402,7 +402,7 @@ int Wlc_NtkPdrAbs( Wlc_Ntk_t * p, Wlc_Par_t * pPars )
}
// spurious CEX, continue solving
vClauses = IPdr_ManSaveClauses( pPdr, 1 );
vClauses = IPdr_ManSaveClauses( pPdr, 0 );
Pdr_ManStop( pPdr );
// update the set of objects to be un-abstracted

View File

@ -81,14 +81,16 @@ int IPdr_ManCheckClauses( Pdr_Man_t * p )
{
Pdr_Set_t * pCubeK;
Vec_Ptr_t * vArrayK;
int j, k, RetValue, kMax = Vec_PtrSize(p->vSolvers)-1;
int j, k, RetValue, kMax = Vec_PtrSize(p->vSolvers);
int iStartFrame = 1;
int counter = 0;
Vec_VecForEachLevelStartStop( p->vClauses, vArrayK, k, iStartFrame, kMax )
{
Vec_PtrForEachEntry( Pdr_Set_t *, vArrayK, pCubeK, j )
{
RetValue = Pdr_ManCheckCube( p, k, pCubeK, NULL, 0, 0, 1 );
++counter;
RetValue = Pdr_ManCheckCube( p, k - 1, pCubeK, NULL, 0, 0, 1 );
if ( !RetValue ) {
printf( "Cube[%d][%d] not inductive!\n", k, j );
@ -97,6 +99,7 @@ int IPdr_ManCheckClauses( Pdr_Man_t * p )
assert( RetValue == 1 );
}
}
printf( "XXX: Pass check clauses! %d frames and %d clauses checked\n", k, counter );
return 1;
}