Lines Matching refs:ExpressionValue

177         Format.getMatchingString(ExpressionValue(Val));  in checkMatchingString()
185 Format.getMatchingString(ExpressionValue(Val)); in checkMatchingStringFailure()
190 Expected<ExpressionValue> getValueFromStringReprFailure(StringRef Str) { in getValueFromStringReprFailure()
197 Expected<ExpressionValue> ResultValue = getValueFromStringReprFailure(Str); in checkValueFromStringRepr()
212 Expected<ExpressionValue> ResultValue = getValueFromStringReprFailure(Str); in checkValueFromStringReprFailure()
327 NoFormat.getMatchingString(ExpressionValue(18u)).takeError()); in TEST_F()
359 static Expected<ExpressionValue> doValueOperation(binop_eval_t Operation, in doValueOperation()
361 ExpressionValue LeftOperand(LeftValue); in doValueOperation()
362 ExpressionValue RightOperand(RightValue); in doValueOperation()
367 static void expectValueEqual(ExpressionValue ActualValue, T ExpectedValue) { in expectValueEqual()
383 Expected<ExpressionValue> OperationResult = in expectOperationValueResult()
399 Expected<uint64_t> UnsignedValue = ExpressionValue(10).getUnsignedValue(); in TEST_F()
404 UnsignedValue = ExpressionValue(0).getUnsignedValue(); in TEST_F()
409 UnsignedValue = ExpressionValue(MaxUint64).getUnsignedValue(); in TEST_F()
415 "overflow error", ExpressionValue(-1).getUnsignedValue().takeError()); in TEST_F()
420 ExpressionValue(MinInt64).getUnsignedValue().takeError()); in TEST_F()
425 Expected<int64_t> SignedValue = ExpressionValue(10).getSignedValue(); in TEST_F()
430 SignedValue = ExpressionValue(0).getSignedValue(); in TEST_F()
435 SignedValue = ExpressionValue(MaxInt64).getSignedValue(); in TEST_F()
441 "overflow error", ExpressionValue(static_cast<uint64_t>(MaxInt64) + 1) in TEST_F()
448 ExpressionValue(MaxUint64).getSignedValue().takeError()); in TEST_F()
451 SignedValue = ExpressionValue(-10).getSignedValue(); in TEST_F()
456 SignedValue = ExpressionValue(MinInt64).getSignedValue(); in TEST_F()
463 expectValueEqual(ExpressionValue(10).getAbsolute(), 10); in TEST_F()
466 expectValueEqual(ExpressionValue(0).getAbsolute(), 0); in TEST_F()
469 expectValueEqual(ExpressionValue(MaxUint64).getAbsolute(), MaxUint64); in TEST_F()
472 expectValueEqual(ExpressionValue(-10).getAbsolute(), 10); in TEST_F()
475 expectValueEqual(ExpressionValue(MinInt64).getAbsolute(), in TEST_F()
607 EXPECT_FALSE(ExpressionValue(5) == ExpressionValue(-3)); in TEST_F()
608 EXPECT_TRUE(ExpressionValue(5) != ExpressionValue(-3)); in TEST_F()
609 EXPECT_FALSE(ExpressionValue(-2) == ExpressionValue(6)); in TEST_F()
610 EXPECT_TRUE(ExpressionValue(-2) != ExpressionValue(6)); in TEST_F()
611 EXPECT_FALSE(ExpressionValue(-7) == ExpressionValue(7)); in TEST_F()
612 EXPECT_TRUE(ExpressionValue(-7) != ExpressionValue(7)); in TEST_F()
613 EXPECT_FALSE(ExpressionValue(4) == ExpressionValue(-4)); in TEST_F()
614 EXPECT_TRUE(ExpressionValue(4) != ExpressionValue(-4)); in TEST_F()
615 EXPECT_FALSE(ExpressionValue(MaxUint64) == ExpressionValue(-1)); in TEST_F()
616 EXPECT_TRUE(ExpressionValue(MaxUint64) != ExpressionValue(-1)); in TEST_F()
619 EXPECT_FALSE(ExpressionValue(-2) == ExpressionValue(-7)); in TEST_F()
620 EXPECT_TRUE(ExpressionValue(-2) != ExpressionValue(-7)); in TEST_F()
621 EXPECT_TRUE(ExpressionValue(-3) == ExpressionValue(-3)); in TEST_F()
622 EXPECT_FALSE(ExpressionValue(-3) != ExpressionValue(-3)); in TEST_F()
623 EXPECT_FALSE(ExpressionValue(MinInt64) == ExpressionValue(-1)); in TEST_F()
624 EXPECT_TRUE(ExpressionValue(MinInt64) != ExpressionValue(-1)); in TEST_F()
625 EXPECT_FALSE(ExpressionValue(MinInt64) == ExpressionValue(-0)); in TEST_F()
626 EXPECT_TRUE(ExpressionValue(MinInt64) != ExpressionValue(-0)); in TEST_F()
629 EXPECT_FALSE(ExpressionValue(8) == ExpressionValue(9)); in TEST_F()
630 EXPECT_TRUE(ExpressionValue(8) != ExpressionValue(9)); in TEST_F()
631 EXPECT_TRUE(ExpressionValue(1) == ExpressionValue(1)); in TEST_F()
632 EXPECT_FALSE(ExpressionValue(1) != ExpressionValue(1)); in TEST_F()
635 EXPECT_TRUE(ExpressionValue(0) == ExpressionValue(0)); in TEST_F()
636 EXPECT_FALSE(ExpressionValue(0) != ExpressionValue(0)); in TEST_F()
637 EXPECT_TRUE(ExpressionValue(0) == ExpressionValue(-0)); in TEST_F()
638 EXPECT_FALSE(ExpressionValue(0) != ExpressionValue(-0)); in TEST_F()
639 EXPECT_TRUE(ExpressionValue(-0) == ExpressionValue(0)); in TEST_F()
640 EXPECT_FALSE(ExpressionValue(-0) != ExpressionValue(0)); in TEST_F()
641 EXPECT_TRUE(ExpressionValue(-0) == ExpressionValue(-0)); in TEST_F()
642 EXPECT_FALSE(ExpressionValue(-0) != ExpressionValue(-0)); in TEST_F()
650 Expected<ExpressionValue> Value = Ten.eval(); in TEST_F()
709 Expected<ExpressionValue> EvalResult = FooVarUse.eval(); in TEST_F()
713 FooVar.setValue(ExpressionValue(42u)); in TEST_F()
714 Optional<ExpressionValue> Value = FooVar.getValue(); in TEST_F()
725 FooVar.setValue(ExpressionValue(925u), StringValue); in TEST_F()
753 FooVar.setValue(ExpressionValue(42u)); in TEST_F()
759 BarVar.setValue(ExpressionValue(18u)); in TEST_F()
768 Expected<ExpressionValue> Value = Binop.eval(); in TEST_F()
1512 NVar.setValue(ExpressionValue(10u)); in TEST_F()
1622 Expected<ExpressionValue> ExpressionVal = in TEST_F()