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:
parent
d2411567b5
commit
05e053247d
14 changed files with 109 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue