Frame equalities: a to that uses a named set's function (phase(this) == phase(other)) still gets the frame

Aperta
#506 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
compilers, testing

Direzione di ricerca

Read AuxStateHandler.getMissingStates and compare the handling of named states with function applications in to. Trace how the post-state receiver is identified, using the related #504 discussion as context. Done means phase(this) == phase(other) avoids the contradictory frame while phase(this) == phase(this) keeps it; the issue does not name a test file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Problem. Since #498, a to can refer to a named state set through its function, for example undo(this) == undo(old(this)) or phase(this) == phase(other). AuxStateHandler.getMissingStates only counts a set as mentioned when one of its states appears in to. A set used through its function still gets the frame phase(this) == phase(old(this)). For to = "phase(this) == phase(other)" that frame contradicts the spec, unless other happened to be in the same state.

Constraint. Counting every application as a mention is wrong as well. to = "phase(this) == phase(this)" keeps the set today, because the frame is added, and must keep doing so. The rule has to count an application only when it constrains the post-state receiver. That is the same question #504 asks about states.

Split out of #502, whose phase(this) == open form becomes the state shorthand before the frame logic runs and does not depend on this.

Lingua principale
Java
Stelle
73
Fork
38
Merge medio
12h 32m
PR unite (30g)
45

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di liquid-java/liquidjava

Tutte le issue di liquid-java/liquidjava

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.