static void iterate(void);
static void iterate_recurse(int i, AdjWord min);
static bool preconsider_ok(int nwords, bool doprint);
+static bool maxhamweight_ok(void);
static void optimise(bool doprint);
static void progress_eol(void) {
static int totalfrags;
+static bool maxhamweight_ok(void) {
+ double maxminsize = (double)m / maxhamweight;
+ return maxminsize > best;
+}
+
static bool preconsider_ok(int nwords, bool doprint) {
int i;
static void iterate(void) {
for (maxhamweight=1; maxhamweight<=m; maxhamweight++) {
- double maxminsize = (double)m / maxhamweight;
- if (maxminsize <= best)
+ if (!maxhamweight_ok())
continue;
iterate_recurse(0, 1);