diff --git a/src/api/api_solver.cpp b/src/api/api_solver.cpp index ddaaf71f9..1c0664bb2 100644 --- a/src/api/api_solver.cpp +++ b/src/api/api_solver.cpp @@ -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'; } diff --git a/src/api/c++/z3++.h b/src/api/c++/z3++.h index d94b4f36b..1900c6f00 100644 --- a/src/api/c++/z3++.h +++ b/src/api/c++/z3++.h @@ -388,7 +388,7 @@ namespace z3 { template array(ast_vector_tpl 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(i) < m_size); return m_array[i]; } T const & operator[](int i) const { assert(0 <= i); assert(static_cast(i) < m_size); return m_array[i]; }