correction nom variable

This commit is contained in:
Rochas
2025-04-30 12:14:53 +02:00
8 changed files with 2 additions and 0 deletions

BIN
a.exe Normal file

Binary file not shown.

BIN
a.out Executable file

Binary file not shown.

View File

@@ -340,7 +340,9 @@ public class toLLVM_Visitor implements ProgramVisitor<SymTable,ProgramLLVMImp>,
String labelWhile = "while"+h.getNewIdLabel();
String labelDo = "do"+h.getNewIdLabel();
String labelDone = "done"+h.getNewIdLabel();
l.add(new BrLLVMImp(labelWhile));
l.add(new LabelLLVMImp(labelWhile));
InstrAndVal temp = instr.e().accept(this,h); //retourne les instructionz pour obtenir le résultat de l'expression ainsi que la variable contenant le résultat final
l.addAll(temp.instrs); //instructions

Binary file not shown.

BIN
tests/fragment1/while2 Executable file

Binary file not shown.

BIN
tests/testsAdvanced/carre Executable file

Binary file not shown.

BIN
tests/testsAdvanced/diverge Executable file

Binary file not shown.

Binary file not shown.