dump method
void
dump()
This function prints the three-address code to the console, for debugging purposes.
Implementation
void dump() {
print("CODE:");
tac.dump(code, lineNum);
print("\nVARS:");
if (variables == null) {
print(" NONE");
} else {
for (var entry in variables!.map.entries) {
final id = entry.key?.toStringWithVM(vm!);
final value = entry.value;
print("$id: ${value?.toStringWithVM(vm!)}");
}
}
print("\nTEMPS:");
if (temps == null) {
print(" NONE");
} else {
for (int i = 0; i < temps!.length; i++) {
print("_$i: ${temps![i]?.toStringWithVM(vm!)}");
}
}
}