Invariant inference: mark inferred facts in diagnostics, and a hint to state a loop invariant
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- java
- Bereich
- compilers, developer-experience
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Java
- Sterne
- 73
- Forks
- 38
- Ø Merge
- 12 Std. 32 Min.
- Gemergte PRs (30 T.)
- 45
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus liquid-java/liquidjava
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
liquid-java/liquidjava#562 ·
Maintainer antworten meist innerhalb von 1 Tag
-
A float ghost crashes the verifier: "Ghost not implemented for type float"Evtl. vergeben @MohammedZaid1740 hat das vor 7 Tagen übernommen. Offenbug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
liquid-java/liquidjava#443 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug real-world-finding
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
liquid-java/liquidjava#395 ·
Maintainer antworten meist innerhalb von 1 Tag
-
A ternary between arrays crashes: Sorts (Array Int Int) and Bool are incompatibleEvtl. vergeben @CatarinaGamboa hat das vor 4 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 15/100
liquid-java/liquidjava#558 ·
Maintainer antworten meist innerhalb von 1 Tag
-
new T[a][b] gets length b instead of a (unsound)Evtl. vergeben @CatarinaGamboa hat das vor 4 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 30/100
liquid-java/liquidjava#557 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in liquid-java/liquidjava
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
avaje/avaje-metrics#139 ·
-
documentation good first issue help wanted
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachmentEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
eclipse-sw360/sw360#4849 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
exoego/keycloak-fuhito#888 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabledEvtl. vergeben @hutiefang76 hat das heute übernommen. Offenaccepted bug good first issue java
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Sekelenao/Flinkboot#473 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag