runtimeverification / runtimeverification/kontrol

CSE: Apply range constraints to enums and mappings

Open
#651 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cse engagement enhancement
Dominant language
Python
Stars
122
Forks
16
PR merge metrics
No merged PRs in 30d

Description

To improve performance and facilitate CSE, we should allow

  • Adding range constraints on enums to limit spurious branches;
  • Applying range constraints of any form to mappings — the benefit would be the cutting of spurious branches and removal of chops, but the cost might be too much, since this would involve generating simplifications, which is something we don’t really do, but also making sure they are applicable at runtime, which might involve smt-lemmas.

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

No files, tests, or entry points are named. Start by tracing how CSE currently handles enums, mappings, and range constraints, then determine the required simplification and runtime-application behavior. Done means constraints reduce spurious branches and chops without producing invalid runtime assumptions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.