Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[spectec] Missing and wrong side conditions in the middle-end

Open
#2,196 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
wasm
Domain
compilers

Research direction

Start with spectec/src/middlend/sideconditions.ml at line 63 and inspect the existing MemE side condition alongside the handling of SliceE, UpdE, and ExtE. Check the middle-end backport context first; done means the MemE condition is corrected and the missing conditions are represented consistently.

Written by the indexing model from the issue text.

Description

I think for MemE the side condition about the sequence being non-empty is wrong (https://github.com/WebAssembly/spec/blob/main/spectec/src/middlend/sideconditions.ml#L63).

Also there should be side conditions for SliceE, UpdE and ExtE.

Opening this ticket just for the record. I think I'll do a PR with the flag controlling side conditions on functions, after we backport the middle-end from the WasmDSL repo.

Dominant language
WebAssembly
Stars
3.5k
Forks
540
Avg merge
11h 12m
Merged PRs (30d)
11

Getting set up

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.

More from WebAssembly/spec

All issues in WebAssembly/spec

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.