Lines Matching refs:parent2
61 parent2(rhs), in RandomVariableBase()
100 return op->eval(parent1->getValue(), parent2 == nullptr ? 0 : parent2->getValue()); in getValue()
138 if (mVar->parent2 != nullptr && mVar->parent2->type == RandomVariableType::CONST) { in RandomVariable()
139 mVar->parent2 = RandomVariable(mVar->parent2->value).get(); in RandomVariable()
142 if (mVar->parent2 != nullptr) mVar->parent2->children.push_back(mVar); in RandomVariable()
286 std::pair<int, int> parent2 = {*parent2In->begin(), *parent2In->rbegin()}; in eval() local
291 fillRange(childOut, std::max(child.first, parent1.first + parent2.first), in eval()
292 std::min(child.second, parent1.second + parent2.second)); in eval()
296 fillRange(parent1Out, std::max(parent1.first, child.first - parent2.second), in eval()
297 std::min(parent1.second, child.second - parent2.first)); in eval()
298 fillRange(parent2Out, std::max(parent2.first, child.first - parent1.second), in eval()
299 std::min(parent2.second, child.second - parent1.first)); in eval()
321 std::pair<int, int> parent2 = {*parent2In->begin(), *parent2In->rbegin()}; in eval() local
323 fillRange(childOut, std::max(child.first, parent1.first - parent2.second), in eval()
324 std::min(child.second, parent1.second - parent2.first)); in eval()
325 fillRange(parent1Out, std::max(parent1.first, child.first + parent2.first), in eval()
326 std::min(parent1.second, child.second + parent2.second)); in eval()
327 fillRange(parent2Out, std::max(parent2.first, parent1.first - child.second), in eval()
328 std::min(parent2.second, parent1.second - child.first)); in eval()
598 int ind2 = var->parent2 == nullptr ? -1 : mIndexMap[var->parent2]; in add()
675 var->parent2 == nullptr ? 0 : var->parent2->value); in eval()
719 if (var->parent2 != nullptr) ss << " var" << var->parent2->index; in toString()
782 var->parent2 == nullptr ? nullptr : &context->at(var->parent2).committed, in evalSubnetSingleOpHelper()
784 var->parent2 == nullptr ? nullptr : &context->at(var->parent2).staging, in evalSubnetSingleOpHelper()
875 } else if (var1->parent2 == var2) { in setBridgeFlag()
893 if (var->parent2 != nullptr) adj.push_back(var->parent2); in annotateBridgeHelper()
926 auto parent2 = var->parent2; in add() local
928 if (mBridgeInfo[var].isParent2Bridge) var->parent2 = nullptr; in add()
931 var->parent2 = parent2; in add()
947 res.back().evalOrder.push_back(var->parent2); in get()
948 res.back().bridgeNodes.push_back(var->parent2); in get()
1006 constructorHelper(var->parent2, visited); in constructorHelper()
1123 RandomVariableNode parent1 = node->parent1, parent2 = node->parent2; in unsetEqual() local
1126 if (parent2 != nullptr) { in unsetEqual()
1128 parent2->children.erase( in unsetEqual()
1129 std::find(parent2->children.begin(), parent2->children.end(), node)); in unsetEqual()
1130 node->parent2 = nullptr; in unsetEqual()