#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
short ClipAreaCode(double, double, double, double, double, double);
scalar_t__ ClipWithBorder(double, double, double *, double *);
short DtClipLine(double xmin, double ymin, double xmax, double ymax, double *x1,
                 double *y1, double *x2, double *y2) {
  short area_code1, area_code2;
  double eps;
  eps = 1.e-10;
  area_code1 = ClipAreaCode(xmin, ymin, xmax, ymax, *x1, *y1);
  area_code2 = ClipAreaCode(xmin, ymin, xmax, ymax, *x2, *y2);
  if ((!(area_code1 | area_code2)))
    return 1;
  if ((area_code1 & area_code2)) {
    return 0;
  } else {
    double dx, dy;
    int dx0, dy0;
    double tEnter, tLeave;
    double *tE = &tEnter;
    double *tL = &tLeave;
    dx = *x2 - *x1;
    dy = *y2 - *y1;
    tEnter = 0.0;
    tLeave = 1.;
    dx0 = (-eps < dx && dx < eps);
    dy0 = (-eps < dy && dy < eps);
    if (dx0 || ClipWithBorder(-dx, -(xmin - *x1), tE, tL))
      if (dy0 || ClipWithBorder(dy, (ymax - *y1), tE, tL))
        if (dx0 || ClipWithBorder(dx, (xmax - *x1), tE, tL))
          if (dy0 || ClipWithBorder(-dy, -(ymin - *y1), tE, tL)) {
            *x2 = *x1 + (tLeave * dx);
            *y2 = *y1 + (tLeave * dy);
            *x1 = *x1 + (tEnter * dx);
            *y1 = *y1 + (tEnter * dy);
            return 1;
          }
  }
  return 0;
}


x86 assembly (clang, -O0):
<DtClipLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
movsd  0xea9(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm4
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm5
call   1030 <ClipAreaCode@plt>
mov    %ax,-0x4a(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm4
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm5
call   1030 <ClipAreaCode@plt>
mov    %ax,-0x4c(%rbp)
movswl -0x4a(%rbp),%eax
movswl -0x4c(%rbp),%ecx
or     %ecx,%eax
cmp    $0x0,%eax
jne    11d4 <DtClipLine+0xb4>
movw   $0x1,-0x2(%rbp)
jmp    14e4 <DtClipLine+0x3c4>
movswl -0x4a(%rbp),%eax
movswl -0x4c(%rbp),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     11f2 <DtClipLine+0xd2>
movw   $0x0,-0x2(%rbp)
jmp    14e4 <DtClipLine+0x3c4>
lea    -0x78(%rbp),%rax
mov    %rax,-0x88(%rbp)
lea    -0x80(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xdc6(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x60(%rbp),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x91(%rbp)
jbe    1291 <DtClipLine+0x171>
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x91(%rbp)
mov    -0x91(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x6c(%rbp)
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x68(%rbp),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x92(%rbp)
jbe    12e9 <DtClipLine+0x1c9>
movsd  -0x68(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x92(%rbp)
mov    -0x92(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x70(%rbp)
cmpl   $0x0,-0x6c(%rbp)
jne    135e <DtClipLine+0x23e>
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x10(%rbp),%xmm1
mov    -0x30(%rbp),%rax
subsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mov    -0x88(%rbp),%rdi
mov    -0x90(%rbp),%rsi
call   1040 <ClipWithBorder@plt>
cmp    $0x0,%rax
je     14d9 <DtClipLine+0x3b9>
cmpl   $0x0,-0x70(%rbp)
jne    1397 <DtClipLine+0x277>
movsd  -0x68(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
mov    -0x38(%rbp),%rax
subsd  (%rax),%xmm1
mov    -0x88(%rbp),%rdi
mov    -0x90(%rbp),%rsi
call   1040 <ClipWithBorder@plt>
cmp    $0x0,%rax
je     14d4 <DtClipLine+0x3b4>
cmpl   $0x0,-0x6c(%rbp)
jne    13d0 <DtClipLine+0x2b0>
movsd  -0x60(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
mov    -0x30(%rbp),%rax
subsd  (%rax),%xmm1
mov    -0x88(%rbp),%rdi
mov    -0x90(%rbp),%rsi
call   1040 <ClipWithBorder@plt>
cmp    $0x0,%rax
je     14cf <DtClipLine+0x3af>
cmpl   $0x0,-0x70(%rbp)
jne    1437 <DtClipLine+0x317>
movsd  -0x68(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x18(%rbp),%xmm1
mov    -0x38(%rbp),%rax
subsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mov    -0x88(%rbp),%rdi
mov    -0x90(%rbp),%rsi
call   1040 <ClipWithBorder@plt>
cmp    $0x0,%rax
je     14ca <DtClipLine+0x3aa>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x80(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x80(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x78(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x78(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movw   $0x1,-0x2(%rbp)
jmp    14e4 <DtClipLine+0x3c4>
jmp    14cf <DtClipLine+0x3af>
jmp    14d4 <DtClipLine+0x3b4>
jmp    14d9 <DtClipLine+0x3b9>
jmp    14de <DtClipLine+0x3be>
movw   $0x0,-0x2(%rbp)
movswl -0x2(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DtClipLine>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%r14
movsd  %xmm3,0x38(%rsp)
movsd  %xmm2,0x30(%rsp)
movaps %xmm1,0x60(%rsp)
movaps %xmm0,0x20(%rsp)
movsd  (%rdi),%xmm4
movsd  (%rsi),%xmm5
call   1030 <ClipAreaCode@plt>
mov    %eax,%ebx
movsd  (%r12),%xmm4
movsd  (%r15),%xmm5
movapd 0x20(%rsp),%xmm0
movapd 0x60(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
movsd  0x38(%rsp),%xmm3
call   1030 <ClipAreaCode@plt>
mov    $0x1,%bp
mov    %eax,%ecx
or     %bx,%cx
je     1199 <DtClipLine+0x79>
test   %bx,%ax
je     11aa <DtClipLine+0x8a>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movsd  (%r12),%xmm3
movsd  (%r14),%xmm5
movsd  (%r15),%xmm4
subsd  0x0(%r13),%xmm4
subsd  %xmm5,%xmm3
movsd  0xe34(%rip),%xmm0
ucomisd %xmm0,%xmm3
movabs $0x3ff0000000000000,%rax
seta   %cl
movsd  0xe23(%rip),%xmm2
movapd %xmm3,0x50(%rsp)
ucomisd %xmm3,%xmm2
seta   %bl
mov    %rax,0x10(%rsp)
and    %cl,%bl
ucomisd %xmm0,%xmm4
seta   %al
movapd %xmm4,0x40(%rsp)
ucomisd %xmm4,%xmm2
movq   $0x0,0x18(%rsp)
seta   %cl
test   %bl,%bl
jne    1262 <DtClipLine+0x142>
movapd 0xdee(%rip),%xmm2
movapd 0x50(%rsp),%xmm0
xorpd  %xmm2,%xmm0
movapd 0x20(%rsp),%xmm1
subsd  %xmm5,%xmm1
xorpd  %xmm2,%xmm1
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    %al,0x20(%rsp)
mov    %cl,0xf(%rsp)
call   1040 <ClipWithBorder@plt>
mov    0xf(%rsp),%cl
test   %rax,%rax
mov    0x20(%rsp),%al
je     1197 <DtClipLine+0x77>
and    %cl,%al
jne    1298 <DtClipLine+0x178>
movsd  0x38(%rsp),%xmm1
subsd  0x0(%r13),%xmm1
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
movapd 0x40(%rsp),%xmm0
mov    %al,0x20(%rsp)
call   1040 <ClipWithBorder@plt>
test   %rax,%rax
mov    0x20(%rsp),%al
je     1197 <DtClipLine+0x77>
test   %bl,%bl
jne    12c9 <DtClipLine+0x1a9>
movsd  0x30(%rsp),%xmm1
subsd  (%r14),%xmm1
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
movapd 0x50(%rsp),%xmm0
mov    %eax,%ebx
call   1040 <ClipWithBorder@plt>
test   %rax,%rax
mov    %ebx,%eax
je     1197 <DtClipLine+0x77>
test   %al,%al
jne    1307 <DtClipLine+0x1e7>
movapd 0xd3b(%rip),%xmm2
movapd 0x40(%rsp),%xmm0
xorpd  %xmm2,%xmm0
movapd 0x60(%rsp),%xmm1
subsd  0x0(%r13),%xmm1
xorpd  %xmm2,%xmm1
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1040 <ClipWithBorder@plt>
test   %rax,%rax
je     1197 <DtClipLine+0x77>
movsd  0x10(%rsp),%xmm0
movapd %xmm0,%xmm1
movapd 0x50(%rsp),%xmm2
mulsd  %xmm2,%xmm1
addsd  (%r14),%xmm1
movsd  %xmm1,(%r12)
movapd 0x40(%rsp),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x0(%r13),%xmm0
movsd  %xmm0,(%r15)
movsd  0x18(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  (%r14),%xmm2
movsd  %xmm2,(%r14)
mulsd  %xmm1,%xmm0
addsd  0x0(%r13),%xmm0
movsd  %xmm0,0x0(%r13)
jmp    1199 <DtClipLine+0x79>

LLVM IR (-O0):
define signext i16 @DtClipLine(double %0, double %1, double %2, double %3, double* %4, double* %5, double* %6, double* %7) {
%9 = alloca i16
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca i16
%19 = alloca i16
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca i32
%24 = alloca i32
%25 = alloca double
%26 = alloca double
%27 = alloca double*
%28 = alloca double*
store double %0, double* %10
store double %1, double* %11
store double %2, double* %12
store double %3, double* %13
store double* %4, double** %14
store double* %5, double** %15
store double* %6, double** %16
store double* %7, double** %17
store double 1.000000e-10, double* %20
%29 = load double, double* %10
%30 = load double, double* %11
%31 = load double, double* %12
%32 = load double, double* %13
%33 = load double*, double** %14
%34 = load double, double* %33
%35 = load double*, double** %15
%36 = load double, double* %35
%37 = call signext i16 @ClipAreaCode(double %29, double %30, double %31, double %32, double %34, double %36)
store i16 %37, i16* %18
%38 = load double, double* %10
%39 = load double, double* %11
%40 = load double, double* %12
%41 = load double, double* %13
%42 = load double*, double** %16
%43 = load double, double* %42
%44 = load double*, double** %17
%45 = load double, double* %44
%46 = call signext i16 @ClipAreaCode(double %38, double %39, double %40, double %41, double %43, double %45)
store i16 %46, i16* %19
%47 = load i16, i16* %18
%48 = sext i16 %47 to i32
%49 = load i16, i16* %19
%50 = sext i16 %49 to i32
%51 = or i32 %48, %50
%52 = icmp ne i32 %51, 0
br i1 %52, label %54, label %53
53: ; preds = %8
store i16 1, i16* %9
br label %180
54: ; preds = %8
%55 = load i16, i16* %18
%56 = sext i16 %55 to i32
%57 = load i16, i16* %19
%58 = sext i16 %57 to i32
%59 = and i32 %56, %58
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %54
store i16 0, i16* %9
br label %180
62: ; preds = %54
store double* %25, double** %27
store double* %26, double** %28
%63 = load double*, double** %16
%64 = load double, double* %63
%65 = load double*, double** %14
%66 = load double, double* %65
%67 = fsub double %64, %66
store double %67, double* %21
%68 = load double*, double** %17
%69 = load double, double* %68
%70 = load double*, double** %15
%71 = load double, double* %70
%72 = fsub double %69, %71
store double %72, double* %22
store double 0.000000e+00, double* %25
store double 1.000000e+00, double* %26
%73 = load double, double* %20
%74 = fneg double %73
%75 = load double, double* %21
%76 = fcmp olt double %74, %75
br i1 %76, label %77, label %81
77: ; preds = %62
%78 = load double, double* %21
%79 = load double, double* %20
%80 = fcmp olt double %78, %79
br label %81
81: ; preds = %77, %62
%82 = phi i1 [ false, %62 ], [ %80, %77 ]
%83 = zext i1 %82 to i32
store i32 %83, i32* %23
%84 = load double, double* %20
%85 = fneg double %84
%86 = load double, double* %22
%87 = fcmp olt double %85, %86
br i1 %87, label %88, label %92
88: ; preds = %81
%89 = load double, double* %22
%90 = load double, double* %20
%91 = fcmp olt double %89, %90
br label %92
92: ; preds = %88, %81
%93 = phi i1 [ false, %81 ], [ %91, %88 ]
%94 = zext i1 %93 to i32
store i32 %94, i32* %24
%95 = load i32, i32* %23
%96 = icmp ne i32 %95, 0
br i1 %96, label %109, label %97
97: ; preds = %92
%98 = load double, double* %21
%99 = fneg double %98
%100 = load double, double* %10
%101 = load double*, double** %14
%102 = load double, double* %101
%103 = fsub double %100, %102
%104 = fneg double %103
%105 = load double*, double** %27
%106 = load double*, double** %28
%107 = call i64 @ClipWithBorder(double %99, double %104, double* %105, double* %106)
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %178
109: ; preds = %97, %92
%110 = load i32, i32* %24
%111 = icmp ne i32 %110, 0
br i1 %111, label %122, label %112
112: ; preds = %109
%113 = load double, double* %22
%114 = load double, double* %13
%115 = load double*, double** %15
%116 = load double, double* %115
%117 = fsub double %114, %116
%118 = load double*, double** %27
%119 = load double*, double** %28
%120 = call i64 @ClipWithBorder(double %113, double %117, double* %118, double* %119)
%121 = icmp ne i64 %120, 0
br i1 %121, label %122, label %177
122: ; preds = %112, %109
%123 = load i32, i32* %23
%124 = icmp ne i32 %123, 0
br i1 %124, label %135, label %125
125: ; preds = %122
%126 = load double, double* %21
%127 = load double, double* %12
%128 = load double*, double** %14
%129 = load double, double* %128
%130 = fsub double %127, %129
%131 = load double*, double** %27
%132 = load double*, double** %28
%133 = call i64 @ClipWithBorder(double %126, double %130, double* %131, double* %132)
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %176
135: ; preds = %125, %122
%136 = load i32, i32* %24
%137 = icmp ne i32 %136, 0
br i1 %137, label %150, label %138
138: ; preds = %135
%139 = load double, double* %22
%140 = fneg double %139
%141 = load double, double* %11
%142 = load double*, double** %15
%143 = load double, double* %142
%144 = fsub double %141, %143
%145 = fneg double %144
%146 = load double*, double** %27
%147 = load double*, double** %28
%148 = call i64 @ClipWithBorder(double %140, double %145, double* %146, double* %147)
%149 = icmp ne i64 %148, 0
br i1 %149, label %150, label %175
150: ; preds = %138, %135
%151 = load double*, double** %14
%152 = load double, double* %151
%153 = load double, double* %26
%154 = load double, double* %21
%155 = call double @llvm.fmuladd.f64(double %153, double %154, double %152)
%156 = load double*, double** %16
store double %155, double* %156
%157 = load double*, double** %15
%158 = load double, double* %157
%159 = load double, double* %26
%160 = load double, double* %22
%161 = call double @llvm.fmuladd.f64(double %159, double %160, double %158)
%162 = load double*, double** %17
store double %161, double* %162
%163 = load double*, double** %14
%164 = load double, double* %163
%165 = load double, double* %25
%166 = load double, double* %21
%167 = call double @llvm.fmuladd.f64(double %165, double %166, double %164)
%168 = load double*, double** %14
store double %167, double* %168
%169 = load double*, double** %15
%170 = load double, double* %169
%171 = load double, double* %25
%172 = load double, double* %22
%173 = call double @llvm.fmuladd.f64(double %171, double %172, double %170)
%174 = load double*, double** %15
store double %173, double* %174
store i16 1, i16* %9
br label %180
175: ; preds = %138
br label %176
176: ; preds = %175, %125
br label %177
177: ; preds = %176, %112
br label %178
178: ; preds = %177, %97
br label %179
179: ; preds = %178
store i16 0, i16* %9
br label %180
180: ; preds = %179, %150, %61, %53
%181 = load i16, i16* %9
ret i16 %181
}

LLVM IR (-O2):
define signext i16 @DtClipLine(double %0, double %1, double %2, double %3, double* nocapture %4, double* nocapture %5, double* nocapture %6, double* nocapture %7) {
%9 = alloca double
%10 = alloca double
%11 = load double, double* %4
%12 = load double, double* %5
%13 = tail call signext i16 @ClipAreaCode(double %0, double %1, double %2, double %3, double %11, double %12)
%14 = load double, double* %6
%15 = load double, double* %7
%16 = tail call signext i16 @ClipAreaCode(double %0, double %1, double %2, double %3, double %14, double %15)
%17 = or i16 %16, %13
%18 = icmp eq i16 %17, 0
br i1 %18, label %75, label %19
19: ; preds = %8
%20 = and i16 %16, %13
%21 = icmp eq i16 %20, 0
br i1 %21, label %22, label %75
22: ; preds = %19
%23 = bitcast double* %9 to i8*
%24 = bitcast double* %10 to i8*
%25 = load double, double* %6
%26 = load double, double* %4
%27 = fsub double %25, %26
%28 = load double, double* %7
%29 = load double, double* %5
%30 = fsub double %28, %29
store double 0.000000e+00, double* %9
store double 1.000000e+00, double* %10
%31 = fcmp ogt double %27, -1.000000e-10
%32 = fcmp olt double %27, 1.000000e-10
%33 = and i1 %31, %32
%34 = fcmp ogt double %30, -1.000000e-10
%35 = fcmp olt double %30, 1.000000e-10
%36 = and i1 %34, %35
br i1 %33, label %43, label %37
37: ; preds = %22
%38 = fneg double %27
%39 = fsub double %0, %26
%40 = fneg double %39
%41 = call i64 @ClipWithBorder(double %38, double %40, double* %9, double* %10)
%42 = icmp eq i64 %41, 0
br i1 %42, label %74, label %43
43: ; preds = %37, %22
br i1 %36, label %49, label %44
44: ; preds = %43
%45 = load double, double* %5
%46 = fsub double %3, %45
%47 = call i64 @ClipWithBorder(double %30, double %46, double* %9, double* %10)
%48 = icmp eq i64 %47, 0
br i1 %48, label %74, label %49
49: ; preds = %44, %43
br i1 %33, label %55, label %50
50: ; preds = %49
%51 = load double, double* %4
%52 = fsub double %2, %51
%53 = call i64 @ClipWithBorder(double %27, double %52, double* %9, double* %10)
%54 = icmp eq i64 %53, 0
br i1 %54, label %74, label %55
55: ; preds = %50, %49
br i1 %36, label %63, label %56
56: ; preds = %55
%57 = fneg double %30
%58 = load double, double* %5
%59 = fsub double %1, %58
%60 = fneg double %59
%61 = call i64 @ClipWithBorder(double %57, double %60, double* %9, double* %10)
%62 = icmp eq i64 %61, 0
br i1 %62, label %74, label %63
63: ; preds = %55, %56
%64 = load double, double* %4
%65 = load double, double* %10
%66 = call double @llvm.fmuladd.f64(double %65, double %27, double %64)
store double %66, double* %6
%67 = load double, double* %5
%68 = call double @llvm.fmuladd.f64(double %65, double %30, double %67)
store double %68, double* %7
%69 = load double, double* %4
%70 = load double, double* %9
%71 = call double @llvm.fmuladd.f64(double %70, double %27, double %69)
store double %71, double* %4
%72 = load double, double* %5
%73 = call double @llvm.fmuladd.f64(double %70, double %30, double %72)
store double %73, double* %5
br label %75
74: ; preds = %44, %56, %50, %37
br label %75
75: ; preds = %74, %63, %19, %8
%76 = phi i16 [ 1, %8 ], [ 0, %19 ], [ 0, %74 ], [ 1, %63 ]
ret i16 %76
}