Skip to content

Add solver and interrupted exceptions to all prover methods#676

Draft
baierd wants to merge 27 commits into
masterfrom
add_solver_and_interruptedExceptions_to_all_prover_methods
Draft

Add solver and interrupted exceptions to all prover methods#676
baierd wants to merge 27 commits into
masterfrom
add_solver_and_interruptedExceptions_to_all_prover_methods

Conversation

@baierd

@baierd baierd commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

This PR adds ProverExceptions and InterruptedExceptions to all Prover*, Evaluator* and Model* interface methods interacting with solvers in preparation for Prover based interrupts.

This PR is based on #674 and should only be merged after it.

baierd added 13 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
…erforms common checks before delegating to a new implementation method getUnsatCoreImpl() (that is implemented by all solvers that can generate unsat cores)
…rover that performs common checks before delegating to a new implementation method unsatCoreOverAssumptionsImpl() (that is implemented by all solvers) a default impl for unsatCoreOverAssumptionsImpl() is not possible due to javac complaining wrongly in the CI
…llSatImpl after all common checks. AllSatImpl now handles all AllSat implementations and redundant checks are removed
@baierd baierd self-assigned this Jun 10, 2026
baierd added 14 commits June 10, 2026 17:23
…hecks and a delegate method that can be implemented by the solvers
…, check for interrupts in all solver touching API and throw InterruptedException in all methods that may be interrupted (including changes to getStatistics(), as it also uses solver functions)
…ver shutdown + add common API shutdownIfNecessary() in AbstractProver that handles this
…utdownManager should shut down without needing to use the manager
… AbstractProver instead of using the notifier directly
…nd_interruptedExceptions_to_all_prover_methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant