mirror of
https://github.com/Z3Prover/z3
synced 2026-04-02 09:58:59 +00:00
add current_value access
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b1dc2f2be2
commit
d05dccf331
2 changed files with 6 additions and 0 deletions
|
|
@ -88,6 +88,10 @@ namespace smt {
|
|||
return m_arith_value.get_up(e, hi, is_strict) && !is_strict && hi.is_int();
|
||||
}
|
||||
|
||||
bool current_value(expr* e, rational& v) const override {
|
||||
return m_arith_value.get_value(e, v) && v.is_int();
|
||||
}
|
||||
|
||||
lbool check_with_assumptions(expr_ref_vector& assumptions, expr_ref_vector& core) override {
|
||||
// TODO: Not ideal
|
||||
// Replay with assumptions
|
||||
|
|
|
|||
|
|
@ -284,6 +284,8 @@ namespace seq {
|
|||
// Default implementation reports "unsupported".
|
||||
virtual bool lower_bound(expr* e, rational& lo) const { return false; }
|
||||
virtual bool upper_bound(expr* e, rational& hi) const { return false; }
|
||||
virtual bool current_value(expr *e, rational &v) const { return false; }
|
||||
|
||||
virtual void reset() = 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue