@@ -107,28 +107,28 @@ int run_match(mstreamt &os, optionst &opt, const danger_programt &prog,
107
107
typedef ga_learnt<selectt, mutatet, crosst, fitnesst, danger_fitness_configt> ga_learnt;
108
108
ga_learnt ga_learn (opt, rnd, select, mutate, cross, fitness, converter);
109
109
#ifndef _WIN32
110
- concurrent_learnt<ga_learnt, symex_learnt> learn (ga_learn, symex_learn,
111
- serialise, std::ref (deser), deserialise, symex_head_start);
112
- #else
113
- // TODO: Remove once task_pool supports Windows.
114
- ga_learnt &learn=ga_learn;
110
+ if (!opt.get_bool_option (CEGIS_GENETIC_ONLY))
111
+ {
112
+ concurrent_learnt<ga_learnt, symex_learnt> learn (ga_learn, symex_learn,
113
+ serialise, std::ref (deser), deserialise, symex_head_start);
114
+ return run_parallel (os, opt, prog, learn, preproc);
115
+ }
115
116
#endif
116
- return run_parallel (os, opt, prog, learn , preproc);
117
+ return run_parallel (os, opt, prog, ga_learn , preproc);
117
118
}
118
119
typedef tournament_selectt<program_populationt> selectt;
119
120
selectt select (rounds);
120
- typedef ga_learnt<selectt, random_mutatet, random_crosst, fitnesst,
121
- danger_fitness_configt> ga_learnt;
121
+ typedef ga_learnt<selectt, mutatet, crosst, fitnesst, danger_fitness_configt> ga_learnt;
122
122
ga_learnt ga_learn (opt, rnd, select, mutate, cross, fitness, converter);
123
123
#ifndef _WIN32
124
- concurrent_learnt<ga_learnt, symex_learnt> learn (ga_learn, symex_learn,
125
- serialise, std::ref (deser), deserialise, symex_head_start);
126
- #else
127
- // TODO: Remove once task_pool supports Windows.
128
- ga_learnt &learn=ga_learn;
124
+ if (!opt.get_bool_option (CEGIS_GENETIC_ONLY))
125
+ {
126
+ concurrent_learnt<ga_learnt, symex_learnt> learn (ga_learn, symex_learn,
127
+ serialise, std::ref (deser), deserialise, symex_head_start);
128
+ return run_parallel (os, opt, prog, learn, preproc);
129
+ }
129
130
#endif
130
- return run_parallel (os, opt, prog, learn, preproc);
131
- return 0 ;
131
+ return run_parallel (os, opt, prog, ga_learn, preproc);
132
132
}
133
133
134
134
template <class preproct >
0 commit comments