mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
solver::eval
This commit is contained in:
parent
5b9ae557ed
commit
8e84aac36c
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue