mirror of https://github.com/YosysHQ/abc.git
Debugging a proof error.
This commit is contained in:
parent
f37d0544de
commit
0f82d82ba0
|
|
@ -440,6 +440,7 @@ int Sat_ProofReduce( Vec_Set_t * vProof, void * pRoots, int hProofPivot )
|
|||
// compact the nodes
|
||||
Vec_PtrForEachEntry( satset *, vUsed, pNode, i )
|
||||
{
|
||||
int X = sizeof(word)*Proof_NodeWordNum(pNode->nEnts);
|
||||
hTemp = pNode->Id; pNode->Id = 0;
|
||||
assert( hTemp > 1 );
|
||||
memmove( Vec_SetEntry(vProof, hTemp), pNode, sizeof(word)*Proof_NodeWordNum(pNode->nEnts) );
|
||||
|
|
@ -451,7 +452,7 @@ int Sat_ProofReduce( Vec_Set_t * vProof, void * pRoots, int hProofPivot )
|
|||
{
|
||||
satset * pTemp = (satset *)Vec_SetEntry(vProof, hTemp);
|
||||
assert( pTemp->partA == 0 );
|
||||
assert( Proof_NodeWordNum(pNode->nEnts) == Vec_SetWordNum( 2 + pTemp->nEnts ) );
|
||||
assert( X == Vec_SetWordNum( 2 + pTemp->nEnts ) );
|
||||
}
|
||||
}
|
||||
Vec_SetWriteEntryNum( vProof, Vec_PtrSize(vUsed) );
|
||||
|
|
|
|||
Loading…
Reference in New Issue