runtimeverification / runtimeverification/kontrol

Investigate inference of loop invariants using `merge-nodes` functionality

Open
#448 7 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

Here https://github.com/runtimeverification/kontrol/pull/444, we update the merge-nodes functionality to allow specifying loop heads in looping code. Here, we have an example that uses a loop invariant to allow verifying a small piece of code with a simple loop: https://github.com/runtimeverification/kontrol/pull/369.

The merge-nodes functionality should help us in identifying the loop invariant needed in order to verify such simple loops. We probably can't infer the entire loop invariant, but at least we can make an initial guess ath the correct LHS of the loop to use.

Here, we should:

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 PR 369's loop-invariant example and the merge-nodes changes in PR 444. Remove the invariant from the example, run the program for a chosen number of iterations, apply merge-nodes to the loop heads, and compare the generated state with the original invariant's LHS. Done means posting the comparison results and outlining what can be automated for further invariant generation.

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
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.