diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2017-05-24 17:38:12 +0100 |
---|---|---|
committer | Dan Liew <delcypher@gmail.com> | 2017-06-01 11:36:09 +0100 |
commit | 31e75fdf1e277bbf961287706b06eab8136c6cd0 (patch) | |
tree | d7e845e2b3fbe7c59bb6e5be38ce452c01723ffd /include | |
parent | 9a73071e22b408bb9bf5c24ec2d7eeb3a8a16e96 (diff) | |
download | klee-31e75fdf1e277bbf961287706b06eab8136c6cd0.tar.gz |
Refactor file opening code out of `main.cpp` and into
`klee_open_output_file()` function so that it can be used by the Z3Solver.
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/Internal/Support/FileHandling.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/klee/Internal/Support/FileHandling.h b/include/klee/Internal/Support/FileHandling.h new file mode 100644 index 00000000..bee06b9b --- /dev/null +++ b/include/klee/Internal/Support/FileHandling.h @@ -0,0 +1,19 @@ +//===-- FileHandling.h ------------------------------------------*- C++ -*-===// +// +// The KLEE Symbolic Virtual Machine +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +#ifndef __KLEE_FILE_HANDLING_H__ +#define __KLEE_FILE_HANDLING_H__ +#include "llvm/Support/raw_ostream.h" +#include <string> + +namespace klee { +llvm::raw_fd_ostream *klee_open_output_file(std::string &path, + std::string &error); +} + +#endif |