diff options
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r-- | src/tools/fuzzing.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index 1afb4bf36..a3261ccbe 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -65,8 +65,12 @@ struct BinaryArgs { class TranslateToFuzzReader { public: - TranslateToFuzzReader(Module& wasm, std::vector<char>&& input); - TranslateToFuzzReader(Module& wasm, std::string& filename); + TranslateToFuzzReader(Module& wasm, + std::vector<char>&& input, + bool closedWorld = false); + TranslateToFuzzReader(Module& wasm, + std::string& filename, + bool closedWorld = false); void pickPasses(OptimizationOptions& options); void setAllowMemory(bool allowMemory_) { allowMemory = allowMemory_; } @@ -77,6 +81,8 @@ public: Module& wasm; private: + // Whether the module will be tested in a closed-world environment. + bool closedWorld; Builder builder; Random random; |