génération du fichier .ll sans passer par la sorti Print, pour controller le type d'encodage

This commit is contained in:
Rochas
2025-04-30 14:02:19 +02:00
17 changed files with 110 additions and 57 deletions

View File

@@ -1,34 +1,4 @@
PROTO INT add(a,b)
FUNC INT add(a,b) {
INT z
z := a+b
RETURN z
}
FUNC VOID affiche(x){
PRINT x
}
FUNC INT main(x,y) {
INT a,b,c,minh
x := 5
minh := x * y
b:=3
affiche(b)
c:=add(x,b)
PRINT "coucou, tu peux réparer le visitPrint dans LLVM stp","il manque virgule au milieu", c*5+b, x
PRINT "test",a
WHILE b - 1
DO{
b := b - 1
c := c + 1
}
DONE
IF c -1
THEN READ a ELSE READ b
FI
b:=c+1
RETURN 4 + 6 * 5 + 2 }
PROTO INT type(x,y)
INT a,b[10],c,d[11]
a:=1
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
tests/fragment2/call2 Executable file

Binary file not shown.

BIN
tests/fragment2/call3expr Executable file

Binary file not shown.

BIN
tests/fragment2/call4if Executable file

Binary file not shown.

BIN
tests/fragment2/proto2 Executable file

Binary file not shown.

BIN
tests/testsAdvanced/portee2 Executable file

Binary file not shown.