Test report

Aliaspuppy
Date2024-01-05_05h00m01s
Commit ID9af7b41702ad654c6b9eda2ece6d72efbbfdaba7
Tests summary
PartPassed / Total
Part 1: Lexer and parser26 / 75
Part 2: AST and sematic analysis0 / 95
Part 3: Code generation0 / 29
Part 4: Register Allocation0 / 48
Part 5: Object-Oriented Features0 / 40
Exit codes
CodeExplanation
260Generated program contains too many memory accesses.
250One or more lexer error(s).
245One or more parse error(s).
240One or more semantic error(s).
230Compiled program produced wrong output.
224AST construction is wrong.
204Compiled program not found.
124Your compiler or program timed out (your compiler or produced program might have an infinite loop).
1JVM exited prematurely. It might occur when your compiler has infinite recursion/loops, throws an uncaught exception, requires a different Java version, or when you have forgotten to push some files with git, etc.
Test nameComponentCompiler exit codeExpected compiler exit codeCompiled program exit codeExpected compiled program exit codeMemory accessesMax memory accessesResult
fibonacci lexer 250 0 N/A N/A N/A N/A Fail
int lexer 250 0 N/A N/A N/A N/A Fail
intintint lexer 250 0 N/A N/A N/A N/A Fail
single_comment lexer 250 0 N/A N/A N/A N/A Fail
multi_comment lexer 250 0 N/A N/A N/A N/A Fail
nested_comments lexer 250 0 N/A N/A N/A N/A Fail
all_tokens lexer 250 0 N/A N/A N/A N/A Fail
escape_codes_1 lexer 250 0 N/A N/A N/A N/A Fail
escape_codes_2 lexer 250 250 N/A N/A N/A N/A Pass
multiple_characters_in_single_quotes lexer 250 250 N/A N/A N/A N/A Pass
char_assign_digits lexer 250 250 N/A N/A N/A N/A Pass
most_chars lexer 250 0 N/A N/A N/A N/A Fail
no_main lexer 250 0 N/A N/A N/A N/A Fail
minimal lexer 250 0 N/A N/A N/A N/A Fail
undefined_token lexer 250 250 N/A N/A N/A N/A Pass
identifiers lexer 250 0 N/A N/A N/A N/A Fail
includes lexer 250 0 N/A N/A N/A N/A Fail
preprocessing lexer 250 250 N/A N/A N/A N/A Pass
empty lexer 0 0 N/A N/A N/A N/A Pass
division lexer 250 0 N/A N/A N/A N/A Fail
fibonacci parser 245 0 N/A N/A N/A N/A Fail
int parser 245 245 N/A N/A N/A N/A Pass
single_comment parser 245 0 N/A N/A N/A N/A Fail
multi_comment parser 245 0 N/A N/A N/A N/A Fail
nested_comments parser 245 245 N/A N/A N/A N/A Pass
escape_codes_1 parser 245 0 N/A N/A N/A N/A Fail
most_chars parser 245 0 N/A N/A N/A N/A Fail
no_main parser 245 245 N/A N/A N/A N/A Pass
minimal parser 245 0 N/A N/A N/A N/A Fail
just_main parser 245 245 N/A N/A N/A N/A Pass
identifiers parser 245 0 N/A N/A N/A N/A Fail
includes parser 245 0 N/A N/A N/A N/A Fail
empty parser 0 0 N/A N/A N/A N/A Pass
while_loop_1 parser 245 0 N/A N/A N/A N/A Fail
while_loop_2 parser 245 0 N/A N/A N/A N/A Fail
while_loop_3 parser 245 245 N/A N/A N/A N/A Pass
unterminated_stmt parser 245 245 N/A N/A N/A N/A Pass
function_application_1 parser 245 245 N/A N/A N/A N/A Pass
function_application_2 parser 245 0 N/A N/A N/A N/A Fail
function_application_3 parser 245 0 N/A N/A N/A N/A Fail
function_application_4 parser 245 245 N/A N/A N/A N/A Pass
function_application_5 parser 245 0 N/A N/A N/A N/A Fail
count_to_n parser 245 0 N/A N/A N/A N/A Fail
declarations parser 245 0 N/A N/A N/A N/A Fail
missing_declarations parser 245 0 N/A N/A N/A N/A Fail
double_declarations parser 245 0 N/A N/A N/A N/A Fail
reserved_keyword_as_identifier parser 245 245 N/A N/A N/A N/A Pass
program_ends_with_single_comment parser 245 0 N/A N/A N/A N/A Fail
empty_functions_1 parser 245 0 N/A N/A N/A N/A Fail
empty_functions_2 parser 245 0 N/A N/A N/A N/A Fail
empty_comparison parser 245 245 N/A N/A N/A N/A Pass
else_if parser 245 0 N/A N/A N/A N/A Fail
arithmetic_1 parser 245 0 N/A N/A N/A N/A Fail
arithmetic_2 parser 245 0 N/A N/A N/A N/A Fail
broken_arithmetic parser 245 245 N/A N/A N/A N/A Pass
assignment_error parser 245 245 N/A N/A N/A N/A Pass
all_syntax_categories parser 245 0 N/A N/A N/A N/A Fail
all_syntax_categories_with_spaces parser 245 0 N/A N/A N/A N/A Fail
all_syntax_categories_compact parser 245 0 N/A N/A N/A N/A Fail
type_error parser 245 0 N/A N/A N/A N/A Fail
identifier_missing_type parser 245 245 N/A N/A N/A N/A Pass
nested_conditional_statements parser 245 0 N/A N/A N/A N/A Fail
empty_conditional parser 245 245 N/A N/A N/A N/A Pass
if_empty_body parser 245 0 N/A N/A N/A N/A Fail
statements_as_expressions parser 245 245 N/A N/A N/A N/A Pass
deep_body_nesting parser 245 0 N/A N/A N/A N/A Fail
variable_initialization parser 245 245 N/A N/A N/A N/A Pass
returning_multiple_times parser 245 0 N/A N/A N/A N/A Fail
else parser 245 245 N/A N/A N/A N/A Pass
struct_wrong parser 245 245 N/A N/A N/A N/A Pass
struct_usage parser 245 0 N/A N/A N/A N/A Fail
struct_declaration parser 245 0 N/A N/A N/A N/A Fail
ternary_comparison parser 245 0 N/A N/A N/A N/A Fail
pointer_pointer parser 245 0 N/A N/A N/A N/A Fail
type_cast parser 245 245 N/A N/A N/A N/A Pass
Test nameComponentCompiler exit codeExpected compiler exit codeCompiled program exit codeExpected compiled program exit codeMemory accessesMax memory accessesResult
fibonacci ast 245 0 N/A N/A N/A N/A Fail
arithmetics ast 245 0 N/A N/A N/A N/A Fail
arithmetics_plus ast 245 0 N/A N/A N/A N/A Fail
arithmetics_plus_mul ast 245 0 N/A N/A N/A N/A Fail
arithmetics_parentheses ast 245 0 N/A N/A N/A N/A Fail
arithmetics_modulo ast 245 0 N/A N/A N/A N/A Fail
arithmetics_division ast 245 0 N/A N/A N/A N/A Fail
unary_operator_1 ast 245 0 N/A N/A N/A N/A Fail
unary_operator_2 ast 245 0 N/A N/A N/A N/A Fail
function_call_1 ast 245 0 N/A N/A N/A N/A Fail
function_call_2 ast 245 0 N/A N/A N/A N/A Fail
return_1 ast 245 0 N/A N/A N/A N/A Fail
return_2 ast 245 0 N/A N/A N/A N/A Fail
return_3 ast 245 0 N/A N/A N/A N/A Fail
return_4 ast 245 0 N/A N/A N/A N/A Fail
nested_blocks_1 ast 245 0 N/A N/A N/A N/A Fail
nested_blocks_2 ast 245 0 N/A N/A N/A N/A Fail
blocks_in_sequence ast 245 0 N/A N/A N/A N/A Fail
assignment_1 ast 245 0 N/A N/A N/A N/A Fail
assignment_2 ast 245 0 N/A N/A N/A N/A Fail
print_s ast 245 0 N/A N/A N/A N/A Fail
read_c_1 ast 245 0 N/A N/A N/A N/A Fail
read_c_2 ast 245 0 N/A N/A N/A N/A Fail
read_i_1 ast 245 0 N/A N/A N/A N/A Fail
read_i_2 ast 245 0 N/A N/A N/A N/A Fail
print_c ast 245 0 N/A N/A N/A N/A Fail
print_i ast 245 0 N/A N/A N/A N/A Fail
while_loop ast 245 0 N/A N/A N/A N/A Fail
while_forever ast 245 0 N/A N/A N/A N/A Fail
if ast 245 0 N/A N/A N/A N/A Fail
if_else ast 245 0 N/A N/A N/A N/A Fail
if_else_if_else ast 245 0 N/A N/A N/A N/A Fail
if_if_else ast 245 0 N/A N/A N/A N/A Fail
procedure_declaration_1 ast 245 0 N/A N/A N/A N/A Fail
procedure_declaration_2 ast 245 0 N/A N/A N/A N/A Fail
procedure_declarations ast 245 0 N/A N/A N/A N/A Fail
global_variable_declaration ast 245 0 N/A N/A N/A N/A Fail
global_variable_declarations ast 245 0 N/A N/A N/A N/A Fail
local_variable_declaration ast 245 0 N/A N/A N/A N/A Fail
local_variable_declarations ast 245 0 N/A N/A N/A N/A Fail
includes ast 245 0 N/A N/A N/A N/A Fail
minimal ast 245 0 N/A N/A N/A N/A Fail
struct_use ast 245 0 N/A N/A N/A N/A Fail
strliteral ast 245 0 N/A N/A N/A N/A Fail
pointers_and_arrays_and_structs ast 245 0 N/A N/A N/A N/A Fail
struct_decl ast 245 0 N/A N/A N/A N/A Fail
minimal sem 245 0 N/A N/A N/A N/A Fail
global_declaration_1 sem 245 0 N/A N/A N/A N/A Fail
duplicate_global_declarations_1 sem 245 240 N/A N/A N/A N/A Fail
duplicate_global_declarations_2 sem 245 240 N/A N/A N/A N/A Fail
many_duplicate_global_declarations sem 245 240 N/A N/A N/A N/A Fail
global_shadowing_1 sem 245 0 N/A N/A N/A N/A Fail
global_shadowing_2 sem 245 0 N/A N/A N/A N/A Fail
global_shadowing_3 sem 245 240 N/A N/A N/A N/A Fail
global_shadowing_4 sem 245 0 N/A N/A N/A N/A Fail
global_shadowing_5 sem 245 240 N/A N/A N/A N/A Fail
local_shadowing_1 sem 245 0 N/A N/A N/A N/A Fail
local_shadowing_2 sem 245 0 N/A N/A N/A N/A Fail
mutual_recursion sem 245 240 N/A N/A N/A N/A Fail
undeclared_function_1 sem 245 240 N/A N/A N/A N/A Fail
undeclared_function_2 sem 245 240 N/A N/A N/A N/A Fail
undeclared_parameter sem 245 240 N/A N/A N/A N/A Fail
print_s sem 245 0 N/A N/A N/A N/A Fail
print_i sem 245 0 N/A N/A N/A N/A Fail
print_c sem 245 0 N/A N/A N/A N/A Fail
read_i sem 245 0 N/A N/A N/A N/A Fail
read_c sem 245 0 N/A N/A N/A N/A Fail
global_variable_assignment_1 sem 245 0 N/A N/A N/A N/A Fail
global_variable_assignment_2 sem 245 240 N/A N/A N/A N/A Fail
local_variable_assignment_1 sem 245 0 N/A N/A N/A N/A Fail
local_variable_assignment_2 sem 245 240 N/A N/A N/A N/A Fail
void_variable sem 245 240 N/A N/A N/A N/A Fail
main_return_1 sem 245 0 N/A N/A N/A N/A Fail
main_return_2 sem 245 240 N/A N/A N/A N/A Fail
arity_mismatch_1 sem 245 240 N/A N/A N/A N/A Fail
arity_mismatch_2 sem 245 240 N/A N/A N/A N/A Fail
function_returns_1 sem 245 0 N/A N/A N/A N/A Fail
function_returns_2 sem 245 240 N/A N/A N/A N/A Fail
arithmetics_1 sem 245 0 N/A N/A N/A N/A Fail
arithmetics_2 sem 245 240 N/A N/A N/A N/A Fail
arithmetics_3 sem 245 240 N/A N/A N/A N/A Fail
function_call_1 sem 245 240 N/A N/A N/A N/A Fail
function_call_2 sem 245 0 N/A N/A N/A N/A Fail
conditional_1 sem 245 240 N/A N/A N/A N/A Fail
conditional_2 sem 245 240 N/A N/A N/A N/A Fail
conditional_3 sem 245 240 N/A N/A N/A N/A Fail
conditional_4 sem 245 240 N/A N/A N/A N/A Fail
shadowing_6 sem 245 0 N/A N/A N/A N/A Fail
shadowing_7 sem 245 0 N/A N/A N/A N/A Fail
shadowing_12 sem 245 240 N/A N/A N/A N/A Fail
valid_lvalues sem 245 0 N/A N/A N/A N/A Fail
invalid_lvalue sem 245 240 N/A N/A N/A N/A Fail
struct_delc sem 245 240 N/A N/A N/A N/A Fail
struct_delc_and_use sem 245 0 N/A N/A N/A N/A Fail
struct_nesting sem 245 0 N/A N/A N/A N/A Fail
Test nameComponentCompiler exit codeExpected compiler exit codeCompiled program exit codeExpected compiled program exit codeMemory accessesMax memory accessesResult
hello_world gen 245 0 0 0 N/A N/A Fail
int_literals gen 245 0 0 0 N/A N/A Fail
nested_whiles gen 245 0 0 0 N/A N/A Fail
shadowing gen 245 0 0 0 N/A N/A Fail
arithmetics gen 245 0 0 0 N/A N/A Fail
character_comparison gen 245 0 0 0 N/A N/A Fail
branching_1 gen 245 0 0 0 N/A N/A Fail
branching_2 gen 245 0 0 0 N/A N/A Fail
branching_3 gen 245 0 0 0 N/A N/A Fail
count_down_from_n gen 245 0 0 0 N/A N/A Fail
count_to_n gen 245 0 0 0 N/A N/A Fail
global_variable gen 245 0 0 0 N/A N/A Fail
function_call gen 245 0 0 0 N/A N/A Fail
while_true gen 245 0 0 0 N/A N/A Fail
read_c gen 245 0 0 0 N/A N/A Fail
read_i gen 245 0 0 0 N/A N/A Fail
struct access gen 245 0 0 0 N/A N/A Fail
funcall with struct gen 245 0 0 0 N/A N/A Fail
cashmachine gen 245 0 0 0 N/A N/A Fail
dec2bin gen 245 0 0 0 N/A N/A Fail
fibonacci gen 245 0 0 0 N/A N/A Fail
factorial gen 245 0 0 0 N/A N/A Fail
is_leap_year gen 245 0 0 0 N/A N/A Fail
is_palindromic gen 245 0 0 0 N/A N/A Fail
is_prime gen 245 0 0 0 N/A N/A Fail
pascals_triangle gen 245 0 0 0 N/A N/A Fail
tictactoe gen 245 0 0 0 N/A N/A Fail
towers_of_hanoi gen 245 0 0 0 N/A N/A Fail
binary_search gen 245 0 0 0 N/A N/A Fail
Test nameComponentCompiler exit codeExpected compiler exit codeCompiled program exit codeExpected compiled program exit codeMemory accessesMax memory accessesResult
array_complex_reduction_8 regalloc 0 0 260 0 720 51 + 10% Fail
arithmetic_chain_short_hoisted regalloc 0 0 260 0 68 4 + 10% Fail
balanced_arithmetic_tree_large regalloc 0 0 260 0 258 4 + 10% Fail
arithmetic_chains_long regalloc 0 0 260 0 132 8 + 10% Fail
balanced_addition_tree_small_hoisted regalloc 0 0 260 0 50 4 + 10% Fail
array_simple_reduction_1 regalloc 0 0 260 0 1064 88 + 10% Fail
array_complex_reduction_2 regalloc 0 0 260 0 1027 77 + 10% Fail
array_complex_reduction_3 regalloc 0 0 260 0 472 45 + 10% Fail
balanced_arithmetic_tree_small_hoisted regalloc 0 0 260 0 50 4 + 10% Fail
array_complex_reduction_12 regalloc 0 0 260 0 602 50 + 10% Fail
arithmetic_chains_short_hoisted regalloc 0 0 260 0 70 8 + 10% Fail
arithmetic_chain_long_hoisted regalloc 0 0 260 0 122 14 + 10% Fail
array_simple_reduction_4 regalloc 0 0 260 0 145 22 + 10% Fail
balanced_addition_tree_large_hoisted regalloc 0 0 260 0 338 86 + 10% Fail
array_complex_reduction_4 regalloc 0 0 260 0 295 25 + 10% Fail
array_complex_reduction_6 regalloc 0 0 260 0 888 75 + 10% Fail
addition_chain_long regalloc 0 0 260 0 86 4 + 10% Fail
arithmetic_chains_short regalloc 0 0 260 0 60 8 + 10% Fail
array_multiplication_table_sum regalloc 0 0 260 0 341 37 + 10% Fail
array_simple_reduction_2 regalloc 0 0 260 0 40 16 + 10% Fail
hello_world regalloc 0 0 260 0 6 4 + 10% Fail
int_literals regalloc 0 0 260 0 46 24 + 10% Fail
nested_whiles regalloc 0 0 260 0 47 8 + 10% Fail
shadowing regalloc 0 0 260 0 124 52 + 10% Fail
arithmetics regalloc 0 0 260 0 28 4 + 10% Fail
character_comparison regalloc 0 0 260 0 24 8 + 10% Fail
branching_1 regalloc 0 0 260 0 16 8 + 10% Fail
branching_2 regalloc 0 0 260 0 16 8 + 10% Fail
branching_3 regalloc 0 0 260 0 46 16 + 10% Fail
count_down_from_n regalloc 0 0 260 0 32 12 + 10% Fail
count_to_n regalloc 0 0 260 0 30 12 + 10% Fail
global_variable regalloc 0 0 260 0 14 6 + 10% Fail
function_call regalloc 0 0 260 0 49 17 + 10% Fail
read_c regalloc 0 0 260 0 12 8 + 10% Fail
read_i regalloc 0 0 260 0 12 8 + 10% Fail
struct access regalloc 0 0 260 0 32 8 + 10% Fail
funcall with struct regalloc 0 0 260 0 181 39 + 10% Fail
cashmachine regalloc 0 0 260 0 3188 803 + 10% Fail
dec2bin regalloc 0 0 260 0 975 194 + 10% Fail
fibonacci regalloc 0 0 260 0 72 24 + 10% Fail
factorial regalloc 0 0 260 0 233 70 + 10% Fail
is_leap_year regalloc 0 0 260 0 75 28 + 10% Fail
is_palindromic regalloc 0 0 260 0 67 20 + 10% Fail
is_prime regalloc 0 0 260 0 125 46 + 10% Fail
pascals_triangle regalloc 0 0 260 0 575 131 + 10% Fail
tictactoe regalloc 0 0 260 0 3204 671 + 10% Fail
towers_of_hanoi regalloc 0 0 260 0 428 104 + 10% Fail
binary_search regalloc 0 0 260 0 501 67 + 10% Fail
Test nameComponentCompiler exit codeExpected compiler exit codeCompiled program exit codeExpected compiled program exit codeMemory accessesMax memory accessesResult
class_declaration_1 sem 245 0 N/A N/A N/A N/A Fail
class_declaration_2 sem 245 240 N/A N/A N/A N/A Fail
class_declaration_3 sem 245 0 N/A N/A N/A N/A Fail
class_declaration_4 sem 245 0 N/A N/A N/A N/A Fail
class_declaration_5 sem 245 240 N/A N/A N/A N/A Fail
class_instantiation_1 sem 245 0 N/A N/A N/A N/A Fail
class_instantiation_2 sem 245 240 N/A N/A N/A N/A Fail
class_instantiation_3 sem 245 0 N/A N/A N/A N/A Fail
field_access_1 sem 245 0 N/A N/A N/A N/A Fail
field_access_2 sem 245 0 N/A N/A N/A N/A Fail
field_access_3 sem 245 240 N/A N/A N/A N/A Fail
field_access_4 sem 245 0 N/A N/A N/A N/A Fail
class_function_call_1 sem 245 0 N/A N/A N/A N/A Fail
class_function_call_2 sem 245 0 N/A N/A N/A N/A Fail
class_function_call_3 sem 245 240 N/A N/A N/A N/A Fail
class_function_call_4 sem 245 0 N/A N/A N/A N/A Fail
class_type_casting_1 sem 245 0 N/A N/A N/A N/A Fail
class_type_casting_2 sem 245 240 N/A N/A N/A N/A Fail
class_type_casting_3 sem 245 240 N/A N/A N/A N/A Fail
class_type_casting_4 sem 245 240 N/A N/A N/A N/A Fail
simple_class gen 245 0 0 0 N/A N/A Fail
class_code_gen_polymorphism gen 245 0 0 0 N/A N/A Fail
class_code_gen_polymorphism_typecast gen 245 0 0 0 N/A N/A Fail
class_code_gen_inheritance1 gen 245 0 0 0 N/A N/A Fail
class_code_gen_inheritance2 gen 245 0 0 0 N/A N/A Fail
class_code_gen_reference1 gen 245 0 0 0 N/A N/A Fail
class_code_gen_reference2 gen 245 0 0 0 N/A N/A Fail
class_code_gen_reference3 gen 245 0 0 0 N/A N/A Fail
class_code_gen_reference4 gen 245 0 0 0 N/A N/A Fail
class_code_gen_function_call1 gen 245 0 0 0 N/A N/A Fail
class_code_gen_function_call2 gen 245 0 0 0 N/A N/A Fail
class_code_gen_function_call_reference gen 245 0 0 0 N/A N/A Fail
class_code_gen_function_call_typecast gen 245 0 0 0 N/A N/A Fail
class_code_gen_function_call_poly gen 245 0 0 0 N/A N/A Fail
class_code_gen_inheritance_field gen 245 0 0 0 N/A N/A Fail
class_code_gen_inheritance_function gen 245 0 0 0 N/A N/A Fail
class_code_gen_shadow_field gen 245 0 0 0 N/A N/A Fail
class_code_gen_fields1 gen 245 0 0 0 N/A N/A Fail
class_code_gen_fields2 gen 245 0 0 0 N/A N/A Fail
class_code_gen_function_inherited gen 245 0 0 0 N/A N/A Fail