mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
purge unused code from theory_pb, fix bug reported by Mark Dunlop
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4b35ef29c9
commit
4159b987ce
6 changed files with 18 additions and 319 deletions
|
@ -177,6 +177,7 @@ public:
|
|||
else {
|
||||
asum = mk_fresh_bool("soft");
|
||||
fml = m.mk_iff(asum, e);
|
||||
m_defs.push_back(fml);
|
||||
add(fml);
|
||||
}
|
||||
new_assumption(asum, w);
|
||||
|
@ -698,8 +699,7 @@ public:
|
|||
fml = m.mk_implies(d, cls);
|
||||
update_model(d, cls);
|
||||
add(fml);
|
||||
m_defs.push_back(fml);
|
||||
|
||||
m_defs.push_back(fml);
|
||||
}
|
||||
else {
|
||||
d = cls;
|
||||
|
@ -833,7 +833,7 @@ public:
|
|||
|
||||
void commit_assignment() override {
|
||||
if (m_found_feasible_optimum) {
|
||||
TRACE("opt", tout << "Committing feasible solution\n" << m_defs << " " << m_asms;);
|
||||
TRACE("opt", tout << "Committing feasible solution\ndefs:" << m_defs << "\nasms:" << m_asms << "\n";);
|
||||
add(m_defs);
|
||||
add(m_asms);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue