3
0
Fork 0
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:
Clemens Eisenhofer 2023-02-16 07:31:13 +01:00
parent 5fbfa0be8f
commit 0dae2d40b5

View file

@ -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());