mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
Merge branch 'master' of https://github.com/z3prover/z3
This commit is contained in:
commit
d1877f58a5
|
@ -188,7 +188,6 @@ extern "C" {
|
|||
// DIMACS files start with "p cnf" and number of variables/clauses.
|
||||
// This is not legal SMT syntax, so use the DIMACS parser.
|
||||
static bool is_dimacs_string(Z3_string c_str) {
|
||||
std::cout << c_str << "\n";
|
||||
return c_str[0] == 'p' && c_str[1] == ' ' && c_str[2] == 'c';
|
||||
}
|
||||
|
||||
|
|
|
@ -388,7 +388,7 @@ namespace z3 {
|
|||
template<typename T2>
|
||||
array(ast_vector_tpl<T2> const & v);
|
||||
~array() { delete[] m_array; }
|
||||
void resize(unsigned sz) { delete[] m_array; m_array = new T[sz]; }
|
||||
void resize(unsigned sz) { delete[] m_array; m_size = sz; m_array = new T[sz]; }
|
||||
unsigned size() const { return m_size; }
|
||||
T & operator[](int i) { assert(0 <= i); assert(static_cast<unsigned>(i) < m_size); return m_array[i]; }
|
||||
T const & operator[](int i) const { assert(0 <= i); assert(static_cast<unsigned>(i) < m_size); return m_array[i]; }
|
||||
|
|
Loading…
Reference in a new issue