else
{
d_trMaster[a] = a;
- d_trSlaves[a].push_back(a);
+ d_trSlaves[a].insert(a);
}
}
}
Node y =
nm->mkSkolem("y", nm->realType(), "phase shifted trigonometric arg");
Node new_a = nm->mkNode(k, y);
- d_trSlaves[new_a].push_back(new_a);
- d_trSlaves[new_a].push_back(a);
+ d_trSlaves[new_a].insert(new_a);
+ d_trSlaves[new_a].insert(a);
d_trMaster[a] = new_a;
d_trMaster[new_a] = new_a;
Node lem;
// Can assume it is its own master since phase is split over 0,
// hence -pi <= t[0] <= pi implies -pi <= -t[0] <= pi.
d_trMaster[symn] = symn;
- d_trSlaves[symn].push_back(symn);
+ d_trSlaves[symn].insert(symn);
Assert(d_trSlaves.find(t) != d_trSlaves.end());
std::vector< Node > children;
* that contain transcendental functions.
*/
std::map<Node, Node> d_trMaster;
- std::map<Node, std::vector<Node> > d_trSlaves;
+ std::map<Node, std::unordered_set<Node, NodeHashFunction>> d_trSlaves;
/** The transcendental functions we have done initial refinements on */
std::map< Node, bool > d_tf_initial_refine;