mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
declutter spacer_manager
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8e6bb30c82
commit
7722bf1a55
3 changed files with 46 additions and 36 deletions
|
@ -33,6 +33,7 @@ public:
|
|||
};
|
||||
|
||||
void expr_abstract(ast_manager& m, unsigned base, unsigned num_bound, expr* const* bound, expr* n, expr_ref& result);
|
||||
inline expr_ref expr_abstract(ast_manager& m, unsigned base, unsigned num_bound, expr* const* bound, expr* n) { expr_ref r(m); expr_abstract(m, base, num_bound, bound, n); return r; }
|
||||
expr_ref mk_forall(ast_manager& m, unsigned num_bound, app* const* bound, expr* n);
|
||||
expr_ref mk_exists(ast_manager& m, unsigned num_bound, app* const* bound, expr* n);
|
||||
|
||||
|
|
|
@ -145,6 +145,27 @@ public:
|
|||
if (mk_or_core(num_args, args, result) == BR_FAILED)
|
||||
result = m().mk_or(num_args, args);
|
||||
}
|
||||
expr_ref mk_or(unsigned num_args, expr * const * args) {
|
||||
expr_ref result(m());
|
||||
mk_or(num_args, args, result);
|
||||
return result;
|
||||
}
|
||||
expr_ref mk_and(unsigned num_args, expr * const * args) {
|
||||
expr_ref result(m());
|
||||
mk_and(num_args, args, result);
|
||||
return result;
|
||||
}
|
||||
expr_ref mk_or(expr_ref_vector const& args) {
|
||||
expr_ref result(m());
|
||||
mk_or(args.size(), args.c_ptr(), result);
|
||||
return result;
|
||||
}
|
||||
expr_ref mk_and(expr_ref_vector const& args) {
|
||||
expr_ref result(m());
|
||||
mk_and(args.size(), args.c_ptr(), result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void mk_and(expr * arg1, expr * arg2, expr_ref & result) {
|
||||
expr * args[2] = {arg1, arg2};
|
||||
mk_and(2, args, result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue