/* This C file is generated by NIT to compile module sorter. */
#include "sorter._sep.h"
val_t sorter___AbstractSorter___compare(val_t self, val_t param0, val_t param1) {
- struct trace_t trace = {NULL, "sorter::AbstractSorter::compare (bin/../lib/standard//sorter.nit:22,2--27:40)"};
+ struct trace_t trace = {NULL, NULL, 22, LOCATE_sorter___AbstractSorter___compare};
trace.prev = tracehead; tracehead = &trace;
- fprintf(stderr, "Deferred method compare called (bin/../lib/standard//sorter.nit:22,2)\n");
+ trace.file = LOCATE_sorter;
+ fprintf(stderr, "Deferred method %s called");
+ fprintf(stderr, " (%s:%d)\n", LOCATE_sorter, 22);
nit_exit(1);
tracehead = trace.prev;
return NIT_NULL;
}
void sorter___AbstractSorter___sort(val_t self, val_t param0) {
- struct trace_t trace = {NULL, "sorter::AbstractSorter::sort (bin/../lib/standard//sorter.nit:29,2--30:64)"};
+ struct trace_t trace = {NULL, NULL, 29, LOCATE_sorter___AbstractSorter___sort};
val_t variable0;
val_t variable1;
trace.prev = tracehead; tracehead = &trace;
+ trace.file = LOCATE_sorter;
variable0 = param0;
- variable1 = ((array___AbstractArray___length_t)CALL( variable0 /*array*/,COLOR_abstract_collection___Collection___length))( variable0 /*array*/) /*Array::length*/;
+ variable1 = ((array___AbstractArray___length_t)CALL( variable0 /*array*/,COLOR_abstract_collection___Collection___length))( variable0 /*array*/) /*AbstractArray::length*/;
variable1 = TAG_Int(UNTAG_Int(variable1)-UNTAG_Int( TAG_Int(1)));
((sorter___AbstractSorter___sub_sort_t)CALL( self,COLOR_sorter___AbstractSorter___sub_sort))( self, variable0 /*array*/, TAG_Int(0), variable1) /*AbstractSorter::sub_sort*/;
tracehead = trace.prev;
return;
}
void sorter___AbstractSorter___sub_sort(val_t self, val_t param0, val_t param1, val_t param2) {
- struct trace_t trace = {NULL, "sorter::AbstractSorter::sub_sort (bin/../lib/standard//sorter.nit:32,2--40:30)"};
+ struct trace_t trace = {NULL, NULL, 32, LOCATE_sorter___AbstractSorter___sub_sort};
val_t variable0;
val_t variable1;
val_t variable2;
val_t variable3;
trace.prev = tracehead; tracehead = &trace;
+ trace.file = LOCATE_sorter;
variable0 = param0;
variable1 = param1;
variable2 = param2;
return;
}
void sorter___AbstractSorter___quick_sort(val_t self, val_t param0, val_t param1, val_t param2) {
- struct trace_t trace = {NULL, "sorter::AbstractSorter::quick_sort (bin/../lib/standard//sorter.nit:44,2--62:23)"};
+ struct trace_t trace = {NULL, NULL, 44, LOCATE_sorter___AbstractSorter___quick_sort};
val_t variable0;
val_t variable1;
val_t variable2;
val_t variable8;
val_t variable9;
trace.prev = tracehead; tracehead = &trace;
+ trace.file = LOCATE_sorter;
variable0 = param0;
variable1 = param1;
variable2 = param2;
variable5 = TAG_Bool(UNTAG_Int( variable4 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable6 = variable5;
if (UNTAG_Bool(variable6)) { /* and */
- variable6 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable6 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable6 = TAG_Bool(UNTAG_Int( variable4 /*index*/)<UNTAG_Int(variable6));
}
variable5 = variable6;
- if (!UNTAG_Bool(variable5)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable5)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable5 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable5 = UNBOX_NativeArray(variable5)[UNTAG_Int( variable4 /*index*/)];
goto return_label3;
variable8 = TAG_Bool(UNTAG_Int( variable7 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable9 = variable8;
if (UNTAG_Bool(variable9)) { /* and */
- variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable9 = TAG_Bool(UNTAG_Int( variable7 /*index*/)<UNTAG_Int(variable9));
}
variable8 = variable9;
- if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label6;
variable8 = TAG_Bool(UNTAG_Int( variable7 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable9 = variable8;
if (UNTAG_Bool(variable9)) { /* and */
- variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable9 = TAG_Bool(UNTAG_Int( variable7 /*index*/)<UNTAG_Int(variable9));
}
variable8 = variable9;
- if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label8;
variable8 = TAG_Bool(UNTAG_Int( variable7 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable9 = variable8;
if (UNTAG_Bool(variable9)) { /* and */
- variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable9 = TAG_Bool(UNTAG_Int( variable7 /*index*/)<UNTAG_Int(variable9));
}
variable8 = variable9;
- if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label9;
variable8 = TAG_Bool(UNTAG_Int( variable7 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable9 = variable8;
if (UNTAG_Bool(variable9)) { /* and */
- variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable9 = TAG_Bool(UNTAG_Int( variable7 /*index*/)<UNTAG_Int(variable9));
}
variable8 = variable9;
- if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label10;
variable8 = TAG_Bool(UNTAG_Int( variable7 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable9 = variable8;
if (UNTAG_Bool(variable9)) { /* and */
- variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable9 = TAG_Bool(UNTAG_Int( variable7 /*index*/)<UNTAG_Int(variable9));
}
variable8 = variable9;
- if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label11;
return;
}
void sorter___AbstractSorter___bubble_sort(val_t self, val_t param0, val_t param1, val_t param2) {
- struct trace_t trace = {NULL, "sorter::AbstractSorter::bubble_sort (bin/../lib/standard//sorter.nit:65,2--84:9)"};
+ struct trace_t trace = {NULL, NULL, 65, LOCATE_sorter___AbstractSorter___bubble_sort};
val_t variable0;
val_t variable1;
val_t variable2;
val_t variable8;
val_t variable9;
trace.prev = tracehead; tracehead = &trace;
+ trace.file = LOCATE_sorter;
variable0 = param0;
variable1 = param1;
variable2 = param2;
variable7 = TAG_Bool(UNTAG_Int( variable6 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable8 = variable7;
if (UNTAG_Bool(variable8)) { /* and */
- variable8 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable8 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable8 = TAG_Bool(UNTAG_Int( variable6 /*index*/)<UNTAG_Int(variable8));
}
variable7 = variable8;
- if (!UNTAG_Bool(variable7)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable7)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable7 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable7 = UNBOX_NativeArray(variable7)[UNTAG_Int( variable6 /*index*/)];
goto return_label14;
variable8 = TAG_Bool(UNTAG_Int( variable7 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable9 = variable8;
if (UNTAG_Bool(variable9)) { /* and */
- variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable9 = TAG_Bool(UNTAG_Int( variable7 /*index*/)<UNTAG_Int(variable9));
}
variable8 = variable9;
- if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label16;
variable8 = TAG_Bool(UNTAG_Int( variable7 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable9 = variable8;
if (UNTAG_Bool(variable9)) { /* and */
- variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable9 = TAG_Bool(UNTAG_Int( variable7 /*index*/)<UNTAG_Int(variable9));
}
variable8 = variable9;
- if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label17;
variable8 = TAG_Bool(UNTAG_Int( variable7 /*index*/)>=UNTAG_Int( TAG_Int(0)));
variable9 = variable8;
if (UNTAG_Bool(variable9)) { /* and */
- variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*Array::_length*/;
+ variable9 = ATTR_array___AbstractArray____length( variable0 /*array*/) /*AbstractArray::_length*/;
variable9 = TAG_Bool(UNTAG_Int( variable7 /*index*/)<UNTAG_Int(variable9));
}
variable8 = variable9;
- if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert 'index' failed: bin/../lib/standard//array.nit:229,3--46\n"); nit_exit(1);}
+ if (!UNTAG_Bool(variable8)) { fprintf(stderr, "Assert%s failed", " 'index' "); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_array___Array_____bra, LOCATE_sorter, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label18;
tracehead = trace.prev;
return;
}
+void sorter___AbstractSorter___init(val_t self, int* init_table) {
+ struct trace_t trace = {NULL, NULL, 0, LOCATE_sorter___AbstractSorter___init};
+ trace.prev = tracehead; tracehead = &trace;
+ trace.file = LOCATE_sorter;
+ tracehead = trace.prev;
+ return;
+}
val_t sorter___ComparableSorter___compare(val_t self, val_t param0, val_t param1) {
- struct trace_t trace = {NULL, "sorter::ComparableSorter::compare (bin/../lib/standard//sorter.nit:93,2--94:43)"};
+ struct trace_t trace = {NULL, NULL, 93, LOCATE_sorter___ComparableSorter___compare};
val_t variable0;
val_t variable1;
val_t variable2;
trace.prev = tracehead; tracehead = &trace;
+ trace.file = LOCATE_sorter;
variable0 = param0;
variable1 = param1;
variable2 = ((kernel___Comparable_____leqg_t)CALL( variable0 /*a*/,COLOR_kernel___Comparable_____leqg))( variable0 /*a*/, variable1 /*b*/) /*Comparable::<=>*/;
return variable2;
}
void sorter___ComparableSorter___init(val_t self, int* init_table) {
- struct trace_t trace = {NULL, "sorter::ComparableSorter::init (bin/../lib/standard//sorter.nit:96,2--5)"};
+ struct trace_t trace = {NULL, NULL, 96, LOCATE_sorter___ComparableSorter___init};
trace.prev = tracehead; tracehead = &trace;
+ trace.file = LOCATE_sorter;
if (init_table[VAL2OBJ( self)->vft[INIT_TABLE_POS_ComparableSorter].i]) return;
init_table[VAL2OBJ( self)->vft[INIT_TABLE_POS_ComparableSorter].i] = 1;
tracehead = trace.prev;