From c6531f935d9e925e6ecb30c53fadcf2d6fc380cf Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 6 May 2022 10:38:06 -0700 Subject: [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. --- scripts/fuzz_opt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') 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('''\ -- cgit v1.2.3