mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 21:03:39 +00:00
initialize watch in assign_eh
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
aaf6e67ec8
commit
8dde60f634
2 changed files with 1 additions and 3 deletions
|
@ -772,6 +772,7 @@ namespace smt {
|
||||||
void theory_pb::assign_eh(bool_var v, bool is_true) {
|
void theory_pb::assign_eh(bool_var v, bool is_true) {
|
||||||
ptr_vector<ineq>* ineqs = 0;
|
ptr_vector<ineq>* ineqs = 0;
|
||||||
literal nlit(v, is_true);
|
literal nlit(v, is_true);
|
||||||
|
init_watch(v);
|
||||||
TRACE("pb", tout << "assign: " << ~nlit << "\n";);
|
TRACE("pb", tout << "assign: " << ~nlit << "\n";);
|
||||||
ineqs = m_var_infos[v].m_lit_watch[nlit.sign()];
|
ineqs = m_var_infos[v].m_lit_watch[nlit.sign()];
|
||||||
if (ineqs != 0) {
|
if (ineqs != 0) {
|
||||||
|
|
|
@ -216,9 +216,6 @@ namespace smt {
|
||||||
theory_pb_params m_params;
|
theory_pb_params m_params;
|
||||||
|
|
||||||
svector<var_info> m_var_infos;
|
svector<var_info> m_var_infos;
|
||||||
// u_map<watch_list*> m_lwatch; // per literal.
|
|
||||||
// u_map<watch_list*> m_vwatch; // per variable.
|
|
||||||
// u_map<ineq*> m_ineqs; // per inequality.
|
|
||||||
arg_map m_ineq_rep; // Simplex: representative inequality
|
arg_map m_ineq_rep; // Simplex: representative inequality
|
||||||
u_map<row_info> m_ineq_row_info; // Simplex: row information per variable
|
u_map<row_info> m_ineq_row_info; // Simplex: row information per variable
|
||||||
uint_set m_vars; // Simplex: 0-1 variables.
|
uint_set m_vars; // Simplex: 0-1 variables.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue