Coverage Report

Created: 2026-05-30 06:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/xpdf-4.06/splash/SplashXPathScanner.cc
Line
Count
Source
1
//========================================================================
2
//
3
// SplashXPathScanner.cc
4
//
5
// Copyright 2003-2013 Glyph & Cog, LLC
6
//
7
//========================================================================
8
9
#include <aconf.h>
10
11
#include <stdlib.h>
12
#include <string.h>
13
#if HAVE_STD_SORT
14
#include <algorithm>
15
#endif
16
#include "gmem.h"
17
#include "gmempp.h"
18
#include "GList.h"
19
#include "SplashMath.h"
20
#include "SplashXPath.h"
21
#include "SplashXPathScanner.h"
22
23
//------------------------------------------------------------------------
24
25
#if ANTIALIAS_256
26
27
#define aaVert  15
28
#define aaHoriz 17
29
30
#else
31
32
54.3M
#define aaVert  4
33
10.0M
#define aaHoriz 4
34
35
// 4x4 oversampling tends to generate alpha (coverage) values that are
36
// too high, so we reduce them here. (Yes, this is a kludge.)
37
static Guchar map16to255[17] = {
38
  0,
39
  16 / 2,
40
  32 / 2,
41
  48 / 2,
42
  64 - 32,
43
  80 - 32,
44
  96 - 32,
45
  112 - 32,
46
  128 - 32,
47
  143 - 32,
48
  159 - 32,
49
  175 - 32,
50
  191 - 32,
51
  207 - 32,
52
  223 - 32,
53
  239 - 32,
54
  255
55
};
56
57
#endif
58
59
//------------------------------------------------------------------------
60
61
SplashXPathScanner::SplashXPathScanner(SplashXPath *xPathA, GBool eo,
62
142k
               int yMinA, int yMaxA) {
63
142k
  xPath = xPathA;
64
142k
  eoMask = eo ? 1 : 0xffffffff;
65
142k
  yMin = yMinA;
66
142k
  yMax = yMaxA;
67
142k
  if (xPath->isRect) {
68
20.7k
    rectX0I = splashFloor(xPath->rectX0);
69
20.7k
    rectY0I = splashFloor(xPath->rectY0);
70
20.7k
    rectX1I = splashFloor(xPath->rectX1);
71
20.7k
    rectY1I = splashFloor(xPath->rectY1);
72
20.7k
  }
73
74
142k
  pre = &preSeg;
75
142k
  post = &postSeg;
76
142k
  pre->mx = xPath->xMin - 1;
77
142k
  post->mx = xPath->xMax + 1;
78
79
142k
  resetDone = gFalse;
80
142k
  resetAA = gFalse;
81
142k
}
82
83
142k
SplashXPathScanner::~SplashXPathScanner() {
84
142k
}
85
86
void SplashXPathScanner::insertSegmentBefore(SplashXPathSeg *s,
87
3.18M
               SplashXPathSeg *sNext) {
88
3.18M
  SplashXPathSeg *sPrev;
89
90
3.18M
  sPrev = sNext->prev;
91
3.18M
  sPrev->next = s;
92
3.18M
  s->prev = sPrev;
93
3.18M
  s->next = sNext;
94
3.18M
  sNext->prev = s;
95
3.18M
}
96
97
1.81M
void SplashXPathScanner::removeSegment(SplashXPathSeg *s) {
98
1.81M
  SplashXPathSeg *sPrev, *sNext;
99
100
1.81M
  sPrev = s->prev;
101
1.81M
  sNext = s->next;
102
1.81M
  sPrev->next = sNext;
103
1.81M
  sNext->prev = sPrev;
104
1.81M
  s->prev = s->next = NULL;
105
1.81M
}
106
107
void SplashXPathScanner::moveSegmentAfter(SplashXPathSeg *s,
108
238k
            SplashXPathSeg *sPrev) {
109
238k
  SplashXPathSeg *sNext;
110
111
238k
  s->prev->next = s->next;
112
238k
  s->next->prev = s->prev;
113
114
238k
  sNext = sPrev->next;
115
238k
  sPrev->next = s;
116
238k
  s->prev = sPrev;
117
238k
  s->next = sNext;
118
238k
  sNext->prev = s;
119
238k
}
120
121
96.0k
void SplashXPathScanner::reset(GBool aa, GBool aaChanged) {
122
96.0k
  SplashXPathSeg *seg;
123
96.0k
  SplashCoord y;
124
96.0k
  int i;
125
126
  //--- initialize segment parameters
127
36.6M
  for (i = 0; i < xPath->length; ++i) {
128
36.5M
    seg = &xPath->segs[i];
129
36.5M
    if (aa) {
130
28.6M
      if (aaChanged) {
131
24.5M
  seg->iy = splashFloor(seg->y0 * aaVert);
132
24.5M
      }
133
28.6M
      y = (SplashCoord)(seg->iy + 1) / (SplashCoord)aaVert;
134
28.6M
    } else {
135
7.85M
      if (aaChanged) {
136
5.72M
  seg->iy = splashFloor(seg->y0);
137
5.72M
      }
138
7.85M
      y = (SplashCoord)(seg->iy + 1);
139
7.85M
    }
140
36.5M
    seg->sx0 = seg->x0;
141
36.5M
    if (seg->y1 <= y) {
142
20.1M
      seg->sx1 = seg->x1;
143
20.1M
    } else {
144
16.3M
      seg->sx1 = seg->x0 + (y - seg->y0) * seg->dxdy;
145
16.3M
    }
146
36.5M
    seg->mx = (seg->sx0 <= seg->sx1) ? seg->sx0 : seg->sx1;
147
36.5M
    seg->prev = seg->next = NULL;
148
36.5M
  }
149
150
  //--- sort the inactive segments by iy, mx
151
96.0k
  if (aaChanged) {
152
33.2k
#if HAVE_STD_SORT
153
33.2k
    std::sort(xPath->segs, xPath->segs + xPath->length, &SplashXPathSeg::cmpMX);
154
#else
155
    qsort(xPath->segs, xPath->length, sizeof(SplashXPathSeg),
156
    &SplashXPathSeg::cmpMX);
157
#endif
158
33.2k
  }
159
160
  //--- initialize the active list
161
96.0k
  pre->prev = NULL;
162
96.0k
  pre->next = post;
163
96.0k
  post->prev = pre;
164
96.0k
  post->next = NULL;
165
166
  //--- initialize the scan state
167
96.0k
  nextSeg = 0;
168
96.0k
  if (xPath->length) {
169
93.8k
    yBottomI = xPath->segs[0].iy;
170
93.8k
    if (aa) {
171
87.9k
      yBottomI -= yBottomI % aaVert;
172
87.9k
    }
173
93.8k
  } else {
174
2.16k
    yBottomI = 0;
175
2.16k
  }
176
96.0k
  yTopI = yBottomI - 1;
177
96.0k
  if (aa) {
178
90.1k
    yTop = (SplashCoord)yTopI / (SplashCoord)aaVert;
179
90.1k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
180
90.1k
  } else {
181
5.90k
    yTop = (SplashCoord)yTopI;
182
5.90k
    yBottom = (SplashCoord)yBottomI;
183
5.90k
  }
184
185
96.0k
  resetDone = gTrue;
186
96.0k
  resetAA = aa;
187
96.0k
}
188
189
78.2k
void SplashXPathScanner::skip(int newYBottomI, GBool aa) {
190
78.2k
  SplashXPathSeg *s0, *s1,*s2;
191
78.2k
  int iy;
192
193
78.2k
  yTopI = newYBottomI - 1;
194
78.2k
  yBottomI = newYBottomI;
195
78.2k
  if (aa) {
196
72.9k
    yTop = (SplashCoord)yTopI / (SplashCoord)aaVert;
197
72.9k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
198
72.9k
  } else {
199
5.33k
    yTop = (SplashCoord)yTopI;
200
5.33k
    yBottom = (SplashCoord)yBottomI;
201
5.33k
  }
202
203
  //--- remove finished segments; update sx0, sx1, mx for active segments
204
78.2k
  s0 = pre->next;
205
78.2k
  while (s0 != post) {
206
0
    s1 = s0->next;
207
208
    // check for a finished segment
209
0
    if (s0->y1 < yTop) {
210
0
      removeSegment(s0);
211
212
    // compute sx0, sx1, mx
213
0
    } else {
214
0
      if (s0->y0 >= yTop) {
215
0
  s0->sx0 = s0->x0;
216
0
      } else {
217
0
  s0->sx0 = s0->x0 + (yTop - s0->y0) * s0->dxdy;
218
0
      }
219
0
      if (s0->y1 <= yBottom) {
220
0
  s0->sx1 = s0->x1;
221
0
      } else {
222
0
  s0->sx1 = s0->x0 + (yBottom - s0->y0) * s0->dxdy;
223
0
      }
224
0
      s0->mx = (s0->sx0 <= s0->sx1) ? s0->sx0 : s0->sx1;
225
0
    }
226
227
0
    s0 = s1;
228
0
  }
229
230
  //--- check for intersections
231
78.2k
  s0 = pre->next;
232
78.2k
  if (s0 != post) {
233
0
    s1 = s0->next;
234
0
    while (s1 != post) {
235
0
      if (s1->mx < s0->mx) {
236
0
  for (s2 = s0->prev; s1->mx < s2->mx; s2 = s2->prev) ;
237
0
  moveSegmentAfter(s1, s2);
238
0
      } else {
239
0
  s0 = s1;
240
0
      }
241
0
      s1 = s0->next;
242
0
    }
243
0
  }
244
245
  //--- insert new segments with a merge sort
246
  // - this has to be done one (sub)scanline at a time, because the
247
  //   inactive list is bin-sorted by (sub)scanline
248
6.83M
  while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= yTopI) {
249
    // the first inactive segment determines the next scanline to process
250
6.76M
    iy = xPath->segs[nextSeg].iy;
251
6.76M
    s0 = pre->next;
252
15.8M
    do {
253
15.8M
      s1 = &xPath->segs[nextSeg];
254
15.8M
      ++nextSeg;
255
15.8M
      if (s1->y1 < yTop) {
256
14.8M
  continue;
257
14.8M
      }
258
1.00M
      if (s1->y0 >= yTop) {
259
811
  s1->sx0 = s1->x0;
260
1.00M
      } else {
261
1.00M
  s1->sx0 = s1->x0 + (yTop - s1->y0) * s1->dxdy;
262
1.00M
      }
263
1.00M
      if (s1->y1 <= yBottom) {
264
6.19k
  s1->sx1 = s1->x1;
265
996k
      } else {
266
996k
  s1->sx1 = s1->x0 + (yBottom - s1->y0) * s1->dxdy;
267
996k
      }
268
1.00M
      s1->mx = (s1->sx0 <= s1->sx1) ? s1->sx0 : s1->sx1;
269
1.00M
      insertSegmentBefore(s1, s0);
270
15.8M
    } while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= iy);
271
6.76M
  }
272
78.2k
}
273
274
317k
void SplashXPathScanner::advance(GBool aa) {
275
317k
  SplashXPathSeg *s, *sNext, *s1;
276
277
317k
  yTopI = yBottomI;
278
317k
  yTop = yBottom;
279
317k
  yBottomI = yTopI + 1;
280
317k
  if (aa) {
281
311k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
282
311k
  } else {
283
5.88k
    yBottom = (SplashCoord)yBottomI;
284
5.88k
  }
285
286
317k
  s = pre->next;
287
6.10M
  while (s != post) {
288
5.78M
    sNext = s->next;
289
290
    // check for a finished segment
291
5.78M
    if (s->y1 < yTop) {
292
1.81M
      removeSegment(s);
293
294
3.96M
    } else {
295
296
      // compute sx0, sx1, mx
297
3.96M
      s->sx0 = s->sx1;
298
3.96M
      if (s->y1 <= yBottom) {
299
5.69k
  s->sx1 = s->x1;
300
3.96M
      } else {
301
3.96M
  s->sx1 = s->x0 + (yBottom - s->y0) * s->dxdy;
302
3.96M
      }
303
3.96M
      s->mx = (s->sx0 <= s->sx1) ? s->sx0 : s->sx1;
304
305
      // check for intersection
306
3.96M
      if (s->mx < s->prev->mx) {
307
65.3M
  for (s1 = s->prev->prev; s->mx < s1->mx; s1 = s1->prev) ;
308
238k
  moveSegmentAfter(s, s1);
309
238k
      }
310
3.96M
    }
311
312
5.78M
    s = sNext;
313
5.78M
  }
314
315
  // insert new segments
316
317k
  s = pre->next;
317
2.49M
  while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= yTopI) {
318
2.17M
    s1 = &xPath->segs[nextSeg];
319
2.17M
    ++nextSeg;
320
2.24M
    while (s1->mx > s->mx) {
321
67.1k
      s = s->next;
322
67.1k
    }
323
2.17M
    insertSegmentBefore(s1, s);
324
2.17M
  }
325
317k
}
326
327
void SplashXPathScanner::generatePixels(int x0, int x1, Guchar *line,
328
311k
          int *xMin, int *xMax) {
329
311k
  SplashXPathSeg *s;
330
311k
  int fillCount, x, xEnd, ix0, ix1, t;
331
332
311k
  fillCount = 0;
333
311k
  x = x0 * aaHoriz;
334
311k
  xEnd = (x1 + 1) * aaHoriz;
335
2.54M
  for (s = pre->next; s != post && x < xEnd; s = s->next) {
336
2.23M
    ix0 = splashFloor(s->sx0 * aaHoriz);
337
2.23M
    ix1 = splashFloor(s->sx1 * aaHoriz);
338
2.23M
    if (ix0 > ix1) {
339
464k
      t = ix0;  ix0 = ix1;  ix1 = t;
340
464k
    }
341
2.23M
    if (!(fillCount & eoMask)) {
342
619k
      if (ix0 > x) {
343
25.1k
  x = ix0;
344
25.1k
      }
345
619k
    }
346
2.23M
    if (ix1 >= xEnd) {
347
30.0k
      ix1 = xEnd - 1;
348
30.0k
    }
349
2.23M
    if (x / aaHoriz < *xMin) {
350
72.6k
      *xMin = x / aaHoriz;
351
72.6k
    }
352
2.23M
    if (ix1 / aaHoriz > *xMax) {
353
74.1k
      *xMax = ix1 / aaHoriz;
354
74.1k
    }
355
2.52M
    for (; x <= ix1; ++x) {
356
289k
      ++line[x / aaHoriz];
357
289k
    }
358
2.23M
    if (s->y0 <= yTop && s->y1 > yTop) {
359
2.17M
      fillCount += s->count;
360
2.17M
    }
361
2.23M
  }
362
311k
}
363
364
void SplashXPathScanner::generatePixelsBinary(int x0, int x1, Guchar *line,
365
5.88k
                int *xMin, int *xMax) {
366
5.88k
  SplashXPathSeg *s;
367
5.88k
  int fillCount, x, xEnd, ix0, ix1, t;
368
369
5.88k
  fillCount = 0;
370
5.88k
  x = x0;
371
5.88k
  xEnd = x1 + 1;
372
15.2k
  for (s = pre->next; s != post && x < xEnd; s = s->next) {
373
9.39k
    ix0 = splashFloor(s->sx0);
374
9.39k
    ix1 = splashFloor(s->sx1);
375
9.39k
    if (ix0 > ix1) {
376
1.50k
      t = ix0;  ix0 = ix1;  ix1 = t;
377
1.50k
    }
378
9.39k
    if (!(fillCount & eoMask)) {
379
7.00k
      if (ix0 > x) {
380
14
  x = ix0;
381
14
      }
382
7.00k
    }
383
9.39k
    if (ix1 >= xEnd) {
384
528
      ix1 = xEnd - 1;
385
528
    }
386
9.39k
    if (x < *xMin) {
387
5.80k
      *xMin = x;
388
5.80k
    }
389
9.39k
    if (ix1 > *xMax) {
390
5.73k
      *xMax = ix1;
391
5.73k
    }
392
15.1k
    for (; x <= ix1; ++x) {
393
5.72k
      line[x] = 255;
394
5.72k
    }
395
9.39k
    if (s->y0 <= yTop && s->y1 > yTop) {
396
7.34k
      fillCount += s->count;
397
7.34k
    }
398
9.39k
  }
399
5.88k
}
400
401
void SplashXPathScanner::drawRectangleSpan(Guchar *line, int y,
402
             int x0, int x1,
403
12.2k
             int *xMin, int *xMax) {
404
12.2k
  SplashCoord edge;
405
12.2k
  Guchar pix;
406
12.2k
  int xe, x;
407
408
12.2k
  if (rectX0I > x1 || rectX1I < x0) {
409
146
    return;
410
146
  }
411
412
12.1k
  *xMin = x0 <= rectX0I ? rectX0I : x0;
413
12.1k
  *xMax = rectX1I <= x1 ? rectX1I : x1;
414
415
  //--- upper edge
416
12.1k
  if (y == rectY0I) {
417
418
    // handle a rectangle less than one pixel high
419
3.14k
    if (rectY0I == rectY1I) {
420
2.42k
      edge = xPath->rectY1 - xPath->rectY0;
421
2.42k
    } else {
422
720
      edge = (SplashCoord)1 - (xPath->rectY0 - rectY0I);
423
720
    }
424
425
    // upper left corner
426
3.14k
    if (x0 <= rectX0I) {
427
2.98k
      pix = (Guchar)splashCeil(edge
428
2.98k
             * ((SplashCoord)1 - (xPath->rectX0 - rectX0I))
429
2.98k
             * 255);
430
2.98k
      if (pix < 16) {
431
2.26k
  pix = 16;
432
2.26k
      }
433
2.98k
      line[rectX0I] = pix;
434
2.98k
      x = rectX0I + 1;
435
2.98k
    } else {
436
157
      x = x0;
437
157
    }
438
439
    // upper right corner
440
3.14k
    if (rectX1I <= x1) {
441
2.97k
      pix = (Guchar)splashCeil(edge * (xPath->rectX1 - rectX1I) * 255);
442
2.97k
      if (pix < 16) {
443
2.96k
  pix = 16;
444
2.96k
      }
445
2.97k
      line[rectX1I] = pix;
446
2.97k
      xe = rectX1I - 1;
447
2.97k
    } else {
448
173
      xe = x1;
449
173
    }
450
451
    // upper edge
452
3.14k
    pix = (Guchar)splashCeil(edge * 255);
453
3.14k
    if (pix < 16) {
454
2.42k
      pix = 16;
455
2.42k
    }
456
3.30k
    for (; x <= xe; ++x) {
457
157
      line[x] = pix;
458
157
    }
459
460
  //--- lower edge
461
8.98k
  } else if (y == rectY1I) {
462
360
    edge = xPath->rectY1 - rectY1I;
463
464
    // lower left corner
465
360
    if (x0 <= rectX0I) {
466
360
      pix = (Guchar)splashCeil(edge
467
360
             * ((SplashCoord)1 - (xPath->rectX0 - rectX0I))
468
360
             * 255);
469
360
      if (pix < 16) {
470
304
  pix = 16;
471
304
      }
472
360
      line[rectX0I] = pix;
473
360
      x = rectX0I + 1;
474
360
    } else {
475
0
      x = x0;
476
0
    }
477
478
    // lower right corner
479
360
    if (rectX1I <= x1) {
480
360
      pix = (Guchar)splashCeil(edge * (xPath->rectX1 - rectX1I) * 255);
481
360
      if (pix < 16) {
482
360
  pix = 16;
483
360
      }
484
360
      line[rectX1I] = pix;
485
360
      xe = rectX1I - 1;
486
360
    } else {
487
0
      xe = x1;
488
0
    }
489
490
    // lower edge
491
360
    pix = (Guchar)splashCeil(edge * 255);
492
360
    if (pix < 16) {
493
304
      pix = 16;
494
304
    }
495
360
    for (; x <= xe; ++x) {
496
0
      line[x] = pix;
497
0
    }
498
499
  //--- between the upper and lower edges
500
8.62k
  } else if (y > rectY0I && y < rectY1I) {
501
502
    // left edge
503
8.49k
    if (x0 <= rectX0I) {
504
5.53k
      pix = (Guchar)splashCeil(((SplashCoord)1 - (xPath->rectX0 - rectX0I))
505
5.53k
             * 255);
506
5.53k
      if (pix < 16) {
507
0
  pix = 16;
508
0
      }
509
5.53k
      line[rectX0I] = pix;
510
5.53k
      x = rectX0I + 1;
511
5.53k
    } else {
512
2.96k
      x = x0;
513
2.96k
    }
514
515
    // right edge
516
8.49k
    if (rectX1I <= x1) {
517
3.74k
      pix = (Guchar)splashCeil((xPath->rectX1 - rectX1I) * 255);
518
3.74k
      if (pix < 16) {
519
3.61k
  pix = 16;
520
3.61k
      }
521
3.74k
      line[rectX1I] = pix;
522
3.74k
      xe = rectX1I - 1;
523
4.74k
    } else {
524
4.74k
      xe = x1;
525
4.74k
    }
526
527
    // middle
528
11.3k
    for (; x <= xe; ++x) {
529
2.89k
      line[x] = 255;
530
2.89k
    }
531
8.49k
  }
532
12.1k
}
533
534
void SplashXPathScanner::drawRectangleSpanBinary(Guchar *line, int y,
535
             int x0, int x1,
536
18
             int *xMin, int *xMax) {
537
18
  int xe, x;
538
539
18
  if (y >= rectY0I && y <= rectY1I) {
540
18
    if (x0 <= rectX0I) {
541
18
      x = rectX0I;
542
18
    } else {
543
0
      x = x0;
544
0
    }
545
18
    *xMin = x;
546
18
    if (rectX1I <= x1) {
547
18
      xe = rectX1I;
548
18
    } else {
549
0
      xe = x1;
550
0
    }
551
18
    *xMax = xe;
552
36
    for (; x <= xe; ++x) {
553
18
      line[x] = 255;
554
18
    }
555
18
  }
556
18
}
557
558
void SplashXPathScanner::getSpan(Guchar *line, int y, int x0, int x1,
559
90.1k
         int *xMin, int *xMax) {
560
90.1k
  int iy, x, k;
561
562
90.1k
  iy = y * aaVert;
563
90.1k
  if (!resetDone || !resetAA) {
564
29.1k
    reset(gTrue, gTrue);
565
61.0k
  } else if (yBottomI > iy) {
566
61.0k
    reset(gTrue, gFalse);
567
61.0k
  }
568
90.1k
  memset(line + x0, 0, x1 - x0 + 1);
569
570
90.1k
  *xMin = x1 + 1;
571
90.1k
  *xMax = x0 - 1;
572
573
90.1k
  if (xPath->isRect) {
574
12.2k
    drawRectangleSpan(line, y, x0, x1, xMin, xMax);
575
12.2k
    return;
576
12.2k
  }
577
578
77.8k
  if (yBottomI < iy) {
579
72.9k
    skip(iy, gTrue);
580
72.9k
  }
581
389k
  for (k = 0; k < aaVert; ++k, ++iy) {
582
311k
    advance(gTrue);
583
311k
    generatePixels(x0, x1, line, xMin, xMax);
584
311k
  }
585
586
77.8k
#if !ANTIALIAS_256
587
149k
  for (x = *xMin; x <= *xMax; ++x) {
588
71.5k
    line[x] = map16to255[line[x]];
589
71.5k
  }
590
77.8k
#endif
591
77.8k
}
592
593
void SplashXPathScanner::getSpanBinary(Guchar *line, int y, int x0, int x1,
594
5.90k
               int *xMin, int *xMax) {
595
5.90k
  int iy;
596
597
5.90k
  iy = y;
598
5.90k
  if (!resetDone || resetAA) {
599
4.06k
    reset(gFalse, gTrue);
600
4.06k
  } else if (yBottomI > iy) {
601
1.84k
    reset(gFalse, gFalse);
602
1.84k
  }
603
5.90k
  memset(line + x0, 0, x1 - x0 + 1);
604
605
5.90k
  *xMin = x1 + 1;
606
5.90k
  *xMax = x0 - 1;
607
608
5.90k
  if (xPath->isRect) {
609
18
    drawRectangleSpanBinary(line, y, x0, x1, xMin, xMax);
610
18
    return;
611
18
  }
612
613
5.88k
  if (yBottomI < iy) {
614
5.33k
    skip(iy, gFalse);
615
5.33k
  }
616
5.88k
  advance(gFalse);
617
5.88k
  generatePixelsBinary(x0, x1, line, xMin, xMax);
618
5.88k
}