grammar: adds extern class kind for extern classes such as Pointer
[nit.git] / c_src / abstracttool._sep.c
index 03242a3..b3ea2f5 100644 (file)
 /* This C file is generated by NIT to compile module abstracttool. */
 #include "abstracttool._sep.h"
-void abstracttool___AbstractCompiler___init(val_t  self, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 28, LOCATE_abstracttool___AbstractCompiler___init};
-  val_t variable[3];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_abstracttool;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_AbstractCompiler].i]) return;
-  /* Register variable[1]: Method return value and escape marker */
-  CALL_mmloader___ToolContext___init(variable[0])(variable[0], init_table /*YYY*/) /*ToolContext::init*/;
-  /* Register variable[2]: Result */
-  variable[2] = NEW_SrcModuleLoader_syntax___SrcModuleLoader___init() /*new SrcModuleLoader*/;
-  CALL_mmloader___ToolContext___register_loader(variable[0])(variable[0], variable[2]) /*ToolContext::register_loader*/;
-  return_label0: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_AbstractCompiler].i] = 1;
-  tracehead = trace.prev;
+void abstracttool___AbstractCompiler___init(val_t p0, val_t p1, int* init_table){
+  int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_AbstractCompiler].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t tmp;
+  if (init_table[itpos0]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_abstracttool;
+  fra.me.line = 29;
+  fra.me.meth = LOCATE_abstracttool___AbstractCompiler___init;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 3;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[2] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  /* ./abstracttool.nit:29 */
+  fra.me.REG[2] = fra.me.REG[0];
+  /* ./abstracttool.nit:31 */
+  ATTR_abstracttool___AbstractCompiler____tool_name(fra.me.REG[2]) = fra.me.REG[1];
+  /* ./abstracttool.nit:32 */
+  CALL_mmloader___ToolContext___init(fra.me.REG[0])(fra.me.REG[0], init_table);
+  /* ./abstracttool.nit:33 */
+  fra.me.REG[0] = NEW_SrcModuleLoader_syntax___SrcModuleLoader___init();
+  CALL_mmloader___ToolContext___register_loader(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  init_table[itpos0] = 1;
   return;
 }
-void abstracttool___AbstractCompiler___exec_cmd_line(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 34, LOCATE_abstracttool___AbstractCompiler___exec_cmd_line};
-  val_t variable[12];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_abstracttool;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  CALL_mmloader___ToolContext___process_options(variable[0])(variable[0]) /*ToolContext::process_options*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_mmloader___ToolContext___opt_help(variable[0])(variable[0]) /*ToolContext::opt_help*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Result */
-    variable[2] = CALL_mmloader___ToolContext___option_context(variable[0])(variable[0]) /*ToolContext::option_context*/;
-    CALL_opts___OptionContext___usage(variable[2])(variable[2]) /*OptionContext::usage*/;
-    exit(UNTAG_Int( TAG_Int(0)));
+val_t abstracttool___AbstractCompiler___tool_name(val_t p0){
+  struct {struct stack_frame_t me;} fra;
+  val_t REGB0;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_abstracttool;
+  fra.me.line = 36;
+  fra.me.meth = LOCATE_abstracttool___AbstractCompiler___tool_name;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./abstracttool.nit:36 */
+  REGB0 = TAG_Bool(ATTR_abstracttool___AbstractCompiler____tool_name(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_tool_name", LOCATE_abstracttool, 36);
   }
-  /* Register variable[2]: Result */
-  variable[2] = CALL_mmloader___ToolContext___option_context(variable[0])(variable[0]) /*ToolContext::option_context*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___OptionContext___rest(variable[2])(variable[2]) /*OptionContext::rest*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_abstract_collection___Collection___length(variable[2])(variable[2]) /*AbstractArrayRead::length*/;
-  /* Register variable[2]: Result */
-  variable[2] = TAG_Bool((variable[2])==( TAG_Int(0)));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Result */
-    variable[2] = CALL_mmloader___ToolContext___option_context(variable[0])(variable[0]) /*ToolContext::option_context*/;
-    CALL_opts___OptionContext___usage(variable[2])(variable[2]) /*OptionContext::usage*/;
-    exit(UNTAG_Int( TAG_Int(1)));
-  }
-  /* Register variable[2]: Local variable */
-  /* Register variable[3]: Result */
-  variable[3] = CALL_mmloader___ToolContext___option_context(variable[0])(variable[0]) /*ToolContext::option_context*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_opts___OptionContext___rest(variable[3])(variable[3]) /*OptionContext::rest*/;
-  variable[2] = variable[3];
-  /* Register variable[3]: Local variable */
-  /* Register variable[4]: Result */
-  variable[4] = NEW_Array_array___Array___init() /*new Array[MMModule]*/;
-  variable[3] = variable[4];
-  /* Register variable[4]: Result */
-  variable[4] = CALL_abstract_collection___Collection___length( variable[2] /*rest*/)( variable[2] /*rest*/) /*AbstractArrayRead::length*/;
-  /* Register variable[4]: Result */
-  variable[4] = NEW_Range_range___Range___without_last( TAG_Int(0), variable[4]) /*new Range[Int]*/;
-  /* Register variable[4]: For iterator */
-  variable[4] = CALL_abstract_collection___Collection___iterator(variable[4])(variable[4]) /*Range::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[5]: For 'is_ok' result */
-    variable[5] = CALL_abstract_collection___Iterator___is_ok(variable[4])(variable[4]) /*Iterator::is_ok*/;
-    if (!UNTAG_Bool(variable[5])) break; /*for*/
-    variable[5] = CALL_abstract_collection___Iterator___item(variable[4])(variable[4]) /*Iterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[6]: Local variable */
-    variable[6] = variable[5];
-    /* Register variable[7]: Local variable */
-    /* Register variable[8]: Local variable */
-    variable[8] =  variable[2] /*rest*/;
-    /* Register variable[9]: Local variable */
-    variable[9] =  variable[6] /*i*/;
-    /* Register variable[10]: Method return value and escape marker */
-    /* Register variable[11]: Result */
-    variable[11] = TAG_Bool(UNTAG_Int( variable[9] /*index*/)>=UNTAG_Int( TAG_Int(0)));
-    /* Ensure var variable[11]: Left 'and' operand*/
-    if (UNTAG_Bool(variable[11])) { /* and */
-      /* Register variable[11]: Result */
-      variable[11] = ATTR_array___AbstractArrayRead____length(variable[8]) /*AbstractArrayRead::_length*/;
-      /* Register variable[11]: Result */
-      variable[11] = TAG_Bool(UNTAG_Int( variable[9] /*index*/)<UNTAG_Int(variable[11]));
-    }
-    /* Register variable[11]: Result */
-    if (!UNTAG_Bool(variable[11])) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_abstracttool, 234); nit_exit(1);}
-    /* Register variable[11]: Result */
-    variable[11] = ATTR_array___Array____items(variable[8]) /*Array::_items*/;
-    /* Register variable[11]: Result */
-    variable[11] = UNBOX_NativeArray(variable[11])[UNTAG_Int( variable[9] /*index*/)];
-    variable[10] = variable[11];
-    goto return_label3;
-    return_label3: while(false);
-    /* Register variable[8]: Result */
-    variable[8] = variable[10];
-    /* Register variable[8]: Result */
-    variable[8] = CALL_mmloader___ToolContext___get_module_from_filename(variable[0])(variable[0], variable[8]) /*ToolContext::get_module_from_filename*/;
-    variable[7] = variable[8];
-    CALL_abstract_collection___SimpleCollection___add( variable[3] /*to_do*/)( variable[3] /*to_do*/,  variable[7] /*mod*/) /*AbstractArray::add*/;
-    continue_2: while(0);
-    CALL_abstract_collection___Iterator___next(variable[4])(variable[4]) /*Iterator::next*/;
+  fra.me.REG[0] = ATTR_abstracttool___AbstractCompiler____tool_name(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
+}
+void abstracttool___AbstractCompiler___exec_cmd_line(val_t p0){
+  struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  val_t REGB2;
+  val_t REGB3;
+  val_t REGB4;
+  val_t tmp;
+    static val_t once_value_1; /* Once value */
+    static val_t once_value_2; /* Once value */
+    static val_t once_value_3; /* Once value */
+    static val_t once_value_4; /* Once value */
+    static val_t once_value_5; /* Once value */
+    static val_t once_value_6; /* Once value */
+    static val_t once_value_7; /* Once value */
+  static val_t once_value_8; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_abstracttool;
+  fra.me.line = 40;
+  fra.me.meth = LOCATE_abstracttool___AbstractCompiler___exec_cmd_line;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 4;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[2] = NIT_NULL;
+  fra.me.REG[3] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./abstracttool.nit:42 */
+  CALL_mmloader___ToolContext___process_options(fra.me.REG[0])(fra.me.REG[0]);
+  /* ./abstracttool.nit:44 */
+  fra.me.REG[1] = CALL_mmloader___ToolContext___opt_version(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_opts___Option___value(fra.me.REG[1])(fra.me.REG[1]);
+  if (UNTAG_Bool(fra.me.REG[1])) {
+    /* ./abstracttool.nit:45 */
+    REGB0 = TAG_Int(5);
+    fra.me.REG[1] = NEW_Array_array___Array___with_capacity(REGB0);
+    if (!once_value_1) {
+      fra.me.REG[2] = BOX_NativeString("");
+      REGB0 = TAG_Int(0);
+      fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+      once_value_1 = fra.me.REG[2];
+      register_static_object(&once_value_1);
+    } else fra.me.REG[2] = once_value_1;
+    fra.me.REG[2] = fra.me.REG[2];
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    fra.me.REG[2] = CALL_abstracttool___AbstractCompiler___tool_name(fra.me.REG[0])(fra.me.REG[0]);
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    if (!once_value_2) {
+      fra.me.REG[2] = BOX_NativeString(" version ");
+      REGB0 = TAG_Int(9);
+      fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+      once_value_2 = fra.me.REG[2];
+      register_static_object(&once_value_2);
+    } else fra.me.REG[2] = once_value_2;
+    fra.me.REG[2] = fra.me.REG[2];
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    fra.me.REG[2] = CALL_nit_version___Object___nit_version(fra.me.REG[0])(fra.me.REG[0]);
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    if (!once_value_3) {
+      fra.me.REG[2] = BOX_NativeString("");
+      REGB0 = TAG_Int(0);
+      fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+      once_value_3 = fra.me.REG[2];
+      register_static_object(&once_value_3);
+    } else fra.me.REG[2] = once_value_3;
+    fra.me.REG[2] = fra.me.REG[2];
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+    CALL_file___Object___print(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+    /* ./abstracttool.nit:46 */
+    REGB0 = TAG_Int(0);
+    CALL_kernel___Object___exit(fra.me.REG[0])(fra.me.REG[0], REGB0);
   }
-  break_2: while(0);
-  /* Register variable[4]: Result */
-  variable[4] = CALL_mmloader___ToolContext___opt_log(variable[0])(variable[0]) /*ToolContext::opt_log*/;
-  /* Register variable[4]: Result */
-  variable[4] = CALL_opts___Option___value(variable[4])(variable[4]) /*Option::value*/;
-  if (UNTAG_Bool(variable[4])) { /*if*/
-    CALL_abstracttool___AbstractCompiler___dump_context_info(variable[0])(variable[0]) /*AbstractCompiler::dump_context_info*/;
+  /* ./abstracttool.nit:49 */
+  fra.me.REG[1] = CALL_mmloader___ToolContext___opt_help(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_opts___Option___value(fra.me.REG[1])(fra.me.REG[1]);
+  if (UNTAG_Bool(fra.me.REG[1])) {
+    /* ./abstracttool.nit:50 */
+    REGB0 = TAG_Int(3);
+    fra.me.REG[1] = NEW_Array_array___Array___with_capacity(REGB0);
+    if (!once_value_4) {
+      fra.me.REG[2] = BOX_NativeString("usage: ");
+      REGB0 = TAG_Int(7);
+      fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+      once_value_4 = fra.me.REG[2];
+      register_static_object(&once_value_4);
+    } else fra.me.REG[2] = once_value_4;
+    fra.me.REG[2] = fra.me.REG[2];
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    fra.me.REG[2] = CALL_abstracttool___AbstractCompiler___tool_name(fra.me.REG[0])(fra.me.REG[0]);
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    if (!once_value_5) {
+      fra.me.REG[2] = BOX_NativeString(" [options] file...");
+      REGB0 = TAG_Int(18);
+      fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+      once_value_5 = fra.me.REG[2];
+      register_static_object(&once_value_5);
+    } else fra.me.REG[2] = once_value_5;
+    fra.me.REG[2] = fra.me.REG[2];
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+    CALL_file___Object___print(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+    /* ./abstracttool.nit:51 */
+    fra.me.REG[1] = CALL_mmloader___ToolContext___option_context(fra.me.REG[0])(fra.me.REG[0]);
+    CALL_opts___OptionContext___usage(fra.me.REG[1])(fra.me.REG[1]);
+    /* ./abstracttool.nit:52 */
+    REGB0 = TAG_Int(0);
+    CALL_kernel___Object___exit(fra.me.REG[0])(fra.me.REG[0], REGB0);
   }
-  /* Register variable[4]: Result */
-  variable[4] = CALL_abstract_collection___Collection___is_empty( variable[3] /*to_do*/)( variable[3] /*to_do*/) /*AbstractArrayRead::is_empty*/;
-  variable[4] =  TAG_Bool(!UNTAG_Bool(variable[4])) /* Ensure var: Left 'and' operand*/;
-  if (UNTAG_Bool(variable[4])) { /* and */
-    /* Register variable[4]: Result */
-    variable[4] = CALL_mmloader___ToolContext___opt_only_metamodel(variable[0])(variable[0]) /*ToolContext::opt_only_metamodel*/;
-    /* Register variable[4]: Result */
-    variable[4] = CALL_opts___Option___value(variable[4])(variable[4]) /*Option::value*/;
-    variable[4] =  TAG_Bool(!UNTAG_Bool(variable[4]));
+  /* ./abstracttool.nit:55 */
+  fra.me.REG[1] = CALL_mmloader___ToolContext___option_context(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_opts___OptionContext___rest(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./../lib/standard//collection//array.nit:23 */
+  REGB0 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_length", LOCATE_array, 23);
   }
-  /* Register variable[4]: Result */
-  /* Ensure var variable[4]: Left 'and' operand*/
-  if (UNTAG_Bool(variable[4])) { /* and */
-    /* Register variable[4]: Result */
-    variable[4] = CALL_mmloader___ToolContext___opt_only_parse(variable[0])(variable[0]) /*ToolContext::opt_only_parse*/;
-    /* Register variable[4]: Result */
-    variable[4] = CALL_opts___Option___value(variable[4])(variable[4]) /*Option::value*/;
-    variable[4] =  TAG_Bool(!UNTAG_Bool(variable[4]));
+  REGB0 = ATTR_array___AbstractArrayRead____length(fra.me.REG[1]);
+  /* ./abstracttool.nit:55 */
+  REGB1 = TAG_Int(0);
+  REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
+  if (UNTAG_Bool(REGB2)) {
+  } else {
+    /* ./../lib/standard//kernel.nit:207 */
+    REGB1 = TAG_Bool((REGB0)==(REGB1));
+    /* ./abstracttool.nit:55 */
+    REGB2 = REGB1;
   }
-  /* Register variable[4]: Result */
-  if (UNTAG_Bool(variable[4])) { /*if*/
-    CALL_abstracttool___AbstractCompiler___perform_work(variable[0])(variable[0],  variable[3] /*to_do*/) /*AbstractCompiler::perform_work*/;
+  if (UNTAG_Bool(REGB2)) {
+    /* ./abstracttool.nit:56 */
+    REGB2 = TAG_Int(3);
+    fra.me.REG[1] = NEW_Array_array___Array___with_capacity(REGB2);
+    if (!once_value_6) {
+      fra.me.REG[2] = BOX_NativeString("usage: ");
+      REGB2 = TAG_Int(7);
+      fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB2);
+      once_value_6 = fra.me.REG[2];
+      register_static_object(&once_value_6);
+    } else fra.me.REG[2] = once_value_6;
+    fra.me.REG[2] = fra.me.REG[2];
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    fra.me.REG[2] = CALL_abstracttool___AbstractCompiler___tool_name(fra.me.REG[0])(fra.me.REG[0]);
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    if (!once_value_7) {
+      fra.me.REG[2] = BOX_NativeString(" [options] file...");
+      REGB2 = TAG_Int(18);
+      fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB2);
+      once_value_7 = fra.me.REG[2];
+      register_static_object(&once_value_7);
+    } else fra.me.REG[2] = once_value_7;
+    fra.me.REG[2] = fra.me.REG[2];
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+    CALL_file___Object___print(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+    /* ./abstracttool.nit:57 */
+    fra.me.REG[1] = CALL_mmloader___ToolContext___option_context(fra.me.REG[0])(fra.me.REG[0]);
+    CALL_opts___OptionContext___usage(fra.me.REG[1])(fra.me.REG[1]);
+    /* ./abstracttool.nit:58 */
+    REGB2 = TAG_Int(1);
+    CALL_kernel___Object___exit(fra.me.REG[0])(fra.me.REG[0], REGB2);
   }
-  return_label1: while(false);
-  tracehead = trace.prev;
-  return;
-}
-void abstracttool___AbstractCompiler___perform_work(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 63, LOCATE_abstracttool___AbstractCompiler___perform_work};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_abstracttool;
-  fprintf(stderr, "Deferred method called");
-  fprintf(stderr, " (%s:%d)\n", LOCATE_abstracttool, 63);
-  nit_exit(1);
-  tracehead = trace.prev;
-  return;
-}
-void abstracttool___AbstractCompiler___dump_context_info(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 65, LOCATE_abstracttool___AbstractCompiler___dump_context_info};
-  static val_t once_value_6 = NIT_NULL; /* Once value for string variable[5]*/
-  static val_t once_value_7 = NIT_NULL; /* Once value for string variable[6]*/
-  static val_t once_value_8 = NIT_NULL; /* Once value for string variable[6]*/
-  static val_t once_value_9 = NIT_NULL; /* Once value for string variable[6]*/
-  static val_t once_value_10 = NIT_NULL; /* Once value for string variable[6]*/
-  val_t variable[7];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_abstracttool;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = CALL_abstractmetamodel___MMContext___module_hierarchy(variable[0])(variable[0]) /*MMContext::module_hierarchy*/;
-  /* Register variable[2]: For iterator */
-  variable[2] = CALL_abstract_collection___Collection___iterator(variable[2])(variable[2]) /*PartialOrder::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[3]: For 'is_ok' result */
-    variable[3] = CALL_abstract_collection___Iterator___is_ok(variable[2])(variable[2]) /*Iterator::is_ok*/;
-    if (!UNTAG_Bool(variable[3])) break; /*for*/
-    variable[3] = CALL_abstract_collection___Iterator___item(variable[2])(variable[2]) /*Iterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[4]: Local variable */
-    variable[4] = variable[3];
-    CALL_abstracttool___MMModule___dump_module_info( variable[4] /*mod*/)( variable[4] /*mod*/) /*MMModule::dump_module_info*/;
-    continue_5: while(0);
-    CALL_abstract_collection___Iterator___next(variable[2])(variable[2]) /*Iterator::next*/;
+  /* ./abstracttool.nit:61 */
+  fra.me.REG[1] = CALL_mmloader___ToolContext___option_context(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_opts___OptionContext___rest(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./abstracttool.nit:62 */
+  fra.me.REG[2] = NEW_Array_array___Array___init();
+  /* ./abstracttool.nit:63 */
+  if (!once_value_8) {
+    fra.me.REG[3] = BOX_NativeString("Syntax analysis");
+    REGB2 = TAG_Int(15);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB2);
+    once_value_8 = fra.me.REG[3];
+    register_static_object(&once_value_8);
+  } else fra.me.REG[3] = once_value_8;
+  fra.me.REG[3] = fra.me.REG[3];
+  REGB2 = TAG_Int(1);
+  CALL_mmloader___ToolContext___info(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3], REGB2);
+  /* ./abstracttool.nit:64 */
+  REGB2 = TAG_Int(0);
+  /* ./../lib/standard//collection//array.nit:23 */
+  REGB1 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
+  if (UNTAG_Bool(REGB1)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_length", LOCATE_array, 23);
   }
-  break_5: while(0);
-  /* Register variable[2]: Local variable */
-  /* Register variable[3]: Result */
-  variable[3] = NEW_Array_array___Array___init() /*new Array[MMModule]*/;
-  variable[2] = variable[3];
-  /* Register variable[3]: Result */
-  variable[3] = CALL_abstractmetamodel___MMContext___module_hierarchy(variable[0])(variable[0]) /*MMContext::module_hierarchy*/;
-  CALL_abstract_collection___SimpleCollection___add_all( variable[2] /*tab*/)( variable[2] /*tab*/, variable[3]) /*SimpleCollection::add_all*/;
-  /* Register variable[3]: Local variable */
-  /* Register variable[4]: Result */
-  variable[4] = CALL_abstractmetamodel___MMContext___module_hierarchy(variable[0])(variable[0]) /*MMContext::module_hierarchy*/;
-  /* Register variable[4]: Result */
-  variable[4] = CALL_partial_order___PartialOrder___select_smallests(variable[4])(variable[4],  variable[2] /*tab*/) /*PartialOrder::select_smallests*/;
-  /* Register variable[5]: Once String constant */
-  if (once_value_6 != NIT_NULL) variable[5] = once_value_6;
-  else {
-    variable[5] = NEW_String_string___String___with_native(BOX_NativeString("-"), TAG_Int(1)) /*new String*/;
-    once_value_6 = variable[5];
+  REGB1 = ATTR_array___AbstractArrayRead____length(fra.me.REG[1]);
+  /* ./../lib/standard//kernel.nit:332 */
+  while(1) {
+    /* ./../lib/standard//kernel.nit:212 */
+    REGB0 = TAG_Bool(UNTAG_Int(REGB2)<UNTAG_Int(REGB1));
+    /* ./../lib/standard//kernel.nit:332 */
+    if (UNTAG_Bool(REGB0)) {
+      /* ./abstracttool.nit:64 */
+      REGB0 = REGB2;
+      /* ./../lib/standard//collection//array.nit:243 */
+      fra.me.REG[3] = fra.me.REG[1];
+      /* ./../lib/standard//collection//array.nit:245 */
+      REGB3 = TAG_Int(0);
+      /* ./../lib/standard//kernel.nit:213 */
+      REGB3 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB3));
+      /* ./../lib/standard//collection//array.nit:245 */
+      if (UNTAG_Bool(REGB3)) {
+        REGB3 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL);
+        if (UNTAG_Bool(REGB3)) {
+        } else {
+          nit_abort("Uninitialized attribute %s", "_length", LOCATE_array, 245);
+        }
+        REGB3 = ATTR_array___AbstractArrayRead____length(fra.me.REG[3]);
+        /* ./../lib/standard//kernel.nit:212 */
+        REGB3 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB3));
+      } else {
+        /* ./../lib/standard//collection//array.nit:245 */
+        REGB4 = TAG_Bool(false);
+        REGB3 = REGB4;
+      }
+      if (UNTAG_Bool(REGB3)) {
+      } else {
+        nit_abort("Assert %s  failed", "'index'", LOCATE_array, 245);
+      }
+      /* ./../lib/standard//collection//array.nit:246 */
+      fra.me.REG[3] = ATTR_array___Array____items(fra.me.REG[3]);
+      REGB3 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
+      if (UNTAG_Bool(REGB3)) {
+        nit_abort("Reciever is null", NULL, LOCATE_array, 246);
+      }
+      /* ./../lib/standard//collection//array.nit:654 */
+      fra.me.REG[3] = ((Nit_NativeArray)fra.me.REG[3])->val[UNTAG_Int(REGB0)];
+      /* ./../lib/standard//collection//array.nit:246 */
+      goto label9;
+      label9: while(0);
+      /* ./abstracttool.nit:65 */
+      fra.me.REG[3] = CALL_mmloader___ToolContext___get_module_from_filename(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
+      /* ./abstracttool.nit:66 */
+      CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
+      /* ./../lib/standard//kernel.nit:334 */
+      REGB0 = TAG_Int(1);
+      /* ./../lib/standard//kernel.nit:215 */
+      REGB0 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB0));
+      /* ./../lib/standard//kernel.nit:334 */
+      REGB2 = REGB0;
+    } else {
+      /* ./../lib/standard//kernel.nit:332 */
+      goto label10;
+    }
   }
-  /* Register variable[5]: Result */
-  /* Register variable[4]: Result */
-  variable[4] = CALL_string___Collection___join(variable[4])(variable[4], variable[5]) /*Collection::join*/;
-  variable[3] = variable[4];
-  /* Register variable[4]: Local variable */
-  variable[5] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[6]: Once String constant */
-  if (once_value_7 != NIT_NULL) variable[6] = once_value_7;
-  else {
-    variable[6] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-    once_value_7 = variable[6];
+  label10: while(0);
+  /* ./abstracttool.nit:68 */
+  fra.me.REG[1] = CALL_mmloader___ToolContext___opt_log(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_opts___Option___value(fra.me.REG[1])(fra.me.REG[1]);
+  if (UNTAG_Bool(fra.me.REG[1])) {
+    /* ./abstracttool.nit:69 */
+    CALL_abstracttool___AbstractCompiler___dump_context_info(fra.me.REG[0])(fra.me.REG[0]);
   }
-  /* Register variable[6]: Result */
-  /* Ensure var variable[6]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  variable[6] =  variable[3] /*name*/ /* Ensure var: super-string element*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[6]: Once String constant */
-  if (once_value_8 != NIT_NULL) variable[6] = once_value_8;
-  else {
-    variable[6] = NEW_String_string___String___with_native(BOX_NativeString(".full_class_hierarchy.new.dot"), TAG_Int(29)) /*new String*/;
-    once_value_8 = variable[6];
+  /* ./abstracttool.nit:72 */
+  REGB2 = CALL_abstract_collection___Collection___is_empty(fra.me.REG[2])(fra.me.REG[2]);
+  REGB2 = TAG_Bool(!UNTAG_Bool(REGB2));
+  if (UNTAG_Bool(REGB2)) {
+    fra.me.REG[1] = CALL_mmloader___ToolContext___opt_only_metamodel(fra.me.REG[0])(fra.me.REG[0]);
+    fra.me.REG[1] = CALL_opts___Option___value(fra.me.REG[1])(fra.me.REG[1]);
+    REGB2 = TAG_Bool(!UNTAG_Bool(fra.me.REG[1]));
+  } else {
+    REGB1 = TAG_Bool(false);
+    REGB2 = REGB1;
   }
-  /* Register variable[6]: Result */
-  /* Ensure var variable[6]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_string___Object___to_s(variable[5])(variable[5]) /*Object::to_s*/;
-  /* Register variable[5]: Result */
-  variable[5] = NEW_OFStream_file___OFStream___open(variable[5]) /*new OFStream*/;
-  variable[4] = variable[5];
-  /* Register variable[5]: Result */
-  variable[5] = CALL_abstractmetamodel___MMContext___class_hierarchy(variable[0])(variable[0]) /*MMContext::class_hierarchy*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_partial_order___PartialOrder___to_dot(variable[5])(variable[5]) /*PartialOrder::to_dot*/;
-  CALL_stream___OStream___write( variable[4] /*f*/)( variable[4] /*f*/, variable[5]) /*OFStream::write*/;
-  CALL_stream___IOS___close( variable[4] /*f*/)( variable[4] /*f*/) /*OFStream::close*/;
-  variable[5] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[6]: Once String constant */
-  if (once_value_9 != NIT_NULL) variable[6] = once_value_9;
-  else {
-    variable[6] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-    once_value_9 = variable[6];
+  if (UNTAG_Bool(REGB2)) {
+    fra.me.REG[1] = CALL_mmloader___ToolContext___opt_only_parse(fra.me.REG[0])(fra.me.REG[0]);
+    fra.me.REG[1] = CALL_opts___Option___value(fra.me.REG[1])(fra.me.REG[1]);
+    REGB2 = TAG_Bool(!UNTAG_Bool(fra.me.REG[1]));
+  } else {
+    REGB1 = TAG_Bool(false);
+    REGB2 = REGB1;
   }
-  /* Register variable[6]: Result */
-  /* Ensure var variable[6]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  variable[6] =  variable[3] /*name*/ /* Ensure var: super-string element*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[6]: Once String constant */
-  if (once_value_10 != NIT_NULL) variable[6] = once_value_10;
-  else {
-    variable[6] = NEW_String_string___String___with_native(BOX_NativeString(".module_hierarchy.new.dot"), TAG_Int(25)) /*new String*/;
-    once_value_10 = variable[6];
+  if (UNTAG_Bool(REGB2)) {
+    /* ./abstracttool.nit:73 */
+    CALL_abstracttool___AbstractCompiler___perform_work(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
   }
-  /* Register variable[6]: Result */
-  /* Ensure var variable[6]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_string___Object___to_s(variable[5])(variable[5]) /*Object::to_s*/;
-  /* Register variable[5]: Result */
-  variable[5] = NEW_OFStream_file___OFStream___open(variable[5]) /*new OFStream*/;
-  variable[4] = variable[5] /*f=*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_abstractmetamodel___MMContext___module_hierarchy(variable[0])(variable[0]) /*MMContext::module_hierarchy*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_partial_order___PartialOrder___to_dot(variable[5])(variable[5]) /*PartialOrder::to_dot*/;
-  CALL_stream___OStream___write( variable[4] /*f*/)( variable[4] /*f*/, variable[5]) /*OFStream::write*/;
-  CALL_stream___IOS___close( variable[4] /*f*/)( variable[4] /*f*/) /*OFStream::close*/;
-  return_label4: while(false);
-  tracehead = trace.prev;
+  stack_frame_head = fra.me.prev;
   return;
 }
-void abstracttool___MMModule___dump_module_info(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 85, LOCATE_abstracttool___MMModule___dump_module_info};
-  static val_t once_value_12 = NIT_NULL; /* Once value for string variable[5]*/
-  static val_t once_value_13 = NIT_NULL; /* Once value for string variable[5]*/
-  static val_t once_value_14 = NIT_NULL; /* Once value for string variable[5]*/
-  static val_t once_value_15 = NIT_NULL; /* Once value for string variable[6]*/
-  static val_t once_value_16 = NIT_NULL; /* Once value for string variable[6]*/
-  static val_t once_value_17 = NIT_NULL; /* Once value for string variable[6]*/
-  static val_t once_value_18 = NIT_NULL; /* Once value for string variable[6]*/
-    static val_t once_value_20 = NIT_NULL; /* Once value for string variable[8]*/
-  val_t variable[9];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_abstracttool;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Local variable */
-  /* Register variable[3]: Result */
-  variable[3] = CALL_abstractmetamodel___MMModule___filename(variable[0])(variable[0]) /*MMModule::filename*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_file___String___file_path(variable[3])(variable[3]) /*String::file_path*/;
-  variable[2] = variable[3];
-  /* Register variable[3]: Local variable */
-  variable[4] = NEW_Array_array___Array___with_capacity(TAG_Int(5)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[5]: Once String constant */
-  if (once_value_12 != NIT_NULL) variable[5] = once_value_12;
-  else {
-    variable[5] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-    once_value_12 = variable[5];
-  }
-  /* Register variable[5]: Result */
-  /* Ensure var variable[5]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[5]) /*AbstractArray::add*/;
-  variable[5] =  variable[2] /*p*/ /* Ensure var: super-string element*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[5]) /*AbstractArray::add*/;
-  /* Register variable[5]: Once String constant */
-  if (once_value_13 != NIT_NULL) variable[5] = once_value_13;
-  else {
-    variable[5] = NEW_String_string___String___with_native(BOX_NativeString("/"), TAG_Int(1)) /*new String*/;
-    once_value_13 = variable[5];
-  }
-  /* Register variable[5]: Result */
-  /* Ensure var variable[5]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[5]) /*AbstractArray::add*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_abstractmetamodel___MMModule___name(variable[0])(variable[0]) /*MMModule::name*/;
-  /* Ensure var variable[5]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], CALL_string___Object___to_s(variable[5])(variable[5]) /*Object::to_s*/) /*AbstractArray::add*/;
-  /* Register variable[5]: Once String constant */
-  if (once_value_14 != NIT_NULL) variable[5] = once_value_14;
-  else {
-    variable[5] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-    once_value_14 = variable[5];
-  }
-  /* Register variable[5]: Result */
-  /* Ensure var variable[5]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[5]) /*AbstractArray::add*/;
-  /* Register variable[4]: Result */
-  variable[4] = CALL_string___Object___to_s(variable[4])(variable[4]) /*Object::to_s*/;
-  variable[3] = variable[4];
-  /* Register variable[4]: Local variable */
-  variable[5] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[6]: Once String constant */
-  if (once_value_15 != NIT_NULL) variable[6] = once_value_15;
-  else {
-    variable[6] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-    once_value_15 = variable[6];
-  }
-  /* Register variable[6]: Result */
-  /* Ensure var variable[6]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  variable[6] =  variable[3] /*fname*/ /* Ensure var: super-string element*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[6]: Once String constant */
-  if (once_value_16 != NIT_NULL) variable[6] = once_value_16;
-  else {
-    variable[6] = NEW_String_string___String___with_native(BOX_NativeString(".class_hierarchy.new.dot"), TAG_Int(24)) /*new String*/;
-    once_value_16 = variable[6];
-  }
-  /* Register variable[6]: Result */
-  /* Ensure var variable[6]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_string___Object___to_s(variable[5])(variable[5]) /*Object::to_s*/;
-  /* Register variable[5]: Result */
-  variable[5] = NEW_OFStream_file___OFStream___open(variable[5]) /*new OFStream*/;
-  variable[4] = variable[5];
-  /* Register variable[5]: Result */
-  variable[5] = CALL_abstractmetamodel___MMModule___class_specialization_hierarchy(variable[0])(variable[0]) /*MMModule::class_specialization_hierarchy*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_partial_order___PartialOrder___to_dot(variable[5])(variable[5]) /*PartialOrder::to_dot*/;
-  CALL_stream___OStream___write( variable[4] /*f*/)( variable[4] /*f*/, variable[5]) /*OFStream::write*/;
-  CALL_stream___IOS___close( variable[4] /*f*/)( variable[4] /*f*/) /*OFStream::close*/;
-  variable[5] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[6]: Once String constant */
-  if (once_value_17 != NIT_NULL) variable[6] = once_value_17;
-  else {
-    variable[6] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-    once_value_17 = variable[6];
-  }
-  /* Register variable[6]: Result */
-  /* Ensure var variable[6]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  variable[6] =  variable[3] /*fname*/ /* Ensure var: super-string element*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[6]: Once String constant */
-  if (once_value_18 != NIT_NULL) variable[6] = once_value_18;
-  else {
-    variable[6] = NEW_String_string___String___with_native(BOX_NativeString(".properties.log"), TAG_Int(15)) /*new String*/;
-    once_value_18 = variable[6];
-  }
-  /* Register variable[6]: Result */
-  /* Ensure var variable[6]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[5])(variable[5], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_string___Object___to_s(variable[5])(variable[5]) /*Object::to_s*/;
-  /* Register variable[5]: Result */
-  variable[5] = NEW_OFStream_file___OFStream___open(variable[5]) /*new OFStream*/;
-  variable[4] = variable[5] /*f=*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_abstractmetamodel___MMModule___local_classes(variable[0])(variable[0]) /*MMModule::local_classes*/;
-  /* Register variable[5]: For iterator */
-  variable[5] = CALL_abstract_collection___Collection___iterator(variable[5])(variable[5]) /*AbstractArrayRead::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[6]: For 'is_ok' result */
-    variable[6] = CALL_abstract_collection___Iterator___is_ok(variable[5])(variable[5]) /*ArrayIterator::is_ok*/;
-    if (!UNTAG_Bool(variable[6])) break; /*for*/
-    variable[6] = CALL_abstract_collection___Iterator___item(variable[5])(variable[5]) /*ArrayIterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[7]: Local variable */
-    variable[7] = variable[6];
-    CALL_abstracttool___MMLocalClass___dump_properties( variable[7] /*cla*/)( variable[7] /*cla*/,  variable[4] /*f*/) /*MMLocalClass::dump_properties*/;
-    /* Register variable[8]: Once String constant */
-    if (once_value_20 != NIT_NULL) variable[8] = once_value_20;
-    else {
-      variable[8] = NEW_String_string___String___with_native(BOX_NativeString("\n"), TAG_Int(1)) /*new String*/;
-      once_value_20 = variable[8];
-    }
-    /* Register variable[8]: Result */
-    CALL_stream___OStream___write( variable[4] /*f*/)( variable[4] /*f*/, variable[8]) /*OFStream::write*/;
-    continue_19: while(0);
-    CALL_abstract_collection___Iterator___next(variable[5])(variable[5]) /*ArrayIterator::next*/;
+void abstracttool___AbstractCompiler___perform_work(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_abstracttool;
+  fra.me.line = 77;
+  fra.me.meth = LOCATE_abstracttool___AbstractCompiler___perform_work;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 0;
+  /* ./abstracttool.nit:77 */
+  nit_abort("Deferred method called", NULL, LOCATE_abstracttool, 77);
+  stack_frame_head = fra.me.prev;
+  return;
+}
+void abstracttool___AbstractCompiler___dump_context_info(val_t p0){
+  struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
+  val_t REGB0;
+  val_t tmp;
+  static val_t once_value_2; /* Once value */
+  static val_t once_value_3; /* Once value */
+  static val_t once_value_4; /* Once value */
+  static val_t once_value_5; /* Once value */
+  static val_t once_value_6; /* Once value */
+  static val_t once_value_7; /* Once value */
+  static val_t once_value_8; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_abstracttool;
+  fra.me.line = 79;
+  fra.me.meth = LOCATE_abstracttool___AbstractCompiler___dump_context_info;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 5;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[2] = NIT_NULL;
+  fra.me.REG[3] = NIT_NULL;
+  fra.me.REG[4] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./abstracttool.nit:81 */
+  fra.me.REG[1] = CALL_abstractmetamodel___MMContext___module_hierarchy(fra.me.REG[0])(fra.me.REG[0]);
+  CALL_abstract_collection___Collection___iterate(fra.me.REG[1])(fra.me.REG[1], (&(fra.me)), ((fun_t)OC_abstracttool___AbstractCompiler___dump_context_info_1));
+  /* ./abstracttool.nit:84 */
+  fra.me.REG[1] = NEW_Array_array___Array___init();
+  /* ./abstracttool.nit:85 */
+  fra.me.REG[2] = CALL_abstractmetamodel___MMContext___module_hierarchy(fra.me.REG[0])(fra.me.REG[0]);
+  CALL_abstract_collection___SimpleCollection___add_all(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  /* ./abstracttool.nit:86 */
+  fra.me.REG[2] = CALL_abstractmetamodel___MMContext___module_hierarchy(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_partial_order___PartialOrder___select_smallests(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
+  if (!once_value_2) {
+    fra.me.REG[2] = BOX_NativeString("-");
+    REGB0 = TAG_Int(1);
+    fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+    once_value_2 = fra.me.REG[2];
+    register_static_object(&once_value_2);
+  } else fra.me.REG[2] = once_value_2;
+  fra.me.REG[2] = fra.me.REG[2];
+  fra.me.REG[2] = CALL_string___Collection___join(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  /* ./abstracttool.nit:88 */
+  REGB0 = TAG_Int(5);
+  fra.me.REG[1] = NEW_Array_array___Array___with_capacity(REGB0);
+  if (!once_value_3) {
+    fra.me.REG[3] = BOX_NativeString("");
+    REGB0 = TAG_Int(0);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_3 = fra.me.REG[3];
+    register_static_object(&once_value_3);
+  } else fra.me.REG[3] = once_value_3;
+  fra.me.REG[3] = fra.me.REG[3];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_mmloader___ToolContext___log_directory(fra.me.REG[0])(fra.me.REG[0]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  if (!once_value_4) {
+    fra.me.REG[3] = BOX_NativeString("/");
+    REGB0 = TAG_Int(1);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_4 = fra.me.REG[3];
+    register_static_object(&once_value_4);
+  } else fra.me.REG[3] = once_value_4;
+  fra.me.REG[3] = fra.me.REG[3];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  if (!once_value_5) {
+    fra.me.REG[3] = BOX_NativeString(".full_class_hierarchy.new.dot");
+    REGB0 = TAG_Int(29);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_5 = fra.me.REG[3];
+    register_static_object(&once_value_5);
+  } else fra.me.REG[3] = once_value_5;
+  fra.me.REG[3] = fra.me.REG[3];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[1] = NEW_OFStream_file___OFStream___open(fra.me.REG[1]);
+  /* ./abstracttool.nit:89 */
+  fra.me.REG[3] = CALL_abstractmetamodel___MMContext___class_hierarchy(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[3] = CALL_partial_order___PartialOrder___to_dot(fra.me.REG[3])(fra.me.REG[3]);
+  CALL_stream___OStream___write(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  /* ./abstracttool.nit:90 */
+  CALL_stream___IOS___close(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./abstracttool.nit:92 */
+  REGB0 = TAG_Int(5);
+  fra.me.REG[3] = NEW_Array_array___Array___with_capacity(REGB0);
+  if (!once_value_6) {
+    fra.me.REG[4] = BOX_NativeString("");
+    REGB0 = TAG_Int(0);
+    fra.me.REG[4] = NEW_String_string___String___with_native(fra.me.REG[4], REGB0);
+    once_value_6 = fra.me.REG[4];
+    register_static_object(&once_value_6);
+  } else fra.me.REG[4] = once_value_6;
+  fra.me.REG[4] = fra.me.REG[4];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
+  fra.me.REG[4] = CALL_mmloader___ToolContext___log_directory(fra.me.REG[0])(fra.me.REG[0]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
+  if (!once_value_7) {
+    fra.me.REG[4] = BOX_NativeString("/");
+    REGB0 = TAG_Int(1);
+    fra.me.REG[4] = NEW_String_string___String___with_native(fra.me.REG[4], REGB0);
+    once_value_7 = fra.me.REG[4];
+    register_static_object(&once_value_7);
+  } else fra.me.REG[4] = once_value_7;
+  fra.me.REG[4] = fra.me.REG[4];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
+  if (!once_value_8) {
+    fra.me.REG[2] = BOX_NativeString(".module_hierarchy.new.dot");
+    REGB0 = TAG_Int(25);
+    fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+    once_value_8 = fra.me.REG[2];
+    register_static_object(&once_value_8);
+  } else fra.me.REG[2] = once_value_8;
+  fra.me.REG[2] = fra.me.REG[2];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
+  fra.me.REG[3] = CALL_string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
+  fra.me.REG[3] = NEW_OFStream_file___OFStream___open(fra.me.REG[3]);
+  fra.me.REG[1] = fra.me.REG[3];
+  /* ./abstracttool.nit:93 */
+  fra.me.REG[0] = CALL_abstractmetamodel___MMContext___module_hierarchy(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[0] = CALL_partial_order___PartialOrder___to_dot(fra.me.REG[0])(fra.me.REG[0]);
+  CALL_stream___OStream___write(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  /* ./abstracttool.nit:94 */
+  CALL_stream___IOS___close(fra.me.REG[1])(fra.me.REG[1]);
+  stack_frame_head = fra.me.prev;
+  return;
+}
+  void OC_abstracttool___AbstractCompiler___dump_context_info_1(struct stack_frame_t *closctx, val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
+    struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+    fun_t CREG[1];
+    val_t tmp;
+    fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+    fra.me.file = LOCATE_abstracttool;
+    fra.me.line = 0;
+    fra.me.meth = LOCATE_abstracttool___AbstractCompiler___dump_context_info;
+    fra.me.has_broke = 0;
+    fra.me.REG_size = 2;
+    fra.me.REG[0] = NIT_NULL;
+    fra.me.REG[1] = NIT_NULL;
+    fra.me.closure_ctx = closctx_param;
+    fra.me.closure_funs = CREG;
+    fra.me.REG[0] = p0;
+    CREG[0] = clos_fun0;
+    /* ./abstracttool.nit:82 */
+    fra.me.REG[1] = CALL_mmloader___ToolContext___log_directory(closctx->REG[0])(closctx->REG[0]);
+    CALL_abstracttool___MMModule___dump_module_info(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+    stack_frame_head = fra.me.prev;
+    return;
   }
-  break_19: while(0);
-  CALL_stream___IOS___close( variable[4] /*f*/)( variable[4] /*f*/) /*OFStream::close*/;
-  return_label11: while(false);
-  tracehead = trace.prev;
+void abstracttool___MMModule___dump_module_info(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
+  val_t REGB0;
+  val_t tmp;
+  static val_t once_value_1; /* Once value */
+  static val_t once_value_2; /* Once value */
+  static val_t once_value_3; /* Once value */
+  static val_t once_value_4; /* Once value */
+  static val_t once_value_5; /* Once value */
+  static val_t once_value_6; /* Once value */
+  static val_t once_value_7; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_abstracttool;
+  fra.me.line = 99;
+  fra.me.meth = LOCATE_abstracttool___MMModule___dump_module_info;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 5;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[2] = NIT_NULL;
+  fra.me.REG[3] = NIT_NULL;
+  fra.me.REG[4] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  /* ./abstracttool.nit:101 */
+  REGB0 = TAG_Int(5);
+  fra.me.REG[2] = NEW_Array_array___Array___with_capacity(REGB0);
+  if (!once_value_1) {
+    fra.me.REG[3] = BOX_NativeString("");
+    REGB0 = TAG_Int(0);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_1 = fra.me.REG[3];
+    register_static_object(&once_value_1);
+  } else fra.me.REG[3] = once_value_1;
+  fra.me.REG[3] = fra.me.REG[3];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
+  if (!once_value_2) {
+    fra.me.REG[1] = BOX_NativeString("/");
+    REGB0 = TAG_Int(1);
+    fra.me.REG[1] = NEW_String_string___String___with_native(fra.me.REG[1], REGB0);
+    once_value_2 = fra.me.REG[1];
+    register_static_object(&once_value_2);
+  } else fra.me.REG[1] = once_value_2;
+  fra.me.REG[1] = fra.me.REG[1];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
+  fra.me.REG[1] = CALL_abstractmetamodel___MMModule___name(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
+  if (!once_value_3) {
+    fra.me.REG[1] = BOX_NativeString("");
+    REGB0 = TAG_Int(0);
+    fra.me.REG[1] = NEW_String_string___String___with_native(fra.me.REG[1], REGB0);
+    once_value_3 = fra.me.REG[1];
+    register_static_object(&once_value_3);
+  } else fra.me.REG[1] = once_value_3;
+  fra.me.REG[1] = fra.me.REG[1];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
+  fra.me.REG[2] = CALL_string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
+  /* ./abstracttool.nit:102 */
+  REGB0 = TAG_Int(3);
+  fra.me.REG[1] = NEW_Array_array___Array___with_capacity(REGB0);
+  if (!once_value_4) {
+    fra.me.REG[3] = BOX_NativeString("");
+    REGB0 = TAG_Int(0);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_4 = fra.me.REG[3];
+    register_static_object(&once_value_4);
+  } else fra.me.REG[3] = once_value_4;
+  fra.me.REG[3] = fra.me.REG[3];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  if (!once_value_5) {
+    fra.me.REG[3] = BOX_NativeString(".class_hierarchy.new.dot");
+    REGB0 = TAG_Int(24);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_5 = fra.me.REG[3];
+    register_static_object(&once_value_5);
+  } else fra.me.REG[3] = once_value_5;
+  fra.me.REG[3] = fra.me.REG[3];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[1] = NEW_OFStream_file___OFStream___open(fra.me.REG[1]);
+  /* ./abstracttool.nit:103 */
+  fra.me.REG[3] = CALL_abstractmetamodel___MMModule___class_specialization_hierarchy(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[3] = CALL_partial_order___PartialOrder___to_dot(fra.me.REG[3])(fra.me.REG[3]);
+  CALL_stream___OStream___write(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  /* ./abstracttool.nit:104 */
+  CALL_stream___IOS___close(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./abstracttool.nit:106 */
+  REGB0 = TAG_Int(3);
+  fra.me.REG[3] = NEW_Array_array___Array___with_capacity(REGB0);
+  if (!once_value_6) {
+    fra.me.REG[4] = BOX_NativeString("");
+    REGB0 = TAG_Int(0);
+    fra.me.REG[4] = NEW_String_string___String___with_native(fra.me.REG[4], REGB0);
+    once_value_6 = fra.me.REG[4];
+    register_static_object(&once_value_6);
+  } else fra.me.REG[4] = once_value_6;
+  fra.me.REG[4] = fra.me.REG[4];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
+  if (!once_value_7) {
+    fra.me.REG[2] = BOX_NativeString(".properties.log");
+    REGB0 = TAG_Int(15);
+    fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+    once_value_7 = fra.me.REG[2];
+    register_static_object(&once_value_7);
+  } else fra.me.REG[2] = once_value_7;
+  fra.me.REG[2] = fra.me.REG[2];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
+  fra.me.REG[3] = CALL_string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
+  fra.me.REG[3] = NEW_OFStream_file___OFStream___open(fra.me.REG[3]);
+  fra.me.REG[1] = fra.me.REG[3];
+  /* ./abstracttool.nit:107 */
+  fra.me.REG[0] = CALL_abstractmetamodel___MMModule___local_classes(fra.me.REG[0])(fra.me.REG[0]);
+  CALL_abstract_collection___Collection___iterate(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_abstracttool___MMModule___dump_module_info_8));
+  /* ./abstracttool.nit:111 */
+  CALL_stream___IOS___close(fra.me.REG[1])(fra.me.REG[1]);
+  stack_frame_head = fra.me.prev;
   return;
 }
-void abstracttool___MMLocalClass___dump_properties(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 103, LOCATE_abstracttool___MMLocalClass___dump_properties};
-  static val_t once_value_22 = NIT_NULL; /* Once value for string variable[4]*/
-  static val_t once_value_23 = NIT_NULL; /* Once value for string variable[4]*/
-    static val_t once_value_25 = NIT_NULL; /* Once value for string variable[8]*/
-    static val_t once_value_26 = NIT_NULL; /* Once value for string variable[8]*/
-    static val_t once_value_27 = NIT_NULL; /* Once value for string variable[8]*/
-  static val_t once_value_28 = NIT_NULL; /* Once value for string variable[4]*/
-  static val_t once_value_29 = NIT_NULL; /* Once value for string variable[4]*/
-  val_t variable[9];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_abstracttool;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Local variable */
-  variable[1] =  param0;
-  /* Register variable[2]: Method return value and escape marker */
-  variable[3] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[4]: Once String constant */
-  if (once_value_22 != NIT_NULL) variable[4] = once_value_22;
-  else {
-    variable[4] = NEW_String_string___String___with_native(BOX_NativeString("class "), TAG_Int(6)) /*new String*/;
-    once_value_22 = variable[4];
+  void OC_abstracttool___MMModule___dump_module_info_8(struct stack_frame_t *closctx, val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
+    struct {struct stack_frame_t me;} fra;
+    val_t REGB0;
+    fun_t CREG[1];
+    val_t tmp;
+    static val_t once_value_9; /* Once value */
+    fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+    fra.me.file = LOCATE_abstracttool;
+    fra.me.line = 0;
+    fra.me.meth = LOCATE_abstracttool___MMModule___dump_module_info;
+    fra.me.has_broke = 0;
+    fra.me.REG_size = 1;
+    fra.me.REG[0] = NIT_NULL;
+    fra.me.closure_ctx = closctx_param;
+    fra.me.closure_funs = CREG;
+    fra.me.REG[0] = p0;
+    CREG[0] = clos_fun0;
+    /* ./abstracttool.nit:108 */
+    CALL_abstracttool___MMLocalClass___dump_properties(fra.me.REG[0])(fra.me.REG[0], closctx->REG[1]);
+    /* ./abstracttool.nit:109 */
+    if (!once_value_9) {
+      fra.me.REG[0] = BOX_NativeString("\n");
+      REGB0 = TAG_Int(1);
+      fra.me.REG[0] = NEW_String_string___String___with_native(fra.me.REG[0], REGB0);
+      once_value_9 = fra.me.REG[0];
+      register_static_object(&once_value_9);
+    } else fra.me.REG[0] = once_value_9;
+    fra.me.REG[0] = fra.me.REG[0];
+    CALL_stream___OStream___write(closctx->REG[1])(closctx->REG[1], fra.me.REG[0]);
+    stack_frame_head = fra.me.prev;
+    return;
   }
-  /* Register variable[4]: Result */
-  /* Ensure var variable[4]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
-  /* Ensure var variable[0]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], CALL_string___Object___to_s(variable[0])(variable[0]) /*Object::to_s*/) /*AbstractArray::add*/;
-  /* Register variable[4]: Once String constant */
-  if (once_value_23 != NIT_NULL) variable[4] = once_value_23;
-  else {
-    variable[4] = NEW_String_string___String___with_native(BOX_NativeString("\n"), TAG_Int(1)) /*new String*/;
-    once_value_23 = variable[4];
+void abstracttool___MMLocalClass___dump_properties(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  val_t REGB2;
+  val_t tmp;
+  static val_t once_value_1; /* Once value */
+  static val_t once_value_2; /* Once value */
+    static val_t once_value_3; /* Once value */
+      static val_t once_value_4; /* Once value */
+  static val_t once_value_9; /* Once value */
+  static val_t once_value_10; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_abstracttool;
+  fra.me.line = 116;
+  fra.me.meth = LOCATE_abstracttool___MMLocalClass___dump_properties;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 4;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[2] = NIT_NULL;
+  fra.me.REG[3] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  /* ./abstracttool.nit:118 */
+  REGB0 = TAG_Int(3);
+  fra.me.REG[2] = NEW_Array_array___Array___with_capacity(REGB0);
+  if (!once_value_1) {
+    fra.me.REG[3] = BOX_NativeString("class ");
+    REGB0 = TAG_Int(6);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_1 = fra.me.REG[3];
+    register_static_object(&once_value_1);
+  } else fra.me.REG[3] = once_value_1;
+  fra.me.REG[3] = fra.me.REG[3];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
+  if (!once_value_2) {
+    fra.me.REG[3] = BOX_NativeString("\n");
+    REGB0 = TAG_Int(1);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_2 = fra.me.REG[3];
+    register_static_object(&once_value_2);
+  } else fra.me.REG[3] = once_value_2;
+  fra.me.REG[3] = fra.me.REG[3];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
+  fra.me.REG[2] = CALL_string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
+  CALL_stream___OStream___write(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  /* ./abstracttool.nit:119 */
+  fra.me.REG[2] = CALL_abstractmetamodel___MMLocalClass___global(fra.me.REG[0])(fra.me.REG[0]);
+  REGB0 = CALL_abstractmetamodel___MMGlobalClass___visibility_level(fra.me.REG[2])(fra.me.REG[2]);
+  REGB1 = TAG_Int(3);
+  REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
+  if (UNTAG_Bool(REGB2)) {
+  } else {
+    /* ./../lib/standard//kernel.nit:207 */
+    REGB1 = TAG_Bool((REGB0)==(REGB1));
+    /* ./abstracttool.nit:119 */
+    REGB2 = REGB1;
   }
-  /* Register variable[4]: Result */
-  /* Ensure var variable[4]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_string___Object___to_s(variable[3])(variable[3]) /*Object::to_s*/;
-  CALL_stream___OStream___write( variable[1] /*file*/)( variable[1] /*file*/, variable[3]) /*OStream::write*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_abstractmetamodel___MMLocalClass___global_properties(variable[0])(variable[0]) /*MMLocalClass::global_properties*/;
-  /* Register variable[3]: For iterator */
-  variable[3] = CALL_abstract_collection___Collection___iterator(variable[3])(variable[3]) /*Collection::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[4]: For 'is_ok' result */
-    variable[4] = CALL_abstract_collection___Iterator___is_ok(variable[3])(variable[3]) /*Iterator::is_ok*/;
-    if (!UNTAG_Bool(variable[4])) break; /*for*/
-    variable[4] = CALL_abstract_collection___Iterator___item(variable[3])(variable[3]) /*Iterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[5]: Local variable */
-    variable[5] = variable[4];
-    /* Register variable[6]: Local variable */
-    /* Register variable[7]: Result */
-    variable[7] = CALL_abstractmetamodel___MMLocalClass_____bra(variable[0])(variable[0],  variable[5] /*p*/) /*MMLocalClass::[]*/;
-    variable[6] = variable[7];
-    variable[7] = NEW_Array_array___Array___with_capacity(TAG_Int(5)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-    /* Register variable[8]: Once String constant */
-    if (once_value_25 != NIT_NULL) variable[8] = once_value_25;
-    else {
-      variable[8] = NEW_String_string___String___with_native(BOX_NativeString("\t"), TAG_Int(1)) /*new String*/;
-      once_value_25 = variable[8];
+  if (UNTAG_Bool(REGB2)) {
+    fra.me.REG[2] = CALL_abstractmetamodel___MMLocalClass___global(fra.me.REG[0])(fra.me.REG[0]);
+    fra.me.REG[2] = CALL_abstractmetamodel___MMGlobalClass___intro(fra.me.REG[2])(fra.me.REG[2]);
+    REGB2 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[0],fra.me.REG[2]));
+    if (UNTAG_Bool(REGB2)) {
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
+      REGB2 = REGB1;
     }
-    /* Register variable[8]: Result */
-    /* Ensure var variable[8]: super-string element*/
-    CALL_abstract_collection___SimpleCollection___add(variable[7])(variable[7], variable[8]) /*AbstractArray::add*/;
-    variable[8] =  variable[6] /*lp*/ /* Ensure var: super-string element*/;
-    CALL_abstract_collection___SimpleCollection___add(variable[7])(variable[7], CALL_string___Object___to_s(variable[8])(variable[8]) /*Object::to_s*/) /*AbstractArray::add*/;
-    /* Register variable[8]: Once String constant */
-    if (once_value_26 != NIT_NULL) variable[8] = once_value_26;
-    else {
-      variable[8] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-      once_value_26 = variable[8];
+    REGB2 = TAG_Bool(!UNTAG_Bool(REGB2));
+  } else {
+    REGB1 = TAG_Bool(false);
+    REGB2 = REGB1;
+  }
+  if (UNTAG_Bool(REGB2)) {
+    /* ./abstracttool.nit:120 */
+    if (!once_value_3) {
+      fra.me.REG[2] = BOX_NativeString("\tclass not visible in this module\n");
+      REGB2 = TAG_Int(34);
+      fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB2);
+      once_value_3 = fra.me.REG[2];
+      register_static_object(&once_value_3);
+    } else fra.me.REG[2] = once_value_3;
+    fra.me.REG[2] = fra.me.REG[2];
+    CALL_stream___OStream___write(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  } else {
+    /* ./abstracttool.nit:121 */
+    fra.me.REG[2] = CALL_abstractmetamodel___MMLocalClass___mmmodule(fra.me.REG[0])(fra.me.REG[0]);
+    fra.me.REG[3] = CALL_abstractmetamodel___MMLocalClass___global(fra.me.REG[0])(fra.me.REG[0]);
+    fra.me.REG[3] = CALL_abstractmetamodel___MMGlobalClass___mmmodule(fra.me.REG[3])(fra.me.REG[3]);
+    REGB2 = CALL_abstractmetamodel___MMModule___visibility_for(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
+    REGB1 = TAG_Int(0);
+    REGB0 = TAG_Bool(IS_EQUAL_OO(REGB2,REGB1));
+    if (UNTAG_Bool(REGB0)) {
+    } else {
+      /* ./../lib/standard//kernel.nit:207 */
+      REGB1 = TAG_Bool((REGB2)==(REGB1));
+      /* ./abstracttool.nit:121 */
+      REGB0 = REGB1;
     }
-    /* Register variable[8]: Result */
-    /* Ensure var variable[8]: super-string element*/
-    CALL_abstract_collection___SimpleCollection___add(variable[7])(variable[7], variable[8]) /*AbstractArray::add*/;
-    /* Register variable[8]: Result */
-    variable[8] = CALL_static_type___MMLocalClass___get_type(variable[0])(variable[0]) /*MMLocalClass::get_type*/;
-    /* Register variable[8]: Result */
-    variable[8] = CALL_static_type___MMLocalProperty___signature_for( variable[6] /*lp*/)( variable[6] /*lp*/, variable[8]) /*MMLocalProperty::signature_for*/;
-    /* Ensure var variable[8]: super-string element*/
-    CALL_abstract_collection___SimpleCollection___add(variable[7])(variable[7], CALL_string___Object___to_s(variable[8])(variable[8]) /*Object::to_s*/) /*AbstractArray::add*/;
-    /* Register variable[8]: Once String constant */
-    if (once_value_27 != NIT_NULL) variable[8] = once_value_27;
-    else {
-      variable[8] = NEW_String_string___String___with_native(BOX_NativeString("\n"), TAG_Int(1)) /*new String*/;
-      once_value_27 = variable[8];
+    if (UNTAG_Bool(REGB0)) {
+      /* ./abstracttool.nit:122 */
+      if (!once_value_4) {
+        fra.me.REG[3] = BOX_NativeString("\tclass is defined later in the hierarchy\n");
+        REGB0 = TAG_Int(41);
+        fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+        once_value_4 = fra.me.REG[3];
+        register_static_object(&once_value_4);
+      } else fra.me.REG[3] = once_value_4;
+      fra.me.REG[3] = fra.me.REG[3];
+      CALL_stream___OStream___write(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+    } else {
+      /* ./abstracttool.nit:124 */
+      fra.me.REG[3] = CALL_abstractmetamodel___MMLocalClass___global_properties(fra.me.REG[0])(fra.me.REG[0]);
+      CALL_abstract_collection___Collection___iterate(fra.me.REG[3])(fra.me.REG[3], (&(fra.me)), ((fun_t)OC_abstracttool___MMLocalClass___dump_properties_5));
     }
-    /* Register variable[8]: Result */
-    /* Ensure var variable[8]: super-string element*/
-    CALL_abstract_collection___SimpleCollection___add(variable[7])(variable[7], variable[8]) /*AbstractArray::add*/;
-    /* Register variable[7]: Result */
-    variable[7] = CALL_string___Object___to_s(variable[7])(variable[7]) /*Object::to_s*/;
-    CALL_stream___OStream___write( variable[1] /*file*/)( variable[1] /*file*/, variable[7]) /*OStream::write*/;
-    continue_24: while(0);
-    CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*Iterator::next*/;
-  }
-  break_24: while(0);
-  variable[3] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[4]: Once String constant */
-  if (once_value_28 != NIT_NULL) variable[4] = once_value_28;
-  else {
-    variable[4] = NEW_String_string___String___with_native(BOX_NativeString("end # "), TAG_Int(6)) /*new String*/;
-    once_value_28 = variable[4];
-  }
-  /* Register variable[4]: Result */
-  /* Ensure var variable[4]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
-  /* Ensure var variable[0]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], CALL_string___Object___to_s(variable[0])(variable[0]) /*Object::to_s*/) /*AbstractArray::add*/;
-  /* Register variable[4]: Once String constant */
-  if (once_value_29 != NIT_NULL) variable[4] = once_value_29;
-  else {
-    variable[4] = NEW_String_string___String___with_native(BOX_NativeString("\n"), TAG_Int(1)) /*new String*/;
-    once_value_29 = variable[4];
   }
-  /* Register variable[4]: Result */
-  /* Ensure var variable[4]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_string___Object___to_s(variable[3])(variable[3]) /*Object::to_s*/;
-  CALL_stream___OStream___write( variable[1] /*file*/)( variable[1] /*file*/, variable[3]) /*OStream::write*/;
-  return_label21: while(false);
-  tracehead = trace.prev;
+  /* ./abstracttool.nit:129 */
+  REGB0 = TAG_Int(3);
+  fra.me.REG[3] = NEW_Array_array___Array___with_capacity(REGB0);
+  if (!once_value_9) {
+    fra.me.REG[2] = BOX_NativeString("end # ");
+    REGB0 = TAG_Int(6);
+    fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+    once_value_9 = fra.me.REG[2];
+    register_static_object(&once_value_9);
+  } else fra.me.REG[2] = once_value_9;
+  fra.me.REG[2] = fra.me.REG[2];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
+  fra.me.REG[0] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
+  if (!once_value_10) {
+    fra.me.REG[0] = BOX_NativeString("\n");
+    REGB0 = TAG_Int(1);
+    fra.me.REG[0] = NEW_String_string___String___with_native(fra.me.REG[0], REGB0);
+    once_value_10 = fra.me.REG[0];
+    register_static_object(&once_value_10);
+  } else fra.me.REG[0] = once_value_10;
+  fra.me.REG[0] = fra.me.REG[0];
+  CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
+  fra.me.REG[3] = CALL_string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
+  CALL_stream___OStream___write(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+  stack_frame_head = fra.me.prev;
   return;
 }
+      void OC_abstracttool___MMLocalClass___dump_properties_5(struct stack_frame_t *closctx, val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
+        struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+        val_t REGB0;
+        fun_t CREG[1];
+        val_t tmp;
+        static val_t once_value_6; /* Once value */
+        static val_t once_value_7; /* Once value */
+        static val_t once_value_8; /* Once value */
+        fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+        fra.me.file = LOCATE_abstracttool;
+        fra.me.line = 0;
+        fra.me.meth = LOCATE_abstracttool___MMLocalClass___dump_properties;
+        fra.me.has_broke = 0;
+        fra.me.REG_size = 3;
+        fra.me.REG[0] = NIT_NULL;
+        fra.me.REG[1] = NIT_NULL;
+        fra.me.REG[2] = NIT_NULL;
+        fra.me.closure_ctx = closctx_param;
+        fra.me.closure_funs = CREG;
+        fra.me.REG[0] = p0;
+        CREG[0] = clos_fun0;
+        /* ./abstracttool.nit:125 */
+        fra.me.REG[0] = CALL_abstractmetamodel___MMLocalClass_____bra(closctx->REG[0])(closctx->REG[0], fra.me.REG[0]);
+        /* ./abstracttool.nit:126 */
+        REGB0 = TAG_Int(5);
+        fra.me.REG[1] = NEW_Array_array___Array___with_capacity(REGB0);
+        if (!once_value_6) {
+          fra.me.REG[2] = BOX_NativeString("\t");
+          REGB0 = TAG_Int(1);
+          fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+          once_value_6 = fra.me.REG[2];
+          register_static_object(&once_value_6);
+        } else fra.me.REG[2] = once_value_6;
+        fra.me.REG[2] = fra.me.REG[2];
+        CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+        fra.me.REG[2] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+        CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+        if (!once_value_7) {
+          fra.me.REG[2] = BOX_NativeString("");
+          REGB0 = TAG_Int(0);
+          fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+          once_value_7 = fra.me.REG[2];
+          register_static_object(&once_value_7);
+        } else fra.me.REG[2] = once_value_7;
+        fra.me.REG[2] = fra.me.REG[2];
+        CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+        fra.me.REG[2] = CALL_static_type___MMLocalClass___get_type(closctx->REG[0])(closctx->REG[0]);
+        fra.me.REG[2] = CALL_static_type___MMLocalProperty___signature_for(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
+        fra.me.REG[2] = CALL_string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
+        CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+        if (!once_value_8) {
+          fra.me.REG[2] = BOX_NativeString("\n");
+          REGB0 = TAG_Int(1);
+          fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+          once_value_8 = fra.me.REG[2];
+          register_static_object(&once_value_8);
+        } else fra.me.REG[2] = once_value_8;
+        fra.me.REG[2] = fra.me.REG[2];
+        CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+        fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+        CALL_stream___OStream___write(closctx->REG[1])(closctx->REG[1], fra.me.REG[1]);
+        stack_frame_head = fra.me.prev;
+        return;
+      }