25#pragma warning(disable : 4786)
35Gia_Man_t *
Gia_ManTransductionBdd(
Gia_Man_t *pGia,
int nType,
int fMspf,
int nRandom,
int nSortType,
int nPiShuffle,
int nParameter,
int fLevel,
Gia_Man_t *pExdc,
int fNewLine,
int nVerbose) {
38 nSortType = rand() % 4;
40 nParameter = rand() % 16;
43 Transduction::Transduction<NewBdd::Man, NewBdd::Param, NewBdd::lit, 0xffffffff> t(pGia, nVerbose, fNewLine, nSortType, nPiShuffle, fLevel, pExdc,
p);
47 count -= fMspf? t.Mspf(): t.Cspf();
50 count -= t.
Resub(fMspf);
65 bool fInner = (nParameter / 4) % 2;
70 bool fInner = (nParameter / 4) % 2;
71 bool fOuter = (nParameter / 8) % 2;
76 bool fFirstMerge = nParameter % 2;
77 bool fMspfMerge = fMspf? (nParameter / 2) % 2:
false;
78 bool fInner = (nParameter / 4) % 2;
79 bool fOuter = (nParameter / 8) % 2;
80 count -= t.
RepeatAll(fFirstMerge, fMspfMerge, fMspf, fInner, fOuter);
84 std::cout <<
"Unknown transduction type " << nType << std::endl;
91Gia_Man_t *
Gia_ManTransductionTt(
Gia_Man_t *pGia,
int nType,
int fMspf,
int nRandom,
int nSortType,
int nPiShuffle,
int nParameter,
int fLevel,
Gia_Man_t *pExdc,
int fNewLine,
int nVerbose) {
94 nSortType = rand() % 4;
96 nParameter = rand() % 16;
99 Transduction::Transduction<NewTt::Man, NewTt::Param, NewTt::lit, 0xffffffff> t(pGia, nVerbose, fNewLine, nSortType, nPiShuffle, fLevel, pExdc,
p);
103 count -= fMspf? t.Mspf(): t.Cspf();
106 count -= t.
Resub(fMspf);
121 bool fInner = (nParameter / 4) % 2;
126 bool fInner = (nParameter / 4) % 2;
127 bool fOuter = (nParameter / 8) % 2;
132 bool fFirstMerge = nParameter % 2;
133 bool fMspfMerge = fMspf? (nParameter / 2) % 2:
false;
134 bool fInner = (nParameter / 4) % 2;
135 bool fOuter = (nParameter / 8) % 2;
136 count -= t.
RepeatAll(fFirstMerge, fMspfMerge, fMspf, fInner, fOuter);
140 std::cout <<
"Unknown transduction type " << nType << std::endl;
155Gia_Man_t *
Gia_ManTransductionBdd(
Gia_Man_t *pGia,
int nType,
int fMspf,
int nRandom,
int nSortType,
int nPiShuffle,
int nParameter,
int fLevel,
Gia_Man_t *pExdc,
int fNewLine,
int nVerbose)
159Gia_Man_t *
Gia_ManTransductionTt(
Gia_Man_t *pGia,
int nType,
int fMspf,
int nRandom,
int nSortType,
int nPiShuffle,
int nParameter,
int fLevel,
Gia_Man_t *pExdc,
int fNewLine,
int nVerbose)
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
int ResubMono(bool fMspf)
int RepeatAll(bool fFirstMerge, bool fMspfMerge, bool fMspfResub, bool fInner, bool fOuter)
int RepeatResub(bool fMono, bool fMspf)
int RepeatOuter(bool fMspf, bool fInner, bool fOuter)
int RepeatInner(bool fMspf, bool fInner)
Gia_Man_t * GenerateAig() const
int ResubShared(bool fMspf)
ABC_NAMESPACE_IMPL_START Gia_Man_t * Gia_ManTransductionBdd(Gia_Man_t *pGia, int nType, int fMspf, int nRandom, int nSortType, int nPiShuffle, int nParameter, int fLevel, Gia_Man_t *pExdc, int fNewLine, int nVerbose)
Gia_Man_t * Gia_ManTransductionTt(Gia_Man_t *pGia, int nType, int fMspf, int nRandom, int nSortType, int nPiShuffle, int nParameter, int fLevel, Gia_Man_t *pExdc, int fNewLine, int nVerbose)
struct Gia_Man_t_ Gia_Man_t