fix bug causing auxiliary variables for pac growth parameters not to contain their original symbol id

issue#70
Houtan Bastani 2019-11-07 14:17:49 -05:00
parent 10ed67f6f0
commit 0bb233d291
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 4 additions and 0 deletions

View File

@ -6408,6 +6408,10 @@ DynamicModel::substituteDiff(vector<expr_t> &pac_growth)
for (const auto & equation : equations)
equation->findDiffNodes(diff_nodes);
for (const auto & gv : pac_growth)
if (gv != nullptr)
gv->findDiffNodes(diff_nodes);
/* Ensure that all diff operators appear once with their argument at current
period (i.e. index 0 in the equivalence class, see comment above
lag_equivalence_table_t in ExprNode.hh for details on the concepts).