mirror of https://github.com/YosysHQ/abc.git
Fixes and adjustments for the edge computation flow.
This commit is contained in:
parent
3f8b5cd890
commit
1343b8a80c
|
|
@ -881,7 +881,7 @@ void Sle_ManDeriveResult( Sle_Man_t * p, Vec_Int_t * vEdge2, Vec_Int_t * vMappin
|
|||
if ( !sat_solver_var_value(p->pSat, iObj) )
|
||||
continue;
|
||||
Vec_IntForEachEntry( vCutFans, iFanin, i )
|
||||
if ( sat_solver_var_value(p->pSat, iEdgeVar0 + i) )
|
||||
if ( sat_solver_var_value(p->pSat, iFanin) && sat_solver_var_value(p->pSat, iEdgeVar0 + i) )
|
||||
Vec_IntPushTwo( vEdge2, iFanin, iObj );
|
||||
}
|
||||
}
|
||||
|
|
@ -1029,6 +1029,7 @@ void Sle_ManExplore( Gia_Man_t * pGia, int nBTLimit, int DelayInit, int fDynamic
|
|||
Vec_IntFree( vEdges2 );
|
||||
Vec_IntFree( vMapping );
|
||||
}
|
||||
Vec_IntFreeP( &p->pGia->vPacking );
|
||||
Sle_ManStop( p );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1019,7 +1019,7 @@ sat_solver* sat_solver_new(void)
|
|||
sat_solver* s = (sat_solver*)ABC_CALLOC( char, sizeof(sat_solver));
|
||||
|
||||
// Vec_SetAlloc_(&s->Mem, 15);
|
||||
Sat_MemAlloc_(&s->Mem, 15);
|
||||
Sat_MemAlloc_(&s->Mem, 17);
|
||||
s->hLearnts = -1;
|
||||
s->hBinary = Sat_MemAppend( &s->Mem, NULL, 2, 0, 0 );
|
||||
s->binary = clause_read( s, s->hBinary );
|
||||
|
|
|
|||
Loading…
Reference in New Issue