mirror of
https://github.com/Z3Prover/z3
synced 2025-08-04 18:30:24 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -38,7 +38,7 @@ void bv2int_rewriter_ctx::collect_power2(goal const& s) {
|
|||
expr* f = s.form(j);
|
||||
if (!m.is_or(f)) continue;
|
||||
unsigned sz = to_app(f)->get_num_args();
|
||||
expr* x, *y, *v = 0;
|
||||
expr* x, *y, *v = nullptr;
|
||||
rational n;
|
||||
vector<rational> bounds;
|
||||
bool is_int, ok = true;
|
||||
|
@ -50,12 +50,12 @@ void bv2int_rewriter_ctx::collect_power2(goal const& s) {
|
|||
break;
|
||||
}
|
||||
if (arith.is_numeral(y, n, is_int) && is_int &&
|
||||
(x == v || v == 0)) {
|
||||
(x == v || v == nullptr)) {
|
||||
v = x;
|
||||
bounds.push_back(n);
|
||||
}
|
||||
else if (arith.is_numeral(x, n, is_int) && is_int &&
|
||||
(y == v || v == 0)) {
|
||||
(y == v || v == nullptr)) {
|
||||
v = y;
|
||||
bounds.push_back(n);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue