std::stack<std::unordered_map<TNode, Node, TNodeHashFunction> > visited;
visited.push(std::unordered_map<TNode, Node, TNodeHashFunction>());
// whether the visited term contains pv
- std::unordered_map<TNode, bool, TNodeHashFunction> visited_contains_pv;
+ std::unordered_map<Node, bool, NodeHashFunction> visited_contains_pv;
std::unordered_map<TNode, Node, TNodeHashFunction>::iterator it;
std::unordered_map<TNode, Node, TNodeHashFunction> curr_subs;
std::stack<std::stack<TNode> > visit;
Node pv,
Node n,
std::vector<Node>& children,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv)
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv)
{
NodeManager* nm = NodeManager::currentNM();
Node pv,
Node n,
std::vector<Node>& children,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv);
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv);
/** process literal, called from processAssertion
*
* lit is the literal to solve for pv that has been rewritten according to
Node normalizePvMult(
TNode pv,
const std::vector<Node>& children,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv)
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv)
{
bool neg, neg_coeff = false;
bool found_pv = false;
bool isLinearPlus(
TNode n,
TNode pv,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv)
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv)
{
Node coeff;
Assert(n.getAttribute(BvLinearAttribute()));
Node normalizePvPlus(
Node pv,
const std::vector<Node>& children,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv)
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv)
{
NodeManager* nm;
NodeBuilder<> nb_c(BITVECTOR_PLUS);
Node normalizePvEqual(
Node pv,
const std::vector<Node>& children,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv)
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv)
{
Assert(children.size() == 2);
Node normalizePvMult(
TNode pv,
const std::vector<Node>& children,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv);
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv);
/**
* Normalizes the children of a BITVECTOR_PLUS w.r.t. pv. contains_pv marks
Node normalizePvPlus(
Node pv,
const std::vector<Node>& children,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv);
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv);
/**
* Linearize an equality w.r.t. pv such that pv only occurs once. contains_pv
Node normalizePvEqual(
Node pv,
const std::vector<Node>& children,
- std::unordered_map<TNode, bool, TNodeHashFunction>& contains_pv);
+ std::unordered_map<Node, bool, NodeHashFunction>& contains_pv);
} // namespace utils
} // namespace quantifiers
Node zero = mkZero(32);
Node one = mkOne(32);
BvLinearAttribute is_linear;
- std::unordered_map<TNode, bool, TNodeHashFunction> contains_x;
+ std::unordered_map<Node, bool, NodeHashFunction> contains_x;
contains_x[x] = true;
contains_x[neg_x] = true;
Node c = mkVar(32);
Node d = mkVar(32);
BvLinearAttribute is_linear;
- std::unordered_map<TNode, bool, TNodeHashFunction> contains_x;
+ std::unordered_map<Node, bool, NodeHashFunction> contains_x;
contains_x[x] = true;
contains_x[neg_x] = true;
Node one = mkOne(32);
Node ntrue = mkTrue();
BvLinearAttribute is_linear;
- std::unordered_map<TNode, bool, TNodeHashFunction> contains_x;
+ std::unordered_map<Node, bool, NodeHashFunction> contains_x;
contains_x[x] = true;
contains_x[neg_x] = true;