mirror of
https://github.com/Z3Prover/z3
synced 2025-06-14 01:46:15 +00:00
heap issue of #3655 ?
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5c2a381eb0
commit
06a64669a2
1 changed files with 5 additions and 3 deletions
|
@ -40,8 +40,9 @@ struct unit_subsumption_tactic : public tactic {
|
||||||
void cleanup() override {}
|
void cleanup() override {}
|
||||||
|
|
||||||
void operator()(/* in */ goal_ref const & in,
|
void operator()(/* in */ goal_ref const & in,
|
||||||
/* out */ goal_ref_buffer & result) override {
|
/* out */ goal_ref_buffer & result) override {
|
||||||
fail_if_proof_generation("unit-subsumption", in);
|
tactic_report report("unit-subsume-simplify", *in);
|
||||||
|
fail_if_proof_generation("unit-subsume-simplify", in);
|
||||||
reduce_core(in, result);
|
reduce_core(in, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +77,8 @@ struct unit_subsumption_tactic : public tactic {
|
||||||
|
|
||||||
void assert_clauses(goal_ref const& g) {
|
void assert_clauses(goal_ref const& g) {
|
||||||
for (unsigned i = 0; i < g->size(); ++i) {
|
for (unsigned i = 0; i < g->size(); ++i) {
|
||||||
m_context.assert_expr(m.mk_iff(new_clause(), g->form(i)));
|
expr_ref fml(m.mk_iff(new_clause(), g->form(i)), m);
|
||||||
|
m_context.assert_expr(fml);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue