remove_unf.c

00001 
00002 #include <stdio.h>
00003 
00004 #include "xsb_config.h"
00005 #include "basictypes.h"
00006 #include "cell_xsb.h"
00007 #include "error_xsb.h"
00008 #include "psc_xsb.h"
00009 #include "tries.h"
00010 #include "macro_xsb.h"
00011 #include "debug_xsb.h"
00012 #include "register.h"
00013 
00014 #ifdef DEBUG_VERBOSE
00015 void my_print_completion_stack(CPtr leader_ptr)
00016 {
00017   int i = 0;
00018   EPtr eptr;
00019   VariantSF subg;
00020   CPtr temp = openreg;
00021 
00022   fprintf(stddbg,"openreg -> ");
00023   while (temp < (leader_ptr + COMPLFRAMESIZE)) {
00024     if ((i % COMPLFRAMESIZE) == 0) {
00025       fprintf(stddbg,EOFR);     
00026       subg = compl_subgoal_ptr(temp);
00027       print_subg_header(subg);
00028       printf("ans_list_ptr %x ans_list_tail %x\n",
00029              subg_ans_list_ptr(subg),
00030              subg_ans_list_tail(subg));
00031     }
00032     fprintf(stddbg,"Completion Stack %p: %lx\t(%s)",
00033             temp, *temp, compl_stk_frame_field[(i % COMPLFRAMESIZE)]);
00034     /* only for batched
00035     if ((i % COMPLFRAMESIZE) >= COMPLFRAMESIZE-2) {
00036       for (eptr = (EPtr)*temp; eptr != NULL; eptr = next_edge(eptr)) {
00037         fprintf(stddbg," --> %p", edge_to_node(eptr));
00038         }
00039     } */
00040     fprintf(stddbg,"\n");
00041     temp++; i++;
00042   }
00043   fprintf(stddbg, EOS);
00044 }
00045 
00046 void remove_unfounded_set(CPtr leader_ptr) {
00047 
00048   my_print_completion_stack((CPtr) leader_ptr);
00049 
00050 }
00051 
00052 #endif

Generated on Wed Jul 26 13:30:42 2006 for XSB by  doxygen 1.4.5