3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 20:38:43 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-08-23 10:05:17 -07:00
parent 666e835e08
commit 84475ff142
2 changed files with 14 additions and 14 deletions

View file

@ -2864,7 +2864,10 @@ namespace z3 {
assert(e.is_bool());
Z3_optimize_assert_and_track(ctx(), m_opt, e, t);
}
void add(expr const& e, char const* p) {
assert(e.is_bool());
add(e, ctx().bool_const(p));
}
handle add_soft(expr const& e, unsigned weight) {
assert(e.is_bool());
auto str = std::to_string(weight);

View file

@ -9,7 +9,7 @@ Abstract:
User-propagator plugin.
Adds user plugins to propagate based on
terms receiving fixed values.
terms receiving fixed values or equalities.
Author:
@ -17,8 +17,6 @@ Author:
Notes:
- could also be complemented with disequalities to fixed values to narrow range of variables.
--*/
@ -58,7 +56,6 @@ namespace smt {
solver::eq_eh_t m_eq_eh;
solver::eq_eh_t m_diseq_eh;
solver::context_obj* m_api_context { nullptr };
unsigned m_qhead { 0 };
vector<prop_info> m_prop;
unsigned_vector m_prop_lim;