3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-19 17:50:23 +00:00

Add virtual translate method to solver_factory class (#7780)

* Initial plan

* Add virtual translate method to solver_factory base class and all implementations

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Add documentation for the translate method in solver_factory

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
Copilot 2025-08-14 11:54:34 -07:00 committed by GitHub
parent 237891c901
commit eb7fd9efaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 32 additions and 0 deletions

View file

@ -424,6 +424,12 @@ public:
(*m_f2)(m, p, proofs_enabled, models_enabled, unsat_core_enabled, logic),
p);
}
solver_factory* translate(ast_manager& m) override {
solver_factory* translated_f1 = m_f1->translate(m);
solver_factory* translated_f2 = m_f2->translate(m);
return alloc(combined_solver_factory, translated_f1, translated_f2);
}
};
solver_factory * mk_combined_solver_factory(solver_factory * f1, solver_factory * f2) {