3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

Missing overload for conflict (#6329)

This commit is contained in:
Clemens Eisenhofer 2022-09-07 18:02:06 +02:00 committed by GitHub
parent 55d5af00cc
commit 25b5b985e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4314,6 +4314,16 @@ namespace z3 {
Z3_solver_propagate_consequence(ctx(), cb, fixed.size(), _fixed.ptr(), 0, nullptr, nullptr, conseq);
}
void conflict(expr_vector const& fixed, expr_vector const& lhs, expr_vector const& rhs) {
assert(cb);
assert(lhs.size() == rhs.size());
expr conseq = ctx().bool_val(false);
array<Z3_ast> _fixed(fixed);
array<Z3_ast> _lhs(lhs);
array<Z3_ast> _rhs(rhs);
Z3_solver_propagate_consequence(ctx(), cb, fixed.size(), _fixed.ptr(), lhs.size(), _lhs.ptr(), _rhs.ptr(), conseq);
}
void propagate(expr_vector const& fixed, expr const& conseq) {
assert(cb);
assert((Z3_context)conseq.ctx() == (Z3_context)ctx());