• Home
  • Raw
  • Download

Lines Matching refs:Probs

293     SmallVector<BranchProbability, 2> Probs{{0, 1}, {0, 1}};  in TEST()  local
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() local
300 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
301 EXPECT_EQ(0u, Probs[0].getNumerator()); in TEST()
302 EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator()); in TEST()
305 SmallVector<BranchProbability, 2> Probs{{1, 100}, {1, 100}}; in TEST() local
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() local
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() local
318 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
320 Probs[0].getNumerator()); in TEST()
322 Probs[1].getNumerator()); in TEST()
324 Probs[2].getNumerator()); in TEST()
327 SmallVector<BranchProbability, 2> Probs{{0, 1}, UnknownProb}; in TEST() local
328 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
329 EXPECT_EQ(0U, Probs[0].getNumerator()); in TEST()
330 EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator()); in TEST()
333 SmallVector<BranchProbability, 2> Probs{{1, 1}, UnknownProb}; in TEST() local
334 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
335 EXPECT_EQ(BranchProbability::getDenominator(), Probs[0].getNumerator()); in TEST()
336 EXPECT_EQ(0U, Probs[1].getNumerator()); in TEST()
339 SmallVector<BranchProbability, 2> Probs{{1, 2}, UnknownProb}; in TEST() local
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() local
347 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in TEST()
349 Probs[0].getNumerator()); in TEST()
351 Probs[1].getNumerator()); in TEST()
353 Probs[2].getNumerator()); in TEST()
354 EXPECT_EQ(0U, Probs[3].getNumerator()); in TEST()