mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 20:33:38 +00:00
parent
666e835e08
commit
84475ff142
2 changed files with 14 additions and 14 deletions
|
@ -2864,7 +2864,10 @@ namespace z3 {
|
||||||
assert(e.is_bool());
|
assert(e.is_bool());
|
||||||
Z3_optimize_assert_and_track(ctx(), m_opt, e, t);
|
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) {
|
handle add_soft(expr const& e, unsigned weight) {
|
||||||
assert(e.is_bool());
|
assert(e.is_bool());
|
||||||
auto str = std::to_string(weight);
|
auto str = std::to_string(weight);
|
||||||
|
|
|
@ -9,7 +9,7 @@ Abstract:
|
||||||
|
|
||||||
User-propagator plugin.
|
User-propagator plugin.
|
||||||
Adds user plugins to propagate based on
|
Adds user plugins to propagate based on
|
||||||
terms receiving fixed values.
|
terms receiving fixed values or equalities.
|
||||||
|
|
||||||
Author:
|
Author:
|
||||||
|
|
||||||
|
@ -17,8 +17,6 @@ Author:
|
||||||
|
|
||||||
Notes:
|
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_eq_eh;
|
||||||
solver::eq_eh_t m_diseq_eh;
|
solver::eq_eh_t m_diseq_eh;
|
||||||
solver::context_obj* m_api_context { nullptr };
|
solver::context_obj* m_api_context { nullptr };
|
||||||
|
|
||||||
unsigned m_qhead { 0 };
|
unsigned m_qhead { 0 };
|
||||||
vector<prop_info> m_prop;
|
vector<prop_info> m_prop;
|
||||||
unsigned_vector m_prop_lim;
|
unsigned_vector m_prop_lim;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue