-val_t exec___Process___id(val_t self) {
- struct trace_t trace = {NULL, NULL, 23, LOCATE_exec___Process___id};
- val_t variable[3];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_exec;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- /* Register variable[2]: Result */
- variable[2] = ATTR_exec___Process____data(variable[0]) /*Process::_data*/;
- /* Register variable[2]: Result */
- variable[2] = CALL_exec___NativeProcess___id(variable[2])(variable[2]) /*NativeProcess::id*/;
- variable[1] = variable[2];
- goto return_label0;
- return_label0: while(false);
- tracehead = trace.prev;
- return variable[1];
-}
-val_t exec___Process___is_finished(val_t self) {
- struct trace_t trace = {NULL, NULL, 26, LOCATE_exec___Process___is_finished};
- val_t variable[3];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_exec;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- /* Register variable[2]: Result */
- variable[2] = ATTR_exec___Process____data(variable[0]) /*Process::_data*/;
- /* Register variable[2]: Result */
- variable[2] = CALL_exec___NativeProcess___is_finished(variable[2])(variable[2]) /*NativeProcess::is_finished*/;
- variable[1] = variable[2];
- goto return_label1;
- return_label1: while(false);
- tracehead = trace.prev;
- return variable[1];
-}
-void exec___Process___wait(val_t self) {
- struct trace_t trace = {NULL, NULL, 29, LOCATE_exec___Process___wait};
- val_t variable[3];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_exec;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- /* Register variable[2]: Result */
- variable[2] = ATTR_exec___Process____data(variable[0]) /*Process::_data*/;
- CALL_exec___NativeProcess___wait(variable[2])(variable[2]) /*NativeProcess::wait*/;
- /* Register variable[2]: Result */
- variable[2] = CALL_exec___Process___is_finished(variable[0])(variable[0]) /*Process::is_finished*/;
- if (!UNTAG_Bool(variable[2])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_exec___Process___wait, LOCATE_exec, 33); nit_exit(1);}
- return_label2: while(false);
- tracehead = trace.prev;
- return;
-}
-val_t exec___Process___status(val_t self) {
- struct trace_t trace = {NULL, NULL, 36, LOCATE_exec___Process___status};
- val_t variable[3];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_exec;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- /* Register variable[2]: Result */
- variable[2] = CALL_exec___Process___is_finished(variable[0])(variable[0]) /*Process::is_finished*/;
- if (!UNTAG_Bool(variable[2])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_exec___Process___status, LOCATE_exec, 39); nit_exit(1);}
- /* Register variable[2]: Result */
- variable[2] = ATTR_exec___Process____data(variable[0]) /*Process::_data*/;
- /* Register variable[2]: Result */
- variable[2] = CALL_exec___NativeProcess___status(variable[2])(variable[2]) /*NativeProcess::status*/;
- variable[1] = variable[2];
- goto return_label3;
- return_label3: while(false);
- tracehead = trace.prev;
- return variable[1];
-}
-void exec___Process___kill(val_t self, val_t param0) {
- struct trace_t trace = {NULL, NULL, 43, LOCATE_exec___Process___kill};
- val_t variable[4];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_exec;
- /* 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_exec___Process____data(variable[0]) /*Process::_data*/;
- CALL_exec___NativeProcess___kill(variable[3])(variable[3], variable[1] /*signal*/) /*NativeProcess::kill*/;
- return_label4: while(false);
- tracehead = trace.prev;
- return;
-}
-void exec___Process___term(val_t self) {
- struct trace_t trace = {NULL, NULL, 46, LOCATE_exec___Process___term};
- val_t variable[2];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_exec;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- CALL_exec___Process___kill(variable[0])(variable[0], TAG_Int(15)) /*Process::kill*/;
- return_label5: while(false);
- tracehead = trace.prev;
+val_t exec___Process___id(val_t p0){
+ struct {struct stack_frame_t me;} fra;
+ val_t REGB0;
+ val_t tmp;
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_exec;
+ fra.me.line = 23;
+ fra.me.meth = LOCATE_exec___Process___id;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 1;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ /* ./../lib/standard//exec.nit:24 */
+ REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 24);
+ }
+ fra.me.REG[0] = ATTR_exec___Process____data(fra.me.REG[0]);
+ REGB0 = CALL_exec___NativeProcess___id(fra.me.REG[0])(fra.me.REG[0]);
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+val_t exec___Process___is_finished(val_t p0){
+ struct {struct stack_frame_t me;} fra;
+ val_t REGB0;
+ val_t tmp;
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_exec;
+ fra.me.line = 26;
+ fra.me.meth = LOCATE_exec___Process___is_finished;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 1;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ /* ./../lib/standard//exec.nit:27 */
+ REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 27);
+ }
+ fra.me.REG[0] = ATTR_exec___Process____data(fra.me.REG[0]);
+ REGB0 = CALL_exec___NativeProcess___is_finished(fra.me.REG[0])(fra.me.REG[0]);
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+void exec___Process___wait(val_t p0){
+ struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+ val_t REGB0;
+ val_t tmp;
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_exec;
+ fra.me.line = 29;
+ fra.me.meth = LOCATE_exec___Process___wait;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 2;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[1] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ /* ./../lib/standard//exec.nit:32 */
+ REGB0 = TAG_Bool(ATTR_exec___Process____data(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "_data", LOCATE_exec, 32);
+ }
+ fra.me.REG[1] = ATTR_exec___Process____data(fra.me.REG[0]);
+ CALL_exec___NativeProcess___wait(fra.me.REG[1])(fra.me.REG[1]);
+ /* ./../lib/standard//exec.nit:33 */
+ REGB0 = CALL_exec___Process___is_finished(fra.me.REG[0])(fra.me.REG[0]);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Assert failed", NULL, LOCATE_exec, 33);
+ }
+ stack_frame_head = fra.me.prev;