DECLARATIONS ///.
Date [Ver. 1.0. Started - May 11, 2006.]
] FUNCTION DEFINITIONS /// Function*************************************************************
46{
48 int i;
49
51 {
52 if ( Hop_ObjFanin0(pObj) || Hop_ObjFanin1(pObj) )
53 {
54 printf( "Hop_ManCheck: The PI node \"%p\" has fanins.\n", pObj );
55 return 0;
56 }
57 }
58
60 {
61 if ( !Hop_ObjFanin0(pObj) )
62 {
63 printf( "Hop_ManCheck: The PO node \"%p\" has NULL fanin.\n", pObj );
64 return 0;
65 }
66 if ( Hop_ObjFanin1(pObj) )
67 {
68 printf( "Hop_ManCheck: The PO node \"%p\" has second fanin.\n", pObj );
69 return 0;
70 }
71 }
72
74 {
75 if ( !Hop_ObjFanin0(pObj) || !Hop_ObjFanin1(pObj) )
76 {
77 printf( "Hop_ManCheck: The AIG has internal node \"%p\" with a NULL fanin.\n", pObj );
78 return 0;
79 }
80 if ( Hop_ObjFanin0(pObj)->Id >= Hop_ObjFanin1(pObj)->Id )
81 {
82 printf( "Hop_ManCheck: The AIG has node \"%p\" with a wrong ordering of fanins.\n", pObj );
83 return 0;
84 }
86 if ( pObj2 != pObj )
87 {
88 printf( "Hop_ManCheck: Node \"%p\" is not in the structural hashing table.\n", pObj );
89 return 0;
90 }
91 }
92
93 if ( Hop_ManObjNum(
p) != 1 + Hop_ManPiNum(
p) + Hop_ManPoNum(
p) + Hop_ManAndNum(
p) + Hop_ManExorNum(
p) )
94 {
95 printf( "Hop_ManCheck: The number of created nodes is wrong.\n" );
96 return 0;
97 }
98
100 {
101 printf( "Hop_ManCheck: The number of nodes in the structural hashing table is wrong.\n" );
102 return 0;
103 }
104
105
106 return 1;
107}
int Hop_TableCountEntries(Hop_Man_t *p)
#define Hop_ManForEachPi(p, pObj, i)
ITERATORS ///.
#define Hop_ManForEachNode(p, pObj, i)
Hop_Obj_t * Hop_TableLookup(Hop_Man_t *p, Hop_Obj_t *pGhost)
FUNCTION DEFINITIONS ///.
#define Hop_ManForEachPo(p, pObj, i)
struct Hop_Obj_t_ Hop_Obj_t