3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00

improved SLS

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-03-21 15:06:31 -07:00
parent 6e285f06de
commit 76b11f2d12
4 changed files with 9 additions and 1 deletions

View file

@ -25,6 +25,9 @@ Notes:
namespace simplex {
template<typename Ext>
const typename simplex<Ext>::var_t simplex<Ext>::null_var = UINT_MAX;
template<typename Ext>
typename simplex<Ext>::row
simplex<Ext>::add_row(var_t base_var, unsigned num_vars, var_t const* vars, numeral const* coeffs) {

View file

@ -28,5 +28,7 @@ template class theory_diff_logic<idl_ext>;
template class theory_diff_logic<sidl_ext>;
template class theory_diff_logic<rdl_ext>;
template class theory_diff_logic<srdl_ext>;
template class simplex::simplex<simplex::mpq_ext>;
};

View file

@ -61,6 +61,9 @@ namespace smt {
};
};
const unsigned theory_pb::null_index = UINT_MAX;
unsigned theory_pb::arg_t::get_hash() const {
return get_composite_hash<arg_t, arg_t::kind_hash, arg_t::child_hash>(*this, size());
}

View file

@ -272,7 +272,7 @@ namespace smt {
// bool_var |-> index into m_lemma
unsigned_vector m_conseq_index;
static const unsigned null_index = UINT_MAX;
static const unsigned null_index;
bool is_marked(bool_var v) const;
void set_mark(bool_var v, unsigned idx);
void unset_mark(bool_var v);