Invariant inference: mark inferred facts in diagnostics, and a hint to state a loop invariant
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- java
- Domaine
- compilers, developer-experience
Piste de recherche
Start by reading the decisions in #548 and the loop-invariant plan in #542; the payload names no files, so locate where loop-head instances receive inferred conjuncts in Found and where diagnostic data is assembled for the IDE. Then trace the counterexample/error path that would carry the new hint, and use the loops from #537 as the real-example check. Done means inferred facts are identifiable with their loop line in diagnostics while the terminal/hover message stays unchanged, and the hint is validated or dropped after review.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Part of #548 (decisions in its comments) and the loop invariant plan #542.
1. Mark inferred facts. The facts that loop invariant inference adds to a loop-head instance must be recognisable in the diagnostic data sent to the IDE: which conjuncts of Found are inferred invariants and the line of their loop. The terminal/hover message does not change: inferred facts stay inside Found as ordinary facts.
2. Hint (prototype). When an error's counterexample involves a variable that an enclosing loop changes, and inference could not prove what is needed, add a hint: the variable changes in the loop at line N, LiquidJava only keeps what holds on every iteration, and the invariant can be stated on the declaration, e.g. @Refinement("_ >= 0") int total = 0; (the suggested refinement is the expected refinement rewritten for the variable, when that is possible). Judge it on real examples (#537's loops, study-like code) before keeping it; drop it if it misleads.
- Langage dominant
- Java
- Étoiles
- 73
- Forks
- 38
- Merge moyen
- 12 h 32 min
- PR mergées (30 j)
- 45
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de liquid-java/liquidjava
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
liquid-java/liquidjava#562 ·
Les mainteneurs répondent en général sous 1 jour
-
A float ghost crashes the verifier: "Ghost not implemented for type float"Peut-être pris @MohammedZaid1740 l’a pris il y a 7 jours. Ouvertebug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
liquid-java/liquidjava#443 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug real-world-finding
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
liquid-java/liquidjava#395 ·
Les mainteneurs répondent en général sous 1 jour
-
A ternary between arrays crashes: Sorts (Array Int Int) and Bool are incompatiblePeut-être pris @CatarinaGamboa l’a pris il y a 4 jours. Ouvertebug
Difficulté 4/5 3-5 jours Accessibilité débutants 15/100
liquid-java/liquidjava#558 ·
Les mainteneurs répondent en général sous 1 jour
-
new T[a][b] gets length b instead of a (unsound)Peut-être pris @CatarinaGamboa l’a pris il y a 4 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 30/100
liquid-java/liquidjava#557 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de liquid-java/liquidjava
Issues similaires
-
missing Git commit for 10.5-RC1Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
avaje/avaje-metrics#139 ·
-
documentation good first issue help wanted
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachmentPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
eclipse-sw360/sw360#4849 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
exoego/keycloak-fuhito#888 ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabledPeut-être pris @hutiefang76 l’a pris aujourd’hui. Ouverteaccepted bug good first issue java
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Sekelenao/Flinkboot#473 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour