mirror of https://github.com/YosysHQ/abc.git
Bug fix in 'dsat <file.cnf>' when the number of classes in listed incorrectly.
This commit is contained in:
parent
81af996fee
commit
cb49c5d006
|
|
@ -48,7 +48,7 @@ struct xSAT_Heap_t_
|
|||
SeeAlso []
|
||||
|
||||
***********************************************************************/
|
||||
inline int xSAT_HeapSize( xSAT_Heap_t * h )
|
||||
static inline int xSAT_HeapSize( xSAT_Heap_t * h )
|
||||
{
|
||||
return Vec_IntSize( h->vHeap );
|
||||
}
|
||||
|
|
@ -64,7 +64,7 @@ inline int xSAT_HeapSize( xSAT_Heap_t * h )
|
|||
SeeAlso []
|
||||
|
||||
***********************************************************************/
|
||||
inline int xSAT_HeapInHeap( xSAT_Heap_t * h, int Var )
|
||||
static inline int xSAT_HeapInHeap( xSAT_Heap_t * h, int Var )
|
||||
{
|
||||
return ( Var < Vec_IntSize( h->vIndices ) ) && ( Vec_IntEntry( h->vIndices, Var ) >= 0 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -503,7 +503,6 @@ static void xSAT_SolverClaMinimisation( xSAT_Solver_t * s, Vec_Int_t * vLits )
|
|||
ws = xSAT_VecWatchListEntry( s->vBinWatches, FlaseLit );
|
||||
begin = xSAT_WatchListArray( ws );
|
||||
end = begin + xSAT_WatchListSize( ws );
|
||||
pWatcher;
|
||||
|
||||
nb = 0;
|
||||
for ( pWatcher = begin; pWatcher < end; pWatcher++ )
|
||||
|
|
@ -999,7 +998,7 @@ void xSAT_SolverGarbageCollect( xSAT_Solver_t * s )
|
|||
|
||||
for ( i = 0; i < Vec_IntSize( s->vTrail ); i++ )
|
||||
if ( (unsigned) Vec_IntEntry( s->vReasons, xSAT_Lit2Var( Vec_IntEntry( s->vTrail, i ) ) ) != CRefUndef )
|
||||
xSAT_SolverClaRealloc( pNewMemMngr, s->pMemory, &( Vec_IntArray( s->vReasons )[xSAT_Lit2Var( Vec_IntEntry( s->vTrail, i ) )] ) );
|
||||
xSAT_SolverClaRealloc( pNewMemMngr, s->pMemory, (unsigned *)&( Vec_IntArray( s->vReasons )[xSAT_Lit2Var( Vec_IntEntry( s->vTrail, i ) )] ) );
|
||||
|
||||
pArray = ( unsigned * ) Vec_IntArray( s->vLearnts );
|
||||
for ( i = 0; i < Vec_IntSize( s->vLearnts ); i++ )
|
||||
|
|
|
|||
Loading…
Reference in New Issue