public void expressaoIf() {
        if (relacao.equals("menor")) {
            result += "SUB R" + reg + ", R" + reg + ", R" + (reg - 1) + "\n";
            result += "BLTZ R" + reg + ", .L" + (label) + "\n";
            reg++;
            result += "LD R" + reg + ", #false\n";
            result += "BRA .L" + (label + 1) + "\n";
            result += ".L" + label + ":\n";
            label++;
            result += "LD R" + reg + ", #true\n";
            result += ".L" + label + ":\n";
            label++;
        } else if (relacao.equals("maior")) {
            result += "SUB R" + reg + ", R" + reg + ", R" + (reg - 1) + "\n";
            result += "BGTZ R" + reg + ", .L" + (label) + "\n";
            reg++;
            result += "LD R" + reg + ", #false\n";
            result += "BRA .L" + (label + 1) + "\n";
            result += ".L" + label + ":\n";
            label++;
            result += "LD R" + reg + ", #true\n";
            result += ".L" + label + ":\n";
            label++;
        } else if (relacao.equals("maiorigual")) {
            result += "SUB R" + reg + ", R" + reg + ", R" + (reg - 1) + "\n";
            result += "BGEZ R" + reg + ", .L" + (label) + "\n";
            reg++;
            result += "LD R" + reg + ", #false\n";
            result += "BRA .L" + (label + 1) + "\n";
            result += ".L" + label + ":\n";
            label++;
            result += "LD R" + reg + ", #true\n";
            result += ".L" + label + ":\n";
            label++;
        } else if (relacao.equals("menorigual")) {
            result += "SUB R" + reg + ", R" + reg + ", R" + (reg - 1) + "\n";
            result += "BLEZ R" + reg + ", .L" + (label) + "\n";
            reg++;
            result += "LD R" + reg + ", #false\n";
            result += "BRA .L" + (label + 1) + "\n";
            result += ".L" + label + ":\n";
            label++;
            result += "LD R" + reg + ", #true\n";
            result += ".L" + label + ":\n";
            label++;
        } else if (relacao.equals("igual")) {
            result += "BEQ R" + (reg - 1) + ", R" + reg + ", .L" + (label)
                    + "\n";
            reg++;
            result += "LD R" + reg + ", #false\n";
            result += "BRA .L" + (label + 1) + "\n";
            result += ".L" + label + ":\n";
            label++;
            result += "LD R" + reg + ", #true\n";
            result += ".L" + label + ":\n";
        } else if (relacao.equals("diferente")) {
            result += "BNE R" + (reg - 1) + ", R" + reg + ", .L" + (label)
                    + "\n";
            reg++;
            result += "LD R" + reg + ", #false\n";
            result += "BRA .L" + (label + 1) + "\n";
            result += ".L" + label + ":\n";
            label++;
            result += "LD R" + reg + ", #true\n";
            result += ".L" + label + ":\n";
        } else if (relacao.equals("and")) {
            result += "AND R" + (reg - 1) + ", R" + reg + ", .L" + (label)
                    + "\n";
            reg++;
            result += "LD R" + reg + ", #false\n";
            result += "BRA .L" + (label + 1) + "\n";
            result += ".L" + label + ":\n";
            label++;
            result += "LD R" + reg + ", #true\n";
            result += ".L" + label + ":\n";
        } else if (relacao.equals("or")) {
            result += "OR R" + (reg - 1) + ", R" + reg + ", .L" + (label)
                    + "\n";
            reg++;
            result += "LD R" + reg + ", #false\n";
            result += "BRA .L" + (label + 1) + "\n";
            result += ".L" + label + ":\n";
            label++;
            result += "LD R" + reg + ", #true\n";
            result += ".L" + label + ":\n";
        }

    }