mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 09:26:15 +00:00
use svector instead of vector where appropriate
Signed-off-by: Nuno Lopes <t-nclaud@microsoft.com>
This commit is contained in:
parent
38823d6c79
commit
adc8224dba
4 changed files with 5 additions and 7 deletions
|
@ -2755,7 +2755,7 @@ proof * ast_manager::mk_unit_resolution(unsigned num_proofs, proof * const * pro
|
||||||
app const * cls = to_app(f1);
|
app const * cls = to_app(f1);
|
||||||
unsigned num_args = cls->get_num_args();
|
unsigned num_args = cls->get_num_args();
|
||||||
#ifdef Z3DEBUG
|
#ifdef Z3DEBUG
|
||||||
vector<bool> found;
|
svector<bool> found;
|
||||||
#endif
|
#endif
|
||||||
for (unsigned i = 0; i < num_args; i++) {
|
for (unsigned i = 0; i < num_args; i++) {
|
||||||
expr * lit = cls->get_arg(i);
|
expr * lit = cls->get_arg(i);
|
||||||
|
|
|
@ -208,8 +208,8 @@ void bit_vector::display(std::ostream & out) const {
|
||||||
|
|
||||||
void fr_bit_vector::reset() {
|
void fr_bit_vector::reset() {
|
||||||
unsigned sz = size();
|
unsigned sz = size();
|
||||||
vector<unsigned>::const_iterator it = m_one_idxs.begin();
|
unsigned_vector::const_iterator it = m_one_idxs.begin();
|
||||||
vector<unsigned>::const_iterator end = m_one_idxs.end();
|
unsigned_vector::const_iterator end = m_one_idxs.end();
|
||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
unsigned idx = *it;
|
unsigned idx = *it;
|
||||||
if (idx < sz)
|
if (idx < sz)
|
||||||
|
@ -217,5 +217,3 @@ void fr_bit_vector::reset() {
|
||||||
}
|
}
|
||||||
m_one_idxs.reset();
|
m_one_idxs.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@ inline std::ostream & operator<<(std::ostream & out, bit_vector const & b) {
|
||||||
This class should be used if the reset is frequently called.
|
This class should be used if the reset is frequently called.
|
||||||
*/
|
*/
|
||||||
class fr_bit_vector : private bit_vector {
|
class fr_bit_vector : private bit_vector {
|
||||||
svector<unsigned> m_one_idxs;
|
unsigned_vector m_one_idxs;
|
||||||
public:
|
public:
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ class mpff_manager {
|
||||||
|
|
||||||
unsigned m_precision; //!< Number of words in the significand. Must be an even number.
|
unsigned m_precision; //!< Number of words in the significand. Must be an even number.
|
||||||
unsigned m_precision_bits; //!< Number of bits in the significand. Must be 32*m_precision.
|
unsigned m_precision_bits; //!< Number of bits in the significand. Must be 32*m_precision.
|
||||||
vector<unsigned> m_significands; //!< Array containing all significands.
|
unsigned_vector m_significands; //!< Array containing all significands.
|
||||||
unsigned m_capacity; //!< Number of significands that can be stored in m_significands.
|
unsigned m_capacity; //!< Number of significands that can be stored in m_significands.
|
||||||
bool m_to_plus_inf; //!< If True, then round to plus infinity, otherwise to minus infinity
|
bool m_to_plus_inf; //!< If True, then round to plus infinity, otherwise to minus infinity
|
||||||
id_gen m_id_gen;
|
id_gen m_id_gen;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue