mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
rename to some saner name
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
63f3c841d8
commit
ce5c8b3066
6 changed files with 37 additions and 49 deletions
|
@ -30,6 +30,15 @@ namespace polysat {
|
|||
vector<bdd> m_viable; // set of viable values.
|
||||
vector<std::pair<pvar, bdd>> m_viable_trail;
|
||||
|
||||
/**
|
||||
* Register all values that are not contained in vals as non-viable.
|
||||
*/
|
||||
void intersect_viable(pvar v, bdd vals);
|
||||
|
||||
dd::bdd_manager& get_bdd() { return m_bdd; }
|
||||
dd::fdd const& sz2bits(unsigned sz);
|
||||
dd::fdd const& var2bits(pvar v);
|
||||
|
||||
public:
|
||||
viable(solver& s);
|
||||
|
||||
|
@ -40,6 +49,11 @@ namespace polysat {
|
|||
|
||||
void pop_viable();
|
||||
|
||||
/**
|
||||
* update state of viable for pvar v
|
||||
* based on affine constraints
|
||||
*/
|
||||
|
||||
void intersect_eq(rational const& a, pvar v, rational const& b, bool is_positive);
|
||||
|
||||
void intersect_ule(pvar v, rational const& a, rational const& b, rational const& c, rational const& d, bool is_positive);
|
||||
|
@ -61,15 +75,6 @@ namespace polysat {
|
|||
*/
|
||||
void add_non_viable(pvar v, rational const& val);
|
||||
|
||||
/**
|
||||
* Register all values that are not contained in vals as non-viable.
|
||||
*/
|
||||
void intersect_viable(pvar v, bdd vals);
|
||||
|
||||
/**
|
||||
* Add dependency for variable viable range.
|
||||
*/
|
||||
void add_viable_dep(pvar v, p_dependency* dep);
|
||||
|
||||
/**
|
||||
* Find a next viable value for variable.
|
||||
|
@ -80,12 +85,9 @@ namespace polysat {
|
|||
* (Inefficient, but useful for debugging small instances.)
|
||||
*/
|
||||
void log(pvar v);
|
||||
/** Like log_viable but for all variables */
|
||||
void log();
|
||||
|
||||
dd::bdd_manager& get_bdd() { return m_bdd; }
|
||||
dd::fdd const& sz2bits(unsigned sz);
|
||||
dd::fdd const& var2bits(pvar v);
|
||||
/** Like log(v) but for all variables */
|
||||
void log();
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue