public string Visit(CIL_ExceptionCond node) { string solve = ""; solve += $"\n\t la $a0, {node.Sms}\n"; int val; if (!int.TryParse(node.Cond, out val)) { solve += $"\t lw $t0, {context_function[node.Cond] } \n"; } else { solve += $"\t li $t0, { val} \n"; } if (!int.TryParse(node.Id, out val)) { solve += $"\t lw $t1, {context_function[node.Id] } \n"; } else { solve += $"\t li $t1, {val } \n"; } solve += $"\t beq $t0, $t1, exception\n"; return(solve); }
public string Visit(CIL_ExceptionCond node) { return(""); }