mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
adding soft-assertions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e50e02e656
commit
552cbd840f
8 changed files with 30 additions and 5 deletions
|
@ -493,6 +493,13 @@ namespace opt {
|
|||
}
|
||||
}
|
||||
|
||||
void context::set_soft_assumptions() {
|
||||
if (m_sat_solver.get()) {
|
||||
m_params.set_bool("soft_assumptions", true);
|
||||
m_sat_solver->updt_params(m_params);
|
||||
}
|
||||
}
|
||||
|
||||
void context::enable_sls(expr_ref_vector const& soft, vector<rational> const& weights) {
|
||||
SASSERT(soft.size() == weights.size());
|
||||
if (m_sat_solver.get()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue