#include "llvm/Support/BranchProbability.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace llvm {
void PrintTo(BranchProbability P, ::std::ostream *os) { … }
}
namespace {
BP;
TEST(BranchProbabilityTest, Accessors) { … }
TEST(BranchProbabilityTest, Operators) { … }
TEST(BranchProbabilityTest, MoreOperators) { … }
TEST(BranchProbabilityTest, ArithmeticOperators) { … }
TEST(BranchProbabilityTest, getCompl) { … }
TEST(BranchProbabilityTest, scale) { … }
TEST(BranchProbabilityTest, scaleByInverse) { … }
TEST(BranchProbabilityTest, scaleBruteForce) { … }
TEST(BranchProbabilityTest, NormalizeProbabilities) { … }
}