FStarLang / FStarLang/pulse

Post-condition inference fails without rewrites_to

Open
#455 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
36
Forks
11
PR merge metrics
No merged PRs in 30d

Description

```fstar
module Bug455
open Pulse
#lang-pulse

fn bar ()
returns r: bool
{
true
}

fn foo () {
while (not (bar ()))
(* ^^^^^^^^^^^^
- Could not resolve all free variables in the proposition:
_posth == op_Negation ?__anf122
*)
invariant (emp)
{ () };
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the minimal Bug455 Pulse example and compare post-condition inference with and without rewrites_to. Trace the inference for the while condition and verify that the free-variable error no longer occurs when the issue's example is processed without rewrites_to.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.