Skip to content
Snippets Groups Projects
Verified Commit 0cd59dbc authored by Houtan Bastani's avatar Houtan Bastani
Browse files

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

issue #39
parent 9d3be05a
No related branches found
No related tags found
No related merge requests found
...@@ -2452,6 +2452,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string & plan) ...@@ -2452,6 +2452,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string & plan)
symbol_list.clear(); symbol_list.clear();
symbol_list.addSymbol(plan); symbol_list.addSymbol(plan);
mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition)); mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition));
symbol_list.clear();
options_list.clear();
} }
void void
...@@ -2461,6 +2463,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string &plan, const ...@@ -2461,6 +2463,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string &plan, const
symbol_list.addSymbol(plan); symbol_list.addSymbol(plan);
symbol_list.addSymbol(dset); symbol_list.addSymbol(dset);
mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition)); mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition));
symbol_list.clear();
options_list.clear();
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment