Lines Matching refs:BranchProbability

17 void PrintTo(BranchProbability P, ::std::ostream *os) {  in PrintTo()
23 typedef BranchProbability BP;
291 const auto UnknownProb = BranchProbability::getUnknown(); in TEST()
293 SmallVector<BranchProbability, 2> Probs{{0, 1}, {0, 1}}; in TEST()
294 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
295 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator()); in TEST()
296 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator()); in TEST()
299 SmallVector<BranchProbability, 2> Probs{{0, 1}, {1, 1}}; in TEST()
300 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
302 EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator()); in TEST()
305 SmallVector<BranchProbability, 2> Probs{{1, 100}, {1, 100}}; in TEST()
306 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
307 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator()); in TEST()
308 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator()); in TEST()
311 SmallVector<BranchProbability, 2> Probs{{1, 1}, {1, 1}}; in TEST()
312 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
313 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator()); in TEST()
314 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator()); in TEST()
317 SmallVector<BranchProbability, 3> Probs{{1, 1}, {1, 1}, {1, 1}}; in TEST()
318 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
319 EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1, in TEST()
321 EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1, in TEST()
323 EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1, in TEST()
327 SmallVector<BranchProbability, 2> Probs{{0, 1}, UnknownProb}; in TEST()
328 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
330 EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator()); in TEST()
333 SmallVector<BranchProbability, 2> Probs{{1, 1}, UnknownProb}; in TEST()
334 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
335 EXPECT_EQ(BranchProbability::getDenominator(), Probs[0].getNumerator()); in TEST()
339 SmallVector<BranchProbability, 2> Probs{{1, 2}, UnknownProb}; in TEST()
340 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
341 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator()); in TEST()
342 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator()); in TEST()
345 SmallVector<BranchProbability, 4> Probs{ in TEST()
347 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
348 EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1, in TEST()
350 EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1, in TEST()
352 EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1, in TEST()