mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +00:00
address some ASan leaks
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d338fab4f6
commit
8cf0c94e5f
2 changed files with 3 additions and 2 deletions
|
@ -24,6 +24,7 @@ Revision History:
|
||||||
|
|
||||||
#include "math/automata/symbolic_automata.h"
|
#include "math/automata/symbolic_automata.h"
|
||||||
#include "util/hashtable.h"
|
#include "util/hashtable.h"
|
||||||
|
#include "util/vector.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -311,7 +312,7 @@ symbolic_automata<T, M>::mk_determinstic_param(automaton_t& a, bool flip_accepta
|
||||||
s2id.insert(set, p_state_id++); // the index to the initial state is 0
|
s2id.insert(set, p_state_id++); // the index to the initial state is 0
|
||||||
id2s.push_back(set);
|
id2s.push_back(set);
|
||||||
|
|
||||||
svector<uint_set> todo; //States to visit
|
::vector<uint_set> todo; //States to visit
|
||||||
todo.push_back(set);
|
todo.push_back(set);
|
||||||
|
|
||||||
uint_set state;
|
uint_set state;
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
bool empty() const { return m_vector.empty(); }
|
bool empty() const { return m_vector.empty(); }
|
||||||
void resize(unsigned sz) {
|
void resize(unsigned sz) {
|
||||||
if (sz < m_vector.size()) {
|
if (sz < m_vector.size()) {
|
||||||
for (unsigned i = m_vector.size(); i < sz; i++)
|
for (unsigned i = m_vector.size(); i-- > sz; )
|
||||||
dealloc(m_vector[i]);
|
dealloc(m_vector[i]);
|
||||||
m_vector.shrink(sz);
|
m_vector.shrink(sz);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue