Lines Matching refs:node2
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()
566 node2->type = RandomVariableType::OP; in setEqual()
567 node2->parent1 = node1; in setEqual()
568 node2->op = Singleton<UnaryEqual>::get(); in setEqual()
569 node1->children.push_back(node2); in setEqual()
570 RandomVariableNetwork::get()->join(node1, node2); 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()
577 node1->parent1 = node2; in setEqual()
579 node2->children.push_back(node1); in setEqual()
580 RandomVariableNetwork::get()->join(node2, node1); in setEqual()
641 const RandomVariableNode& node2) { in isSubordinate() argument
642 if (node2->type != RandomVariableType::FREE) return false; in isSubordinate()
645 if (ind1 != mIndexMap[node2]) return true; in isSubordinate()
647 if (node == node2) return false; in isSubordinate()