33 static double drand(
double seed) {
36 q = (int)(seed / 2147483647);
37 seed -= (double)q * 2147483647;
38 return seed / 2147483647; }
100 if ( Value1 < Value2 )
102 if ( Value1 > Value2 )
123 for ( i = 0; i < size-1; i++ )
126 for (j = i+1; j <
size; j++)
131 tmp = array[i]; array[i] = array[best_i]; array[best_i] = tmp;
165 tmp = array[i]; array[i] = array[j]; array[j] = tmp;
void Msat_SolverSortSelection(Msat_Clause_t **array, int size)
static double drand(double seed)
Msat_ClauseVec_t * Msat_SolverReadLearned(Msat_Solver_t *p)
typedefABC_NAMESPACE_HEADER_START struct Msat_Clause_t_ Msat_Clause_t
INCLUDES ///.
int Msat_ClauseVecReadSize(Msat_ClauseVec_t *p)
static int irand(double seed, int size)
static ABC_NAMESPACE_IMPL_START int Msat_SolverSortCompare(Msat_Clause_t **ppC1, Msat_Clause_t **ppC2)
DECLARATIONS ///.
Msat_Clause_t ** Msat_ClauseVecReadArray(Msat_ClauseVec_t *p)
#define ABC_NAMESPACE_IMPL_END
void Msat_SolverSortDB(Msat_Solver_t *p)
FUNCTION DEFINITIONS ///.
static void Msat_SolverSort(Msat_Clause_t **array, int size, double seed)
#define ABC_NAMESPACE_IMPL_START
typedefABC_NAMESPACE_HEADER_START struct Msat_Solver_t_ Msat_Solver_t
INCLUDES ///.
float Msat_ClauseReadActivity(Msat_Clause_t *pC)