Skip to content

Handle model generation api through implementation delegates#673

Merged
baierd merged 10 commits into
masterfrom
handle_model_generation_api_through_impl_delegates
Jun 12, 2026
Merged

Handle model generation api through implementation delegates#673
baierd merged 10 commits into
masterfrom
handle_model_generation_api_through_impl_delegates

Conversation

@baierd

@baierd baierd commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Model generating API (e.g. getModel()) was implemented for every solver. Meaning that also all checks that are required before executing solver specific code were added on a per solver basis. Since this is error prone, this PR collects these common checks now in AbstractProver and delegates the solver specific implementations to new, internal API that does no longer need to think about these common checks.

Note: i did not remove the default implementations in BasicProverEnvironment, as this would potentially break client code that inherits from it.

To be merged after #671 as it is based on its branch.

baierd added 4 commits June 9, 2026 15:17
…er with new abstract methods that implement their behavior, so that the common checks are in a central class and guaranteed to be called in all cases + remove the now redundant checks from the implementations
@baierd baierd requested a review from daniel-raffler June 9, 2026 14:46
@baierd baierd self-assigned this Jun 9, 2026
daniel-raffler
daniel-raffler previously approved these changes Jun 12, 2026

@daniel-raffler daniel-raffler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread src/org/sosy_lab/java_smt/basicimpl/OptimizationProverDelegate.java
@baierd baierd merged commit 3053777 into master Jun 12, 2026
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants