50 assert( Vec_IntSize(vMap) == Aig_ManRegNum(pAig) );
53 pFrames->pName = Abc_UtilStrsav( pAig->pName );
54 pFrames->pSpec = Abc_UtilStrsav( pAig->pSpec );
57 Aig_ManConst1(pAig)->pData = Aig_ManConst1(pFrames);
62 iReg = Vec_IntEntry(vMap, i);
64 pObj->
pData = Aig_ManConst0(pFrames);
66 pObj->
pData = Saig_ManLo(pAig, iReg)->pData;
70 pObj->
pData =
Aig_And( pFrames, Aig_ObjChild0Copy(pObj), Aig_ObjChild1Copy(pObj) );
95 int * pLit2Id, Lit, i;
96 pLit2Id =
ABC_ALLOC(
int, Aig_ManObjNumMax(
p) * 2 );
97 for ( i = 0; i < Aig_ManObjNumMax(
p) * 2; i++ )
99 vMap = Vec_IntAlloc( Aig_ManRegNum(
p) );
102 if ( Aig_ObjChild0(pObj) == Aig_ManConst0(
p) )
104 Vec_IntPush( vMap, -1 );
107 Lit = 2 * Aig_ObjFaninId0(pObj) + Aig_ObjFaninC0(pObj);
108 if ( pLit2Id[Lit] < 0 )
110 Vec_IntPush( vMap, pLit2Id[Lit] );
129 int i, Entry, Counter = 0;
150 int f, i, iClass, Entry, Counter = 0;
151 Abc_Print( 1,
" Consts: " );
154 Abc_Print( 1,
"%d ", i );
155 Abc_Print( 1,
"\n" );
156 vMarks = Vec_IntAlloc( 100 );
164 if ( Vec_IntFind( vMarks, iClass ) >= 0 )
166 Vec_IntPush( vMarks, iClass );
168 Abc_Print( 1,
" Class %d : ", iClass );
170 if ( Entry == iClass )
171 Abc_Print( 1,
"%d ", i );
172 Abc_Print( 1,
"\n" );
174 Vec_IntFree( vMarks );
192 int f, nFrames = 100;
193 assert( Saig_ManRegNum(pAig) > 0 );
195 vMap = Vec_IntAlloc( 0 );
196 Vec_IntFill( vMap, Aig_ManRegNum(pAig), -1 );
198 for ( f = 0; f < nFrames; f++ )
203 Abc_Print( 1,
"F =%4d : Total = %6d. Nodes = %6d. RedRegs = %6d. Prop = %s\n",
204 f+1, Aig_ManNodeNum(pAig), Aig_ManNodeNum(pTemp),
Pdr_ManCountMap(vMap),
205 Aig_ObjChild0(Aig_ManCo(pTemp,0)) == Aig_ManConst0(pTemp) ?
"proof" :
"unknown" );
#define ABC_ALLOC(type, num)
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
void Aig_ManSetRegNum(Aig_Man_t *p, int nRegs)
void Aig_ManStop(Aig_Man_t *p)
#define Aig_ManForEachCi(p, pObj, i)
ITERATORS ///.
Aig_Obj_t * Aig_And(Aig_Man_t *p, Aig_Obj_t *p0, Aig_Obj_t *p1)
Aig_Obj_t * Aig_ObjCreateCo(Aig_Man_t *p, Aig_Obj_t *pDriver)
struct Aig_Obj_t_ Aig_Obj_t
Aig_Man_t * Aig_ManStart(int nNodesMax)
DECLARATIONS ///.
#define Aig_ManForEachNode(p, pObj, i)
typedefABC_NAMESPACE_HEADER_START struct Aig_Man_t_ Aig_Man_t
INCLUDES ///.
int Aig_ManCleanup(Aig_Man_t *p)
#define Aig_ManForEachCo(p, pObj, i)
Aig_Obj_t * Aig_ObjCreateCi(Aig_Man_t *p)
DECLARATIONS ///.
void Aig_ManCleanData(Aig_Man_t *p)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
void Pdr_ManEquivClasses(Aig_Man_t *pAig)
void Pdr_ManPrintMap(Vec_Int_t *vMap)
ABC_NAMESPACE_IMPL_START Aig_Man_t * Pdr_ManRehashWithMap(Aig_Man_t *pAig, Vec_Int_t *vMap)
DECLARATIONS ///.
int Pdr_ManCountMap(Vec_Int_t *vMap)
Vec_Int_t * Pdr_ManCreateMap(Aig_Man_t *p)
#define Saig_ManForEachLi(p, pObj, i)
#define Saig_ManForEachLo(p, pObj, i)
#define Vec_IntForEachEntry(vVec, Entry, i)
MACRO DEFINITIONS ///.