mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 18:24:43 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -94,12 +94,12 @@ struct model::value_proc : public some_value_proc {
|
|||
model & m_model;
|
||||
value_proc(model & m):m_model(m) {}
|
||||
expr * operator()(sort * s) override {
|
||||
ptr_vector<expr> * u = 0;
|
||||
ptr_vector<expr> * u = nullptr;
|
||||
if (m_model.m_usort2universe.find(s, u)) {
|
||||
if (u->size() > 0)
|
||||
return u->get(0);
|
||||
}
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -109,16 +109,16 @@ expr * model::get_some_value(sort * s) {
|
|||
}
|
||||
|
||||
ptr_vector<expr> const & model::get_universe(sort * s) const {
|
||||
ptr_vector<expr> * u = 0;
|
||||
ptr_vector<expr> * u = nullptr;
|
||||
m_usort2universe.find(s, u);
|
||||
SASSERT(u != 0);
|
||||
return *u;
|
||||
}
|
||||
|
||||
bool model::has_uninterpreted_sort(sort * s) const {
|
||||
ptr_vector<expr> * u = 0;
|
||||
ptr_vector<expr> * u = nullptr;
|
||||
m_usort2universe.find(s, u);
|
||||
return u != 0;
|
||||
return u != nullptr;
|
||||
}
|
||||
|
||||
unsigned model::get_num_uninterpreted_sorts() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue