Commit 0f82d82b by Alan Mishchenko

Debugging a proof error.

parent f37d0544
...@@ -440,6 +440,7 @@ int Sat_ProofReduce( Vec_Set_t * vProof, void * pRoots, int hProofPivot ) ...@@ -440,6 +440,7 @@ int Sat_ProofReduce( Vec_Set_t * vProof, void * pRoots, int hProofPivot )
// compact the nodes // compact the nodes
Vec_PtrForEachEntry( satset *, vUsed, pNode, i ) Vec_PtrForEachEntry( satset *, vUsed, pNode, i )
{ {
int X = sizeof(word)*Proof_NodeWordNum(pNode->nEnts);
hTemp = pNode->Id; pNode->Id = 0; hTemp = pNode->Id; pNode->Id = 0;
assert( hTemp > 1 ); assert( hTemp > 1 );
memmove( Vec_SetEntry(vProof, hTemp), pNode, sizeof(word)*Proof_NodeWordNum(pNode->nEnts) ); 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 ) ...@@ -451,7 +452,7 @@ int Sat_ProofReduce( Vec_Set_t * vProof, void * pRoots, int hProofPivot )
{ {
satset * pTemp = (satset *)Vec_SetEntry(vProof, hTemp); satset * pTemp = (satset *)Vec_SetEntry(vProof, hTemp);
assert( pTemp->partA == 0 ); 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) ); Vec_SetWriteEntryNum( vProof, Vec_PtrSize(vUsed) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment