diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2009-05-23 02:42:09 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2009-05-23 02:42:09 +0000 |
commit | 266cc79f26aa8df4718f2309808f77a5426f266c (patch) | |
tree | 640584c9eec64bb834a5452ff908145e4c5c8362 /include | |
parent | ac6570f762e6520a4458d53963beb5bd4578a2f0 (diff) | |
download | klee-266cc79f26aa8df4718f2309808f77a5426f266c.tar.gz |
Changed bout to ktest. Kept "BOUT\n" as the header of test files, for backward compatibility. Also changed KLEE_RUNTEST to KTEST_FILE. Updated tutorial-1.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/Internal/ADT/KTest.h (renamed from include/klee/Internal/ADT/BOut.h) | 32 | ||||
-rw-r--r-- | include/klee/Interpreter.h | 6 |
2 files changed, 19 insertions, 19 deletions
diff --git a/include/klee/Internal/ADT/BOut.h b/include/klee/Internal/ADT/KTest.h index 14aeb714..c6586f9e 100644 --- a/include/klee/Internal/ADT/BOut.h +++ b/include/klee/Internal/ADT/KTest.h @@ -1,4 +1,4 @@ -//===-- BOut.h --------------------------------------------------*- C++ -*-===// +//===-- KTest.h --------------------------------------------------*- C++ -*-===// // // The KLEE Symbolic Virtual Machine // @@ -7,23 +7,23 @@ // //===----------------------------------------------------------------------===// -#ifndef __COMMON_BOUT_H__ -#define __COMMON_BOUT_H__ +#ifndef __COMMON_KTEST_H__ +#define __COMMON_KTEST_H__ #ifdef __cplusplus extern "C" { #endif - typedef struct BOutObject BOutObject; - struct BOutObject { + typedef struct KTestObject KTestObject; + struct KTestObject { char *name; unsigned numBytes; unsigned char *bytes; }; - typedef struct BOut BOut; - struct BOut { + typedef struct KTest KTest; + struct KTest { /* file format version */ unsigned version; @@ -34,26 +34,26 @@ extern "C" { unsigned symArgvLen; unsigned numObjects; - BOutObject *objects; + KTestObject *objects; }; - /* returns the current .bout file format version */ - unsigned bOut_getCurrentVersion(); + /* returns the current .ktest file format version */ + unsigned kTest_getCurrentVersion(); - /* return true iff file at path matches BOut header */ - int bOut_isBOutFile(const char *path); + /* return true iff file at path matches KTest header */ + int kTest_isKTestFile(const char *path); /* returns NULL on (unspecified) error */ - BOut* bOut_fromFile(const char *path); + KTest* kTest_fromFile(const char *path); /* returns 1 on success, 0 on (unspecified) error */ - int bOut_toFile(BOut *, const char *path); + int kTest_toFile(KTest *, const char *path); /* returns total number of object bytes */ - unsigned bOut_numBytes(BOut *); + unsigned kTest_numBytes(KTest *); - void bOut_free(BOut *); + void kTest_free(KTest *); #ifdef __cplusplus } diff --git a/include/klee/Interpreter.h b/include/klee/Interpreter.h index eca6e59e..14e653c1 100644 --- a/include/klee/Interpreter.h +++ b/include/klee/Interpreter.h @@ -14,7 +14,7 @@ #include <map> #include <set> -struct BOut; +struct KTest; namespace llvm { class Function; @@ -102,7 +102,7 @@ public: // supply a test case to replay from. this can be used to drive the // interpretation down a user specified path. use null to reset. - virtual void setReplayOut(const struct BOut *out) = 0; + virtual void setReplayOut(const struct KTest *out) = 0; // supply a list of branch decisions specifying which direction to // take on forks. this can be used to drive the interpretation down @@ -111,7 +111,7 @@ public: // supply a set of symbolic bindings that will be used as "seeds" // for the search. use null to reset. - virtual void useSeeds(const std::vector<struct BOut *> *seeds) = 0; + virtual void useSeeds(const std::vector<struct KTest *> *seeds) = 0; virtual void runFunctionAsMain(llvm::Function *f, int argc, |