rescript-lang / rescript-lang/reanalyze

Binding operators are incorrectly marked dead

Open
#150 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
OCaml
Stars
281
Forks
22
Avg merge
1d 19h
Merged PRs (30d)
7

Description

Running reanalyze https://github.com/rescript-association/reanalyze/commit/389dd682223201b42c33e5c444e5c79e0805adad on Goblint https://github.com/goblint/analyzer/commit/a544002114324a207df72f9e79eb656c3ebe7b5b revealed the following.

In a file we have this binding operator definition:

let (let+) xs f = List.map f xs

This is marked dead even though the operator is used later in the file. I'm guessing reanalyze just doesn't handle this newer syntactic structure.

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 by reproducing reanalyze on the linked ReScript reanalyze and Goblint commits, then trace the dead-value analysis for the OCaml binding operator let+. Done means a binding operator used later in the file is no longer reported as dead.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
compilers, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.