diff --git a/src/ExprNode.cc b/src/ExprNode.cc index fc1ecdebce8cf95609e7592232f2d21f8fa6578e..bf684c4d0831f4c3cf5c88a1d854b1657f4e3c8b 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -5567,7 +5567,7 @@ BinaryOpNode::getPacEC(BinaryOpNode *bopn, int lhs_symb_id, int lhs_orig_symb_id for (const auto & it : endogs) { int id = it.first; - bool istarget = false; + bool istarget = true; while (datatree.symbol_table.isAuxiliaryVariable(id)) try { @@ -5578,7 +5578,7 @@ BinaryOpNode::getPacEC(BinaryOpNode *bopn, int lhs_symb_id, int lhs_orig_symb_id break; } if (id == lhs_symb_id || id == lhs_orig_symb_id) - istarget = true; + istarget = false; symb_ids.push_back({it.first, istarget}); } ec_params_and_vars = make_pair(optim_param_symb_id, symb_ids);