c_src: update
[nit.git] / c_src / global___reachable_method_analysis._sep.c
@@ -1,29 +1,29 @@
-/* This C file is generated by NIT to compile module analysis___reachable_method_analysis. */
-#include "analysis___reachable_method_analysis._sep.h"
-val_t analysis___reachable_method_analysis___Program___rma(val_t p0){
+/* This C file is generated by NIT to compile module global___reachable_method_analysis. */
+#include "global___reachable_method_analysis._sep.h"
+val_t global___reachable_method_analysis___Program___rma(val_t p0){
   struct {struct stack_frame_t me;} fra;
   val_t tmp;
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 24;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___Program___rma;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___Program___rma;
   fra.me.has_broke = 0;
   fra.me.REG_size = 1;
   fra.me.nitni_local_ref_head = NULL;
   fra.me.REG[0] = NIT_NULL;
   fra.me.REG[0] = p0;
-  /* ./analysis//reachable_method_analysis.nit:24 */
-  fra.me.REG[0] = ATTR_analysis___reachable_method_analysis___Program____rma(fra.me.REG[0]);
+  /* global/reachable_method_analysis.nit:24 */
+  fra.me.REG[0] = ATTR_global___reachable_method_analysis___Program____rma(fra.me.REG[0]);
   stack_frame_head = fra.me.prev;
   return fra.me.REG[0];
 }
-void analysis___reachable_method_analysis___Program___rma__eq(val_t p0, val_t p1){
+void global___reachable_method_analysis___Program___rma__eq(val_t p0, val_t p1){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t tmp;
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 24;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___Program___rma__eq;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___Program___rma__eq;
   fra.me.has_broke = 0;
   fra.me.REG_size = 2;
   fra.me.nitni_local_ref_head = NULL;
@@ -31,12 +31,12 @@ void analysis___reachable_method_analysis___Program___rma__eq(val_t p0, val_t p1
   fra.me.REG[1] = NIT_NULL;
   fra.me.REG[0] = p0;
   fra.me.REG[1] = p1;
-  /* ./analysis//reachable_method_analysis.nit:24 */
-  ATTR_analysis___reachable_method_analysis___Program____rma(fra.me.REG[0]) = fra.me.REG[1];
+  /* global/reachable_method_analysis.nit:24 */
+  ATTR_global___reachable_method_analysis___Program____rma(fra.me.REG[0]) = fra.me.REG[1];
   stack_frame_head = fra.me.prev;
   return;
 }
-void analysis___reachable_method_analysis___Program___dump_reachable_methods(val_t p0, val_t p1, val_t p2){
+void global___reachable_method_analysis___Program___dump_reachable_methods(val_t p0, val_t p1, val_t p2){
   struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
   val_t REGB0;
   val_t tmp;
@@ -45,9 +45,9 @@ void analysis___reachable_method_analysis___Program___dump_reachable_methods(val
   static val_t once_value_3; /* Once value */
   static val_t once_value_4; /* Once value */
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 27;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___Program___dump_reachable_methods;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___Program___dump_reachable_methods;
   fra.me.has_broke = 0;
   fra.me.REG_size = 5;
   fra.me.nitni_local_ref_head = NULL;
@@ -59,7 +59,7 @@ void analysis___reachable_method_analysis___Program___dump_reachable_methods(val
   fra.me.REG[0] = p0;
   fra.me.REG[1] = p1;
   fra.me.REG[2] = p2;
-  /* ./analysis//reachable_method_analysis.nit:29 */
+  /* global/reachable_method_analysis.nit:29 */
   REGB0 = TAG_Int(7);
   fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
   if (!once_value_1) {
@@ -106,23 +106,23 @@ void analysis___reachable_method_analysis___Program___dump_reachable_methods(val
   CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
   fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
   fra.me.REG[3] = NEW_OFStream_standard___file___OFStream___open(fra.me.REG[3]);
-  CALL_program___Program___with_each_methods(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_analysis___reachable_method_analysis___Program___dump_reachable_methods_5));
-  /* ./analysis//reachable_method_analysis.nit:35 */
+  CALL_program___Program___with_each_methods(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_global___reachable_method_analysis___Program___dump_reachable_methods_5));
+  /* global/reachable_method_analysis.nit:35 */
   CALL_standard___stream___IOS___close(fra.me.REG[3])(fra.me.REG[3]);
   stack_frame_head = fra.me.prev;
   return;
 }
-  void OC_analysis___reachable_method_analysis___Program___dump_reachable_methods_5(struct stack_frame_t *closctx, val_t p0){
+  void OC_global___reachable_method_analysis___Program___dump_reachable_methods_5(struct stack_frame_t *closctx, val_t p0){
     struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
     val_t REGB0;
     val_t tmp;
       static val_t once_value_6; /* Once value */
       static val_t once_value_7; /* Once value */
-    /* ./analysis//reachable_method_analysis.nit:30 */
+    /* global/reachable_method_analysis.nit:30 */
     fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-    fra.me.file = LOCATE_analysis___reachable_method_analysis;
+    fra.me.file = LOCATE_global___reachable_method_analysis;
     fra.me.line = 30;
-    fra.me.meth = LOCATE_analysis___reachable_method_analysis___Program___dump_reachable_methods;
+    fra.me.meth = LOCATE_global___reachable_method_analysis___Program___dump_reachable_methods;
     fra.me.has_broke = 0;
     fra.me.REG_size = 3;
     fra.me.nitni_local_ref_head = NULL;
@@ -130,15 +130,15 @@ void analysis___reachable_method_analysis___Program___dump_reachable_methods(val
     fra.me.REG[1] = NIT_NULL;
     fra.me.REG[2] = NIT_NULL;
     fra.me.REG[0] = p0;
-    /* ./analysis//reachable_method_analysis.nit:31 */
-    fra.me.REG[1] = CALL_analysis___reachable_method_analysis___Program___rma(closctx->REG[0])(closctx->REG[0]);
+    /* global/reachable_method_analysis.nit:31 */
+    fra.me.REG[1] = CALL_global___reachable_method_analysis___Program___rma(closctx->REG[0])(closctx->REG[0]);
     REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
     if (UNTAG_Bool(REGB0)) {
-      nit_abort("Reciever is null", NULL, LOCATE_analysis___reachable_method_analysis, 31);
+      nit_abort("Reciever is null", NULL, LOCATE_global___reachable_method_analysis, 31);
     }
-    REGB0 = CALL_analysis___reachable_method_analysis___ReachableMethodAnalysis___is_method_reachable(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+    REGB0 = CALL_global___reachable_method_analysis___ReachableMethodAnalysis___is_method_reachable(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
     if (UNTAG_Bool(REGB0)) {
-      /* ./analysis//reachable_method_analysis.nit:32 */
+      /* global/reachable_method_analysis.nit:32 */
       REGB0 = TAG_Int(3);
       fra.me.REG[1] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
       if (!once_value_6) {
@@ -167,7 +167,7 @@ void analysis___reachable_method_analysis___Program___dump_reachable_methods(val
     stack_frame_head = fra.me.prev;
     return;
   }
-void analysis___reachable_method_analysis___Program___dump_unreachable_methods(val_t p0, val_t p1, val_t p2){
+void global___reachable_method_analysis___Program___dump_unreachable_methods(val_t p0, val_t p1, val_t p2){
   struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
   val_t REGB0;
   val_t tmp;
@@ -176,9 +176,9 @@ void analysis___reachable_method_analysis___Program___dump_unreachable_methods(v
   static val_t once_value_3; /* Once value */
   static val_t once_value_4; /* Once value */
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 38;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___Program___dump_unreachable_methods;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___Program___dump_unreachable_methods;
   fra.me.has_broke = 0;
   fra.me.REG_size = 5;
   fra.me.nitni_local_ref_head = NULL;
@@ -190,7 +190,7 @@ void analysis___reachable_method_analysis___Program___dump_unreachable_methods(v
   fra.me.REG[0] = p0;
   fra.me.REG[1] = p1;
   fra.me.REG[2] = p2;
-  /* ./analysis//reachable_method_analysis.nit:40 */
+  /* global/reachable_method_analysis.nit:40 */
   REGB0 = TAG_Int(7);
   fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
   if (!once_value_1) {
@@ -237,23 +237,23 @@ void analysis___reachable_method_analysis___Program___dump_unreachable_methods(v
   CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
   fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
   fra.me.REG[3] = NEW_OFStream_standard___file___OFStream___open(fra.me.REG[3]);
-  CALL_program___Program___with_each_methods(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_analysis___reachable_method_analysis___Program___dump_unreachable_methods_5));
-  /* ./analysis//reachable_method_analysis.nit:46 */
+  CALL_program___Program___with_each_methods(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_global___reachable_method_analysis___Program___dump_unreachable_methods_5));
+  /* global/reachable_method_analysis.nit:46 */
   CALL_standard___stream___IOS___close(fra.me.REG[3])(fra.me.REG[3]);
   stack_frame_head = fra.me.prev;
   return;
 }
-  void OC_analysis___reachable_method_analysis___Program___dump_unreachable_methods_5(struct stack_frame_t *closctx, val_t p0){
+  void OC_global___reachable_method_analysis___Program___dump_unreachable_methods_5(struct stack_frame_t *closctx, val_t p0){
     struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
     val_t REGB0;
     val_t tmp;
       static val_t once_value_6; /* Once value */
       static val_t once_value_7; /* Once value */
-    /* ./analysis//reachable_method_analysis.nit:41 */
+    /* global/reachable_method_analysis.nit:41 */
     fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-    fra.me.file = LOCATE_analysis___reachable_method_analysis;
+    fra.me.file = LOCATE_global___reachable_method_analysis;
     fra.me.line = 41;
-    fra.me.meth = LOCATE_analysis___reachable_method_analysis___Program___dump_unreachable_methods;
+    fra.me.meth = LOCATE_global___reachable_method_analysis___Program___dump_unreachable_methods;
     fra.me.has_broke = 0;
     fra.me.REG_size = 3;
     fra.me.nitni_local_ref_head = NULL;
@@ -261,16 +261,16 @@ void analysis___reachable_method_analysis___Program___dump_unreachable_methods(v
     fra.me.REG[1] = NIT_NULL;
     fra.me.REG[2] = NIT_NULL;
     fra.me.REG[0] = p0;
-    /* ./analysis//reachable_method_analysis.nit:42 */
-    fra.me.REG[1] = CALL_analysis___reachable_method_analysis___Program___rma(closctx->REG[0])(closctx->REG[0]);
+    /* global/reachable_method_analysis.nit:42 */
+    fra.me.REG[1] = CALL_global___reachable_method_analysis___Program___rma(closctx->REG[0])(closctx->REG[0]);
     REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
     if (UNTAG_Bool(REGB0)) {
-      nit_abort("Reciever is null", NULL, LOCATE_analysis___reachable_method_analysis, 42);
+      nit_abort("Reciever is null", NULL, LOCATE_global___reachable_method_analysis, 42);
     }
-    REGB0 = CALL_analysis___reachable_method_analysis___ReachableMethodAnalysis___is_method_reachable(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+    REGB0 = CALL_global___reachable_method_analysis___ReachableMethodAnalysis___is_method_reachable(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
     REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
     if (UNTAG_Bool(REGB0)) {
-      /* ./analysis//reachable_method_analysis.nit:43 */
+      /* global/reachable_method_analysis.nit:43 */
       REGB0 = TAG_Int(3);
       fra.me.REG[1] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
       if (!once_value_6) {
@@ -299,60 +299,44 @@ void analysis___reachable_method_analysis___Program___dump_unreachable_methods(v
     stack_frame_head = fra.me.prev;
     return;
   }
-val_t analysis___reachable_method_analysis___ReachableMethodAnalysis___is_iroutine_reachable(val_t p0, val_t p1){
+val_t global___reachable_method_analysis___ReachableMethodAnalysis___is_iroutine_reachable(val_t p0, val_t p1){
   struct {struct stack_frame_t me;} fra;
   val_t tmp;
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 54;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___ReachableMethodAnalysis___is_iroutine_reachable;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___ReachableMethodAnalysis___is_iroutine_reachable;
   fra.me.has_broke = 0;
   fra.me.REG_size = 0;
   fra.me.nitni_local_ref_head = NULL;
-  /* ./analysis//reachable_method_analysis.nit:54 */
-  nit_abort("Deferred method called", NULL, LOCATE_analysis___reachable_method_analysis, 54);
+  /* global/reachable_method_analysis.nit:54 */
+  nit_abort("Deferred method called", NULL, LOCATE_global___reachable_method_analysis, 54);
   stack_frame_head = fra.me.prev;
   return NIT_NULL;
 }
-val_t analysis___reachable_method_analysis___ReachableMethodAnalysis___is_method_reachable(val_t p0, val_t p1){
+val_t global___reachable_method_analysis___ReachableMethodAnalysis___is_method_reachable(val_t p0, val_t p1){
   struct {struct stack_frame_t me;} fra;
   val_t tmp;
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 55;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___ReachableMethodAnalysis___is_method_reachable;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___ReachableMethodAnalysis___is_method_reachable;
   fra.me.has_broke = 0;
   fra.me.REG_size = 0;
   fra.me.nitni_local_ref_head = NULL;
-  /* ./analysis//reachable_method_analysis.nit:55 */
-  nit_abort("Deferred method called", NULL, LOCATE_analysis___reachable_method_analysis, 55);
+  /* global/reachable_method_analysis.nit:55 */
+  nit_abort("Deferred method called", NULL, LOCATE_global___reachable_method_analysis, 55);
   stack_frame_head = fra.me.prev;
   return NIT_NULL;
 }
-void analysis___reachable_method_analysis___ReachableMethodAnalysis___init(val_t p0, int* init_table){
-  int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_analysis___reachable_method_analysis___ReachableMethodAnalysis].i;
-  struct {struct stack_frame_t me;} fra;
-  val_t tmp;
-  if (init_table[itpos0]) return;
-  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
-  fra.me.line = 0;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___ReachableMethodAnalysis___init;
-  fra.me.has_broke = 0;
-  fra.me.REG_size = 0;
-  fra.me.nitni_local_ref_head = NULL;
-  stack_frame_head = fra.me.prev;
-  init_table[itpos0] = 1;
-  return;
-}
-val_t analysis___reachable_method_analysis___DefaultReachableMethodAnalysis___is_iroutine_reachable(val_t p0, val_t p1){
+val_t global___reachable_method_analysis___DefaultReachableMethodAnalysis___is_iroutine_reachable(val_t p0, val_t p1){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t REGB0;
   val_t tmp;
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 61;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___DefaultReachableMethodAnalysis___is_iroutine_reachable;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___DefaultReachableMethodAnalysis___is_iroutine_reachable;
   fra.me.has_broke = 0;
   fra.me.REG_size = 2;
   fra.me.nitni_local_ref_head = NULL;
@@ -360,21 +344,21 @@ val_t analysis___reachable_method_analysis___DefaultReachableMethodAnalysis___is
   fra.me.REG[1] = NIT_NULL;
   fra.me.REG[0] = p0;
   fra.me.REG[1] = p1;
-  /* ./analysis//reachable_method_analysis.nit:61 */
+  /* global/reachable_method_analysis.nit:61 */
   REGB0 = TAG_Bool(true);
   goto label1;
   label1: while(0);
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
-val_t analysis___reachable_method_analysis___DefaultReachableMethodAnalysis___is_method_reachable(val_t p0, val_t p1){
+val_t global___reachable_method_analysis___DefaultReachableMethodAnalysis___is_method_reachable(val_t p0, val_t p1){
   struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
   val_t REGB0;
   val_t tmp;
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 62;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___DefaultReachableMethodAnalysis___is_method_reachable;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___DefaultReachableMethodAnalysis___is_method_reachable;
   fra.me.has_broke = 0;
   fra.me.REG_size = 2;
   fra.me.nitni_local_ref_head = NULL;
@@ -382,30 +366,28 @@ val_t analysis___reachable_method_analysis___DefaultReachableMethodAnalysis___is
   fra.me.REG[1] = NIT_NULL;
   fra.me.REG[0] = p0;
   fra.me.REG[1] = p1;
-  /* ./analysis//reachable_method_analysis.nit:62 */
+  /* global/reachable_method_analysis.nit:62 */
   REGB0 = TAG_Bool(true);
   goto label1;
   label1: while(0);
   stack_frame_head = fra.me.prev;
   return REGB0;
 }
-void analysis___reachable_method_analysis___DefaultReachableMethodAnalysis___init(val_t p0, int* init_table){
-  int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_analysis___reachable_method_analysis___DefaultReachableMethodAnalysis].i;
+void global___reachable_method_analysis___DefaultReachableMethodAnalysis___init(val_t p0, int* init_table){
+  int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_global___reachable_method_analysis___DefaultReachableMethodAnalysis].i;
   struct {struct stack_frame_t me;} fra;
   val_t tmp;
-  if (init_table[itpos1]) return;
+  if (init_table[itpos0]) return;
   fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
-  fra.me.file = LOCATE_analysis___reachable_method_analysis;
+  fra.me.file = LOCATE_global___reachable_method_analysis;
   fra.me.line = 64;
-  fra.me.meth = LOCATE_analysis___reachable_method_analysis___DefaultReachableMethodAnalysis___init;
+  fra.me.meth = LOCATE_global___reachable_method_analysis___DefaultReachableMethodAnalysis___init;
   fra.me.has_broke = 0;
   fra.me.REG_size = 1;
   fra.me.nitni_local_ref_head = NULL;
   fra.me.REG[0] = NIT_NULL;
   fra.me.REG[0] = p0;
-  /* ./analysis//reachable_method_analysis.nit:64 */
-  CALL_analysis___reachable_method_analysis___ReachableMethodAnalysis___init(fra.me.REG[0])(fra.me.REG[0], init_table);
   stack_frame_head = fra.me.prev;
-  init_table[itpos1] = 1;
+  init_table[itpos0] = 1;
   return;
 }