<commit_before>#include "m1_semcheck.h"


void 
check(struct M1_compiler *comp, struct m1_chunk *ast) {
	
}<commit_msg>add some code to check.c<commit_after>#include <stdio.h>
#include <stdlib.h>
#include "m1_semcheck.h"


static void
check_expr(M1_compiler *comp, m1_expression *chunk) {
	
}


static data_type
check_chunk(M1_compiler *comp, m1_chunk *chunk) {
	
	m1_expression *iter = chunk->block;
	
	while (iter != NULL) {
		check_expr(comp, iter);
		iter = iter->next;	
	}
	return chunk->rettype;
}

void 
check(M1_compiler *comp, m1_chunk *ast) {
	m1_chunk *iter = ast;
	
	while (iter != NULL) {
		check_chunk(comp, iter);
		iter = iter->next;	
	}	
}
{'fraction_non_alphanumeric': 0.13719512195121952, 'fraction_numerical': 0.018292682926829267, 'mean_word_length': 4.429752066115703, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2677645', 'n_tokens_mistral': 279, 'n_tokens_neox': 260, 'n_words': 58}