mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +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
|
@ -208,8 +208,8 @@ void bit_vector::display(std::ostream & out) const {
|
|||
|
||||
void fr_bit_vector::reset() {
|
||||
unsigned sz = size();
|
||||
vector<unsigned>::const_iterator it = m_one_idxs.begin();
|
||||
vector<unsigned>::const_iterator end = m_one_idxs.end();
|
||||
unsigned_vector::const_iterator it = m_one_idxs.begin();
|
||||
unsigned_vector::const_iterator end = m_one_idxs.end();
|
||||
for (; it != end; ++it) {
|
||||
unsigned idx = *it;
|
||||
if (idx < sz)
|
||||
|
@ -217,5 +217,3 @@ void fr_bit_vector::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.
|
||||
*/
|
||||
class fr_bit_vector : private bit_vector {
|
||||
svector<unsigned> m_one_idxs;
|
||||
unsigned_vector m_one_idxs;
|
||||
public:
|
||||
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_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.
|
||||
bool m_to_plus_inf; //!< If True, then round to plus infinity, otherwise to minus infinity
|
||||
id_gen m_id_gen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue