mirror of
https://github.com/Z3Prover/z3
synced 2025-07-03 03:15:41 +00:00
use bool_vector
This commit is contained in:
parent
c523ecc192
commit
a08a0cb871
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ void permutation::display(std::ostream & out) const {
|
||||||
bool permutation::check_invariant() const {
|
bool permutation::check_invariant() const {
|
||||||
SASSERT(m_p.size() == m_inv_p.size());
|
SASSERT(m_p.size() == m_inv_p.size());
|
||||||
unsigned n = m_p.size();
|
unsigned n = m_p.size();
|
||||||
std::vector<bool> check_vector(n, false); // To check for duplicate and out-of-range values
|
bool_vector check_vector(n, false); // To check for duplicate and out-of-range values
|
||||||
for (unsigned i = 0; i < n; i++) {
|
for (unsigned i = 0; i < n; i++) {
|
||||||
unsigned pi = m_p[i];
|
unsigned pi = m_p[i];
|
||||||
SASSERT(m_p[i] < n);
|
SASSERT(m_p[i] < n);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue