Add an expected-guided simplification step to state error derivations
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
Start in liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/VCChecker.java at VCChecker.throwStateRefinementError, where Expected and the simplified Found expression are available. Trace the expression and state-set information used for the derivation history, then verify that the new “Relevant to this requirement” step preserves necessary facts, supports backward navigation, and leaves verification results unchanged.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
The final Found step in a state error can contain facts from state sets unrelated to Expected. The user must identify the relevant fact and trace version equalities manually.
Current example
The last simplification step for preview.setTiling(...) is:
Expected concerns the tiling state of preview³⁰⁴. The relevant startTiling(preview²⁹⁹) fact and the version link are present, but compression facts remain in the final explanation.
Desired behavior
Append a step labeled “Relevant to this requirement” after the existing simplification steps when the verifier can safely produce one. In this example, it should retain startTiling(preview²⁹⁹) and the equality needed to relate its tiling state to preview³⁰⁴. It should omit compression facts only if their independence from this requirement has been established. The back arrow should return to the full step shown above.
This is a simplification step in the error display. It must not change the verification condition checked by the solver or the verification result.
Implementation direction
- Give the new pass both Expected and the simplified Found expression.
VCChecker.throwStateRefinementErrorhas both when it constructs the error. - Use expression and state set information to identify the receiver, relevant state set, and necessary version equalities.
- Remove a clause only when its independence has been established. Keep clauses whose role is uncertain.
- Append the result to the derivation history with the metadata needed for source links and backward navigation. Do not infer dependencies from rendered names.
Acceptance criteria
- The scanner error gains a final “Relevant to this requirement” step showing the
startTilingfact and every necessary version link. - Proven independent compression facts are omitted; uncertain facts remain.
- The existing full step remains available through the back arrow.
- No step is added when safe cleanup cannot be established.
- Verification results do not change.
- Vorherrschende Sprache
- Java
- Sterne
- 67
- Forks
- 36
- Ø Merge
- 7 T. 48 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
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
-
enhancement error messages future ide
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
liquid-java/liquidjava#298 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
liquid-java/liquidjava#296 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
liquid-java/liquidjava#295 ·
-
Add a flag -a to show all verification conditions sent to the smt solverEvtl. wieder frei @CatarinaGamboa hat das vor 118 Tagen übernommen, und es ist kein Pull Request offen. Offenenhancement
liquid-java/liquidjava#240 · 1 zugewiesene Person ·
-
enhancement ide
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
liquid-java/liquidjava#206 ·
Alle Issues in liquid-java/liquidjava
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
refinedmods/refinedstorage2#1414 · 1 Kommentar ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
In Java's `LongBoundedSum`, setting `lower` to `Long.MIN_VALUE` under-estimates the sensitivityOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
google/differential-privacy#489 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
link-check link-check:manual
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100