WebAssembly / WebAssembly/binaryen
RedundantSetElimination: Nondeterminism testcase
Open
Nobody has claimed this yet.
- Dominant language
- WebAssembly
- Stars
- 8.6k
- Forks
- 885
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 69
Description
Fuzzer found issue on seed 14358101859341333857.
$ wasm-opt a.wasm --rse --print --all-features > b1.wat
warning: no output file specified, not emitting output
$ wasm-opt a.wasm --rse --print --all-features > b2.wat
warning: no output file specified, not emitting output
$ diff b1.wat b2.wat
2741c2741
< (local.set $35
---
> (drop
3407c3407
< (drop
---
> (local.set $41
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached a.wasm.zip and reproduce the two wasm-opt --rse --print --all-features runs, comparing b1.wat and b2.wat as shown. Trace the differing output around the reported lines to identify the nondeterministic behavior; done means repeated runs produce identical output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100