#include "llvm/FuzzMutate/RandomIRBuilder.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/AsmParser/SlotMapping.h"
#include "llvm/FuzzMutate/IRMutator.h"
#include "llvm/FuzzMutate/OpDescriptor.h"
#include "llvm/FuzzMutate/Operations.h"
#include "llvm/FuzzMutate/Random.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/SourceMgr.h"
#include "gtest/gtest.h"
usingnamespacellvm;
static constexpr int Seed = …;
namespace {
std::unique_ptr<Module> parseAssembly(const char *Assembly,
LLVMContext &Context) { … }
TEST(RandomIRBuilderTest, ShuffleVectorIncorrectOperands) { … }
TEST(RandomIRBuilderTest, InsertValueIndexes) { … }
TEST(RandomIRBuilderTest, ShuffleVectorSink) { … }
TEST(RandomIRBuilderTest, InsertValueArray) { … }
TEST(RandomIRBuilderTest, Invokes) { … }
TEST(RandomIRBuilderTest, SwiftError) { … }
TEST(RandomIRBuilderTest, dontConnectToSwitch) { … }
TEST(RandomIRBuilderTest, createStackMemory) { … }
TEST(RandomIRBuilderTest, findOrCreateGlobalVariable) { … }
TEST(RandomIRBuilderTest, findSourceAndSink) { … }
TEST(RandomIRBuilderTest, sinkToInstrinsic) { … }
TEST(RandomIRBuilderTest, DoNotCallPointerWhenSink) { … }
TEST(RandomIRBuilderTest, SrcAndSinkWOrphanBlock) { … }
}