17#ifndef ABC__bool__lucky__LUCKY_INT_H_
18#define ABC__bool__lucky__LUCKY_INT_H_
37#define ABC_NAMESPACE_HEADER_START
38#define ABC_NAMESPACE_HEADER_END
39#define ABC_NAMESPACE_IMPL_START
40#define ABC_NAMESPACE_IMPL_END
41typedef unsigned __int64
word;
45#define inline __inline
46#define ABC_ALLOC(type, num) ((type *) malloc(sizeof(type) * (num)))
90static inline void TimePrint(
char* Message )
93 double time = 1.0*(Abc_Clock() - timeBegin)/CLOCKS_PER_SEC ;
95 printf(
"%s = %f sec.\n", Message, time);
96 timeBegin = Abc_Clock();
99static inline int CompareWords(
word x,
word y)
108static inline int luckyMin(
int x,
int y ) {
return (x < y) ? x : y; }
109static inline int luckyMax(
int x,
int y ) {
return (x < y) ? y : x; }
129extern unsigned adjustInfoAfterSwap(
char* pCanonPerm,
unsigned uCanonPhase,
int iVar,
unsigned info);
131extern void swap_ij(
word* f,
int totalVars,
int varI,
int varJ);
#define ABC_NAMESPACE_HEADER_END
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
unsigned __int64 word
DECLARATIONS ///.
void freePermInfoPtr(permInfo *x)
void Kit_TruthChangePhase_64bit(word *pInOut, int nVars, int iVar)
void simpleMinimal(word *x, word *pAux, word *minimal, permInfo *pi, int nVars)
void Kit_TruthSwapAdjacentVars_64bit(word *pInOut, int nVars, int iVar)
void Abc_TruthStoreFree(Abc_TtStore_t *p)
unsigned adjustInfoAfterSwap(char *pCanonPerm, unsigned uCanonPhase, int iVar, unsigned info)
int Kit_TruthCountOnes_64bit(word *pIn, int nVars)
int Kit_TruthWordNum_64bit(int nVars)
void Kit_TruthSemiCanonicize_Yasha_simple(word *pInOut, int nVars, int *pStore)
permInfo * setPermInfoPtr(int var)
void resetPCanonPermArray_6Vars(char *x)
void Kit_TruthNot_64bit(word *pIn, int nVars)
void swap_ij(word *f, int totalVars, int varI, int varJ)
unsigned Kit_TruthSemiCanonicize_Yasha1(word *pInOut, int nVars, char *pCanonPerm, int *pStore)
void Kit_TruthCopy_64bit(word *pOut, word *pIn, int nVars)
word luckyCanonicizer_final_fast_6Vars1(word InOut, int *pStore, char *pCanonPerm, unsigned *pCanonPhase)
unsigned Kit_TruthSemiCanonicize_Yasha(word *pInOut, int nVars, char *pCanonPerm)
word luckyCanonicizer_final_fast_6Vars(word InOut, int *pStore, char *pCanonPerm, unsigned *pCanonPhase)
Abc_TtStore_t * setTtStore(char *pFileInput)
int memCompare(word *x, word *y, int nVars)