File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -178,12 +178,16 @@ static std::unique_ptr<SatcheckT>
178
178
make_satcheck_prop (message_handlert &message_handler, const optionst &options)
179
179
{
180
180
auto satcheck = util_make_unique<SatcheckT>(message_handler);
181
- if (options. is_set ( " write-solver-stats-to " ))
181
+ if (auto hardness_collector = dynamic_cast <hardness_collectort *>(&*satcheck ))
182
182
{
183
- satcheck->enable_hardness_collection ();
184
- satcheck->with_solver_hardness ([&options](solver_hardnesst &hardness) {
185
- hardness.set_outfile (options.get_option (" write-solver-stats-to" ));
186
- });
183
+ if (options.is_set (" write-solver-stats-to" ))
184
+ {
185
+ hardness_collector->enable_hardness_collection ();
186
+ hardness_collector->with_solver_hardness (
187
+ [&options](solver_hardnesst &hardness) {
188
+ hardness.set_outfile (options.get_option (" write-solver-stats-to" ));
189
+ });
190
+ }
187
191
}
188
192
return satcheck;
189
193
}
You can’t perform that action at this time.
0 commit comments