(left, right, gate)
| 204 | |
| 205 | |
| 206 | def _compare(left, right, gate): |
| 207 | common = min(len(left.raw_name), len(right.raw_name)) |
| 208 | for index in range(common): |
| 209 | gate.step() |
| 210 | a = left.raw_name[index] |
| 211 | b = right.raw_name[index] |
| 212 | if a != b: |
| 213 | return -1 if a < b else 1 |
| 214 | gate.step() |
| 215 | if len(left.raw_name) != len(right.raw_name): |
| 216 | return -1 if len(left.raw_name) < len(right.raw_name) else 1 |
| 217 | if left.function_hash == right.function_hash: |
| 218 | return 0 |
| 219 | return -1 if left.function_hash < right.function_hash else 1 |
| 220 | |
| 221 | |
| 222 | def _merge(source, target, start, middle, end, gate): |
no test coverage detected