From: Ian Jackson Date: Sun, 9 Mar 2014 19:46:55 +0000 (+0000) Subject: make -b more effective by moving initialisation of {n,m}_max_frags earlier X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=matchsticks-search.git;a=commitdiff_plain;h=9ec76da798715053418c6cac1baf7e0632cfc145 make -b more effective by moving initialisation of {n,m}_max_frags earlier --- diff --git a/main.c b/main.c index 3f52a86..d923704 100644 --- a/main.c +++ b/main.c @@ -115,7 +115,7 @@ static double best; static glp_prob *best_prob; static AdjWord *best_adjmatrix; -static int n_max_frags, m_max_frags; +static int n_max_frags=INT_MAX, m_max_frags=INT_MAX; static int *weight; static unsigned printcounter; @@ -390,8 +390,6 @@ static void prep(void) { glp_term_out(GLP_OFF); setlinebuf(stderr); weight = calloc(sizeof(*weight), m); assert(weight); - n_max_frags = INT_MAX; - m_max_frags = INT_MAX; } #if 0