mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
bool_vector, some spacer tidy
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2ed26e8e73
commit
b889b110ee
106 changed files with 239 additions and 266 deletions
|
@ -75,7 +75,7 @@ void const_iterator_mon::advance_mask() {
|
|||
const_iterator_mon::self_type const_iterator_mon::operator++() { self_type i = *this; operator++(1); return i; }
|
||||
const_iterator_mon::self_type const_iterator_mon::operator++(int) { advance_mask(); return *this; }
|
||||
|
||||
const_iterator_mon::const_iterator_mon(const svector<bool>& mask, const factorization_factory *f) :
|
||||
const_iterator_mon::const_iterator_mon(const bool_vector& mask, const factorization_factory *f) :
|
||||
m_mask(mask),
|
||||
m_ff(f) ,
|
||||
m_full_factorization_returned(false)
|
||||
|
|
|
@ -77,7 +77,7 @@ public:
|
|||
|
||||
struct const_iterator_mon {
|
||||
// fields
|
||||
svector<bool> m_mask;
|
||||
bool_vector m_mask;
|
||||
const factorization_factory * m_ff;
|
||||
bool m_full_factorization_returned;
|
||||
|
||||
|
@ -97,7 +97,7 @@ struct const_iterator_mon {
|
|||
self_type operator++();
|
||||
self_type operator++(int);
|
||||
|
||||
const_iterator_mon(const svector<bool>& mask, const factorization_factory *f);
|
||||
const_iterator_mon(const bool_vector& mask, const factorization_factory *f);
|
||||
|
||||
bool operator==(const self_type &other) const;
|
||||
bool operator!=(const self_type &other) const;
|
||||
|
@ -119,15 +119,15 @@ struct factorization_factory {
|
|||
m_vars(vars), m_monic(m) {
|
||||
}
|
||||
|
||||
svector<bool> get_mask() const {
|
||||
bool_vector get_mask() const {
|
||||
// we keep the last element always in the first factor to avoid
|
||||
// repeating a pair twice, that is why m_mask is shorter by one then m_vars
|
||||
|
||||
return
|
||||
m_vars.size() != 2 ?
|
||||
svector<bool>(m_vars.size() - 1, false)
|
||||
bool_vector(m_vars.size() - 1, false)
|
||||
:
|
||||
svector<bool>(1, true); // init mask as in the end() since the full iteration will do the job
|
||||
bool_vector(1, true); // init mask as in the end() since the full iteration will do the job
|
||||
}
|
||||
|
||||
const_iterator_mon begin() const {
|
||||
|
@ -135,7 +135,7 @@ struct factorization_factory {
|
|||
}
|
||||
|
||||
const_iterator_mon end() const {
|
||||
svector<bool> mask(m_vars.size() - 1, true);
|
||||
bool_vector mask(m_vars.size() - 1, true);
|
||||
auto it = const_iterator_mon(mask, this);
|
||||
it.m_full_factorization_returned = true;
|
||||
return it;
|
||||
|
|
|
@ -74,7 +74,7 @@ class var_eqs {
|
|||
|
||||
trail_stack<var_eqs> m_stack;
|
||||
mutable svector<var_frame> m_todo;
|
||||
mutable svector<bool> m_marked;
|
||||
mutable bool_vector m_marked;
|
||||
mutable unsigned_vector m_marked_trail;
|
||||
mutable svector<eq_justification> m_justtrail;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue