Skip to content

Conversation

@rcosta358
Copy link
Collaborator

@rcosta358 rcosta358 commented Oct 7, 2025

Decoupled Z3 from the Expression classes by using the visitor pattern and implementing the ExpressionToZ3Visitor with the AST to Z3 translation logic, using the TranslatorToZ3.

This way, these classes don't depend directly on Z3 (loosely coupled), making it easier to switch the SMT solver if we want to. Also, the code is a bit cleaner since all the same logic is in the same place.

@rcosta358 rcosta358 self-assigned this Oct 7, 2025
@rcosta358 rcosta358 added the enhancement New feature or request label Oct 7, 2025
@rcosta358 rcosta358 merged commit aed9efd into liquid-java:main Oct 29, 2025
1 check passed
@rcosta358 rcosta358 deleted the decouple-z3 branch October 29, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants