Skip to content

StateRefinementError was now shows all needed variables#232

Merged
CatarinaGamboa merged 2 commits into
mainfrom
bug-fix-vars
May 22, 2026
Merged

StateRefinementError was now shows all needed variables#232
CatarinaGamboa merged 2 commits into
mainfrom
bug-fix-vars

Conversation

@CatarinaGamboa
Copy link
Copy Markdown
Collaborator

Description

StateRefinementError was not showing error message with all the needed variables.
Error example:

[SMT]   #body_9 : BufferedInputStream  true
[SMT]   #fresh_11 : boolean            (#fresh_11 == true --> state1(#body_9) == 1) ∧ (#fresh_11 == false)
[SMT]   ────────────────────────────────────────
[SMT] state1(#body_9) == 2

[SMP] Before simplification: true
[SMP] After simplification:  true

Example

Now we do the same as for the RefinementError, gathering variables also from the expected.
Result:

[SMP] Before simplification:
[SMP]   #fresh_11 == true --> markSupported(#body_9) &&
[SMP]   #fresh_11 == false
[SMP] After simplification:  false --> markSupported(#body_9)

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

@CatarinaGamboa CatarinaGamboa requested a review from rcosta358 May 22, 2026 17:32
Copy link
Copy Markdown
Collaborator

@rcosta358 rcosta358 left a comment

Choose a reason for hiding this comment

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

Nice!

@CatarinaGamboa CatarinaGamboa merged commit 58349fa into main May 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants