Debugging a proof error.

This commit is contained in:
Alan Mishchenko 2012-07-13 17:36:31 -07:00
parent f37d0544de
commit 0f82d82ba0
1 changed files with 2 additions and 1 deletions

View File

@ -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) );