Commit pour merge

This commit is contained in:
Elies Tali 2021-05-10 14:23:33 +02:00
parent 75e9a6a8f3
commit f4085f7d19
2 changed files with 12 additions and 9 deletions

View file

@ -1,12 +1,15 @@
int fonction(int p){
int y = p*3;
return y;
int g(int o){
int j = o * 2;
return j;
}
int f(int p){
int y = p + 2;
return y - 5 + g(1);
}
int main(){
int a;
int c = fonction(3);
stop(3);
printf(c);
printf(c);
int a = 7;
int c = f(a);
}

View file

@ -34,7 +34,7 @@ Opérations possible :
int last_addr = 0;
int temp_addr = MAXADDR;
int taille_types[] = {-1, 4};
int taille_types[] = {-1, 1};
int profondeur = 0;
int last_temp_var_size;
const struct type_t integer = {INT, 0, 1};