runtimeverification / runtimeverification/haskell-backend

Error about claim with universally-quantified var on RHS must show var names

Open
#3,050 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug checks needs-reproducing Serokell UI
Dominant language
Haskell
Stars
224
Forks
43
PR merge metrics
No merged PRs in 30d

Description

One of Haskell backend errors looks like this:

Error:
  module 'GEN-B9B4CAC69636F5AA489AA9CCD4116C5719559854D98BBDCEAC41C2EDC89C0D03-TO-7ABB79081A802ABFBA809B6B97DA08A1BDD820D0A54525EE76FE0EC90D4542E0-SPEC':
  claim declaration:
    Found claim with universally-quantified variables appearing only on the right-hand side

It would be preferred if error also mentions variable name and the claim location.
Also, for all backend crashes like this we would prefer different exit codes for easy debugging and tool integration. At very least, backend crash due to out of memory must give a different exit code than a functional error.

Contributor guide

No contributing guide indexed for this repository

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

No file or test is named. Start by searching the Haskell backend for the diagnostic text about universally-quantified variables on the right-hand side and trace the claim validation path. Done means the error includes the variable name and claim location; the separate exit-code request is struck through and out of scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
backend
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.