Lines Matching refs:Probs
293 SmallVector<BranchProbability, 2> Probs{{0, 1}, {0, 1}};
294 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
295 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
296 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
299 SmallVector<BranchProbability, 2> Probs{{0, 1}, {1, 1}};
300 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
301 EXPECT_EQ(0u, Probs[0].getNumerator());
302 EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
305 SmallVector<BranchProbability, 2> Probs{{1, 100}, {1, 100}};
306 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
307 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
308 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
311 SmallVector<BranchProbability, 2> Probs{{1, 1}, {1, 1}};
312 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
313 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
314 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
317 SmallVector<BranchProbability, 3> Probs{{1, 1}, {1, 1}, {1, 1}};
318 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
320 Probs[0].getNumerator());
322 Probs[1].getNumerator());
324 Probs[2].getNumerator());
327 SmallVector<BranchProbability, 2> Probs{{0, 1}, UnknownProb};
328 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
329 EXPECT_EQ(0U, Probs[0].getNumerator());
330 EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
333 SmallVector<BranchProbability, 2> Probs{{1, 1}, UnknownProb};
334 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
335 EXPECT_EQ(BranchProbability::getDenominator(), Probs[0].getNumerator());
336 EXPECT_EQ(0U, Probs[1].getNumerator());
339 SmallVector<BranchProbability, 2> Probs{{1, 2}, UnknownProb};
340 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
341 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
342 EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
345 SmallVector<BranchProbability, 4> Probs{
347 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
349 Probs[0].getNumerator());
351 Probs[1].getNumerator());
353 Probs[2].getNumerator());
354 EXPECT_EQ(0U, Probs[3].getNumerator());