Lines Matching refs:GetMax

258   Value GetMax(HInductionVarAnalysis::InductionInfo* info,  in GetMax()  function in art::InductionVarRangeTest
375 ExpectEqual(Value(), GetMax(nullptr, nullptr)); in TEST_F()
382 GetMax(CreateInvariant('+', CreateConst(2), CreateRange(10, 20)), nullptr)); in TEST_F()
386 GetMax(CreateInvariant('+', CreateFetch(x_), CreateRange(-20, -10)), nullptr)); in TEST_F()
390 GetMax(CreateInvariant('+', CreateRange(10, 20), CreateFetch(x_)), nullptr)); in TEST_F()
394 GetMax(CreateInvariant('+', CreateRange(-5, -1), CreateRange(10, 20)), nullptr)); in TEST_F()
401 GetMax(CreateInvariant('-', CreateConst(2), CreateRange(10, 20)), nullptr)); in TEST_F()
405 GetMax(CreateInvariant('-', CreateFetch(x_), CreateRange(-20, -10)), nullptr)); in TEST_F()
409 GetMax(CreateInvariant('-', CreateRange(10, 20), CreateFetch(x_)), nullptr)); in TEST_F()
413 GetMax(CreateInvariant('-', CreateRange(-5, -1), CreateRange(10, 20)), nullptr)); in TEST_F()
418 ExpectEqual(Value(-10), GetMax(CreateInvariant('n', nullptr, CreateRange(10, 20)), nullptr)); in TEST_F()
420 ExpectEqual(Value(20), GetMax(CreateInvariant('n', nullptr, CreateRange(-20, -10)), nullptr)); in TEST_F()
422 ExpectEqual(Value(x_, -1, 0), GetMax(CreateInvariant('n', nullptr, CreateFetch(x_)), nullptr)); in TEST_F()
429 GetMax(CreateInvariant('*', CreateConst(2), CreateRange(10, 20)), nullptr)); in TEST_F()
436 GetMax(CreateInvariant('/', CreateRange(12, 20), CreateConst(4)), nullptr)); in TEST_F()
441 ExpectEqual(Value(12345), GetMax(CreateConst(12345), nullptr)); in TEST_F()
446 ExpectEqual(Value(x_, 1, 0), GetMax(CreateFetch(x_), nullptr)); in TEST_F()
451 ExpectEqual(Value(1010), GetMax(CreateLinear(10, 20), CreateTripCount(100, true, true))); in TEST_F()
453 ExpectEqual(Value(20), GetMax(CreateLinear(-10, 20), CreateTripCount(100, true, true))); in TEST_F()
458 ExpectEqual(Value(10), GetMax(CreateWrapAround(-5, -1, 10), nullptr)); in TEST_F()
460 ExpectEqual(Value(10), GetMax(CreateWrapAround(2, -1, 10), nullptr)); in TEST_F()
462 ExpectEqual(Value(20), GetMax(CreateWrapAround(20, -1, 10), nullptr)); in TEST_F()
467 ExpectEqual(Value(), GetMax(CreatePolynomial(3, 5, 7), nullptr)); in TEST_F()
469 ExpectEqual(Value(45), GetMax(CreatePolynomial(3, 5, 7), CreateTripCount(5, true, true))); in TEST_F()
471 ExpectEqual(Value(160), GetMax(CreatePolynomial(3, 5, 7), CreateTripCount(10, true, true))); in TEST_F()
474 ExpectEqual(Value(111), GetMax(CreatePolynomial(11, 13, -7), in TEST_F()
478 ExpectEqual(Value(506), GetMax(CreatePolynomial(11, 13, -7), in TEST_F()
481 ExpectEqual(Value(), GetMax(CreatePolynomial(-3, 5, 7), CreateTripCount(10, true, true))); in TEST_F()
483 ExpectEqual(Value(), GetMax(CreatePolynomial(3, -5, 7), CreateTripCount(10, true, true))); in TEST_F()
488 ExpectEqual(Value(), GetMax(CreateGeometric(1, 1, 1, '*'), nullptr)); in TEST_F()
493 ExpectEqual(Value(16), GetMax(CreateGeometric(11, 5, 3, '/'), nullptr)); in TEST_F()
495 ExpectEqual(Value(6), GetMax(CreateGeometric(11, -5, 3, '/'), nullptr)); in TEST_F()
497 ExpectEqual(Value(5), GetMax(CreateGeometric(-11, 5, 3, '/'), nullptr)); in TEST_F()
499 ExpectEqual(Value(-5), GetMax(CreateGeometric(-11, -5, 3, '/'), nullptr)); in TEST_F()
504 ExpectEqual(Value(99), GetMax(CreateRange(-2, 99), nullptr)); in TEST_F()
569 ExpectEqual(Value(), GetMax(CreateInvariant('%', CreateConst(2), CreateRange(10, 20)), nullptr)); in TEST_F()
571 ExpectEqual(Value(), GetMax(CreateInvariant('%', CreateRange(10, 20), CreateConst(2)), nullptr)); in TEST_F()
573 ExpectEqual(Value(2), GetMax(CreateInvariant('%', CreateConst(2), CreateConst(5)), nullptr)); in TEST_F()
575 ExpectEqual(Value(1), GetMax(CreateInvariant('%', CreateConst(11), CreateConst(5)), nullptr)); in TEST_F()
593 ExpectEqual(Value(), GetMax(CreateInvariant('^', CreateConst(2), CreateRange(10, 20)), nullptr)); in TEST_F()
595 ExpectEqual(Value(), GetMax(CreateInvariant('^', CreateRange(10, 20), CreateConst(2)), nullptr)); in TEST_F()
597 ExpectEqual(Value(3), GetMax(CreateInvariant('^', CreateConst(1), CreateConst(2)), nullptr)); in TEST_F()
712 ExpectEqual(Value(max_value), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
716 ExpectEqual(Value(array_length, 1, 0), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
720 ExpectEqual(Value(x_, 1, 0), GetMax(CreateFetch(array_length), nullptr)); in TEST_F()
737 ExpectEqual(Value(x_, 1, -1), GetMax(CreateFetch(add), nullptr)); in TEST_F()
739 ExpectEqual(Value(x_, 1, -1), GetMax(CreateFetch(alt), nullptr)); in TEST_F()
741 ExpectEqual(Value(x_, 1, -1), GetMax(CreateFetch(sub), nullptr)); in TEST_F()
743 ExpectEqual(Value(x_, -1, 1), GetMax(CreateFetch(rev), nullptr)); in TEST_F()