FStarLang / FStarLang/pulse

Bad error messages

Open
#267 3 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

1. Fails pointing to the equality and claiming that an SMT query failed

```pulse
fn value_of (#a:Type) (r:ref a)
requires pts_to r 'v
returns v:a
ensures pts_to r 'v ** pure (v == 'v)
{
'v
}
```

2. Points to the (!i) but fails saying expected `int` got `stt int .... ` which is a bit cryptic

```pulse
fn four_fail ()
requires emp
returns i:int
ensures pure (i == 4)
{
let mut i = 1;
add i (!i);
add i (!i);
!i
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by reproducing the `value_of` and `four_fail` Pulse snippets and inspect the diagnostics they produce; done means the reported locations and messages identify the underlying failures rather than the misleading SMT or type descriptions.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.