/* 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, LOCATE_sorter___AbstractSorter___compare, 22};
trace.prev = tracehead; tracehead = &trace;
- fprintf(stderr, "Deferred method compare called (bin/../lib/standard//sorter.nit:22,2)\n");
+ fprintf(stderr, "Deferred method %s called (%s: %d)\n", "compare", 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, LOCATE_sorter___AbstractSorter___sort, 29};
val_t variable0;
val_t variable1;
trace.prev = tracehead; tracehead = &trace;
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, LOCATE_sorter___AbstractSorter___sub_sort, 32};
val_t variable0;
val_t variable1;
val_t variable2;
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, LOCATE_sorter___AbstractSorter___quick_sort, 44};
val_t variable0;
val_t variable1;
val_t variable2;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable5 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable5 = UNBOX_NativeArray(variable5)[UNTAG_Int( variable4 /*index*/)];
goto return_label3;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label6;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label8;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label9;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label10;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 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, LOCATE_sorter___AbstractSorter___bubble_sort, 65};
val_t variable0;
val_t variable1;
val_t variable2;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable7 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable7 = UNBOX_NativeArray(variable7)[UNTAG_Int( variable6 /*index*/)];
goto return_label14;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label16;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label17;
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 (%s: %d)\n", " 'index' ", LOCATE_array___Array_____bra, 229); nit_exit(1);}
variable8 = ATTR_array___Array____items( variable0 /*array*/) /*Array::_items*/;
variable8 = UNBOX_NativeArray(variable8)[UNTAG_Int( variable7 /*index*/)];
goto return_label18;
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, LOCATE_sorter___ComparableSorter___compare, 93};
val_t variable0;
val_t variable1;
val_t variable2;
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, LOCATE_sorter___ComparableSorter___init, 96};
trace.prev = tracehead; tracehead = &trace;
if (init_table[VAL2OBJ( self)->vft[INIT_TABLE_POS_ComparableSorter].i]) return;
init_table[VAL2OBJ( self)->vft[INIT_TABLE_POS_ComparableSorter].i] = 1;