Lines Matching refs:node1
551 RandomVariableNode node1 = mVar, node2 = other.get(); in setEqual() local
552 NN_FUZZER_LOG << "Set equality of var" << node1->index << " and var" << node2->index; in setEqual()
555 if (node1 == node2 || (node1->op == Singleton<UnaryEqual>::get() && node1->parent1 == node2) || in setEqual()
556 (node2->op == Singleton<UnaryEqual>::get() && node2->parent1 == node1)) { in setEqual()
564 if (RandomVariableNetwork::get()->isSubordinate(node1, node2)) { in setEqual()
565 NN_FUZZER_LOG << " Make var" << node2->index << " a child of var" << node1->index; in setEqual()
567 node2->parent1 = node1; in setEqual()
569 node1->children.push_back(node2); in setEqual()
570 RandomVariableNetwork::get()->join(node1, node2); in setEqual()
571 node1->updateTimestamp(); in setEqual()
574 if (RandomVariableNetwork::get()->isSubordinate(node2, node1)) { in setEqual()
575 NN_FUZZER_LOG << " Make var" << node1->index << " a child of var" << node2->index; in setEqual()
576 node1->type = RandomVariableType::OP; in setEqual()
577 node1->parent1 = node2; in setEqual()
578 node1->op = Singleton<UnaryEqual>::get(); in setEqual()
579 node2->children.push_back(node1); in setEqual()
580 RandomVariableNetwork::get()->join(node2, node1); in setEqual()
581 node1->updateTimestamp(); in setEqual()
640 bool RandomVariableNetwork::isSubordinate(const RandomVariableNode& node1, in isSubordinate() argument
643 int ind1 = mIndexMap[node1]; in isSubordinate()
649 if (node == node1) return true; in isSubordinate()