3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-10 17:25:47 +00:00

add facility to solve for a linear term over API

This commit is contained in:
Nikolaj Bjorner 2024-11-30 09:34:27 -08:00
parent d2411567b5
commit 05e053247d
14 changed files with 109 additions and 6 deletions

View file

@ -4654,6 +4654,15 @@ namespace smt {
return false;
return th->get_value(n, value);
}
bool context::solve_for(enode * n, expr_ref & term) {
sort * s = n->get_sort();
family_id fid = s->get_family_id();
theory * th = get_theory(fid);
if (th == nullptr)
return false;
return th->solve_for(n, term);
}
bool context::update_model(bool refinalize) {
final_check_status fcs = FC_DONE;