Invariant inference: mark inferred facts in diagnostics, and a hint to state a loop invariant
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 73
- Forks
- 38
- Merge medio
- 12 h 32 min
- PR fusionados (30 d)
- 45
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de liquid-java/liquidjava
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
liquid-java/liquidjava#562 ·
Los mantenedores suelen responder en 1 día
-
A float ghost crashes the verifier: "Ghost not implemented for type float"Posiblemente ocupada @MohammedZaid1740 la tomó hace 7 días. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
liquid-java/liquidjava#443 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug real-world-finding
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
liquid-java/liquidjava#395 ·
Los mantenedores suelen responder en 1 día
-
A ternary between arrays crashes: Sorts (Array Int Int) and Bool are incompatiblePosiblemente ocupada @CatarinaGamboa la tomó hace 4 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
liquid-java/liquidjava#558 ·
Los mantenedores suelen responder en 1 día
-
new T[a][b] gets length b instead of a (unsound)Posiblemente ocupada @CatarinaGamboa la tomó hace 4 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 30/100
liquid-java/liquidjava#557 ·
Los mantenedores suelen responder en 1 día
Todos los issues de liquid-java/liquidjava
Issues similares
-
missing Git commit for 10.5-RC1Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
avaje/avaje-metrics#139 ·
-
documentation good first issue help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachmentPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
eclipse-sw360/sw360#4849 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
exoego/keycloak-fuhito#888 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabledPosiblemente ocupada @hutiefang76 la tomó hoy. Abiertoaccepted bug good first issue java
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Sekelenao/Flinkboot#473 · 1 comentario ·
Los mantenedores suelen responder en 1 día