mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
finally expose some easier to use basics could be used in cases such as #5496
This commit is contained in:
parent
aa05298950
commit
1975e486ee
|
@ -137,6 +137,11 @@ public:
|
|||
mk_eq(lhs, rhs, r);
|
||||
return r;
|
||||
}
|
||||
expr_ref mk_xor(expr* a, expr* b) {
|
||||
expr_ref result(m());
|
||||
mk_xor(a, b, result);
|
||||
return result;
|
||||
}
|
||||
void mk_iff(expr * lhs, expr * rhs, expr_ref & result) { mk_eq(lhs, rhs, result); }
|
||||
void mk_xor(expr * lhs, expr * rhs, expr_ref & result);
|
||||
void mk_and(unsigned num_args, expr * const * args, expr_ref & result) {
|
||||
|
@ -169,6 +174,16 @@ public:
|
|||
mk_and(args.size(), args.data(), result);
|
||||
return result;
|
||||
}
|
||||
expr_ref mk_and(expr* a, expr* b) {
|
||||
expr_ref result(m());
|
||||
mk_and(a, b, result);
|
||||
return result;
|
||||
}
|
||||
expr_ref mk_or(expr* a, expr* b) {
|
||||
expr_ref result(m());
|
||||
mk_or(a, b, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void mk_and(expr * arg1, expr * arg2, expr_ref & result) {
|
||||
expr * args[2] = {arg1, arg2};
|
||||
|
|
Loading…
Reference in a new issue