mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
Prefer larger masks for justifications
This commit is contained in:
parent
5fbfa0be8f
commit
0dae2d40b5
1 changed files with 10 additions and 0 deletions
|
@ -772,6 +772,8 @@ namespace {
|
|||
add_entry(e);
|
||||
};
|
||||
|
||||
unsigned largest_mask = 0;
|
||||
|
||||
do {
|
||||
single_bit bit;
|
||||
trailing_bits mask;
|
||||
|
@ -808,6 +810,14 @@ namespace {
|
|||
s.set_conflict(*builder.build());
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
// Prefer justifications from larger masks (less premisses)
|
||||
if (largest_mask < mask.length) {
|
||||
largest_mask = mask.length;
|
||||
justifications[i].clear();
|
||||
justifications[i].push_back(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
SASSERT(justifications[i].empty());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue