@@ -195,11 +195,11 @@ let rec compareRanges (r1:Range<'v>) (r2:Range<'v>) =
195195 IntersectedRanges( Range_ AB ( a, x0.not .toRP), Range_ AB ( x0, b), Range_ B_ PI b.not .toLP)
196196 | Range_ AB _, Range_ NI_ A _ -> compareRanges r2 r1
197197 | Range_ AB _, Range_ B_ PI _ -> compareRanges r2 r1
198- | Range_ AB ( A1 , A2 ), Range_ AB ( B1 , B2 ) ->
199- let a1 = LPoint A1
200- let b1 = LPoint B1
201- let a2 = RPoint A2
202- let b2 = RPoint B2
198+ | Range_ AB (_ A1 ,_ A2 ), Range_ AB (_ B1 ,_ B2 ) ->
199+ let a1 = LPoint _ A1
200+ let b1 = LPoint _ B1
201+ let a2 = RPoint _ A2
202+ let b2 = RPoint _ B2
203203 // case 1 : a1------a2 , condition a2 < b1, --> empty set
204204 // b1-----b2
205205 // case 2 : a1------a2
@@ -221,12 +221,12 @@ let rec compareRanges (r1:Range<'v>) (r2:Range<'v>) =
221221 // b1-----b2 , condition b2 < a1, --> empty set
222222
223223 if a2 < b1 then NonIntersectedRanges ( r1, r2)
224- elif a2 = b1 then IntersectedRanges( Range_ AB ( A1 , A2 .not ), Range_ AB ( B1 , A2 ), Range_ AB ( B1 .not , B2 ))
225- elif a1 <= b1 && a2 <= b2 then IntersectedRanges( Range_ AB ( A1 , B1 .not .toRP), Range_ AB ( B1 , A2 ), Range_ AB ( A2 .not .toLP, B2 ))
226- elif a1 <= b1 && b2 <= a2 then IntersectedRanges( Range_ AB ( A1 , B1 .not .toRP), r2, Range_ AB ( B2 .not .toLP, A2 ))
227- elif b1 <= a1 && a2 <= b2 then IntersectedRanges( Range_ AB ( B1 , A1 .not .toRP), r1, Range_ AB ( A2 .not .toLP, B2 ))
228- elif b1 <= a1 && b2 <= a2 then IntersectedRanges( Range_ AB ( B1 , A1 .not .toRP), Range_ AB( A1 , B2 ), Range_ AB ( B2 .not .toLP, A2 ))
229- elif a1 = b2 then IntersectedRanges( Range_ AB ( B1 , A1 .not .toRP), Range_ AB( A1 , B2 ), Range_ AB ( B2 .not .toLP, A2 ))
224+ elif a2 = b1 then IntersectedRanges( Range_ AB (_ A1 ,_ A2 .not ), Range_ AB (_ B1 ,_ A2 ), Range_ AB (_ B1 .not ,_ B2 ))
225+ elif a1 <= b1 && a2 <= b2 then IntersectedRanges( Range_ AB (_ A1 ,_ B1 .not .toRP), Range_ AB (_ B1 ,_ A2 ), Range_ AB (_ A2 .not .toLP,_ B2 ))
226+ elif a1 <= b1 && b2 <= a2 then IntersectedRanges( Range_ AB (_ A1 ,_ B1 .not .toRP), r2, Range_ AB (_ B2 .not .toLP,_ A2 ))
227+ elif b1 <= a1 && a2 <= b2 then IntersectedRanges( Range_ AB (_ B1 ,_ A1 .not .toRP), r1, Range_ AB (_ A2 .not .toLP,_ B2 ))
228+ elif b1 <= a1 && b2 <= a2 then IntersectedRanges( Range_ AB (_ B1 ,_ A1 .not .toRP), Range_ AB(_ A1 ,_ B2 ), Range_ AB (_ B2 .not .toLP,_ A2 ))
229+ elif a1 = b2 then IntersectedRanges( Range_ AB (_ B1 ,_ A1 .not .toRP), Range_ AB(_ A1 ,_ B2 ), Range_ AB (_ B2 .not .toLP,_ A2 ))
230230 else NonIntersectedRanges( r2, r1)
231231
232232
@@ -376,11 +376,11 @@ type Range<'v when 'v : comparison> with
376376 | V_ LT -> One ( this)
377377 | Range_ AB _, Range_ NI_ A _ -> other.union this
378378 | Range_ AB _, Range_ B_ PI _ -> other.union this
379- | Range_ AB ( A1 , A2 ), Range_ AB ( B1 , B2 ) ->
380- let a1 = LPoint A1
381- let b1 = LPoint B1
382- let a2 = RPoint A2
383- let b2 = RPoint B2
379+ | Range_ AB (_ A1 ,_ A2 ), Range_ AB (_ B1 ,_ B2 ) ->
380+ let a1 = LPoint _ A1
381+ let b1 = LPoint _ B1
382+ let a2 = RPoint _ A2
383+ let b2 = RPoint _ B2
384384 // case 1 : a1------a2 , condition a2 < b1, --> empty set
385385 // b1-----b2
386386 // case 2 : a1------a2
@@ -402,12 +402,12 @@ type Range<'v when 'v : comparison> with
402402 // b1-----b2 , condition b2 < a1, --> empty set
403403
404404 if a2 < b1 then Two( this, other) // case 1
405- elif a2 = b1 then One ( Range_ AB ( A1 , B2 )) // case 2
406- elif a1 <= b1 && a2 <= b2 then One ( Range_ AB ( A1 , B2 )) // case 3
405+ elif a2 = b1 then One ( Range_ AB (_ A1 ,_ B2 )) // case 2
406+ elif a1 <= b1 && a2 <= b2 then One ( Range_ AB (_ A1 ,_ B2 )) // case 3
407407 elif a1 <= b1 && b2 <= a2 then One ( this) // case 4
408408 elif b1 <= a1 && a2 <= b2 then One ( other) // case 5
409- elif b1 <= a1 && b2 <= a2 then One ( Range_ AB( B1 , A2 )) // case 6
410- elif a1 = b2 then One ( Range_ AB( B1 , A2 )) // case 7
409+ elif b1 <= a1 && b2 <= a2 then One ( Range_ AB(_ B1 ,_ A2 )) // case 6
410+ elif a1 = b2 then One ( Range_ AB(_ B1 ,_ A2 )) // case 7
411411 else Two( other, this) // case 8
412412
413413 member this.isBefore other =
0 commit comments