WebAssembly / WebAssembly/binaryen

RedundantSetElimination: Nondeterminism testcase

Open
#4,524 2 comments 0 reactions 0 assignees View on GitHub

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.

a.wasm.zip

$ 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.