Commits

Nikolaj Bjorner  committed 108bbb0

add missing check for difference logic fragment for clause heads

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>

  • Participants
  • Parent commits a5ceff9

Comments (0)

Files changed (2)

File src/api/api_datalog.cpp

         ast_manager& m = m_context.get_manager();
         
         datalog::context ctx(m, m_context.get_fparams());
-        // datalog::rule_manager& rm = ctx.get_rule_manager();
         for (unsigned i = 0; i < num_rules; ++i) {
             expr* rule = rules[i], *body, *head;
             while (true) {

File src/muz_qe/pdr_context.cpp

                 for (it = rules.begin(); it != end; ++it) {  
                     datalog::rule& r = *(*it);
                     unsigned utsz = r.get_uninterpreted_tail_size();
+                    forms.push_back(r.get_head());
                     for (unsigned i = utsz; i < r.get_tail_size(); ++i) {
                         forms.push_back(r.get_tail(i));
-                    }                                          
+                    }         
                 }
                 m_is_dl = is_difference_logic(m, forms.size(), forms.c_ptr());
             }