From e13bf0fb72fca160f457570b930c4ba3c35ead3a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 19 Nov 2024 15:26:09 -0800 Subject: Improve fuzzing of both closed and open world styles of modules (#7090) Before, we would simply not export a function that had an e.g. anyref param. As a result, the modules were effectively "closed", which was good for testing full closed-world mode, but not for testing degrees of open world. To improve that, this PR allows the fuzzer to export such functions, and an "enclose world" pass is added that "closes" the wasm (makes it more compatible with closed-world) that is run 50% of the time, giving us coverage of both styles. --- src/tools/wasm-reduce.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools/wasm-reduce.cpp') diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp index 8d9858b78..026825118 100644 --- a/src/tools/wasm-reduce.cpp +++ b/src/tools/wasm-reduce.cpp @@ -275,6 +275,7 @@ struct Reducer "--dae-optimizing", "--dce", "--duplicate-function-elimination", + "--enclose-world", "--gto", "--inlining", "--inlining-optimizing", -- cgit v1.2.3