Skip to content

Track Simplification Pass Names#265

Merged
rcosta358 merged 3 commits into
mainfrom
track-simplification-passes
Jul 20, 2026
Merged

Track Simplification Pass Names#265
rcosta358 merged 3 commits into
mainfrom
track-simplification-passes

Conversation

@rcosta358

@rcosta358 rcosta358 commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR makes each VCSimplificationResult save the name of the simplification that produced it, which is derived automatically through VCSimplificationPass.getName(). The VS Code extension can then display this information to make simplification results easier to understand.

Example

result.getSimplification(); // "Substitution" || "Folding" || "Arithmetic" || ...

Related Issue

None.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Code refactoring

Checklist

  • Added/updated tests under liquidjava-example/src/main/java/testSuite/ (Correct* / Error*)
  • mvn test passes locally
  • Updated docs/README if behavior or API changed

@rcosta358 rcosta358 self-assigned this Jun 22, 2026
@rcosta358 rcosta358 added enhancement New feature or request simplification Related to the simplification of expressions labels Jun 22, 2026

@CatarinaGamboa CatarinaGamboa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit


public VCSimplificationResult(VCImplication implication) {
this(implication, null);
this.implication = Objects.requireNonNull(implication).clone();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we use this "requireNonNull" in several places across the codebase? I was under the impression we didn't use that as a standard

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we don't, I'll remove it.

@rcosta358
rcosta358 merged commit 9b8dec0 into main Jul 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request simplification Related to the simplification of expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants