mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
Add C++ functions for set operations per stackoverflow post, set relevancy = 2 for quantified maxsmt per example from Aaron Gember, fix conversion of default weights based on bug report from Patrick Trentin on maxsat. Annotating soft constraints with weight=0 caused the weight to be adjusted to 1 and therefore produce wrong results
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cda967ead2
commit
527c5191a6
4 changed files with 74 additions and 26 deletions
|
@ -78,6 +78,9 @@ namespace opt {
|
|||
}
|
||||
|
||||
void opt_solver::assert_expr(expr * t) {
|
||||
if (has_quantifiers(t)) {
|
||||
m_params.m_relevancy_lvl = 2;
|
||||
}
|
||||
m_context.assert_expr(t);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue