Add an expected-guided simplification step to state error derivations
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 67
- Fork
- 36
- Merge medio
- 7g 48m
- PR unite (30g)
- 2
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di liquid-java/liquidjava
-
enhancement error messages future ide
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
liquid-java/liquidjava#298 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
liquid-java/liquidjava#296 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
liquid-java/liquidjava#295 ·
-
Add a flag -a to show all verification conditions sent to the smt solverForse di nuovo libera @CatarinaGamboa l’ha presa 116 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
liquid-java/liquidjava#240 · 1 assegnatario ·
-
enhancement ide
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
liquid-java/liquidjava#206 ·
Tutte le issue di liquid-java/liquidjava
Issue simili
-
and-bugs and-ui gpx-track
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 2 giorni
-
TerminalRow.mSpaceUsed (short) overflows on terminals wider than 1023 columns, crashing setCharAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
termux/termux-app#5340 ·
I maintainer di solito rispondono entro 1 giorno
-
OpenAICompatibleToolDescriptorSchemaGenerator drops requiredProperties of nested object parametersAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
apache/rocketmq-dashboard#5110 ·
I maintainer di solito rispondono entro 1 giorno
-
frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
No-Country-simulation/S08-26-equipo04#210 ·
I maintainer di solito rispondono entro 1 giorno