mirror of
https://github.com/Z3Prover/z3
synced 2026-02-15 05:11:49 +00:00
call it data instead of c_ptr for approaching C++11 std::vector convention.
This commit is contained in:
parent
524dcd35f9
commit
4a6083836a
456 changed files with 2802 additions and 2802 deletions
|
|
@ -134,7 +134,7 @@ class wcnf {
|
|||
if (parsed_lit < 0) p = m.mk_not(p);
|
||||
ors.push_back(p);
|
||||
}
|
||||
result = to_app(mk_or(m, ors.size(), ors.c_ptr()));
|
||||
result = to_app(mk_or(m, ors.size(), ors.data()));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ class opb {
|
|||
in.skip_whitespace();
|
||||
while ('0' <= *in && *in <='9') num.push_back(*in), ++in;
|
||||
num.push_back(0);
|
||||
return rational(num.c_ptr());
|
||||
return rational(num.data());
|
||||
}
|
||||
|
||||
app_ref parse_coeff() {
|
||||
|
|
@ -410,7 +410,7 @@ private:
|
|||
c = in.ch();
|
||||
}
|
||||
m_buffer.push_back(0);
|
||||
m_tokens.push_back(asymbol(symbol(m_buffer.c_ptr()), in.line()));
|
||||
m_tokens.push_back(asymbol(symbol(m_buffer.data()), in.line()));
|
||||
IF_VERBOSE(10, verbose_stream() << "tok: " << m_tokens.back() << "\n");
|
||||
continue;
|
||||
}
|
||||
|
|
@ -456,7 +456,7 @@ private:
|
|||
}
|
||||
}
|
||||
m_buffer.push_back(0);
|
||||
m_tokens.push_back(asymbol(symbol(m_buffer.c_ptr()), in.line()));
|
||||
m_tokens.push_back(asymbol(symbol(m_buffer.data()), in.line()));
|
||||
IF_VERBOSE(10, verbose_stream() << "tok: " << m_tokens.back() << "\n");
|
||||
}
|
||||
}
|
||||
|
|
@ -868,7 +868,7 @@ private:
|
|||
}
|
||||
result.push_back(term);
|
||||
}
|
||||
return expr_ref(a.mk_add(result.size(), result.c_ptr()), m);
|
||||
return expr_ref(a.mk_add(result.size(), result.data()), m);
|
||||
}
|
||||
|
||||
expr_ref mk_var(symbol const& v) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue