mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
update core minimization code
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
41edf5f91e
commit
c72ed3e6b4
9 changed files with 287 additions and 109 deletions
|
@ -811,14 +811,10 @@ namespace qe {
|
|||
}
|
||||
TRACE("qe", tout << core1.size() << " " << core2.size() << "\n";);
|
||||
if (core1.size() > 8) {
|
||||
unsigned_vector core_idxs;
|
||||
if (l_true != mus.get_mus(core_idxs)) {
|
||||
if (l_true != mus.get_mus(core2)) {
|
||||
return false;
|
||||
}
|
||||
TRACE("qe", tout << core1.size() << " -> " << core_idxs.size() << "\n";);
|
||||
for (unsigned i = 0; i < core_idxs.size(); ++i) {
|
||||
core2.push_back(core1[core_idxs[i]].get());
|
||||
}
|
||||
TRACE("qe", tout << core1.size() << " -> " << core2.size() << "\n";);
|
||||
core.reset();
|
||||
core.append(core2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue