DECLARATIONS ///.
Date [Ver. 1.0. Started - June 20, 2005.]
] FUNCTION DEFINITIONS /// Function*************************************************************
47{
50 int Result;
51 int i;
52 abctime clk, clkTotal = Abc_Clock();
53
54 srand( 0xABC );
55
56
59 if ( fVerbose )
60 printf( "Total = %8d. Sym = %8d. NonSym = %8d. Remaining = %8d.\n",
61 p->nPairsTotal,
p->nPairsSymm,
p->nPairsNonSymm,
p->nPairsRem );
62
63
64clk = Abc_Clock();
66p->timeStruct = Abc_Clock() - clk;
67
69 p->nPairsSymmStr =
p->nPairsSymm;
70 if ( fVerbose )
71 printf( "Total = %8d. Sym = %8d. NonSym = %8d. Remaining = %8d.\n",
72 p->nPairsTotal,
p->nPairsSymm,
p->nPairsNonSymm,
p->nPairsRem );
73
74
75 for ( i = 1; i <= 1000; i++ )
76 {
77
80 if ( i % 50 != 0 )
81 continue;
82
84
86 if ( i % 500 != 0 )
87 continue;
88 if ( fVerbose )
89 printf( "Total = %8d. Sym = %8d. NonSym = %8d. Remaining = %8d.\n",
90 p->nPairsTotal,
p->nPairsSymm,
p->nPairsNonSymm,
p->nPairsRem );
91 }
92
93
95 {
96
105
106
107
108
109
110
111
112
113
114 if ( i % 10 != 0 )
115 continue;
116
118
120 if ( i % 50 != 0 )
121 continue;
122 if ( fVerbose )
123 printf( "Total = %8d. Sym = %8d. NonSym = %8d. Remaining = %8d.\n",
124 p->nPairsTotal,
p->nPairsSymm,
p->nPairsNonSymm,
p->nPairsRem );
125 }
126
127
129 if ( fVerbose )
130 printf( "Total = %8d. Sym = %8d. NonSym = %8d. Remaining = %8d.\n",
131 p->nPairsTotal,
p->nPairsSymm,
p->nPairsNonSymm,
p->nPairsRem );
132
133
134 Result =
p->nPairsSymm;
135 vResult =
p->vMatrSymms;
136p->timeTotal = Abc_Clock() - clkTotal;
137
139 return Result;
140}
void Sim_UtilSetRandom(unsigned *pPatRand, int nSimWords)
void Sim_SymmsStructCompute(Abc_Ntk_t *pNtk, Vec_Ptr_t *vMatrs, Vec_Ptr_t *vSuppFun)
FUNCTION DEFINITIONS ///.
Sym_Man_t * Sym_ManStart(Abc_Ntk_t *pNtk, int fVerbose)
FUNCTION DECLARATIONS ///.
void Sim_SymmsSimulate(Sym_Man_t *p, unsigned *pPatRand, Vec_Ptr_t *vMatrsNonSym)
FUNCTION DEFINITIONS ///.
int Sim_UtilMatrsAreDisjoint(Sym_Man_t *p)
void Sym_ManStop(Sym_Man_t *p)
int Sim_SymmsGetPatternUsingSat(Sym_Man_t *p, unsigned *pPattern)
FUNCTION DEFINITIONS ///.
int Sim_UtilCountAllPairs(Vec_Ptr_t *vSuppFun, int nSimWords, Vec_Int_t *vCounters)
typedefABC_NAMESPACE_HEADER_START struct Sym_Man_t_ Sym_Man_t
INCLUDES ///.
void Sim_UtilCountPairsAll(Sym_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.