preprocessor: fix bug in obtaining diff info

issue#70
Houtan Bastani 2018-02-09 12:17:07 +01:00
parent bda91e6204
commit dee8867899
1 changed files with 1 additions and 1 deletions

View File

@ -3305,7 +3305,7 @@ DynamicModel::getDiffInfo(vector<int> &eqnumber, vector<bool> &diff, vector<int>
for (vector<int>::const_iterator it = eqnumber.begin(); for (vector<int>::const_iterator it = eqnumber.begin();
it != eqnumber.end(); it++) it != eqnumber.end(); it++)
{ {
diff.push_back(equations[*it]->isDiffPresent()); diff.push_back(equations[*it]->get_arg1()->isDiffPresent());
if (diff.back()) if (diff.back())
{ {
set<pair<int, int> > diff_set; set<pair<int, int> > diff_set;