Commit pour merge
This commit is contained in:
parent
75e9a6a8f3
commit
f4085f7d19
2 changed files with 12 additions and 9 deletions
|
@ -1,12 +1,15 @@
|
||||||
int fonction(int p){
|
int g(int o){
|
||||||
int y = p*3;
|
int j = o * 2;
|
||||||
return y;
|
return j;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int f(int p){
|
||||||
|
int y = p + 2;
|
||||||
|
return y - 5 + g(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
int a;
|
int a = 7;
|
||||||
int c = fonction(3);
|
int c = f(a);
|
||||||
stop(3);
|
|
||||||
printf(c);
|
|
||||||
printf(c);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ Opérations possible :
|
||||||
|
|
||||||
int last_addr = 0;
|
int last_addr = 0;
|
||||||
int temp_addr = MAXADDR;
|
int temp_addr = MAXADDR;
|
||||||
int taille_types[] = {-1, 4};
|
int taille_types[] = {-1, 1};
|
||||||
int profondeur = 0;
|
int profondeur = 0;
|
||||||
int last_temp_var_size;
|
int last_temp_var_size;
|
||||||
const struct type_t integer = {INT, 0, 1};
|
const struct type_t integer = {INT, 0, 1};
|
||||||
|
|
Loading…
Reference in a new issue