Lines Matching refs:valueRange
76 …aryOp<Precedence, Assoc>::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
83 if (valueRange.getType().isVoid()) in getWeight()
86 if (availableLevels < getConservativeValueExprDepth(state, valueRange) + 1) in getWeight()
117 ValueRange valueRange = inValueRange; in BinaryVecOp() local
119 if (valueRange.getType().isVoid()) in BinaryVecOp()
131 valueRange = ValueRange(VariableType(baseType, numElements)); in BinaryVecOp()
132 computeRandomValueRange(state, valueRange.asAccess()); in BinaryVecOp()
136 this->m_type = valueRange.getType(); in BinaryVecOp()
148 ConstValueRangeAccess dst = valueRange.asAccess().component(elemNdx); in BinaryVecOp()
281 MulOp::MulOp (GeneratorState& state, ConstValueRangeAccess valueRange) in MulOp() argument
282 : MulBase(state, Token::MUL, valueRange) in MulOp()
286 float MulOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
288 if (valueRange.getType().isVoid() || in getWeight()
289 valueRange.getType().isFloatOrVec() || in getWeight()
290 valueRange.getType().isIntOrVec()) in getWeight()
291 return MulBase::getWeight(state, valueRange); in getWeight()
331 AddOp::AddOp (GeneratorState& state, ConstValueRangeAccess valueRange) in AddOp() argument
332 : AddBase(state, Token::PLUS, valueRange) in AddOp()
336 float AddOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
338 if (valueRange.getType().isVoid() || in getWeight()
339 valueRange.getType().isFloatOrVec() || in getWeight()
340 valueRange.getType().isIntOrVec()) in getWeight()
341 return AddBase::getWeight(state, valueRange); in getWeight()
381 SubOp::SubOp (GeneratorState& state, ConstValueRangeAccess valueRange) in SubOp() argument
382 : SubBase(state, Token::MINUS, valueRange) in SubOp()
386 float SubOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
388 if (valueRange.getType().isVoid() || in getWeight()
389 valueRange.getType().isFloatOrVec() || in getWeight()
390 valueRange.getType().isIntOrVec()) in getWeight()
391 return SubBase::getWeight(state, valueRange); in getWeight()
400 ValueRange valueRange = inValueRange; in RelationalOp() local
402 if (valueRange.getType().isVoid()) in RelationalOp()
404 valueRange = ValueRange(VariableType(VariableType::TYPE_BOOL, 1)); in RelationalOp()
405 computeRandomValueRange(state, valueRange.asAccess()); in RelationalOp()
409 this->m_type = valueRange.getType(); in RelationalOp()
422 bool dstMin = valueRange.getMin().asBool(); in RelationalOp()
423 bool dstMax = valueRange.getMax().asBool(); in RelationalOp()
465 …alueRange, EvaluateComp>::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
470 if (valueRange.getType().isVoid() || in getWeight()
471 …(valueRange.getType().getBaseType() == VariableType::TYPE_BOOL && valueRange.getType().getNumEleme… in getWeight()
472 return BinaryOp<7, ASSOCIATIVITY_LEFT>::getWeight(state, valueRange); in getWeight()
532 LessThanOp::LessThanOp (GeneratorState& state, ConstValueRangeAccess valueRange) in LessThanOp() argument
533 : LessThanBase(state, Token::CMP_LT, valueRange) in LessThanOp()
537 float LessThanOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
539 return LessThanBase::getWeight(state, valueRange); in getWeight()
588 LessOrEqualOp::LessOrEqualOp (GeneratorState& state, ConstValueRangeAccess valueRange) in LessOrEqualOp() argument
589 : LessOrEqualBase(state, Token::CMP_LE, valueRange) in LessOrEqualOp()
593 float LessOrEqualOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
595 return LessOrEqualBase::getWeight(state, valueRange); in getWeight()
598 GreaterThanOp::GreaterThanOp (GeneratorState& state, ConstValueRangeAccess valueRange) in GreaterThanOp() argument
599 : GreaterThanBase(state, Token::CMP_GT, valueRange) in GreaterThanOp()
603 float GreaterThanOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
605 return GreaterThanBase::getWeight(state, valueRange); in getWeight()
608 GreaterOrEqualOp::GreaterOrEqualOp (GeneratorState& state, ConstValueRangeAccess valueRange) in GreaterOrEqualOp() argument
609 : GreaterOrEqualBase(state, Token::CMP_GE, valueRange) in GreaterOrEqualOp()
613 float GreaterOrEqualOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
615 return GreaterOrEqualBase::getWeight(state, valueRange); in getWeight()
695 ValueRange valueRange = inValueRange; in EqualityComparisonOp() local
697 if (valueRange.getType().isVoid()) in EqualityComparisonOp()
699 valueRange = ValueRange(VariableType(VariableType::TYPE_BOOL, 1)); in EqualityComparisonOp()
700 computeRandomValueRange(state, valueRange.asAccess()); in EqualityComparisonOp()
704 this->m_type = valueRange.getType(); in EqualityComparisonOp()
720 bool dstMin = valueRange.getMin().asBool(); in EqualityComparisonOp()
721 bool dstMax = valueRange.getMax().asBool(); in EqualityComparisonOp()
745 …ityComparisonOp<IsEqual>::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
752 if (valueRange.getType().isVoid() || in getWeight()
753 …(valueRange.getType().getBaseType() == VariableType::TYPE_BOOL && valueRange.getType().getNumEleme… in getWeight()
754 return BinaryOp<8, ASSOCIATIVITY_LEFT>::getWeight(state, valueRange); in getWeight()
835 EqualOp::EqualOp (GeneratorState& state, ConstValueRangeAccess valueRange) in EqualOp() argument
836 : EqualityComparisonOp<true>(state, valueRange) in EqualOp()
840 float EqualOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
842 return EqualityComparisonOp<true>::getWeight(state, valueRange); in getWeight()
845 NotEqualOp::NotEqualOp (GeneratorState& state, ConstValueRangeAccess valueRange) in NotEqualOp() argument
846 : EqualityComparisonOp<false>(state, valueRange) in NotEqualOp()
850 float NotEqualOp::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument
852 return EqualityComparisonOp<false>::getWeight(state, valueRange); in getWeight()