Lines Matching refs:ExpressionValue
188 Format.getMatchingString(ExpressionValue(Val)); in checkMatchingString()
196 Format.getMatchingString(ExpressionValue(Val)); in checkMatchingStringFailure()
201 Expected<ExpressionValue> getValueFromStringReprFailure(StringRef Str) { in getValueFromStringReprFailure()
208 Expected<ExpressionValue> ResultValue = getValueFromStringReprFailure(Str); in checkValueFromStringRepr()
223 Expected<ExpressionValue> ResultValue = getValueFromStringReprFailure(Str); in checkValueFromStringReprFailure()
366 NoFormat.getMatchingString(ExpressionValue(18u)).takeError()); in TEST_F()
398 static Expected<ExpressionValue> doValueOperation(binop_eval_t Operation, in doValueOperation()
400 ExpressionValue LeftOperand(LeftValue); in doValueOperation()
401 ExpressionValue RightOperand(RightValue); in doValueOperation()
406 static void expectValueEqual(ExpressionValue ActualValue, T ExpectedValue) { in expectValueEqual()
422 Expected<ExpressionValue> OperationResult = in expectOperationValueResult()
438 Expected<uint64_t> UnsignedValue = ExpressionValue(10).getUnsignedValue(); in TEST_F()
443 UnsignedValue = ExpressionValue(0).getUnsignedValue(); in TEST_F()
448 UnsignedValue = ExpressionValue(MaxUint64).getUnsignedValue(); in TEST_F()
454 "overflow error", ExpressionValue(-1).getUnsignedValue().takeError()); in TEST_F()
459 ExpressionValue(MinInt64).getUnsignedValue().takeError()); in TEST_F()
464 Expected<int64_t> SignedValue = ExpressionValue(10).getSignedValue(); in TEST_F()
469 SignedValue = ExpressionValue(0).getSignedValue(); in TEST_F()
474 SignedValue = ExpressionValue(MaxInt64).getSignedValue(); in TEST_F()
480 "overflow error", ExpressionValue(static_cast<uint64_t>(MaxInt64) + 1) in TEST_F()
487 ExpressionValue(MaxUint64).getSignedValue().takeError()); in TEST_F()
490 SignedValue = ExpressionValue(-10).getSignedValue(); in TEST_F()
495 SignedValue = ExpressionValue(MinInt64).getSignedValue(); in TEST_F()
502 expectValueEqual(ExpressionValue(10).getAbsolute(), 10); in TEST_F()
505 expectValueEqual(ExpressionValue(0).getAbsolute(), 0); in TEST_F()
508 expectValueEqual(ExpressionValue(MaxUint64).getAbsolute(), MaxUint64); in TEST_F()
511 expectValueEqual(ExpressionValue(-10).getAbsolute(), 10); in TEST_F()
514 expectValueEqual(ExpressionValue(MinInt64).getAbsolute(), in TEST_F()
646 EXPECT_FALSE(ExpressionValue(5) == ExpressionValue(-3)); in TEST_F()
647 EXPECT_TRUE(ExpressionValue(5) != ExpressionValue(-3)); in TEST_F()
648 EXPECT_FALSE(ExpressionValue(-2) == ExpressionValue(6)); in TEST_F()
649 EXPECT_TRUE(ExpressionValue(-2) != ExpressionValue(6)); in TEST_F()
650 EXPECT_FALSE(ExpressionValue(-7) == ExpressionValue(7)); in TEST_F()
651 EXPECT_TRUE(ExpressionValue(-7) != ExpressionValue(7)); in TEST_F()
652 EXPECT_FALSE(ExpressionValue(4) == ExpressionValue(-4)); in TEST_F()
653 EXPECT_TRUE(ExpressionValue(4) != ExpressionValue(-4)); in TEST_F()
654 EXPECT_FALSE(ExpressionValue(MaxUint64) == ExpressionValue(-1)); in TEST_F()
655 EXPECT_TRUE(ExpressionValue(MaxUint64) != ExpressionValue(-1)); in TEST_F()
658 EXPECT_FALSE(ExpressionValue(-2) == ExpressionValue(-7)); in TEST_F()
659 EXPECT_TRUE(ExpressionValue(-2) != ExpressionValue(-7)); in TEST_F()
660 EXPECT_TRUE(ExpressionValue(-3) == ExpressionValue(-3)); in TEST_F()
661 EXPECT_FALSE(ExpressionValue(-3) != ExpressionValue(-3)); in TEST_F()
662 EXPECT_FALSE(ExpressionValue(MinInt64) == ExpressionValue(-1)); in TEST_F()
663 EXPECT_TRUE(ExpressionValue(MinInt64) != ExpressionValue(-1)); in TEST_F()
664 EXPECT_FALSE(ExpressionValue(MinInt64) == ExpressionValue(-0)); in TEST_F()
665 EXPECT_TRUE(ExpressionValue(MinInt64) != ExpressionValue(-0)); in TEST_F()
668 EXPECT_FALSE(ExpressionValue(8) == ExpressionValue(9)); in TEST_F()
669 EXPECT_TRUE(ExpressionValue(8) != ExpressionValue(9)); in TEST_F()
670 EXPECT_TRUE(ExpressionValue(1) == ExpressionValue(1)); in TEST_F()
671 EXPECT_FALSE(ExpressionValue(1) != ExpressionValue(1)); in TEST_F()
674 EXPECT_TRUE(ExpressionValue(0) == ExpressionValue(0)); in TEST_F()
675 EXPECT_FALSE(ExpressionValue(0) != ExpressionValue(0)); in TEST_F()
676 EXPECT_TRUE(ExpressionValue(0) == ExpressionValue(-0)); in TEST_F()
677 EXPECT_FALSE(ExpressionValue(0) != ExpressionValue(-0)); in TEST_F()
678 EXPECT_TRUE(ExpressionValue(-0) == ExpressionValue(0)); in TEST_F()
679 EXPECT_FALSE(ExpressionValue(-0) != ExpressionValue(0)); in TEST_F()
680 EXPECT_TRUE(ExpressionValue(-0) == ExpressionValue(-0)); in TEST_F()
681 EXPECT_FALSE(ExpressionValue(-0) != ExpressionValue(-0)); in TEST_F()
689 Expected<ExpressionValue> Value = Ten.eval(); in TEST_F()
748 Expected<ExpressionValue> EvalResult = FooVarUse.eval(); in TEST_F()
752 FooVar.setValue(ExpressionValue(42u)); in TEST_F()
753 Optional<ExpressionValue> Value = FooVar.getValue(); in TEST_F()
764 FooVar.setValue(ExpressionValue(925u), StringValue); in TEST_F()
792 FooVar.setValue(ExpressionValue(42u)); in TEST_F()
798 BarVar.setValue(ExpressionValue(18u)); in TEST_F()
807 Expected<ExpressionValue> Value = Binop.eval(); in TEST_F()
1568 NVar.setValue(ExpressionValue(10u)); in TEST_F()
1678 Expected<ExpressionValue> ExpressionVal = in TEST_F()