summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-05-06 10:38:06 -0700
committerGitHub <noreply@github.com>2022-05-06 10:38:06 -0700
commitc6531f935d9e925e6ecb30c53fadcf2d6fc380cf (patch)
tree5229b6782465e5a9e1e11957af0c96a67237c217
parent0183830cf2976e0930fa45b651be693853f0199a (diff)
downloadbinaryen-c6531f935d9e925e6ecb30c53fadcf2d6fc380cf.tar.gz
binaryen-c6531f935d9e925e6ecb30c53fadcf2d6fc380cf.tar.bz2
binaryen-c6531f935d9e925e6ecb30c53fadcf2d6fc380cf.zip
[Fuzzer] Add typesystem flag to reduction script (#4651)
Without this the reduction will fail on not being able to parse the input file, if the input file depends on nominal typing.
-rwxr-xr-xscripts/fuzz_opt.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py
index dffa3ac8f..696ccc4bd 100755
--- a/scripts/fuzz_opt.py
+++ b/scripts/fuzz_opt.py
@@ -1365,9 +1365,9 @@ on valid wasm files.)
reduce_sh.write('''\
# check the input is even a valid wasm file
echo "At least one of the next two values should be 0:"
-%(wasm_opt)s --detect-features %(temp_wasm)s
+%(wasm_opt)s %(typesystem)s --detect-features %(temp_wasm)s
echo " " $?
-%(wasm_opt)s --all-features %(temp_wasm)s
+%(wasm_opt)s %(typesystem)s --all-features %(temp_wasm)s
echo " " $?
# run the command
@@ -1404,6 +1404,7 @@ echo " " $?
'auto_init': auto_init,
'original_wasm': original_wasm,
'temp_wasm': os.path.abspath('t.wasm'),
+ 'typesystem': TYPE_SYSTEM_FLAG,
'reduce_sh': os.path.abspath('reduce.sh')})
print('''\