add brLLVM labelWhile

This commit is contained in:
Vu Tuan Minh
2025-04-30 12:09:32 +02:00
parent adb1858c2f
commit 44a1d9918f
7 changed files with 2 additions and 0 deletions

BIN
a.out Executable file

Binary file not shown.

View File

@@ -340,6 +340,8 @@ 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

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.