3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-27 21:48:56 +00:00

Use nullptr.

This commit is contained in:
Bruce Mitchener 2018-02-12 14:05:55 +07:00
parent f01328c65f
commit 76eb7b9ede
625 changed files with 4639 additions and 4639 deletions

View file

@ -269,12 +269,12 @@ struct goal2nlsat::scoped_set_imp {
}
~scoped_set_imp() {
m_owner.m_imp = 0;
m_owner.m_imp = nullptr;
}
};
goal2nlsat::goal2nlsat() {
m_imp = 0;
m_imp = nullptr;
}
goal2nlsat::~goal2nlsat() {

View file

@ -68,7 +68,7 @@ class nlsat_tactic : public tactic {
}
for (unsigned b = 0; b < b2a.size(); b++) {
expr * a = b2a.get(b);
if (a == 0)
if (a == nullptr)
continue;
if (is_uninterp_const(a))
continue;
@ -116,7 +116,7 @@ class nlsat_tactic : public tactic {
}
for (unsigned b = 0; b < b2a.size(); b++) {
expr * a = b2a.get(b);
if (a == 0 || !is_uninterp_const(a))
if (a == nullptr || !is_uninterp_const(a))
continue;
lbool val = m_solver.bvalue(b);
if (val == l_undef)
@ -134,7 +134,7 @@ class nlsat_tactic : public tactic {
proof_converter_ref & pc,
expr_dependency_ref & core) {
SASSERT(g->is_well_sorted());
mc = 0; pc = 0; core = 0;
mc = nullptr; pc = nullptr; core = nullptr;
tactic_report report("nlsat", *g);
if (g->is_decided()) {
@ -173,7 +173,7 @@ class nlsat_tactic : public tactic {
}
}
else {
expr_dependency* lcore = 0;
expr_dependency* lcore = nullptr;
if (g->unsat_core_enabled()) {
vector<nlsat::assumption, false> assumptions;
m_solver.get_core(assumptions);
@ -182,7 +182,7 @@ class nlsat_tactic : public tactic {
lcore = m.mk_join(lcore, d);
}
}
g->assert_expr(m.mk_false(), 0, lcore);
g->assert_expr(m.mk_false(), nullptr, lcore);
}
g->inc_depth();
@ -204,14 +204,14 @@ class nlsat_tactic : public tactic {
~scoped_set_imp() {
m_owner.m_imp->m_solver.collect_statistics(m_owner.m_stats);
m_owner.m_imp = 0;
m_owner.m_imp = nullptr;
}
};
public:
nlsat_tactic(params_ref const & p):
m_params(p) {
m_imp = 0;
m_imp = nullptr;
}
tactic * translate(ast_manager & m) override {