if (opcode==Opcode.RND)
return "Round("+left.name()+")";
String name=left.name()+opcode.toString();
- if (right!=null)
+ if (right!=null) {
name+=right.name();
+ name="("+name+")";
+ }
return name;
}
public void prettyPrint(PrettyPrinter pp) {
pp.output("(");
if (opcode == Opcode.NOT) {
- pp.output("!");
+ pp.output("!(");
left.prettyPrint(pp);
+ pp.output(")");
} else if (opcode == Opcode.NOP) {
left.prettyPrint(pp);
} else if (opcode == Opcode.RND) {