mirror of
https://github.com/Z3Prover/z3
synced 2025-04-30 04:15:51 +00:00
improve pre-processing
This commit is contained in:
parent
a634876180
commit
3cc9d7f443
22 changed files with 147 additions and 80 deletions
|
@ -41,12 +41,12 @@ void atom2bool_var::mk_var_inv(expr_ref_vector & var2expr) const {
|
|||
|
||||
sat::bool_var atom2bool_var::to_bool_var(expr * n) const {
|
||||
unsigned idx = m_id2map.get(n->get_id(), UINT_MAX);
|
||||
if (idx == UINT_MAX) {
|
||||
if (idx == UINT_MAX)
|
||||
return sat::null_bool_var;
|
||||
}
|
||||
else {
|
||||
else if (idx >= m_mapping.size())
|
||||
return sat::null_bool_var;
|
||||
else
|
||||
return m_mapping[idx].m_value;
|
||||
}
|
||||
}
|
||||
|
||||
struct collect_boolean_interface_proc {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue