mirror of
https://github.com/Z3Prover/z3
synced 2025-08-09 12:50:32 +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();
|
return r.is_val();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rational solver::eval(pdd const& p) const {
|
||||||
|
rational r;
|
||||||
|
VERIFY(try_eval(p, r));
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Variable activity accounting.
|
* Variable activity accounting.
|
||||||
* As a placeholder we increment activity
|
* As a placeholder we increment activity
|
||||||
|
|
|
@ -415,6 +415,7 @@ namespace polysat {
|
||||||
* Evaluate term under the current assignment.
|
* Evaluate term under the current assignment.
|
||||||
*/
|
*/
|
||||||
bool try_eval(pdd const& p, rational& out_value) const;
|
bool try_eval(pdd const& p, rational& out_value) const;
|
||||||
|
rational eval(pdd const& p) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add variable with bit-size.
|
* Add variable with bit-size.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue