c_src: update
[nit.git] / c_src / nitc._sep.c
index 369b8a4..cf69958 100644 (file)
 /* This C file is generated by NIT to compile module nitc. */
 #include "nitc._sep.h"
-void nitc___NitCompiler___process_options(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 41, LOCATE_nitc___NitCompiler___process_options};
-    static val_t once_value_1 = NIT_NULL; /* Once value for string variable[2]*/
-    static val_t once_value_2; static int once_bool_2; /* Once value for variable[3]*/
-      static val_t once_value_3 = NIT_NULL; /* Once value for string variable[3]*/
-      static val_t once_value_4 = NIT_NULL; /* Once value for string variable[3]*/
-    static val_t once_value_5; static int once_bool_5; /* Once value for variable[3]*/
-      static val_t once_value_6 = NIT_NULL; /* Once value for string variable[3]*/
-      static val_t once_value_7 = NIT_NULL; /* Once value for string variable[5]*/
-      static val_t once_value_8 = NIT_NULL; /* Once value for string variable[5]*/
-      static val_t once_value_9 = NIT_NULL; /* Once value for string variable[4]*/
-      static val_t once_value_10 = NIT_NULL; /* Once value for string variable[4]*/
-      static val_t once_value_11 = NIT_NULL; /* Once value for string variable[3]*/
-    static val_t once_value_12; static int once_bool_12; /* Once value for variable[3]*/
-      static val_t once_value_13 = NIT_NULL; /* Once value for string variable[3]*/
-      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[5]*/
-      static val_t once_value_16 = NIT_NULL; /* Once value for string variable[4]*/
-      static val_t once_value_17 = NIT_NULL; /* Once value for string variable[4]*/
-      static val_t once_value_18 = NIT_NULL; /* Once value for string variable[3]*/
-  val_t variable[6];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  CALL_SUPER_nitc___NitCompiler___process_options(variable[0])(variable[0]) /*super NitCompiler::process_options*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_nitc___NitCompiler___opt_output(variable[0])(variable[0]) /*NitCompiler::opt_output*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  CALL_compiling_base___ToolContext___output_file__eq(variable[0])(variable[0], variable[2]) /*ToolContext::output_file=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_nitc___NitCompiler___opt_boost(variable[0])(variable[0]) /*NitCompiler::opt_boost*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  CALL_compiling_base___ToolContext___boost__eq(variable[0])(variable[0], variable[2]) /*ToolContext::boost=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_nitc___NitCompiler___opt_no_cc(variable[0])(variable[0]) /*NitCompiler::opt_no_cc*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  CALL_compiling_base___ToolContext___no_cc__eq(variable[0])(variable[0], variable[2]) /*ToolContext::no_cc=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_nitc___NitCompiler___opt_extension_prefix(variable[0])(variable[0]) /*NitCompiler::opt_extension_prefix*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  CALL_compiling_base___ToolContext___ext_prefix__eq(variable[0])(variable[0], variable[2]) /*ToolContext::ext_prefix=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_compiling_base___ToolContext___ext_prefix(variable[0])(variable[0]) /*ToolContext::ext_prefix*/;
-  /* Register variable[2]: Result */
-  variable[2] = TAG_Bool((variable[2] ==  NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2],  NIT_NULL /*null*/) /*String::==*/)));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Once String constant */
-    if (once_value_1 != NIT_NULL) variable[2] = once_value_1;
-    else {
-      variable[2] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-      once_value_1 = variable[2];
+void nitc___NitCompiler___process_options(val_t p0){
+  struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  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 */
+      static val_t once_value_9; /* Once value */
+      static val_t once_value_10; /* Once value */
+      static val_t once_value_11; /* Once value */
+    static val_t once_value_12; /* Once value */
+      static val_t once_value_13; /* Once value */
+      static val_t once_value_14; /* Once value */
+      static val_t once_value_15; /* Once value */
+      static val_t once_value_16; /* Once value */
+      static val_t once_value_17; /* Once value */
+      static val_t once_value_18; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_nitc;
+  fra.me.line = 45;
+  fra.me.meth = LOCATE_nitc___NitCompiler___process_options;
+  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] = fra.me.REG[0];
+  /* ./nitc.nit:47 */
+  CALL_SUPER_nitc___NitCompiler___process_options(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[0] = CALL_nitc___NitCompiler___opt_output(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[0] = CALL_opts___Option___value(fra.me.REG[0])(fra.me.REG[0]);
+  /* ./nitc.nit:48 */
+  CALL_compiling_base___ToolContext___output_file__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  fra.me.REG[0] = CALL_nitc___NitCompiler___opt_boost(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[0] = CALL_opts___Option___value(fra.me.REG[0])(fra.me.REG[0]);
+  /* ./nitc.nit:49 */
+  CALL_compiling_base___ToolContext___boost__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  fra.me.REG[0] = CALL_nitc___NitCompiler___opt_no_cc(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[0] = CALL_opts___Option___value(fra.me.REG[0])(fra.me.REG[0]);
+  /* ./nitc.nit:50 */
+  CALL_compiling_base___ToolContext___no_cc__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  fra.me.REG[0] = CALL_nitc___NitCompiler___opt_extension_prefix(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[0] = CALL_opts___Option___value(fra.me.REG[0])(fra.me.REG[0]);
+  REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+  /* ./nitc.nit:52 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      REGB1 = TAG_Bool(false);
+      REGB0 = REGB1;
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
+      REGB0 = REGB1;
     }
-    /* Register variable[2]: Result */
-    CALL_compiling_base___ToolContext___ext_prefix__eq(variable[0])(variable[0], variable[2]) /*ToolContext::ext_prefix=*/;
   }
-  /* Register variable[2]: Result */
-  variable[2] = CALL_nitc___NitCompiler___opt_global(variable[0])(variable[0]) /*NitCompiler::opt_global*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  CALL_compiling_base___ToolContext___global__eq(variable[0])(variable[0], variable[2]) /*ToolContext::global=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_nitc___NitCompiler___opt_compdir(variable[0])(variable[0]) /*NitCompiler::opt_compdir*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  CALL_compiling_base___ToolContext___compdir__eq(variable[0])(variable[0], variable[2]) /*ToolContext::compdir=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_compiling_base___ToolContext___compdir(variable[0])(variable[0]) /*ToolContext::compdir*/;
-  /* Register variable[2]: Result */
-  variable[2] = TAG_Bool((variable[2] ==  NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2],  NIT_NULL /*null*/) /*String::==*/)));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Local variable */
-    /* Register variable[3]: Once expression result */
-    if (once_bool_2) variable[3] = once_value_2;
-    else {
-      /* Register variable[3]: Once String constant */
-      if (once_value_3 != NIT_NULL) variable[3] = once_value_3;
-      else {
-        variable[3] = NEW_String_string___String___with_native(BOX_NativeString("NIT_COMPDIR"), TAG_Int(11)) /*new String*/;
-        once_value_3 = variable[3];
-      }
-      /* Register variable[3]: Result */
-      /* Register variable[3]: Result */
-      variable[3] = CALL_symbol___String___to_symbol(variable[3])(variable[3]) /*String::to_symbol*/;
-      /* Register variable[3]: Result */
-      variable[3] = CALL_environ___Symbol___environ(variable[3])(variable[3]) /*Symbol::environ*/;
-      once_value_2 = variable[3];
-      once_bool_2 = true;
+  REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
+  if (UNTAG_Bool(REGB0)) {
+    CALL_compiling_base___ToolContext___ext_prefix__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  } else {
+    if (!once_value_1) {
+      fra.me.REG[0] = BOX_NativeString("");
+      REGB0 = TAG_Int(0);
+      fra.me.REG[0] = NEW_String_string___String___with_native(fra.me.REG[0], REGB0);
+      once_value_1 = fra.me.REG[0];
+      register_static_object(&once_value_1);
+    } else fra.me.REG[0] = once_value_1;
+    CALL_compiling_base___ToolContext___ext_prefix__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  }
+  fra.me.REG[0] = CALL_nitc___NitCompiler___opt_global(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[0] = CALL_opts___Option___value(fra.me.REG[0])(fra.me.REG[0]);
+  /* ./nitc.nit:53 */
+  CALL_compiling_base___ToolContext___global__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  fra.me.REG[0] = CALL_nitc___NitCompiler___opt_compdir(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[0] = CALL_opts___Option___value(fra.me.REG[0])(fra.me.REG[0]);
+  /* ./nitc.nit:54 */
+  CALL_compiling_base___ToolContext___compdir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  fra.me.REG[0] = CALL_compiling_base___ToolContext___compdir(fra.me.REG[1])(fra.me.REG[1]);
+  REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+  /* ./nitc.nit:55 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      REGB1 = TAG_Bool(false);
+      REGB0 = REGB1;
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
+      REGB0 = REGB1;
     }
-    /* Register variable[3]: Result */
-    variable[2] = variable[3];
-    /* Register variable[3]: Result */
-    variable[3] = CALL_abstract_collection___Collection___is_empty( variable[2] /*dir*/)( variable[2] /*dir*/) /*AbstractArrayRead::is_empty*/;
-    if (UNTAG_Bool( TAG_Bool(!UNTAG_Bool(variable[3])))) { /*if*/
-      CALL_compiling_base___ToolContext___compdir__eq(variable[0])(variable[0],  variable[2] /*dir*/) /*ToolContext::compdir=*/;
+  }
+  if (UNTAG_Bool(REGB0)) {
+    /* ./nitc.nit:56 */
+    if (!once_value_2) {
+      if (!once_value_3) {
+        fra.me.REG[0] = BOX_NativeString("NIT_COMPDIR");
+        REGB0 = TAG_Int(11);
+        fra.me.REG[0] = NEW_String_string___String___with_native(fra.me.REG[0], REGB0);
+        once_value_3 = fra.me.REG[0];
+        register_static_object(&once_value_3);
+      } else fra.me.REG[0] = once_value_3;
+      fra.me.REG[0] = CALL_symbol___String___to_symbol(fra.me.REG[0])(fra.me.REG[0]);
+      fra.me.REG[0] = CALL_environ___Symbol___environ(fra.me.REG[0])(fra.me.REG[0]);
+      once_value_2 = fra.me.REG[0];
+      register_static_object(&once_value_2);
+    } else fra.me.REG[0] = once_value_2;
+    REGB0 = CALL_abstract_collection___Collection___is_empty(fra.me.REG[0])(fra.me.REG[0]);
+    REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
+    /* ./nitc.nit:57 */
+    if (UNTAG_Bool(REGB0)) {
+      /* ./nitc.nit:58 */
+      CALL_compiling_base___ToolContext___compdir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
     }
-    /* Register variable[3]: Result */
-    variable[3] = CALL_compiling_base___ToolContext___compdir(variable[0])(variable[0]) /*ToolContext::compdir*/;
-    /* Register variable[3]: Result */
-    variable[3] = TAG_Bool((variable[3] ==  NIT_NULL /*null*/) || ((variable[3] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3],  NIT_NULL /*null*/) /*String::==*/)));
-    if (UNTAG_Bool(variable[3])) { /*if*/
-      /* Register variable[3]: Once String constant */
-      if (once_value_4 != NIT_NULL) variable[3] = once_value_4;
-      else {
-        variable[3] = NEW_String_string___String___with_native(BOX_NativeString(".nit_compile"), TAG_Int(12)) /*new String*/;
-        once_value_4 = variable[3];
+    fra.me.REG[0] = CALL_compiling_base___ToolContext___compdir(fra.me.REG[1])(fra.me.REG[1]);
+    REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+    /* ./nitc.nit:60 */
+    if (UNTAG_Bool(REGB0)) {
+    } else {
+      REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+      if (UNTAG_Bool(REGB1)) {
+        REGB1 = TAG_Bool(false);
+        REGB0 = REGB1;
+      } else {
+        REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
+        REGB0 = REGB1;
       }
-      /* Register variable[3]: Result */
-      CALL_compiling_base___ToolContext___compdir__eq(variable[0])(variable[0], variable[3]) /*ToolContext::compdir=*/;
+    }
+    if (UNTAG_Bool(REGB0)) {
+      /* ./nitc.nit:61 */
+      if (!once_value_4) {
+        fra.me.REG[0] = BOX_NativeString(".nit_compile");
+        REGB0 = TAG_Int(12);
+        fra.me.REG[0] = NEW_String_string___String___with_native(fra.me.REG[0], REGB0);
+        once_value_4 = fra.me.REG[0];
+        register_static_object(&once_value_4);
+      } else fra.me.REG[0] = once_value_4;
+      CALL_compiling_base___ToolContext___compdir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
     }
   }
-  /* Register variable[2]: Result */
-  variable[2] = CALL_compiling_base___ToolContext___ext_prefix(variable[0])(variable[0]) /*ToolContext::ext_prefix*/;
-  CALL_compiling_base___ToolContext___compdir__eq(variable[0])(variable[0], CALL_string___String_____plus(CALL_compiling_base___ToolContext___compdir(variable[0])(variable[0]) /*ToolContext::compdir*/)(CALL_compiling_base___ToolContext___compdir(variable[0])(variable[0]) /*ToolContext::compdir*/, variable[2]) /*String::+*/) /*ToolContext::compdir=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_nitc___NitCompiler___opt_clibdir(variable[0])(variable[0]) /*NitCompiler::opt_clibdir*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  CALL_compiling_base___ToolContext___clibdir__eq(variable[0])(variable[0], variable[2]) /*ToolContext::clibdir=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_compiling_base___ToolContext___clibdir(variable[0])(variable[0]) /*ToolContext::clibdir*/;
-  /* Register variable[2]: Result */
-  variable[2] = TAG_Bool((variable[2] ==  NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2],  NIT_NULL /*null*/) /*String::==*/)));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Local variable */
-    /* Register variable[3]: Once expression result */
-    if (once_bool_5) variable[3] = once_value_5;
-    else {
-      /* Register variable[3]: Once String constant */
-      if (once_value_6 != NIT_NULL) variable[3] = once_value_6;
-      else {
-        variable[3] = NEW_String_string___String___with_native(BOX_NativeString("NIT_DIR"), TAG_Int(7)) /*new String*/;
-        once_value_6 = variable[3];
-      }
-      /* Register variable[3]: Result */
-      /* Register variable[3]: Result */
-      variable[3] = CALL_symbol___String___to_symbol(variable[3])(variable[3]) /*String::to_symbol*/;
-      /* Register variable[3]: Result */
-      variable[3] = CALL_environ___Symbol___environ(variable[3])(variable[3]) /*Symbol::environ*/;
-      once_value_5 = variable[3];
-      once_bool_5 = true;
+  fra.me.REG[0] = CALL_compiling_base___ToolContext___compdir(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[2] = CALL_compiling_base___ToolContext___ext_prefix(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[2] = CALL_string___String_____plus(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
+  /* ./nitc.nit:64 */
+  CALL_compiling_base___ToolContext___compdir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  fra.me.REG[2] = CALL_nitc___NitCompiler___opt_clibdir(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[2] = CALL_opts___Option___value(fra.me.REG[2])(fra.me.REG[2]);
+  /* ./nitc.nit:66 */
+  CALL_compiling_base___ToolContext___clibdir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  fra.me.REG[2] = CALL_compiling_base___ToolContext___clibdir(fra.me.REG[1])(fra.me.REG[1]);
+  REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+  /* ./nitc.nit:67 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      REGB1 = TAG_Bool(false);
+      REGB0 = REGB1;
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
+      REGB0 = REGB1;
     }
-    /* Register variable[3]: Result */
-    variable[2] = variable[3];
-    /* Register variable[3]: Result */
-    variable[3] = CALL_abstract_collection___Collection___is_empty( variable[2] /*dir*/)( variable[2] /*dir*/) /*AbstractArrayRead::is_empty*/;
-    if (UNTAG_Bool(variable[3])) { /*if*/
-      /* Register variable[3]: Local variable */
-      variable[4] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-      /* Register variable[5]: Once String constant */
-      if (once_value_7 != NIT_NULL) variable[5] = once_value_7;
-      else {
-        variable[5] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-        once_value_7 = 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] = (G_sys);
-      /* Register variable[5]: Result */
-      variable[5] = CALL_string___Sys___program_name(variable[5])(variable[5]) /*Sys::program_name*/;
-      /* Register variable[5]: Result */
-      variable[5] = CALL_file___String___dirname(variable[5])(variable[5]) /*String::dirname*/;
-      /* Ensure var variable[5]: 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_8 != NIT_NULL) variable[5] = once_value_8;
-      else {
-        variable[5] = NEW_String_string___String___with_native(BOX_NativeString("/../lib"), TAG_Int(7)) /*new String*/;
-        once_value_8 = 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]: Result */
-      variable[4] = CALL_file___String___file_exists( variable[3] /*dir*/)( variable[3] /*dir*/) /*String::file_exists*/;
-      if (UNTAG_Bool(variable[4])) { /*if*/
-        CALL_compiling_base___ToolContext___clibdir__eq(variable[0])(variable[0],  variable[3] /*dir*/) /*ToolContext::clibdir=*/;
-      }
-    } else { /*if*/
-      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_9 != NIT_NULL) variable[4] = once_value_9;
-      else {
-        variable[4] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-        once_value_9 = 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*/;
-      variable[4] =  variable[2] /*dir*/ /* Ensure var: super-string element*/;
-      CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
-      /* Register variable[4]: Once String constant */
-      if (once_value_10 != NIT_NULL) variable[4] = once_value_10;
-      else {
-        variable[4] = NEW_String_string___String___with_native(BOX_NativeString("/lib"), TAG_Int(4)) /*new String*/;
-        once_value_10 = variable[4];
+  }
+  if (UNTAG_Bool(REGB0)) {
+    /* ./nitc.nit:68 */
+    if (!once_value_5) {
+      if (!once_value_6) {
+        fra.me.REG[2] = BOX_NativeString("NIT_DIR");
+        REGB0 = TAG_Int(7);
+        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] = CALL_symbol___String___to_symbol(fra.me.REG[2])(fra.me.REG[2]);
+      fra.me.REG[2] = CALL_environ___Symbol___environ(fra.me.REG[2])(fra.me.REG[2]);
+      once_value_5 = fra.me.REG[2];
+      register_static_object(&once_value_5);
+    } else fra.me.REG[2] = once_value_5;
+    REGB0 = CALL_abstract_collection___Collection___is_empty(fra.me.REG[2])(fra.me.REG[2]);
+    /* ./nitc.nit:69 */
+    if (UNTAG_Bool(REGB0)) {
+      REGB0 = TAG_Int(3);
+      fra.me.REG[0] = NEW_Array_array___Array___with_capacity(REGB0);
+      /* ./nitc.nit:70 */
+      if (!once_value_7) {
+        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_7 = fra.me.REG[3];
+        register_static_object(&once_value_7);
+      } else fra.me.REG[3] = once_value_7;
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      fra.me.REG[3] = CALL_kernel___Object___sys(fra.me.REG[1])(fra.me.REG[1]);
+      fra.me.REG[3] = CALL_string___Sys___program_name(fra.me.REG[3])(fra.me.REG[3]);
+      fra.me.REG[3] = CALL_file___String___dirname(fra.me.REG[3])(fra.me.REG[3]);
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      if (!once_value_8) {
+        fra.me.REG[3] = BOX_NativeString("/../clib");
+        REGB0 = TAG_Int(8);
+        fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+        once_value_8 = fra.me.REG[3];
+        register_static_object(&once_value_8);
+      } else fra.me.REG[3] = once_value_8;
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      fra.me.REG[0] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+      fra.me.REG[2] = fra.me.REG[0];
+      REGB0 = CALL_file___String___file_exists(fra.me.REG[2])(fra.me.REG[2]);
+      /* ./nitc.nit:71 */
+      if (UNTAG_Bool(REGB0)) {
+        CALL_compiling_base___ToolContext___clibdir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
       }
-      /* 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*/;
-      variable[2] = variable[3] /*dir=*/;
-      /* Register variable[3]: Result */
-      variable[3] = CALL_file___String___file_exists( variable[2] /*dir*/)( variable[2] /*dir*/) /*String::file_exists*/;
-      if (UNTAG_Bool(variable[3])) { /*if*/
-        CALL_compiling_base___ToolContext___clibdir__eq(variable[0])(variable[0],  variable[2] /*dir*/) /*ToolContext::clibdir=*/;
+    } else {
+      REGB0 = TAG_Int(3);
+      fra.me.REG[0] = NEW_Array_array___Array___with_capacity(REGB0);
+      /* ./nitc.nit:73 */
+      if (!once_value_9) {
+        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_9 = fra.me.REG[3];
+        register_static_object(&once_value_9);
+      } else fra.me.REG[3] = once_value_9;
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      array___Array___add(fra.me.REG[0], fra.me.REG[2]);
+      if (!once_value_10) {
+        fra.me.REG[3] = BOX_NativeString("/clib");
+        REGB0 = TAG_Int(5);
+        fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+        once_value_10 = fra.me.REG[3];
+        register_static_object(&once_value_10);
+      } else fra.me.REG[3] = once_value_10;
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      fra.me.REG[0] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+      fra.me.REG[2] = fra.me.REG[0];
+      REGB0 = CALL_file___String___file_exists(fra.me.REG[2])(fra.me.REG[2]);
+      /* ./nitc.nit:74 */
+      if (UNTAG_Bool(REGB0)) {
+        CALL_compiling_base___ToolContext___clibdir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
       }
     }
-    /* Register variable[3]: Result */
-    variable[3] = CALL_compiling_base___ToolContext___clibdir(variable[0])(variable[0]) /*ToolContext::clibdir*/;
-    /* Register variable[3]: Result */
-    variable[3] = TAG_Bool((variable[3] ==  NIT_NULL /*null*/) || ((variable[3] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3],  NIT_NULL /*null*/) /*String::==*/)));
-    if (UNTAG_Bool(variable[3])) { /*if*/
-      /* Register variable[3]: Once String constant */
-      if (once_value_11 != NIT_NULL) variable[3] = once_value_11;
-      else {
-        variable[3] = NEW_String_string___String___with_native(BOX_NativeString("Error: Cannot locate NIT C library directory. Uses --clibdir or envvar NIT_DIR."), TAG_Int(79)) /*new String*/;
-        once_value_11 = variable[3];
+    fra.me.REG[2] = CALL_compiling_base___ToolContext___clibdir(fra.me.REG[1])(fra.me.REG[1]);
+    REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+    /* ./nitc.nit:76 */
+    if (UNTAG_Bool(REGB0)) {
+    } else {
+      REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+      if (UNTAG_Bool(REGB1)) {
+        REGB1 = TAG_Bool(false);
+        REGB0 = REGB1;
+      } else {
+        REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
+        REGB0 = REGB1;
       }
-      /* Register variable[3]: Result */
-      CALL_mmloader___ToolContext___error(variable[0])(variable[0], variable[3]) /*ToolContext::error*/;
-      exit(UNTAG_Int( TAG_Int(1)));
+    }
+    if (UNTAG_Bool(REGB0)) {
+      /* ./nitc.nit:77 */
+      if (!once_value_11) {
+        fra.me.REG[2] = BOX_NativeString("Error: Cannot locate NIT C library directory. Uses --clibdir or envvar NIT_DIR.");
+        REGB0 = TAG_Int(79);
+        fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+        once_value_11 = fra.me.REG[2];
+        register_static_object(&once_value_11);
+      } else fra.me.REG[2] = once_value_11;
+      CALL_mmloader___ToolContext___fatal_error(fra.me.REG[1])(fra.me.REG[1], NIT_NULL, fra.me.REG[2]);
     }
   }
-  /* Register variable[2]: Result */
-  variable[2] = CALL_nitc___NitCompiler___opt_bindir(variable[0])(variable[0]) /*NitCompiler::opt_bindir*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_opts___Option___value(variable[2])(variable[2]) /*Option::value*/;
-  CALL_compiling_base___ToolContext___bindir__eq(variable[0])(variable[0], variable[2]) /*ToolContext::bindir=*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_compiling_base___ToolContext___bindir(variable[0])(variable[0]) /*ToolContext::bindir*/;
-  /* Register variable[2]: Result */
-  variable[2] = TAG_Bool((variable[2] ==  NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2],  NIT_NULL /*null*/) /*String::==*/)));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Local variable */
-    /* Register variable[3]: Once expression result */
-    if (once_bool_12) variable[3] = once_value_12;
-    else {
-      /* Register variable[3]: Once String constant */
-      if (once_value_13 != NIT_NULL) variable[3] = once_value_13;
-      else {
-        variable[3] = NEW_String_string___String___with_native(BOX_NativeString("NIT_DIR"), TAG_Int(7)) /*new String*/;
-        once_value_13 = variable[3];
-      }
-      /* Register variable[3]: Result */
-      /* Register variable[3]: Result */
-      variable[3] = CALL_symbol___String___to_symbol(variable[3])(variable[3]) /*String::to_symbol*/;
-      /* Register variable[3]: Result */
-      variable[3] = CALL_environ___Symbol___environ(variable[3])(variable[3]) /*Symbol::environ*/;
-      once_value_12 = variable[3];
-      once_bool_12 = true;
+  fra.me.REG[2] = CALL_nitc___NitCompiler___opt_bindir(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[2] = CALL_opts___Option___value(fra.me.REG[2])(fra.me.REG[2]);
+  /* ./nitc.nit:80 */
+  CALL_compiling_base___ToolContext___bindir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  fra.me.REG[2] = CALL_compiling_base___ToolContext___bindir(fra.me.REG[1])(fra.me.REG[1]);
+  REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+  /* ./nitc.nit:82 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      REGB1 = TAG_Bool(false);
+      REGB0 = REGB1;
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
+      REGB0 = REGB1;
     }
-    /* Register variable[3]: Result */
-    variable[2] = variable[3];
-    /* Register variable[3]: Result */
-    variable[3] = CALL_abstract_collection___Collection___is_empty( variable[2] /*dir*/)( variable[2] /*dir*/) /*AbstractArrayRead::is_empty*/;
-    if (UNTAG_Bool(variable[3])) { /*if*/
-      /* Register variable[3]: Local variable */
-      variable[4] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-      /* 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[5]: Result */
-      variable[5] = (G_sys);
-      /* Register variable[5]: Result */
-      variable[5] = CALL_string___Sys___program_name(variable[5])(variable[5]) /*Sys::program_name*/;
-      /* Register variable[5]: Result */
-      variable[5] = CALL_file___String___dirname(variable[5])(variable[5]) /*String::dirname*/;
-      /* Ensure var variable[5]: 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_15 != NIT_NULL) variable[5] = once_value_15;
-      else {
-        variable[5] = NEW_String_string___String___with_native(BOX_NativeString("/../bin"), TAG_Int(7)) /*new String*/;
-        once_value_15 = 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]: Result */
-      variable[4] = CALL_file___String___file_exists( variable[3] /*dir*/)( variable[3] /*dir*/) /*String::file_exists*/;
-      if (UNTAG_Bool(variable[4])) { /*if*/
-        CALL_compiling_base___ToolContext___bindir__eq(variable[0])(variable[0],  variable[3] /*dir*/) /*ToolContext::bindir=*/;
-      }
-    } else { /*if*/
-      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_16 != NIT_NULL) variable[4] = once_value_16;
-      else {
-        variable[4] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/;
-        once_value_16 = 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*/;
-      variable[4] =  variable[2] /*dir*/ /* Ensure var: super-string element*/;
-      CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
-      /* Register variable[4]: Once String constant */
-      if (once_value_17 != NIT_NULL) variable[4] = once_value_17;
-      else {
-        variable[4] = NEW_String_string___String___with_native(BOX_NativeString("/bin"), TAG_Int(4)) /*new String*/;
-        once_value_17 = variable[4];
+  }
+  if (UNTAG_Bool(REGB0)) {
+    /* ./nitc.nit:83 */
+    if (!once_value_12) {
+      if (!once_value_13) {
+        fra.me.REG[2] = BOX_NativeString("NIT_DIR");
+        REGB0 = TAG_Int(7);
+        fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+        once_value_13 = fra.me.REG[2];
+        register_static_object(&once_value_13);
+      } else fra.me.REG[2] = once_value_13;
+      fra.me.REG[2] = CALL_symbol___String___to_symbol(fra.me.REG[2])(fra.me.REG[2]);
+      fra.me.REG[2] = CALL_environ___Symbol___environ(fra.me.REG[2])(fra.me.REG[2]);
+      once_value_12 = fra.me.REG[2];
+      register_static_object(&once_value_12);
+    } else fra.me.REG[2] = once_value_12;
+    REGB0 = CALL_abstract_collection___Collection___is_empty(fra.me.REG[2])(fra.me.REG[2]);
+    /* ./nitc.nit:84 */
+    if (UNTAG_Bool(REGB0)) {
+      REGB0 = TAG_Int(3);
+      fra.me.REG[0] = NEW_Array_array___Array___with_capacity(REGB0);
+      /* ./nitc.nit:85 */
+      if (!once_value_14) {
+        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_14 = fra.me.REG[3];
+        register_static_object(&once_value_14);
+      } else fra.me.REG[3] = once_value_14;
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      fra.me.REG[3] = CALL_kernel___Object___sys(fra.me.REG[1])(fra.me.REG[1]);
+      fra.me.REG[3] = CALL_string___Sys___program_name(fra.me.REG[3])(fra.me.REG[3]);
+      fra.me.REG[3] = CALL_file___String___dirname(fra.me.REG[3])(fra.me.REG[3]);
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      if (!once_value_15) {
+        fra.me.REG[3] = BOX_NativeString("/../bin");
+        REGB0 = TAG_Int(7);
+        fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+        once_value_15 = fra.me.REG[3];
+        register_static_object(&once_value_15);
+      } else fra.me.REG[3] = once_value_15;
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      fra.me.REG[0] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+      fra.me.REG[2] = fra.me.REG[0];
+      REGB0 = CALL_file___String___file_exists(fra.me.REG[2])(fra.me.REG[2]);
+      /* ./nitc.nit:86 */
+      if (UNTAG_Bool(REGB0)) {
+        CALL_compiling_base___ToolContext___bindir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
       }
-      /* 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*/;
-      variable[2] = variable[3] /*dir=*/;
-      /* Register variable[3]: Result */
-      variable[3] = CALL_file___String___file_exists( variable[2] /*dir*/)( variable[2] /*dir*/) /*String::file_exists*/;
-      if (UNTAG_Bool(variable[3])) { /*if*/
-        CALL_compiling_base___ToolContext___bindir__eq(variable[0])(variable[0],  variable[2] /*dir*/) /*ToolContext::bindir=*/;
+    } else {
+      REGB0 = TAG_Int(3);
+      fra.me.REG[0] = NEW_Array_array___Array___with_capacity(REGB0);
+      /* ./nitc.nit:88 */
+      if (!once_value_16) {
+        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_16 = fra.me.REG[3];
+        register_static_object(&once_value_16);
+      } else fra.me.REG[3] = once_value_16;
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      array___Array___add(fra.me.REG[0], fra.me.REG[2]);
+      if (!once_value_17) {
+        fra.me.REG[3] = BOX_NativeString("/bin");
+        REGB0 = TAG_Int(4);
+        fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+        once_value_17 = fra.me.REG[3];
+        register_static_object(&once_value_17);
+      } else fra.me.REG[3] = once_value_17;
+      array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+      fra.me.REG[0] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+      fra.me.REG[2] = fra.me.REG[0];
+      REGB0 = CALL_file___String___file_exists(fra.me.REG[2])(fra.me.REG[2]);
+      /* ./nitc.nit:89 */
+      if (UNTAG_Bool(REGB0)) {
+        CALL_compiling_base___ToolContext___bindir__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
       }
     }
-    /* Register variable[3]: Result */
-    variable[3] = CALL_compiling_base___ToolContext___bindir(variable[0])(variable[0]) /*ToolContext::bindir*/;
-    /* Register variable[3]: Result */
-    variable[3] = TAG_Bool((variable[3] ==  NIT_NULL /*null*/) || ((variable[3] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3],  NIT_NULL /*null*/) /*String::==*/)));
-    if (UNTAG_Bool(variable[3])) { /*if*/
-      /* Register variable[3]: Once String constant */
-      if (once_value_18 != NIT_NULL) variable[3] = once_value_18;
-      else {
-        variable[3] = NEW_String_string___String___with_native(BOX_NativeString("Error: Cannot locate NIT tools directory. Uses --bindir or envvar NIT_DIR."), TAG_Int(74)) /*new String*/;
-        once_value_18 = variable[3];
+    fra.me.REG[2] = CALL_compiling_base___ToolContext___bindir(fra.me.REG[1])(fra.me.REG[1]);
+    REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+    /* ./nitc.nit:91 */
+    if (UNTAG_Bool(REGB0)) {
+    } else {
+      REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+      if (UNTAG_Bool(REGB1)) {
+        REGB1 = TAG_Bool(false);
+        REGB0 = REGB1;
+      } else {
+        REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
+        REGB0 = REGB1;
       }
-      /* Register variable[3]: Result */
-      CALL_mmloader___ToolContext___error(variable[0])(variable[0], variable[3]) /*ToolContext::error*/;
-      exit(UNTAG_Int( TAG_Int(1)));
+    }
+    if (UNTAG_Bool(REGB0)) {
+      /* ./nitc.nit:92 */
+      if (!once_value_18) {
+        fra.me.REG[2] = BOX_NativeString("Error: Cannot locate NIT tools directory. Uses --bindir or envvar NIT_DIR.");
+        REGB0 = TAG_Int(74);
+        fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+        once_value_18 = fra.me.REG[2];
+        register_static_object(&once_value_18);
+      } else fra.me.REG[2] = once_value_18;
+      CALL_mmloader___ToolContext___fatal_error(fra.me.REG[1])(fra.me.REG[1], NIT_NULL, fra.me.REG[2]);
     }
   }
-  return_label0: while(false);
-  tracehead = trace.prev;
+  stack_frame_head = fra.me.prev;
   return;
 }
-void nitc___NitCompiler___perform_work(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 95, LOCATE_nitc___NitCompiler___perform_work};
-  val_t variable[7];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  /* 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 */
-  /* Register variable[3]: For iterator */
-  variable[3] = CALL_abstract_collection___Collection___iterator( variable[1] /*mods*/)( variable[1] /*mods*/) /*AbstractArrayRead::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[4]: For 'is_ok' result */
-    variable[4] = CALL_abstract_collection___Iterator___is_ok(variable[3])(variable[3]) /*ArrayIterator::is_ok*/;
-    if (!UNTAG_Bool(variable[4])) break; /*for*/
-    variable[4] = CALL_abstract_collection___Iterator___item(variable[3])(variable[3]) /*ArrayIterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[5]: Local variable */
-    variable[5] = variable[4];
-    /* Register variable[6]: Result */
-    variable[6] = TAG_Bool(( variable[5] /*mod*/==NIT_NULL) || VAL_ISA( variable[5] /*mod*/, COLOR_MMSrcModule, ID_MMSrcModule)) /*cast MMSrcModule*/;
-    if (!UNTAG_Bool(variable[6])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_nitc___NitCompiler___perform_work, LOCATE_nitc, 98); nit_exit(1);}
-    CALL_compiling___MMSrcModule___compile_prog_to_c( variable[5] /*mod*/)( variable[5] /*mod*/, variable[0]) /*MMSrcModule::compile_prog_to_c*/;
-    continue_20: while(0);
-    CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*ArrayIterator::next*/;
+void nitc___NitCompiler___perform_work(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t REGB0;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_nitc;
+  fra.me.line = 122;
+  fra.me.meth = LOCATE_nitc___NitCompiler___perform_work;
+  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;
+  fra.me.REG[2] = CALL_nitc___NitCompiler___opt_dump(fra.me.REG[0])(fra.me.REG[0]);
+  fra.me.REG[2] = CALL_opts___Option___value(fra.me.REG[2])(fra.me.REG[2]);
+  /* ./nitc.nit:124 */
+  if (UNTAG_Bool(fra.me.REG[2])) {
+    /* ./nitc.nit:125 */
+    CALL_nitc___NitCompiler___dump_intermediate_code(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
   }
-  break_20: while(0);
-  return_label19: while(false);
-  tracehead = trace.prev;
+  fra.me.REG[1] = CALL_abstract_collection___Collection___iterator(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./nitc.nit:127 */
+  while(1) {
+    REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[1])(fra.me.REG[1]);
+    if (UNTAG_Bool(REGB0)) {
+      fra.me.REG[2] = CALL_abstract_collection___Iterator___item(fra.me.REG[1])(fra.me.REG[1]);
+      fra.me.REG[2] = NEW_Program_program___Program___init(fra.me.REG[2]);
+      /* ./nitc.nit:129 */
+      CALL_program___Program___compute_main_method(fra.me.REG[2])(fra.me.REG[2]);
+      /* ./nitc.nit:130 */
+      CALL_table_computation___Program___do_table_computation(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
+      /* ./nitc.nit:131 */
+      CALL_compiling___Program___generate_classes_init_to_icode(fra.me.REG[2])(fra.me.REG[2]);
+      /* ./nitc.nit:132 */
+      CALL_compiling___Program___compile_prog_to_c(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
+    } else {
+      /* ./nitc.nit:127 */
+      goto label1;
+    }
+    CALL_abstract_collection___Iterator___next(fra.me.REG[1])(fra.me.REG[1]);
+  }
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
   return;
 }
-val_t nitc___NitCompiler___opt_output(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 26, LOCATE_nitc___NitCompiler___opt_output};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  tracehead = trace.prev;
-  return ATTR_nitc___NitCompiler____opt_output( self) /*NitCompiler::_opt_output*/;
+val_t nitc___NitCompiler___opt_output(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_nitc;
+  fra.me.line = 29;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_output;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_output(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:29 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_output");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 29);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_output(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t nitc___NitCompiler___opt_boost(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 27, LOCATE_nitc___NitCompiler___opt_boost};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  tracehead = trace.prev;
-  return ATTR_nitc___NitCompiler____opt_boost( self) /*NitCompiler::_opt_boost*/;
+val_t nitc___NitCompiler___opt_boost(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_nitc;
+  fra.me.line = 30;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_boost;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_boost(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:30 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_boost");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 30);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_boost(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t nitc___NitCompiler___opt_no_cc(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 28, LOCATE_nitc___NitCompiler___opt_no_cc};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  tracehead = trace.prev;
-  return ATTR_nitc___NitCompiler____opt_no_cc( self) /*NitCompiler::_opt_no_cc*/;
+val_t nitc___NitCompiler___opt_no_cc(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_nitc;
+  fra.me.line = 31;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_no_cc;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_no_cc(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:31 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_no_cc");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 31);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_no_cc(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t nitc___NitCompiler___opt_global(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 29, LOCATE_nitc___NitCompiler___opt_global};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  tracehead = trace.prev;
-  return ATTR_nitc___NitCompiler____opt_global( self) /*NitCompiler::_opt_global*/;
+val_t nitc___NitCompiler___opt_global(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_nitc;
+  fra.me.line = 32;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_global;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_global(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:32 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_global");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 32);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_global(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t nitc___NitCompiler___opt_clibdir(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 30, LOCATE_nitc___NitCompiler___opt_clibdir};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  tracehead = trace.prev;
-  return ATTR_nitc___NitCompiler____opt_clibdir( self) /*NitCompiler::_opt_clibdir*/;
+val_t nitc___NitCompiler___opt_clibdir(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_nitc;
+  fra.me.line = 33;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_clibdir;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_clibdir(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:33 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_clibdir");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 33);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_clibdir(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t nitc___NitCompiler___opt_bindir(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 31, LOCATE_nitc___NitCompiler___opt_bindir};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  tracehead = trace.prev;
-  return ATTR_nitc___NitCompiler____opt_bindir( self) /*NitCompiler::_opt_bindir*/;
+val_t nitc___NitCompiler___opt_bindir(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_nitc;
+  fra.me.line = 34;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_bindir;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_bindir(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:34 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_bindir");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 34);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_bindir(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t nitc___NitCompiler___opt_compdir(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 32, LOCATE_nitc___NitCompiler___opt_compdir};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  tracehead = trace.prev;
-  return ATTR_nitc___NitCompiler____opt_compdir( self) /*NitCompiler::_opt_compdir*/;
+val_t nitc___NitCompiler___opt_compdir(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_nitc;
+  fra.me.line = 35;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_compdir;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_compdir(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:35 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_compdir");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 35);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_compdir(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t nitc___NitCompiler___opt_extension_prefix(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 33, LOCATE_nitc___NitCompiler___opt_extension_prefix};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  tracehead = trace.prev;
-  return ATTR_nitc___NitCompiler____opt_extension_prefix( self) /*NitCompiler::_opt_extension_prefix*/;
+val_t nitc___NitCompiler___opt_extension_prefix(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_nitc;
+  fra.me.line = 36;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_extension_prefix;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_extension_prefix(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:36 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_extension_prefix");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 36);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_extension_prefix(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
+}
+val_t nitc___NitCompiler___opt_dump(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_nitc;
+  fra.me.line = 37;
+  fra.me.meth = LOCATE_nitc___NitCompiler___opt_dump;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  REGB0 = TAG_Bool(ATTR_nitc___NitCompiler____opt_dump(fra.me.REG[0])!=NIT_NULL);
+  /* ./nitc.nit:37 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_opt_dump");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 37);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_nitc___NitCompiler____opt_dump(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
+}
+void nitc___NitCompiler___init(val_t p0, int* init_table){
+  int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_NitCompiler].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
+  val_t REGB0;
+  val_t tmp;
+  static val_t once_value_1; /* Once value */
+  if (init_table[itpos0]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_nitc;
+  fra.me.line = 39;
+  fra.me.meth = LOCATE_nitc___NitCompiler___init;
+  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] = fra.me.REG[0];
+  /* ./nitc.nit:41 */
+  if (!once_value_1) {
+    fra.me.REG[2] = BOX_NativeString("nitc");
+    REGB0 = TAG_Int(4);
+    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;
+  CALL_abstracttool___AbstractCompiler___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2], init_table);
+  fra.me.REG[2] = CALL_mmloader___ToolContext___option_context(fra.me.REG[1])(fra.me.REG[1]);
+  REGB0 = TAG_Int(8);
+  fra.me.REG[0] = NEW_Array_array___Array___with_capacity(REGB0);
+  fra.me.REG[3] = CALL_nitc___NitCompiler___opt_output(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./nitc.nit:42 */
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_nitc___NitCompiler___opt_boost(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_nitc___NitCompiler___opt_no_cc(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_nitc___NitCompiler___opt_global(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_nitc___NitCompiler___opt_clibdir(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_nitc___NitCompiler___opt_bindir(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_nitc___NitCompiler___opt_compdir(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[3] = CALL_nitc___NitCompiler___opt_extension_prefix(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[1] = CALL_nitc___NitCompiler___opt_dump(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[1]);
+  CALL_opts___OptionContext___add_option(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  init_table[itpos0] = 1;
+  return;
 }
-void nitc___NitCompiler___init(val_t  self, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 35, LOCATE_nitc___NitCompiler___init};
-  val_t variable[12];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_NitCompiler].i]) return;
-  /* Register variable[1]: Method return value and escape marker */
-  CALL_abstracttool___AbstractCompiler___init(variable[0])(variable[0], init_table /*YYY*/) /*AbstractCompiler::init*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_mmloader___ToolContext___option_context(variable[0])(variable[0]) /*ToolContext::option_context*/;
-  variable[3] = NEW_Array_array___Array___with_capacity(TAG_Int(8)) /*new Array[Option]*/ /* Ensure var: Literal array*/;
-  /* Register variable[4]: Result */
-  variable[4] = CALL_nitc___NitCompiler___opt_output(variable[0])(variable[0]) /*NitCompiler::opt_output*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
-  /* Register variable[5]: Result */
-  variable[5] = CALL_nitc___NitCompiler___opt_boost(variable[0])(variable[0]) /*NitCompiler::opt_boost*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[5]) /*AbstractArray::add*/;
-  /* Register variable[6]: Result */
-  variable[6] = CALL_nitc___NitCompiler___opt_no_cc(variable[0])(variable[0]) /*NitCompiler::opt_no_cc*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[6]) /*AbstractArray::add*/;
-  /* Register variable[7]: Result */
-  variable[7] = CALL_nitc___NitCompiler___opt_global(variable[0])(variable[0]) /*NitCompiler::opt_global*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[7]) /*AbstractArray::add*/;
-  /* Register variable[8]: Result */
-  variable[8] = CALL_nitc___NitCompiler___opt_clibdir(variable[0])(variable[0]) /*NitCompiler::opt_clibdir*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[8]) /*AbstractArray::add*/;
-  /* Register variable[9]: Result */
-  variable[9] = CALL_nitc___NitCompiler___opt_bindir(variable[0])(variable[0]) /*NitCompiler::opt_bindir*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[9]) /*AbstractArray::add*/;
-  /* Register variable[10]: Result */
-  variable[10] = CALL_nitc___NitCompiler___opt_compdir(variable[0])(variable[0]) /*NitCompiler::opt_compdir*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[10]) /*AbstractArray::add*/;
-  /* Register variable[11]: Result */
-  variable[11] = CALL_nitc___NitCompiler___opt_extension_prefix(variable[0])(variable[0]) /*NitCompiler::opt_extension_prefix*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[11]) /*AbstractArray::add*/;
-  /* Register variable[3]: Result */
-  CALL_opts___OptionContext___add_option(variable[2])(variable[2], variable[3]) /*OptionContext::add_option*/;
-  return_label21: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_NitCompiler].i] = 1;
-  tracehead = trace.prev;
+void nitc___NitCompiler___dump_intermediate_code(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[9];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  val_t tmp;
+              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 */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_nitc;
+  fra.me.line = 97;
+  fra.me.meth = LOCATE_nitc___NitCompiler___dump_intermediate_code;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 10;
+  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[5] = NIT_NULL;
+  fra.me.REG[6] = NIT_NULL;
+  fra.me.REG[7] = NIT_NULL;
+  fra.me.REG[8] = NIT_NULL;
+  fra.me.REG[9] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  fra.me.REG[1] = CALL_abstract_collection___Collection___iterator(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./nitc.nit:99 */
+  while(1) {
+    REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[1])(fra.me.REG[1]);
+    if (UNTAG_Bool(REGB0)) {
+      fra.me.REG[2] = CALL_abstract_collection___Iterator___item(fra.me.REG[1])(fra.me.REG[1]);
+      fra.me.REG[3] = CALL_abstractmetamodel___MMModule___local_classes(fra.me.REG[2])(fra.me.REG[2]);
+      fra.me.REG[3] = CALL_abstract_collection___Collection___iterator(fra.me.REG[3])(fra.me.REG[3]);
+      /* ./nitc.nit:100 */
+      while(1) {
+        REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[3])(fra.me.REG[3]);
+        if (UNTAG_Bool(REGB0)) {
+          fra.me.REG[4] = CALL_abstract_collection___Iterator___item(fra.me.REG[3])(fra.me.REG[3]);
+          REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[4], COLOR_MMConcreteClass, ID_MMConcreteClass)) /*cast MMConcreteClass*/;
+          REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
+          /* ./nitc.nit:101 */
+          if (UNTAG_Bool(REGB0)) {
+            goto label1;
+          }
+          fra.me.REG[4] = CALL_abstractmetamodel___MMLocalClass___local_local_properties(fra.me.REG[4])(fra.me.REG[4]);
+          fra.me.REG[4] = CALL_abstract_collection___Collection___iterator(fra.me.REG[4])(fra.me.REG[4]);
+          /* ./nitc.nit:102 */
+          while(1) {
+            REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[4])(fra.me.REG[4]);
+            if (UNTAG_Bool(REGB0)) {
+              fra.me.REG[5] = CALL_abstract_collection___Iterator___item(fra.me.REG[4])(fra.me.REG[4]);
+              fra.me.REG[6] = NIT_NULL;
+              REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[5], COLOR_MMAttribute, ID_MMAttribute)) /*cast MMAttribute*/;
+              /* ./nitc.nit:104 */
+              if (UNTAG_Bool(REGB0)) {
+               fra.me.REG[7] = CALL_icode_base___MMAttribute___iroutine(fra.me.REG[5])(fra.me.REG[5]);
+               fra.me.REG[6] = fra.me.REG[7];
+              /* ./nitc.nit:105 */
+              } else {
+               REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[5], COLOR_MMMethod, ID_MMMethod)) /*cast MMMethod*/;
+               /* ./nitc.nit:106 */
+               if (UNTAG_Bool(REGB0)) {
+               fra.me.REG[7] = CALL_icode_base___MMMethod___iroutine(fra.me.REG[5])(fra.me.REG[5]);
+               fra.me.REG[6] = fra.me.REG[7];
+               /* ./nitc.nit:107 */
+               }
+              }
+              REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
+              /* ./nitc.nit:109 */
+              if (UNTAG_Bool(REGB0)) {
+              } else {
+               REGB1 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
+               if (UNTAG_Bool(REGB1)) {
+               REGB1 = TAG_Bool(false);
+               REGB0 = REGB1;
+               } else {
+               REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[6])(fra.me.REG[6], NIT_NULL);
+               REGB0 = REGB1;
+               }
+              }
+              if (UNTAG_Bool(REGB0)) {
+               goto label2;
+              }
+              REGB0 = TAG_Int(3);
+              fra.me.REG[7] = NEW_Array_array___Array___with_capacity(REGB0);
+              /* ./nitc.nit:110 */
+              if (!once_value_3) {
+               fra.me.REG[8] = BOX_NativeString("**** Property ");
+               REGB0 = TAG_Int(14);
+               fra.me.REG[8] = NEW_String_string___String___with_native(fra.me.REG[8], REGB0);
+               once_value_3 = fra.me.REG[8];
+               register_static_object(&once_value_3);
+              } else fra.me.REG[8] = once_value_3;
+              array___Array___add(fra.me.REG[7], fra.me.REG[8]);
+              fra.me.REG[8] = CALL_abstractmetamodel___MMLocalProperty___full_name(fra.me.REG[5])(fra.me.REG[5]);
+              array___Array___add(fra.me.REG[7], fra.me.REG[8]);
+              if (!once_value_4) {
+               fra.me.REG[8] = BOX_NativeString(" ****");
+               REGB0 = TAG_Int(5);
+               fra.me.REG[8] = NEW_String_string___String___with_native(fra.me.REG[8], REGB0);
+               once_value_4 = fra.me.REG[8];
+               register_static_object(&once_value_4);
+              } else fra.me.REG[8] = once_value_4;
+              array___Array___add(fra.me.REG[7], fra.me.REG[8]);
+              fra.me.REG[7] = CALL_string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+              CALL_file___Object___print(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[7]);
+              fra.me.REG[7] = NEW_ICodeDumper_icode_dump___ICodeDumper___init();
+              REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
+              /* ./nitc.nit:112 */
+              if (UNTAG_Bool(REGB0)) {
+               fprintf(stderr, "Reciever is null");
+               fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 112);
+               nit_exit(1);
+              }
+              CALL_icode_dump___IRoutine___dump(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+              REGB0 = TAG_Int(3);
+              fra.me.REG[8] = NEW_Array_array___Array___with_capacity(REGB0);
+              /* ./nitc.nit:113 */
+              if (!once_value_5) {
+               fra.me.REG[9] = BOX_NativeString("**** OPTIMIZE ");
+               REGB0 = TAG_Int(14);
+               fra.me.REG[9] = NEW_String_string___String___with_native(fra.me.REG[9], REGB0);
+               once_value_5 = fra.me.REG[9];
+               register_static_object(&once_value_5);
+              } else fra.me.REG[9] = once_value_5;
+              array___Array___add(fra.me.REG[8], fra.me.REG[9]);
+              fra.me.REG[5] = CALL_abstractmetamodel___MMLocalProperty___full_name(fra.me.REG[5])(fra.me.REG[5]);
+              array___Array___add(fra.me.REG[8], fra.me.REG[5]);
+              if (!once_value_6) {
+               fra.me.REG[5] = BOX_NativeString(" ****");
+               REGB0 = TAG_Int(5);
+               fra.me.REG[5] = NEW_String_string___String___with_native(fra.me.REG[5], REGB0);
+               once_value_6 = fra.me.REG[5];
+               register_static_object(&once_value_6);
+              } else fra.me.REG[5] = once_value_6;
+              array___Array___add(fra.me.REG[8], fra.me.REG[5]);
+              fra.me.REG[8] = CALL_string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
+              CALL_file___Object___print(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[8]);
+              REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
+              /* ./nitc.nit:114 */
+              if (UNTAG_Bool(REGB0)) {
+               fprintf(stderr, "Reciever is null");
+               fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 114);
+               nit_exit(1);
+              }
+              CALL_analysis___IRoutine___optimize(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[2]);
+              fra.me.REG[8] = NEW_ICodeDumper_icode_dump___ICodeDumper___init();
+              fra.me.REG[7] = fra.me.REG[8];
+              REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
+              /* ./nitc.nit:116 */
+              if (UNTAG_Bool(REGB0)) {
+               fprintf(stderr, "Reciever is null");
+               fprintf(stderr, " (%s:%d)\n", LOCATE_nitc, 116);
+               nit_exit(1);
+              }
+              CALL_icode_dump___IRoutine___dump(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+              label2: while(0);
+            } else {
+              /* ./nitc.nit:102 */
+              goto label7;
+            }
+            CALL_abstract_collection___Iterator___next(fra.me.REG[4])(fra.me.REG[4]);
+          }
+          label7: while(0);
+          label1: while(0);
+        } else {
+          /* ./nitc.nit:100 */
+          goto label8;
+        }
+        CALL_abstract_collection___Iterator___next(fra.me.REG[3])(fra.me.REG[3]);
+      }
+      label8: while(0);
+    } else {
+      /* ./nitc.nit:99 */
+      goto label9;
+    }
+    CALL_abstract_collection___Iterator___next(fra.me.REG[1])(fra.me.REG[1]);
+  }
+  label9: while(0);
+  stack_frame_head = fra.me.prev;
   return;
 }
-void nitc___Sys___main(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 105, LOCATE_nitc___Sys___main};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_nitc;
-  /* 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] = NEW_NitCompiler_nitc___NitCompiler___init() /*new NitCompiler*/;
-  variable[2] = variable[3];
-  CALL_abstracttool___AbstractCompiler___exec_cmd_line( variable[2] /*c*/)( variable[2] /*c*/) /*AbstractCompiler::exec_cmd_line*/;
-  return_label22: while(false);
-  tracehead = trace.prev;
+void nitc___Sys___main(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_nitc;
+  fra.me.line = 137;
+  fra.me.meth = LOCATE_nitc___Sys___main;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[0] = NEW_NitCompiler_nitc___NitCompiler___init();
+  /* ./nitc.nit:138 */
+  CALL_abstracttool___AbstractCompiler___exec_cmd_line(fra.me.REG[0])(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
   return;
 }