#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 */
int outcode(double, double, double *);
int clip_to_rect(double x[2], double y[2], double r[4]) {
  int c0, c1, c2;
  c0 = outcode(x[0], y[0], r);
  c1 = outcode(x[1], y[1], r);
  while (1) {
    if (!(c0 | c1)) {
      return 1;
    }
    if ((c0 & c1)) {
      return 0;
    }
    double tx, ty;
    c2 = c0 ? c0 : c1;
    if (c2 & 8) {
      tx = x[0] + (x[1] - x[0]) * (r[3] - y[0]) / (y[1] - y[0]);
      ty = r[3];
    } else if (c2 & 4) {
      tx = x[0] + (x[1] - x[0]) * (r[2] - y[0]) / (y[1] - y[0]);
      ty = r[2];
    } else if (c2 & 2) {
      ty = y[0] + (y[1] - y[0]) * (r[1] - x[0]) / (x[1] - x[0]);
      tx = r[1];
    } else if (c2 & 1) {
      ty = y[0] + (y[1] - y[0]) * (r[0] - x[0]) / (x[1] - x[0]);
      tx = r[0];
    }
    if (c2 == c0) {
      x[0] = tx;
      y[0] = ty;
      c0 = outcode(x[0], y[0], r);
    } else {
      x[1] = tx;
      y[1] = ty;
      c1 = outcode(x[1], y[1], r);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<clip_to_rect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x20(%rbp),%rdi
call   1030 <outcode@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x20(%rbp),%rdi
call   1030 <outcode@plt>
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%eax
or     -0x28(%rbp),%eax
cmp    $0x0,%eax
jne    1179 <clip_to_rect+0x69>
movl   $0x1,-0x4(%rbp)
jmp    13fb <clip_to_rect+0x2eb>
mov    -0x24(%rbp),%eax
and    -0x28(%rbp),%eax
cmp    $0x0,%eax
je     1194 <clip_to_rect+0x84>
movl   $0x0,-0x4(%rbp)
jmp    13fb <clip_to_rect+0x2eb>
cmpl   $0x0,-0x24(%rbp)
je     11a9 <clip_to_rect+0x99>
mov    -0x24(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    11af <clip_to_rect+0x9f>
mov    -0x28(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1223 <clip_to_rect+0x113>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm2
mulsd  %xmm2,%xmm1
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1375 <clip_to_rect+0x265>
mov    -0x2c(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1291 <clip_to_rect+0x181>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm2
mulsd  %xmm2,%xmm1
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1370 <clip_to_rect+0x260>
mov    -0x2c(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     12ff <clip_to_rect+0x1ef>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm2
mulsd  %xmm2,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    136b <clip_to_rect+0x25b>
mov    -0x2c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1366 <clip_to_rect+0x256>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm2
mulsd  %xmm2,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    136b <clip_to_rect+0x25b>
jmp    1370 <clip_to_rect+0x260>
jmp    1375 <clip_to_rect+0x265>
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    13bc <clip_to_rect+0x2ac>
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x20(%rbp),%rdi
call   1030 <outcode@plt>
mov    %eax,-0x24(%rbp)
jmp    13f6 <clip_to_rect+0x2e6>
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x20(%rbp),%rdi
call   1030 <outcode@plt>
mov    %eax,-0x28(%rbp)
jmp    115e <clip_to_rect+0x4e>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clip_to_rect>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%r13
movsd  (%rdi),%xmm0
movsd  (%rsi),%xmm1
mov    %rdx,%rdi
call   1030 <outcode@plt>
mov    %eax,%ebp
movsd  0x8(%r13),%xmm0
movsd  0x8(%r15),%xmm1
mov    %r14,%rdi
call   1030 <outcode@plt>
mov    %eax,%ebx
mov    $0x1,%r12d
or     %ebp,%eax
je     12b3 <clip_to_rect+0x1a3>
jmp    1192 <clip_to_rect+0x82>
nop
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%r13)
movsd  0x10(%rsp),%xmm1
movsd  %xmm1,0x8(%r15)
movsd  0x8(%r13),%xmm0
mov    %r14,%rdi
call   1030 <outcode@plt>
mov    %eax,%ebx
mov    %ebx,%eax
or     %ebp,%eax
je     12b3 <clip_to_rect+0x1a3>
test   %ebp,%ebx
jne    12b0 <clip_to_rect+0x1a0>
test   %ebp,%ebp
mov    %ebp,%eax
cmove  %ebx,%eax
test   $0x8,%al
jne    11d0 <clip_to_rect+0xc0>
test   $0x4,%al
jne    11f0 <clip_to_rect+0xe0>
test   $0x2,%al
jne    1265 <clip_to_rect+0x155>
test   $0x1,%al
je     1231 <clip_to_rect+0x121>
movsd  (%r15),%xmm0
movsd  0x8(%r15),%xmm1
subsd  %xmm0,%xmm1
movsd  (%r14),%xmm4
jmp    127a <clip_to_rect+0x16a>
xchg   %ax,%ax
movsd  0x0(%r13),%xmm0
movsd  0x8(%r13),%xmm1
subsd  %xmm0,%xmm1
movsd  0x18(%r14),%xmm4
jmp    1206 <clip_to_rect+0xf6>
nopl   0x0(%rax,%rax,1)
movsd  0x0(%r13),%xmm0
movsd  0x8(%r13),%xmm1
subsd  %xmm0,%xmm1
movsd  0x10(%r14),%xmm4
movsd  (%r15),%xmm2
movsd  0x8(%r15),%xmm3
movsd  %xmm4,0x10(%rsp)
subsd  %xmm2,%xmm4
mulsd  %xmm1,%xmm4
subsd  %xmm2,%xmm3
divsd  %xmm3,%xmm4
addsd  %xmm0,%xmm4
movsd  %xmm4,0x8(%rsp)
cmp    %ebp,%eax
jne    1160 <clip_to_rect+0x50>
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x0(%r13)
movsd  0x10(%rsp),%xmm1
movsd  %xmm1,(%r15)
movsd  0x0(%r13),%xmm0
mov    %r14,%rdi
call   1030 <outcode@plt>
mov    %eax,%ebp
jmp    1188 <clip_to_rect+0x78>
movsd  (%r15),%xmm0
movsd  0x8(%r15),%xmm1
subsd  %xmm0,%xmm1
movsd  0x8(%r14),%xmm4
movsd  0x0(%r13),%xmm2
movsd  0x8(%r13),%xmm3
movsd  %xmm4,0x8(%rsp)
subsd  %xmm2,%xmm4
mulsd  %xmm1,%xmm4
subsd  %xmm2,%xmm3
divsd  %xmm3,%xmm4
addsd  %xmm0,%xmm4
movsd  %xmm4,0x10(%rsp)
cmp    %ebp,%eax
jne    1160 <clip_to_rect+0x50>
jmp    1239 <clip_to_rect+0x129>
xor    %r12d,%r12d
mov    %r12d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @clip_to_rect(double* %0, double* %1, double* %2) {
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca double
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
%13 = load double*, double** %5
%14 = getelementptr inbounds double, double* %13, i64 0
%15 = load double, double* %14
%16 = load double*, double** %6
%17 = getelementptr inbounds double, double* %16, i64 0
%18 = load double, double* %17
%19 = load double*, double** %7
%20 = call i32 @outcode(double %15, double %18, double* %19)
store i32 %20, i32* %8
%21 = load double*, double** %5
%22 = getelementptr inbounds double, double* %21, i64 1
%23 = load double, double* %22
%24 = load double*, double** %6
%25 = getelementptr inbounds double, double* %24, i64 1
%26 = load double, double* %25
%27 = load double*, double** %7
%28 = call i32 @outcode(double %23, double %26, double* %27)
store i32 %28, i32* %9
br label %29
29: ; preds = %3, %226
%30 = load i32, i32* %8
%31 = load i32, i32* %9
%32 = or i32 %30, %31
%33 = icmp ne i32 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %29
store i32 1, i32* %4
br label %227
35: ; preds = %29
%36 = load i32, i32* %8
%37 = load i32, i32* %9
%38 = and i32 %36, %37
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %35
store i32 0, i32* %4
br label %227
41: ; preds = %35
%42 = load i32, i32* %8
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = load i32, i32* %8
br label %48
46: ; preds = %41
%47 = load i32, i32* %9
br label %48
48: ; preds = %46, %44
%49 = phi i32 [ %45, %44 ], [ %47, %46 ]
store i32 %49, i32* %10
%50 = load i32, i32* %10
%51 = and i32 %50, 8
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %84
53: ; preds = %48
%54 = load double*, double** %5
%55 = getelementptr inbounds double, double* %54, i64 0
%56 = load double, double* %55
%57 = load double*, double** %5
%58 = getelementptr inbounds double, double* %57, i64 1
%59 = load double, double* %58
%60 = load double*, double** %5
%61 = getelementptr inbounds double, double* %60, i64 0
%62 = load double, double* %61
%63 = fsub double %59, %62
%64 = load double*, double** %7
%65 = getelementptr inbounds double, double* %64, i64 3
%66 = load double, double* %65
%67 = load double*, double** %6
%68 = getelementptr inbounds double, double* %67, i64 0
%69 = load double, double* %68
%70 = fsub double %66, %69
%71 = fmul double %63, %70
%72 = load double*, double** %6
%73 = getelementptr inbounds double, double* %72, i64 1
%74 = load double, double* %73
%75 = load double*, double** %6
%76 = getelementptr inbounds double, double* %75, i64 0
%77 = load double, double* %76
%78 = fsub double %74, %77
%79 = fdiv double %71, %78
%80 = fadd double %56, %79
store double %80, double* %11
%81 = load double*, double** %7
%82 = getelementptr inbounds double, double* %81, i64 3
%83 = load double, double* %82
store double %83, double* %12
br label %192
84: ; preds = %48
%85 = load i32, i32* %10
%86 = and i32 %85, 4
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %119
88: ; preds = %84
%89 = load double*, double** %5
%90 = getelementptr inbounds double, double* %89, i64 0
%91 = load double, double* %90
%92 = load double*, double** %5
%93 = getelementptr inbounds double, double* %92, i64 1
%94 = load double, double* %93
%95 = load double*, double** %5
%96 = getelementptr inbounds double, double* %95, i64 0
%97 = load double, double* %96
%98 = fsub double %94, %97
%99 = load double*, double** %7
%100 = getelementptr inbounds double, double* %99, i64 2
%101 = load double, double* %100
%102 = load double*, double** %6
%103 = getelementptr inbounds double, double* %102, i64 0
%104 = load double, double* %103
%105 = fsub double %101, %104
%106 = fmul double %98, %105
%107 = load double*, double** %6
%108 = getelementptr inbounds double, double* %107, i64 1
%109 = load double, double* %108
%110 = load double*, double** %6
%111 = getelementptr inbounds double, double* %110, i64 0
%112 = load double, double* %111
%113 = fsub double %109, %112
%114 = fdiv double %106, %113
%115 = fadd double %91, %114
store double %115, double* %11
%116 = load double*, double** %7
%117 = getelementptr inbounds double, double* %116, i64 2
%118 = load double, double* %117
store double %118, double* %12
br label %191
119: ; preds = %84
%120 = load i32, i32* %10
%121 = and i32 %120, 2
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %154
123: ; preds = %119
%124 = load double*, double** %6
%125 = getelementptr inbounds double, double* %124, i64 0
%126 = load double, double* %125
%127 = load double*, double** %6
%128 = getelementptr inbounds double, double* %127, i64 1
%129 = load double, double* %128
%130 = load double*, double** %6
%131 = getelementptr inbounds double, double* %130, i64 0
%132 = load double, double* %131
%133 = fsub double %129, %132
%134 = load double*, double** %7
%135 = getelementptr inbounds double, double* %134, i64 1
%136 = load double, double* %135
%137 = load double*, double** %5
%138 = getelementptr inbounds double, double* %137, i64 0
%139 = load double, double* %138
%140 = fsub double %136, %139
%141 = fmul double %133, %140
%142 = load double*, double** %5
%143 = getelementptr inbounds double, double* %142, i64 1
%144 = load double, double* %143
%145 = load double*, double** %5
%146 = getelementptr inbounds double, double* %145, i64 0
%147 = load double, double* %146
%148 = fsub double %144, %147
%149 = fdiv double %141, %148
%150 = fadd double %126, %149
store double %150, double* %12
%151 = load double*, double** %7
%152 = getelementptr inbounds double, double* %151, i64 1
%153 = load double, double* %152
store double %153, double* %11
br label %190
154: ; preds = %119
%155 = load i32, i32* %10
%156 = and i32 %155, 1
%157 = icmp ne i32 %156, 0
br i1 %157, label %158, label %189
158: ; preds = %154
%159 = load double*, double** %6
%160 = getelementptr inbounds double, double* %159, i64 0
%161 = load double, double* %160
%162 = load double*, double** %6
%163 = getelementptr inbounds double, double* %162, i64 1
%164 = load double, double* %163
%165 = load double*, double** %6
%166 = getelementptr inbounds double, double* %165, i64 0
%167 = load double, double* %166
%168 = fsub double %164, %167
%169 = load double*, double** %7
%170 = getelementptr inbounds double, double* %169, i64 0
%171 = load double, double* %170
%172 = load double*, double** %5
%173 = getelementptr inbounds double, double* %172, i64 0
%174 = load double, double* %173
%175 = fsub double %171, %174
%176 = fmul double %168, %175
%177 = load double*, double** %5
%178 = getelementptr inbounds double, double* %177, i64 1
%179 = load double, double* %178
%180 = load double*, double** %5
%181 = getelementptr inbounds double, double* %180, i64 0
%182 = load double, double* %181
%183 = fsub double %179, %182
%184 = fdiv double %176, %183
%185 = fadd double %161, %184
store double %185, double* %12
%186 = load double*, double** %7
%187 = getelementptr inbounds double, double* %186, i64 0
%188 = load double, double* %187
store double %188, double* %11
br label %189
189: ; preds = %158, %154
br label %190
190: ; preds = %189, %123
br label %191
191: ; preds = %190, %88
br label %192
192: ; preds = %191, %53
%193 = load i32, i32* %10
%194 = load i32, i32* %8
%195 = icmp eq i32 %193, %194
br i1 %195, label %196, label %211
196: ; preds = %192
%197 = load double, double* %11
%198 = load double*, double** %5
%199 = getelementptr inbounds double, double* %198, i64 0
store double %197, double* %199
%200 = load double, double* %12
%201 = load double*, double** %6
%202 = getelementptr inbounds double, double* %201, i64 0
store double %200, double* %202
%203 = load double*, double** %5
%204 = getelementptr inbounds double, double* %203, i64 0
%205 = load double, double* %204
%206 = load double*, double** %6
%207 = getelementptr inbounds double, double* %206, i64 0
%208 = load double, double* %207
%209 = load double*, double** %7
%210 = call i32 @outcode(double %205, double %208, double* %209)
store i32 %210, i32* %8
br label %226
211: ; preds = %192
%212 = load double, double* %11
%213 = load double*, double** %5
%214 = getelementptr inbounds double, double* %213, i64 1
store double %212, double* %214
%215 = load double, double* %12
%216 = load double*, double** %6
%217 = getelementptr inbounds double, double* %216, i64 1
store double %215, double* %217
%218 = load double*, double** %5
%219 = getelementptr inbounds double, double* %218, i64 1
%220 = load double, double* %219
%221 = load double*, double** %6
%222 = getelementptr inbounds double, double* %221, i64 1
%223 = load double, double* %222
%224 = load double*, double** %7
%225 = call i32 @outcode(double %220, double %223, double* %224)
store i32 %225, i32* %9
br label %226
226: ; preds = %211, %196
br label %29
227: ; preds = %40, %34
%228 = load i32, i32* %4
ret i32 %228
}

LLVM IR (-O2):
define i32 @clip_to_rect(double* nocapture %0, double* nocapture %1, double* %2) {
%4 = load double, double* %0
%5 = load double, double* %1
%6 = tail call i32 @outcode(double %4, double %5, double* %2)
%7 = getelementptr inbounds double, double* %0, i64 1
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %1, i64 1
%10 = load double, double* %9
%11 = tail call i32 @outcode(double %8, double %10, double* %2)
%12 = or i32 %11, %6
%13 = icmp eq i32 %12, 0
br i1 %13, label %102, label %14
14: ; preds = %3
%15 = getelementptr inbounds double, double* %2, i64 3
%16 = getelementptr inbounds double, double* %2, i64 2
%17 = getelementptr inbounds double, double* %2, i64 1
br label %18
18: ; preds = %14, %97
%19 = phi double [ undef, %14 ], [ %89, %97 ]
%20 = phi double [ undef, %14 ], [ %88, %97 ]
%21 = phi i32 [ %11, %14 ], [ %99, %97 ]
%22 = phi i32 [ %6, %14 ], [ %98, %97 ]
%23 = and i32 %21, %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %102
25: ; preds = %18
%26 = icmp eq i32 %22, 0
%27 = select i1 %26, i32 %21, i32 %22
%28 = and i32 %27, 8
%29 = icmp eq i32 %28, 0
br i1 %29, label %42, label %30
30: ; preds = %25
%31 = load double, double* %0
%32 = load double, double* %7
%33 = fsub double %32, %31
%34 = load double, double* %15
%35 = load double, double* %1
%36 = fsub double %34, %35
%37 = fmul double %33, %36
%38 = load double, double* %9
%39 = fsub double %38, %35
%40 = fdiv double %37, %39
%41 = fadd double %31, %40
br label %87
42: ; preds = %25
%43 = and i32 %27, 4
%44 = icmp eq i32 %43, 0
br i1 %44, label %57, label %45
45: ; preds = %42
%46 = load double, double* %0
%47 = load double, double* %7
%48 = fsub double %47, %46
%49 = load double, double* %16
%50 = load double, double* %1
%51 = fsub double %49, %50
%52 = fmul double %48, %51
%53 = load double, double* %9
%54 = fsub double %53, %50
%55 = fdiv double %52, %54
%56 = fadd double %46, %55
br label %87
57: ; preds = %42
%58 = and i32 %27, 2
%59 = icmp eq i32 %58, 0
br i1 %59, label %72, label %60
60: ; preds = %57
%61 = load double, double* %1
%62 = load double, double* %9
%63 = fsub double %62, %61
%64 = load double, double* %17
%65 = load double, double* %0
%66 = fsub double %64, %65
%67 = fmul double %63, %66
%68 = load double, double* %7
%69 = fsub double %68, %65
%70 = fdiv double %67, %69
%71 = fadd double %61, %70
br label %87
72: ; preds = %57
%73 = and i32 %27, 1
%74 = icmp eq i32 %73, 0
br i1 %74, label %87, label %75
75: ; preds = %72
%76 = load double, double* %1
%77 = load double, double* %9
%78 = fsub double %77, %76
%79 = load double, double* %2
%80 = load double, double* %0
%81 = fsub double %79, %80
%82 = fmul double %78, %81
%83 = load double, double* %7
%84 = fsub double %83, %80
%85 = fdiv double %82, %84
%86 = fadd double %76, %85
br label %87
87: ; preds = %45, %72, %75, %60, %30
%88 = phi double [ %41, %30 ], [ %56, %45 ], [ %64, %60 ], [ %79, %75 ], [ %20, %72 ]
%89 = phi double [ %34, %30 ], [ %49, %45 ], [ %71, %60 ], [ %86, %75 ], [ %19, %72 ]
%90 = icmp eq i32 %27, %22
br i1 %90, label %91, label %94
91: ; preds = %87
store double %88, double* %0
store double %89, double* %1
%92 = load double, double* %0
%93 = tail call i32 @outcode(double %92, double %89, double* %2)
br label %97
94: ; preds = %87
store double %88, double* %7
store double %89, double* %9
%95 = load double, double* %7
%96 = tail call i32 @outcode(double %95, double %89, double* %2)
br label %97
97: ; preds = %94, %91
%98 = phi i32 [ %93, %91 ], [ %22, %94 ]
%99 = phi i32 [ %21, %91 ], [ %96, %94 ]
%100 = or i32 %99, %98
%101 = icmp eq i32 %100, 0
br i1 %101, label %102, label %18
102: ; preds = %97, %18, %3
%103 = phi i32 [ 1, %3 ], [ 0, %18 ], [ 1, %97 ]
ret i32 %103
}