#include "llvm/Support/GraphWriter.h"
#include "llvm/Analysis/CFGPrinter.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
#include <string>
#define ASSERT_NO_ERROR(x) …
namespace llvm {
namespace {
class GraphWriterTest : public testing::Test { … };
static void writeCFGToDotFile(Function &F, std::string Name,
bool CFGOnly = false) { … }
TEST_F(GraphWriterTest, WriteCFGDotFileTest) { … }
}
}