(self, a, b)
| 212 | class Div(BinaryOp): |
| 213 | def GetOpString(self): return "/" |
| 214 | def GenerateResult(self, a, b): |
| 215 | result = abs(a) / abs(b) |
| 216 | if (a < 0) != (b < 0): result = -result |
| 217 | return result |
| 218 | def GenerateInputLengths(self): |
| 219 | # Let the left side be longer than the right side with high probability, |
| 220 | # because that case is more interesting. |