| 166 | | $op1 = "($op1)"; |
| 167 | | } |
| 168 | | $opstr = $this->parent->binops[$this->opc]; |
| 169 | | if ($op1 == '0' && $this->opc == XC_SUB) { |
| 170 | | return $opstr . str($this->op2, $indent); |
| 171 | | } |
| 172 | | return str($op1) . ' ' . $opstr . ' ' . str($this->op2, $indent); |
| | 168 | $op1 = "(" . str($op1, $indent) . ")"; |
| | 169 | } |
| | 170 | $op2 = foldToCode($this->op2, $indent); |
| | 171 | if (is_a($this->op2, 'Decompiler_Binop') && $this->op2->opc != $this->opc && substr($opstr, -1) != '=') { |
| | 172 | $op2 = "(" . str($op2, $indent) . ")"; |
| | 173 | } |
| | 174 | |
| | 175 | if (str($op1) == '0' && ($this->opc == XC_ADD || $this->opc == XC_SUB)) { |
| | 176 | return $opstr . str($op2, $indent); |
| | 177 | } |
| | 178 | |
| | 179 | return str($op1) . ' ' . $opstr . ' ' . str($op2); |