#include "basis.h" #include "cca.h" #include "cw.h" #include "preprocessor.h" #include #include //these two h files are for linux #include #include "ccanr.h" char * inst; int seed; long long ls_no_improv_times; bool aspiration_active; static int pick_var(void) { int i,k,c,v; int best_var; lit* clause_c; /**Greedy Mode**/ /*CCD (configuration changed decreasing) mode, the level with configuation chekcing*/ if(goodvar_stack_fill_pointer>0) { //if(goodvar_stack_fill_pointerscore[best_var]) best_var = v; else if(score[v]==score[best_var]) { //if(unsat_app_count[v]>unsat_app_count[best_var]) best_var = v; //else if(unsat_app_count[v]==unsat_app_count[best_var]&&time_stamp[v]score[best_var]) best_var = v; else if(score[v]==score[best_var]) { //if(unsat_app_count[v]>unsat_app_count[best_var]) best_var = v; //else if(unsat_app_count[v]==unsat_app_count[best_var]&&time_stamp[v]ave_weight) { best_var = unsatvar_stack[i]; break; } } for(++i; iscore[best_var]) best_var = v; else if(score[v]==score[best_var] && time_stamp[v]score[best_var]) best_var = v; //else if(score[v]==score[best_var]&&time_stamp[v]unsat_app_count[best_var]) best_var = v; //else if(unsat_app_count[v]==unsat_app_count[best_var] && time_stamp[v]score[best_var]) best_var = v; else if(score[v]==score[best_var]&&time_stamp[v] 0) preprocess(); build_neighbor_relation(); scale_ave=(threshold+1)*q_scale; // cout<<"c Instance: Number of variables = "<