c_src: update
[nit.git] / c_src / partial_order._sep.c
index fc8b6a8..dbbf0bf 100644 (file)
 /* This C file is generated by NIT to compile module partial_order. */
 #include "partial_order._sep.h"
-val_t partial_order___PartialOrder___iterator(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 54, LOCATE_partial_order___PartialOrder___iterator};
-  val_t variable[3];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrder____elements_list(variable[0]) /*PartialOrder::_elements_list*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_abstract_collection___Collection___iterator(variable[2])(variable[2]) /*AbstractArrayRead::iterator*/;
-  variable[1] = variable[2];
-  goto return_label0;
-  return_label0: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+val_t partial_order___PartialOrder___iterator(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_partial_order;
+  fra.me.line = 54;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___iterator;
+  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_partial_order___PartialOrder____elements_list(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:54 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements_list");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 54);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrder____elements_list(fra.me.REG[0]);
+  fra.me.REG[0] = CALL_abstract_collection___Collection___iterator(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrder___is_empty(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 35, LOCATE_partial_order___PartialOrder___is_empty};
-  val_t variable[3];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_abstract_collection___Collection___is_empty(variable[2])(variable[2]) /*Collection::is_empty*/;
-  variable[1] = variable[2];
-  goto return_label1;
-  return_label1: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+val_t partial_order___PartialOrder___is_empty(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_partial_order;
+  fra.me.line = 35;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___is_empty;
+  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_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:35 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 35);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+  REGB0 = CALL_abstract_collection___Collection___is_empty(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrder___length(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 37, LOCATE_partial_order___PartialOrder___length};
-  val_t variable[3];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_abstract_collection___Collection___length(variable[2])(variable[2]) /*Collection::length*/;
-  variable[1] = variable[2];
-  goto return_label2;
-  return_label2: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+val_t partial_order___PartialOrder___length(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_partial_order;
+  fra.me.line = 37;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___length;
+  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_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:37 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 37);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+  REGB0 = CALL_abstract_collection___Collection___length(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrder___has(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 41, LOCATE_partial_order___PartialOrder___has};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_abstract_collection___MapRead___has_key(variable[3])(variable[3],  variable[1] /*e*/) /*MapRead::has_key*/;
-  variable[2] = variable[3];
-  goto return_label3;
-  return_label3: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+val_t partial_order___PartialOrder___has(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_partial_order;
+  fra.me.line = 41;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___has;
+  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;
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:41 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 41);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+  REGB0 = CALL_abstract_collection___MapRead___has_key(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrder___has_only(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 43, LOCATE_partial_order___PartialOrder___has_only};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_abstract_collection___Collection___length(variable[3])(variable[3]) /*Collection::length*/;
-  /* Register variable[3]: Result */
-  variable[3] = TAG_Bool((variable[3])==( TAG_Int(1)));
-  /* Ensure var variable[3]: Left 'and' operand*/
-  if (UNTAG_Bool(variable[3])) { /* and */
-    /* Register variable[3]: Result */
-    variable[3] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-    /* Register variable[3]: Result */
-    variable[3] = CALL_abstract_collection___Collection___first(variable[3])(variable[3]) /*Collection::first*/;
-    /* Register variable[3]: Result */
-    variable[3] = TAG_Bool((variable[3] ==  variable[1] /*e*/) || ((variable[3] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[3])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[3], variable[1] /*e*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3],  variable[1] /*e*/) /*Object::==*/)))));
+val_t partial_order___PartialOrder___has_only(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  val_t REGB2;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 43;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___has_only;
+  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;
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:43 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 43);
+    nit_exit(1);
+  }
+  fra.me.REG[2] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+  REGB0 = CALL_abstract_collection___Collection___length(fra.me.REG[2])(fra.me.REG[2]);
+  REGB1 = TAG_Int(1);
+  REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
+  if (UNTAG_Bool(REGB2)) {
+  } else {
+    REGB1 = TAG_Bool((REGB0)==(REGB1));
+    REGB2 = REGB1;
+  /* ./metamodel//partial_order.nit:43 */
   }
-  /* Register variable[3]: Result */
-  variable[2] = variable[3];
-  goto return_label4;
-  return_label4: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+  if (UNTAG_Bool(REGB2)) {
+    REGB2 = TAG_Bool(ATTR_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+    if (UNTAG_Bool(REGB2)) {
+    } else {
+      fprintf(stderr, "Uninitialized attribute %s", "_elements");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 43);
+      nit_exit(1);
+    }
+    fra.me.REG[0] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+    fra.me.REG[0] = CALL_abstract_collection___Collection___first(fra.me.REG[0])(fra.me.REG[0]);
+    REGB2 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[0],fra.me.REG[1]));
+    if (UNTAG_Bool(REGB2)) {
+    } else {
+      REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+      if (UNTAG_Bool(REGB1)) {
+        REGB1 = TAG_Bool(false);
+        REGB2 = REGB1;
+      } else {
+        REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+        REGB2 = REGB1;
+      }
+    }
+  } else {
+    REGB1 = TAG_Bool(false);
+    REGB2 = REGB1;
+  }
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB2;
 }
-val_t partial_order___PartialOrder___count(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 45, LOCATE_partial_order___PartialOrder___count};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = CALL_abstract_collection___Collection___has(variable[0])(variable[0],  variable[1] /*e*/) /*PartialOrder::has*/;
-  if (UNTAG_Bool(variable[3])) { /*if*/
-    variable[2] =  TAG_Int(1);
-    goto return_label5;
-  } else { /*if*/
-    variable[2] =  TAG_Int(0);
-    goto return_label5;
+val_t partial_order___PartialOrder___count(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} 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_partial_order;
+  fra.me.line = 45;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___count;
+  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;
+  REGB0 = CALL_abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+  /* ./metamodel//partial_order.nit:47 */
+  if (UNTAG_Bool(REGB0)) {
+    REGB0 = TAG_Int(1);
+    /* ./metamodel//partial_order.nit:48 */
+    goto label1;
+  } else {
+    REGB1 = TAG_Int(0);
+    REGB0 = REGB1;
+    /* ./metamodel//partial_order.nit:50 */
+    goto label1;
   }
-  return_label5: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrder___first(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 39, LOCATE_partial_order___PartialOrder___first};
-  val_t variable[3];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrder____elements_list(variable[0]) /*PartialOrder::_elements_list*/;
-  /* Register variable[2]: Result */
-  variable[2] = CALL_abstract_collection___Collection___first(variable[2])(variable[2]) /*IndexedCollectionRead::first*/;
-  variable[1] = variable[2];
-  goto return_label6;
-  return_label6: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+val_t partial_order___PartialOrder___first(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_partial_order;
+  fra.me.line = 39;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___first;
+  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_partial_order___PartialOrder____elements_list(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:39 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements_list");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 39);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrder____elements_list(fra.me.REG[0]);
+  fra.me.REG[0] = CALL_abstract_collection___Collection___first(fra.me.REG[0])(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrder___roots(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 30, LOCATE_partial_order___PartialOrder___roots};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  tracehead = trace.prev;
-  return ATTR_partial_order___PartialOrder____roots( self) /*PartialOrder::_roots*/;
+val_t partial_order___PartialOrder___roots(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_partial_order;
+  fra.me.line = 30;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___roots;
+  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_partial_order___PartialOrder____roots(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:30 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_roots");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 30);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrder____roots(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrder_____bra(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 58, LOCATE_partial_order___PartialOrder_____bra};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_abstract_collection___MapRead_____bra(variable[3])(variable[3],  variable[1] /*e*/) /*MapRead::[]*/;
-  variable[2] = variable[3];
-  goto return_label7;
-  return_label7: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+val_t partial_order___PartialOrder_____bra(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_partial_order;
+  fra.me.line = 58;
+  fra.me.meth = LOCATE_partial_order___PartialOrder_____bra;
+  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;
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:61 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 61);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_abstract_collection___MapRead_____bra(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[1];
 }
-val_t partial_order___PartialOrder___to_dot(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 64, LOCATE_partial_order___PartialOrder___to_dot};
-  static val_t once_value_11 = NIT_NULL; /* Once value for string variable[3]*/
-  val_t variable[10];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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_Buffer_string___Buffer___init() /*new Buffer*/;
-  variable[2] = variable[3];
-  /* Register variable[3]: Result */
-  variable[3] = CALL_partial_order___PartialOrder___to_dot_header(variable[0])(variable[0]) /*PartialOrder::to_dot_header*/;
-  CALL_abstract_collection___IndexedCollection___append( variable[2] /*s*/)( variable[2] /*s*/, variable[3]) /*Buffer::append*/;
-  /* Register variable[3]: Result */
-  variable[3] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-  /* Register variable[3]: For iterator */
-  variable[3] = CALL_abstract_collection___Collection___iterator(variable[3])(variable[3]) /*MapRead::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[4]: For 'is_ok' result */
-    variable[4] = CALL_abstract_collection___Iterator___is_ok(variable[3])(variable[3]) /*Iterator::is_ok*/;
-    if (!UNTAG_Bool(variable[4])) break; /*for*/
-    variable[4] = CALL_abstract_collection___Iterator___item(variable[3])(variable[3]) /*Iterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[5]: Local variable */
-    variable[5] = variable[4];
-    /* Register variable[6]: Result */
-    variable[6] = CALL_partial_order___PartialOrderElement___value( variable[5] /*e*/)( variable[5] /*e*/) /*PartialOrderElement::value*/;
-    /* Register variable[6]: Result */
-    variable[6] = CALL_partial_order___PartialOrder___to_dot_node(variable[0])(variable[0], variable[6]) /*PartialOrder::to_dot_node*/;
-    CALL_abstract_collection___IndexedCollection___append( variable[2] /*s*/)( variable[2] /*s*/, variable[6]) /*Buffer::append*/;
-    /* Register variable[6]: Result */
-    variable[6] = CALL_partial_order___PartialOrderElement___direct_greaters( variable[5] /*e*/)( variable[5] /*e*/) /*PartialOrderElement::direct_greaters*/;
-    /* Register variable[6]: For iterator */
-    variable[6] = CALL_abstract_collection___Collection___iterator(variable[6])(variable[6]) /*AbstractArrayRead::iterator*/;
-    while (true) { /*for*/
-      /* Register variable[7]: For 'is_ok' result */
-      variable[7] = CALL_abstract_collection___Iterator___is_ok(variable[6])(variable[6]) /*ArrayIterator::is_ok*/;
-      if (!UNTAG_Bool(variable[7])) break; /*for*/
-      variable[7] = CALL_abstract_collection___Iterator___item(variable[6])(variable[6]) /*ArrayIterator::item*/ /* Ensure var: For item*/;
-      /* Register variable[8]: Local variable */
-      variable[8] = variable[7];
-      /* Register variable[9]: Result */
-      variable[9] = CALL_partial_order___PartialOrderElement___value( variable[5] /*e*/)( variable[5] /*e*/) /*PartialOrderElement::value*/;
-      /* Register variable[9]: Result */
-      variable[9] = CALL_partial_order___PartialOrder___to_dot_edge(variable[0])(variable[0], variable[9],  variable[8] /*d*/) /*PartialOrder::to_dot_edge*/;
-      CALL_abstract_collection___IndexedCollection___append( variable[2] /*s*/)( variable[2] /*s*/, variable[9]) /*Buffer::append*/;
-      continue_10: while(0);
-      CALL_abstract_collection___Iterator___next(variable[6])(variable[6]) /*ArrayIterator::next*/;
-    }
-    break_10: while(0);
-    continue_9: while(0);
-    CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*Iterator::next*/;
+val_t partial_order___PartialOrder___to_dot(val_t p0){
+  struct {struct stack_frame_t me; val_t MORE_REG[6];} fra;
+  val_t REGB0;
+  val_t tmp;
+  static val_t once_value_3; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 64;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___to_dot;
+  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] = NEW_Buffer_string___Buffer___init();
+  fra.me.REG[2] = CALL_partial_order___PartialOrder___to_dot_header(fra.me.REG[0])(fra.me.REG[0]);
+  /* ./metamodel//partial_order.nit:68 */
+  CALL_abstract_collection___Sequence___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:69 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 69);
+    nit_exit(1);
   }
-  break_9: while(0);
-  /* 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("}\n"), TAG_Int(2)) /*new String*/;
-    once_value_11 = variable[3];
+  fra.me.REG[2] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+  fra.me.REG[2] = CALL_abstract_collection___Collection___iterator(fra.me.REG[2])(fra.me.REG[2]);
+  while(1) {
+    REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[2])(fra.me.REG[2]);
+    if (UNTAG_Bool(REGB0)) {
+      fra.me.REG[3] = CALL_abstract_collection___Iterator___item(fra.me.REG[2])(fra.me.REG[2]);
+      fra.me.REG[4] = CALL_partial_order___PartialOrderElement___value(fra.me.REG[3])(fra.me.REG[3]);
+      fra.me.REG[4] = CALL_partial_order___PartialOrder___to_dot_node(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[4]);
+      /* ./metamodel//partial_order.nit:70 */
+      CALL_abstract_collection___Sequence___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[4]);
+      fra.me.REG[4] = CALL_partial_order___PartialOrderElement___direct_greaters(fra.me.REG[3])(fra.me.REG[3]);
+      fra.me.REG[4] = CALL_abstract_collection___Collection___iterator(fra.me.REG[4])(fra.me.REG[4]);
+      /* ./metamodel//partial_order.nit:71 */
+      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] = CALL_partial_order___PartialOrderElement___value(fra.me.REG[3])(fra.me.REG[3]);
+          fra.me.REG[5] = CALL_partial_order___PartialOrder___to_dot_edge(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[6], fra.me.REG[5]);
+          /* ./metamodel//partial_order.nit:72 */
+          CALL_abstract_collection___Sequence___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[5]);
+        } else {
+          /* ./metamodel//partial_order.nit:71 */
+          goto label1;
+        }
+        CALL_abstract_collection___Iterator___next(fra.me.REG[4])(fra.me.REG[4]);
+      }
+      label1: while(0);
+    } else {
+      /* ./metamodel//partial_order.nit:69 */
+      goto label2;
+    }
+    CALL_abstract_collection___Iterator___next(fra.me.REG[2])(fra.me.REG[2]);
   }
-  /* Register variable[3]: Result */
-  CALL_abstract_collection___IndexedCollection___append( variable[2] /*s*/)( variable[2] /*s*/, variable[3]) /*Buffer::append*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_string___Object___to_s( variable[2] /*s*/)( variable[2] /*s*/) /*Buffer::to_s*/;
-  variable[1] = variable[3];
-  goto return_label8;
-  return_label8: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+  label2: while(0);
+  /* ./metamodel//partial_order.nit:75 */
+  if (!once_value_3) {
+    fra.me.REG[2] = BOX_NativeString("}\n");
+    REGB0 = TAG_Int(2);
+    fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+    once_value_3 = fra.me.REG[2];
+    register_static_object(&once_value_3);
+  } else fra.me.REG[2] = once_value_3;
+  CALL_abstract_collection___Sequence___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+  fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./metamodel//partial_order.nit:76 */
+  goto label4;
+  label4: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[1];
 }
-val_t partial_order___PartialOrder___to_dot_header(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 79, LOCATE_partial_order___PartialOrder___to_dot_header};
-  static val_t once_value_13 = NIT_NULL; /* Once value for string variable[2]*/
-  val_t variable[3];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Once String constant */
-  if (once_value_13 != NIT_NULL) variable[2] = once_value_13;
-  else {
-    variable[2] = NEW_String_string___String___with_native(BOX_NativeString("digraph G {\ngraph [rankdir=BT];\n"), TAG_Int(32)) /*new String*/;
-    once_value_13 = variable[2];
-  }
-  /* Register variable[2]: Result */
-  variable[1] = variable[2];
-  goto return_label12;
-  return_label12: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+val_t partial_order___PartialOrder___to_dot_header(val_t p0){
+  struct {struct stack_frame_t me;} fra;
+  val_t REGB0;
+  val_t tmp;
+  static val_t once_value_1; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 79;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___to_dot_header;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 1;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  /* ./metamodel//partial_order.nit:82 */
+  if (!once_value_1) {
+    fra.me.REG[0] = BOX_NativeString("digraph G {\ngraph [rankdir=BT];\n");
+    REGB0 = TAG_Int(32);
+    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;
+  goto label2;
+  label2: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
+}
+val_t partial_order___PartialOrder___to_dot_node(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t REGB0;
+  val_t tmp;
+  static val_t once_value_1; /* Once value */
+  static val_t once_value_2; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 85;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___to_dot_node;
+  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;
+  REGB0 = TAG_Int(3);
+  fra.me.REG[0] = NEW_Array_array___Array___with_capacity(REGB0);
+  /* ./metamodel//partial_order.nit:88 */
+  if (!once_value_1) {
+    fra.me.REG[2] = BOX_NativeString("\"");
+    REGB0 = TAG_Int(1);
+    fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+    once_value_1 = fra.me.REG[2];
+    register_static_object(&once_value_1);
+  } else fra.me.REG[2] = once_value_1;
+  array___Array___add(fra.me.REG[0], fra.me.REG[2]);
+  fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[1]);
+  if (!once_value_2) {
+    fra.me.REG[1] = BOX_NativeString("\";\n");
+    REGB0 = TAG_Int(3);
+    fra.me.REG[1] = NEW_String_string___String___with_native(fra.me.REG[1], REGB0);
+    once_value_2 = fra.me.REG[1];
+    register_static_object(&once_value_2);
+  } else fra.me.REG[1] = once_value_2;
+  array___Array___add(fra.me.REG[0], fra.me.REG[1]);
+  fra.me.REG[0] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+  goto label3;
+  label3: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
+}
+val_t partial_order___PartialOrder___to_dot_edge(val_t p0, val_t p1, val_t p2){
+  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 */
+  static val_t once_value_2; /* Once value */
+  static val_t once_value_3; /* Once value */
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 91;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___to_dot_edge;
+  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;
+  fra.me.REG[2] = p2;
+  REGB0 = TAG_Int(5);
+  fra.me.REG[0] = NEW_Array_array___Array___with_capacity(REGB0);
+  /* ./metamodel//partial_order.nit:94 */
+  if (!once_value_1) {
+    fra.me.REG[3] = BOX_NativeString("\"");
+    REGB0 = TAG_Int(1);
+    fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0);
+    once_value_1 = fra.me.REG[3];
+    register_static_object(&once_value_1);
+  } else fra.me.REG[3] = once_value_1;
+  array___Array___add(fra.me.REG[0], fra.me.REG[3]);
+  fra.me.REG[1] = CALL_string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[1]);
+  if (!once_value_2) {
+    fra.me.REG[1] = BOX_NativeString("\" -> \"");
+    REGB0 = TAG_Int(6);
+    fra.me.REG[1] = NEW_String_string___String___with_native(fra.me.REG[1], REGB0);
+    once_value_2 = fra.me.REG[1];
+    register_static_object(&once_value_2);
+  } else fra.me.REG[1] = once_value_2;
+  array___Array___add(fra.me.REG[0], fra.me.REG[1]);
+  fra.me.REG[2] = CALL_string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[2]);
+  if (!once_value_3) {
+    fra.me.REG[2] = BOX_NativeString("\";\n");
+    REGB0 = TAG_Int(3);
+    fra.me.REG[2] = NEW_String_string___String___with_native(fra.me.REG[2], REGB0);
+    once_value_3 = fra.me.REG[2];
+    register_static_object(&once_value_3);
+  } else fra.me.REG[2] = once_value_3;
+  array___Array___add(fra.me.REG[0], fra.me.REG[2]);
+  fra.me.REG[0] = CALL_string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+  goto label4;
+  label4: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrder___to_dot_node(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 85, LOCATE_partial_order___PartialOrder___to_dot_node};
-  static val_t once_value_15 = NIT_NULL; /* Once value for string variable[4]*/
-  static val_t once_value_16 = NIT_NULL; /* Once value for string variable[4]*/
-  val_t variable[5];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Local variable */
-  variable[1] =  param0;
-  /* Register variable[2]: Method return value and escape marker */
-  variable[3] = NEW_Array_array___Array___with_capacity(TAG_Int(3)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[4]: Once String constant */
-  if (once_value_15 != NIT_NULL) variable[4] = once_value_15;
-  else {
-    variable[4] = NEW_String_string___String___with_native(BOX_NativeString("\""), TAG_Int(1)) /*new String*/;
-    once_value_15 = variable[4];
+val_t partial_order___PartialOrder___select_smallests(val_t p0, val_t p1){
+  struct {struct stack_frame_t me; val_t MORE_REG[5];} 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_partial_order;
+  fra.me.line = 97;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___select_smallests;
+  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;
+  REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+  /* ./metamodel//partial_order.nit:100 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      REGB1 = TAG_Bool(false);
+      REGB0 = REGB1;
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
+      REGB0 = REGB1;
+    }
   }
-  /* Register variable[4]: Result */
-  /* Ensure var variable[4]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
-  variable[4] =  variable[1] /*e*/ /* Ensure var: super-string element*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], CALL_string___Object___to_s(variable[4])(variable[4]) /*Object::to_s*/) /*AbstractArray::add*/;
-  /* 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("\";\n"), TAG_Int(3)) /*new String*/;
-    once_value_16 = variable[4];
+  if (UNTAG_Bool(REGB0)) {
+    fra.me.REG[2] = NEW_Array_array___Array___init();
+    goto label1;
   }
-  /* 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];
-  goto return_label14;
-  return_label14: while(false);
-  tracehead = trace.prev;
-  return variable[2];
-}
-val_t partial_order___PartialOrder___to_dot_edge(val_t  self, val_t  param0, val_t  param1) {
-  struct trace_t trace = {NULL, NULL, 91, LOCATE_partial_order___PartialOrder___to_dot_edge};
-  static val_t once_value_18 = NIT_NULL; /* Once value for string variable[5]*/
-  static val_t once_value_19 = NIT_NULL; /* Once value for string variable[5]*/
-  static val_t once_value_20 = NIT_NULL; /* Once value for string variable[5]*/
-  val_t variable[6];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Local variable */
-  variable[1] =  param0;
-  /* Register variable[2]: Local variable */
-  variable[2] =  param1;
-  /* Register variable[3]: Method return value and escape marker */
-  variable[4] = NEW_Array_array___Array___with_capacity(TAG_Int(5)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/;
-  /* Register variable[5]: Once String constant */
-  if (once_value_18 != NIT_NULL) variable[5] = once_value_18;
-  else {
-    variable[5] = NEW_String_string___String___with_native(BOX_NativeString("\""), TAG_Int(1)) /*new String*/;
-    once_value_18 = variable[5];
+  REGB0 = CALL_partial_order___PartialOrder___has_all(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+  /* ./metamodel//partial_order.nit:101 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Assert failed");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 101);
+    nit_exit(1);
+  }
+  REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+  /* ./metamodel//partial_order.nit:102 */
+  if (UNTAG_Bool(REGB0)) {
+    fprintf(stderr, "Reciever is null");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 102);
+    nit_exit(1);
   }
-  /* Register variable[5]: Result */
-  /* Ensure var variable[5]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[5]) /*AbstractArray::add*/;
-  variable[5] =  variable[1] /*e1*/ /* Ensure var: super-string element*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], CALL_string___Object___to_s(variable[5])(variable[5]) /*Object::to_s*/) /*AbstractArray::add*/;
-  /* Register variable[5]: Once String constant */
-  if (once_value_19 != NIT_NULL) variable[5] = once_value_19;
-  else {
-    variable[5] = NEW_String_string___String___with_native(BOX_NativeString("\" -> \""), TAG_Int(6)) /*new String*/;
-    once_value_19 = variable[5];
+  REGB0 = CALL_abstract_collection___Collection___length(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[3] = NEW_Array_array___Array___with_capacity(REGB0);
+  REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+  /* ./metamodel//partial_order.nit:103 */
+  if (UNTAG_Bool(REGB0)) {
+    fprintf(stderr, "Reciever is null");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 103);
+    nit_exit(1);
   }
-  /* Register variable[5]: Result */
-  /* Ensure var variable[5]: super-string element*/
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[5]) /*AbstractArray::add*/;
-  variable[5] =  variable[2] /*e2*/ /* Ensure var: super-string element*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], CALL_string___Object___to_s(variable[5])(variable[5]) /*Object::to_s*/) /*AbstractArray::add*/;
-  /* Register variable[5]: Once String constant */
-  if (once_value_20 != NIT_NULL) variable[5] = once_value_20;
-  else {
-    variable[5] = NEW_String_string___String___with_native(BOX_NativeString("\";\n"), TAG_Int(3)) /*new String*/;
-    once_value_20 = variable[5];
+  REGB0 = CALL_abstract_collection___Collection___length(fra.me.REG[1])(fra.me.REG[1]);
+  fra.me.REG[4] = NEW_Array_array___Array___with_capacity(REGB0);
+  fra.me.REG[1] = CALL_abstract_collection___Collection___iterator(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./metamodel//partial_order.nit:104 */
+  while(1) {
+    REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[1])(fra.me.REG[1]);
+    if (UNTAG_Bool(REGB0)) {
+      fra.me.REG[5] = CALL_abstract_collection___Iterator___item(fra.me.REG[1])(fra.me.REG[1]);
+      REGB0 = CALL_partial_order___PartialOrder___add_to_smallests(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[5], fra.me.REG[3], fra.me.REG[4]);
+      /* ./metamodel//partial_order.nit:107 */
+      if (UNTAG_Bool(REGB0)) {
+        fra.me.REG[5] = fra.me.REG[4];
+        fra.me.REG[4] = fra.me.REG[3];
+        fra.me.REG[3] = fra.me.REG[5];
+      /* ./metamodel//partial_order.nit:112 */
+      }
+    } else {
+      /* ./metamodel//partial_order.nit:104 */
+      goto label2;
+    }
+    CALL_abstract_collection___Iterator___next(fra.me.REG[1])(fra.me.REG[1]);
   }
-  /* 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];
-  goto return_label17;
-  return_label17: while(false);
-  tracehead = trace.prev;
-  return variable[3];
+  label2: while(0);
+  fra.me.REG[2] = fra.me.REG[3];
+  /* ./metamodel//partial_order.nit:115 */
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[2];
 }
-val_t partial_order___PartialOrder___select_smallests(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 97, LOCATE_partial_order___PartialOrder___select_smallests};
-  val_t variable[10];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = TAG_Bool(( variable[1] /*c*/ ==  NIT_NULL /*null*/) || (( variable[1] /*c*/ != NIT_NULL) && ((CALL_kernel___Object_____eqeq( variable[1] /*c*/)==kernel___Object_____eqeq)?(IS_EQUAL_NN( variable[1] /*c*/, NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq( variable[1] /*c*/)( variable[1] /*c*/,  NIT_NULL /*null*/) /*Object::==*/)))));
-  if (UNTAG_Bool(variable[3])) { /*if*/
-    /* Register variable[3]: Result */
-    variable[3] = NEW_Array_array___Array___init() /*new Array[E]*/;
-    variable[2] = variable[3];
-    goto return_label21;
+val_t partial_order___PartialOrder___add(val_t p0, val_t p1, val_t p2){
+  struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 118;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___add;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 5;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[2] = NIT_NULL;
+  fra.me.REG[3] = NIT_NULL;
+  fra.me.REG[4] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  fra.me.REG[2] = p2;
+  REGB0 = CALL_abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+  REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
+  /* ./metamodel//partial_order.nit:121 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Assert failed");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 121);
+    nit_exit(1);
   }
-  /* Register variable[3]: Result */
-  variable[3] = CALL_partial_order___PartialOrder___has_all(variable[0])(variable[0],  variable[1] /*c*/) /*PartialOrder::has_all*/;
-  if (!UNTAG_Bool(variable[3])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_partial_order___PartialOrder___select_smallests, LOCATE_partial_order, 101); nit_exit(1);}
-  /* Register variable[3]: Local variable */
-  /* Register variable[4]: Result */
-  variable[4] = CALL_abstract_collection___Collection___length( variable[1] /*c*/)( variable[1] /*c*/) /*Collection::length*/;
-  /* Register variable[4]: Result */
-  variable[4] = NEW_Array_array___Array___with_capacity(variable[4]) /*new Array[E]*/;
-  variable[3] = variable[4];
-  /* Register variable[4]: Local variable */
-  /* Register variable[5]: Result */
-  variable[5] = CALL_abstract_collection___Collection___length( variable[1] /*c*/)( variable[1] /*c*/) /*Collection::length*/;
-  /* Register variable[5]: Result */
-  variable[5] = NEW_Array_array___Array___with_capacity(variable[5]) /*new Array[E]*/;
-  variable[4] = variable[5];
-  /* Register variable[5]: For iterator */
-  variable[5] = CALL_abstract_collection___Collection___iterator( variable[1] /*c*/)( variable[1] /*c*/) /*Collection::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[6]: For 'is_ok' result */
-    variable[6] = CALL_abstract_collection___Iterator___is_ok(variable[5])(variable[5]) /*Iterator::is_ok*/;
-    if (!UNTAG_Bool(variable[6])) break; /*for*/
-    variable[6] = CALL_abstract_collection___Iterator___item(variable[5])(variable[5]) /*Iterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[7]: Local variable */
-    variable[7] = variable[6];
-    /* Register variable[8]: Local variable */
-    /* Register variable[9]: Result */
-    variable[9] = CALL_partial_order___PartialOrder___add_to_smallests(variable[0])(variable[0],  variable[7] /*e*/,  variable[3] /*res*/,  variable[4] /*tmp*/) /*PartialOrder::add_to_smallests*/;
-    variable[8] = variable[9];
-    if (UNTAG_Bool( variable[8] /*r*/)) { /*if*/
-      /* Register variable[9]: Local variable */
-      variable[9] =  variable[4] /*tmp*/;
-      variable[4] =  variable[3] /*res*/ /*tmp=*/;
-      variable[3] =  variable[9] /*t*/ /*res=*/;
+  REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+  /* ./metamodel//partial_order.nit:122 */
+  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;
     }
-    continue_22: while(0);
-    CALL_abstract_collection___Iterator___next(variable[5])(variable[5]) /*Iterator::next*/;
   }
-  break_22: while(0);
-  variable[2] =  variable[3] /*res*/;
-  goto return_label21;
-  return_label21: while(false);
-  tracehead = trace.prev;
-  return variable[2];
-}
-val_t partial_order___PartialOrder___add(val_t  self, val_t  param0, val_t  param1) {
-  struct trace_t trace = {NULL, NULL, 118, LOCATE_partial_order___PartialOrder___add};
-  val_t variable[7];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Local variable */
-  variable[1] =  param0;
-  /* Register variable[2]: Local variable */
-  variable[2] =  param1;
-  /* Register variable[3]: Method return value and escape marker */
-  /* Register variable[4]: Result */
-  variable[4] = CALL_abstract_collection___Collection___has(variable[0])(variable[0],  variable[1] /*e*/) /*PartialOrder::has*/;
-  if (!UNTAG_Bool( TAG_Bool(!UNTAG_Bool(variable[4])))) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_partial_order___PartialOrder___add, LOCATE_partial_order, 121); nit_exit(1);}
-  /* Register variable[4]: Result */
-  variable[4] = TAG_Bool(( variable[2] /*supers*/ ==  NIT_NULL /*null*/) || (( variable[2] /*supers*/ != NIT_NULL) && ((CALL_kernel___Object_____eqeq( variable[2] /*supers*/)==kernel___Object_____eqeq)?(IS_EQUAL_NN( variable[2] /*supers*/, NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq( variable[2] /*supers*/)( variable[2] /*supers*/,  NIT_NULL /*null*/) /*Object::==*/)))));
-  /* Ensure var variable[4]: Left 'or' operand*/
-  if (!UNTAG_Bool(variable[4])) { /* or */
-    /* Register variable[4]: Result */
-    variable[4] = CALL_partial_order___PartialOrder___has_all(variable[0])(variable[0],  variable[2] /*supers*/) /*PartialOrder::has_all*/;
+  if (UNTAG_Bool(REGB0)) {
+    REGB0 = TAG_Bool(true);
+  } else {
+    REGB1 = CALL_partial_order___PartialOrder___has_all(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
+    REGB0 = REGB1;
+  }
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Assert failed");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 122);
+    nit_exit(1);
   }
-  /* Register variable[4]: Result */
-  if (!UNTAG_Bool(variable[4])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_partial_order___PartialOrder___add, LOCATE_partial_order, 122); nit_exit(1);}
-  /* Register variable[4]: Local variable */
-  /* Register variable[5]: Result */
-  variable[5] = CALL_partial_order___PartialOrder___select_smallests(variable[0])(variable[0],  variable[2] /*supers*/) /*PartialOrder::select_smallests*/;
-  variable[4] = variable[5];
-  /* Register variable[5]: Local variable */
-  /* Register variable[6]: Result */
-  variable[6] = CALL_partial_order___PartialOrder___new_poe(variable[0])(variable[0],  variable[1] /*e*/,  variable[4] /*directs*/) /*PartialOrder::new_poe*/;
-  variable[5] = variable[6];
-  /* Register variable[6]: Result */
-  variable[6] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-  CALL_abstract_collection___Map_____braeq(variable[6])(variable[6],  variable[1] /*e*/,  variable[5] /*poe*/) /*Map::[]=*/;
-  /* Register variable[6]: Result */
-  variable[6] = ATTR_partial_order___PartialOrder____elements_list(variable[0]) /*PartialOrder::_elements_list*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[6])(variable[6],  variable[1] /*e*/) /*AbstractArray::add*/;
-  /* Register variable[6]: Result */
-  variable[6] = TAG_Bool(( variable[2] /*supers*/ ==  NIT_NULL /*null*/) || (( variable[2] /*supers*/ != NIT_NULL) && ((CALL_kernel___Object_____eqeq( variable[2] /*supers*/)==kernel___Object_____eqeq)?(IS_EQUAL_NN( variable[2] /*supers*/, NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq( variable[2] /*supers*/)( variable[2] /*supers*/,  NIT_NULL /*null*/) /*Object::==*/)))));
-  /* Ensure var variable[6]: Left 'or' operand*/
-  if (!UNTAG_Bool(variable[6])) { /* or */
-    /* Register variable[6]: Result */
-    variable[6] = CALL_abstract_collection___Collection___is_empty( variable[2] /*supers*/)( variable[2] /*supers*/) /*Collection::is_empty*/;
+  fra.me.REG[3] = CALL_partial_order___PartialOrder___select_smallests(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
+  fra.me.REG[3] = CALL_partial_order___PartialOrder___new_poe(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[3]);
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:125 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 125);
+    nit_exit(1);
   }
-  /* Register variable[6]: Result */
-  if (UNTAG_Bool(variable[6])) { /*if*/
-    /* Register variable[6]: Result */
-    variable[6] = ATTR_partial_order___PartialOrder____roots(variable[0]) /*PartialOrder::_roots*/;
-    CALL_abstract_collection___SimpleCollection___add(variable[6])(variable[6],  variable[1] /*e*/) /*AbstractArray::add*/;
+  fra.me.REG[4] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+  CALL_abstract_collection___Map_____braeq(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[1], fra.me.REG[3]);
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrder____elements_list(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:126 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements_list");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 126);
+    nit_exit(1);
   }
-  variable[3] =  variable[5] /*poe*/;
-  goto return_label23;
-  return_label23: while(false);
-  tracehead = trace.prev;
-  return variable[3];
+  fra.me.REG[4] = ATTR_partial_order___PartialOrder____elements_list(fra.me.REG[0]);
+  array___Array___add(fra.me.REG[4], fra.me.REG[1]);
+  REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+  /* ./metamodel//partial_order.nit:127 */
+  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;
+    }
+  }
+  if (UNTAG_Bool(REGB0)) {
+    REGB0 = TAG_Bool(true);
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      fprintf(stderr, "Reciever is null");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 127);
+      nit_exit(1);
+    }
+    REGB1 = CALL_abstract_collection___Collection___is_empty(fra.me.REG[2])(fra.me.REG[2]);
+    REGB0 = REGB1;
+  }
+  if (UNTAG_Bool(REGB0)) {
+    REGB0 = TAG_Bool(ATTR_partial_order___PartialOrder____roots(fra.me.REG[0])!=NIT_NULL);
+    /* ./metamodel//partial_order.nit:128 */
+    if (UNTAG_Bool(REGB0)) {
+    } else {
+      fprintf(stderr, "Uninitialized attribute %s", "_roots");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 128);
+      nit_exit(1);
+    }
+    fra.me.REG[0] = ATTR_partial_order___PartialOrder____roots(fra.me.REG[0]);
+    array___Array___add(fra.me.REG[0], fra.me.REG[1]);
+  }
+  /* ./metamodel//partial_order.nit:130 */
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[3];
 }
-val_t partial_order___PartialOrder___has_all(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 133, LOCATE_partial_order___PartialOrder___has_all};
-  val_t variable[7];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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] /*e*/)( variable[1] /*e*/) /*Collection::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[4]: For 'is_ok' result */
-    variable[4] = CALL_abstract_collection___Iterator___is_ok(variable[3])(variable[3]) /*Iterator::is_ok*/;
-    if (!UNTAG_Bool(variable[4])) break; /*for*/
-    variable[4] = CALL_abstract_collection___Iterator___item(variable[3])(variable[3]) /*Iterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[5]: Local variable */
-    variable[5] = variable[4];
-    /* Register variable[6]: Result */
-    variable[6] = CALL_abstract_collection___Collection___has(variable[0])(variable[0],  variable[5] /*i*/) /*PartialOrder::has*/;
-    if (UNTAG_Bool( TAG_Bool(!UNTAG_Bool(variable[6])))) { /*if*/
-      variable[2] =  TAG_Bool(false);
-      goto return_label24;
+val_t partial_order___PartialOrder___has_all(val_t p0, val_t p1){
+  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_partial_order;
+  fra.me.line = 133;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___has_all;
+  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[1] = CALL_abstract_collection___Collection___iterator(fra.me.REG[1])(fra.me.REG[1]);
+  /* ./metamodel//partial_order.nit:136 */
+  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]);
+      REGB0 = CALL_abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
+      REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
+      /* ./metamodel//partial_order.nit:137 */
+      if (UNTAG_Bool(REGB0)) {
+        REGB0 = TAG_Bool(false);
+        /* ./metamodel//partial_order.nit:138 */
+        goto label1;
+      }
+    } else {
+      /* ./metamodel//partial_order.nit:136 */
+      goto label2;
     }
-    continue_25: while(0);
-    CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*Iterator::next*/;
+    CALL_abstract_collection___Iterator___next(fra.me.REG[1])(fra.me.REG[1]);
   }
-  break_25: while(0);
-  variable[2] =  TAG_Bool(true);
-  goto return_label24;
-  return_label24: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+  label2: while(0);
+  REGB1 = TAG_Bool(true);
+  REGB0 = REGB1;
+  /* ./metamodel//partial_order.nit:141 */
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrder___new_poe(val_t  self, val_t  param0, val_t  param1) {
-  struct trace_t trace = {NULL, NULL, 144, LOCATE_partial_order___PartialOrder___new_poe};
-  val_t variable[5];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Local variable */
-  variable[1] =  param0;
-  /* Register variable[2]: Local variable */
-  variable[2] =  param1;
-  /* Register variable[3]: Method return value and escape marker */
-  /* Register variable[4]: Result */
-  variable[4] = NEW_PartialOrderElement_partial_order___PartialOrderElement___init(variable[0],  variable[1] /*e*/,  variable[2] /*directs*/) /*new PartialOrderElement[E]*/;
-  variable[3] = variable[4];
-  goto return_label26;
-  return_label26: while(false);
-  tracehead = trace.prev;
-  return variable[3];
+val_t partial_order___PartialOrder___new_poe(val_t p0, val_t p1, val_t p2){
+  struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 144;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___new_poe;
+  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;
+  fra.me.REG[2] = NEW_PartialOrderElement_partial_order___PartialOrderElement___init(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2]);
+  /* ./metamodel//partial_order.nit:147 */
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[2];
 }
-val_t partial_order___PartialOrder___add_to_smallests(val_t  self, val_t  param0, val_t  param1, val_t  param2) {
-  struct trace_t trace = {NULL, NULL, 150, LOCATE_partial_order___PartialOrder___add_to_smallests};
-  val_t variable[10];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Local variable */
-  variable[1] =  param0;
-  /* Register variable[2]: Local variable */
-  variable[2] =  param1;
-  /* Register variable[3]: Local variable */
-  variable[3] =  param2;
-  /* Register variable[4]: Method return value and escape marker */
-  CALL_abstract_collection___RemovableCollection___clear( variable[3] /*to*/)( variable[3] /*to*/) /*AbstractArray::clear*/;
-  /* Register variable[5]: Local variable */
-  /* Register variable[6]: Result */
-  variable[6] = CALL_partial_order___PartialOrder_____bra(variable[0])(variable[0],  variable[1] /*e*/) /*PartialOrder::[]*/;
-  variable[5] = variable[6];
-  /* Register variable[6]: For iterator */
-  variable[6] = CALL_abstract_collection___Collection___iterator( variable[2] /*from*/)( variable[2] /*from*/) /*AbstractArrayRead::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[7]: For 'is_ok' result */
-    variable[7] = CALL_abstract_collection___Iterator___is_ok(variable[6])(variable[6]) /*ArrayIterator::is_ok*/;
-    if (!UNTAG_Bool(variable[7])) break; /*for*/
-    variable[7] = CALL_abstract_collection___Iterator___item(variable[6])(variable[6]) /*ArrayIterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[8]: Local variable */
-    variable[8] = variable[7];
-    /* Register variable[9]: Result */
-    variable[9] = CALL_partial_order___PartialOrderElement_____g( variable[5] /*poe*/)( variable[5] /*poe*/,  variable[8] /*i*/) /*PartialOrderElement::>*/;
-    if (UNTAG_Bool(variable[9])) { /*if*/
-      variable[4] =  TAG_Bool(false);
-      goto return_label27;
-    }
-    /* Register variable[9]: Result */
-    variable[9] = CALL_partial_order___PartialOrderElement_____l( variable[5] /*poe*/)( variable[5] /*poe*/,  variable[8] /*i*/) /*PartialOrderElement::<*/;
-    if (UNTAG_Bool( TAG_Bool(!UNTAG_Bool(variable[9])))) { /*if*/
-      CALL_abstract_collection___SimpleCollection___add( variable[3] /*to*/)( variable[3] /*to*/,  variable[8] /*i*/) /*AbstractArray::add*/;
+val_t partial_order___PartialOrder___add_to_smallests(val_t p0, val_t p1, val_t p2, val_t p3){
+  struct {struct stack_frame_t me; val_t MORE_REG[4];} 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_partial_order;
+  fra.me.line = 150;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___add_to_smallests;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 5;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[2] = NIT_NULL;
+  fra.me.REG[3] = NIT_NULL;
+  fra.me.REG[4] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = p1;
+  fra.me.REG[2] = p2;
+  fra.me.REG[3] = p3;
+  /* ./metamodel//partial_order.nit:157 */
+  CALL_abstract_collection___RemovableCollection___clear(fra.me.REG[3])(fra.me.REG[3]);
+  fra.me.REG[0] = CALL_partial_order___PartialOrder_____bra(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+  fra.me.REG[2] = CALL_abstract_collection___Collection___iterator(fra.me.REG[2])(fra.me.REG[2]);
+  /* ./metamodel//partial_order.nit:159 */
+  while(1) {
+    REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[2])(fra.me.REG[2]);
+    if (UNTAG_Bool(REGB0)) {
+      fra.me.REG[4] = CALL_abstract_collection___Iterator___item(fra.me.REG[2])(fra.me.REG[2]);
+      REGB0 = CALL_partial_order___PartialOrderElement_____g(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[4]);
+      /* ./metamodel//partial_order.nit:160 */
+      if (UNTAG_Bool(REGB0)) {
+        REGB0 = TAG_Bool(false);
+        /* ./metamodel//partial_order.nit:161 */
+        goto label1;
+      }
+      REGB1 = CALL_partial_order___PartialOrderElement_____l(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[4]);
+      REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
+      /* ./metamodel//partial_order.nit:163 */
+      if (UNTAG_Bool(REGB1)) {
+        /* ./metamodel//partial_order.nit:164 */
+        array___Array___add(fra.me.REG[3], fra.me.REG[4]);
+      }
+    } else {
+      /* ./metamodel//partial_order.nit:159 */
+      goto label2;
     }
-    continue_28: while(0);
-    CALL_abstract_collection___Iterator___next(variable[6])(variable[6]) /*ArrayIterator::next*/;
+    CALL_abstract_collection___Iterator___next(fra.me.REG[2])(fra.me.REG[2]);
   }
-  break_28: while(0);
-  CALL_abstract_collection___SimpleCollection___add( variable[3] /*to*/)( variable[3] /*to*/,  variable[1] /*e*/) /*AbstractArray::add*/;
-  variable[4] =  TAG_Bool(true);
-  goto return_label27;
-  return_label27: while(false);
-  tracehead = trace.prev;
-  return variable[4];
+  label2: while(0);
+  /* ./metamodel//partial_order.nit:167 */
+  array___Array___add(fra.me.REG[3], fra.me.REG[1]);
+  REGB1 = TAG_Bool(true);
+  REGB0 = REGB1;
+  /* ./metamodel//partial_order.nit:168 */
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-void partial_order___PartialOrder___compute_smallers_for(val_t  self, val_t  param0, val_t  param1) {
-  struct trace_t trace = {NULL, NULL, 171, LOCATE_partial_order___PartialOrder___compute_smallers_for};
-  val_t variable[9];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Local variable */
-  variable[1] =  param0;
-  /* Register variable[2]: Local variable */
-  variable[2] =  param1;
-  /* Register variable[3]: Method return value and escape marker */
-  /* Register variable[4]: Local variable */
-  /* Register variable[5]: Result */
-  variable[5] = CALL_partial_order___PartialOrderElement___value( variable[1] /*poe*/)( variable[1] /*poe*/) /*PartialOrderElement::value*/;
-  variable[4] = variable[5];
-  /* Register variable[5]: Result */
-  variable[5] = ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/;
-  /* Register variable[5]: For iterator */
-  variable[5] = CALL_abstract_collection___Collection___iterator(variable[5])(variable[5]) /*MapRead::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[6]: For 'is_ok' result */
-    variable[6] = CALL_abstract_collection___Iterator___is_ok(variable[5])(variable[5]) /*Iterator::is_ok*/;
-    if (!UNTAG_Bool(variable[6])) break; /*for*/
-    variable[6] = CALL_abstract_collection___Iterator___item(variable[5])(variable[5]) /*Iterator::item*/ /* Ensure var: For item*/;
-    /* Register variable[7]: Local variable */
-    variable[7] = variable[6];
-    /* Register variable[8]: Result */
-    variable[8] = CALL_partial_order___PartialOrderElement_____l( variable[7] /*s*/)( variable[7] /*s*/,  variable[4] /*e*/) /*PartialOrderElement::<*/;
-    if (UNTAG_Bool(variable[8])) { /*if*/
-      /* Register variable[8]: Result */
-      variable[8] = CALL_partial_order___PartialOrderElement___value( variable[7] /*s*/)( variable[7] /*s*/) /*PartialOrderElement::value*/;
-      CALL_abstract_collection___SimpleCollection___add( variable[2] /*set*/)( variable[2] /*set*/, variable[8]) /*SimpleCollection::add*/;
+void partial_order___PartialOrder___compute_smallers_for(val_t p0, val_t p1, val_t p2){
+  struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
+  val_t REGB0;
+  val_t tmp;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 171;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___compute_smallers_for;
+  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;
+  fra.me.REG[2] = p2;
+  fra.me.REG[1] = CALL_partial_order___PartialOrderElement___value(fra.me.REG[1])(fra.me.REG[1]);
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrder____elements(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:174 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_elements");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 174);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]);
+  fra.me.REG[0] = CALL_abstract_collection___Collection___iterator(fra.me.REG[0])(fra.me.REG[0]);
+  while(1) {
+    REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
+    if (UNTAG_Bool(REGB0)) {
+      fra.me.REG[3] = CALL_abstract_collection___Iterator___item(fra.me.REG[0])(fra.me.REG[0]);
+      REGB0 = CALL_partial_order___PartialOrderElement_____l(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]);
+      /* ./metamodel//partial_order.nit:175 */
+      if (UNTAG_Bool(REGB0)) {
+        fra.me.REG[3] = CALL_partial_order___PartialOrderElement___value(fra.me.REG[3])(fra.me.REG[3]);
+        /* ./metamodel//partial_order.nit:176 */
+        CALL_abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
+      }
+    } else {
+      /* ./metamodel//partial_order.nit:174 */
+      goto label1;
     }
-    continue_30: while(0);
-    CALL_abstract_collection___Iterator___next(variable[5])(variable[5]) /*Iterator::next*/;
+    CALL_abstract_collection___Iterator___next(fra.me.REG[0])(fra.me.REG[0]);
   }
-  break_30: while(0);
-  return_label29: while(false);
-  tracehead = trace.prev;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
   return;
 }
-void partial_order___PartialOrder___init(val_t  self, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 181, LOCATE_partial_order___PartialOrder___init};
-  val_t variable[3];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_PartialOrder].i]) return;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = NEW_HashMap_hash___HashMap___init() /*new HashMap[E, PartialOrderElement[E]]*/;
-  ATTR_partial_order___PartialOrder____elements(variable[0]) /*PartialOrder::_elements*/ = variable[2];
-  /* Register variable[2]: Result */
-  variable[2] = NEW_Array_array___Array___init() /*new Array[E]*/;
-  ATTR_partial_order___PartialOrder____elements_list(variable[0]) /*PartialOrder::_elements_list*/ = variable[2];
-  /* Register variable[2]: Result */
-  variable[2] = NEW_Array_array___Array___init() /*new Array[E]*/;
-  ATTR_partial_order___PartialOrder____roots(variable[0]) /*PartialOrder::_roots*/ = variable[2];
-  return_label31: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_PartialOrder].i] = 1;
-  tracehead = trace.prev;
+void partial_order___PartialOrder___init(val_t p0, int* init_table){
+  int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_PartialOrder].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+  val_t tmp;
+  if (init_table[itpos0]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 181;
+  fra.me.meth = LOCATE_partial_order___PartialOrder___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] = NEW_HashMap_hash_collection___HashMap___init();
+  /* ./metamodel//partial_order.nit:183 */
+  ATTR_partial_order___PartialOrder____elements(fra.me.REG[0]) = fra.me.REG[1];
+  fra.me.REG[1] = NEW_Array_array___Array___init();
+  /* ./metamodel//partial_order.nit:184 */
+  ATTR_partial_order___PartialOrder____elements_list(fra.me.REG[0]) = fra.me.REG[1];
+  fra.me.REG[1] = NEW_Array_array___Array___init();
+  /* ./metamodel//partial_order.nit:185 */
+  ATTR_partial_order___PartialOrder____roots(fra.me.REG[0]) = fra.me.REG[1];
+  stack_frame_head = fra.me.prev;
+  init_table[itpos0] = 1;
   return;
 }
-val_t partial_order___PartialOrderElement___order(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 190, LOCATE_partial_order___PartialOrderElement___order};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  tracehead = trace.prev;
-  return ATTR_partial_order___PartialOrderElement____order( self) /*PartialOrderElement::_order*/;
+val_t partial_order___PartialOrderElement___order(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_partial_order;
+  fra.me.line = 190;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___order;
+  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_partial_order___PartialOrderElement____order(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:190 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_order");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 190);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement___value(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 193, LOCATE_partial_order___PartialOrderElement___value};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  tracehead = trace.prev;
-  return ATTR_partial_order___PartialOrderElement____value( self) /*PartialOrderElement::_value*/;
+val_t partial_order___PartialOrderElement___value(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_partial_order;
+  fra.me.line = 193;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___value;
+  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] = ATTR_partial_order___PartialOrderElement____value(fra.me.REG[0]);
+  /* ./metamodel//partial_order.nit:193 */
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement___rank(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 196, LOCATE_partial_order___PartialOrderElement___rank};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  tracehead = trace.prev;
-  return ATTR_partial_order___PartialOrderElement____rank( self) /*PartialOrderElement::_rank*/;
+val_t partial_order___PartialOrderElement___rank(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_partial_order;
+  fra.me.line = 196;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___rank;
+  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_partial_order___PartialOrderElement____rank(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:196 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_rank");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 196);
+    nit_exit(1);
+  }
+  REGB0 = ATTR_partial_order___PartialOrderElement____rank(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrderElement___direct_greaters(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 202, LOCATE_partial_order___PartialOrderElement___direct_greaters};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  tracehead = trace.prev;
-  return ATTR_partial_order___PartialOrderElement____direct_greaters( self) /*PartialOrderElement::_direct_greaters*/;
+val_t partial_order___PartialOrderElement___direct_greaters(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_partial_order;
+  fra.me.line = 202;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___direct_greaters;
+  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_partial_order___PartialOrderElement____direct_greaters(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:202 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_direct_greaters");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 202);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____direct_greaters(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement___direct_smallers(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 205, LOCATE_partial_order___PartialOrderElement___direct_smallers};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  tracehead = trace.prev;
-  return ATTR_partial_order___PartialOrderElement____direct_smallers( self) /*PartialOrderElement::_direct_smallers*/;
+val_t partial_order___PartialOrderElement___direct_smallers(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_partial_order;
+  fra.me.line = 205;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___direct_smallers;
+  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_partial_order___PartialOrderElement____direct_smallers(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:205 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_direct_smallers");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 205);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____direct_smallers(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement___greaters(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 208, LOCATE_partial_order___PartialOrderElement___greaters};
-  val_t *variable = NULL;
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  tracehead = trace.prev;
-  return ATTR_partial_order___PartialOrderElement____greaters( self) /*PartialOrderElement::_greaters*/;
+val_t partial_order___PartialOrderElement___greaters(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_partial_order;
+  fra.me.line = 208;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___greaters;
+  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_partial_order___PartialOrderElement____greaters(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:208 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_greaters");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 208);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0]);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement___greaters_and_self(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 214, LOCATE_partial_order___PartialOrderElement___greaters_and_self};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrderElement____greaters_and_self_cache(variable[0]) /*PartialOrderElement::_greaters_and_self_cache*/;
-  /* 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*/) /*AbstractArrayRead::==*/)));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Result */
-    variable[2] = ATTR_partial_order___PartialOrderElement____greaters(variable[0]) /*PartialOrderElement::_greaters*/;
-    /* Register variable[2]: Result */
-    variable[2] = CALL_array___Collection___to_a(variable[2])(variable[2]) /*Collection::to_a*/;
-    ATTR_partial_order___PartialOrderElement____greaters_and_self_cache(variable[0]) /*PartialOrderElement::_greaters_and_self_cache*/ = variable[2];
-    /* Register variable[2]: Result */
-    variable[2] = ATTR_partial_order___PartialOrderElement____greaters_and_self_cache(variable[0]) /*PartialOrderElement::_greaters_and_self_cache*/;
-    /* Register variable[3]: Result */
-    variable[3] = ATTR_partial_order___PartialOrderElement____value(variable[0]) /*PartialOrderElement::_value*/;
-    CALL_abstract_collection___SimpleCollection___add(variable[2])(variable[2], variable[3]) /*AbstractArray::add*/;
+val_t partial_order___PartialOrderElement___greaters_and_self(val_t p0){
+  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_partial_order;
+  fra.me.line = 214;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___greaters_and_self;
+  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] = ATTR_partial_order___PartialOrderElement____greaters_and_self_cache(fra.me.REG[0]);
+  REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+  /* ./metamodel//partial_order.nit:217 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      REGB1 = TAG_Bool(false);
+      REGB0 = REGB1;
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
+      REGB0 = REGB1;
+    }
+  }
+  if (UNTAG_Bool(REGB0)) {
+    REGB0 = TAG_Bool(ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0])!=NIT_NULL);
+    /* ./metamodel//partial_order.nit:218 */
+    if (UNTAG_Bool(REGB0)) {
+    } else {
+      fprintf(stderr, "Uninitialized attribute %s", "_greaters");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 218);
+      nit_exit(1);
+    }
+    fra.me.REG[1] = ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0]);
+    fra.me.REG[1] = CALL_array___Collection___to_a(fra.me.REG[1])(fra.me.REG[1]);
+    ATTR_partial_order___PartialOrderElement____greaters_and_self_cache(fra.me.REG[0]) = fra.me.REG[1];
+    fra.me.REG[1] = ATTR_partial_order___PartialOrderElement____greaters_and_self_cache(fra.me.REG[0]);
+    fra.me.REG[2] = ATTR_partial_order___PartialOrderElement____value(fra.me.REG[0]);
+    REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+    /* ./metamodel//partial_order.nit:219 */
+    if (UNTAG_Bool(REGB0)) {
+      fprintf(stderr, "Reciever is null");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 219);
+      nit_exit(1);
+    }
+    array___Array___add(fra.me.REG[1], fra.me.REG[2]);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____greaters_and_self_cache(fra.me.REG[0]);
+  REGB0 = TAG_Bool(fra.me.REG[0]!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:221 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Cast failed");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 221);
+    nit_exit(1);
   }
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrderElement____greaters_and_self_cache(variable[0]) /*PartialOrderElement::_greaters_and_self_cache*/;
-  variable[1] = variable[2];
-  goto return_label32;
-  return_label32: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement___smallers(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 230, LOCATE_partial_order___PartialOrderElement___smallers};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrderElement____smallers_last_length(variable[0]) /*PartialOrderElement::_smallers_last_length*/;
-  /* Register variable[3]: Result */
-  variable[3] = ATTR_partial_order___PartialOrderElement____order(variable[0]) /*PartialOrderElement::_order*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_abstract_collection___Collection___length(variable[3])(variable[3]) /*PartialOrder::length*/;
-  /* Register variable[2]: Result */
-  variable[2] = TAG_Bool(UNTAG_Int(variable[2])<UNTAG_Int(variable[3]));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Result */
-    variable[2] = ATTR_partial_order___PartialOrderElement____order(variable[0]) /*PartialOrderElement::_order*/;
-    /* Register variable[3]: Result */
-    variable[3] = ATTR_partial_order___PartialOrderElement____smallers_cache(variable[0]) /*PartialOrderElement::_smallers_cache*/;
-    CALL_partial_order___PartialOrder___compute_smallers_for(variable[2])(variable[2], variable[0], variable[3]) /*PartialOrder::compute_smallers_for*/;
-    /* Register variable[2]: Result */
-    variable[2] = ATTR_partial_order___PartialOrderElement____order(variable[0]) /*PartialOrderElement::_order*/;
-    /* Register variable[2]: Result */
-    variable[2] = CALL_abstract_collection___Collection___length(variable[2])(variable[2]) /*PartialOrder::length*/;
-    ATTR_partial_order___PartialOrderElement____smallers_last_length(variable[0]) /*PartialOrderElement::_smallers_last_length*/ = variable[2];
+val_t partial_order___PartialOrderElement___smallers(val_t p0){
+  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_partial_order;
+  fra.me.line = 230;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___smallers;
+  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;
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrderElement____smallers_last_length(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:233 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_smallers_last_length");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 233);
+    nit_exit(1);
   }
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrderElement____smallers_cache(variable[0]) /*PartialOrderElement::_smallers_cache*/;
-  variable[1] = variable[2];
-  goto return_label33;
-  return_label33: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+  REGB0 = ATTR_partial_order___PartialOrderElement____smallers_last_length(fra.me.REG[0]);
+  REGB1 = TAG_Bool(ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0])!=NIT_NULL);
+  if (UNTAG_Bool(REGB1)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_order");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 233);
+    nit_exit(1);
+  }
+  fra.me.REG[1] = ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0]);
+  REGB1 = CALL_abstract_collection___Collection___length(fra.me.REG[1])(fra.me.REG[1]);
+  REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
+  /* ./metamodel//partial_order.nit:233 */
+  if (UNTAG_Bool(REGB1)) {
+    REGB1 = TAG_Bool(ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0])!=NIT_NULL);
+    /* ./metamodel//partial_order.nit:234 */
+    if (UNTAG_Bool(REGB1)) {
+    } else {
+      fprintf(stderr, "Uninitialized attribute %s", "_order");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 234);
+      nit_exit(1);
+    }
+    fra.me.REG[1] = ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0]);
+    REGB1 = TAG_Bool(ATTR_partial_order___PartialOrderElement____smallers_cache(fra.me.REG[0])!=NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+    } else {
+      fprintf(stderr, "Uninitialized attribute %s", "_smallers_cache");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 234);
+      nit_exit(1);
+    }
+    fra.me.REG[2] = ATTR_partial_order___PartialOrderElement____smallers_cache(fra.me.REG[0]);
+    CALL_partial_order___PartialOrder___compute_smallers_for(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0], fra.me.REG[2]);
+    REGB1 = TAG_Bool(ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0])!=NIT_NULL);
+    /* ./metamodel//partial_order.nit:235 */
+    if (UNTAG_Bool(REGB1)) {
+    } else {
+      fprintf(stderr, "Uninitialized attribute %s", "_order");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 235);
+      nit_exit(1);
+    }
+    fra.me.REG[2] = ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0]);
+    REGB1 = CALL_abstract_collection___Collection___length(fra.me.REG[2])(fra.me.REG[2]);
+    ATTR_partial_order___PartialOrderElement____smallers_last_length(fra.me.REG[0]) = REGB1;
+  }
+  REGB1 = TAG_Bool(ATTR_partial_order___PartialOrderElement____smallers_cache(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:237 */
+  if (UNTAG_Bool(REGB1)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_smallers_cache");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 237);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____smallers_cache(fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement___linear_extension(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 243, LOCATE_partial_order___PartialOrderElement___linear_extension};
-  val_t variable[12];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrderElement____linear_extension_cache(variable[0]) /*PartialOrderElement::_linear_extension_cache*/;
-  /* 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*/) /*AbstractArrayRead::==*/)));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Local variable */
-    /* Register variable[3]: Result */
-    variable[3] = NEW_Array_array___Array___init() /*new Array[E]*/;
-    variable[2] = variable[3];
-    /* Register variable[3]: Local variable */
-    /* Register variable[4]: Result */
-    variable[4] = NEW_Array_array___Array___init() /*new Array[E]*/;
-    variable[3] = variable[4];
-    /* Register variable[4]: Result */
-    variable[4] = CALL_partial_order___PartialOrderElement___value(variable[0])(variable[0]) /*PartialOrderElement::value*/;
-    CALL_abstract_collection___SimpleCollection___add( variable[2] /*res*/)( variable[2] /*res*/, variable[4]) /*AbstractArray::add*/;
-    /* Register variable[4]: Result */
-    variable[4] = CALL_partial_order___PartialOrderElement___direct_greaters(variable[0])(variable[0]) /*PartialOrderElement::direct_greaters*/;
-    /* Register variable[4]: For iterator */
-    variable[4] = CALL_abstract_collection___Collection___iterator(variable[4])(variable[4]) /*AbstractArrayRead::iterator*/;
-    while (true) { /*for*/
-      /* Register variable[5]: For 'is_ok' result */
-      variable[5] = CALL_abstract_collection___Iterator___is_ok(variable[4])(variable[4]) /*ArrayIterator::is_ok*/;
-      if (!UNTAG_Bool(variable[5])) break; /*for*/
-      variable[5] = CALL_abstract_collection___Iterator___item(variable[4])(variable[4]) /*ArrayIterator::item*/ /* Ensure var: For item*/;
-      /* Register variable[6]: Local variable */
-      variable[6] = variable[5];
-      /* Register variable[7]: Local variable */
-      /* Register variable[8]: Result */
-      variable[8] = CALL_partial_order___PartialOrderElement___order(variable[0])(variable[0]) /*PartialOrderElement::order*/;
-      /* Register variable[8]: Result */
-      variable[8] = CALL_partial_order___PartialOrder_____bra(variable[8])(variable[8],  variable[6] /*s*/) /*PartialOrder::[]*/;
-      /* Register variable[8]: Result */
-      variable[8] = CALL_partial_order___PartialOrderElement___linear_extension(variable[8])(variable[8]) /*PartialOrderElement::linear_extension*/;
-      variable[7] = variable[8];
-      CALL_abstract_collection___RemovableCollection___clear( variable[3] /*res2*/)( variable[3] /*res2*/) /*AbstractArray::clear*/;
-      /* Register variable[8]: For iterator */
-      variable[8] = CALL_abstract_collection___Collection___iterator( variable[2] /*res*/)( variable[2] /*res*/) /*AbstractArrayRead::iterator*/;
-      while (true) { /*for*/
-        /* Register variable[9]: For 'is_ok' result */
-        variable[9] = CALL_abstract_collection___Iterator___is_ok(variable[8])(variable[8]) /*ArrayIterator::is_ok*/;
-        if (!UNTAG_Bool(variable[9])) break; /*for*/
-        variable[9] = CALL_abstract_collection___Iterator___item(variable[8])(variable[8]) /*ArrayIterator::item*/ /* Ensure var: For item*/;
-        /* Register variable[10]: Local variable */
-        variable[10] = variable[9];
-        /* Register variable[11]: Result */
-        variable[11] = CALL_abstract_collection___Collection___has( variable[7] /*sl*/)( variable[7] /*sl*/,  variable[10] /*e*/) /*AbstractArrayRead::has*/;
-        if (UNTAG_Bool( TAG_Bool(!UNTAG_Bool(variable[11])))) { /*if*/
-          CALL_abstract_collection___SimpleCollection___add( variable[3] /*res2*/)( variable[3] /*res2*/,  variable[10] /*e*/) /*AbstractArray::add*/;
+val_t partial_order___PartialOrderElement___linear_extension(val_t p0){
+  struct {struct stack_frame_t me; val_t MORE_REG[6];} 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_partial_order;
+  fra.me.line = 243;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___linear_extension;
+  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] = ATTR_partial_order___PartialOrderElement____linear_extension_cache(fra.me.REG[0]);
+  REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+  /* ./metamodel//partial_order.nit:247 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      REGB1 = TAG_Bool(false);
+      REGB0 = REGB1;
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
+      REGB0 = REGB1;
+    }
+  }
+  if (UNTAG_Bool(REGB0)) {
+    fra.me.REG[1] = NEW_Array_array___Array___init();
+    fra.me.REG[2] = NEW_Array_array___Array___init();
+    fra.me.REG[3] = CALL_partial_order___PartialOrderElement___value(fra.me.REG[0])(fra.me.REG[0]);
+    /* ./metamodel//partial_order.nit:250 */
+    array___Array___add(fra.me.REG[1], fra.me.REG[3]);
+    fra.me.REG[3] = CALL_partial_order___PartialOrderElement___direct_greaters(fra.me.REG[0])(fra.me.REG[0]);
+    fra.me.REG[3] = CALL_abstract_collection___Collection___iterator(fra.me.REG[3])(fra.me.REG[3]);
+    /* ./metamodel//partial_order.nit:251 */
+    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]);
+        fra.me.REG[5] = CALL_partial_order___PartialOrderElement___order(fra.me.REG[0])(fra.me.REG[0]);
+        fra.me.REG[4] = CALL_partial_order___PartialOrder_____bra(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+        fra.me.REG[4] = CALL_partial_order___PartialOrderElement___linear_extension(fra.me.REG[4])(fra.me.REG[4]);
+        /* ./metamodel//partial_order.nit:253 */
+        CALL_abstract_collection___RemovableCollection___clear(fra.me.REG[2])(fra.me.REG[2]);
+        fra.me.REG[5] = CALL_abstract_collection___Collection___iterator(fra.me.REG[1])(fra.me.REG[1]);
+        /* ./metamodel//partial_order.nit:254 */
+        while(1) {
+          REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[5])(fra.me.REG[5]);
+          if (UNTAG_Bool(REGB0)) {
+            fra.me.REG[6] = CALL_abstract_collection___Iterator___item(fra.me.REG[5])(fra.me.REG[5]);
+            REGB0 = CALL_abstract_collection___Collection___has(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[6]);
+            REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
+            /* ./metamodel//partial_order.nit:255 */
+            if (UNTAG_Bool(REGB0)) {
+              array___Array___add(fra.me.REG[2], fra.me.REG[6]);
+            }
+          } else {
+            /* ./metamodel//partial_order.nit:254 */
+            goto label1;
+          }
+          CALL_abstract_collection___Iterator___next(fra.me.REG[5])(fra.me.REG[5]);
         }
-        continue_36: while(0);
-        CALL_abstract_collection___Iterator___next(variable[8])(variable[8]) /*ArrayIterator::next*/;
+        label1: while(0);
+        /* ./metamodel//partial_order.nit:257 */
+        CALL_abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
+        fra.me.REG[4] = fra.me.REG[1];
+        fra.me.REG[1] = fra.me.REG[2];
+        fra.me.REG[2] = fra.me.REG[4];
+      /* ./metamodel//partial_order.nit:261 */
+      } else {
+        /* ./metamodel//partial_order.nit:251 */
+        goto label2;
       }
-      break_36: while(0);
-      CALL_abstract_collection___IndexedCollection___append( variable[3] /*res2*/)( variable[3] /*res2*/,  variable[7] /*sl*/) /*IndexedCollection::append*/;
-      /* Register variable[8]: Local variable */
-      variable[8] =  variable[2] /*res*/;
-      variable[2] =  variable[3] /*res2*/ /*res=*/;
-      variable[3] =  variable[8] /*tmp*/ /*res2=*/;
-      continue_35: while(0);
-      CALL_abstract_collection___Iterator___next(variable[4])(variable[4]) /*ArrayIterator::next*/;
+      CALL_abstract_collection___Iterator___next(fra.me.REG[3])(fra.me.REG[3]);
     }
-    break_35: while(0);
-    ATTR_partial_order___PartialOrderElement____linear_extension_cache(variable[0]) /*PartialOrderElement::_linear_extension_cache*/ =  variable[2] /*res*/;
+    label2: while(0);
+    /* ./metamodel//partial_order.nit:263 */
+    ATTR_partial_order___PartialOrderElement____linear_extension_cache(fra.me.REG[0]) = fra.me.REG[1];
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____linear_extension_cache(fra.me.REG[0]);
+  REGB0 = TAG_Bool(fra.me.REG[0]!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:265 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Cast failed");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 265);
+    nit_exit(1);
   }
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrderElement____linear_extension_cache(variable[0]) /*PartialOrderElement::_linear_extension_cache*/;
-  variable[1] = variable[2];
-  goto return_label34;
-  return_label34: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+  goto label3;
+  label3: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement___reverse_linear_extension(val_t  self) {
-  struct trace_t trace = {NULL, NULL, 271, LOCATE_partial_order___PartialOrderElement___reverse_linear_extension};
-  val_t variable[8];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Method return value and escape marker */
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrderElement____reverse_linear_extension_cache(variable[0]) /*PartialOrderElement::_reverse_linear_extension_cache*/;
-  /* 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*/) /*AbstractArrayRead::==*/)));
-  if (UNTAG_Bool(variable[2])) { /*if*/
-    /* Register variable[2]: Local variable */
-    /* Register variable[3]: Result */
-    variable[3] = NEW_HashSet_hash___HashSet___init() /*new HashSet[E]*/;
-    variable[2] = variable[3];
-    /* Register variable[3]: Result */
-    variable[3] = CALL_partial_order___PartialOrderElement___direct_greaters(variable[0])(variable[0]) /*PartialOrderElement::direct_greaters*/;
-    /* Register variable[3]: For iterator */
-    variable[3] = CALL_abstract_collection___Collection___iterator(variable[3])(variable[3]) /*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]: Local variable */
-      /* Register variable[7]: Result */
-      variable[7] = CALL_partial_order___PartialOrderElement___order(variable[0])(variable[0]) /*PartialOrderElement::order*/;
-      /* Register variable[7]: Result */
-      variable[7] = CALL_partial_order___PartialOrder_____bra(variable[7])(variable[7],  variable[5] /*s*/) /*PartialOrder::[]*/;
-      /* Register variable[7]: Result */
-      variable[7] = CALL_partial_order___PartialOrderElement___linear_extension(variable[7])(variable[7]) /*PartialOrderElement::linear_extension*/;
-      variable[6] = variable[7];
-      CALL_abstract_collection___SimpleCollection___add_all( variable[2] /*res*/)( variable[2] /*res*/,  variable[6] /*sl*/) /*SimpleCollection::add_all*/;
-      continue_38: while(0);
-      CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*ArrayIterator::next*/;
+val_t partial_order___PartialOrderElement___reverse_linear_extension(val_t p0){
+  struct {struct stack_frame_t me; val_t MORE_REG[4];} 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_partial_order;
+  fra.me.line = 271;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___reverse_linear_extension;
+  fra.me.has_broke = 0;
+  fra.me.REG_size = 5;
+  fra.me.REG[0] = NIT_NULL;
+  fra.me.REG[1] = NIT_NULL;
+  fra.me.REG[2] = NIT_NULL;
+  fra.me.REG[3] = NIT_NULL;
+  fra.me.REG[4] = NIT_NULL;
+  fra.me.REG[0] = p0;
+  fra.me.REG[1] = ATTR_partial_order___PartialOrderElement____reverse_linear_extension_cache(fra.me.REG[0]);
+  REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+  /* ./metamodel//partial_order.nit:275 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+      REGB1 = TAG_Bool(false);
+      REGB0 = REGB1;
+    } else {
+      REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
+      REGB0 = REGB1;
     }
-    break_38: while(0);
-    /* Register variable[3]: Result */
-    variable[3] = CALL_partial_order___PartialOrderElement___value(variable[0])(variable[0]) /*PartialOrderElement::value*/;
-    CALL_abstract_collection___SimpleCollection___add( variable[2] /*res*/)( variable[2] /*res*/, variable[3]) /*HashSet::add*/;
-    /* Register variable[3]: Result */
-    variable[3] = CALL_array___Collection___to_a( variable[2] /*res*/)( variable[2] /*res*/) /*Collection::to_a*/;
-    ATTR_partial_order___PartialOrderElement____linear_extension_cache(variable[0]) /*PartialOrderElement::_linear_extension_cache*/ = variable[3];
   }
-  /* Register variable[2]: Result */
-  variable[2] = ATTR_partial_order___PartialOrderElement____linear_extension_cache(variable[0]) /*PartialOrderElement::_linear_extension_cache*/;
-  variable[1] = variable[2];
-  goto return_label37;
-  return_label37: while(false);
-  tracehead = trace.prev;
-  return variable[1];
+  if (UNTAG_Bool(REGB0)) {
+    fra.me.REG[1] = NEW_HashSet_hash_collection___HashSet___init();
+    fra.me.REG[2] = CALL_partial_order___PartialOrderElement___direct_greaters(fra.me.REG[0])(fra.me.REG[0]);
+    fra.me.REG[2] = CALL_abstract_collection___Collection___iterator(fra.me.REG[2])(fra.me.REG[2]);
+    /* ./metamodel//partial_order.nit:277 */
+    while(1) {
+      REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[2])(fra.me.REG[2]);
+      if (UNTAG_Bool(REGB0)) {
+        fra.me.REG[3] = CALL_abstract_collection___Iterator___item(fra.me.REG[2])(fra.me.REG[2]);
+        fra.me.REG[4] = CALL_partial_order___PartialOrderElement___order(fra.me.REG[0])(fra.me.REG[0]);
+        fra.me.REG[3] = CALL_partial_order___PartialOrder_____bra(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
+        fra.me.REG[3] = CALL_partial_order___PartialOrderElement___linear_extension(fra.me.REG[3])(fra.me.REG[3]);
+        /* ./metamodel//partial_order.nit:279 */
+        CALL_abstract_collection___SimpleCollection___add_all(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+      } else {
+        /* ./metamodel//partial_order.nit:277 */
+        goto label1;
+      }
+      CALL_abstract_collection___Iterator___next(fra.me.REG[2])(fra.me.REG[2]);
+    }
+    label1: while(0);
+    fra.me.REG[2] = CALL_partial_order___PartialOrderElement___value(fra.me.REG[0])(fra.me.REG[0]);
+    /* ./metamodel//partial_order.nit:281 */
+    CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+    fra.me.REG[1] = CALL_array___Collection___to_a(fra.me.REG[1])(fra.me.REG[1]);
+    /* ./metamodel//partial_order.nit:282 */
+    ATTR_partial_order___PartialOrderElement____linear_extension_cache(fra.me.REG[0]) = fra.me.REG[1];
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____linear_extension_cache(fra.me.REG[0]);
+  REGB0 = TAG_Bool(fra.me.REG[0]!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:284 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Cast failed");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 284);
+    nit_exit(1);
+  }
+  goto label2;
+  label2: while(0);
+  stack_frame_head = fra.me.prev;
+  return fra.me.REG[0];
 }
-val_t partial_order___PartialOrderElement_____l(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 287, LOCATE_partial_order___PartialOrderElement_____l};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = ATTR_partial_order___PartialOrderElement____greaters(variable[0]) /*PartialOrderElement::_greaters*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_abstract_collection___Collection___has(variable[3])(variable[3],  variable[1] /*o*/) /*Collection::has*/;
-  variable[2] = variable[3];
-  goto return_label39;
-  return_label39: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+val_t partial_order___PartialOrderElement_____l(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_partial_order;
+  fra.me.line = 287;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement_____l;
+  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;
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:290 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_greaters");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 290);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0]);
+  REGB0 = CALL_abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrderElement_____leq(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 293, LOCATE_partial_order___PartialOrderElement_____leq};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = ATTR_partial_order___PartialOrderElement____value(variable[0]) /*PartialOrderElement::_value*/;
-  /* Register variable[3]: Result */
-  variable[3] = TAG_Bool((variable[3] ==  variable[1] /*o*/) || ((variable[3] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[3])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[3], variable[1] /*o*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3],  variable[1] /*o*/) /*Object::==*/)))));
-  /* Ensure var variable[3]: Left 'or' operand*/
-  if (!UNTAG_Bool(variable[3])) { /* or */
-    /* Register variable[3]: Result */
-    variable[3] = ATTR_partial_order___PartialOrderElement____greaters(variable[0]) /*PartialOrderElement::_greaters*/;
-    /* Register variable[3]: Result */
-    variable[3] = CALL_abstract_collection___Collection___has(variable[3])(variable[3],  variable[1] /*o*/) /*Collection::has*/;
+val_t partial_order___PartialOrderElement_____leq(val_t p0, val_t p1){
+  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_partial_order;
+  fra.me.line = 293;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement_____leq;
+  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] = ATTR_partial_order___PartialOrderElement____value(fra.me.REG[0]);
+  REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[2],fra.me.REG[1]));
+  /* ./metamodel//partial_order.nit:296 */
+  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], fra.me.REG[1]);
+      REGB0 = REGB1;
+    }
+  }
+  if (UNTAG_Bool(REGB0)) {
+    REGB0 = TAG_Bool(true);
+  } else {
+    REGB1 = TAG_Bool(ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0])!=NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+    } else {
+      fprintf(stderr, "Uninitialized attribute %s", "_greaters");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 296);
+      nit_exit(1);
+    }
+    fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0]);
+    REGB1 = CALL_abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+    REGB0 = REGB1;
   }
-  /* Register variable[3]: Result */
-  variable[2] = variable[3];
-  goto return_label40;
-  return_label40: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrderElement_____g(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 299, LOCATE_partial_order___PartialOrderElement_____g};
-  val_t variable[5];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = ATTR_partial_order___PartialOrderElement____order(variable[0]) /*PartialOrderElement::_order*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_partial_order___PartialOrder_____bra(variable[3])(variable[3],  variable[1] /*o*/) /*PartialOrder::[]*/;
-  /* Register variable[4]: Result */
-  variable[4] = ATTR_partial_order___PartialOrderElement____value(variable[0]) /*PartialOrderElement::_value*/;
-  /* Register variable[3]: Result */
-  variable[3] = CALL_partial_order___PartialOrderElement_____l(variable[3])(variable[3], variable[4]) /*PartialOrderElement::<*/;
-  variable[2] = variable[3];
-  goto return_label41;
-  return_label41: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+val_t partial_order___PartialOrderElement_____g(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_partial_order;
+  fra.me.line = 299;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement_____g;
+  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;
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:302 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_order");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 302);
+    nit_exit(1);
+  }
+  fra.me.REG[2] = ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0]);
+  fra.me.REG[1] = CALL_partial_order___PartialOrder_____bra(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____value(fra.me.REG[0]);
+  REGB0 = CALL_partial_order___PartialOrderElement_____l(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-val_t partial_order___PartialOrderElement_____geq(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 305, LOCATE_partial_order___PartialOrderElement_____geq};
-  val_t variable[5];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = ATTR_partial_order___PartialOrderElement____value(variable[0]) /*PartialOrderElement::_value*/;
-  /* Register variable[3]: Result */
-  variable[3] = TAG_Bool((variable[3] ==  variable[1] /*o*/) || ((variable[3] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[3])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[3], variable[1] /*o*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3],  variable[1] /*o*/) /*Object::==*/)))));
-  /* Ensure var variable[3]: Left 'or' operand*/
-  if (!UNTAG_Bool(variable[3])) { /* or */
-    /* Register variable[3]: Result */
-    variable[3] = ATTR_partial_order___PartialOrderElement____order(variable[0]) /*PartialOrderElement::_order*/;
-    /* Register variable[3]: Result */
-    variable[3] = CALL_partial_order___PartialOrder_____bra(variable[3])(variable[3],  variable[1] /*o*/) /*PartialOrder::[]*/;
-    /* Register variable[4]: Result */
-    variable[4] = ATTR_partial_order___PartialOrderElement____value(variable[0]) /*PartialOrderElement::_value*/;
-    /* Register variable[3]: Result */
-    variable[3] = CALL_partial_order___PartialOrderElement_____l(variable[3])(variable[3], variable[4]) /*PartialOrderElement::<*/;
+val_t partial_order___PartialOrderElement_____geq(val_t p0, val_t p1){
+  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_partial_order;
+  fra.me.line = 305;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement_____geq;
+  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] = ATTR_partial_order___PartialOrderElement____value(fra.me.REG[0]);
+  REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[2],fra.me.REG[1]));
+  /* ./metamodel//partial_order.nit:308 */
+  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], fra.me.REG[1]);
+      REGB0 = REGB1;
+    }
   }
-  /* Register variable[3]: Result */
-  variable[2] = variable[3];
-  goto return_label42;
-  return_label42: while(false);
-  tracehead = trace.prev;
-  return variable[2];
+  if (UNTAG_Bool(REGB0)) {
+    REGB0 = TAG_Bool(true);
+  } else {
+    REGB1 = TAG_Bool(ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0])!=NIT_NULL);
+    if (UNTAG_Bool(REGB1)) {
+    } else {
+      fprintf(stderr, "Uninitialized attribute %s", "_order");
+      fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 308);
+      nit_exit(1);
+    }
+    fra.me.REG[2] = ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0]);
+    fra.me.REG[1] = CALL_partial_order___PartialOrder_____bra(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
+    fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____value(fra.me.REG[0]);
+    REGB1 = CALL_partial_order___PartialOrderElement_____l(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
+    REGB0 = REGB1;
+  }
+  goto label1;
+  label1: while(0);
+  stack_frame_head = fra.me.prev;
+  return REGB0;
 }
-void partial_order___PartialOrderElement___register_direct_smallers(val_t  self, val_t  param0) {
-  struct trace_t trace = {NULL, NULL, 311, LOCATE_partial_order___PartialOrderElement___register_direct_smallers};
-  val_t variable[4];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* 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]: Result */
-  variable[3] = ATTR_partial_order___PartialOrderElement____direct_smallers(variable[0]) /*PartialOrderElement::_direct_smallers*/;
-  CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3],  variable[1] /*e*/) /*AbstractArray::add*/;
-  return_label43: while(false);
-  tracehead = trace.prev;
+void partial_order___PartialOrderElement___register_direct_smallers(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_partial_order;
+  fra.me.line = 311;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___register_direct_smallers;
+  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;
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrderElement____direct_smallers(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:313 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_direct_smallers");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 313);
+    nit_exit(1);
+  }
+  fra.me.REG[0] = ATTR_partial_order___PartialOrderElement____direct_smallers(fra.me.REG[0]);
+  array___Array___add(fra.me.REG[0], fra.me.REG[1]);
+  stack_frame_head = fra.me.prev;
   return;
 }
-void partial_order___PartialOrderElement___init(val_t  self, val_t  param0, val_t  param1, val_t  param2, int* init_table) {
-  struct trace_t trace = {NULL, NULL, 316, LOCATE_partial_order___PartialOrderElement___init};
-  val_t variable[14];
-  struct WBT_ **closurevariable = NULL;
-  trace.prev = tracehead; tracehead = &trace;
-  trace.file = LOCATE_partial_order;
-  /* Register variable[0]: Local variable */
-  variable[0] =  self;
-  /* Register variable[1]: Local variable */
-  variable[1] =  param0;
-  /* Register variable[2]: Local variable */
-  variable[2] =  param1;
-  /* Register variable[3]: Local variable */
-  variable[3] =  param2;
-  if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_PartialOrderElement].i]) return;
-  /* Register variable[4]: Method return value and escape marker */
-  ATTR_partial_order___PartialOrderElement____order(variable[0]) /*PartialOrderElement::_order*/ =  variable[1] /*o*/;
-  ATTR_partial_order___PartialOrderElement____value(variable[0]) /*PartialOrderElement::_value*/ =  variable[2] /*e*/;
-  ATTR_partial_order___PartialOrderElement____direct_greaters(variable[0]) /*PartialOrderElement::_direct_greaters*/ =  variable[3] /*directs*/;
-  /* Register variable[5]: Result */
-  variable[5] = NEW_Array_array___Array___init() /*new Array[E]*/;
-  ATTR_partial_order___PartialOrderElement____direct_smallers(variable[0]) /*PartialOrderElement::_direct_smallers*/ = variable[5];
-  /* Register variable[5]: Result */
-  variable[5] = NEW_HashSet_hash___HashSet___init() /*new HashSet[E]*/;
-  ATTR_partial_order___PartialOrderElement____greaters(variable[0]) /*PartialOrderElement::_greaters*/ = variable[5];
-  /* Register variable[5]: Result */
-  variable[5] = NEW_HashSet_hash___HashSet___init() /*new HashSet[E]*/;
-  ATTR_partial_order___PartialOrderElement____smallers_cache(variable[0]) /*PartialOrderElement::_smallers_cache*/ = variable[5];
-  /* Register variable[5]: Local variable */
-  /* Register variable[6]: Result */
-  variable[6] = ATTR_partial_order___PartialOrderElement____greaters(variable[0]) /*PartialOrderElement::_greaters*/;
-  variable[5] = variable[6];
-  /* Register variable[6]: Local variable */
-  variable[6] =  TAG_Int(0);
-  /* Register variable[7]: For iterator */
-  variable[7] = CALL_abstract_collection___Collection___iterator( variable[3] /*directs*/)( variable[3] /*directs*/) /*AbstractArrayRead::iterator*/;
-  while (true) { /*for*/
-    /* Register variable[8]: For 'is_ok' result */
-    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*/ /* Ensure var: For item*/;
-    /* Register variable[9]: Local variable */
-    variable[9] = variable[8];
-    CALL_abstract_collection___SimpleCollection___add( variable[5] /*g*/)( variable[5] /*g*/,  variable[9] /*ee*/) /*SimpleCollection::add*/;
-    /* Register variable[10]: Local variable */
-    /* Register variable[11]: Result */
-    variable[11] = ATTR_partial_order___PartialOrderElement____order(variable[0]) /*PartialOrderElement::_order*/;
-    /* Register variable[11]: Result */
-    variable[11] = CALL_partial_order___PartialOrder_____bra(variable[11])(variable[11],  variable[9] /*ee*/) /*PartialOrder::[]*/;
-    variable[10] = variable[11];
-    /* Register variable[11]: Result */
-    variable[11] = CALL_partial_order___PartialOrderElement___rank( variable[10] /*poee*/)( variable[10] /*poee*/) /*PartialOrderElement::rank*/;
-    /* Register variable[11]: Result */
-    variable[11] = TAG_Bool(UNTAG_Int(variable[11])>=UNTAG_Int( variable[6] /*r*/));
-    if (UNTAG_Bool(variable[11])) { /*if*/
-      /* Register variable[11]: Result */
-      variable[11] = CALL_partial_order___PartialOrderElement___rank( variable[10] /*poee*/)( variable[10] /*poee*/) /*PartialOrderElement::rank*/;
-      /* Register variable[11]: Result */
-      variable[11] = TAG_Int(UNTAG_Int(variable[11])+UNTAG_Int( TAG_Int(1)));
-      variable[6] = variable[11] /*r=*/;
-    }
-    CALL_partial_order___PartialOrderElement___register_direct_smallers( variable[10] /*poee*/)( variable[10] /*poee*/,  variable[2] /*e*/) /*PartialOrderElement::register_direct_smallers*/;
-    /* Register variable[11]: Result */
-    variable[11] = CALL_partial_order___PartialOrderElement___greaters( variable[10] /*poee*/)( variable[10] /*poee*/) /*PartialOrderElement::greaters*/;
-    /* Register variable[11]: For iterator */
-    variable[11] = CALL_abstract_collection___Collection___iterator(variable[11])(variable[11]) /*Collection::iterator*/;
-    while (true) { /*for*/
-      /* Register variable[12]: For 'is_ok' result */
-      variable[12] = CALL_abstract_collection___Iterator___is_ok(variable[11])(variable[11]) /*Iterator::is_ok*/;
-      if (!UNTAG_Bool(variable[12])) break; /*for*/
-      variable[12] = CALL_abstract_collection___Iterator___item(variable[11])(variable[11]) /*Iterator::item*/ /* Ensure var: For item*/;
-      /* Register variable[13]: Local variable */
-      variable[13] = variable[12];
-      CALL_abstract_collection___SimpleCollection___add( variable[5] /*g*/)( variable[5] /*g*/,  variable[13] /*eee*/) /*SimpleCollection::add*/;
-      continue_46: while(0);
-      CALL_abstract_collection___Iterator___next(variable[11])(variable[11]) /*Iterator::next*/;
+void partial_order___PartialOrderElement___init(val_t p0, val_t p1, val_t p2, val_t p3, int* init_table){
+  int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_PartialOrderElement].i;
+  struct {struct stack_frame_t me; val_t MORE_REG[5];} fra;
+  val_t REGB0;
+  val_t REGB1;
+  val_t REGB2;
+  val_t tmp;
+  if (init_table[itpos1]) return;
+  fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+  fra.me.file = LOCATE_partial_order;
+  fra.me.line = 316;
+  fra.me.meth = LOCATE_partial_order___PartialOrderElement___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;
+  fra.me.REG[3] = p3;
+  /* ./metamodel//partial_order.nit:318 */
+  ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0]) = fra.me.REG[1];
+  /* ./metamodel//partial_order.nit:319 */
+  ATTR_partial_order___PartialOrderElement____value(fra.me.REG[0]) = fra.me.REG[2];
+  /* ./metamodel//partial_order.nit:320 */
+  ATTR_partial_order___PartialOrderElement____direct_greaters(fra.me.REG[0]) = fra.me.REG[3];
+  fra.me.REG[1] = NEW_Array_array___Array___init();
+  /* ./metamodel//partial_order.nit:321 */
+  ATTR_partial_order___PartialOrderElement____direct_smallers(fra.me.REG[0]) = fra.me.REG[1];
+  fra.me.REG[1] = NEW_HashSet_hash_collection___HashSet___init();
+  /* ./metamodel//partial_order.nit:323 */
+  ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0]) = fra.me.REG[1];
+  fra.me.REG[1] = NEW_HashSet_hash_collection___HashSet___init();
+  /* ./metamodel//partial_order.nit:324 */
+  ATTR_partial_order___PartialOrderElement____smallers_cache(fra.me.REG[0]) = fra.me.REG[1];
+  REGB0 = TAG_Bool(ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0])!=NIT_NULL);
+  /* ./metamodel//partial_order.nit:326 */
+  if (UNTAG_Bool(REGB0)) {
+  } else {
+    fprintf(stderr, "Uninitialized attribute %s", "_greaters");
+    fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 326);
+    nit_exit(1);
+  }
+  fra.me.REG[1] = ATTR_partial_order___PartialOrderElement____greaters(fra.me.REG[0]);
+  REGB0 = TAG_Int(0);
+  fra.me.REG[3] = CALL_abstract_collection___Collection___iterator(fra.me.REG[3])(fra.me.REG[3]);
+  /* ./metamodel//partial_order.nit:328 */
+  while(1) {
+    REGB1 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[3])(fra.me.REG[3]);
+    if (UNTAG_Bool(REGB1)) {
+      fra.me.REG[4] = CALL_abstract_collection___Iterator___item(fra.me.REG[3])(fra.me.REG[3]);
+      /* ./metamodel//partial_order.nit:329 */
+      CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[4]);
+      REGB1 = TAG_Bool(ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0])!=NIT_NULL);
+      /* ./metamodel//partial_order.nit:330 */
+      if (UNTAG_Bool(REGB1)) {
+      } else {
+        fprintf(stderr, "Uninitialized attribute %s", "_order");
+        fprintf(stderr, " (%s:%d)\n", LOCATE_partial_order, 330);
+        nit_exit(1);
+      }
+      fra.me.REG[5] = ATTR_partial_order___PartialOrderElement____order(fra.me.REG[0]);
+      fra.me.REG[4] = CALL_partial_order___PartialOrder_____bra(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+      REGB1 = CALL_partial_order___PartialOrderElement___rank(fra.me.REG[4])(fra.me.REG[4]);
+      REGB1 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB0));
+      /* ./metamodel//partial_order.nit:331 */
+      if (UNTAG_Bool(REGB1)) {
+        REGB1 = CALL_partial_order___PartialOrderElement___rank(fra.me.REG[4])(fra.me.REG[4]);
+        REGB2 = TAG_Int(1);
+        REGB2 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB2));
+        REGB0 = REGB2;
+      /* ./metamodel//partial_order.nit:332 */
+      }
+      /* ./metamodel//partial_order.nit:334 */
+      CALL_partial_order___PartialOrderElement___register_direct_smallers(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
+      fra.me.REG[4] = CALL_partial_order___PartialOrderElement___greaters(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]);
+      /* ./metamodel//partial_order.nit:335 */
+      while(1) {
+        REGB2 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[4])(fra.me.REG[4]);
+        if (UNTAG_Bool(REGB2)) {
+          fra.me.REG[5] = CALL_abstract_collection___Iterator___item(fra.me.REG[4])(fra.me.REG[4]);
+          /* ./metamodel//partial_order.nit:336 */
+          CALL_abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[5]);
+        } else {
+          /* ./metamodel//partial_order.nit:335 */
+          goto label1;
+        }
+        CALL_abstract_collection___Iterator___next(fra.me.REG[4])(fra.me.REG[4]);
+      }
+      label1: while(0);
+    } else {
+      /* ./metamodel//partial_order.nit:328 */
+      goto label2;
     }
-    break_46: while(0);
-    continue_45: while(0);
-    CALL_abstract_collection___Iterator___next(variable[7])(variable[7]) /*ArrayIterator::next*/;
+    CALL_abstract_collection___Iterator___next(fra.me.REG[3])(fra.me.REG[3]);
   }
-  break_45: while(0);
-  ATTR_partial_order___PartialOrderElement____rank(variable[0]) /*PartialOrderElement::_rank*/ =  variable[6] /*r*/;
-  return_label44: while(false);
-  init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_PartialOrderElement].i] = 1;
-  tracehead = trace.prev;
+  label2: while(0);
+  /* ./metamodel//partial_order.nit:339 */
+  ATTR_partial_order___PartialOrderElement____rank(fra.me.REG[0]) = REGB0;
+  stack_frame_head = fra.me.prev;
+  init_table[itpos1] = 1;
   return;
 }