Lines Matching refs:parent1
61 parent1(lhs), in RandomVariableBase()
101 return op->eval(parent1->getValue(), parent2 == nullptr ? 0 : parent2->getValue()); in getValue()
136 if (mVar->parent1->type == RandomVariableType::CONST) { in RandomVariable()
137 mVar->parent1 = RandomVariable(mVar->parent1->value).get(); in RandomVariable()
142 mVar->parent1->children.push_back(mVar); in RandomVariable()
286 std::pair<int, int> parent1 = {*parent1In->begin(), *parent1In->rbegin()}; in eval() local
292 fillRange(childOut, std::max(child.first, parent1.first + parent2.first), in eval()
293 std::min(child.second, parent1.second + parent2.second)); in eval()
297 fillRange(parent1Out, std::max(parent1.first, child.first - parent2.second), in eval()
298 std::min(parent1.second, child.second - parent2.first)); in eval()
299 fillRange(parent2Out, std::max(parent2.first, child.first - parent1.second), in eval()
300 std::min(parent2.second, child.second - parent1.first)); in eval()
321 std::pair<int, int> parent1 = {*parent1In->begin(), *parent1In->rbegin()}; in eval() local
324 fillRange(childOut, std::max(child.first, parent1.first - parent2.second), in eval()
325 std::min(child.second, parent1.second - parent2.first)); in eval()
326 fillRange(parent1Out, std::max(parent1.first, child.first + parent2.first), in eval()
327 std::min(parent1.second, child.second + parent2.second)); in eval()
328 fillRange(parent2Out, std::max(parent2.first, parent1.first - child.second), in eval()
329 std::min(parent2.second, parent1.second - child.first)); in eval()
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()
567 node2->parent1 = node1; in setEqual()
577 node1->parent1 = node2; in setEqual()
598 int ind1 = var->parent1 == nullptr ? -1 : mIndexMap[var->parent1]; in add()
675 var->value = var->op->eval(var->parent1->value, in eval()
719 ss << "var" << var->parent1->index << " " << var->op->getName(); in toString()
782 var->op->eval(&context->at(var->parent1).committed, in evalSubnetSingleOpHelper()
784 &context->at(var).committed, &context->at(var->parent1).staging, in evalSubnetSingleOpHelper()
874 if (var1->parent1 == var2) { in setBridgeFlag()
893 if (var->parent1 != nullptr) adj.push_back(var->parent1); in annotateBridgeHelper()
928 auto parent1 = var->parent1; in add() local
930 if (mBridgeInfo[var].isParent1Bridge) var->parent1 = nullptr; in add()
933 var->parent1 = parent1; in add()
942 if (pair.second.size() == 1 && pair.second[0]->parent1 == nullptr) continue; in get()
946 res.back().evalOrder.push_back(var->parent1); in get()
947 res.back().bridgeNodes.push_back(var->parent1); in get()
1008 constructorHelper(var->parent1, visited); in constructorHelper()
1129 RandomVariableNode parent1 = node->parent1, parent2 = node->parent2; in unsetEqual() local
1130 parent1->children.erase( in unsetEqual()
1131 std::find_if(parent1->children.begin(), parent1->children.end(), weakPtrEqual)); in unsetEqual()
1132 node->parent1 = nullptr; in unsetEqual()