tests: use module instead of package
[nit.git] / c_src / exec._sep.c
index 6d57e6c..f2f6dde 100644 (file)
 /* This C file is generated by NIT to compile module exec. */
 #include "exec._sep.h"
-val_t exec___Process___id(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 23, LOCATE_exec___Process___id};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___Process____data(variable[2]) /*Process::_data*/;
-  variable[2] = CALL_exec___NativeProcess___id(variable[2])(variable[2]) /*NativeProcess::id*/;
-  variable[1] = variable[2];
-  goto return_label0;
-  return_label0: while(false);
-  tracehead = trace.prev;
-  return variable[1];
-}
-val_t exec___Process___is_finished(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 26, LOCATE_exec___Process___is_finished};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___Process____data(variable[2]) /*Process::_data*/;
-  variable[2] = CALL_exec___NativeProcess___is_finished(variable[2])(variable[2]) /*NativeProcess::is_finished*/;
-  variable[1] = variable[2];
-  goto return_label1;
-  return_label1: while(false);
-  tracehead = trace.prev;
-  return variable[1];
-}
-void exec___Process___wait(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 29, LOCATE_exec___Process___wait};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___Process____data(variable[2]) /*Process::_data*/;
-  CALL_exec___NativeProcess___wait(variable[2])(variable[2]) /*NativeProcess::wait*/;
-  variable[2] = variable[0];
-  variable[2] = CALL_exec___Process___is_finished(variable[2])(variable[2]) /*Process::is_finished*/;
-  if (!UNTAG_Bool(variable[2])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_exec___Process___wait, LOCATE_exec, 33); nit_exit(1);}
-  return_label2: while(false);
-  tracehead = trace.prev;
-  return;
-}
-val_t exec___Process___status(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 36, LOCATE_exec___Process___status};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = CALL_exec___Process___is_finished(variable[2])(variable[2]) /*Process::is_finished*/;
-  if (!UNTAG_Bool(variable[2])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_exec___Process___status, LOCATE_exec, 39); nit_exit(1);}
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___Process____data(variable[2]) /*Process::_data*/;
-  variable[2] = CALL_exec___NativeProcess___status(variable[2])(variable[2]) /*NativeProcess::status*/;
-  variable[1] = variable[2];
-  goto return_label3;
-  return_label3: while(false);
-  tracehead = trace.prev;
-  return variable[1];
-}
-void exec___Process___kill(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 43, LOCATE_exec___Process___kill};
-  val_t variable[4];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  variable[3] = variable[0];
-  variable[3] = ATTR_exec___Process____data(variable[3]) /*Process::_data*/;
-  CALL_exec___NativeProcess___kill(variable[3])(variable[3],  variable[1] /*signal*/) /*NativeProcess::kill*/;
-  return_label4: while(false);
-  tracehead = trace.prev;
-  return;
-}
-void exec___Process___term(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 46, LOCATE_exec___Process___term};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  CALL_exec___Process___kill(variable[2])(variable[2],  TAG_Int(15)) /*Process::kill*/;
-  return_label5: while(false);
-  tracehead = trace.prev;
+val_t exec___Process___id(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_exec;
+  fra.me.line = 23;
+  fra.me.meth = LOCATE_exec___Process___id;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:24 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 24);
+  }
+  fra.me.REG[0] = ATTR_exec___Process____data(fra.me.REG[0]);
+  REGB0 = CALL_exec___NativeProcess___id(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+val_t exec___Process___is_finished(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_exec;
+  fra.me.line = 26;
+  fra.me.meth = LOCATE_exec___Process___is_finished;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:27 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 27);
+  }
+  fra.me.REG[0] = ATTR_exec___Process____data(fra.me.REG[0]);
+  REGB0 = CALL_exec___NativeProcess___is_finished(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+void exec___Process___wait(val_t p0){
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+  val_t REGB0;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 29;
+  fra.me.meth = LOCATE_exec___Process___wait;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 2;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:32 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 32);
+  }
+  fra.me.REG[1] = ATTR_exec___Process____data(fra.me.REG[0]);
+  CALL_exec___NativeProcess___wait(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./../lib/standard//exec.nit:33 */
+  REGB0 = CALL_exec___Process___is_finished(fra.me.REG[0])(fra.me.REG[0]);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Assert failed", NULL, LOCATE_exec, 33);
+  }
+  stack_frame_head = fra.me.prev;
   return;
 }
-void exec___Process___init(val_t  self, val_t  param0, val_t  param1, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 49, LOCATE_exec___Process___init};
-  val_t variable[5];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  /* check if p<Array[String] with p:String */
-  if (( param1!=NIT_NULL) && !VAL_ISA( param1, COLOR_Array, ID_Array)) { fprintf(stderr, "Cast failled"); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_exec___Process___init, LOCATE_exec, 50); nit_exit(1); } /*cast Array[String]*/;
-  variable[2] =  param1;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_Process].i]) return;
-  variable[4] = variable[0];
-  CALL_exec___Process___execute(variable[4])(variable[4],  variable[1] /*command*/,  variable[2] /*arguments*/,  TAG_Int(0), init_table /*YYY*/) /*Process::execute*/;
-  return_label6: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_Process].i] = 1;
-  tracehead = trace.prev;
+val_t exec___Process___status(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_exec;
+  fra.me.line = 36;
+  fra.me.meth = LOCATE_exec___Process___status;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:39 */
+  REGB0 = CALL_exec___Process___is_finished(fra.me.REG[0])(fra.me.REG[0]);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Assert failed", NULL, LOCATE_exec, 39);
+  }
+  /* ./../lib/standard//exec.nit:40 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 40);
+  }
+  fra.me.REG[0] = ATTR_exec___Process____data(fra.me.REG[0]);
+  REGB0 = CALL_exec___NativeProcess___status(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+void exec___Process___init(val_t p0, val_t p1, val_t p2, int* init_table){
+  int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_Process].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t REGB0;
+  val_t tmp;
+  if (init_table[itpos0]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 43;
+  fra.me.meth = LOCATE_exec___Process___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;
+  fra.me.REG[2] = p2;
+  /* ./../lib/standard//exec.nit:43 */
+  REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[2], COLOR_Array, ID_Array)) /*cast Array[String]*/;
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Cast failed", NULL, LOCATE_exec, 43);
+  }
+  /* ./../lib/standard//exec.nit:46 */
+  REGB0 = TAG_Int(0);
+  CALL_exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], REGB0, init_table);
+  stack_frame_head = fra.me.prev;
+  init_table[itpos0] = 1;
   return;
 }
-void exec___Process___init_(val_t  self, val_t  param0, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 55, LOCATE_exec___Process___init_};
-  val_t variable[4];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_Process].i]) return;
-  variable[3] = variable[0];
-  CALL_exec___Process___execute(variable[3])(variable[3],  variable[1] /*command*/,  NIT_NULL /*null*/,  TAG_Int(0), init_table /*YYY*/) /*Process::execute*/;
-  return_label7: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_Process].i] = 1;
-  tracehead = trace.prev;
+void exec___Process___init_(val_t p0, val_t p1, int* init_table){
+  int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_Process].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+  val_t REGB0;
+  val_t tmp;
+  if (init_table[itpos1]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 49;
+  fra.me.meth = LOCATE_exec___Process___init_;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 2;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  /* ./../lib/standard//exec.nit:52 */
+  REGB0 = TAG_Int(0);
+  CALL_exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], NIT_NULL, REGB0, init_table);
+  stack_frame_head = fra.me.prev;
+  init_table[itpos1] = 1;
   return;
 }
-void exec___Process___execute(val_t  self, val_t  param0, val_t  param1, val_t  param2, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 61, LOCATE_exec___Process___execute};
-  val_t variable[11];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  variable[2] =  param1;
-  variable[3] =  param2;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_Process].i]) return;
-  variable[6] = NEW_String_string___String___init(); /*new String*/
-  variable[5] = variable[6];
-  variable[6] =  TAG_Int(1);
-  CALL_abstract_collection___IndexedCollection___append( variable[5] /*args*/)( variable[5] /*args*/,  variable[1] /*command*/) /*String::append*/;
-  variable[7] = TAG_Bool(!UNTAG_Bool(TAG_Bool(( variable[2] /*arguments*/ ==  NIT_NULL /*null*/) || (( variable[2] /*arguments*/ != NIT_NULL) && ((CALL_kernel___Object_____eqeq( variable[2] /*arguments*/)==kernel___Object_____eqeq)?(IS_EQUAL_NN( variable[2] /*arguments*/, NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq( variable[2] /*arguments*/)( variable[2] /*arguments*/,  NIT_NULL /*null*/) /*Object::==*/)))))));
-  if (UNTAG_Bool(variable[7])) { /*if*/
-    variable[7] = CALL_abstract_collection___Collection___iterator( variable[2] /*arguments*/)( variable[2] /*arguments*/) /*AbstractArray::iterator*/;
-    while (true) { /*for*/
-      variable[8] = CALL_abstract_collection___Iterator___is_ok(variable[7])(variable[7]) /*ArrayIterator::is_ok*/;
-      if (!UNTAG_Bool(variable[8])) break; /*for*/
-      variable[8] = CALL_abstract_collection___Iterator___item(variable[7])(variable[7]) /*ArrayIterator::item*/;
-      variable[9] = variable[8];
-      CALL_abstract_collection___SimpleCollection___add( variable[5] /*args*/)( variable[5] /*args*/,  TAG_Char('\0')) /*String::add*/;
-      CALL_abstract_collection___IndexedCollection___append( variable[5] /*args*/)( variable[5] /*args*/,  variable[9] /*a*/) /*String::append*/;
-      continue_9: while(0);
-      CALL_abstract_collection___Iterator___next(variable[7])(variable[7]) /*ArrayIterator::next*/;
+void exec___Process___execute(val_t p0, val_t p1, val_t p2, val_t p3, int* init_table){
+  int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_Process].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[6];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  val_t REGB2;
+  val_t REGB3;
+  val_t tmp;
+  if (init_table[itpos2]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 55;
+  fra.me.meth = LOCATE_exec___Process___execute;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 7;
+  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[0] = p0;
+  fra.me.REG[1] = p1;
+  fra.me.REG[2] = p2;
+  REGB0 = p3;
+  /* ./../lib/standard//exec.nit:58 */
+  fra.me.REG[3] = NEW_Buffer_string___Buffer___init();
+  /* ./../lib/standard//exec.nit:59 */
+  REGB1 = TAG_Int(1);
+  /* ./../lib/standard//exec.nit:60 */
+  CALL_abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]);
+  /* ./../lib/standard//exec.nit:61 */
+  REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+  if (UNTAG_Bool(REGB2)) {
+  } else {
+    REGB3 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+    if (UNTAG_Bool(REGB3)) {
+      REGB3 = TAG_Bool(false);
+      REGB2 = REGB3;
+    } else {
+      REGB3 = CALL_kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
+      REGB2 = REGB3;
     }
-    break_9: while(0);
-    variable[7] = CALL_abstract_collection___Collection___length( variable[2] /*arguments*/)( variable[2] /*arguments*/) /*AbstractArray::length*/;
-    variable[6] = TAG_Int(UNTAG_Int(variable[6])+UNTAG_Int(variable[7])) /*l*/;
   }
-  variable[7] = variable[0];
-  variable[8] = variable[0];
-  variable[9] = CALL_string___String___to_cstring( variable[1] /*command*/)( variable[1] /*command*/) /*String::to_cstring*/;
-  variable[10] = CALL_string___String___to_cstring( variable[5] /*args*/)( variable[5] /*args*/) /*String::to_cstring*/;
-  variable[8] = CALL_exec___Process___basic_exec_execute(variable[8])(variable[8], variable[9], variable[10],  variable[6] /*l*/,  variable[3] /*pipeflags*/) /*Process::basic_exec_execute*/;
-  ATTR_exec___Process____data(variable[7]) /*Process::_data*/ = variable[8];
-  return_label8: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_Process].i] = 1;
-  tracehead = trace.prev;
-  return;
-}
-val_t exec___Process___basic_exec_execute(val_t  self, val_t  param0, val_t  param1, val_t  param2, val_t  param3) {
-  struct trace_t trace = {NULL, NULL, 78, LOCATE_exec___Process___basic_exec_execute};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  tracehead = trace.prev;
-  return BOX_NativeProcess(exec_Process_Process_basic_exec_execute_4( self, UNBOX_NativeString( param0), UNBOX_NativeString( param1), UNTAG_Int( param2), UNTAG_Int( param3)));
-}
-void exec___IProcess___close(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 87, LOCATE_exec___IProcess___close};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___IProcess____in(variable[2]) /*IProcess::_in*/;
-  CALL_stream___IOS___close(variable[2])(variable[2]) /*FDStream::close*/;
-  return_label10: while(false);
-  tracehead = trace.prev;
+  REGB2 = TAG_Bool(!UNTAG_Bool(REGB2));
+  if (UNTAG_Bool(REGB2)) {
+    /* ./../lib/standard//exec.nit:62 */
+    REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+    if (UNTAG_Bool(REGB2)) {
+      nit_abort("Reciever is null", NULL, LOCATE_exec, 62);
+    }
+    /* ./../lib/standard//collection//array.nit:231 */
+    fra.me.REG[4] = fra.me.REG[2];
+    /* ./../lib/standard//collection//array.nit:234 */
+    REGB2 = TAG_Int(0);
+    /* ./../lib/standard//collection//array.nit:235 */
+    REGB3 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
+    if (UNTAG_Bool(REGB3)) {
+    } else {
+      nit_abort("Uninitialized attribute %s", "_length", LOCATE_array, 235);
+    }
+    REGB3 = ATTR_array___AbstractArrayRead____length(fra.me.REG[4]);
+    /* ./../lib/standard//collection//array.nit:236 */
+    fra.me.REG[5] = ATTR_array___Array____items(fra.me.REG[4]);
+    /* ./../lib/standard//collection//array.nit:237 */
+    while(1) {
+      /* ./../lib/standard//collection//array.nit:23 */
+      REGB3 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
+      if (UNTAG_Bool(REGB3)) {
+      } else {
+        nit_abort("Uninitialized attribute %s", "_length", LOCATE_array, 23);
+      }
+      REGB3 = ATTR_array___AbstractArrayRead____length(fra.me.REG[4]);
+      /* ./../lib/standard//kernel.nit:212 */
+      REGB3 = TAG_Bool(UNTAG_Int(REGB2)<UNTAG_Int(REGB3));
+      /* ./../lib/standard//collection//array.nit:237 */
+      if (UNTAG_Bool(REGB3)) {
+        /* ./../lib/standard//collection//array.nit:238 */
+        REGB3 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+        if (UNTAG_Bool(REGB3)) {
+          nit_abort("Reciever is null", NULL, LOCATE_array, 238);
+        }
+        /* ./../lib/standard//collection//array.nit:654 */
+        fra.me.REG[6] = ((Nit_NativeArray)fra.me.REG[5])->val[UNTAG_Int(REGB2)];
+        /* ./../lib/standard//exec.nit:63 */
+        REGB3 = TAG_Char('\0');
+        CALL_abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], REGB3);
+        /* ./../lib/standard//exec.nit:64 */
+        CALL_abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
+        /* ./../lib/standard//collection//array.nit:239 */
+        REGB3 = TAG_Int(1);
+        /* ./../lib/standard//kernel.nit:215 */
+        REGB3 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB3));
+        /* ./../lib/standard//collection//array.nit:239 */
+        REGB2 = REGB3;
+      } else {
+        /* ./../lib/standard//collection//array.nit:237 */
+        goto label1;
+      }
+    }
+    label1: while(0);
+    /* ./../lib/standard//exec.nit:66 */
+    REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+    if (UNTAG_Bool(REGB2)) {
+      nit_abort("Reciever is null", NULL, LOCATE_exec, 66);
+    }
+    /* ./../lib/standard//collection//array.nit:23 */
+    REGB2 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
+    if (UNTAG_Bool(REGB2)) {
+    } else {
+      nit_abort("Uninitialized attribute %s", "_length", LOCATE_array, 23);
+    }
+    REGB2 = ATTR_array___AbstractArrayRead____length(fra.me.REG[2]);
+    /* ./../lib/standard//kernel.nit:215 */
+    REGB2 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB2));
+    /* ./../lib/standard//exec.nit:66 */
+    REGB1 = REGB2;
+  }
+  /* ./../lib/standard//exec.nit:68 */
+  fra.me.REG[1] = CALL_string___String___to_cstring(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[3] = CALL_string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
+  fra.me.REG[3] = CALL_string___String___to_cstring(fra.me.REG[3])(fra.me.REG[3]);
+  fra.me.REG[3] = CALL_exec___Process___basic_exec_execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[3], REGB1, REGB0);
+  ATTR_exec___Process____data(fra.me.REG[0]) = fra.me.REG[3];
+  stack_frame_head = fra.me.prev;
+  init_table[itpos2] = 1;
   return;
 }
-val_t exec___IProcess___read_char(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 89, LOCATE_exec___IProcess___read_char};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___IProcess____in(variable[2]) /*IProcess::_in*/;
-  variable[2] = CALL_stream___IStream___read_char(variable[2])(variable[2]) /*FDIStream::read_char*/;
-  variable[1] = variable[2];
-  goto return_label11;
-  return_label11: while(false);
-  tracehead = trace.prev;
-  return variable[1];
-}
-val_t exec___IProcess___eof(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 91, LOCATE_exec___IProcess___eof};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___IProcess____in(variable[2]) /*IProcess::_in*/;
-  variable[2] = CALL_stream___IStream___eof(variable[2])(variable[2]) /*FDIStream::eof*/;
-  variable[1] = variable[2];
-  goto return_label12;
-  return_label12: while(false);
-  tracehead = trace.prev;
-  return variable[1];
-}
-void exec___IProcess___init(val_t  self, val_t  param0, val_t  param1, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 93, LOCATE_exec___IProcess___init};
-  val_t variable[7];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  /* check if p<Array[String] with p:String */
-  if (( param1!=NIT_NULL) && !VAL_ISA( param1, COLOR_Array, ID_Array)) { fprintf(stderr, "Cast failled"); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_exec___IProcess___init, LOCATE_exec, 93); nit_exit(1); } /*cast Array[String]*/;
-  variable[2] =  param1;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_IProcess].i]) return;
-  variable[4] = variable[0];
-  CALL_exec___Process___execute(variable[4])(variable[4],  variable[1] /*command*/,  variable[2] /*arguments*/,  TAG_Int(2), init_table /*YYY*/) /*Process::execute*/;
-  variable[4] = variable[0];
-  variable[5] = variable[0];
-  variable[5] = ATTR_exec___Process____data(variable[5]) /*Process::_data*/;
-  variable[5] = CALL_exec___NativeProcess___out_fd(variable[5])(variable[5]) /*NativeProcess::out_fd*/;
-  variable[6] = NEW_FDIStream_stream___FDIStream___init(variable[5]); /*new FDIStream*/
-  variable[5] = variable[6];
-  ATTR_exec___IProcess____in(variable[4]) /*IProcess::_in*/ = variable[5];
-  return_label13: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_IProcess].i] = 1;
-  tracehead = trace.prev;
+val_t exec___Process___basic_exec_execute(val_t p0, val_t p1, val_t p2, val_t p3, val_t p4){
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 72;
+  fra.me.meth = LOCATE_exec___Process___basic_exec_execute;
+  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] = p2;
+  REGB0 = p3;
+  REGB1 = p4;
+  /* ./../lib/standard//exec.nit:72 */
+  fra.me.REG[2] = BOX_NativeProcess(exec_Process_Process_basic_exec_execute_4(fra.me.REG[0], UNBOX_NativeString(fra.me.REG[1]), UNBOX_NativeString(fra.me.REG[2]), UNTAG_Int(REGB0), UNTAG_Int(REGB1)));
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[2];
+}
+void exec___IProcess___close(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_exec;
+  fra.me.line = 81;
+  fra.me.meth = LOCATE_exec___IProcess___close;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:81 */
+  REGB0 = TAG_Bool(ATTR_exec___IProcess____in(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_in", LOCATE_exec, 81);
+  }
+  fra.me.REG[0] = ATTR_exec___IProcess____in(fra.me.REG[0]);
+  CALL_stream___IOS___close(fra.me.REG[0])(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
   return;
 }
-void exec___IProcess___init_(val_t  self, val_t  param0, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 99, LOCATE_exec___IProcess___init_};
-  val_t variable[6];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_IProcess].i]) return;
-  variable[3] = variable[0];
-  CALL_exec___Process___execute(variable[3])(variable[3],  variable[1] /*command*/,  NIT_NULL /*null*/,  TAG_Int(2), init_table /*YYY*/) /*Process::execute*/;
-  variable[3] = variable[0];
-  variable[4] = variable[0];
-  variable[4] = ATTR_exec___Process____data(variable[4]) /*Process::_data*/;
-  variable[4] = CALL_exec___NativeProcess___out_fd(variable[4])(variable[4]) /*NativeProcess::out_fd*/;
-  variable[5] = NEW_FDIStream_stream___FDIStream___init(variable[4]); /*new FDIStream*/
-  variable[4] = variable[5];
-  ATTR_exec___IProcess____in(variable[3]) /*IProcess::_in*/ = variable[4];
-  return_label14: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_IProcess].i] = 1;
-  tracehead = trace.prev;
+val_t exec___IProcess___read_char(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_exec;
+  fra.me.line = 83;
+  fra.me.meth = LOCATE_exec___IProcess___read_char;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:83 */
+  REGB0 = TAG_Bool(ATTR_exec___IProcess____in(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_in", LOCATE_exec, 83);
+  }
+  fra.me.REG[0] = ATTR_exec___IProcess____in(fra.me.REG[0]);
+  REGB0 = CALL_stream___IStream___read_char(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+val_t exec___IProcess___eof(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_exec;
+  fra.me.line = 85;
+  fra.me.meth = LOCATE_exec___IProcess___eof;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:85 */
+  REGB0 = TAG_Bool(ATTR_exec___IProcess____in(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_in", LOCATE_exec, 85);
+  }
+  fra.me.REG[0] = ATTR_exec___IProcess____in(fra.me.REG[0]);
+  REGB0 = CALL_stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+void exec___IProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
+  int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_IProcess].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t REGB0;
+  val_t tmp;
+  if (init_table[itpos3]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 87;
+  fra.me.meth = LOCATE_exec___IProcess___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;
+  fra.me.REG[2] = p2;
+  /* ./../lib/standard//exec.nit:87 */
+  REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[2], COLOR_Array, ID_Array)) /*cast Array[String]*/;
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Cast failed", NULL, LOCATE_exec, 87);
+  }
+  /* ./../lib/standard//exec.nit:89 */
+  REGB0 = TAG_Int(2);
+  CALL_exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], REGB0, init_table);
+  /* ./../lib/standard//exec.nit:90 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 90);
+  }
+  fra.me.REG[2] = ATTR_exec___Process____data(fra.me.REG[0]);
+  REGB0 = CALL_exec___NativeProcess___out_fd(fra.me.REG[2])(fra.me.REG[2]);
+  fra.me.REG[2] = NEW_FDIStream_stream___FDIStream___init(REGB0);
+  ATTR_exec___IProcess____in(fra.me.REG[0]) = fra.me.REG[2];
+  stack_frame_head = fra.me.prev;
+  init_table[itpos3] = 1;
   return;
 }
-void exec___OProcess___close(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 112, LOCATE_exec___OProcess___close};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___OProcess____out(variable[2]) /*OProcess::_out*/;
-  CALL_stream___IOS___close(variable[2])(variable[2]) /*IOS::close*/;
-  return_label15: while(false);
-  tracehead = trace.prev;
+void exec___IProcess___init_(val_t p0, val_t p1, int* init_table){
+  int itpos4 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_IProcess].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+  val_t REGB0;
+  val_t tmp;
+  if (init_table[itpos4]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 93;
+  fra.me.meth = LOCATE_exec___IProcess___init_;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 2;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  /* ./../lib/standard//exec.nit:95 */
+  REGB0 = TAG_Int(2);
+  CALL_exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], NIT_NULL, REGB0, init_table);
+  /* ./../lib/standard//exec.nit:96 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 96);
+  }
+  fra.me.REG[1] = ATTR_exec___Process____data(fra.me.REG[0]);
+  REGB0 = CALL_exec___NativeProcess___out_fd(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[1] = NEW_FDIStream_stream___FDIStream___init(REGB0);
+  ATTR_exec___IProcess____in(fra.me.REG[0]) = fra.me.REG[1];
+  stack_frame_head = fra.me.prev;
+  init_table[itpos4] = 1;
   return;
 }
-void exec___OProcess___write(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 116, LOCATE_exec___OProcess___write};
-  val_t variable[4];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  variable[3] = variable[0];
-  variable[3] = ATTR_exec___OProcess____out(variable[3]) /*OProcess::_out*/;
-  CALL_stream___OStream___write(variable[3])(variable[3],  variable[1] /*s*/) /*OStream::write*/;
-  return_label16: while(false);
-  tracehead = trace.prev;
+void exec___OProcess___close(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_exec;
+  fra.me.line = 106;
+  fra.me.meth = LOCATE_exec___OProcess___close;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:106 */
+  REGB0 = TAG_Bool(ATTR_exec___OProcess____out(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_out", LOCATE_exec, 106);
+  }
+  fra.me.REG[0] = ATTR_exec___OProcess____out(fra.me.REG[0]);
+  CALL_stream___IOS___close(fra.me.REG[0])(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
   return;
 }
-val_t exec___OProcess___is_writable(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 114, LOCATE_exec___OProcess___is_writable};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___OProcess____out(variable[2]) /*OProcess::_out*/;
-  variable[2] = CALL_stream___OStream___is_writable(variable[2])(variable[2]) /*OStream::is_writable*/;
-  variable[1] = variable[2];
-  goto return_label17;
-  return_label17: while(false);
-  tracehead = trace.prev;
-  return variable[1];
-}
-void exec___OProcess___init(val_t  self, val_t  param0, val_t  param1, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 118, LOCATE_exec___OProcess___init};
-  val_t variable[7];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  /* check if p<Array[String] with p:String */
-  if (( param1!=NIT_NULL) && !VAL_ISA( param1, COLOR_Array, ID_Array)) { fprintf(stderr, "Cast failled"); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_exec___OProcess___init, LOCATE_exec, 118); nit_exit(1); } /*cast Array[String]*/;
-  variable[2] =  param1;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_OProcess].i]) return;
-  variable[4] = variable[0];
-  CALL_exec___Process___execute(variable[4])(variable[4],  variable[1] /*command*/,  variable[2] /*arguments*/,  TAG_Int(1), init_table /*YYY*/) /*Process::execute*/;
-  variable[4] = variable[0];
-  variable[5] = variable[0];
-  variable[5] = ATTR_exec___Process____data(variable[5]) /*Process::_data*/;
-  variable[5] = CALL_exec___NativeProcess___in_fd(variable[5])(variable[5]) /*NativeProcess::in_fd*/;
-  variable[6] = NEW_FDOStream_stream___FDOStream___init(variable[5]); /*new FDOStream*/
-  variable[5] = variable[6];
-  ATTR_exec___OProcess____out(variable[4]) /*OProcess::_out*/ = variable[5];
-  return_label18: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_OProcess].i] = 1;
-  tracehead = trace.prev;
+val_t exec___OProcess___is_writable(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_exec;
+  fra.me.line = 108;
+  fra.me.meth = LOCATE_exec___OProcess___is_writable;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:108 */
+  REGB0 = TAG_Bool(ATTR_exec___OProcess____out(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_out", LOCATE_exec, 108);
+  }
+  fra.me.REG[0] = ATTR_exec___OProcess____out(fra.me.REG[0]);
+  REGB0 = CALL_stream___OStream___is_writable(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+void exec___OProcess___write(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+  val_t REGB0;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 110;
+  fra.me.meth = LOCATE_exec___OProcess___write;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 2;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  /* ./../lib/standard//exec.nit:110 */
+  REGB0 = TAG_Bool(ATTR_exec___OProcess____out(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_out", LOCATE_exec, 110);
+  }
+  fra.me.REG[0] = ATTR_exec___OProcess____out(fra.me.REG[0]);
+  CALL_stream___OStream___write(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+  stack_frame_head = fra.me.prev;
   return;
 }
-void exec___OProcess___init_(val_t  self, val_t  param0, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 124, LOCATE_exec___OProcess___init_};
-  val_t variable[6];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_OProcess].i]) return;
-  variable[3] = variable[0];
-  CALL_exec___Process___execute(variable[3])(variable[3],  variable[1] /*command*/,  NIT_NULL /*null*/,  TAG_Int(1), init_table /*YYY*/) /*Process::execute*/;
-  variable[3] = variable[0];
-  variable[4] = variable[0];
-  variable[4] = ATTR_exec___Process____data(variable[4]) /*Process::_data*/;
-  variable[4] = CALL_exec___NativeProcess___in_fd(variable[4])(variable[4]) /*NativeProcess::in_fd*/;
-  variable[5] = NEW_FDOStream_stream___FDOStream___init(variable[4]); /*new FDOStream*/
-  variable[4] = variable[5];
-  ATTR_exec___OProcess____out(variable[3]) /*OProcess::_out*/ = variable[4];
-  return_label19: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_OProcess].i] = 1;
-  tracehead = trace.prev;
+void exec___OProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
+  int itpos5 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_OProcess].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t REGB0;
+  val_t tmp;
+  if (init_table[itpos5]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 112;
+  fra.me.meth = LOCATE_exec___OProcess___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;
+  fra.me.REG[2] = p2;
+  /* ./../lib/standard//exec.nit:112 */
+  REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[2], COLOR_Array, ID_Array)) /*cast Array[String]*/;
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Cast failed", NULL, LOCATE_exec, 112);
+  }
+  /* ./../lib/standard//exec.nit:114 */
+  REGB0 = TAG_Int(1);
+  CALL_exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], REGB0, init_table);
+  /* ./../lib/standard//exec.nit:115 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 115);
+  }
+  fra.me.REG[2] = ATTR_exec___Process____data(fra.me.REG[0]);
+  REGB0 = CALL_exec___NativeProcess___in_fd(fra.me.REG[2])(fra.me.REG[2]);
+  fra.me.REG[2] = NEW_FDOStream_stream___FDOStream___init(REGB0);
+  ATTR_exec___OProcess____out(fra.me.REG[0]) = fra.me.REG[2];
+  stack_frame_head = fra.me.prev;
+  init_table[itpos5] = 1;
   return;
 }
-void exec___IOProcess___close(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 137, LOCATE_exec___IOProcess___close};
-  val_t variable[3];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___IProcess____in(variable[2]) /*IProcess::_in*/;
-  CALL_stream___IOS___close(variable[2])(variable[2]) /*FDStream::close*/;
-  variable[2] = variable[0];
-  variable[2] = ATTR_exec___OProcess____out(variable[2]) /*OProcess::_out*/;
-  CALL_stream___IOS___close(variable[2])(variable[2]) /*IOS::close*/;
-  return_label20: while(false);
-  tracehead = trace.prev;
+void exec___OProcess___init_(val_t p0, val_t p1, int* init_table){
+  int itpos6 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_OProcess].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+  val_t REGB0;
+  val_t tmp;
+  if (init_table[itpos6]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 118;
+  fra.me.meth = LOCATE_exec___OProcess___init_;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 2;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  /* ./../lib/standard//exec.nit:120 */
+  REGB0 = TAG_Int(1);
+  CALL_exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], NIT_NULL, REGB0, init_table);
+  /* ./../lib/standard//exec.nit:121 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 121);
+  }
+  fra.me.REG[1] = ATTR_exec___Process____data(fra.me.REG[0]);
+  REGB0 = CALL_exec___NativeProcess___in_fd(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[1] = NEW_FDOStream_stream___FDOStream___init(REGB0);
+  ATTR_exec___OProcess____out(fra.me.REG[0]) = fra.me.REG[1];
+  stack_frame_head = fra.me.prev;
+  init_table[itpos6] = 1;
   return;
 }
-void exec___IOProcess___init(val_t  self, val_t  param0, val_t  param1, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 143, LOCATE_exec___IOProcess___init};
-  val_t variable[7];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  /* check if p<Array[String] with p:String */
-  if (( param1!=NIT_NULL) && !VAL_ISA( param1, COLOR_Array, ID_Array)) { fprintf(stderr, "Cast failled"); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_exec___IOProcess___init, LOCATE_exec, 143); nit_exit(1); } /*cast Array[String]*/;
-  variable[2] =  param1;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_IOProcess].i]) return;
-  variable[4] = variable[0];
-  CALL_exec___Process___execute(variable[4])(variable[4],  variable[1] /*command*/,  variable[2] /*arguments*/,  TAG_Int(3), init_table /*YYY*/) /*Process::execute*/;
-  CALL_exec___IProcess___init(variable[0])(variable[0], variable[1], variable[2], init_table /*YYY*/) /*IProcess::init*/;
-  CALL_exec___OProcess___init(variable[0])(variable[0], variable[1], variable[2], init_table /*YYY*/) /*OProcess::init*/;
-  variable[4] = variable[0];
-  variable[5] = variable[0];
-  variable[5] = ATTR_exec___Process____data(variable[5]) /*Process::_data*/;
-  variable[5] = CALL_exec___NativeProcess___out_fd(variable[5])(variable[5]) /*NativeProcess::out_fd*/;
-  variable[6] = NEW_FDIStream_stream___FDIStream___init(variable[5]); /*new FDIStream*/
-  variable[5] = variable[6];
-  ATTR_exec___IProcess____in(variable[4]) /*IProcess::_in*/ = variable[5];
-  variable[4] = variable[0];
-  variable[5] = variable[0];
-  variable[5] = ATTR_exec___Process____data(variable[5]) /*Process::_data*/;
-  variable[5] = CALL_exec___NativeProcess___in_fd(variable[5])(variable[5]) /*NativeProcess::in_fd*/;
-  variable[6] = NEW_FDOStream_stream___FDOStream___init(variable[5]); /*new FDOStream*/
-  variable[5] = variable[6];
-  ATTR_exec___OProcess____out(variable[4]) /*OProcess::_out*/ = variable[5];
-  return_label21: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_IOProcess].i] = 1;
-  tracehead = trace.prev;
+void exec___IOProcess___close(val_t p0){
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+  val_t REGB0;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 131;
+  fra.me.meth = LOCATE_exec___IOProcess___close;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 2;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:133 */
+  REGB0 = TAG_Bool(ATTR_exec___IProcess____in(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_in", LOCATE_exec, 133);
+  }
+  fra.me.REG[1] = ATTR_exec___IProcess____in(fra.me.REG[0]);
+  CALL_stream___IOS___close(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./../lib/standard//exec.nit:134 */
+  REGB0 = TAG_Bool(ATTR_exec___OProcess____out(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_out", LOCATE_exec, 134);
+  }
+  fra.me.REG[0] = ATTR_exec___OProcess____out(fra.me.REG[0]);
+  CALL_stream___IOS___close(fra.me.REG[0])(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
   return;
 }
-void exec___IOProcess___init_(val_t  self, val_t  param0, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 150, LOCATE_exec___IOProcess___init_};
-  val_t variable[6];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_IOProcess].i]) return;
-  variable[3] = variable[0];
-  CALL_exec___Process___execute(variable[3])(variable[3],  variable[1] /*command*/,  NIT_NULL /*null*/,  TAG_Int(3), init_table /*YYY*/) /*Process::execute*/;
-  CALL_exec___IProcess___init_(variable[0])(variable[0], variable[1], init_table /*YYY*/) /*IProcess::init_*/;
-  CALL_exec___OProcess___init_(variable[0])(variable[0], variable[1], init_table /*YYY*/) /*OProcess::init_*/;
-  variable[3] = variable[0];
-  variable[4] = variable[0];
-  variable[4] = ATTR_exec___Process____data(variable[4]) /*Process::_data*/;
-  variable[4] = CALL_exec___NativeProcess___out_fd(variable[4])(variable[4]) /*NativeProcess::out_fd*/;
-  variable[5] = NEW_FDIStream_stream___FDIStream___init(variable[4]); /*new FDIStream*/
-  variable[4] = variable[5];
-  ATTR_exec___IProcess____in(variable[3]) /*IProcess::_in*/ = variable[4];
-  variable[3] = variable[0];
-  variable[4] = variable[0];
-  variable[4] = ATTR_exec___Process____data(variable[4]) /*Process::_data*/;
-  variable[4] = CALL_exec___NativeProcess___in_fd(variable[4])(variable[4]) /*NativeProcess::in_fd*/;
-  variable[5] = NEW_FDOStream_stream___FDOStream___init(variable[4]); /*new FDOStream*/
-  variable[4] = variable[5];
-  ATTR_exec___OProcess____out(variable[3]) /*OProcess::_out*/ = variable[4];
-  return_label22: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_IOProcess].i] = 1;
-  tracehead = trace.prev;
+void exec___IOProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
+  int itpos7 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_IOProcess].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[5];} fra;
+  val_t REGB0;
+  val_t tmp;
+  if (init_table[itpos7]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 137;
+  fra.me.meth = LOCATE_exec___IOProcess___init;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 6;
+  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[0] = p0;
+  fra.me.REG[1] = p1;
+  fra.me.REG[2] = p2;
+  /* ./../lib/standard//exec.nit:137 */
+  fra.me.REG[3] = fra.me.REG[0];
+  fra.me.REG[4] = fra.me.REG[1];
+  REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[2], COLOR_Array, ID_Array)) /*cast Array[String]*/;
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Cast failed", NULL, LOCATE_exec, 137);
+  }
+  fra.me.REG[5] = fra.me.REG[2];
+  /* ./../lib/standard//exec.nit:139 */
+  REGB0 = TAG_Int(3);
+  CALL_exec___Process___execute(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4], fra.me.REG[5], REGB0, init_table);
+  CALL_exec___IProcess___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], init_table);
+  CALL_exec___OProcess___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], init_table);
+  /* ./../lib/standard//exec.nit:140 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[3])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 140);
+  }
+  fra.me.REG[2] = ATTR_exec___Process____data(fra.me.REG[3]);
+  REGB0 = CALL_exec___NativeProcess___out_fd(fra.me.REG[2])(fra.me.REG[2]);
+  fra.me.REG[2] = NEW_FDIStream_stream___FDIStream___init(REGB0);
+  ATTR_exec___IProcess____in(fra.me.REG[3]) = fra.me.REG[2];
+  /* ./../lib/standard//exec.nit:141 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[3])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 141);
+  }
+  fra.me.REG[2] = ATTR_exec___Process____data(fra.me.REG[3]);
+  REGB0 = CALL_exec___NativeProcess___in_fd(fra.me.REG[2])(fra.me.REG[2]);
+  fra.me.REG[2] = NEW_FDOStream_stream___FDOStream___init(REGB0);
+  ATTR_exec___OProcess____out(fra.me.REG[3]) = fra.me.REG[2];
+  stack_frame_head = fra.me.prev;
+  init_table[itpos7] = 1;
   return;
 }
-val_t exec___Sys___system(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 159, LOCATE_exec___Sys___system};
-  val_t variable[4];
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  variable[0] =  self;
-  variable[1] =  param0;
-  variable[3] = CALL_string___String___to_cstring( variable[1] /*command*/)( variable[1] /*command*/) /*String::to_cstring*/;
-  variable[3] = CALL_exec___NativeString___system(variable[3])(variable[3]) /*NativeString::system*/;
-  variable[2] = variable[3];
-  goto return_label23;
-  return_label23: while(false);
-  tracehead = trace.prev;
-  return variable[2];
-}
-val_t exec___NativeString___system(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 167, LOCATE_exec___NativeString___system};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  tracehead = trace.prev;
-  return TAG_Int(string_NativeString_NativeString_system_0(UNBOX_NativeString( self)));
-}
-val_t exec___NativeProcess___id(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 172, LOCATE_exec___NativeProcess___id};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  tracehead = trace.prev;
-  return TAG_Int(exec_NativeProcess_NativeProcess_id_0(UNBOX_NativeProcess( self)));
-}
-val_t exec___NativeProcess___is_finished(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 173, LOCATE_exec___NativeProcess___is_finished};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  tracehead = trace.prev;
-  return TAG_Bool(exec_NativeProcess_NativeProcess_is_finished_0(UNBOX_NativeProcess( self)));
-}
-val_t exec___NativeProcess___status(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 174, LOCATE_exec___NativeProcess___status};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  tracehead = trace.prev;
-  return TAG_Int(exec_NativeProcess_NativeProcess_status_0(UNBOX_NativeProcess( self)));
-}
-void exec___NativeProcess___wait(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 175, LOCATE_exec___NativeProcess___wait};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  exec_NativeProcess_NativeProcess_wait_0(UNBOX_NativeProcess( self));
-  tracehead = trace.prev;
+void exec___IOProcess___init_(val_t p0, val_t p1, int* init_table){
+  int itpos8 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_IOProcess].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
+  val_t REGB0;
+  val_t tmp;
+  if (init_table[itpos8]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 144;
+  fra.me.meth = LOCATE_exec___IOProcess___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] = p1;
+  /* ./../lib/standard//exec.nit:144 */
+  fra.me.REG[2] = fra.me.REG[0];
+  fra.me.REG[3] = fra.me.REG[1];
+  /* ./../lib/standard//exec.nit:146 */
+  REGB0 = TAG_Int(3);
+  CALL_exec___Process___execute(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3], NIT_NULL, REGB0, init_table);
+  CALL_exec___IProcess___init_(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
+  CALL_exec___OProcess___init_(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
+  /* ./../lib/standard//exec.nit:147 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[2])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 147);
+  }
+  fra.me.REG[1] = ATTR_exec___Process____data(fra.me.REG[2]);
+  REGB0 = CALL_exec___NativeProcess___out_fd(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[1] = NEW_FDIStream_stream___FDIStream___init(REGB0);
+  ATTR_exec___IProcess____in(fra.me.REG[2]) = fra.me.REG[1];
+  /* ./../lib/standard//exec.nit:148 */
+  REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[2])!=NIT_NULL);
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 148);
+  }
+  fra.me.REG[1] = ATTR_exec___Process____data(fra.me.REG[2]);
+  REGB0 = CALL_exec___NativeProcess___in_fd(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[1] = NEW_FDOStream_stream___FDOStream___init(REGB0);
+  ATTR_exec___OProcess____out(fra.me.REG[2]) = fra.me.REG[1];
+  stack_frame_head = fra.me.prev;
+  init_table[itpos8] = 1;
   return;
 }
-void exec___NativeProcess___kill(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 176, LOCATE_exec___NativeProcess___kill};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  exec_NativeProcess_NativeProcess_kill_1(UNBOX_NativeProcess( self), UNTAG_Int( param0));
-  tracehead = trace.prev;
+val_t exec___Sys___system(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+  val_t REGB0;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_exec;
+  fra.me.line = 153;
+  fra.me.meth = LOCATE_exec___Sys___system;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 2;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  /* ./../lib/standard//exec.nit:156 */
+  fra.me.REG[1] = CALL_string___String___to_cstring(fra.me.REG[1])(fra.me.REG[1]);
+  REGB0 = CALL_exec___NativeString___system(fra.me.REG[1])(fra.me.REG[1]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+val_t exec___NativeString___system(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_exec;
+  fra.me.line = 161;
+  fra.me.meth = LOCATE_exec___NativeString___system;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:161 */
+  REGB0 = TAG_Int(string_NativeString_NativeString_system_0(UNBOX_NativeString(fra.me.REG[0])));
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+val_t exec___NativeProcess___id(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_exec;
+  fra.me.line = 166;
+  fra.me.meth = LOCATE_exec___NativeProcess___id;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:166 */
+  REGB0 = TAG_Int(exec_NativeProcess_NativeProcess_id_0(UNBOX_NativeProcess(fra.me.REG[0])));
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+val_t exec___NativeProcess___is_finished(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_exec;
+  fra.me.line = 167;
+  fra.me.meth = LOCATE_exec___NativeProcess___is_finished;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:167 */
+  REGB0 = TAG_Bool(exec_NativeProcess_NativeProcess_is_finished_0(UNBOX_NativeProcess(fra.me.REG[0])));
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+val_t exec___NativeProcess___status(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_exec;
+  fra.me.line = 168;
+  fra.me.meth = LOCATE_exec___NativeProcess___status;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:168 */
+  REGB0 = TAG_Int(exec_NativeProcess_NativeProcess_status_0(UNBOX_NativeProcess(fra.me.REG[0])));
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+void exec___NativeProcess___wait(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_exec;
+  fra.me.line = 169;
+  fra.me.meth = LOCATE_exec___NativeProcess___wait;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:169 */
+  exec_NativeProcess_NativeProcess_wait_0(UNBOX_NativeProcess(fra.me.REG[0]));
+  stack_frame_head = fra.me.prev;
   return;
 }
-val_t exec___NativeProcess___in_fd(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 178, LOCATE_exec___NativeProcess___in_fd};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  tracehead = trace.prev;
-  return TAG_Int(exec_NativeProcess_NativeProcess_in_fd_0(UNBOX_NativeProcess( self)));
-}
-val_t exec___NativeProcess___out_fd(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 179, LOCATE_exec___NativeProcess___out_fd};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  tracehead = trace.prev;
-  return TAG_Int(exec_NativeProcess_NativeProcess_out_fd_0(UNBOX_NativeProcess( self)));
-}
-val_t exec___NativeProcess___err_fd(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 180, LOCATE_exec___NativeProcess___err_fd};
-  val_t *variable = NULL;
-  void **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_exec;
-  tracehead = trace.prev;
-  return TAG_Int(exec_NativeProcess_NativeProcess_err_fd_0(UNBOX_NativeProcess( self)));
+val_t exec___NativeProcess___in_fd(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_exec;
+  fra.me.line = 171;
+  fra.me.meth = LOCATE_exec___NativeProcess___in_fd;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:171 */
+  REGB0 = TAG_Int(exec_NativeProcess_NativeProcess_in_fd_0(UNBOX_NativeProcess(fra.me.REG[0])));
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+val_t exec___NativeProcess___out_fd(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_exec;
+  fra.me.line = 172;
+  fra.me.meth = LOCATE_exec___NativeProcess___out_fd;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:172 */
+  REGB0 = TAG_Int(exec_NativeProcess_NativeProcess_out_fd_0(UNBOX_NativeProcess(fra.me.REG[0])));
+  stack_frame_head = fra.me.prev;
+  return REGB0;
+}
+val_t exec___NativeProcess___err_fd(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_exec;
+  fra.me.line = 173;
+  fra.me.meth = LOCATE_exec___NativeProcess___err_fd;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./../lib/standard//exec.nit:173 */
+  REGB0 = TAG_Int(exec_NativeProcess_NativeProcess_err_fd_0(UNBOX_NativeProcess(fra.me.REG[0])));
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }