Skip to content

Normalize Self-Referential Invocations#77

Open
rcosta358 wants to merge 1 commit intomainfrom
self-referential-invocations
Open

Normalize Self-Referential Invocations#77
rcosta358 wants to merge 1 commit intomainfrom
self-referential-invocations

Conversation

@rcosta358
Copy link
Copy Markdown
Collaborator

This PR fixes an issue in the context debugger where variable refinements could appear as confusing self-referential expressions, such as a == ghost(a).
This happened because refinements without an explicit comparison are displayed by joining the variable name with its refinement using the format var == refinement.
A possible solution for this is replacing occurrences of (var) with (), so we display a == ghost() instead of a == ghost(a).

Caution

Not sure if this will break other cases, but parentheses are only added for function invocations and for more complex expressions that require them (after merging #217).

Example

Before

image

After

image

@rcosta358 rcosta358 requested a review from CatarinaGamboa May 10, 2026 23:01
@rcosta358 rcosta358 self-assigned this May 10, 2026
@rcosta358 rcosta358 added the bug Something isn't working label May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant