3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

solver::eval

This commit is contained in:
Jakob Rath 2023-12-21 14:34:12 +01:00
parent 5b9ae557ed
commit 8e84aac36c
2 changed files with 7 additions and 0 deletions

View file

@ -1473,6 +1473,12 @@ namespace polysat {
return r.is_val();
}
rational solver::eval(pdd const& p) const {
rational r;
VERIFY(try_eval(p, r));
return r;
}
/**
* Variable activity accounting.
* As a placeholder we increment activity

View file

@ -415,6 +415,7 @@ namespace polysat {
* Evaluate term under the current assignment.
*/
bool try_eval(pdd const& p, rational& out_value) const;
rational eval(pdd const& p) const;
/**
* Add variable with bit-size.