#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 fabs(double);
int Pt_in_Poly(double x, double y, int nPts, double *Pts) {
  int i, j, flag = 0;
  double prevX, prevY;
  double nextX, nextY;
  double dx, dy, Dy;
  nextX = Pts[nPts - 2];
  nextY = Pts[nPts - 1];
  for (i = 0; i < nPts; i += 2) {
    prevX = nextX;
    prevY = nextY;
    nextX = Pts[i];
    nextY = Pts[i + 1];
    if ((y > prevY && y >= nextY) || (y < prevY && y <= nextY) ||
        (x > prevX && x >= nextX))
      continue;
    if (x >= prevX || x > nextX) {
      dy = y - prevY;
      Dy = nextY - prevY;
      if (fabs(Dy) < 1e-10) {
        if (fabs(dy) < 1e-10)
          return (1);
        else
          continue;
      }
      dx = prevX + ((nextX - prevX) / (Dy)) * dy - x;
      if (dx < -1e-10)
        continue;
      if (dx < 1e-10)
        return (1);
    }
    if (y != prevY) {
      flag = 1 - flag;
    } else {
      j = i + 1;
      do {
        if (j > 1)
          j -= 2;
        else
          j = nPts - 1;
      } while (y == Pts[j]);
      if ((nextY - y) * (y - Pts[j]) > 0)
        flag = 1 - flag;
    }
  }
  return (flag);
}


x86 assembly (clang, -O0):
<Pt_in_Poly>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %edi,-0x1c(%rbp)
mov    %rsi,-0x28(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x1c(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13de <Pt_in_Poly+0x2ce>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x18(%rbp),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    11ce <Pt_in_Poly+0xbe>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x58(%rbp),%xmm0
jae    1216 <Pt_in_Poly+0x106>
movsd  -0x18(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11f6 <Pt_in_Poly+0xe6>
movsd  -0x18(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jae    1216 <Pt_in_Poly+0x106>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
jbe    121b <Pt_in_Poly+0x10b>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x50(%rbp),%xmm0
jb     121b <Pt_in_Poly+0x10b>
jmp    13d0 <Pt_in_Poly+0x2c0>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
jae    123b <Pt_in_Poly+0x12b>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    1311 <Pt_in_Poly+0x201>
movsd  -0x18(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x58(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
call   1030 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd91(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    12aa <Pt_in_Poly+0x19a>
movsd  -0x68(%rbp),%xmm0
call   1030 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd71(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    12a5 <Pt_in_Poly+0x195>
movl   $0x1,-0x4(%rbp)
jmp    13e4 <Pt_in_Poly+0x2d4>
jmp    13d0 <Pt_in_Poly+0x2c0>
movsd  -0x40(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xd2b(%rip),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    12ed <Pt_in_Poly+0x1dd>
jmp    13d0 <Pt_in_Poly+0x2c0>
movsd  0xd0b(%rip),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    130c <Pt_in_Poly+0x1fc>
movl   $0x1,-0x4(%rbp)
jmp    13e4 <Pt_in_Poly+0x2d4>
jmp    1311 <Pt_in_Poly+0x201>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x48(%rbp),%xmm0
jne    132c <Pt_in_Poly+0x21c>
jp     132c <Pt_in_Poly+0x21c>
jmp    133c <Pt_in_Poly+0x22c>
mov    $0x1,%eax
sub    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    13cb <Pt_in_Poly+0x2bb>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x1,-0x30(%rbp)
jle    135d <Pt_in_Poly+0x24d>
mov    -0x30(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x30(%rbp)
jmp    1366 <Pt_in_Poly+0x256>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    136b <Pt_in_Poly+0x25b>
movsd  -0x18(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    138e <Pt_in_Poly+0x27e>
jp     138e <Pt_in_Poly+0x27e>
jmp    1345 <Pt_in_Poly+0x235>
movsd  -0x58(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    13c6 <Pt_in_Poly+0x2b6>
mov    $0x1,%eax
sub    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    13cb <Pt_in_Poly+0x2bb>
jmp    13d0 <Pt_in_Poly+0x2c0>
mov    -0x2c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x2c(%rbp)
jmp    1165 <Pt_in_Poly+0x55>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Pt_in_Poly>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
test   %edi,%edi
jle    12f5 <Pt_in_Poly+0x1e5>
mov    %rsi,%r13
mov    %edi,%r14d
lea    -0x1(%r14),%r12d
mov    %r12d,%eax
movsd  (%rsi,%rax,8),%xmm5
movslq %edi,%rax
movsd  -0x10(%rsi,%rax,8),%xmm6
xor    %ebx,%ebx
xor    %r15d,%r15d
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
jmp    116d <Pt_in_Poly+0x5d>
mov    $0x1,%eax
sub    %r15d,%eax
mov    %eax,%r15d
nop
add    $0x2,%rbx
cmp    %r14d,%ebx
jge    12f8 <Pt_in_Poly+0x1e8>
movapd %xmm6,%xmm3
movapd %xmm5,%xmm2
movsd  0x0(%r13,%rbx,8),%xmm6
mov    %rbx,%rbp
or     $0x1,%rbp
movsd  0x0(%r13,%rbp,8),%xmm5
ucomisd %xmm2,%xmm1
jbe    1196 <Pt_in_Poly+0x86>
ucomisd %xmm5,%xmm1
jae    1160 <Pt_in_Poly+0x50>
ucomisd %xmm1,%xmm2
jbe    11a2 <Pt_in_Poly+0x92>
ucomisd %xmm1,%xmm5
jae    1160 <Pt_in_Poly+0x50>
ucomisd %xmm3,%xmm0
jbe    11ae <Pt_in_Poly+0x9e>
ucomisd %xmm6,%xmm0
jae    1160 <Pt_in_Poly+0x50>
ucomisd %xmm3,%xmm0
jae    11be <Pt_in_Poly+0xae>
ucomisd %xmm6,%xmm0
jbe    1294 <Pt_in_Poly+0x184>
movsd  %xmm3,0x40(%rsp)
movsd  %xmm6,0x28(%rsp)
subsd  %xmm2,%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  %xmm5,0x10(%rsp)
movapd %xmm5,%xmm0
movsd  %xmm2,0x30(%rsp)
subsd  %xmm2,%xmm0
movsd  %xmm0,0x38(%rsp)
call   1030 <fabs@plt>
test   %eax,%eax
jle    1244 <Pt_in_Poly+0x134>
movsd  0x28(%rsp),%xmm6
movapd %xmm6,%xmm1
movsd  0x40(%rsp),%xmm0
subsd  %xmm0,%xmm1
divsd  0x38(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
subsd  %xmm0,%xmm1
movsd  0xdd3(%rip),%xmm2
ucomisd %xmm1,%xmm2
jbe    1274 <Pt_in_Poly+0x164>
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm5
jmp    1160 <Pt_in_Poly+0x50>
movsd  0x20(%rsp),%xmm0
call   1030 <fabs@plt>
test   %eax,%eax
movsd  0x8(%rsp),%xmm1
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm5
movsd  0x28(%rsp),%xmm6
jg     1160 <Pt_in_Poly+0x50>
jmp    130a <Pt_in_Poly+0x1fa>
movsd  0xd8c(%rip),%xmm2
ucomisd %xmm1,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm5
movsd  0x30(%rsp),%xmm2
ja     130a <Pt_in_Poly+0x1fa>
ucomisd %xmm1,%xmm2
jne    1154 <Pt_in_Poly+0x44>
jp     1154 <Pt_in_Poly+0x44>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    $0x2,%ebp
lea    -0x2(%rbp),%eax
cmovl  %r12d,%eax
movslq %eax,%rcx
movsd  0x0(%r13,%rcx,8),%xmm4
ucomisd %xmm1,%xmm4
mov    %eax,%ebp
jne    12ce <Pt_in_Poly+0x1be>
jnp    12b0 <Pt_in_Poly+0x1a0>
movapd %xmm5,%xmm3
subsd  %xmm1,%xmm3
movapd %xmm1,%xmm2
subsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm2
ucomisd 0xd26(%rip),%xmm2
ja     1154 <Pt_in_Poly+0x44>
jmp    1160 <Pt_in_Poly+0x50>
xor    %r15d,%r15d
mov    %r15d,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%r15d
jmp    12f8 <Pt_in_Poly+0x1e8>

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

LLVM IR (-O2):
define i32 @Pt_in_Poly(double %0, double %1, i32 %2, double* nocapture %3) {
%5 = add nsw i32 %2, -1
%6 = icmp sgt i32 %2, 0
br i1 %6, label %7, label %83
7: ; preds = %4
%8 = zext i32 %5 to i64
%9 = getelementptr inbounds double, double* %3, i64 %8
%10 = load double, double* %9
%11 = add nsw i32 %2, -2
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds double, double* %3, i64 %12
%14 = load double, double* %13
br label %15
15: ; preds = %7, %78
%16 = phi i64 [ 0, %7 ], [ %80, %78 ]
%17 = phi double [ %10, %7 ], [ %24, %78 ]
%18 = phi double [ %14, %7 ], [ %21, %78 ]
%19 = phi i32 [ 0, %7 ], [ %79, %78 ]
%20 = getelementptr inbounds double, double* %3, i64 %16
%21 = load double, double* %20
%22 = or i64 %16, 1
%23 = getelementptr inbounds double, double* %3, i64 %22
%24 = load double, double* %23
%25 = fcmp uge double %17, %1
%26 = fcmp ugt double %24, %1
%27 = select i1 %25, i1 true, i1 %26
br i1 %27, label %28, label %78
28: ; preds = %15
%29 = fcmp ule double %17, %1
%30 = fcmp ult double %24, %1
%31 = select i1 %29, i1 true, i1 %30
br i1 %31, label %32, label %78
32: ; preds = %28
%33 = fcmp uge double %18, %0
%34 = fcmp ugt double %21, %0
%35 = select i1 %33, i1 true, i1 %34
br i1 %35, label %36, label %78
36: ; preds = %32
%37 = fcmp ole double %18, %0
%38 = fcmp olt double %21, %0
%39 = select i1 %37, i1 true, i1 %38
br i1 %39, label %40, label %56
40: ; preds = %36
%41 = fsub double %1, %17
%42 = fsub double %24, %17
%43 = tail call i32 @fabs(double %42)
%44 = icmp slt i32 %43, 1
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = tail call i32 @fabs(double %41)
%47 = icmp slt i32 %46, 1
br i1 %47, label %83, label %78
48: ; preds = %40
%49 = fsub double %21, %18
%50 = fdiv double %49, %42
%51 = tail call double @llvm.fmuladd.f64(double %50, double %41, double %18)
%52 = fsub double %51, %0
%53 = fcmp olt double %52, -1.000000e-10
br i1 %53, label %78, label %54
54: ; preds = %48
%55 = fcmp olt double %52, 1.000000e-10
br i1 %55, label %83, label %56
56: ; preds = %36, %54
%57 = fcmp une double %17, %1
br i1 %57, label %60, label %58
58: ; preds = %56
%59 = trunc i64 %22 to i32
br label %62
60: ; preds = %56
%61 = sub nsw i32 1, %19
br label %78
62: ; preds = %58, %62
%63 = phi i32 [ %66, %62 ], [ %59, %58 ]
%64 = icmp sgt i32 %63, 1
%65 = add nsw i32 %63, -2
%66 = select i1 %64, i32 %65, i32 %5
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %3, i64 %67
%69 = load double, double* %68
%70 = fcmp oeq double %69, %1
br i1 %70, label %62, label %71
71: ; preds = %62
%72 = fsub double %24, %1
%73 = fsub double %1, %69
%74 = fmul double %72, %73
%75 = fcmp ogt double %74, 0.000000e+00
br i1 %75, label %76, label %78
76: ; preds = %71
%77 = sub nsw i32 1, %19
br label %78
78: ; preds = %32, %28, %15, %60, %76, %71, %48, %45
%79 = phi i32 [ %19, %45 ], [ %19, %48 ], [ %61, %60 ], [ %77, %76 ], [ %19, %71 ], [ %19, %15 ], [ %19, %28 ], [ %19, %32 ]
%80 = add nuw i64 %16, 2
%81 = trunc i64 %80 to i32
%82 = icmp slt i32 %81, %2
br i1 %82, label %15, label %83
83: ; preds = %45, %54, %78, %4
%84 = phi i32 [ 0, %4 ], [ %79, %78 ], [ 1, %54 ], [ 1, %45 ]
ret i32 %84
}