mirror of
https://github.com/Z3Prover/z3
synced 2025-09-05 09:37:44 +00:00
preserve dl rule names during xforms
This commit is contained in:
parent
50f794c4f5
commit
af28057980
8 changed files with 13 additions and 9 deletions
|
@ -784,7 +784,7 @@ namespace datalog {
|
|||
|
||||
SASSERT(tail.size()==tail_neg.size());
|
||||
rule_ref old_r = r;
|
||||
r = mk(head, tail.size(), tail.c_ptr(), tail_neg.c_ptr());
|
||||
r = mk(head, tail.size(), tail.c_ptr(), tail_neg.c_ptr(), old_r->name());
|
||||
r->set_accounting_parent_object(m_ctx, old_r);
|
||||
}
|
||||
|
||||
|
@ -1003,6 +1003,7 @@ namespace datalog {
|
|||
|
||||
void rule::display(context & ctx, std::ostream & out) const {
|
||||
ast_manager & m = ctx.get_manager();
|
||||
out << m_name.str () << ":\n";
|
||||
//out << mk_pp(m_head, m);
|
||||
output_predicate(ctx, m_head, out);
|
||||
if (m_tail_size == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue