mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 02:25:32 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -17,10 +17,10 @@ Copyright (c) 2015 Microsoft Corporation
|
|||
#define SAME_OP(_d1_, _d2_) ((_d1_ == _d2_) || (IS_EQUIV(_d1_) && IS_EQUIV(_d2_)))
|
||||
|
||||
proof_checker::hyp_decl_plugin::hyp_decl_plugin() :
|
||||
m_cons(0),
|
||||
m_atom(0),
|
||||
m_nil(0),
|
||||
m_cell(0) {
|
||||
m_cons(nullptr),
|
||||
m_atom(nullptr),
|
||||
m_nil(nullptr),
|
||||
m_cell(nullptr) {
|
||||
}
|
||||
|
||||
void proof_checker::hyp_decl_plugin::finalize() {
|
||||
|
@ -54,7 +54,7 @@ func_decl * proof_checker::hyp_decl_plugin::mk_func_decl(decl_kind k) {
|
|||
case OP_NIL: return m_nil;
|
||||
default:
|
||||
UNREACHABLE();
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -739,7 +739,7 @@ bool proof_checker::check1_basic(proof* p, expr_ref_vector& side_conditions) {
|
|||
// (not (forall ?x (p ?x y))) -> (not (p (sk y) y))
|
||||
if (match_fact(p, fact) &&
|
||||
match_oeq(fact.get(), t1, t2)) {
|
||||
quantifier* q = 0;
|
||||
quantifier* q = nullptr;
|
||||
expr* e = t1.get();
|
||||
bool is_forall = false;
|
||||
if (match_not(t1.get(), s1)) {
|
||||
|
@ -823,7 +823,7 @@ bool proof_checker::check1_basic(proof* p, expr_ref_vector& side_conditions) {
|
|||
premise0 = fmls[0].get();
|
||||
for (unsigned i = 1; i < fmls.size(); ++i) {
|
||||
expr_ref lit1(m), lit2(m);
|
||||
expr* lit3 = 0;
|
||||
expr* lit3 = nullptr;
|
||||
std::pair<unsigned, unsigned> pos = positions[i-1];
|
||||
premise1 = fmls[i].get();
|
||||
set_false(premise0, pos.first, lit1);
|
||||
|
@ -1099,7 +1099,7 @@ void proof_checker::get_ors(expr* e, expr_ref_vector& ors) {
|
|||
|
||||
void proof_checker::get_hypotheses(proof* p, expr_ref_vector& ante) {
|
||||
ptr_vector<proof> stack;
|
||||
expr* h = 0;
|
||||
expr* h = nullptr;
|
||||
expr_ref hyp(m);
|
||||
|
||||
stack.push_back(p);
|
||||
|
@ -1234,7 +1234,7 @@ bool proof_checker::is_hypothesis(proof* p) const {
|
|||
}
|
||||
|
||||
expr* proof_checker::mk_hyp(unsigned num_hyps, expr * const * hyps) {
|
||||
expr* result = 0;
|
||||
expr* result = nullptr;
|
||||
for (unsigned i = 0; i < num_hyps; ++i) {
|
||||
if (!match_nil(hyps[i])) {
|
||||
if (result) {
|
||||
|
@ -1245,7 +1245,7 @@ expr* proof_checker::mk_hyp(unsigned num_hyps, expr * const * hyps) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (result == 0) {
|
||||
if (result == nullptr) {
|
||||
return mk_nil();
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -143,7 +143,7 @@ class reduce_hypotheses {
|
|||
|
||||
void reduce(proof* pf, proof_ref &out)
|
||||
{
|
||||
proof *res = NULL;
|
||||
proof *res = nullptr;
|
||||
|
||||
m_todo.reset();
|
||||
m_todo.push_back(pf);
|
||||
|
@ -392,7 +392,7 @@ class reduce_hypotheses0 {
|
|||
}
|
||||
|
||||
void add_hypotheses(proof* p) {
|
||||
expr_set* hyps = 0;
|
||||
expr_set* hyps = nullptr;
|
||||
bool inherited = false;
|
||||
if (p->get_decl_kind() == PR_HYPOTHESIS) {
|
||||
hyps = alloc(expr_set);
|
||||
|
@ -509,7 +509,7 @@ public:
|
|||
// eliminate hypothesis recursively in the proof of the lemma
|
||||
elim(tmp);
|
||||
expr_set* hyps = m_hypmap.find(tmp);
|
||||
expr_set* new_hyps = 0;
|
||||
expr_set* new_hyps = nullptr;
|
||||
// XXX if the proof is correct, the hypotheses of the tmp
|
||||
// XXX should be exactly those of the consequence of the lemma
|
||||
// XXX but if this code actually eliminates hypotheses, the set might be a subset
|
||||
|
@ -567,7 +567,7 @@ public:
|
|||
}
|
||||
if (new_hyps && new_hyps->empty()) {
|
||||
dealloc(new_hyps);
|
||||
new_hyps = 0;
|
||||
new_hyps = nullptr;
|
||||
}
|
||||
m_hypmap.insert(result, new_hyps);
|
||||
// might push 0 into m_hyprefs. No reason for that
|
||||
|
@ -822,7 +822,7 @@ bool proof_utils::is_closed(ast_manager& m, proof* p) {
|
|||
|
||||
static void permute_unit_resolution(expr_ref_vector& refs, obj_map<proof,proof*>& cache, proof_ref& pr) {
|
||||
ast_manager& m = pr.get_manager();
|
||||
proof* pr2 = 0;
|
||||
proof* pr2 = nullptr;
|
||||
proof_ref_vector parents(m);
|
||||
proof_ref prNew(pr);
|
||||
if (cache.find(pr, pr2)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue