mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
Use nullptr consistently instead of 0
or NULL
.
This commit is contained in:
parent
bf282b05c8
commit
77e5d6ab19
8 changed files with 25 additions and 25 deletions
|
@ -93,7 +93,7 @@ static void test_datatypes() {
|
|||
int_list = Z3_mk_list_sort(ctx, Z3_mk_string_symbol(ctx, "int_list"), int_ty,
|
||||
&nil_decl, &is_nil_decl, &cons_decl, &is_cons_decl, &head_decl, &tail_decl);
|
||||
|
||||
nil = Z3_mk_app(ctx, nil_decl, 0, 0);
|
||||
nil = Z3_mk_app(ctx, nil_decl, 0, nullptr);
|
||||
|
||||
Z3_ast a = Z3_simplify(ctx, Z3_mk_app(ctx, is_nil_decl, 1, &nil));
|
||||
ENSURE(a == Z3_mk_true(ctx));
|
||||
|
@ -132,7 +132,7 @@ static void test_skolemize_bug() {
|
|||
Z3_ast args[2] = { Z3_mk_eq(ctx, Z3_mk_add(ctx, 2, args1), xp),
|
||||
Z3_mk_ge(ctx, Z3_mk_add(ctx, 2, args2), n0) };
|
||||
Z3_ast f = Z3_mk_and(ctx, 2, args);
|
||||
Z3_ast f2 = Z3_mk_exists(ctx, 0, 0, 0, 1, &Real, &x_name, f);
|
||||
Z3_ast f2 = Z3_mk_exists(ctx, 0, 0, nullptr, 1, &Real, &x_name, f);
|
||||
std::cout << Z3_ast_to_string(ctx, f2) << "\n";
|
||||
Z3_ast f3 = Z3_simplify(ctx, f2);
|
||||
std::cout << Z3_ast_to_string(ctx, f3) << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue