bug fix: clear symbol list and options list after call to `DetCondForecast` constructor

issue #39
issue#70
Houtan Bastani 2019-12-20 11:14:04 +01:00
parent 9d3be05a2d
commit 0cd59dbcf8
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 4 additions and 0 deletions

View File

@ -2452,6 +2452,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string & plan)
symbol_list.clear();
symbol_list.addSymbol(plan);
mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition));
symbol_list.clear();
options_list.clear();
}
void
@ -2461,6 +2463,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string &plan, const
symbol_list.addSymbol(plan);
symbol_list.addSymbol(dset);
mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition));
symbol_list.clear();
options_list.clear();
}
void