16 std::map<const Node *, const Node *> ParentMap;
18 void dfs(
const Node *N,
const Node *Parent);
35 [[nodiscard]]
bool isRoot(
const Node &N)
const;
const Node * upExpr(const Node &N) const
Search up until the node becomes a concrete expression. a ^<--— ID -> ExprVar.
static bool isRoot(const Node *Up, const Node &N)
const Node * upTo(const Node &N, Node::NodeKind Kind) const
Search up until some kind of node is found.
void runOnAST(const Node &Root)
const Node * query(const Node &N) const