forked from klee/klee
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Add options to store and rerun execution states during execution
- Loading branch information
Showing
21 changed files
with
238 additions
and
950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef KLEE_SEED_FROM_FILE_H | ||
#include <string> | ||
|
||
class KTest; | ||
|
||
namespace klee { | ||
|
||
class SeedFromFile { | ||
public: | ||
KTest *ktest; | ||
unsigned maxInstructions; | ||
|
||
SeedFromFile() {} | ||
SeedFromFile(std::string _path); | ||
}; | ||
|
||
} // namespace klee | ||
#define KLEE_SEED_FROM_FILE_H | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "klee/ADT/SeedFromFile.h" | ||
#include "klee/ADT/KTest.h" | ||
|
||
#include <fstream> | ||
|
||
using namespace klee; | ||
|
||
SeedFromFile::SeedFromFile(std::string _path) | ||
: ktest(kTest_fromFile((_path + "ktest").c_str())) { | ||
std::ifstream seedInfoStream(_path + "seedinfo"); | ||
if (seedInfoStream.good()) { | ||
seedInfoStream >> maxInstructions; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.