├── .clang-format ├── .github └── workflows │ └── cmake.yml ├── .gitignore ├── .vscode ├── c_cpp_properties.json ├── launch.json └── settings.json ├── CMakeLists.txt ├── LICENSE ├── README.md ├── docs ├── .nojekyll ├── PA1 │ ├── README.md │ ├── img.png │ └── reading.md ├── PA2 │ ├── README.md │ ├── extend_node.png │ ├── symbol_table.png │ ├── visitor.md │ └── visitor_graph.png ├── PA3 │ ├── README.md │ ├── bonus.md │ ├── irbuilder.png │ ├── lightwalker.png │ ├── pass.png │ ├── reading.md │ └── vectorization.md ├── PA4 │ ├── README.md │ ├── codegen.png │ └── xuantie.png ├── README.md ├── assets │ ├── css │ │ └── main.css │ ├── icons │ │ ├── icon.ico │ │ └── icon.png │ └── js │ │ └── sidebar.js ├── berkeley │ ├── PA1.pdf │ ├── PA2.pdf │ └── PA3.pdf ├── chocopy.pdf ├── chocopy_language_reference.pdf ├── common │ ├── 0.svg │ ├── 1.svg │ ├── README.md │ ├── build.md │ ├── c++.png │ ├── cmake.md │ ├── img.png │ ├── img_1.png │ ├── img_2.png │ ├── lightir.md │ ├── logging.md │ ├── stdlib.md │ ├── structure.md │ └── toolchain.md ├── footer.md ├── index.html ├── toc.md └── zh-cn │ ├── PA1 │ ├── README.md │ └── reading.md │ ├── PA2 │ ├── README.md │ └── visitor.md │ ├── PA3 │ ├── README.md │ ├── bonus.md │ ├── reading.md │ └── vectorization.md │ ├── PA4 │ └── README.md │ ├── README.md │ ├── common │ ├── README.md │ ├── build.md │ ├── cmake.md │ ├── lightir.md │ ├── logging.md │ ├── stdlib.md │ ├── structure.md │ └── toolchain.md │ └── toc.md ├── include ├── cgen │ ├── InstGen.hpp │ ├── RiscVBackEnd.hpp │ └── chocopy_cgen.hpp ├── ir-optimizer │ ├── BasicBlock.hpp │ ├── Class.hpp │ ├── Constant.hpp │ ├── Function.hpp │ ├── GlobalVariable.hpp │ ├── IRBuilder.hpp │ ├── IRprinter.hpp │ ├── Module.hpp │ ├── Type.hpp │ ├── User.hpp │ ├── Value.hpp │ ├── chocopy_lightir.hpp │ └── chocopy_optimization.hpp ├── parser │ ├── chocopy_ast.hpp │ ├── chocopy_logging.hpp │ └── chocopy_parse.hpp ├── semantic │ ├── ClassDefType.hpp │ ├── FunctionDefType.hpp │ ├── SymbolTable.hpp │ ├── SymbolType.hpp │ ├── ValueType.hpp │ └── chocopy_semant.hpp └── win_extra │ └── FlexLexer.h ├── src ├── cgen │ ├── CMakeLists.txt │ ├── chocopy_cgen.cpp │ └── stdlib │ │ ├── $input.s │ │ ├── $input_linux.s │ │ ├── $len.s │ │ ├── $object.__init__.s │ │ ├── CMakeLists.txt │ │ ├── abort.s │ │ ├── abort_linux.s │ │ ├── accend.s │ │ ├── accstart.s │ │ ├── alloc.s │ │ ├── alloc2.s │ │ ├── alloc2_linux.s │ │ ├── chocopy_stdlib.S │ │ ├── chocopy_stdlib.o │ │ ├── concat.s │ │ ├── concat_linux.s │ │ ├── conslist.s │ │ ├── conslist_linux.s │ │ ├── debug.c │ │ ├── debug.h │ │ ├── error.Div.s │ │ ├── error.None.s │ │ ├── error.OOB.s │ │ ├── heap.init.s │ │ ├── heap.init_linux.s │ │ ├── initchars.s │ │ ├── len_12.s │ │ ├── len_13.s │ │ ├── makebool.s │ │ ├── makeint.s │ │ ├── makestr.s │ │ ├── myprintf.c │ │ ├── myscanf.c │ │ ├── noconv.s │ │ ├── nonlist.s │ │ ├── preprocess │ │ ├── print.s │ │ ├── print_10.s │ │ ├── print_11.s │ │ ├── print_11_linux.s │ │ ├── print_5.s │ │ ├── print_6.s │ │ ├── print_7.s │ │ ├── print_7_linux.s │ │ ├── print_8.s │ │ ├── print_9.s │ │ ├── strcat.s │ │ ├── strcat_linux.s │ │ ├── streql.s │ │ ├── streql_linux.s │ │ ├── strneql.s │ │ └── strneql_linux.s ├── ir-optimizer │ ├── BasicBlock.cpp │ ├── CMakeLists.txt │ ├── Class.cpp │ ├── Constant.cpp │ ├── Function.cpp │ ├── GlobalVariable.cpp │ ├── IRprinter.cpp │ ├── Instruction.cpp │ ├── Module.cpp │ ├── Type.cpp │ ├── User.cpp │ ├── Value.cpp │ ├── chocopy_lightir.cpp │ └── chocopy_optimization.cpp ├── parser │ ├── CMakeLists.txt │ ├── chocopy.l │ ├── chocopy.y │ ├── chocopy_ast.cpp │ ├── chocopy_logging.cpp │ └── chocopy_parse.cpp └── semantic │ ├── CMakeLists.txt │ └── chocopy_semant.cpp ├── tests ├── README.md ├── duipai.py ├── grammar.g4 ├── indent.py ├── pa1 │ └── sample │ │ ├── bad_assign_expr1.py │ │ ├── bad_assign_expr1.py.ast │ │ ├── bad_assign_expr1.py.ast.bak │ │ ├── bad_assign_expr2.py │ │ ├── bad_assign_expr2.py.ast │ │ ├── bad_assign_expr2.py.ast.bak │ │ ├── bad_func_def.py │ │ ├── bad_func_def.py.ast │ │ ├── bad_func_def.py.ast.bak │ │ ├── bad_indentation.py │ │ ├── bad_indentation.py.ast │ │ ├── bad_indentation.py.ast.bak │ │ ├── bad_stmt.py │ │ ├── bad_stmt.py.ast │ │ ├── bad_stmt.py.ast.bak │ │ ├── chained_mixed_assignments.py │ │ ├── chained_mixed_assignments.py.ast │ │ ├── chained_mixed_assignments.py.ast.bak │ │ ├── chained_var_assignments.py │ │ ├── chained_var_assignments.py.ast │ │ ├── chained_var_assignments.py.ast.bak │ │ ├── class_attr.py │ │ ├── class_attr.py.ast │ │ ├── class_attr.py.ast.bak │ │ ├── class_attr_get.py │ │ ├── class_attr_get.py.ast │ │ ├── class_attr_get.py.ast.bak │ │ ├── class_attr_set.py │ │ ├── class_attr_set.py.ast │ │ ├── class_attr_set.py.ast.bak │ │ ├── class_constructor.py │ │ ├── class_constructor.py.ast │ │ ├── class_constructor.py.ast.bak │ │ ├── class_method.py │ │ ├── class_method.py.ast │ │ ├── class_method.py.ast.bak │ │ ├── coverage.py │ │ ├── coverage.py.ast │ │ ├── coverage.py.ast.bak │ │ ├── def_func.py │ │ ├── def_func.py.ast │ │ ├── def_func.py.ast.bak │ │ ├── def_func_args.py │ │ ├── def_func_args.py.ast │ │ ├── def_func_args.py.ast.bak │ │ ├── def_func_global.py │ │ ├── def_func_global.py.ast │ │ ├── def_func_global.py.ast.bak │ │ ├── def_func_nested.py │ │ ├── def_func_nested.py.ast │ │ ├── def_func_nested.py.ast.bak │ │ ├── def_func_nonlocal.py │ │ ├── def_func_nonlocal.py.ast │ │ ├── def_func_nonlocal.py.ast.bak │ │ ├── expr_if.py │ │ ├── expr_if.py.ast │ │ ├── expr_if.py.ast.bak │ │ ├── expr_if_chained.py │ │ ├── expr_if_chained.py.ast │ │ ├── expr_if_chained.py.ast.bak │ │ ├── expr_index.py │ │ ├── expr_index.py.ast │ │ ├── expr_index.py.ast.bak │ │ ├── expr_plus.py │ │ ├── expr_plus.py.ast │ │ ├── expr_plus.py.ast.bak │ │ ├── expr_unary.py │ │ ├── expr_unary.py.ast │ │ ├── expr_unary.py.ast.bak │ │ ├── global.py │ │ ├── global.py.ast │ │ ├── global.py.ast.bak │ │ ├── literals.py │ │ ├── literals.py.ast │ │ ├── literals.py.ast.bak │ │ ├── stmt_call.py │ │ ├── stmt_call.py.ast │ │ ├── stmt_call.py.ast.bak │ │ ├── stmt_for.py │ │ ├── stmt_for.py.ast │ │ ├── stmt_for.py.ast.bak │ │ ├── stmt_if.py │ │ ├── stmt_if.py.ast │ │ ├── stmt_if.py.ast.bak │ │ ├── stmt_if_elif.py │ │ ├── stmt_if_elif.py.ast │ │ ├── stmt_if_elif.py.ast.bak │ │ ├── stmt_if_elif_else.py │ │ ├── stmt_if_elif_else.py.ast │ │ ├── stmt_if_elif_else.py.ast.bak │ │ ├── stmt_ifelse.py │ │ ├── stmt_ifelse.py.ast │ │ ├── stmt_ifelse.py.ast.bak │ │ ├── stmt_list_assign.py │ │ ├── stmt_list_assign.py.ast │ │ ├── stmt_list_assign.py.ast.bak │ │ ├── stmt_while.py │ │ ├── stmt_while.py.ast │ │ └── stmt_while.py.ast.bak ├── pa2 │ └── sample │ │ ├── ast_coverage.py │ │ ├── ast_coverage.py.out.typed │ │ ├── bad_class_attr.py │ │ ├── bad_class_attr.py.out.typed │ │ ├── bad_class_attr_type.py │ │ ├── bad_class_attr_type.py.out.typed │ │ ├── bad_class_init_return.py │ │ ├── bad_class_init_return.py.out.typed │ │ ├── bad_class_member_expr.py │ │ ├── bad_class_member_expr.py.out.typed │ │ ├── bad_class_method.py │ │ ├── bad_class_method.py.out.typed │ │ ├── bad_class_method_invoke.py │ │ ├── bad_class_method_invoke.py.out.typed │ │ ├── bad_class_method_override.py │ │ ├── bad_class_method_override.py.out.typed │ │ ├── bad_class_method_override_attr.py │ │ ├── bad_class_method_override_attr.py.out.typed │ │ ├── bad_class_super.py │ │ ├── bad_class_super.py.out.typed │ │ ├── bad_concat.py │ │ ├── bad_concat.py.out.typed │ │ ├── bad_duplicate_class.py │ │ ├── bad_duplicate_class.py.out.typed │ │ ├── bad_duplicate_class_member.py │ │ ├── bad_duplicate_class_member.py.out.typed │ │ ├── bad_duplicate_global.py │ │ ├── bad_duplicate_global.py.out.typed │ │ ├── bad_duplicate_local.py │ │ ├── bad_duplicate_local.py.out.typed │ │ ├── bad_expr_binary.py │ │ ├── bad_expr_binary.py.out.typed │ │ ├── bad_expr_unary.py │ │ ├── bad_expr_unary.py.out.typed │ │ ├── bad_func_def_call.py │ │ ├── bad_func_def_call.py.out.typed │ │ ├── bad_func_def_return.py │ │ ├── bad_func_def_return.py.out.typed │ │ ├── bad_list_assign.py │ │ ├── bad_list_assign.py.out.typed │ │ ├── bad_list_index.py │ │ ├── bad_list_index.py.out.typed │ │ ├── bad_local_assign.py │ │ ├── bad_local_assign.py.out.typed │ │ ├── bad_none_assign.py │ │ ├── bad_none_assign.py.out.typed │ │ ├── bad_nonlocal_global.py │ │ ├── bad_nonlocal_global.py.out.typed │ │ ├── bad_return_missing.py │ │ ├── bad_return_missing.py.out.typed │ │ ├── bad_return_top.py │ │ ├── bad_return_top.py.out.typed │ │ ├── bad_shadow_local.py │ │ ├── bad_shadow_local.py.out.typed │ │ ├── bad_shadow_local_2.py │ │ ├── bad_shadow_local_2.py.out.typed │ │ ├── bad_strings.py │ │ ├── bad_strings.py.out.typed │ │ ├── bad_type_annotation.py │ │ ├── bad_type_annotation.py.out.typed │ │ ├── bad_type_id.py │ │ ├── bad_type_id.py.out.typed │ │ ├── bad_var_assign.py │ │ ├── bad_var_assign.py.out.typed │ │ ├── class_def_assign.py │ │ ├── class_def_assign.py.out.typed │ │ ├── class_def_attr.py │ │ ├── class_def_attr.py.out.typed │ │ ├── class_def_init.py │ │ ├── class_def_init.py.out.typed │ │ ├── class_def_methods.py │ │ ├── class_def_methods.py.out.typed │ │ ├── decl_global_forward.py │ │ ├── decl_global_forward.py.out.typed │ │ ├── decl_nonlocal_forward.py │ │ ├── decl_nonlocal_forward.py.out.typed │ │ ├── expr_binary.py │ │ ├── expr_binary.py.out.typed │ │ ├── expr_concat.py │ │ ├── expr_concat.py.out.typed │ │ ├── expr_id.py │ │ ├── expr_id.py.out.typed │ │ ├── expr_int.py │ │ ├── expr_int.py.out.typed │ │ ├── expr_list_index.py │ │ ├── expr_list_index.py.out.typed │ │ ├── expr_lists.py │ │ ├── expr_lists.py.out.typed │ │ ├── expr_unary.py │ │ ├── expr_unary.py.out.typed │ │ ├── expr_var_assign.py │ │ ├── expr_var_assign.py.out.typed │ │ ├── func_def_call.py │ │ ├── func_def_call.py.out.typed │ │ ├── stmt_for_lists.py │ │ ├── stmt_for_lists.py.out.typed │ │ ├── stmt_for_strings.py │ │ ├── stmt_for_strings.py.out.typed │ │ ├── stmt_if.py │ │ ├── stmt_if.py.out.typed │ │ ├── stmt_list_assign.py │ │ ├── stmt_list_assign.py.out.typed │ │ ├── stmt_var_assign.py │ │ ├── stmt_var_assign.py.out.typed │ │ ├── stmt_while.py │ │ ├── stmt_while.py.out.typed │ │ ├── strings.py │ │ └── strings.py.out.typed ├── pa3 │ ├── bonus.py │ ├── pass │ │ ├── activevar1.json │ │ ├── activevar1.py │ │ ├── activevar2.json │ │ ├── activevar2.py │ │ ├── activevar3.json │ │ ├── activevar3.py │ │ ├── activevar4.json │ │ ├── activevar4.py │ │ ├── common_subexpr.py │ │ ├── const_propagate1.ll │ │ ├── const_propagate1.py │ │ ├── const_propagate1.py.typed.ll.result │ │ ├── const_propagate2.ll │ │ ├── const_propagate2.py │ │ ├── const_propagate2.py.typed.ll.result │ │ ├── const_propagate3.ll │ │ ├── const_propagate3.py │ │ ├── const_propagate3.py.typed.ll.result │ │ ├── constant_fold.py │ │ ├── funcinline.py │ │ ├── loopfind.py │ │ ├── loopinv_hoist1.ll │ │ ├── loopinv_hoist1.py │ │ ├── loopinv_hoist1.py.typed.ll.result │ │ ├── loopinv_hoist2.ll │ │ ├── loopinv_hoist2.py │ │ ├── loopinv_hoist2.py.typed.ll.result │ │ ├── loopinv_hoist3.ll │ │ ├── loopinv_hoist3.py │ │ ├── loopinv_hoist3.py.typed.ll.result │ │ ├── loopinv_hoist4.ll │ │ ├── loopinv_hoist4.py │ │ ├── loopinv_hoist4.py.typed.ll.result │ │ ├── printstr.py │ │ ├── vectorize.py │ │ └── vectorize1.py │ └── sample │ │ ├── call │ │ ├── call.ll │ │ ├── call.py │ │ ├── call.py.typed │ │ ├── call.py.typed.ll.result │ │ ├── call.s │ │ ├── call_with_args │ │ ├── call_with_args.ll │ │ ├── call_with_args.py │ │ ├── call_with_args.py.typed │ │ ├── call_with_args.py.typed.ll.result │ │ ├── call_with_args.s │ │ ├── error_div_zero │ │ ├── error_div_zero.ll │ │ ├── error_div_zero.py │ │ ├── error_div_zero.py.typed │ │ ├── error_div_zero.py.typed.ll.result │ │ ├── error_div_zero.s │ │ ├── error_invalid_print │ │ ├── error_invalid_print.ll │ │ ├── error_invalid_print.py │ │ ├── error_invalid_print.py.typed │ │ ├── error_invalid_print.py.typed.ll.result │ │ ├── error_invalid_print.s │ │ ├── error_mod_zero │ │ ├── error_mod_zero.ll │ │ ├── error_mod_zero.py │ │ ├── error_mod_zero.py.typed │ │ ├── error_mod_zero.py.typed.ll.result │ │ ├── error_mod_zero.s │ │ ├── expr_if │ │ ├── expr_if.ll │ │ ├── expr_if.py │ │ ├── expr_if.py.typed │ │ ├── expr_if.py.typed.ll.result │ │ ├── expr_if.s │ │ ├── id_global │ │ ├── id_global.ll │ │ ├── id_global.py │ │ ├── id_global.py.typed │ │ ├── id_global.py.typed.ll.result │ │ ├── id_global.s │ │ ├── id_local │ │ ├── id_local.ll │ │ ├── id_local.py │ │ ├── id_local.py.typed │ │ ├── id_local.py.typed.ll.result │ │ ├── id_local.s │ │ ├── input │ │ ├── input.ll │ │ ├── input.py │ │ ├── input.py.in │ │ ├── input.py.typed │ │ ├── input.py.typed.ll.result │ │ ├── input.s │ │ ├── len_invalid_1 │ │ ├── len_invalid_1.ll │ │ ├── len_invalid_1.py │ │ ├── len_invalid_1.py.typed │ │ ├── len_invalid_1.py.typed.ll.result │ │ ├── len_invalid_1.s │ │ ├── len_invalid_2 │ │ ├── len_invalid_2.ll │ │ ├── len_invalid_2.py │ │ ├── len_invalid_2.py.typed │ │ ├── len_invalid_2.py.typed.ll.result │ │ ├── len_invalid_2.s │ │ ├── list_concat │ │ ├── list_concat.ll │ │ ├── list_concat.py │ │ ├── list_concat.py.typed │ │ ├── list_concat.py.typed.ll.result │ │ ├── list_concat.s │ │ ├── list_concat_2 │ │ ├── list_concat_2.ll │ │ ├── list_concat_2.py │ │ ├── list_concat_2.py.typed │ │ ├── list_concat_2.py.typed.ll.result │ │ ├── list_concat_2.s │ │ ├── list_concat_none │ │ ├── list_concat_none.ll │ │ ├── list_concat_none.py │ │ ├── list_concat_none.py.typed │ │ ├── list_concat_none.py.typed.ll.result │ │ ├── list_concat_none.s │ │ ├── list_get_element │ │ ├── list_get_element.ll │ │ ├── list_get_element.py │ │ ├── list_get_element.py.typed │ │ ├── list_get_element.py.typed.ll.result │ │ ├── list_get_element.s │ │ ├── list_get_element_complex │ │ ├── list_get_element_complex.ll │ │ ├── list_get_element_complex.py │ │ ├── list_get_element_complex.py.typed │ │ ├── list_get_element_complex.py.typed.ll.result │ │ ├── list_get_element_none │ │ ├── list_get_element_none.ll │ │ ├── list_get_element_none.py │ │ ├── list_get_element_none.py.typed │ │ ├── list_get_element_none.py.typed.ll.result │ │ ├── list_get_element_none.s │ │ ├── list_get_element_oob_1 │ │ ├── list_get_element_oob_1.ll │ │ ├── list_get_element_oob_1.py │ │ ├── list_get_element_oob_1.py.typed │ │ ├── list_get_element_oob_1.py.typed.ll.result │ │ ├── list_get_element_oob_1.s │ │ ├── list_get_element_oob_2 │ │ ├── list_get_element_oob_2.ll │ │ ├── list_get_element_oob_2.py │ │ ├── list_get_element_oob_2.py.typed │ │ ├── list_get_element_oob_2.py.typed.ll.result │ │ ├── list_get_element_oob_2.s │ │ ├── list_get_element_oob_3 │ │ ├── list_get_element_oob_3.ll │ │ ├── list_get_element_oob_3.py │ │ ├── list_get_element_oob_3.py.typed │ │ ├── list_get_element_oob_3.py.typed.ll.result │ │ ├── list_get_element_oob_3.s │ │ ├── list_len │ │ ├── list_len.ll │ │ ├── list_len.py │ │ ├── list_len.py.typed │ │ ├── list_len.py.typed.ll.result │ │ ├── list_len.s │ │ ├── list_len_empty │ │ ├── list_len_empty.ll │ │ ├── list_len_empty.py │ │ ├── list_len_empty.py.typed │ │ ├── list_len_empty.py.typed.ll.result │ │ ├── list_len_empty.s │ │ ├── list_set_element │ │ ├── list_set_element.ll │ │ ├── list_set_element.py │ │ ├── list_set_element.py.typed │ │ ├── list_set_element.py.typed.ll.result │ │ ├── list_set_element.s │ │ ├── list_set_element_none │ │ ├── list_set_element_none.ll │ │ ├── list_set_element_none.py │ │ ├── list_set_element_none.py.typed │ │ ├── list_set_element_none.py.typed.ll.result │ │ ├── list_set_element_none.s │ │ ├── list_set_element_oob_1 │ │ ├── list_set_element_oob_1.ll │ │ ├── list_set_element_oob_1.py │ │ ├── list_set_element_oob_1.py.typed │ │ ├── list_set_element_oob_1.py.typed.ll.result │ │ ├── list_set_element_oob_1.s │ │ ├── list_set_element_oob_2 │ │ ├── list_set_element_oob_2.ll │ │ ├── list_set_element_oob_2.py │ │ ├── list_set_element_oob_2.py.typed │ │ ├── list_set_element_oob_2.py.typed.ll.result │ │ ├── list_set_element_oob_2.s │ │ ├── list_set_element_oob_3 │ │ ├── list_set_element_oob_3.ll │ │ ├── list_set_element_oob_3.py │ │ ├── list_set_element_oob_3.py.typed │ │ ├── list_set_element_oob_3.py.typed.ll.result │ │ ├── list_set_element_oob_3.s │ │ ├── literal_bool │ │ ├── literal_bool.ll │ │ ├── literal_bool.py │ │ ├── literal_bool.py.typed │ │ ├── literal_bool.py.typed.ll.result │ │ ├── literal_bool.s │ │ ├── literal_int │ │ ├── literal_int.ll │ │ ├── literal_int.py │ │ ├── literal_int.py.typed │ │ ├── literal_int.py.typed.ll.result │ │ ├── literal_int.s │ │ ├── literal_str │ │ ├── literal_str.ll │ │ ├── literal_str.py │ │ ├── literal_str.py.typed │ │ ├── literal_str.py.typed.ll.result │ │ ├── literal_str.s │ │ ├── nested │ │ ├── nested.ll │ │ ├── nested.py │ │ ├── nested.py.typed │ │ ├── nested.py.typed.ll.result │ │ ├── nested.s │ │ ├── nested2 │ │ ├── nested2.ll │ │ ├── nested2.py │ │ ├── nested2.py.typed │ │ ├── nested2.py.typed.ll.result │ │ ├── object_attr_get │ │ ├── object_attr_get.ll │ │ ├── object_attr_get.py │ │ ├── object_attr_get.py.typed │ │ ├── object_attr_get.py.typed.ll.result │ │ ├── object_attr_get.s │ │ ├── object_attr_get_none │ │ ├── object_attr_get_none.ll │ │ ├── object_attr_get_none.py │ │ ├── object_attr_get_none.py.typed │ │ ├── object_attr_get_none.py.typed.ll.result │ │ ├── object_attr_get_none.s │ │ ├── object_attr_set │ │ ├── object_attr_set.ll │ │ ├── object_attr_set.py │ │ ├── object_attr_set.py.typed │ │ ├── object_attr_set.py.typed.ll.result │ │ ├── object_attr_set.s │ │ ├── object_attr_set_eval_order │ │ ├── object_attr_set_eval_order.ll │ │ ├── object_attr_set_eval_order.py │ │ ├── object_attr_set_eval_order.py.typed │ │ ├── object_attr_set_eval_order.py.typed.ll.result │ │ ├── object_attr_set_none │ │ ├── object_attr_set_none.ll │ │ ├── object_attr_set_none.py │ │ ├── object_attr_set_none.py.typed │ │ ├── object_attr_set_none.py.typed.ll.result │ │ ├── object_attr_set_none.s │ │ ├── object_init │ │ ├── object_init.ll │ │ ├── object_init.py │ │ ├── object_init.py.typed │ │ ├── object_init.py.typed.ll.result │ │ ├── object_init.s │ │ ├── object_method │ │ ├── object_method.ll │ │ ├── object_method.py │ │ ├── object_method.py.typed │ │ ├── object_method.py.typed.ll.result │ │ ├── object_method.s │ │ ├── object_method_complex_call │ │ ├── object_method_complex_call.ll │ │ ├── object_method_complex_call.py │ │ ├── object_method_complex_call.py.typed │ │ ├── object_method_complex_call.py.typed.ll.result │ │ ├── object_method_complex_call.s │ │ ├── object_method_nested │ │ ├── object_method_nested.ll │ │ ├── object_method_nested.py │ │ ├── object_method_nested.py.typed │ │ ├── object_method_nested.py.typed.ll.result │ │ ├── object_method_nested.s │ │ ├── object_method_none │ │ ├── object_method_none.ll │ │ ├── object_method_none.py │ │ ├── object_method_none.py.typed │ │ ├── object_method_none.py.typed.ll.result │ │ ├── object_method_none.s │ │ ├── object_method_override │ │ ├── object_method_override.ll │ │ ├── object_method_override.py │ │ ├── object_method_override.py.typed │ │ ├── object_method_override.py.typed.ll.result │ │ ├── object_method_override.s │ │ ├── op_add │ │ ├── op_add.ll │ │ ├── op_add.py │ │ ├── op_add.py.typed │ │ ├── op_add.py.typed.ll.result │ │ ├── op_add.s │ │ ├── op_cmp_bool │ │ ├── op_cmp_bool.ll │ │ ├── op_cmp_bool.py │ │ ├── op_cmp_bool.py.typed │ │ ├── op_cmp_bool.py.typed.ll.result │ │ ├── op_cmp_bool.s │ │ ├── op_cmp_int │ │ ├── op_cmp_int.ll │ │ ├── op_cmp_int.py │ │ ├── op_cmp_int.py.typed │ │ ├── op_cmp_int.py.typed.ll.result │ │ ├── op_cmp_int.s │ │ ├── op_div_mod │ │ ├── op_div_mod.ll │ │ ├── op_div_mod.py │ │ ├── op_div_mod.py.typed │ │ ├── op_div_mod.py.typed.ll.result │ │ ├── op_div_mod.s │ │ ├── op_is │ │ ├── op_is.ll │ │ ├── op_is.py │ │ ├── op_is.py.typed │ │ ├── op_is.py.typed.ll.result │ │ ├── op_is.s │ │ ├── op_logical │ │ ├── op_logical.ll │ │ ├── op_logical.py │ │ ├── op_logical.py.typed │ │ ├── op_logical.py.typed.ll.result │ │ ├── op_logical.s │ │ ├── op_mul │ │ ├── op_mul.ll │ │ ├── op_mul.py │ │ ├── op_mul.py.typed │ │ ├── op_mul.py.typed.ll.result │ │ ├── op_mul.s │ │ ├── op_negate │ │ ├── op_negate.ll │ │ ├── op_negate.py │ │ ├── op_negate.py.typed │ │ ├── op_negate.py.typed.ll.result │ │ ├── op_negate.s │ │ ├── op_sub │ │ ├── op_sub.ll │ │ ├── op_sub.py │ │ ├── op_sub.py.typed │ │ ├── op_sub.py.typed.ll.result │ │ ├── op_sub.s │ │ ├── pass │ │ ├── pass.ll │ │ ├── pass.py │ │ ├── pass.py.typed │ │ ├── pass.py.typed.ll.result │ │ ├── pass.s │ │ ├── predef_constructors │ │ ├── predef_constructors.ll │ │ ├── predef_constructors.py │ │ ├── predef_constructors.py.typed │ │ ├── predef_constructors.py.typed.ll.result │ │ ├── predef_constructors.s │ │ ├── stmt_for_list │ │ ├── stmt_for_list.ll │ │ ├── stmt_for_list.py │ │ ├── stmt_for_list.py.typed │ │ ├── stmt_for_list.py.typed.ll.result │ │ ├── stmt_for_list.s │ │ ├── stmt_for_list_empty │ │ ├── stmt_for_list_empty.ll │ │ ├── stmt_for_list_empty.py │ │ ├── stmt_for_list_empty.py.typed │ │ ├── stmt_for_list_empty.py.typed.ll.result │ │ ├── stmt_for_list_empty.s │ │ ├── stmt_for_list_eval │ │ ├── stmt_for_list_eval.ll │ │ ├── stmt_for_list_eval.py │ │ ├── stmt_for_list_eval.py.typed │ │ ├── stmt_for_list_eval.py.typed.ll.result │ │ ├── stmt_for_list_eval.s │ │ ├── stmt_for_list_modify │ │ ├── stmt_for_list_modify.ll │ │ ├── stmt_for_list_modify.py │ │ ├── stmt_for_list_modify.py.typed │ │ ├── stmt_for_list_modify.py.typed.ll.result │ │ ├── stmt_for_list_modify.s │ │ ├── stmt_for_list_nested │ │ ├── stmt_for_list_nested.ll │ │ ├── stmt_for_list_nested.py │ │ ├── stmt_for_list_nested.py.typed │ │ ├── stmt_for_list_nested.py.typed.ll.result │ │ ├── stmt_for_list_nested.s │ │ ├── stmt_for_list_nested_same_var │ │ ├── stmt_for_list_nested_same_var.ll │ │ ├── stmt_for_list_nested_same_var.py │ │ ├── stmt_for_list_nested_same_var.py.typed │ │ ├── stmt_for_list_nested_same_var.py.typed.ll.result │ │ ├── stmt_for_list_nested_same_var.s │ │ ├── stmt_for_list_none │ │ ├── stmt_for_list_none.ll │ │ ├── stmt_for_list_none.py │ │ ├── stmt_for_list_none.py.typed │ │ ├── stmt_for_list_none.py.typed.ll.result │ │ ├── stmt_for_list_none.s │ │ ├── stmt_for_list_nonlocal │ │ ├── stmt_for_list_nonlocal.ll │ │ ├── stmt_for_list_nonlocal.py │ │ ├── stmt_for_list_nonlocal.py.typed │ │ ├── stmt_for_list_nonlocal.py.typed.ll.result │ │ ├── stmt_for_list_nonlocal.s │ │ ├── stmt_for_list_return │ │ ├── stmt_for_list_return.ll │ │ ├── stmt_for_list_return.py │ │ ├── stmt_for_list_return.py.typed │ │ ├── stmt_for_list_return.py.typed.ll.result │ │ ├── stmt_for_list_return.s │ │ ├── stmt_for_str │ │ ├── stmt_for_str.ll │ │ ├── stmt_for_str.py │ │ ├── stmt_for_str.py.typed │ │ ├── stmt_for_str.py.typed.ll.result │ │ ├── stmt_for_str.s │ │ ├── stmt_for_str_empty │ │ ├── stmt_for_str_empty.ll │ │ ├── stmt_for_str_empty.py │ │ ├── stmt_for_str_empty.py.typed │ │ ├── stmt_for_str_empty.py.typed.ll.result │ │ ├── stmt_for_str_empty.s │ │ ├── stmt_for_str_eval │ │ ├── stmt_for_str_eval.ll │ │ ├── stmt_for_str_eval.py │ │ ├── stmt_for_str_eval.py.typed │ │ ├── stmt_for_str_eval.py.typed.ll.result │ │ ├── stmt_for_str_eval.s │ │ ├── stmt_for_str_nested │ │ ├── stmt_for_str_nested.ll │ │ ├── stmt_for_str_nested.py │ │ ├── stmt_for_str_nested.py.typed │ │ ├── stmt_for_str_nested.py.typed.ll.result │ │ ├── stmt_for_str_nested.s │ │ ├── stmt_for_str_same_var │ │ ├── stmt_for_str_same_var.ll │ │ ├── stmt_for_str_same_var.py │ │ ├── stmt_for_str_same_var.py.typed │ │ ├── stmt_for_str_same_var.py.typed.ll.result │ │ ├── stmt_for_str_same_var.s │ │ ├── stmt_if │ │ ├── stmt_if.ll │ │ ├── stmt_if.py │ │ ├── stmt_if.py.typed │ │ ├── stmt_if.py.typed.ll.result │ │ ├── stmt_if.s │ │ ├── stmt_return_early │ │ ├── stmt_return_early.ll │ │ ├── stmt_return_early.py │ │ ├── stmt_return_early.py.typed │ │ ├── stmt_return_early.py.typed.ll.result │ │ ├── stmt_return_early.s │ │ ├── stmt_while │ │ ├── stmt_while.ll │ │ ├── stmt_while.py │ │ ├── stmt_while.py.typed │ │ ├── stmt_while.py.typed.ll.result │ │ ├── stmt_while.s │ │ ├── str_cat │ │ ├── str_cat.ll │ │ ├── str_cat.py │ │ ├── str_cat.py.typed │ │ ├── str_cat.py.typed.ll.result │ │ ├── str_cat.s │ │ ├── str_cat_2 │ │ ├── str_cat_2.ll │ │ ├── str_cat_2.py │ │ ├── str_cat_2.py.typed │ │ ├── str_cat_2.py.typed.ll.result │ │ ├── str_cat_2.s │ │ ├── str_cmp │ │ ├── str_cmp.ll │ │ ├── str_cmp.py │ │ ├── str_cmp.py.typed │ │ ├── str_cmp.py.typed.ll.result │ │ ├── str_cmp.s │ │ ├── str_get_element │ │ ├── str_get_element.ll │ │ ├── str_get_element.py │ │ ├── str_get_element.py.typed │ │ ├── str_get_element.py.typed.ll.result │ │ ├── str_get_element.s │ │ ├── str_get_element_oob_1 │ │ ├── str_get_element_oob_1.ll │ │ ├── str_get_element_oob_1.py │ │ ├── str_get_element_oob_1.py.typed │ │ ├── str_get_element_oob_1.py.typed.ll.result │ │ ├── str_get_element_oob_1.s │ │ ├── str_get_element_oob_2 │ │ ├── str_get_element_oob_2.ll │ │ ├── str_get_element_oob_2.py │ │ ├── str_get_element_oob_2.py.typed │ │ ├── str_get_element_oob_2.py.typed.ll.result │ │ ├── str_get_element_oob_2.s │ │ ├── str_get_element_oob_3 │ │ ├── str_get_element_oob_3.ll │ │ ├── str_get_element_oob_3.py │ │ ├── str_get_element_oob_3.py.typed │ │ ├── str_get_element_oob_3.py.typed.ll.result │ │ ├── str_get_element_oob_3.s │ │ ├── str_len │ │ ├── str_len.ll │ │ ├── str_len.py │ │ ├── str_len.py.typed │ │ ├── str_len.py.typed.ll.result │ │ ├── str_len.s │ │ ├── test │ │ ├── test.ll │ │ ├── test.s │ │ ├── var_assign │ │ ├── var_assign.ll │ │ ├── var_assign.py │ │ ├── var_assign.py.typed │ │ ├── var_assign.py.typed.ll.result │ │ └── var_assign.s ├── pa4 │ ├── benchmarks │ │ ├── exp.py │ │ ├── exp.py.ast.typed │ │ ├── exp.py.ast.typed.s.result │ │ ├── gemm.py │ │ ├── gen_gemm.py │ │ ├── prime.py │ │ ├── prime.py.ast.typed │ │ ├── prime.py.ast.typed.s.result │ │ ├── sieve.py │ │ ├── sieve.py.ast.typed │ │ ├── sieve.py.ast.typed.s.result │ │ ├── stdlib.py │ │ ├── stdlib.py.ast.typed │ │ ├── stdlib.py.ast.typed.s.result │ │ ├── tree.py │ │ ├── tree.py.ast.typed │ │ └── tree.py.ast.typed.s.result │ ├── fuzz │ │ ├── 1.py │ │ ├── 1.py.ast.typed.s.result │ │ ├── 10.py │ │ ├── 10.py.ast.typed.s.result │ │ ├── 2.py │ │ ├── 2.py.ast.typed.s.result │ │ ├── 3.py │ │ ├── 3.py.ast.typed.s.result │ │ ├── 4.py │ │ ├── 4.py.ast.typed.s.result │ │ ├── 5.py │ │ ├── 5.py.ast.typed.s.result │ │ ├── 6.py │ │ ├── 6.py.ast.typed.s.result │ │ ├── 7.py │ │ ├── 7.py.ast.typed.s.result │ │ ├── 8.py │ │ ├── 8.py.ast.typed.s.result │ │ ├── 9.py │ │ └── 9.py.ast.typed.s.result │ └── sample │ │ ├── call.py │ │ ├── call.py.ast.typed │ │ ├── call.py.ast.typed.s.result │ │ ├── call_with_args.py │ │ ├── call_with_args.py.ast.typed │ │ ├── call_with_args.py.ast.typed.s.result │ │ ├── error_div_zero.py │ │ ├── error_div_zero.py.ast.typed │ │ ├── error_div_zero.py.ast.typed.s.result │ │ ├── error_invalid_print.py │ │ ├── error_invalid_print.py.ast.typed │ │ ├── error_invalid_print.py.ast.typed.s.result │ │ ├── error_mod_zero.py │ │ ├── error_mod_zero.py.ast.typed │ │ ├── error_mod_zero.py.ast.typed.s.result │ │ ├── expr_if.py │ │ ├── expr_if.py.ast.typed │ │ ├── expr_if.py.ast.typed.s.result │ │ ├── id_global.py │ │ ├── id_global.py.ast.typed │ │ ├── id_global.py.ast.typed.s.result │ │ ├── id_local.py │ │ ├── id_local.py.ast.typed │ │ ├── id_local.py.ast.typed.s.result │ │ ├── input.py │ │ ├── input.py.ast.in │ │ ├── input.py.ast.typed │ │ ├── input.py.ast.typed.in │ │ ├── input.py.ast.typed.s.result │ │ ├── input.py.in │ │ ├── len_invalid_1.py │ │ ├── len_invalid_1.py.ast.typed │ │ ├── len_invalid_1.py.ast.typed.s.result │ │ ├── len_invalid_2.py │ │ ├── len_invalid_2.py.ast.typed │ │ ├── len_invalid_2.py.ast.typed.s.result │ │ ├── list_concat.py │ │ ├── list_concat.py.ast.typed │ │ ├── list_concat.py.ast.typed.s.result │ │ ├── list_concat_2.py │ │ ├── list_concat_2.py.ast.typed │ │ ├── list_concat_2.py.ast.typed.s.result │ │ ├── list_concat_none.py │ │ ├── list_concat_none.py.ast.typed │ │ ├── list_concat_none.py.ast.typed.s.result │ │ ├── list_get_element.py │ │ ├── list_get_element.py.ast.typed │ │ ├── list_get_element.py.ast.typed.s.result │ │ ├── list_get_element_complex.py │ │ ├── list_get_element_complex.py.ast.typed │ │ ├── list_get_element_complex.py.ast.typed.s.result │ │ ├── list_get_element_none.py │ │ ├── list_get_element_none.py.ast.typed │ │ ├── list_get_element_none.py.ast.typed.s.result │ │ ├── list_get_element_oob_1.py │ │ ├── list_get_element_oob_1.py.ast.typed │ │ ├── list_get_element_oob_1.py.ast.typed.s.result │ │ ├── list_get_element_oob_2.py │ │ ├── list_get_element_oob_2.py.ast.typed │ │ ├── list_get_element_oob_2.py.ast.typed.s.result │ │ ├── list_get_element_oob_3.py │ │ ├── list_get_element_oob_3.py.ast.typed │ │ ├── list_get_element_oob_3.py.ast.typed.s.result │ │ ├── list_len.py │ │ ├── list_len.py.ast.typed │ │ ├── list_len.py.ast.typed.s.result │ │ ├── list_len_empty.py │ │ ├── list_len_empty.py.ast.typed │ │ ├── list_len_empty.py.ast.typed.s.result │ │ ├── list_set_element.py │ │ ├── list_set_element.py.ast.typed │ │ ├── list_set_element.py.ast.typed.s.result │ │ ├── list_set_element_none.py │ │ ├── list_set_element_none.py.ast.typed │ │ ├── list_set_element_none.py.ast.typed.s.result │ │ ├── list_set_element_oob_1.py │ │ ├── list_set_element_oob_1.py.ast.typed │ │ ├── list_set_element_oob_1.py.ast.typed.s.result │ │ ├── list_set_element_oob_2.py │ │ ├── list_set_element_oob_2.py.ast.typed │ │ ├── list_set_element_oob_2.py.ast.typed.s.result │ │ ├── list_set_element_oob_3.py │ │ ├── list_set_element_oob_3.py.ast.typed │ │ ├── list_set_element_oob_3.py.ast.typed.s.result │ │ ├── literal_bool.py │ │ ├── literal_bool.py.ast.typed │ │ ├── literal_bool.py.ast.typed.s.result │ │ ├── literal_int.py │ │ ├── literal_int.py.ast.typed │ │ ├── literal_int.py.ast.typed.s.result │ │ ├── literal_str.py │ │ ├── literal_str.py.ast.typed │ │ ├── literal_str.py.ast.typed.s.result │ │ ├── nested.py │ │ ├── nested.py.ast.typed │ │ ├── nested.py.ast.typed.s.result │ │ ├── nested2.py │ │ ├── nested2.py.ast.typed │ │ ├── nested2.py.ast.typed.s.result │ │ ├── object_attr_get.py │ │ ├── object_attr_get.py.ast.typed │ │ ├── object_attr_get.py.ast.typed.s.result │ │ ├── object_attr_get_none.py │ │ ├── object_attr_get_none.py.ast.typed │ │ ├── object_attr_get_none.py.ast.typed.s.result │ │ ├── object_attr_set.py │ │ ├── object_attr_set.py.ast.typed │ │ ├── object_attr_set.py.ast.typed.s.result │ │ ├── object_attr_set_eval_order.py │ │ ├── object_attr_set_eval_order.py.ast.typed │ │ ├── object_attr_set_eval_order.py.ast.typed.s.result │ │ ├── object_attr_set_none.py │ │ ├── object_attr_set_none.py.ast.typed │ │ ├── object_attr_set_none.py.ast.typed.s.result │ │ ├── object_init.py │ │ ├── object_init.py.ast.typed │ │ ├── object_init.py.ast.typed.s.result │ │ ├── object_method.py │ │ ├── object_method.py.ast.typed │ │ ├── object_method.py.ast.typed.s.result │ │ ├── object_method_complex_call.py │ │ ├── object_method_complex_call.py.ast.typed │ │ ├── object_method_complex_call.py.ast.typed.s.result │ │ ├── object_method_nested.py │ │ ├── object_method_nested.py.ast.typed │ │ ├── object_method_nested.py.ast.typed.s.result │ │ ├── object_method_none.py │ │ ├── object_method_none.py.ast.typed │ │ ├── object_method_none.py.ast.typed.s.result │ │ ├── object_method_override.py │ │ ├── object_method_override.py.ast.typed │ │ ├── object_method_override.py.ast.typed.s.result │ │ ├── op_add.py │ │ ├── op_add.py.ast.typed │ │ ├── op_add.py.ast.typed.s.result │ │ ├── op_cmp_bool.py │ │ ├── op_cmp_bool.py.ast.typed │ │ ├── op_cmp_bool.py.ast.typed.s.result │ │ ├── op_cmp_int.py │ │ ├── op_cmp_int.py.ast.typed │ │ ├── op_cmp_int.py.ast.typed.s.result │ │ ├── op_div_mod.py │ │ ├── op_div_mod.py.ast.typed │ │ ├── op_div_mod.py.ast.typed.s.result │ │ ├── op_is.py │ │ ├── op_is.py.ast.typed │ │ ├── op_is.py.ast.typed.s.result │ │ ├── op_logical.py │ │ ├── op_logical.py.ast.typed │ │ ├── op_logical.py.ast.typed.s.result │ │ ├── op_mul.py │ │ ├── op_mul.py.ast.typed │ │ ├── op_mul.py.ast.typed.s.result │ │ ├── op_negate.py │ │ ├── op_negate.py.ast.typed │ │ ├── op_negate.py.ast.typed.s.result │ │ ├── op_sub.py │ │ ├── op_sub.py.ast.typed │ │ ├── op_sub.py.ast.typed.s.result │ │ ├── pass.py │ │ ├── pass.py.ast.typed │ │ ├── pass.py.ast.typed.s.result │ │ ├── predef_constructors.py │ │ ├── predef_constructors.py.ast.typed │ │ ├── predef_constructors.py.ast.typed.s.result │ │ ├── stmt_for_list.py │ │ ├── stmt_for_list.py.ast.typed │ │ ├── stmt_for_list.py.ast.typed.s.result │ │ ├── stmt_for_list_empty.py │ │ ├── stmt_for_list_empty.py.ast.typed │ │ ├── stmt_for_list_empty.py.ast.typed.s.result │ │ ├── stmt_for_list_eval.py │ │ ├── stmt_for_list_eval.py.ast.typed │ │ ├── stmt_for_list_eval.py.ast.typed.s.result │ │ ├── stmt_for_list_modify.py │ │ ├── stmt_for_list_modify.py.ast.typed │ │ ├── stmt_for_list_modify.py.ast.typed.s.result │ │ ├── stmt_for_list_nested.py │ │ ├── stmt_for_list_nested.py.ast.typed │ │ ├── stmt_for_list_nested.py.ast.typed.s.result │ │ ├── stmt_for_list_nested_same_var.py │ │ ├── stmt_for_list_nested_same_var.py.ast.typed │ │ ├── stmt_for_list_nested_same_var.py.ast.typed.s.result │ │ ├── stmt_for_list_none.py │ │ ├── stmt_for_list_none.py.ast.typed │ │ ├── stmt_for_list_none.py.ast.typed.s.result │ │ ├── stmt_for_list_nonlocal.py │ │ ├── stmt_for_list_nonlocal.py.ast.typed │ │ ├── stmt_for_list_nonlocal.py.ast.typed.s.result │ │ ├── stmt_for_list_return.ll │ │ ├── stmt_for_list_return.py │ │ ├── stmt_for_list_return.py.ast.typed │ │ ├── stmt_for_list_return.py.ast.typed.s.result │ │ ├── stmt_for_str.py │ │ ├── stmt_for_str.py.ast.typed │ │ ├── stmt_for_str.py.ast.typed.s.result │ │ ├── stmt_for_str_empty.py │ │ ├── stmt_for_str_empty.py.ast.typed │ │ ├── stmt_for_str_empty.py.ast.typed.s.result │ │ ├── stmt_for_str_eval.py │ │ ├── stmt_for_str_eval.py.ast.typed │ │ ├── stmt_for_str_eval.py.ast.typed.s.result │ │ ├── stmt_for_str_nested.py │ │ ├── stmt_for_str_nested.py.ast.typed │ │ ├── stmt_for_str_nested.py.ast.typed.s.result │ │ ├── stmt_for_str_same_var.py │ │ ├── stmt_for_str_same_var.py.ast.typed │ │ ├── stmt_for_str_same_var.py.ast.typed.s.result │ │ ├── stmt_if.py │ │ ├── stmt_if.py.ast.typed │ │ ├── stmt_if.py.ast.typed.s.result │ │ ├── stmt_return_early.py │ │ ├── stmt_return_early.py.ast.typed │ │ ├── stmt_return_early.py.ast.typed.s.result │ │ ├── stmt_while.py │ │ ├── stmt_while.py.ast.typed │ │ ├── stmt_while.py.ast.typed.s.result │ │ ├── str_cat.py │ │ ├── str_cat.py.ast.typed │ │ ├── str_cat.py.ast.typed.s.result │ │ ├── str_cat_2.py │ │ ├── str_cat_2.py.ast.typed │ │ ├── str_cat_2.py.ast.typed.s.result │ │ ├── str_cmp.py │ │ ├── str_cmp.py.ast.typed │ │ ├── str_cmp.py.ast.typed.s.result │ │ ├── str_get_element.py │ │ ├── str_get_element.py.ast.typed │ │ ├── str_get_element.py.ast.typed.s.result │ │ ├── str_get_element_oob_1.py │ │ ├── str_get_element_oob_1.py.ast.typed │ │ ├── str_get_element_oob_1.py.ast.typed.s.result │ │ ├── str_get_element_oob_2.py │ │ ├── str_get_element_oob_2.py.ast.typed │ │ ├── str_get_element_oob_2.py.ast.typed.s.result │ │ ├── str_get_element_oob_3.py │ │ ├── str_get_element_oob_3.py.ast.typed │ │ ├── str_get_element_oob_3.py.ast.typed.s.result │ │ ├── str_len.py │ │ ├── str_len.py.ast.typed │ │ ├── str_len.py.ast.typed.s.result │ │ ├── var_assign.py │ │ ├── var_assign.py.ast.typed │ │ └── var_assign.py.ast.typed.s.result ├── requirements.txt └── run.sh ├── tools ├── CMakeLists.txt └── cjson_formatter.cpp └── web ├── .gitignore ├── README.md ├── WebCompiler.py ├── chocopy-ref.jar ├── css ├── ace.css ├── normalize.css ├── sakura.css └── venus.css ├── index.html ├── js ├── ace.js ├── codemirror.js ├── jquery-3.3.1.min.js ├── mode-python.js └── theme-github.js ├── reply.py ├── target ├── assignment.jar ├── chocopy-2.2-SNAPSHOT.jar ├── classes │ └── chocopy │ │ ├── common │ │ ├── Utils.class │ │ ├── abort.s │ │ ├── alloc.s │ │ ├── alloc2.s │ │ ├── analysis │ │ │ ├── AbstractNodeAnalyzer.class │ │ │ ├── NodeAnalyzer.class │ │ │ ├── SymbolTable.class │ │ │ └── types │ │ │ │ ├── ClassValueType.class │ │ │ │ ├── FuncType.class │ │ │ │ ├── ListValueType.class │ │ │ │ ├── Type.class │ │ │ │ └── ValueType.class │ │ ├── astnodes │ │ │ ├── AssignStmt.class │ │ │ ├── BinaryExpr.class │ │ │ ├── BooleanLiteral.class │ │ │ ├── CallExpr.class │ │ │ ├── ClassDef.class │ │ │ ├── ClassType.class │ │ │ ├── CompilerError.class │ │ │ ├── Declaration.class │ │ │ ├── Errors.class │ │ │ ├── Expr.class │ │ │ ├── ExprStmt.class │ │ │ ├── ForStmt.class │ │ │ ├── FuncDef.class │ │ │ ├── GlobalDecl.class │ │ │ ├── Identifier.class │ │ │ ├── IfExpr.class │ │ │ ├── IfStmt.class │ │ │ ├── IndexExpr.class │ │ │ ├── IntegerLiteral.class │ │ │ ├── ListExpr.class │ │ │ ├── ListType.class │ │ │ ├── Literal.class │ │ │ ├── MemberExpr.class │ │ │ ├── MethodCallExpr.class │ │ │ ├── Node.class │ │ │ ├── NonLocalDecl.class │ │ │ ├── NoneLiteral.class │ │ │ ├── Program.class │ │ │ ├── ReturnStmt.class │ │ │ ├── Stmt.class │ │ │ ├── StringLiteral.class │ │ │ ├── TypeAnnotation.class │ │ │ ├── TypedVar.class │ │ │ ├── UnaryExpr.class │ │ │ ├── VarDef.class │ │ │ └── WhileStmt.class │ │ ├── codegen │ │ │ ├── AttrInfo.class │ │ │ ├── ClassInfo.class │ │ │ ├── CodeGenBase$LocalDeclAnalyzer.class │ │ │ ├── CodeGenBase$NestedFuncAnalyzer.class │ │ │ ├── CodeGenBase.class │ │ │ ├── Constants.class │ │ │ ├── FuncInfo.class │ │ │ ├── GlobalVarInfo.class │ │ │ ├── Label.class │ │ │ ├── RiscVBackend$Register.class │ │ │ ├── RiscVBackend.class │ │ │ ├── StackVarInfo.class │ │ │ ├── SymbolInfo.class │ │ │ └── VarInfo.class │ │ ├── heap.init.s │ │ ├── input.s │ │ ├── len.s │ │ ├── object.__init__.s │ │ └── print.s │ │ └── pa1 │ │ ├── ChocoPyLexer.class │ │ ├── ChocoPyParser$CUP$ChocoPyParser$actions.class │ │ ├── ChocoPyParser.class │ │ ├── ChocoPyTokens.class │ │ └── StudentParser.class ├── generated-sources │ ├── cup │ │ └── chocopy │ │ │ └── pa1 │ │ │ ├── ChocoPyParser.java │ │ │ └── ChocoPyTokens.java │ └── jflex │ │ └── chocopy │ │ └── pa1 │ │ └── ChocoPyLexer.java ├── maven-archiver │ └── pom.properties └── maven-status │ └── maven-compiler-plugin │ └── compile │ └── default-compile │ ├── createdFiles.lst │ └── inputFiles.lst ├── venus.html └── venus.js /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/.clang-format -------------------------------------------------------------------------------- /.github/workflows/cmake.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/.github/workflows/cmake.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build -------------------------------------------------------------------------------- /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/.vscode/c_cpp_properties.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/README.md -------------------------------------------------------------------------------- /docs/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/PA1/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA1/README.md -------------------------------------------------------------------------------- /docs/PA1/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA1/img.png -------------------------------------------------------------------------------- /docs/PA1/reading.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA1/reading.md -------------------------------------------------------------------------------- /docs/PA2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA2/README.md -------------------------------------------------------------------------------- /docs/PA2/extend_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA2/extend_node.png -------------------------------------------------------------------------------- /docs/PA2/symbol_table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA2/symbol_table.png -------------------------------------------------------------------------------- /docs/PA2/visitor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA2/visitor.md -------------------------------------------------------------------------------- /docs/PA2/visitor_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA2/visitor_graph.png -------------------------------------------------------------------------------- /docs/PA3/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA3/README.md -------------------------------------------------------------------------------- /docs/PA3/bonus.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA3/bonus.md -------------------------------------------------------------------------------- /docs/PA3/irbuilder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA3/irbuilder.png -------------------------------------------------------------------------------- /docs/PA3/lightwalker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA3/lightwalker.png -------------------------------------------------------------------------------- /docs/PA3/pass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA3/pass.png -------------------------------------------------------------------------------- /docs/PA3/reading.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA3/reading.md -------------------------------------------------------------------------------- /docs/PA3/vectorization.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA3/vectorization.md -------------------------------------------------------------------------------- /docs/PA4/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA4/README.md -------------------------------------------------------------------------------- /docs/PA4/codegen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA4/codegen.png -------------------------------------------------------------------------------- /docs/PA4/xuantie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/PA4/xuantie.png -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/assets/css/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/assets/css/main.css -------------------------------------------------------------------------------- /docs/assets/icons/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/assets/icons/icon.ico -------------------------------------------------------------------------------- /docs/assets/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/assets/icons/icon.png -------------------------------------------------------------------------------- /docs/assets/js/sidebar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/assets/js/sidebar.js -------------------------------------------------------------------------------- /docs/berkeley/PA1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/berkeley/PA1.pdf -------------------------------------------------------------------------------- /docs/berkeley/PA2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/berkeley/PA2.pdf -------------------------------------------------------------------------------- /docs/berkeley/PA3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/berkeley/PA3.pdf -------------------------------------------------------------------------------- /docs/chocopy.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/chocopy.pdf -------------------------------------------------------------------------------- /docs/chocopy_language_reference.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/chocopy_language_reference.pdf -------------------------------------------------------------------------------- /docs/common/0.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/0.svg -------------------------------------------------------------------------------- /docs/common/1.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/1.svg -------------------------------------------------------------------------------- /docs/common/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/README.md -------------------------------------------------------------------------------- /docs/common/build.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/build.md -------------------------------------------------------------------------------- /docs/common/c++.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/c++.png -------------------------------------------------------------------------------- /docs/common/cmake.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/cmake.md -------------------------------------------------------------------------------- /docs/common/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/img.png -------------------------------------------------------------------------------- /docs/common/img_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/img_1.png -------------------------------------------------------------------------------- /docs/common/img_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/img_2.png -------------------------------------------------------------------------------- /docs/common/lightir.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/lightir.md -------------------------------------------------------------------------------- /docs/common/logging.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/logging.md -------------------------------------------------------------------------------- /docs/common/stdlib.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/stdlib.md -------------------------------------------------------------------------------- /docs/common/structure.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/structure.md -------------------------------------------------------------------------------- /docs/common/toolchain.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/common/toolchain.md -------------------------------------------------------------------------------- /docs/footer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/footer.md -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/index.html -------------------------------------------------------------------------------- /docs/toc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/toc.md -------------------------------------------------------------------------------- /docs/zh-cn/PA1/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA1/README.md -------------------------------------------------------------------------------- /docs/zh-cn/PA1/reading.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA1/reading.md -------------------------------------------------------------------------------- /docs/zh-cn/PA2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA2/README.md -------------------------------------------------------------------------------- /docs/zh-cn/PA2/visitor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA2/visitor.md -------------------------------------------------------------------------------- /docs/zh-cn/PA3/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA3/README.md -------------------------------------------------------------------------------- /docs/zh-cn/PA3/bonus.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA3/bonus.md -------------------------------------------------------------------------------- /docs/zh-cn/PA3/reading.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA3/reading.md -------------------------------------------------------------------------------- /docs/zh-cn/PA3/vectorization.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA3/vectorization.md -------------------------------------------------------------------------------- /docs/zh-cn/PA4/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/PA4/README.md -------------------------------------------------------------------------------- /docs/zh-cn/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/README.md -------------------------------------------------------------------------------- /docs/zh-cn/common/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/common/README.md -------------------------------------------------------------------------------- /docs/zh-cn/common/build.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/common/build.md -------------------------------------------------------------------------------- /docs/zh-cn/common/cmake.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/common/cmake.md -------------------------------------------------------------------------------- /docs/zh-cn/common/lightir.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/common/lightir.md -------------------------------------------------------------------------------- /docs/zh-cn/common/logging.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/common/logging.md -------------------------------------------------------------------------------- /docs/zh-cn/common/stdlib.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/common/stdlib.md -------------------------------------------------------------------------------- /docs/zh-cn/common/structure.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/common/structure.md -------------------------------------------------------------------------------- /docs/zh-cn/common/toolchain.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/common/toolchain.md -------------------------------------------------------------------------------- /docs/zh-cn/toc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/docs/zh-cn/toc.md -------------------------------------------------------------------------------- /include/cgen/InstGen.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/cgen/InstGen.hpp -------------------------------------------------------------------------------- /include/cgen/RiscVBackEnd.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/cgen/RiscVBackEnd.hpp -------------------------------------------------------------------------------- /include/cgen/chocopy_cgen.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/cgen/chocopy_cgen.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/BasicBlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/BasicBlock.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/Class.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/Class.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/Constant.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/Constant.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/Function.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/Function.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/GlobalVariable.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/GlobalVariable.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/IRBuilder.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/IRBuilder.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/IRprinter.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/IRprinter.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/Module.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/Module.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/Type.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/Type.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/User.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/User.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/Value.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/Value.hpp -------------------------------------------------------------------------------- /include/ir-optimizer/chocopy_lightir.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/ir-optimizer/chocopy_lightir.hpp -------------------------------------------------------------------------------- /include/parser/chocopy_ast.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/parser/chocopy_ast.hpp -------------------------------------------------------------------------------- /include/parser/chocopy_logging.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/parser/chocopy_logging.hpp -------------------------------------------------------------------------------- /include/parser/chocopy_parse.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/parser/chocopy_parse.hpp -------------------------------------------------------------------------------- /include/semantic/ClassDefType.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/semantic/ClassDefType.hpp -------------------------------------------------------------------------------- /include/semantic/FunctionDefType.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/semantic/FunctionDefType.hpp -------------------------------------------------------------------------------- /include/semantic/SymbolTable.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/semantic/SymbolTable.hpp -------------------------------------------------------------------------------- /include/semantic/SymbolType.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/semantic/SymbolType.hpp -------------------------------------------------------------------------------- /include/semantic/ValueType.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/semantic/ValueType.hpp -------------------------------------------------------------------------------- /include/semantic/chocopy_semant.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/semantic/chocopy_semant.hpp -------------------------------------------------------------------------------- /include/win_extra/FlexLexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/include/win_extra/FlexLexer.h -------------------------------------------------------------------------------- /src/cgen/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/CMakeLists.txt -------------------------------------------------------------------------------- /src/cgen/chocopy_cgen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/chocopy_cgen.cpp -------------------------------------------------------------------------------- /src/cgen/stdlib/$input.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/$input.s -------------------------------------------------------------------------------- /src/cgen/stdlib/$input_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/$input_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/$len.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/$len.s -------------------------------------------------------------------------------- /src/cgen/stdlib/$object.__init__.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/$object.__init__.s -------------------------------------------------------------------------------- /src/cgen/stdlib/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/CMakeLists.txt -------------------------------------------------------------------------------- /src/cgen/stdlib/abort.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/abort.s -------------------------------------------------------------------------------- /src/cgen/stdlib/abort_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/abort_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/accend.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/accend.s -------------------------------------------------------------------------------- /src/cgen/stdlib/accstart.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/accstart.s -------------------------------------------------------------------------------- /src/cgen/stdlib/alloc.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/alloc.s -------------------------------------------------------------------------------- /src/cgen/stdlib/alloc2.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/alloc2.s -------------------------------------------------------------------------------- /src/cgen/stdlib/alloc2_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/alloc2_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/chocopy_stdlib.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/chocopy_stdlib.S -------------------------------------------------------------------------------- /src/cgen/stdlib/chocopy_stdlib.o: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/cgen/stdlib/concat.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/concat.s -------------------------------------------------------------------------------- /src/cgen/stdlib/concat_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/concat_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/conslist.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/conslist.s -------------------------------------------------------------------------------- /src/cgen/stdlib/conslist_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/conslist_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/debug.c -------------------------------------------------------------------------------- /src/cgen/stdlib/debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/debug.h -------------------------------------------------------------------------------- /src/cgen/stdlib/error.Div.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/error.Div.s -------------------------------------------------------------------------------- /src/cgen/stdlib/error.None.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/error.None.s -------------------------------------------------------------------------------- /src/cgen/stdlib/error.OOB.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/error.OOB.s -------------------------------------------------------------------------------- /src/cgen/stdlib/heap.init.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/heap.init.s -------------------------------------------------------------------------------- /src/cgen/stdlib/heap.init_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/heap.init_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/initchars.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/initchars.s -------------------------------------------------------------------------------- /src/cgen/stdlib/len_12.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/len_12.s -------------------------------------------------------------------------------- /src/cgen/stdlib/len_13.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/len_13.s -------------------------------------------------------------------------------- /src/cgen/stdlib/makebool.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/makebool.s -------------------------------------------------------------------------------- /src/cgen/stdlib/makeint.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/makeint.s -------------------------------------------------------------------------------- /src/cgen/stdlib/makestr.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/makestr.s -------------------------------------------------------------------------------- /src/cgen/stdlib/myprintf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/myprintf.c -------------------------------------------------------------------------------- /src/cgen/stdlib/myscanf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/myscanf.c -------------------------------------------------------------------------------- /src/cgen/stdlib/noconv.s: -------------------------------------------------------------------------------- 1 | li a0, 0 2 | jr ra 3 | -------------------------------------------------------------------------------- /src/cgen/stdlib/nonlist.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/nonlist.s -------------------------------------------------------------------------------- /src/cgen/stdlib/preprocess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/preprocess -------------------------------------------------------------------------------- /src/cgen/stdlib/print.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_10.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_10.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_11.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_11.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_11_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_11_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_5.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_5.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_6.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_6.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_7.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_7.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_7_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_7_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_8.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_8.s -------------------------------------------------------------------------------- /src/cgen/stdlib/print_9.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/print_9.s -------------------------------------------------------------------------------- /src/cgen/stdlib/strcat.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/strcat.s -------------------------------------------------------------------------------- /src/cgen/stdlib/strcat_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/strcat_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/streql.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/streql.s -------------------------------------------------------------------------------- /src/cgen/stdlib/streql_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/streql_linux.s -------------------------------------------------------------------------------- /src/cgen/stdlib/strneql.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/strneql.s -------------------------------------------------------------------------------- /src/cgen/stdlib/strneql_linux.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/cgen/stdlib/strneql_linux.s -------------------------------------------------------------------------------- /src/ir-optimizer/BasicBlock.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/BasicBlock.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/CMakeLists.txt -------------------------------------------------------------------------------- /src/ir-optimizer/Class.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/Class.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/Constant.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/Constant.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/Function.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/Function.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/GlobalVariable.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/GlobalVariable.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/IRprinter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/IRprinter.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/Instruction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/Instruction.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/Module.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/Module.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/Type.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/Type.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/User.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/User.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/Value.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/Value.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/chocopy_lightir.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/chocopy_lightir.cpp -------------------------------------------------------------------------------- /src/ir-optimizer/chocopy_optimization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/ir-optimizer/chocopy_optimization.cpp -------------------------------------------------------------------------------- /src/parser/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/parser/CMakeLists.txt -------------------------------------------------------------------------------- /src/parser/chocopy.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/parser/chocopy.l -------------------------------------------------------------------------------- /src/parser/chocopy.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/parser/chocopy.y -------------------------------------------------------------------------------- /src/parser/chocopy_ast.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/parser/chocopy_ast.cpp -------------------------------------------------------------------------------- /src/parser/chocopy_logging.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/parser/chocopy_logging.cpp -------------------------------------------------------------------------------- /src/parser/chocopy_parse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/parser/chocopy_parse.cpp -------------------------------------------------------------------------------- /src/semantic/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/semantic/CMakeLists.txt -------------------------------------------------------------------------------- /src/semantic/chocopy_semant.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/src/semantic/chocopy_semant.cpp -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/README.md -------------------------------------------------------------------------------- /tests/duipai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/duipai.py -------------------------------------------------------------------------------- /tests/grammar.g4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/grammar.g4 -------------------------------------------------------------------------------- /tests/indent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/indent.py -------------------------------------------------------------------------------- /tests/pa1/sample/bad_assign_expr1.py: -------------------------------------------------------------------------------- 1 | x = (y = 2) 2 | -------------------------------------------------------------------------------- /tests/pa1/sample/bad_assign_expr1.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_assign_expr1.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/bad_assign_expr2.py: -------------------------------------------------------------------------------- 1 | print(x = 1) 2 | -------------------------------------------------------------------------------- /tests/pa1/sample/bad_assign_expr2.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_assign_expr2.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/bad_func_def.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_func_def.py -------------------------------------------------------------------------------- /tests/pa1/sample/bad_func_def.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_func_def.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/bad_func_def.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_func_def.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/bad_indentation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_indentation.py -------------------------------------------------------------------------------- /tests/pa1/sample/bad_indentation.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_indentation.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/bad_stmt.py: -------------------------------------------------------------------------------- 1 | 1 + 2 2 | 3 == 4 or (not False && True) 3 | 5 + 6 4 | 7 << 8 5 | -------------------------------------------------------------------------------- /tests/pa1/sample/bad_stmt.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_stmt.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/bad_stmt.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/bad_stmt.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/class_attr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_attr.py -------------------------------------------------------------------------------- /tests/pa1/sample/class_attr.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_attr.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/class_attr.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_attr.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/class_attr_get.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_attr_get.py -------------------------------------------------------------------------------- /tests/pa1/sample/class_attr_get.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_attr_get.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/class_attr_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_attr_set.py -------------------------------------------------------------------------------- /tests/pa1/sample/class_attr_set.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_attr_set.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/class_constructor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_constructor.py -------------------------------------------------------------------------------- /tests/pa1/sample/class_constructor.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_constructor.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/class_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_method.py -------------------------------------------------------------------------------- /tests/pa1/sample/class_method.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_method.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/class_method.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/class_method.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/coverage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/coverage.py -------------------------------------------------------------------------------- /tests/pa1/sample/coverage.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/coverage.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/coverage.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/coverage.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/def_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func.py -------------------------------------------------------------------------------- /tests/pa1/sample/def_func.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/def_func.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_args.py -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_args.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_args.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_args.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_args.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_global.py -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_global.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_global.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_nested.py -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_nested.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_nested.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_nonlocal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_nonlocal.py -------------------------------------------------------------------------------- /tests/pa1/sample/def_func_nonlocal.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/def_func_nonlocal.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/expr_if.py: -------------------------------------------------------------------------------- 1 | 3 if 1 > 2 else 4 2 | -------------------------------------------------------------------------------- /tests/pa1/sample/expr_if.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_if.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/expr_if.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_if.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/expr_if_chained.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_if_chained.py -------------------------------------------------------------------------------- /tests/pa1/sample/expr_if_chained.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_if_chained.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/expr_index.py: -------------------------------------------------------------------------------- 1 | a + b[i][j] 2 | -------------------------------------------------------------------------------- /tests/pa1/sample/expr_index.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_index.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/expr_index.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_index.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/expr_plus.py: -------------------------------------------------------------------------------- 1 | 1 + 2 + 3 2 | -------------------------------------------------------------------------------- /tests/pa1/sample/expr_plus.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_plus.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/expr_plus.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_plus.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/expr_unary.py: -------------------------------------------------------------------------------- 1 | -1 2 | -------------------------------------------------------------------------------- /tests/pa1/sample/expr_unary.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_unary.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/expr_unary.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/expr_unary.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/global.py -------------------------------------------------------------------------------- /tests/pa1/sample/global.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/global.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/global.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/global.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/literals.py: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | 1 4 | None 5 | "This is a string" 6 | [1, 2, 3] 7 | 8 | -------------------------------------------------------------------------------- /tests/pa1/sample/literals.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/literals.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/literals.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/literals.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_call.py: -------------------------------------------------------------------------------- 1 | print(1) 2 | -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_call.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_call.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_call.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_call.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_for.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_for.py -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_for.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_for.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_for.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_for.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_if.py: -------------------------------------------------------------------------------- 1 | if True: 2 | False 3 | 4 | -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_if.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_if.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_if.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_if.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_if_elif.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_if_elif.py -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_if_elif.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_if_elif.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_if_elif.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_if_elif.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_if_elif_else.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_if_elif_else.py -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_if_elif_else.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_if_elif_else.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_ifelse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_ifelse.py -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_ifelse.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_ifelse.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_ifelse.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_ifelse.py.ast.bak -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_list_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_list_assign.py -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_list_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_list_assign.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_while.py: -------------------------------------------------------------------------------- 1 | while True: 2 | pass 3 | 4 | -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_while.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_while.py.ast -------------------------------------------------------------------------------- /tests/pa1/sample/stmt_while.py.ast.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa1/sample/stmt_while.py.ast.bak -------------------------------------------------------------------------------- /tests/pa2/sample/ast_coverage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/ast_coverage.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_class_attr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_class_attr.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_class_attr_type.py: -------------------------------------------------------------------------------- 1 | class A(object): 2 | x:int = True 3 | 4 | A() 5 | -------------------------------------------------------------------------------- /tests/pa2/sample/bad_class_init_return.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_class_init_return.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_class_member_expr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_class_member_expr.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_class_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_class_method.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_class_super.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_class_super.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_concat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_concat.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_concat.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_concat.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/bad_duplicate_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_duplicate_class.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_duplicate_global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_duplicate_global.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_duplicate_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_duplicate_local.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_expr_binary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_expr_binary.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_expr_unary.py: -------------------------------------------------------------------------------- 1 | not "Bad" 2 | -True 3 | -None 4 | not [] 5 | -------------------------------------------------------------------------------- /tests/pa2/sample/bad_func_def_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_func_def_call.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_func_def_return.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_func_def_return.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_list_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_list_assign.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_list_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_list_index.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_local_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_local_assign.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_none_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_none_assign.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_nonlocal_global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_nonlocal_global.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_return_missing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_return_missing.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_return_top.py: -------------------------------------------------------------------------------- 1 | x:int = 0 2 | 3 | return x 4 | -------------------------------------------------------------------------------- /tests/pa2/sample/bad_shadow_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_shadow_local.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_shadow_local_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_shadow_local_2.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_strings.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_strings.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_strings.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/bad_type_annotation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_type_annotation.py -------------------------------------------------------------------------------- /tests/pa2/sample/bad_type_id.py: -------------------------------------------------------------------------------- 1 | x - 1 2 | -------------------------------------------------------------------------------- /tests/pa2/sample/bad_type_id.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_type_id.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/bad_var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/bad_var_assign.py -------------------------------------------------------------------------------- /tests/pa2/sample/class_def_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/class_def_assign.py -------------------------------------------------------------------------------- /tests/pa2/sample/class_def_attr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/class_def_attr.py -------------------------------------------------------------------------------- /tests/pa2/sample/class_def_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/class_def_init.py -------------------------------------------------------------------------------- /tests/pa2/sample/class_def_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/class_def_methods.py -------------------------------------------------------------------------------- /tests/pa2/sample/decl_global_forward.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/decl_global_forward.py -------------------------------------------------------------------------------- /tests/pa2/sample/decl_nonlocal_forward.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/decl_nonlocal_forward.py -------------------------------------------------------------------------------- /tests/pa2/sample/expr_binary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_binary.py -------------------------------------------------------------------------------- /tests/pa2/sample/expr_binary.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_binary.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/expr_concat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_concat.py -------------------------------------------------------------------------------- /tests/pa2/sample/expr_concat.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_concat.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/expr_id.py: -------------------------------------------------------------------------------- 1 | x:int = 1 2 | 3 | x - 1 4 | -------------------------------------------------------------------------------- /tests/pa2/sample/expr_id.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_id.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/expr_int.py: -------------------------------------------------------------------------------- 1 | 6 * 9 2 | -------------------------------------------------------------------------------- /tests/pa2/sample/expr_int.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_int.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/expr_list_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_list_index.py -------------------------------------------------------------------------------- /tests/pa2/sample/expr_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_lists.py -------------------------------------------------------------------------------- /tests/pa2/sample/expr_lists.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_lists.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/expr_unary.py: -------------------------------------------------------------------------------- 1 | -1 2 | not False 3 | -------------------------------------------------------------------------------- /tests/pa2/sample/expr_unary.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_unary.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/expr_var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/expr_var_assign.py -------------------------------------------------------------------------------- /tests/pa2/sample/func_def_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/func_def_call.py -------------------------------------------------------------------------------- /tests/pa2/sample/stmt_for_lists.py: -------------------------------------------------------------------------------- 1 | x:int = 0 2 | 3 | for x in [1, 2, 3]: 4 | x + 1 5 | -------------------------------------------------------------------------------- /tests/pa2/sample/stmt_for_strings.py: -------------------------------------------------------------------------------- 1 | s:str = "Hello" 2 | 3 | for s in s: 4 | s[0] 5 | -------------------------------------------------------------------------------- /tests/pa2/sample/stmt_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/stmt_if.py -------------------------------------------------------------------------------- /tests/pa2/sample/stmt_if.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/stmt_if.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/stmt_list_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/stmt_list_assign.py -------------------------------------------------------------------------------- /tests/pa2/sample/stmt_var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/stmt_var_assign.py -------------------------------------------------------------------------------- /tests/pa2/sample/stmt_while.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/stmt_while.py -------------------------------------------------------------------------------- /tests/pa2/sample/stmt_while.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/stmt_while.py.out.typed -------------------------------------------------------------------------------- /tests/pa2/sample/strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/strings.py -------------------------------------------------------------------------------- /tests/pa2/sample/strings.py.out.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa2/sample/strings.py.out.typed -------------------------------------------------------------------------------- /tests/pa3/bonus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/bonus.py -------------------------------------------------------------------------------- /tests/pa3/pass/activevar1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/activevar1.json -------------------------------------------------------------------------------- /tests/pa3/pass/activevar1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/activevar1.py -------------------------------------------------------------------------------- /tests/pa3/pass/activevar2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/activevar2.json -------------------------------------------------------------------------------- /tests/pa3/pass/activevar2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/activevar2.py -------------------------------------------------------------------------------- /tests/pa3/pass/activevar3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/activevar3.json -------------------------------------------------------------------------------- /tests/pa3/pass/activevar3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/activevar3.py -------------------------------------------------------------------------------- /tests/pa3/pass/activevar4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/activevar4.json -------------------------------------------------------------------------------- /tests/pa3/pass/activevar4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/activevar4.py -------------------------------------------------------------------------------- /tests/pa3/pass/common_subexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/common_subexpr.py -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate1.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/const_propagate1.ll -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/const_propagate1.py -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate1.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1156 -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate2.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/const_propagate2.ll -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/const_propagate2.py -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate2.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 711082625 -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate3.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/const_propagate3.ll -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/const_propagate3.py -------------------------------------------------------------------------------- /tests/pa3/pass/const_propagate3.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 0 2 | 40320 3 | 362880 4 | 1814400 5 | -------------------------------------------------------------------------------- /tests/pa3/pass/constant_fold.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/constant_fold.py -------------------------------------------------------------------------------- /tests/pa3/pass/funcinline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/funcinline.py -------------------------------------------------------------------------------- /tests/pa3/pass/loopfind.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopfind.py -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist1.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopinv_hoist1.ll -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopinv_hoist1.py -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist1.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 0 -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist2.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopinv_hoist2.ll -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopinv_hoist2.py -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist2.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist3.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopinv_hoist3.ll -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopinv_hoist3.py -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist3.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist4.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopinv_hoist4.ll -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/loopinv_hoist4.py -------------------------------------------------------------------------------- /tests/pa3/pass/loopinv_hoist4.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/pa3/pass/printstr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/printstr.py -------------------------------------------------------------------------------- /tests/pa3/pass/vectorize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/vectorize.py -------------------------------------------------------------------------------- /tests/pa3/pass/vectorize1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/pass/vectorize1.py -------------------------------------------------------------------------------- /tests/pa3/sample/call: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call -------------------------------------------------------------------------------- /tests/pa3/sample/call.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call.ll -------------------------------------------------------------------------------- /tests/pa3/sample/call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call.py -------------------------------------------------------------------------------- /tests/pa3/sample/call.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/call.py.typed.ll.result: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call.py.typed.ll.result -------------------------------------------------------------------------------- /tests/pa3/sample/call.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call.s -------------------------------------------------------------------------------- /tests/pa3/sample/call_with_args: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call_with_args -------------------------------------------------------------------------------- /tests/pa3/sample/call_with_args.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call_with_args.ll -------------------------------------------------------------------------------- /tests/pa3/sample/call_with_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call_with_args.py -------------------------------------------------------------------------------- /tests/pa3/sample/call_with_args.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call_with_args.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/call_with_args.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/call_with_args.s -------------------------------------------------------------------------------- /tests/pa3/sample/error_div_zero: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_div_zero -------------------------------------------------------------------------------- /tests/pa3/sample/error_div_zero.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_div_zero.ll -------------------------------------------------------------------------------- /tests/pa3/sample/error_div_zero.py: -------------------------------------------------------------------------------- 1 | print(42 // 0) 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/error_div_zero.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_div_zero.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/error_div_zero.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Division by zero 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/error_div_zero.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_div_zero.s -------------------------------------------------------------------------------- /tests/pa3/sample/error_invalid_print: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_invalid_print -------------------------------------------------------------------------------- /tests/pa3/sample/error_invalid_print.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_invalid_print.ll -------------------------------------------------------------------------------- /tests/pa3/sample/error_invalid_print.py: -------------------------------------------------------------------------------- 1 | print(None) 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/error_invalid_print.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Invalid argument 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/error_invalid_print.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_invalid_print.s -------------------------------------------------------------------------------- /tests/pa3/sample/error_mod_zero: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_mod_zero -------------------------------------------------------------------------------- /tests/pa3/sample/error_mod_zero.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_mod_zero.ll -------------------------------------------------------------------------------- /tests/pa3/sample/error_mod_zero.py: -------------------------------------------------------------------------------- 1 | print(42 % 0) 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/error_mod_zero.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_mod_zero.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/error_mod_zero.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Division by zero 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/error_mod_zero.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/error_mod_zero.s -------------------------------------------------------------------------------- /tests/pa3/sample/expr_if: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/expr_if -------------------------------------------------------------------------------- /tests/pa3/sample/expr_if.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/expr_if.ll -------------------------------------------------------------------------------- /tests/pa3/sample/expr_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/expr_if.py -------------------------------------------------------------------------------- /tests/pa3/sample/expr_if.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/expr_if.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/expr_if.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 3 2 | 4 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/expr_if.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/expr_if.s -------------------------------------------------------------------------------- /tests/pa3/sample/id_global: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_global -------------------------------------------------------------------------------- /tests/pa3/sample/id_global.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_global.ll -------------------------------------------------------------------------------- /tests/pa3/sample/id_global.py: -------------------------------------------------------------------------------- 1 | x:int = 42 2 | print(x) 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/id_global.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_global.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/id_global.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/id_global.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_global.s -------------------------------------------------------------------------------- /tests/pa3/sample/id_local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_local -------------------------------------------------------------------------------- /tests/pa3/sample/id_local.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_local.ll -------------------------------------------------------------------------------- /tests/pa3/sample/id_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_local.py -------------------------------------------------------------------------------- /tests/pa3/sample/id_local.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_local.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/id_local.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/id_local.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/id_local.s -------------------------------------------------------------------------------- /tests/pa3/sample/input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/input -------------------------------------------------------------------------------- /tests/pa3/sample/input.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/input.ll -------------------------------------------------------------------------------- /tests/pa3/sample/input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/input.py -------------------------------------------------------------------------------- /tests/pa3/sample/input.py.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/input.py.in -------------------------------------------------------------------------------- /tests/pa3/sample/input.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/input.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/input.py.typed.ll.result: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/input.py.typed.ll.result -------------------------------------------------------------------------------- /tests/pa3/sample/input.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/input.s -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/len_invalid_1 -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_1.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/len_invalid_1.ll -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_1.py: -------------------------------------------------------------------------------- 1 | x:[int] = None 2 | 3 | print(len(x)) 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_1.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Invalid argument 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_1.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/len_invalid_1.s -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/len_invalid_2 -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_2.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/len_invalid_2.ll -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_2.py: -------------------------------------------------------------------------------- 1 | x:int = 1 2 | 3 | print(len(x)) 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_2.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Invalid argument 2 | 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/len_invalid_2.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/len_invalid_2.s -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat.ll -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat.py -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat.s -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat_2 -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_2.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat_2.ll -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat_2.py -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_2.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_2.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat_2.s -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_none: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat_none -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_none.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat_none.ll -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat_none.py -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_none.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Operation on None 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_concat_none.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_concat_none.s -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_get_element -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_get_element.ll -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_get_element.py -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_get_element.s -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element_complex.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element_none: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_get_element_none -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element_none.py: -------------------------------------------------------------------------------- 1 | x:[int] = None 2 | 3 | print(x[0]) 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element_none.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Operation on None 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element_oob_1.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element_oob_2.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_get_element_oob_3.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_len: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len -------------------------------------------------------------------------------- /tests/pa3/sample/list_len.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len.ll -------------------------------------------------------------------------------- /tests/pa3/sample/list_len.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len.py -------------------------------------------------------------------------------- /tests/pa3/sample/list_len.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/list_len.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_len.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len.s -------------------------------------------------------------------------------- /tests/pa3/sample/list_len_empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len_empty -------------------------------------------------------------------------------- /tests/pa3/sample/list_len_empty.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len_empty.ll -------------------------------------------------------------------------------- /tests/pa3/sample/list_len_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len_empty.py -------------------------------------------------------------------------------- /tests/pa3/sample/list_len_empty.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_len_empty.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_len_empty.s -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_set_element -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_set_element.ll -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_set_element.py -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 4 2 | 5 3 | 6 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_set_element.s -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element_none: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/list_set_element_none -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element_none.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Operation on None 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element_oob_1.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element_oob_2.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/list_set_element_oob_3.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/literal_bool: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_bool -------------------------------------------------------------------------------- /tests/pa3/sample/literal_bool.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_bool.ll -------------------------------------------------------------------------------- /tests/pa3/sample/literal_bool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_bool.py -------------------------------------------------------------------------------- /tests/pa3/sample/literal_bool.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_bool.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/literal_bool.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/literal_bool.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_bool.s -------------------------------------------------------------------------------- /tests/pa3/sample/literal_int: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_int -------------------------------------------------------------------------------- /tests/pa3/sample/literal_int.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_int.ll -------------------------------------------------------------------------------- /tests/pa3/sample/literal_int.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_int.py -------------------------------------------------------------------------------- /tests/pa3/sample/literal_int.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_int.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/literal_int.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 42 2 | 65999 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/literal_int.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_int.s -------------------------------------------------------------------------------- /tests/pa3/sample/literal_str: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_str -------------------------------------------------------------------------------- /tests/pa3/sample/literal_str.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_str.ll -------------------------------------------------------------------------------- /tests/pa3/sample/literal_str.py: -------------------------------------------------------------------------------- 1 | print("Hello W") 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/literal_str.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_str.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/literal_str.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Hello W 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/literal_str.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/literal_str.s -------------------------------------------------------------------------------- /tests/pa3/sample/nested: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested -------------------------------------------------------------------------------- /tests/pa3/sample/nested.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested.ll -------------------------------------------------------------------------------- /tests/pa3/sample/nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested.py -------------------------------------------------------------------------------- /tests/pa3/sample/nested.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/nested.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/nested.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested.s -------------------------------------------------------------------------------- /tests/pa3/sample/nested2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested2 -------------------------------------------------------------------------------- /tests/pa3/sample/nested2.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested2.ll -------------------------------------------------------------------------------- /tests/pa3/sample/nested2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested2.py -------------------------------------------------------------------------------- /tests/pa3/sample/nested2.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/nested2.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/nested2.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_get: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_get -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_get.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_get.ll -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_get.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_get.py -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_get.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_get.s -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_get_none: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_get_none -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_get_none.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | 42 3 | Operation on None 4 | 5 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_set: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_set -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_set.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_set.ll -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_set.py -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_set.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | 1 3 | 1 4 | False 5 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_set.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_set.s -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_set_none: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_attr_set_none -------------------------------------------------------------------------------- /tests/pa3/sample/object_attr_set_none.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | 42 3 | Operation on None 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_init: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_init -------------------------------------------------------------------------------- /tests/pa3/sample/object_init.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_init.ll -------------------------------------------------------------------------------- /tests/pa3/sample/object_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_init.py -------------------------------------------------------------------------------- /tests/pa3/sample/object_init.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_init.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/object_init.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_init.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_init.s -------------------------------------------------------------------------------- /tests/pa3/sample/object_method: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method -------------------------------------------------------------------------------- /tests/pa3/sample/object_method.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method.ll -------------------------------------------------------------------------------- /tests/pa3/sample/object_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method.py -------------------------------------------------------------------------------- /tests/pa3/sample/object_method.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | 42 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_method.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method.s -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_complex_call.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | ... 3 | 1 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_nested: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method_nested -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_nested.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | 42 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_none: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method_none -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_none.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method_none.ll -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method_none.py -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_none.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | Operation on None 3 | 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_none.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/object_method_none.s -------------------------------------------------------------------------------- /tests/pa3/sample/object_method_override.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | B 2 | 1 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_add: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_add -------------------------------------------------------------------------------- /tests/pa3/sample/op_add.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_add.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_add.py: -------------------------------------------------------------------------------- 1 | print(1 + 100) 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_add.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_add.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_add.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 101 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_add.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_add.s -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_bool: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_bool -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_bool.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_bool.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_bool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_bool.py -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_bool.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_bool.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_bool.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_bool.s -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_int: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_int -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_int.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_int.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_int.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_int.py -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_int.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_int.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_cmp_int.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_cmp_int.s -------------------------------------------------------------------------------- /tests/pa3/sample/op_div_mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_div_mod -------------------------------------------------------------------------------- /tests/pa3/sample/op_div_mod.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_div_mod.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_div_mod.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_div_mod.py -------------------------------------------------------------------------------- /tests/pa3/sample/op_div_mod.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_div_mod.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_div_mod.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 4 2 | 6 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_div_mod.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_div_mod.s -------------------------------------------------------------------------------- /tests/pa3/sample/op_is: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_is -------------------------------------------------------------------------------- /tests/pa3/sample/op_is.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_is.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_is.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_is.py -------------------------------------------------------------------------------- /tests/pa3/sample/op_is.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_is.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_is.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_is.s -------------------------------------------------------------------------------- /tests/pa3/sample/op_logical: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_logical -------------------------------------------------------------------------------- /tests/pa3/sample/op_logical.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_logical.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_logical.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_logical.py -------------------------------------------------------------------------------- /tests/pa3/sample/op_logical.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_logical.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_logical.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_logical.s -------------------------------------------------------------------------------- /tests/pa3/sample/op_mul: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_mul -------------------------------------------------------------------------------- /tests/pa3/sample/op_mul.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_mul.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_mul.py: -------------------------------------------------------------------------------- 1 | print(6*9*2) 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_mul.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_mul.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_mul.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 108 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_mul.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_mul.s -------------------------------------------------------------------------------- /tests/pa3/sample/op_negate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_negate -------------------------------------------------------------------------------- /tests/pa3/sample/op_negate.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_negate.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_negate.py: -------------------------------------------------------------------------------- 1 | x:int = 42 2 | print(-x) 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_negate.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_negate.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_negate.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | -42 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_negate.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_negate.s -------------------------------------------------------------------------------- /tests/pa3/sample/op_sub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_sub -------------------------------------------------------------------------------- /tests/pa3/sample/op_sub.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_sub.ll -------------------------------------------------------------------------------- /tests/pa3/sample/op_sub.py: -------------------------------------------------------------------------------- 1 | print(1 - 100) 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_sub.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_sub.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/op_sub.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | -99 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/op_sub.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/op_sub.s -------------------------------------------------------------------------------- /tests/pa3/sample/pass: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/pass -------------------------------------------------------------------------------- /tests/pa3/sample/pass.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/pass.ll -------------------------------------------------------------------------------- /tests/pa3/sample/pass.py: -------------------------------------------------------------------------------- 1 | pass 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/pass.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/pass.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/pass.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/pa3/sample/pass.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/pass.s -------------------------------------------------------------------------------- /tests/pa3/sample/predef_constructors: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/predef_constructors -------------------------------------------------------------------------------- /tests/pa3/sample/predef_constructors.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/predef_constructors.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_empty -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_empty.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_empty.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_empty.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_eval: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_eval -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_eval.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_eval.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_eval.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_eval.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_eval.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_eval.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_modify: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_modify -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_modify.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_nested: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_nested -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_none: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_none -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_none.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_none.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_none.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_none.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Operation on None 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_none.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_none.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_nonlocal.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_return: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_list_return -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_list_return.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 10 2 | 20 3 | 30 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_empty -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_empty.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_empty.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_empty.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_empty.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_empty.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_empty.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_eval: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_eval -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_eval.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_eval.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_eval.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_eval.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_eval.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_eval.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_nested: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_nested -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_nested.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_nested.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_same_var: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_for_str_same_var -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_for_str_same_var.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | x 2 | X 3 | x 4 | x -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_if: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_if -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_if.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_if.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_if.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_if.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_if.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_if.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Yes 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_if.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_if.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_return_early: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_return_early -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_return_early.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_return_early.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_return_early.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_return_early.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_return_early.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_return_early.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_return_early.s -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_while: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_while -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_while.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_while.ll -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_while.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_while.py -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_while.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_while.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_while.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | -------------------------------------------------------------------------------- /tests/pa3/sample/stmt_while.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/stmt_while.s -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat.ll -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat.py -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat.s -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat_2 -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat_2.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat_2.ll -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat_2.py -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat_2.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat_2.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/str_cat_2.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cat_2.s -------------------------------------------------------------------------------- /tests/pa3/sample/str_cmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cmp -------------------------------------------------------------------------------- /tests/pa3/sample/str_cmp.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cmp.ll -------------------------------------------------------------------------------- /tests/pa3/sample/str_cmp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cmp.py -------------------------------------------------------------------------------- /tests/pa3/sample/str_cmp.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cmp.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/str_cmp.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_cmp.s -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_get_element -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_get_element.ll -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_get_element.py -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_get_element.s -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element_oob_1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_get_element_oob_1 -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element_oob_1.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element_oob_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_get_element_oob_2 -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element_oob_2.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | 3 | -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element_oob_3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_get_element_oob_3 -------------------------------------------------------------------------------- /tests/pa3/sample/str_get_element_oob_3.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/str_len: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_len -------------------------------------------------------------------------------- /tests/pa3/sample/str_len.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_len.ll -------------------------------------------------------------------------------- /tests/pa3/sample/str_len.py: -------------------------------------------------------------------------------- 1 | print(len("ChocoPy")) 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/str_len.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_len.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/str_len.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/str_len.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/str_len.s -------------------------------------------------------------------------------- /tests/pa3/sample/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/test -------------------------------------------------------------------------------- /tests/pa3/sample/test.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/test.ll -------------------------------------------------------------------------------- /tests/pa3/sample/test.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/test.s -------------------------------------------------------------------------------- /tests/pa3/sample/var_assign: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/var_assign -------------------------------------------------------------------------------- /tests/pa3/sample/var_assign.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/var_assign.ll -------------------------------------------------------------------------------- /tests/pa3/sample/var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/var_assign.py -------------------------------------------------------------------------------- /tests/pa3/sample/var_assign.py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/var_assign.py.typed -------------------------------------------------------------------------------- /tests/pa3/sample/var_assign.py.typed.ll.result: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/pa3/sample/var_assign.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa3/sample/var_assign.s -------------------------------------------------------------------------------- /tests/pa4/benchmarks/exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/exp.py -------------------------------------------------------------------------------- /tests/pa4/benchmarks/exp.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/exp.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/benchmarks/gemm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/gemm.py -------------------------------------------------------------------------------- /tests/pa4/benchmarks/gen_gemm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/gen_gemm.py -------------------------------------------------------------------------------- /tests/pa4/benchmarks/prime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/prime.py -------------------------------------------------------------------------------- /tests/pa4/benchmarks/sieve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/sieve.py -------------------------------------------------------------------------------- /tests/pa4/benchmarks/stdlib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/stdlib.py -------------------------------------------------------------------------------- /tests/pa4/benchmarks/tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/tree.py -------------------------------------------------------------------------------- /tests/pa4/benchmarks/tree.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/benchmarks/tree.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/benchmarks/tree.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 175 2 | 15 3 | 23 4 | 42 5 | -------------------------------------------------------------------------------- /tests/pa4/fuzz/1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/1.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/1.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | a 2 | s 3 | d 4 | f 5 | -------------------------------------------------------------------------------- /tests/pa4/fuzz/10.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/10.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/10.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Sorted array is: 2 | 5 3 | 6 4 | 11 5 | 12 6 | 13 7 | -------------------------------------------------------------------------------- /tests/pa4/fuzz/2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/2.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/2.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | timeout -------------------------------------------------------------------------------- /tests/pa4/fuzz/3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/3.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/3.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | True -------------------------------------------------------------------------------- /tests/pa4/fuzz/4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/4.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/4.py.ast.typed.s.result: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/4.py.ast.typed.s.result -------------------------------------------------------------------------------- /tests/pa4/fuzz/5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/5.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/5.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Invalid argument -------------------------------------------------------------------------------- /tests/pa4/fuzz/6.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/6.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/6.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | g 2 | e 3 | d 4 | c 5 | b 6 | a -------------------------------------------------------------------------------- /tests/pa4/fuzz/7.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/7.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/7.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | g -------------------------------------------------------------------------------- /tests/pa4/fuzz/8.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/8.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/8.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | hello 2 | -------------------------------------------------------------------------------- /tests/pa4/fuzz/9.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/fuzz/9.py -------------------------------------------------------------------------------- /tests/pa4/fuzz/9.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | -80 -------------------------------------------------------------------------------- /tests/pa4/sample/call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/call.py -------------------------------------------------------------------------------- /tests/pa4/sample/call.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/call.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/call_with_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/call_with_args.py -------------------------------------------------------------------------------- /tests/pa4/sample/error_div_zero.py: -------------------------------------------------------------------------------- 1 | print(42 // 0) 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/error_div_zero.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Division by zero 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/error_invalid_print.py: -------------------------------------------------------------------------------- 1 | print(None) 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/error_invalid_print.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Invalid argument 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/error_mod_zero.py: -------------------------------------------------------------------------------- 1 | print(42 % 0) 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/error_mod_zero.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Division by zero 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/expr_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/expr_if.py -------------------------------------------------------------------------------- /tests/pa4/sample/expr_if.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/expr_if.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/expr_if.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 3 2 | 4 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/id_global.py: -------------------------------------------------------------------------------- 1 | x:int = 42 2 | print(x) 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/id_global.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/id_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/id_local.py -------------------------------------------------------------------------------- /tests/pa4/sample/id_local.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/id_local.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/id_local.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/input.py -------------------------------------------------------------------------------- /tests/pa4/sample/input.py.ast.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/input.py.ast.in -------------------------------------------------------------------------------- /tests/pa4/sample/input.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/input.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/input.py.ast.typed.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/input.py.ast.typed.in -------------------------------------------------------------------------------- /tests/pa4/sample/input.py.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/input.py.in -------------------------------------------------------------------------------- /tests/pa4/sample/len_invalid_1.py: -------------------------------------------------------------------------------- 1 | x:[int] = None 2 | 3 | print(len(x)) 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/len_invalid_1.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Invalid argument 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/len_invalid_2.py: -------------------------------------------------------------------------------- 1 | x:int = 1 2 | 3 | print(len(x)) 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/len_invalid_2.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Invalid argument 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_concat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/list_concat.py -------------------------------------------------------------------------------- /tests/pa4/sample/list_concat.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_concat_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/list_concat_2.py -------------------------------------------------------------------------------- /tests/pa4/sample/list_concat_2.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_concat_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/list_concat_none.py -------------------------------------------------------------------------------- /tests/pa4/sample/list_concat_none.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Operation on None 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_get_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/list_get_element.py -------------------------------------------------------------------------------- /tests/pa4/sample/list_get_element.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_get_element_complex.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_get_element_none.py: -------------------------------------------------------------------------------- 1 | x:[int] = None 2 | 3 | print(x[0]) 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_get_element_none.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Operation on None 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_get_element_oob_1.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_get_element_oob_2.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_get_element_oob_3.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_len.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/list_len.py -------------------------------------------------------------------------------- /tests/pa4/sample/list_len.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/list_len.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/list_len.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_len_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/list_len_empty.py -------------------------------------------------------------------------------- /tests/pa4/sample/list_len_empty.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_set_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/list_set_element.py -------------------------------------------------------------------------------- /tests/pa4/sample/list_set_element.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 4 2 | 5 3 | 6 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_set_element_none.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Operation on None 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_set_element_oob_1.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_set_element_oob_2.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/list_set_element_oob_3.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/literal_bool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/literal_bool.py -------------------------------------------------------------------------------- /tests/pa4/sample/literal_bool.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/literal_int.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/literal_int.py -------------------------------------------------------------------------------- /tests/pa4/sample/literal_int.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 42 2 | 65999 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/literal_str.py: -------------------------------------------------------------------------------- 1 | print("Hello World") 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/literal_str.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Hello World 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/nested.py -------------------------------------------------------------------------------- /tests/pa4/sample/nested.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/nested.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/nested.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/nested2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/nested2.py -------------------------------------------------------------------------------- /tests/pa4/sample/nested2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/nested2.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/nested2.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_attr_get.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/object_attr_get.py -------------------------------------------------------------------------------- /tests/pa4/sample/object_attr_get_none.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | 42 3 | Operation on None 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_attr_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/object_attr_set.py -------------------------------------------------------------------------------- /tests/pa4/sample/object_attr_set.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | 1 3 | 1 4 | False 5 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_attr_set_none.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | 42 3 | Operation on None 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/object_init.py -------------------------------------------------------------------------------- /tests/pa4/sample/object_init.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/object_method.py -------------------------------------------------------------------------------- /tests/pa4/sample/object_method.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | 42 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_method_complex_call.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | ... 3 | 1 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_method_nested.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | 42 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_method_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/object_method_none.py -------------------------------------------------------------------------------- /tests/pa4/sample/object_method_none.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | Operation on None 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/object_method_override.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | B 2 | 1 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_add.py: -------------------------------------------------------------------------------- 1 | print(1 + 100) 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_add.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_add.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/op_add.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 101 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_cmp_bool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_cmp_bool.py -------------------------------------------------------------------------------- /tests/pa4/sample/op_cmp_int.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_cmp_int.py -------------------------------------------------------------------------------- /tests/pa4/sample/op_div_mod.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_div_mod.py -------------------------------------------------------------------------------- /tests/pa4/sample/op_div_mod.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 4 2 | 6 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_is.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_is.py -------------------------------------------------------------------------------- /tests/pa4/sample/op_is.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_is.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/op_logical.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_logical.py -------------------------------------------------------------------------------- /tests/pa4/sample/op_mul.py: -------------------------------------------------------------------------------- 1 | print(6*9*2) 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_mul.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_mul.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/op_mul.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 108 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_negate.py: -------------------------------------------------------------------------------- 1 | x:int = 42 2 | print(-x) 3 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_negate.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | -42 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_sub.py: -------------------------------------------------------------------------------- 1 | print(1 - 100) 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/op_sub.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/op_sub.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/op_sub.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | -99 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/pass.py: -------------------------------------------------------------------------------- 1 | pass 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/pass.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/pass.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/pass.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_for_list.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list_empty.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_for_list_eval.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list_eval.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list_modify.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_for_list_none.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list_none.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Operation on None 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list_nonlocal.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_list_return.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 10 2 | 20 3 | 30 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_str.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_for_str.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_str.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_str_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_for_str_empty.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_str_empty.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_str_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_for_str_eval.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_str_eval.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_str_same_var.py: -------------------------------------------------------------------------------- 1 | x:str = "xXx" 2 | 3 | for x in x: 4 | print(x) 5 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_for_str_same_var.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | x 2 | X 3 | x 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_if.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_if.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_if.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_if.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Yes 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_return_early.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_return_early.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_return_early.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_while.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/stmt_while.py -------------------------------------------------------------------------------- /tests/pa4/sample/stmt_while.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | -------------------------------------------------------------------------------- /tests/pa4/sample/str_cat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/str_cat.py -------------------------------------------------------------------------------- /tests/pa4/sample/str_cat.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/str_cat.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/str_cat_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/str_cat_2.py -------------------------------------------------------------------------------- /tests/pa4/sample/str_cmp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/str_cmp.py -------------------------------------------------------------------------------- /tests/pa4/sample/str_cmp.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/str_cmp.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/str_get_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/str_get_element.py -------------------------------------------------------------------------------- /tests/pa4/sample/str_get_element.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/pa4/sample/str_get_element_oob_1.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/str_get_element_oob_2.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/str_get_element_oob_3.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | Index out of bounds 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/str_len.py: -------------------------------------------------------------------------------- 1 | print(len("ChocoPy")) 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/str_len.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/str_len.py.ast.typed -------------------------------------------------------------------------------- /tests/pa4/sample/str_len.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /tests/pa4/sample/var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/pa4/sample/var_assign.py -------------------------------------------------------------------------------- /tests/pa4/sample/var_assign.py.ast.typed.s.result: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/requirements.txt: -------------------------------------------------------------------------------- 1 | grammarinator -------------------------------------------------------------------------------- /tests/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tests/run.sh -------------------------------------------------------------------------------- /tools/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tools/CMakeLists.txt -------------------------------------------------------------------------------- /tools/cjson_formatter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/tools/cjson_formatter.cpp -------------------------------------------------------------------------------- /web/.gitignore: -------------------------------------------------------------------------------- 1 | .tmp* 2 | -------------------------------------------------------------------------------- /web/README.md: -------------------------------------------------------------------------------- 1 | # Usage 2 | `python3 ./WebCompiler.py 8000` -------------------------------------------------------------------------------- /web/WebCompiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/WebCompiler.py -------------------------------------------------------------------------------- /web/chocopy-ref.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/chocopy-ref.jar -------------------------------------------------------------------------------- /web/css/ace.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/css/normalize.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/css/normalize.css -------------------------------------------------------------------------------- /web/css/sakura.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/css/sakura.css -------------------------------------------------------------------------------- /web/css/venus.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/css/venus.css -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/index.html -------------------------------------------------------------------------------- /web/js/ace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/js/ace.js -------------------------------------------------------------------------------- /web/js/codemirror.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/js/codemirror.js -------------------------------------------------------------------------------- /web/js/jquery-3.3.1.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/js/jquery-3.3.1.min.js -------------------------------------------------------------------------------- /web/js/mode-python.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/js/mode-python.js -------------------------------------------------------------------------------- /web/js/theme-github.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/js/theme-github.js -------------------------------------------------------------------------------- /web/reply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/reply.py -------------------------------------------------------------------------------- /web/target/assignment.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/target/assignment.jar -------------------------------------------------------------------------------- /web/target/chocopy-2.2-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/target/chocopy-2.2-SNAPSHOT.jar -------------------------------------------------------------------------------- /web/venus.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/venus.html -------------------------------------------------------------------------------- /web/venus.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chocopy-LLVM/chocopy-llvm/HEAD/web/venus.js --------------------------------------------------------------------------------