def test_invalid_block_function(): check_error(invalid_block_function, 4)
def test_implicit_root_has_attrs(): check_error(implicit_root_has_read, 2) check_error(implicit_root_has_write, 2) check_error(implicit_root_has_attrs, 2) check_error(implicit_root_has_predicate, 2) check_error(implicit_root_has_axes, 2)
def test_load_var(): check_error(load_var_multiple, 3)
def test_undefined_buffer(): check_error(undefined_buffer, 5)
def test_high_dim_store(): check_error(high_dim_store, 5)
def test_convert_slice_to_bufferload(): check_error(convert_slice_to_bufferload, 6)
def test_error_index_with_stop_slice(): check_error(error_index_with_stop, 6) check_error(error_bufferslice_index_with_stop, 8)
def test_error_remap_args(): check_error(error_remap_type, 4) check_error(error_remap_value, 4)
def test_invalid_block_axes(): check_error(invalid_block_axes, 5)
def test_allocate_with_buffers(): check_error(allocate_with_buffers, 2)
def test_inconsistent_binding(): check_error(inconsistent_binding_value, 3) check_error(inconsistent_binding_type, 3)
def test_no_body(): check_error(no_body, 3)
def test_tir_assert(): check_error(tir_assert, 2)
def test_return_not_allowed(): check_error(return_not_allowed, 2)
def test_duplicate_block_signature(): check_error(duplicate_reads, 7) check_error(duplicate_writes, 7) check_error(duplicate_predicate, 6) check_error(duplicate_annotations, 6) check_error(duplicate_init, 7) check_error(duplicate_axes, 5)
def test_duplicate_block_axes(): check_error(duplicate_block_axes, 5) check_error(duplicate_block_axes_remap, 4)
def test_opaque_access_during_complete(): check_error(opaque_access_during_complete, 1)
def test_miss_block_bind(): check_error(miss_block_bind_value, 4)
def test_error_index_type(): check_error(error_index_type, 6) check_error(error_bufferslice_index_type, 8)
def test_invalid_loop_var(): check_error(invalid_loop_var, 2)
def test_tvm_exception_catch(): # test catching c++ side exception check_error(special_stmt_except, 2) check_error(scope_handler_except, 2) check_error(intrin_except_unassign, 3) check_error(intrin_except_assign, 3)
def test_inconsistent_grid(): check_error(inconsistent_grid, 2)
def test_match_buffer_shape_mismatch(): check_error(buffer_shape_mismatch, 7)
def test_invalid_match_buffer_region(): check_error(invalid_match_buffer_region, 5)
def test_block_has_option_vars(): check_error(block_has_option_vars, 2)
def test_duplicate_buffer(): check_error(duplicate_buffer, 6)
def test_unsupported_stmt(): check_error(unsupported_stmt, 3)
def test_buffer_bind(): check_error(buffer_bind_missing_args, 2)
def test_store_var(): check_error(store_var_multiple, 3)
def test_invalid_for_function(): check_error(invalid_for_function, 4)