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

Aberta
#506 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
48/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
java
Domínio
compilers, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Java
Estrelas
73
Forks
38
Merge médio
12h 32min
PRs com merge (30d)
45

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de liquid-java/liquidjava

Todas as issues de liquid-java/liquidjava

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.