; LLVM IR from chrr/libECP :: src (libecp)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.derivativeShift = type { i32, i32, [10 x i32], [10 x i32] }
%struct.doubleArray = type { ptr, ptr }
%struct._libECPHandle = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, double, double }
%struct.Type1 = type { ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, ptr, i32, ptr, i32, i32, ptr, i32, ptr, double, double, double }
%struct.GCIntegrationTable = type { i32, i32, ptr, ptr, double, double, i32, i32 }
%struct._Type2 = type { i32, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, ptr, i32, ptr, double, double, double, i32 }
%struct._ECP = type { ptr, i32, i32 }
%struct.ScreenedGrid = type { i32, i32, i32 }

@__const.calculateECPIntegrals.shifts = external hidden unnamed_addr constant <{ %struct.derivativeShift, { i32, i32, <{ i32, i32, [8 x i32] }>, [10 x i32] }, %struct.derivativeShift }>, align 16

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @calculateECPIntegrals(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca [3 x double], align 16
  %34 = alloca [3 x double], align 16
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca %struct.doubleArray, align 8
  %38 = alloca %struct.doubleArray, align 8
  %39 = alloca %struct.doubleArray, align 8
  %40 = alloca %struct.doubleArray, align 8
  %41 = alloca %struct.doubleArray, align 8
  %42 = alloca %struct.doubleArray, align 8
  %43 = alloca %struct.doubleArray, align 8
  %44 = alloca ptr, align 8
  %45 = alloca %struct.doubleArray, align 8
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca ptr, align 8
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca [3 x %struct.derivativeShift], align 16
  %59 = alloca i32, align 4
  %60 = alloca %struct.doubleArray, align 8
  %61 = alloca %struct.doubleArray, align 8
  %62 = alloca %struct.doubleArray, align 8
  %63 = alloca %struct.doubleArray, align 8
  %64 = alloca %struct.doubleArray, align 8
  %65 = alloca %struct.doubleArray, align 8
  %66 = alloca %struct.doubleArray, align 8
  %67 = alloca %struct.doubleArray, align 8
  %68 = alloca %struct.doubleArray, align 8
  %69 = alloca %struct.doubleArray, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._libECPHandle, ptr %70, i32 0, i32 14
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  store ptr %72, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._libECPHandle, ptr %73, i32 0, i32 15
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  store ptr %75, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._libECPHandle, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 8, !tbaa !14
  store i32 %78, ptr %9, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._libECPHandle, ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !16
  store ptr %81, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._libECPHandle, ptr %82, i32 0, i32 8
  %84 = load i32, ptr %83, align 8, !tbaa !17
  store i32 %84, ptr %11, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._libECPHandle, ptr %85, i32 0, i32 13
  %87 = load ptr, ptr %86, align 8, !tbaa !18
  store ptr %87, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._libECPHandle, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  store ptr %90, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.Type1, ptr %91, i32 0, i32 16
  %93 = load ptr, ptr %92, align 8, !tbaa !20
  %94 = getelementptr inbounds %struct.GCIntegrationTable, ptr %93, i32 0, i32 1
  %95 = load i32, ptr %94, align 4, !tbaa !22
  %96 = sext i32 %95 to i64
  %97 = call noalias ptr @calloc(i64 noundef %96, i64 noundef 8) #7
  store ptr %97, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  store double 0x402921FB54442D18, ptr %47, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  store double 0x4063BD3CC9BE45DE, ptr %48, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  store ptr null, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 264, ptr %58) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 @__const.calculateECPIntegrals.shifts, i64 264, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #6
  store i32 0, ptr %59, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #6
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = call { ptr, ptr } @tabOmega(ptr noundef %98)
  %100 = getelementptr inbounds { ptr, ptr }, ptr %60, i32 0, i32 0
  %101 = extractvalue { ptr, ptr } %99, 0
  store ptr %101, ptr %100, align 8
  %102 = getelementptr inbounds { ptr, ptr }, ptr %60, i32 0, i32 1
  %103 = extractvalue { ptr, ptr } %99, 1
  store ptr %103, ptr %102, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %60, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #6
  store i32 0, ptr %16, align 4, !tbaa !15
  br label %104

104:                                              ; preds = %776, %3
  %105 = load i32, ptr %16, align 4, !tbaa !15
  %106 = load i32, ptr %9, align 4, !tbaa !15
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %779

108:                                              ; preds = %104
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = load i32, ptr %16, align 4, !tbaa !15
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = icmp eq ptr null, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %108
  br label %776

116:                                              ; preds = %108
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load i32, ptr %16, align 4, !tbaa !15
  %119 = mul nsw i32 %118, 3
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %117, i64 %120
  store ptr %121, ptr %32, align 8, !tbaa !5
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._Type2, ptr %122, i32 0, i32 28
  %124 = load ptr, ptr %123, align 8, !tbaa !26
  %125 = getelementptr inbounds %struct.GCIntegrationTable, ptr %124, i32 0, i32 6
  store i32 0, ptr %125, align 8, !tbaa !28
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._Type2, ptr %126, i32 0, i32 28
  %128 = load ptr, ptr %127, align 8, !tbaa !26
  %129 = getelementptr inbounds %struct.GCIntegrationTable, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !22
  %131 = sub nsw i32 %130, 1
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct._Type2, ptr %132, i32 0, i32 28
  %134 = load ptr, ptr %133, align 8, !tbaa !26
  %135 = getelementptr inbounds %struct.GCIntegrationTable, ptr %134, i32 0, i32 7
  store i32 %131, ptr %135, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #6
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load i32, ptr %16, align 4, !tbaa !15
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %136, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._Type2, ptr %141, i32 0, i32 28
  %143 = load ptr, ptr %142, align 8, !tbaa !26
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._Type2, ptr %144, i32 0, i32 12
  %146 = load i32, ptr %145, align 8, !tbaa !30
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct._Type2, ptr %147, i32 0, i32 32
  %149 = load double, ptr %148, align 8, !tbaa !31
  %150 = call { ptr, ptr } @tabECP_FM06(ptr noundef %140, ptr noundef %143, i32 noundef %146, i32 noundef 1, double noundef %149)
  %151 = getelementptr inbounds { ptr, ptr }, ptr %61, i32 0, i32 0
  %152 = extractvalue { ptr, ptr } %150, 0
  store ptr %152, ptr %151, align 8
  %153 = getelementptr inbounds { ptr, ptr }, ptr %61, i32 0, i32 1
  %154 = extractvalue { ptr, ptr } %150, 1
  store ptr %154, ptr %153, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %61, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #6
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load ptr, ptr %32, align 8, !tbaa !5
  %157 = call { ptr, ptr } @calcF_FM06(ptr noundef %155, ptr noundef %156, ptr noundef %49)
  %158 = getelementptr inbounds { ptr, ptr }, ptr %62, i32 0, i32 0
  %159 = extractvalue { ptr, ptr } %157, 0
  store ptr %159, ptr %158, align 8
  %160 = getelementptr inbounds { ptr, ptr }, ptr %62, i32 0, i32 1
  %161 = extractvalue { ptr, ptr } %157, 1
  store ptr %161, ptr %160, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %62, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  store i32 0, ptr %21, align 4, !tbaa !15
  br label %162

162:                                              ; preds = %197, %116
  %163 = load i32, ptr %21, align 4, !tbaa !15
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.Type1, ptr %164, i32 0, i32 16
  %166 = load ptr, ptr %165, align 8, !tbaa !20
  %167 = getelementptr inbounds %struct.GCIntegrationTable, ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 4, !tbaa !22
  %169 = icmp slt i32 %163, %168
  br i1 %169, label %170, label %200

170:                                              ; preds = %162
  %171 = load ptr, ptr %13, align 8, !tbaa !5
  %172 = load i32, ptr %16, align 4, !tbaa !15
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds ptr, ptr %171, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load i32, ptr %16, align 4, !tbaa !15
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds ptr, ptr %176, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._ECP, ptr %180, i32 0, i32 2
  %182 = load i32, ptr %181, align 4, !tbaa !32
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.Type1, ptr %183, i32 0, i32 16
  %185 = load ptr, ptr %184, align 8, !tbaa !20
  %186 = getelementptr inbounds %struct.GCIntegrationTable, ptr %185, i32 0, i32 2
  %187 = load ptr, ptr %186, align 8, !tbaa !34
  %188 = load i32, ptr %21, align 4, !tbaa !15
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %187, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !24
  %192 = call double @evalECP(ptr noundef %175, i32 noundef %182, double noundef %191)
  %193 = load ptr, ptr %44, align 8, !tbaa !5
  %194 = load i32, ptr %21, align 4, !tbaa !15
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  store double %192, ptr %196, align 8, !tbaa !24
  br label %197

197:                                              ; preds = %170
  %198 = load i32, ptr %21, align 4, !tbaa !15
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %21, align 4, !tbaa !15
  br label %162, !llvm.loop !35

200:                                              ; preds = %162
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.Type1, ptr %201, i32 0, i32 16
  %203 = load ptr, ptr %202, align 8, !tbaa !20
  %204 = load ptr, ptr %44, align 8, !tbaa !5
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.Type1, ptr %205, i32 0, i32 17
  %207 = load double, ptr %206, align 8, !tbaa !37
  %208 = call i32 @potentialScreening(ptr noundef %203, ptr noundef %204, double noundef %207)
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.Type1, ptr %209, i32 0, i32 16
  %211 = load ptr, ptr %210, align 8, !tbaa !20
  %212 = getelementptr inbounds %struct.GCIntegrationTable, ptr %211, i32 0, i32 7
  store i32 %208, ptr %212, align 4, !tbaa !29
  store i32 0, ptr %56, align 4, !tbaa !15
  store i32 0, ptr %52, align 4, !tbaa !15
  store i32 0, ptr %54, align 4, !tbaa !15
  store i32 0, ptr %50, align 4, !tbaa !15
  store i32 0, ptr %57, align 4, !tbaa !15
  store i32 0, ptr %53, align 4, !tbaa !15
  store i32 0, ptr %55, align 4, !tbaa !15
  store i32 0, ptr %51, align 4, !tbaa !15
  store i32 0, ptr %14, align 4, !tbaa !15
  br label %213

213:                                              ; preds = %763, %200
  %214 = load i32, ptr %14, align 4, !tbaa !15
  %215 = load i32, ptr %9, align 4, !tbaa !15
  %216 = icmp slt i32 %214, %215
  br i1 %216, label %217, label %766

217:                                              ; preds = %213
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  %219 = load i32, ptr %14, align 4, !tbaa !15
  %220 = mul nsw i32 %219, 3
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds double, ptr %218, i64 %221
  store ptr %222, ptr %30, align 8, !tbaa !5
  %223 = load ptr, ptr %32, align 8, !tbaa !5
  %224 = load ptr, ptr %30, align 8, !tbaa !5
  %225 = call double @distance(ptr noundef %223, ptr noundef %224)
  store double %225, ptr %35, align 8, !tbaa !24
  %226 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 0
  %227 = load ptr, ptr %32, align 8, !tbaa !5
  %228 = load ptr, ptr %30, align 8, !tbaa !5
  call void @distanceVector(ptr noundef %226, ptr noundef %227, ptr noundef %228)
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #6
  %229 = load ptr, ptr %12, align 8, !tbaa !5
  %230 = load i32, ptr %14, align 4, !tbaa !15
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds i32, ptr %229, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !15
  %234 = load i32, ptr %11, align 4, !tbaa !15
  %235 = add nsw i32 %233, %234
  %236 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 0
  %237 = call { ptr, ptr } @unitarySpherePolynomials(i32 noundef %235, ptr noundef %236)
  %238 = getelementptr inbounds { ptr, ptr }, ptr %63, i32 0, i32 0
  %239 = extractvalue { ptr, ptr } %237, 0
  store ptr %239, ptr %238, align 8
  %240 = getelementptr inbounds { ptr, ptr }, ptr %63, i32 0, i32 1
  %241 = extractvalue { ptr, ptr } %237, 1
  store ptr %241, ptr %240, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %63, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #6
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  %243 = load ptr, ptr %12, align 8, !tbaa !5
  %244 = load i32, ptr %14, align 4, !tbaa !15
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds i32, ptr %243, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !15
  %248 = load i32, ptr %11, align 4, !tbaa !15
  %249 = add nsw i32 %247, %248
  %250 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 0
  %251 = getelementptr inbounds { ptr, ptr }, ptr %37, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8
  %253 = getelementptr inbounds { ptr, ptr }, ptr %37, i32 0, i32 1
  %254 = load ptr, ptr %253, align 8
  %255 = call { ptr, ptr } @evalAngularIntegrals(ptr noundef %242, ptr %252, ptr %254, i32 noundef %249, ptr noundef %250)
  %256 = getelementptr inbounds { ptr, ptr }, ptr %64, i32 0, i32 0
  %257 = extractvalue { ptr, ptr } %255, 0
  store ptr %257, ptr %256, align 8
  %258 = getelementptr inbounds { ptr, ptr }, ptr %64, i32 0, i32 1
  %259 = extractvalue { ptr, ptr } %255, 1
  store ptr %259, ptr %258, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %64, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #6
  %260 = load i32, ptr %50, align 4, !tbaa !15
  store i32 %260, ptr %51, align 4, !tbaa !15
  %261 = load i32, ptr %54, align 4, !tbaa !15
  store i32 %261, ptr %55, align 4, !tbaa !15
  %262 = load i32, ptr %14, align 4, !tbaa !15
  store i32 %262, ptr %15, align 4, !tbaa !15
  br label %263

263:                                              ; preds = %749, %217
  %264 = load i32, ptr %15, align 4, !tbaa !15
  %265 = load i32, ptr %9, align 4, !tbaa !15
  %266 = icmp slt i32 %264, %265
  br i1 %266, label %267, label %752

267:                                              ; preds = %263
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = load i32, ptr %15, align 4, !tbaa !15
  %270 = mul nsw i32 %269, 3
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds double, ptr %268, i64 %271
  store ptr %272, ptr %31, align 8, !tbaa !5
  %273 = load ptr, ptr %32, align 8, !tbaa !5
  %274 = load ptr, ptr %31, align 8, !tbaa !5
  %275 = call double @distance(ptr noundef %273, ptr noundef %274)
  store double %275, ptr %36, align 8, !tbaa !24
  %276 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 0
  %277 = load ptr, ptr %32, align 8, !tbaa !5
  %278 = load ptr, ptr %31, align 8, !tbaa !5
  call void @distanceVector(ptr noundef %276, ptr noundef %277, ptr noundef %278)
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #6
  %279 = load ptr, ptr %12, align 8, !tbaa !5
  %280 = load i32, ptr %15, align 4, !tbaa !15
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds i32, ptr %279, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !15
  %284 = load i32, ptr %11, align 4, !tbaa !15
  %285 = add nsw i32 %283, %284
  %286 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 0
  %287 = call { ptr, ptr } @unitarySpherePolynomials(i32 noundef %285, ptr noundef %286)
  %288 = getelementptr inbounds { ptr, ptr }, ptr %65, i32 0, i32 0
  %289 = extractvalue { ptr, ptr } %287, 0
  store ptr %289, ptr %288, align 8
  %290 = getelementptr inbounds { ptr, ptr }, ptr %65, i32 0, i32 1
  %291 = extractvalue { ptr, ptr } %287, 1
  store ptr %291, ptr %290, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %65, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #6
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = load ptr, ptr %12, align 8, !tbaa !5
  %294 = load i32, ptr %15, align 4, !tbaa !15
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds i32, ptr %293, i64 %295
  %297 = load i32, ptr %296, align 4, !tbaa !15
  %298 = load i32, ptr %11, align 4, !tbaa !15
  %299 = add nsw i32 %297, %298
  %300 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 0
  %301 = getelementptr inbounds { ptr, ptr }, ptr %37, i32 0, i32 0
  %302 = load ptr, ptr %301, align 8
  %303 = getelementptr inbounds { ptr, ptr }, ptr %37, i32 0, i32 1
  %304 = load ptr, ptr %303, align 8
  %305 = call { ptr, ptr } @evalAngularIntegrals(ptr noundef %292, ptr %302, ptr %304, i32 noundef %299, ptr noundef %300)
  %306 = getelementptr inbounds { ptr, ptr }, ptr %66, i32 0, i32 0
  %307 = extractvalue { ptr, ptr } %305, 0
  store ptr %307, ptr %306, align 8
  %308 = getelementptr inbounds { ptr, ptr }, ptr %66, i32 0, i32 1
  %309 = extractvalue { ptr, ptr } %305, 1
  store ptr %309, ptr %308, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %66, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #6
  %310 = load i32, ptr %50, align 4, !tbaa !15
  store i32 %310, ptr %52, align 4, !tbaa !15
  %311 = load i32, ptr %54, align 4, !tbaa !15
  store i32 %311, ptr %56, align 4, !tbaa !15
  store i32 0, ptr %19, align 4, !tbaa !15
  br label %312

312:                                              ; preds = %735, %267
  %313 = load i32, ptr %19, align 4, !tbaa !15
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct._libECPHandle, ptr %314, i32 0, i32 3
  %316 = load ptr, ptr %315, align 8, !tbaa !38
  %317 = load i32, ptr %14, align 4, !tbaa !15
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds i32, ptr %316, i64 %318
  %320 = load i32, ptr %319, align 4, !tbaa !15
  %321 = icmp slt i32 %313, %320
  br i1 %321, label %322, label %738

322:                                              ; preds = %312
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct._libECPHandle, ptr %323, i32 0, i32 4
  %325 = load ptr, ptr %324, align 8, !tbaa !39
  %326 = load i32, ptr %52, align 4, !tbaa !15
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds i32, ptr %325, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !15
  store i32 %329, ptr %17, align 4, !tbaa !15
  %330 = load i32, ptr %51, align 4, !tbaa !15
  store i32 %330, ptr %53, align 4, !tbaa !15
  %331 = load i32, ptr %55, align 4, !tbaa !15
  store i32 %331, ptr %57, align 4, !tbaa !15
  store i32 0, ptr %20, align 4, !tbaa !15
  br label %332

332:                                              ; preds = %720, %322
  %333 = load i32, ptr %20, align 4, !tbaa !15
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct._libECPHandle, ptr %334, i32 0, i32 3
  %336 = load ptr, ptr %335, align 8, !tbaa !38
  %337 = load i32, ptr %15, align 4, !tbaa !15
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds i32, ptr %336, i64 %338
  %340 = load i32, ptr %339, align 4, !tbaa !15
  %341 = icmp slt i32 %333, %340
  br i1 %341, label %342, label %723

342:                                              ; preds = %332
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct._libECPHandle, ptr %343, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !39
  %346 = load i32, ptr %53, align 4, !tbaa !15
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds i32, ptr %345, i64 %347
  %349 = load i32, ptr %348, align 4, !tbaa !15
  store i32 %349, ptr %18, align 4, !tbaa !15
  %350 = load i32, ptr %14, align 4, !tbaa !15
  %351 = load i32, ptr %15, align 4, !tbaa !15
  %352 = icmp eq i32 %350, %351
  br i1 %352, label %353, label %357

353:                                              ; preds = %342
  %354 = load i32, ptr %20, align 4, !tbaa !15
  %355 = load i32, ptr %19, align 4, !tbaa !15
  %356 = icmp slt i32 %354, %355
  br i1 %356, label %395, label %357

357:                                              ; preds = %353, %342
  %358 = load i32, ptr %11, align 4, !tbaa !15
  %359 = icmp eq i32 1, %358
  br i1 %359, label %360, label %368

360:                                              ; preds = %357
  %361 = load i32, ptr %14, align 4, !tbaa !15
  %362 = load i32, ptr %16, align 4, !tbaa !15
  %363 = icmp eq i32 %361, %362
  br i1 %363, label %364, label %368

364:                                              ; preds = %360
  %365 = load i32, ptr %15, align 4, !tbaa !15
  %366 = load i32, ptr %16, align 4, !tbaa !15
  %367 = icmp eq i32 %365, %366
  br i1 %367, label %395, label %368

368:                                              ; preds = %364, %360, %357
  %369 = load i32, ptr %11, align 4, !tbaa !15
  %370 = icmp eq i32 2, %369
  br i1 %370, label %371, label %379

371:                                              ; preds = %368
  %372 = load i32, ptr %14, align 4, !tbaa !15
  %373 = load i32, ptr %16, align 4, !tbaa !15
  %374 = icmp eq i32 %372, %373
  br i1 %374, label %375, label %379

375:                                              ; preds = %371
  %376 = load i32, ptr %15, align 4, !tbaa !15
  %377 = load i32, ptr %16, align 4, !tbaa !15
  %378 = icmp eq i32 %376, %377
  br i1 %378, label %395, label %379

379:                                              ; preds = %375, %371, %368
  %380 = load ptr, ptr %49, align 8, !tbaa !5
  %381 = load i32, ptr %52, align 4, !tbaa !15
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds %struct.ScreenedGrid, ptr %380, i64 %382
  %384 = getelementptr inbounds %struct.ScreenedGrid, ptr %383, i32 0, i32 2
  %385 = load i32, ptr %384, align 4, !tbaa !40
  %386 = icmp eq i32 1, %385
  br i1 %386, label %395, label %387

387:                                              ; preds = %379
  %388 = load ptr, ptr %49, align 8, !tbaa !5
  %389 = load i32, ptr %53, align 4, !tbaa !15
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds %struct.ScreenedGrid, ptr %388, i64 %390
  %392 = getelementptr inbounds %struct.ScreenedGrid, ptr %391, i32 0, i32 2
  %393 = load i32, ptr %392, align 4, !tbaa !40
  %394 = icmp eq i32 1, %393
  br i1 %394, label %395, label %407

395:                                              ; preds = %387, %379, %375, %364, %353
  %396 = load ptr, ptr %4, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct._libECPHandle, ptr %396, i32 0, i32 5
  %398 = load ptr, ptr %397, align 8, !tbaa !42
  %399 = load i32, ptr %53, align 4, !tbaa !15
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds i32, ptr %398, i64 %400
  %402 = load i32, ptr %401, align 4, !tbaa !15
  %403 = load i32, ptr %57, align 4, !tbaa !15
  %404 = add nsw i32 %403, %402
  store i32 %404, ptr %57, align 4, !tbaa !15
  %405 = load i32, ptr %53, align 4, !tbaa !15
  %406 = add nsw i32 %405, 1
  store i32 %406, ptr %53, align 4, !tbaa !15
  br label %720

407:                                              ; preds = %387
  %408 = load ptr, ptr %49, align 8, !tbaa !5
  %409 = load i32, ptr %52, align 4, !tbaa !15
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds %struct.ScreenedGrid, ptr %408, i64 %410
  %412 = getelementptr inbounds %struct.ScreenedGrid, ptr %411, i32 0, i32 0
  %413 = load i32, ptr %412, align 4, !tbaa !43
  %414 = load ptr, ptr %49, align 8, !tbaa !5
  %415 = load i32, ptr %53, align 4, !tbaa !15
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds %struct.ScreenedGrid, ptr %414, i64 %416
  %418 = getelementptr inbounds %struct.ScreenedGrid, ptr %417, i32 0, i32 0
  %419 = load i32, ptr %418, align 4, !tbaa !43
  %420 = icmp sgt i32 %413, %419
  br i1 %420, label %421, label %428

421:                                              ; preds = %407
  %422 = load ptr, ptr %49, align 8, !tbaa !5
  %423 = load i32, ptr %52, align 4, !tbaa !15
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds %struct.ScreenedGrid, ptr %422, i64 %424
  %426 = getelementptr inbounds %struct.ScreenedGrid, ptr %425, i32 0, i32 0
  %427 = load i32, ptr %426, align 4, !tbaa !43
  br label %435

428:                                              ; preds = %407
  %429 = load ptr, ptr %49, align 8, !tbaa !5
  %430 = load i32, ptr %53, align 4, !tbaa !15
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds %struct.ScreenedGrid, ptr %429, i64 %431
  %433 = getelementptr inbounds %struct.ScreenedGrid, ptr %432, i32 0, i32 0
  %434 = load i32, ptr %433, align 4, !tbaa !43
  br label %435

435:                                              ; preds = %428, %421
  %436 = phi i32 [ %427, %421 ], [ %434, %428 ]
  store i32 %436, ptr %28, align 4, !tbaa !15
  %437 = load ptr, ptr %49, align 8, !tbaa !5
  %438 = load i32, ptr %52, align 4, !tbaa !15
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds %struct.ScreenedGrid, ptr %437, i64 %439
  %441 = getelementptr inbounds %struct.ScreenedGrid, ptr %440, i32 0, i32 1
  %442 = load i32, ptr %441, align 4, !tbaa !44
  %443 = load ptr, ptr %49, align 8, !tbaa !5
  %444 = load i32, ptr %53, align 4, !tbaa !15
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds %struct.ScreenedGrid, ptr %443, i64 %445
  %447 = getelementptr inbounds %struct.ScreenedGrid, ptr %446, i32 0, i32 1
  %448 = load i32, ptr %447, align 4, !tbaa !44
  %449 = icmp sgt i32 %442, %448
  br i1 %449, label %450, label %457

450:                                              ; preds = %435
  %451 = load ptr, ptr %49, align 8, !tbaa !5
  %452 = load i32, ptr %52, align 4, !tbaa !15
  %453 = sext i32 %452 to i64
  %454 = getelementptr inbounds %struct.ScreenedGrid, ptr %451, i64 %453
  %455 = getelementptr inbounds %struct.ScreenedGrid, ptr %454, i32 0, i32 1
  %456 = load i32, ptr %455, align 4, !tbaa !44
  br label %464

457:                                              ; preds = %435
  %458 = load ptr, ptr %49, align 8, !tbaa !5
  %459 = load i32, ptr %53, align 4, !tbaa !15
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds %struct.ScreenedGrid, ptr %458, i64 %460
  %462 = getelementptr inbounds %struct.ScreenedGrid, ptr %461, i32 0, i32 1
  %463 = load i32, ptr %462, align 4, !tbaa !44
  br label %464

464:                                              ; preds = %457, %450
  %465 = phi i32 [ %456, %450 ], [ %463, %457 ]
  store i32 %465, ptr %29, align 4, !tbaa !15
  %466 = load i32, ptr %28, align 4, !tbaa !15
  %467 = load ptr, ptr %7, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.Type1, ptr %467, i32 0, i32 16
  %469 = load ptr, ptr %468, align 8, !tbaa !20
  %470 = getelementptr inbounds %struct.GCIntegrationTable, ptr %469, i32 0, i32 6
  store i32 %466, ptr %470, align 8, !tbaa !28
  %471 = load i32, ptr %28, align 4, !tbaa !15
  %472 = load ptr, ptr %8, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct._Type2, ptr %472, i32 0, i32 28
  %474 = load ptr, ptr %473, align 8, !tbaa !26
  %475 = getelementptr inbounds %struct.GCIntegrationTable, ptr %474, i32 0, i32 6
  store i32 %471, ptr %475, align 8, !tbaa !28
  %476 = load i32, ptr %29, align 4, !tbaa !15
  %477 = load ptr, ptr %7, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.Type1, ptr %477, i32 0, i32 16
  %479 = load ptr, ptr %478, align 8, !tbaa !20
  %480 = getelementptr inbounds %struct.GCIntegrationTable, ptr %479, i32 0, i32 7
  store i32 %476, ptr %480, align 4, !tbaa !29
  %481 = load i32, ptr %29, align 4, !tbaa !15
  %482 = load ptr, ptr %8, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct._Type2, ptr %482, i32 0, i32 28
  %484 = load ptr, ptr %483, align 8, !tbaa !26
  %485 = getelementptr inbounds %struct.GCIntegrationTable, ptr %484, i32 0, i32 7
  store i32 %481, ptr %485, align 4, !tbaa !29
  store i32 0, ptr %21, align 4, !tbaa !15
  br label %486

486:                                              ; preds = %705, %464
  %487 = load i32, ptr %21, align 4, !tbaa !15
  %488 = load i32, ptr %11, align 4, !tbaa !15
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [3 x %struct.derivativeShift], ptr %58, i64 0, i64 %489
  %491 = getelementptr inbounds %struct.derivativeShift, ptr %490, i32 0, i32 1
  %492 = load i32, ptr %491, align 4, !tbaa !45
  %493 = icmp slt i32 %487, %492
  br i1 %493, label %494, label %708

494:                                              ; preds = %486
  %495 = load i32, ptr %11, align 4, !tbaa !15
  %496 = sext i32 %495 to i64
  %497 = getelementptr inbounds [3 x %struct.derivativeShift], ptr %58, i64 0, i64 %496
  %498 = getelementptr inbounds %struct.derivativeShift, ptr %497, i32 0, i32 2
  %499 = load i32, ptr %21, align 4, !tbaa !15
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds [10 x i32], ptr %498, i64 0, i64 %500
  %502 = load i32, ptr %501, align 4, !tbaa !15
  store i32 %502, ptr %23, align 4, !tbaa !15
  %503 = load i32, ptr %11, align 4, !tbaa !15
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds [3 x %struct.derivativeShift], ptr %58, i64 0, i64 %504
  %506 = getelementptr inbounds %struct.derivativeShift, ptr %505, i32 0, i32 3
  %507 = load i32, ptr %21, align 4, !tbaa !15
  %508 = sext i32 %507 to i64
  %509 = getelementptr inbounds [10 x i32], ptr %506, i64 0, i64 %508
  %510 = load i32, ptr %509, align 4, !tbaa !15
  store i32 %510, ptr %24, align 4, !tbaa !15
  %511 = load i32, ptr %17, align 4, !tbaa !15
  %512 = load i32, ptr %23, align 4, !tbaa !15
  %513 = sub nsw i32 0, %512
  %514 = icmp slt i32 %511, %513
  br i1 %514, label %540, label %515

515:                                              ; preds = %494
  %516 = load i32, ptr %18, align 4, !tbaa !15
  %517 = load i32, ptr %24, align 4, !tbaa !15
  %518 = sub nsw i32 0, %517
  %519 = icmp slt i32 %516, %518
  br i1 %519, label %540, label %520

520:                                              ; preds = %515
  %521 = load i32, ptr %11, align 4, !tbaa !15
  %522 = icmp eq i32 1, %521
  br i1 %522, label %523, label %530

523:                                              ; preds = %520
  %524 = load i32, ptr %16, align 4, !tbaa !15
  %525 = load i32, ptr %14, align 4, !tbaa !15
  %526 = icmp eq i32 %524, %525
  br i1 %526, label %527, label %530

527:                                              ; preds = %523
  %528 = load i32, ptr %23, align 4, !tbaa !15
  %529 = icmp ne i32 0, %528
  br i1 %529, label %540, label %530

530:                                              ; preds = %527, %523, %520
  %531 = load i32, ptr %11, align 4, !tbaa !15
  %532 = icmp eq i32 1, %531
  br i1 %532, label %533, label %541

533:                                              ; preds = %530
  %534 = load i32, ptr %16, align 4, !tbaa !15
  %535 = load i32, ptr %15, align 4, !tbaa !15
  %536 = icmp eq i32 %534, %535
  br i1 %536, label %537, label %541

537:                                              ; preds = %533
  %538 = load i32, ptr %24, align 4, !tbaa !15
  %539 = icmp ne i32 0, %538
  br i1 %539, label %540, label %541

540:                                              ; preds = %537, %527, %515, %494
  br label %705

541:                                              ; preds = %537, %533, %530
  store i32 1, ptr %22, align 4, !tbaa !15
  br label %542

542:                                              ; preds = %701, %541
  %543 = load i32, ptr %22, align 4, !tbaa !15
  %544 = icmp sle i32 %543, 2
  br i1 %544, label %545, label %704

545:                                              ; preds = %542
  %546 = load i32, ptr %22, align 4, !tbaa !15
  %547 = icmp eq i32 1, %546
  br i1 %547, label %548, label %552

548:                                              ; preds = %545
  %549 = load ptr, ptr %7, align 8, !tbaa !5
  %550 = getelementptr inbounds %struct.Type1, ptr %549, i32 0, i32 16
  %551 = load ptr, ptr %550, align 8, !tbaa !20
  store ptr %551, ptr %25, align 8, !tbaa !5
  store double 0x402921FB54442D18, ptr %46, align 8, !tbaa !24
  br label %556

552:                                              ; preds = %545
  %553 = load ptr, ptr %8, align 8, !tbaa !5
  %554 = getelementptr inbounds %struct._Type2, ptr %553, i32 0, i32 28
  %555 = load ptr, ptr %554, align 8, !tbaa !26
  store ptr %555, ptr %25, align 8, !tbaa !5
  store double 0x4063BD3CC9BE45DE, ptr %46, align 8, !tbaa !24
  br label %556

556:                                              ; preds = %552, %548
  %557 = load ptr, ptr %25, align 8, !tbaa !5
  %558 = getelementptr inbounds %struct.GCIntegrationTable, ptr %557, i32 0, i32 6
  %559 = load i32, ptr %558, align 8, !tbaa !28
  %560 = load ptr, ptr %25, align 8, !tbaa !5
  %561 = getelementptr inbounds %struct.GCIntegrationTable, ptr %560, i32 0, i32 7
  %562 = load i32, ptr %561, align 4, !tbaa !29
  %563 = icmp slt i32 %559, %562
  br i1 %563, label %564, label %700

564:                                              ; preds = %556
  %565 = load i32, ptr %17, align 4, !tbaa !15
  %566 = load i32, ptr %23, align 4, !tbaa !15
  %567 = add nsw i32 %565, %566
  store i32 %567, ptr %26, align 4, !tbaa !15
  %568 = load i32, ptr %18, align 4, !tbaa !15
  %569 = load i32, ptr %24, align 4, !tbaa !15
  %570 = add nsw i32 %568, %569
  store i32 %570, ptr %27, align 4, !tbaa !15
  %571 = load i32, ptr %22, align 4, !tbaa !15
  %572 = icmp eq i32 1, %571
  br i1 %572, label %573, label %598

573:                                              ; preds = %564
  call void @llvm.lifetime.start.p0(i64 16, ptr %67) #6
  %574 = load ptr, ptr %7, align 8, !tbaa !5
  %575 = load ptr, ptr %44, align 8, !tbaa !5
  %576 = load ptr, ptr %13, align 8, !tbaa !5
  %577 = load i32, ptr %16, align 4, !tbaa !15
  %578 = sext i32 %577 to i64
  %579 = getelementptr inbounds ptr, ptr %576, i64 %578
  %580 = load ptr, ptr %579, align 8, !tbaa !5
  %581 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 0
  %582 = load double, ptr %35, align 8, !tbaa !24
  %583 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 0
  %584 = load double, ptr %36, align 8, !tbaa !24
  %585 = load i32, ptr %26, align 4, !tbaa !15
  %586 = load i32, ptr %52, align 4, !tbaa !15
  %587 = load i32, ptr %56, align 4, !tbaa !15
  %588 = load i32, ptr %23, align 4, !tbaa !15
  %589 = load i32, ptr %27, align 4, !tbaa !15
  %590 = load i32, ptr %53, align 4, !tbaa !15
  %591 = load i32, ptr %57, align 4, !tbaa !15
  %592 = load i32, ptr %24, align 4, !tbaa !15
  %593 = call { ptr, ptr } @calcChi(ptr noundef %574, ptr noundef %575, ptr noundef %580, ptr noundef %581, double noundef %582, ptr noundef %583, double noundef %584, i32 noundef %585, i32 noundef %586, i32 noundef %587, i32 noundef %588, ptr noundef byval(%struct.doubleArray) align 8 %42, i32 noundef %589, i32 noundef %590, i32 noundef %591, i32 noundef %592, ptr noundef byval(%struct.doubleArray) align 8 %43)
  %594 = getelementptr inbounds { ptr, ptr }, ptr %67, i32 0, i32 0
  %595 = extractvalue { ptr, ptr } %593, 0
  store ptr %595, ptr %594, align 8
  %596 = getelementptr inbounds { ptr, ptr }, ptr %67, i32 0, i32 1
  %597 = extractvalue { ptr, ptr } %593, 1
  store ptr %597, ptr %596, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %67, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %67) #6
  br label %628

598:                                              ; preds = %564
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #6
  %599 = load ptr, ptr %8, align 8, !tbaa !5
  %600 = load ptr, ptr %13, align 8, !tbaa !5
  %601 = load i32, ptr %16, align 4, !tbaa !15
  %602 = sext i32 %601 to i64
  %603 = getelementptr inbounds ptr, ptr %600, i64 %602
  %604 = load ptr, ptr %603, align 8, !tbaa !5
  %605 = load double, ptr %35, align 8, !tbaa !24
  %606 = load double, ptr %36, align 8, !tbaa !24
  %607 = load i32, ptr %26, align 4, !tbaa !15
  %608 = load i32, ptr %52, align 4, !tbaa !15
  %609 = load i32, ptr %56, align 4, !tbaa !15
  %610 = load i32, ptr %23, align 4, !tbaa !15
  %611 = load i32, ptr %27, align 4, !tbaa !15
  %612 = load i32, ptr %53, align 4, !tbaa !15
  %613 = load i32, ptr %57, align 4, !tbaa !15
  %614 = load i32, ptr %24, align 4, !tbaa !15
  %615 = getelementptr inbounds { ptr, ptr }, ptr %40, i32 0, i32 0
  %616 = load ptr, ptr %615, align 8
  %617 = getelementptr inbounds { ptr, ptr }, ptr %40, i32 0, i32 1
  %618 = load ptr, ptr %617, align 8
  %619 = getelementptr inbounds { ptr, ptr }, ptr %41, i32 0, i32 0
  %620 = load ptr, ptr %619, align 8
  %621 = getelementptr inbounds { ptr, ptr }, ptr %41, i32 0, i32 1
  %622 = load ptr, ptr %621, align 8
  %623 = call { ptr, ptr } @calcGamma(ptr noundef %599, ptr %616, ptr %618, ptr %620, ptr %622, ptr noundef %604, double noundef %605, double noundef %606, i32 noundef %607, i32 noundef %608, i32 noundef %609, ptr noundef byval(%struct.doubleArray) align 8 %38, ptr noundef byval(%struct.doubleArray) align 8 %42, i32 noundef %610, i32 noundef %611, i32 noundef %612, i32 noundef %613, ptr noundef byval(%struct.doubleArray) align 8 %39, ptr noundef byval(%struct.doubleArray) align 8 %43, i32 noundef %614)
  %624 = getelementptr inbounds { ptr, ptr }, ptr %68, i32 0, i32 0
  %625 = extractvalue { ptr, ptr } %623, 0
  store ptr %625, ptr %624, align 8
  %626 = getelementptr inbounds { ptr, ptr }, ptr %68, i32 0, i32 1
  %627 = extractvalue { ptr, ptr } %623, 1
  store ptr %627, ptr %626, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %68, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #6
  br label %628

628:                                              ; preds = %598, %573
  %629 = getelementptr inbounds %struct.doubleArray, ptr %45, i32 0, i32 1
  %630 = load ptr, ptr %629, align 8, !tbaa !47
  %631 = icmp eq ptr null, %630
  br i1 %631, label %632, label %634

632:                                              ; preds = %628
  %633 = load i32, ptr %22, align 4, !tbaa !15
  store i32 %633, ptr %59, align 4, !tbaa !15
  br label %780

634:                                              ; preds = %628
  %635 = load i32, ptr %11, align 4, !tbaa !15
  %636 = icmp eq i32 2, %635
  br i1 %636, label %637, label %655

637:                                              ; preds = %634
  %638 = load i32, ptr %23, align 4, !tbaa !15
  %639 = icmp eq i32 1, %638
  br i1 %639, label %640, label %645

640:                                              ; preds = %637
  %641 = load i32, ptr %24, align 4, !tbaa !15
  %642 = icmp eq i32 0, %641
  br i1 %642, label %643, label %645

643:                                              ; preds = %640
  %644 = load i32, ptr %17, align 4, !tbaa !15
  store i32 %644, ptr %26, align 4, !tbaa !15
  br label %654

645:                                              ; preds = %640, %637
  %646 = load i32, ptr %23, align 4, !tbaa !15
  %647 = icmp eq i32 0, %646
  br i1 %647, label %648, label %653

648:                                              ; preds = %645
  %649 = load i32, ptr %24, align 4, !tbaa !15
  %650 = icmp eq i32 1, %649
  br i1 %650, label %651, label %653

651:                                              ; preds = %648
  %652 = load i32, ptr %18, align 4, !tbaa !15
  store i32 %652, ptr %27, align 4, !tbaa !15
  br label %653

653:                                              ; preds = %651, %648, %645
  br label %654

654:                                              ; preds = %653, %643
  br label %655

655:                                              ; preds = %654, %634
  call void @llvm.lifetime.start.p0(i64 16, ptr %69) #6
  %656 = load ptr, ptr %4, align 8, !tbaa !5
  %657 = getelementptr inbounds %struct._libECPHandle, ptr %656, i32 0, i32 20
  %658 = load ptr, ptr %657, align 8, !tbaa !49
  %659 = load ptr, ptr %4, align 8, !tbaa !5
  %660 = getelementptr inbounds %struct._libECPHandle, ptr %659, i32 0, i32 21
  %661 = load ptr, ptr %660, align 8, !tbaa !50
  %662 = load ptr, ptr %4, align 8, !tbaa !5
  %663 = getelementptr inbounds %struct._libECPHandle, ptr %662, i32 0, i32 22
  %664 = load i32, ptr %663, align 8, !tbaa !51
  %665 = load ptr, ptr %4, align 8, !tbaa !5
  %666 = getelementptr inbounds %struct._libECPHandle, ptr %665, i32 0, i32 18
  %667 = load ptr, ptr %666, align 8, !tbaa !52
  %668 = load ptr, ptr %4, align 8, !tbaa !5
  %669 = getelementptr inbounds %struct._libECPHandle, ptr %668, i32 0, i32 29
  %670 = load double, ptr %669, align 8, !tbaa !53
  %671 = load double, ptr %46, align 8, !tbaa !24
  %672 = load i32, ptr %26, align 4, !tbaa !15
  %673 = load i32, ptr %27, align 4, !tbaa !15
  %674 = getelementptr inbounds { ptr, ptr }, ptr %45, i32 0, i32 0
  %675 = load ptr, ptr %674, align 8
  %676 = getelementptr inbounds { ptr, ptr }, ptr %45, i32 0, i32 1
  %677 = load ptr, ptr %676, align 8
  %678 = call { ptr, ptr } @calcPolynomials(ptr %675, ptr %677, ptr noundef %658, ptr noundef %661, i32 noundef %664, ptr noundef %667, double noundef %670, double noundef %671, i32 noundef %672, ptr noundef byval(%struct.doubleArray) align 8 %42, i32 noundef %673, ptr noundef byval(%struct.doubleArray) align 8 %43)
  %679 = getelementptr inbounds { ptr, ptr }, ptr %69, i32 0, i32 0
  %680 = extractvalue { ptr, ptr } %678, 0
  store ptr %680, ptr %679, align 8
  %681 = getelementptr inbounds { ptr, ptr }, ptr %69, i32 0, i32 1
  %682 = extractvalue { ptr, ptr } %678, 1
  store ptr %682, ptr %681, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %69, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #6
  %683 = load ptr, ptr %5, align 8, !tbaa !5
  %684 = load i32, ptr %14, align 4, !tbaa !15
  %685 = load i32, ptr %19, align 4, !tbaa !15
  %686 = load i32, ptr %17, align 4, !tbaa !15
  %687 = load i32, ptr %23, align 4, !tbaa !15
  %688 = load i32, ptr %15, align 4, !tbaa !15
  %689 = load i32, ptr %20, align 4, !tbaa !15
  %690 = load i32, ptr %18, align 4, !tbaa !15
  %691 = load i32, ptr %24, align 4, !tbaa !15
  %692 = load i32, ptr %16, align 4, !tbaa !15
  %693 = getelementptr inbounds %struct.doubleArray, ptr %45, i32 0, i32 1
  %694 = load ptr, ptr %693, align 8, !tbaa !47
  %695 = load ptr, ptr %6, align 8, !tbaa !5
  call void %683(i32 noundef %684, i32 noundef %685, i32 noundef %686, i32 noundef %687, i32 noundef %688, i32 noundef %689, i32 noundef %690, i32 noundef %691, i32 noundef %692, ptr noundef %694, ptr noundef %695)
  %696 = getelementptr inbounds { ptr, ptr }, ptr %45, i32 0, i32 0
  %697 = load ptr, ptr %696, align 8
  %698 = getelementptr inbounds { ptr, ptr }, ptr %45, i32 0, i32 1
  %699 = load ptr, ptr %698, align 8
  call void @doubleArray_free(ptr %697, ptr %699)
  br label %700

700:                                              ; preds = %655, %556
  br label %701

701:                                              ; preds = %700
  %702 = load i32, ptr %22, align 4, !tbaa !15
  %703 = add nsw i32 %702, 1
  store i32 %703, ptr %22, align 4, !tbaa !15
  br label %542, !llvm.loop !54

704:                                              ; preds = %542
  br label %705

705:                                              ; preds = %704, %540
  %706 = load i32, ptr %21, align 4, !tbaa !15
  %707 = add nsw i32 %706, 1
  store i32 %707, ptr %21, align 4, !tbaa !15
  br label %486, !llvm.loop !55

708:                                              ; preds = %486
  %709 = load ptr, ptr %4, align 8, !tbaa !5
  %710 = getelementptr inbounds %struct._libECPHandle, ptr %709, i32 0, i32 5
  %711 = load ptr, ptr %710, align 8, !tbaa !42
  %712 = load i32, ptr %53, align 4, !tbaa !15
  %713 = sext i32 %712 to i64
  %714 = getelementptr inbounds i32, ptr %711, i64 %713
  %715 = load i32, ptr %714, align 4, !tbaa !15
  %716 = load i32, ptr %57, align 4, !tbaa !15
  %717 = add nsw i32 %716, %715
  store i32 %717, ptr %57, align 4, !tbaa !15
  %718 = load i32, ptr %53, align 4, !tbaa !15
  %719 = add nsw i32 %718, 1
  store i32 %719, ptr %53, align 4, !tbaa !15
  br label %720

720:                                              ; preds = %708, %395
  %721 = load i32, ptr %20, align 4, !tbaa !15
  %722 = add nsw i32 %721, 1
  store i32 %722, ptr %20, align 4, !tbaa !15
  br label %332, !llvm.loop !56

723:                                              ; preds = %332
  %724 = load ptr, ptr %4, align 8, !tbaa !5
  %725 = getelementptr inbounds %struct._libECPHandle, ptr %724, i32 0, i32 5
  %726 = load ptr, ptr %725, align 8, !tbaa !42
  %727 = load i32, ptr %52, align 4, !tbaa !15
  %728 = sext i32 %727 to i64
  %729 = getelementptr inbounds i32, ptr %726, i64 %728
  %730 = load i32, ptr %729, align 4, !tbaa !15
  %731 = load i32, ptr %56, align 4, !tbaa !15
  %732 = add nsw i32 %731, %730
  store i32 %732, ptr %56, align 4, !tbaa !15
  %733 = load i32, ptr %52, align 4, !tbaa !15
  %734 = add nsw i32 %733, 1
  store i32 %734, ptr %52, align 4, !tbaa !15
  br label %735

735:                                              ; preds = %723
  %736 = load i32, ptr %19, align 4, !tbaa !15
  %737 = add nsw i32 %736, 1
  store i32 %737, ptr %19, align 4, !tbaa !15
  br label %312, !llvm.loop !57

738:                                              ; preds = %312
  %739 = load i32, ptr %53, align 4, !tbaa !15
  store i32 %739, ptr %51, align 4, !tbaa !15
  %740 = load i32, ptr %57, align 4, !tbaa !15
  store i32 %740, ptr %55, align 4, !tbaa !15
  %741 = getelementptr inbounds { ptr, ptr }, ptr %39, i32 0, i32 0
  %742 = load ptr, ptr %741, align 8
  %743 = getelementptr inbounds { ptr, ptr }, ptr %39, i32 0, i32 1
  %744 = load ptr, ptr %743, align 8
  call void @doubleArray_free(ptr %742, ptr %744)
  %745 = getelementptr inbounds { ptr, ptr }, ptr %43, i32 0, i32 0
  %746 = load ptr, ptr %745, align 8
  %747 = getelementptr inbounds { ptr, ptr }, ptr %43, i32 0, i32 1
  %748 = load ptr, ptr %747, align 8
  call void @doubleArray_free(ptr %746, ptr %748)
  br label %749

749:                                              ; preds = %738
  %750 = load i32, ptr %15, align 4, !tbaa !15
  %751 = add nsw i32 %750, 1
  store i32 %751, ptr %15, align 4, !tbaa !15
  br label %263, !llvm.loop !58

752:                                              ; preds = %263
  %753 = load i32, ptr %52, align 4, !tbaa !15
  store i32 %753, ptr %50, align 4, !tbaa !15
  %754 = load i32, ptr %56, align 4, !tbaa !15
  store i32 %754, ptr %54, align 4, !tbaa !15
  %755 = getelementptr inbounds { ptr, ptr }, ptr %38, i32 0, i32 0
  %756 = load ptr, ptr %755, align 8
  %757 = getelementptr inbounds { ptr, ptr }, ptr %38, i32 0, i32 1
  %758 = load ptr, ptr %757, align 8
  call void @doubleArray_free(ptr %756, ptr %758)
  %759 = getelementptr inbounds { ptr, ptr }, ptr %42, i32 0, i32 0
  %760 = load ptr, ptr %759, align 8
  %761 = getelementptr inbounds { ptr, ptr }, ptr %42, i32 0, i32 1
  %762 = load ptr, ptr %761, align 8
  call void @doubleArray_free(ptr %760, ptr %762)
  br label %763

763:                                              ; preds = %752
  %764 = load i32, ptr %14, align 4, !tbaa !15
  %765 = add nsw i32 %764, 1
  store i32 %765, ptr %14, align 4, !tbaa !15
  br label %213, !llvm.loop !59

766:                                              ; preds = %213
  %767 = getelementptr inbounds { ptr, ptr }, ptr %41, i32 0, i32 0
  %768 = load ptr, ptr %767, align 8
  %769 = getelementptr inbounds { ptr, ptr }, ptr %41, i32 0, i32 1
  %770 = load ptr, ptr %769, align 8
  call void @doubleArray_free(ptr %768, ptr %770)
  %771 = getelementptr inbounds { ptr, ptr }, ptr %40, i32 0, i32 0
  %772 = load ptr, ptr %771, align 8
  %773 = getelementptr inbounds { ptr, ptr }, ptr %40, i32 0, i32 1
  %774 = load ptr, ptr %773, align 8
  call void @doubleArray_free(ptr %772, ptr %774)
  %775 = load ptr, ptr %49, align 8, !tbaa !5
  call void @free(ptr noundef %775) #6
  br label %776

776:                                              ; preds = %766, %115
  %777 = load i32, ptr %16, align 4, !tbaa !15
  %778 = add nsw i32 %777, 1
  store i32 %778, ptr %16, align 4, !tbaa !15
  br label %104, !llvm.loop !60

779:                                              ; preds = %104
  br label %780

780:                                              ; preds = %779, %632
  %781 = getelementptr inbounds { ptr, ptr }, ptr %37, i32 0, i32 0
  %782 = load ptr, ptr %781, align 8
  %783 = getelementptr inbounds { ptr, ptr }, ptr %37, i32 0, i32 1
  %784 = load ptr, ptr %783, align 8
  call void @doubleArray_free(ptr %782, ptr %784)
  %785 = load ptr, ptr %44, align 8, !tbaa !5
  call void @free(ptr noundef %785) #6
  %786 = load i32, ptr %59, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 264, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret i32 %786
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare { ptr, ptr } @tabOmega(ptr noundef) #4

declare { ptr, ptr } @tabECP_FM06(ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef) #4

declare { ptr, ptr } @calcF_FM06(ptr noundef, ptr noundef, ptr noundef) #4

declare double @evalECP(ptr noundef, i32 noundef, double noundef) #4

declare i32 @potentialScreening(ptr noundef, ptr noundef, double noundef) #4

declare double @distance(ptr noundef, ptr noundef) #4

declare void @distanceVector(ptr noundef, ptr noundef, ptr noundef) #4

declare { ptr, ptr } @unitarySpherePolynomials(i32 noundef, ptr noundef) #4

declare { ptr, ptr } @evalAngularIntegrals(ptr noundef, ptr, ptr, i32 noundef, ptr noundef) #4

declare { ptr, ptr } @calcChi(ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8) #4

declare { ptr, ptr } @calcGamma(ptr noundef, ptr, ptr, ptr, ptr, ptr noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8, ptr noundef byval(%struct.doubleArray) align 8, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8, ptr noundef byval(%struct.doubleArray) align 8, i32 noundef) #4

declare { ptr, ptr } @calcPolynomials(ptr, ptr, ptr noundef, ptr noundef, i32 noundef, ptr noundef, double noundef, double noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8) #4

declare void @doubleArray_free(ptr, ptr) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0,1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 96}
!10 = !{!"_libECPHandle", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !11, i64 160, !11, i64 164, !11, i64 168, !6, i64 176, !6, i64 184, !11, i64 192, !12, i64 200, !12, i64 208}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !6, i64 104}
!14 = !{!10, !11, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !6, i64 8}
!17 = !{!10, !11, i64 64}
!18 = !{!10, !6, i64 88}
!19 = !{!10, !6, i64 16}
!20 = !{!21, !6, i64 120}
!21 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !6, i64 120, !12, i64 128, !12, i64 136, !12, i64 144}
!22 = !{!23, !11, i64 4}
!23 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 44}
!24 = !{!12, !12, i64 0}
!25 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!26 = !{!27, !6, i64 184}
!27 = !{!"_Type2", !11, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !6, i64 128, !11, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !6, i64 184, !11, i64 192, !6, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !11, i64 232}
!28 = !{!23, !11, i64 40}
!29 = !{!23, !11, i64 44}
!30 = !{!27, !11, i64 80}
!31 = !{!27, !12, i64 216}
!32 = !{!33, !11, i64 12}
!33 = !{!"_ECP", !6, i64 0, !11, i64 8, !11, i64 12}
!34 = !{!23, !6, i64 8}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!21, !12, i64 128}
!38 = !{!10, !6, i64 24}
!39 = !{!10, !6, i64 32}
!40 = !{!41, !11, i64 8}
!41 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!42 = !{!10, !6, i64 40}
!43 = !{!41, !11, i64 0}
!44 = !{!41, !11, i64 4}
!45 = !{!46, !11, i64 4}
!46 = !{!"", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 48}
!47 = !{!48, !6, i64 8}
!48 = !{!"", !6, i64 0, !6, i64 8}
!49 = !{!10, !6, i64 144}
!50 = !{!10, !6, i64 152}
!51 = !{!10, !11, i64 160}
!52 = !{!10, !6, i64 128}
!53 = !{!10, !12, i64 208}
!54 = distinct !{!54, !36}
!55 = distinct !{!55, !36}
!56 = distinct !{!56, !36}
!57 = distinct !{!57, !36}
!58 = distinct !{!58, !36}
!59 = distinct !{!59, !36}
!60 = distinct !{!60, !36}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.derivativeShift = type { i32, i32, [10 x i32], [10 x i32] }
%struct.doubleArray = type { ptr, ptr }
%struct.ScreenedGrid = type { i32, i32, i32 }

@__const.calculateECPIntegrals.shifts = external hidden unnamed_addr constant <{ %struct.derivativeShift, { i32, i32, <{ i32, i32, [8 x i32] }>, [10 x i32] }, %struct.derivativeShift }>, align 16

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @calculateECPIntegrals(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca [3 x double], align 16
  %5 = alloca [3 x double], align 16
  %6 = alloca %struct.doubleArray, align 8
  %7 = alloca %struct.doubleArray, align 8
  %8 = alloca %struct.doubleArray, align 8
  %9 = alloca %struct.doubleArray, align 8
  %10 = alloca ptr, align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 96
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 104
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  %15 = load i32, ptr %0, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  %19 = load i32, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  %21 = load ptr, ptr %20, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %24 = getelementptr inbounds i8, ptr %12, i64 120
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %25, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !20
  %28 = sext i32 %27 to i64
  %29 = tail call noalias ptr @calloc(i64 noundef %28, i64 noundef 8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store ptr null, ptr %10, align 8, !tbaa !22
  %30 = tail call { ptr, ptr } @tabOmega(ptr noundef %14) #6
  %31 = extractvalue { ptr, ptr } %30, 0
  %32 = extractvalue { ptr, ptr } %30, 1
  %33 = icmp sgt i32 %15, 0
  br i1 %33, label %.lr.ph396, label %.loopexit316

.lr.ph396:                                        ; preds = %3
  %34 = getelementptr inbounds i8, ptr %14, i64 184
  %35 = getelementptr inbounds i8, ptr %14, i64 80
  %36 = getelementptr inbounds i8, ptr %14, i64 216
  %37 = getelementptr inbounds i8, ptr %12, i64 128
  %.sroa.419.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.417.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.415.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.413.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  %39 = getelementptr inbounds i8, ptr %0, i64 32
  %40 = icmp eq i32 %19, 1
  %41 = icmp eq i32 %19, 2
  %42 = sext i32 %19 to i64
  %43 = getelementptr inbounds [3 x %struct.derivativeShift], ptr @__const.calculateECPIntegrals.shifts, i64 0, i64 %42
  %44 = getelementptr inbounds i8, ptr %43, i64 4
  %45 = getelementptr inbounds i8, ptr %43, i64 8
  %46 = getelementptr inbounds i8, ptr %43, i64 48
  %47 = getelementptr inbounds i8, ptr %0, i64 144
  %48 = getelementptr inbounds i8, ptr %0, i64 152
  %49 = getelementptr inbounds i8, ptr %0, i64 160
  %50 = getelementptr inbounds i8, ptr %0, i64 128
  %51 = getelementptr inbounds i8, ptr %0, i64 208
  %.pn305.in = getelementptr inbounds i8, ptr %0, i64 40
  %wide.trip.count459 = zext nneg i32 %15 to i64
  br label %52

52:                                               ; preds = %.lr.ph396, %315
  %indvars.iv456 = phi i64 [ 0, %.lr.ph396 ], [ %indvars.iv.next457, %315 ]
  %53 = getelementptr inbounds ptr, ptr %23, i64 %indvars.iv456
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = icmp eq ptr %54, null
  br i1 %55, label %315, label %56

56:                                               ; preds = %52
  %.idx = mul i64 %indvars.iv456, 24
  %57 = getelementptr inbounds i8, ptr %17, i64 %.idx
  %58 = load ptr, ptr %34, align 8, !tbaa !23
  %59 = getelementptr inbounds i8, ptr %58, i64 40
  store i32 0, ptr %59, align 8, !tbaa !25
  %60 = getelementptr inbounds i8, ptr %58, i64 4
  %61 = load i32, ptr %60, align 4, !tbaa !20
  %62 = add nsw i32 %61, -1
  %63 = getelementptr inbounds i8, ptr %58, i64 44
  store i32 %62, ptr %63, align 4, !tbaa !26
  %64 = load i32, ptr %35, align 8, !tbaa !27
  %65 = load double, ptr %36, align 8, !tbaa !28
  %66 = call { ptr, ptr } @tabECP_FM06(ptr noundef nonnull %54, ptr noundef %58, i32 noundef %64, i32 noundef 1, double noundef %65) #6
  %67 = extractvalue { ptr, ptr } %66, 0
  %68 = extractvalue { ptr, ptr } %66, 1
  %69 = call { ptr, ptr } @calcF_FM06(ptr noundef %14, ptr noundef %57, ptr noundef nonnull %10) #6
  %70 = extractvalue { ptr, ptr } %69, 0
  %71 = extractvalue { ptr, ptr } %69, 1
  %72 = load ptr, ptr %24, align 8, !tbaa !18
  %73 = getelementptr inbounds i8, ptr %72, i64 4
  %74 = load i32, ptr %73, align 4, !tbaa !20
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph, label %.lr.ph391.preheader

.lr.ph:                                           ; preds = %56, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %56 ]
  %76 = phi ptr [ %86, %.lr.ph ], [ %72, %56 ]
  %77 = load ptr, ptr %53, align 8, !tbaa !22
  %78 = getelementptr inbounds i8, ptr %77, i64 12
  %79 = load i32, ptr %78, align 4, !tbaa !29
  %80 = getelementptr inbounds i8, ptr %76, i64 8
  %81 = load ptr, ptr %80, align 8, !tbaa !31
  %82 = getelementptr inbounds double, ptr %81, i64 %indvars.iv
  %83 = load double, ptr %82, align 8, !tbaa !32
  %84 = call double @evalECP(ptr noundef %77, i32 noundef %79, double noundef %83) #6
  %85 = getelementptr inbounds double, ptr %29, i64 %indvars.iv
  store double %84, ptr %85, align 8, !tbaa !32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = load ptr, ptr %24, align 8, !tbaa !18
  %87 = getelementptr inbounds i8, ptr %86, i64 4
  %88 = load i32, ptr %87, align 4, !tbaa !20
  %89 = sext i32 %88 to i64
  %90 = icmp slt i64 %indvars.iv.next, %89
  br i1 %90, label %.lr.ph, label %.lr.ph391.preheader, !llvm.loop !33

.lr.ph391.preheader:                              ; preds = %.lr.ph, %56
  %.lcssa = phi ptr [ %72, %56 ], [ %86, %.lr.ph ]
  %91 = load double, ptr %37, align 8, !tbaa !35
  %92 = call i32 @potentialScreening(ptr noundef nonnull %.lcssa, ptr noundef %29, double noundef %91) #6
  %93 = load ptr, ptr %24, align 8, !tbaa !18
  %94 = getelementptr inbounds i8, ptr %93, i64 44
  store i32 %92, ptr %94, align 4, !tbaa !26
  %95 = trunc nuw nsw i64 %indvars.iv456 to i32
  %96 = trunc nuw nsw i64 %indvars.iv456 to i32
  br label %.lr.ph391

.lr.ph391:                                        ; preds = %.lr.ph391.preheader, %309
  %indvars.iv446 = phi i64 [ 0, %.lr.ph391.preheader ], [ %indvars.iv.next447, %309 ]
  %.0278388 = phi i32 [ 0, %.lr.ph391.preheader ], [ %.2.lcssa, %309 ]
  %.0282387 = phi i32 [ 0, %.lr.ph391.preheader ], [ %.2284.lcssa, %309 ]
  %.0285386 = phi i32 [ 0, %.lr.ph391.preheader ], [ %.2289.lcssa, %309 ]
  %.0291385 = phi i32 [ 0, %.lr.ph391.preheader ], [ %.2293.lcssa, %309 ]
  %.idx464 = mul i64 %indvars.iv446, 24
  %97 = getelementptr inbounds i8, ptr %17, i64 %.idx464
  %98 = call double @distance(ptr noundef %57, ptr noundef %97) #6
  call void @distanceVector(ptr noundef nonnull %4, ptr noundef %57, ptr noundef %97) #6
  %99 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv446
  %100 = load i32, ptr %99, align 4, !tbaa !36
  %101 = add nsw i32 %100, %19
  %102 = call { ptr, ptr } @unitarySpherePolynomials(i32 noundef %101, ptr noundef nonnull %4) #6
  %103 = extractvalue { ptr, ptr } %102, 0
  %104 = extractvalue { ptr, ptr } %102, 1
  store ptr %103, ptr %8, align 8, !tbaa !22
  store ptr %104, ptr %.sroa.419.0..sroa_idx, align 8, !tbaa !22
  %105 = load i32, ptr %99, align 4, !tbaa !36
  %106 = add nsw i32 %105, %19
  %107 = call { ptr, ptr } @evalAngularIntegrals(ptr noundef %14, ptr %31, ptr %32, i32 noundef %106, ptr noundef nonnull %4) #6
  %108 = extractvalue { ptr, ptr } %107, 0
  %109 = extractvalue { ptr, ptr } %107, 1
  store ptr %108, ptr %6, align 8, !tbaa !22
  store ptr %109, ptr %.sroa.417.0..sroa_idx, align 8, !tbaa !22
  %110 = icmp eq i64 %indvars.iv446, %indvars.iv456
  %or.cond307 = and i1 %40, %110
  %or.cond309 = and i1 %41, %110
  %111 = sext i32 %.0278388 to i64
  %112 = trunc nuw nsw i64 %indvars.iv446 to i32
  %113 = trunc nuw nsw i64 %indvars.iv446 to i32
  %114 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.0285386, i64 0
  br label %115

115:                                              ; preds = %.lr.ph391, %._crit_edge370
  %indvars.iv448 = phi i64 [ %indvars.iv446, %.lr.ph391 ], [ %indvars.iv.next449, %._crit_edge370 ]
  %.0279382 = phi i32 [ %.0278388, %.lr.ph391 ], [ %.2284.lcssa, %._crit_edge370 ]
  %.1283381 = phi i32 [ %.0282387, %.lr.ph391 ], [ %.2284.lcssa, %._crit_edge370 ]
  %.0286380 = phi i32 [ %.0285386, %.lr.ph391 ], [ %.2293.lcssa, %._crit_edge370 ]
  %.1292379 = phi i32 [ %.0291385, %.lr.ph391 ], [ %.2293.lcssa, %._crit_edge370 ]
  %.idx465 = mul i64 %indvars.iv448, 24
  %116 = getelementptr inbounds i8, ptr %17, i64 %.idx465
  %117 = call double @distance(ptr noundef %57, ptr noundef %116) #6
  call void @distanceVector(ptr noundef nonnull %5, ptr noundef %57, ptr noundef %116) #6
  %118 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv448
  %119 = load i32, ptr %118, align 4, !tbaa !36
  %120 = add nsw i32 %119, %19
  %121 = call { ptr, ptr } @unitarySpherePolynomials(i32 noundef %120, ptr noundef nonnull %5) #6
  %122 = extractvalue { ptr, ptr } %121, 0
  %123 = extractvalue { ptr, ptr } %121, 1
  store ptr %122, ptr %9, align 8, !tbaa !22
  store ptr %123, ptr %.sroa.415.0..sroa_idx, align 8, !tbaa !22
  %124 = load i32, ptr %118, align 4, !tbaa !36
  %125 = add nsw i32 %124, %19
  %126 = call { ptr, ptr } @evalAngularIntegrals(ptr noundef %14, ptr %31, ptr %32, i32 noundef %125, ptr noundef nonnull %5) #6
  %127 = extractvalue { ptr, ptr } %126, 0
  %128 = extractvalue { ptr, ptr } %126, 1
  store ptr %127, ptr %7, align 8, !tbaa !22
  store ptr %128, ptr %.sroa.413.0..sroa_idx, align 8, !tbaa !22
  %129 = load ptr, ptr %38, align 8, !tbaa !37
  %130 = getelementptr inbounds i32, ptr %129, i64 %indvars.iv446
  %131 = load i32, ptr %130, align 4, !tbaa !36
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %.lr.ph369, label %._crit_edge370

.lr.ph369:                                        ; preds = %115
  %133 = icmp eq i64 %indvars.iv446, %indvars.iv448
  %.fr = freeze i1 %133
  %134 = icmp eq i64 %indvars.iv448, %indvars.iv456
  %or.cond308 = and i1 %or.cond307, %134
  %or.cond310 = and i1 %or.cond309, %134
  %or.cond308.fr = freeze i1 %or.cond308
  %or.cond310.fr = freeze i1 %or.cond310
  %135 = getelementptr inbounds i32, ptr %129, i64 %indvars.iv448
  %136 = load i32, ptr %135, align 4, !tbaa !36
  %137 = icmp sgt i32 %136, 0
  br i1 %137, label %.lr.ph369.split.preheader, label %.lr.ph369.split.us

.lr.ph369.split.preheader:                        ; preds = %.lr.ph369
  %138 = sext i32 %.0279382 to i64
  %139 = trunc nuw nsw i64 %indvars.iv448 to i32
  %140 = trunc nuw nsw i64 %indvars.iv448 to i32
  %141 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.0286380, i64 0
  %142 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.0286380, i64 0
  %143 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.0286380, i64 0
  %144 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.0286380, i64 0
  br label %.lr.ph369.split

.lr.ph369.split.us:                               ; preds = %.lr.ph369
  %145 = load ptr, ptr %.pn305.in, align 8, !tbaa !38
  %146 = zext nneg i32 %131 to i64
  %min.iters.check545 = icmp ult i32 %131, 8
  br i1 %min.iters.check545, label %scalar.ph544.preheader, label %vector.ph546

vector.ph546:                                     ; preds = %.lr.ph369.split.us
  %n.vec548 = and i64 %146, 2147483640
  %ind.end549 = add nsw i64 %n.vec548, %111
  %ind.end551 = trunc nuw nsw i64 %n.vec548 to i32
  %invariant.gep = getelementptr i32, ptr %145, i64 %111
  br label %vector.body553

vector.body553:                                   ; preds = %vector.body553, %vector.ph546
  %index554 = phi i64 [ 0, %vector.ph546 ], [ %index.next560, %vector.body553 ]
  %vec.phi555 = phi <4 x i32> [ %114, %vector.ph546 ], [ %148, %vector.body553 ]
  %vec.phi556 = phi <4 x i32> [ zeroinitializer, %vector.ph546 ], [ %149, %vector.body553 ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %index554
  %147 = getelementptr inbounds i8, ptr %gep, i64 16
  %wide.load558 = load <4 x i32>, ptr %gep, align 4, !tbaa !36
  %wide.load559 = load <4 x i32>, ptr %147, align 4, !tbaa !36
  %148 = add <4 x i32> %wide.load558, %vec.phi555
  %149 = add <4 x i32> %wide.load559, %vec.phi556
  %index.next560 = add nuw i64 %index554, 8
  %150 = icmp eq i64 %index.next560, %n.vec548
  br i1 %150, label %middle.block543, label %vector.body553, !llvm.loop !39

middle.block543:                                  ; preds = %vector.body553
  %bin.rdx561 = add <4 x i32> %149, %148
  %151 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx561)
  %cmp.n562 = icmp eq i64 %n.vec548, %146
  br i1 %cmp.n562, label %._crit_edge370.loopexit403, label %scalar.ph544.preheader

scalar.ph544.preheader:                           ; preds = %middle.block543, %.lr.ph369.split.us
  %indvars.iv412.ph = phi i64 [ %111, %.lr.ph369.split.us ], [ %ind.end549, %middle.block543 ]
  %.0270364.us.ph = phi i32 [ 0, %.lr.ph369.split.us ], [ %ind.end551, %middle.block543 ]
  %.2289362.us.ph = phi i32 [ %.0285386, %.lr.ph369.split.us ], [ %151, %middle.block543 ]
  br label %scalar.ph544

scalar.ph544:                                     ; preds = %scalar.ph544.preheader, %scalar.ph544
  %indvars.iv412 = phi i64 [ %indvars.iv.next413, %scalar.ph544 ], [ %indvars.iv412.ph, %scalar.ph544.preheader ]
  %.0270364.us = phi i32 [ %155, %scalar.ph544 ], [ %.0270364.us.ph, %scalar.ph544.preheader ]
  %.2289362.us = phi i32 [ %154, %scalar.ph544 ], [ %.2289362.us.ph, %scalar.ph544.preheader ]
  %152 = getelementptr inbounds i32, ptr %145, i64 %indvars.iv412
  %153 = load i32, ptr %152, align 4, !tbaa !36
  %154 = add nsw i32 %153, %.2289362.us
  %indvars.iv.next413 = add nsw i64 %indvars.iv412, 1
  %155 = add nuw nsw i32 %.0270364.us, 1
  %exitcond.not = icmp eq i32 %155, %131
  br i1 %exitcond.not, label %._crit_edge370.loopexit403, label %scalar.ph544, !llvm.loop !42

.lr.ph369.split:                                  ; preds = %.lr.ph369.split.preheader, %._crit_edge340
  %156 = phi ptr [ %129, %.lr.ph369.split.preheader ], [ %294, %._crit_edge340 ]
  %indvars.iv443 = phi i64 [ %111, %.lr.ph369.split.preheader ], [ %indvars.iv.next444, %._crit_edge340 ]
  %.0270364 = phi i32 [ 0, %.lr.ph369.split.preheader ], [ %299, %._crit_edge340 ]
  %.2289362 = phi i32 [ %.0285386, %.lr.ph369.split.preheader ], [ %298, %._crit_edge340 ]
  %157 = load ptr, ptr %39, align 8, !tbaa !43
  %158 = getelementptr inbounds i32, ptr %157, i64 %indvars.iv443
  %159 = load i32, ptr %158, align 4, !tbaa !36
  %160 = getelementptr inbounds i32, ptr %156, i64 %indvars.iv448
  %161 = load i32, ptr %160, align 4, !tbaa !36
  %162 = icmp sgt i32 %161, 0
  br i1 %162, label %.lr.ph339, label %.lr.ph369.split.._crit_edge340_crit_edge

.lr.ph369.split.._crit_edge340_crit_edge:         ; preds = %.lr.ph369.split
  %.pre461 = load ptr, ptr %.pn305.in, align 8, !tbaa !38
  br label %._crit_edge340

.lr.ph339:                                        ; preds = %.lr.ph369.split
  br i1 %or.cond308.fr, label %.lr.ph339.split.us, label %.lr.ph339.split

.lr.ph339.split.us:                               ; preds = %.lr.ph339
  %.pn305.us = load ptr, ptr %.pn305.in, align 8, !tbaa !38
  %163 = zext nneg i32 %161 to i64
  %min.iters.check = icmp ult i32 %161, 8
  br i1 %.fr, label %.lr.ph339.split.us.split.preheader, label %.lr.ph339.split.us.split.us.preheader

.lr.ph339.split.us.split.us.preheader:            ; preds = %.lr.ph339.split.us
  br i1 %min.iters.check, label %.lr.ph339.split.us.split.us.preheader565, label %vector.ph483

.lr.ph339.split.us.split.us.preheader565:         ; preds = %middle.block480, %.lr.ph339.split.us.split.us.preheader
  %indvars.iv433.ph = phi i64 [ %138, %.lr.ph339.split.us.split.us.preheader ], [ %ind.end486, %middle.block480 ]
  %.0271337.us.us.ph = phi i32 [ 0, %.lr.ph339.split.us.split.us.preheader ], [ %ind.end488, %middle.block480 ]
  %.3294335.us.us.ph = phi i32 [ %.0286380, %.lr.ph339.split.us.split.us.preheader ], [ %168, %middle.block480 ]
  br label %.lr.ph339.split.us.split.us

vector.ph483:                                     ; preds = %.lr.ph339.split.us.split.us.preheader
  %n.vec485 = and i64 %163, 2147483640
  %ind.end486 = add nsw i64 %n.vec485, %138
  %ind.end488 = trunc nuw nsw i64 %n.vec485 to i32
  %invariant.gep619 = getelementptr i32, ptr %.pn305.us, i64 %138
  br label %vector.body490

vector.body490:                                   ; preds = %vector.body490, %vector.ph483
  %index491 = phi i64 [ 0, %vector.ph483 ], [ %index.next497, %vector.body490 ]
  %vec.phi492 = phi <4 x i32> [ %143, %vector.ph483 ], [ %165, %vector.body490 ]
  %vec.phi493 = phi <4 x i32> [ zeroinitializer, %vector.ph483 ], [ %166, %vector.body490 ]
  %gep620 = getelementptr i32, ptr %invariant.gep619, i64 %index491
  %164 = getelementptr inbounds i8, ptr %gep620, i64 16
  %wide.load495 = load <4 x i32>, ptr %gep620, align 4, !tbaa !36
  %wide.load496 = load <4 x i32>, ptr %164, align 4, !tbaa !36
  %165 = add <4 x i32> %wide.load495, %vec.phi492
  %166 = add <4 x i32> %wide.load496, %vec.phi493
  %index.next497 = add nuw i64 %index491, 8
  %167 = icmp eq i64 %index.next497, %n.vec485
  br i1 %167, label %middle.block480, label %vector.body490, !llvm.loop !44

middle.block480:                                  ; preds = %vector.body490
  %bin.rdx498 = add <4 x i32> %166, %165
  %168 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx498)
  %cmp.n499 = icmp eq i64 %n.vec485, %163
  br i1 %cmp.n499, label %._crit_edge340.loopexit399, label %.lr.ph339.split.us.split.us.preheader565

.lr.ph339.split.us.split.preheader:               ; preds = %.lr.ph339.split.us
  br i1 %min.iters.check, label %.lr.ph339.split.us.split.preheader564, label %vector.ph

.lr.ph339.split.us.split.preheader564:            ; preds = %middle.block, %.lr.ph339.split.us.split.preheader
  %indvars.iv438.ph = phi i64 [ %138, %.lr.ph339.split.us.split.preheader ], [ %ind.end, %middle.block ]
  %.0271337.us.ph = phi i32 [ 0, %.lr.ph339.split.us.split.preheader ], [ %ind.end476, %middle.block ]
  %.3294335.us.ph = phi i32 [ %.0286380, %.lr.ph339.split.us.split.preheader ], [ %173, %middle.block ]
  br label %.lr.ph339.split.us.split

vector.ph:                                        ; preds = %.lr.ph339.split.us.split.preheader
  %n.vec = and i64 %163, 2147483640
  %ind.end = add nsw i64 %n.vec, %138
  %ind.end476 = trunc nuw nsw i64 %n.vec to i32
  %invariant.gep621 = getelementptr i32, ptr %.pn305.us, i64 %138
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %144, %vector.ph ], [ %170, %vector.body ]
  %vec.phi478 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %171, %vector.body ]
  %gep622 = getelementptr i32, ptr %invariant.gep621, i64 %index
  %169 = getelementptr inbounds i8, ptr %gep622, i64 16
  %wide.load = load <4 x i32>, ptr %gep622, align 4, !tbaa !36
  %wide.load479 = load <4 x i32>, ptr %169, align 4, !tbaa !36
  %170 = add <4 x i32> %wide.load, %vec.phi
  %171 = add <4 x i32> %wide.load479, %vec.phi478
  %index.next = add nuw i64 %index, 8
  %172 = icmp eq i64 %index.next, %n.vec
  br i1 %172, label %middle.block, label %vector.body, !llvm.loop !45

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %171, %170
  %173 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %163
  br i1 %cmp.n, label %._crit_edge340.loopexit, label %.lr.ph339.split.us.split.preheader564

.lr.ph339.split.us.split.us:                      ; preds = %.lr.ph339.split.us.split.us.preheader565, %.lr.ph339.split.us.split.us
  %indvars.iv433 = phi i64 [ %indvars.iv.next434, %.lr.ph339.split.us.split.us ], [ %indvars.iv433.ph, %.lr.ph339.split.us.split.us.preheader565 ]
  %.0271337.us.us = phi i32 [ %174, %.lr.ph339.split.us.split.us ], [ %.0271337.us.us.ph, %.lr.ph339.split.us.split.us.preheader565 ]
  %.3294335.us.us = phi i32 [ %.4295.us.us, %.lr.ph339.split.us.split.us ], [ %.3294335.us.us.ph, %.lr.ph339.split.us.split.us.preheader565 ]
  %indvars.iv.next434 = add nsw i64 %indvars.iv433, 1
  %.pn304.in.us.us = getelementptr inbounds i32, ptr %.pn305.us, i64 %indvars.iv433
  %.pn304.us.us = load i32, ptr %.pn304.in.us.us, align 4, !tbaa !36
  %.4295.us.us = add nsw i32 %.pn304.us.us, %.3294335.us.us
  %174 = add nuw nsw i32 %.0271337.us.us, 1
  %exitcond437.not = icmp eq i32 %174, %161
  br i1 %exitcond437.not, label %._crit_edge340.loopexit399, label %.lr.ph339.split.us.split.us, !llvm.loop !46

.lr.ph339.split.us.split:                         ; preds = %.lr.ph339.split.us.split.preheader564, %.lr.ph339.split.us.split
  %indvars.iv438 = phi i64 [ %indvars.iv.next439, %.lr.ph339.split.us.split ], [ %indvars.iv438.ph, %.lr.ph339.split.us.split.preheader564 ]
  %.0271337.us = phi i32 [ %175, %.lr.ph339.split.us.split ], [ %.0271337.us.ph, %.lr.ph339.split.us.split.preheader564 ]
  %.3294335.us = phi i32 [ %.4295.us, %.lr.ph339.split.us.split ], [ %.3294335.us.ph, %.lr.ph339.split.us.split.preheader564 ]
  %indvars.iv.next439 = add nsw i64 %indvars.iv438, 1
  %.pn304.in.us = getelementptr inbounds i32, ptr %.pn305.us, i64 %indvars.iv438
  %.pn304.us = load i32, ptr %.pn304.in.us, align 4, !tbaa !36
  %.4295.us = add nsw i32 %.pn304.us, %.3294335.us
  %175 = add nuw nsw i32 %.0271337.us, 1
  %exitcond442.not = icmp eq i32 %175, %161
  br i1 %exitcond442.not, label %._crit_edge340.loopexit, label %.lr.ph339.split.us.split, !llvm.loop !47

.lr.ph339.split:                                  ; preds = %.lr.ph339
  br i1 %or.cond310.fr, label %.lr.ph339.split.split.us, label %.lr.ph339.split.split.preheader

.lr.ph339.split.split.preheader:                  ; preds = %.lr.ph339.split
  %176 = trunc nsw i64 %indvars.iv443 to i32
  %177 = trunc nsw i64 %indvars.iv443 to i32
  br label %.lr.ph339.split.split

.lr.ph339.split.split.us:                         ; preds = %.lr.ph339.split
  %.pn305.us349 = load ptr, ptr %.pn305.in, align 8, !tbaa !38
  %178 = zext nneg i32 %161 to i64
  %min.iters.check503 = icmp ult i32 %161, 8
  br i1 %.fr, label %.lr.ph339.split.split.us.split.preheader, label %.lr.ph339.split.split.us.split.us.preheader

.lr.ph339.split.split.us.split.us.preheader:      ; preds = %.lr.ph339.split.split.us
  br i1 %min.iters.check503, label %.lr.ph339.split.split.us.split.us.preheader567, label %vector.ph525

.lr.ph339.split.split.us.split.us.preheader567:   ; preds = %middle.block522, %.lr.ph339.split.split.us.split.us.preheader
  %indvars.iv423.ph = phi i64 [ %138, %.lr.ph339.split.split.us.split.us.preheader ], [ %ind.end528, %middle.block522 ]
  %.0271337.us344.us.ph = phi i32 [ 0, %.lr.ph339.split.split.us.split.us.preheader ], [ %ind.end530, %middle.block522 ]
  %.3294335.us346.us.ph = phi i32 [ %.0286380, %.lr.ph339.split.split.us.split.us.preheader ], [ %183, %middle.block522 ]
  br label %.lr.ph339.split.split.us.split.us

vector.ph525:                                     ; preds = %.lr.ph339.split.split.us.split.us.preheader
  %n.vec527 = and i64 %178, 2147483640
  %ind.end528 = add nsw i64 %n.vec527, %138
  %ind.end530 = trunc nuw nsw i64 %n.vec527 to i32
  %invariant.gep615 = getelementptr i32, ptr %.pn305.us349, i64 %138
  br label %vector.body532

vector.body532:                                   ; preds = %vector.body532, %vector.ph525
  %index533 = phi i64 [ 0, %vector.ph525 ], [ %index.next539, %vector.body532 ]
  %vec.phi534 = phi <4 x i32> [ %141, %vector.ph525 ], [ %180, %vector.body532 ]
  %vec.phi535 = phi <4 x i32> [ zeroinitializer, %vector.ph525 ], [ %181, %vector.body532 ]
  %gep616 = getelementptr i32, ptr %invariant.gep615, i64 %index533
  %179 = getelementptr inbounds i8, ptr %gep616, i64 16
  %wide.load537 = load <4 x i32>, ptr %gep616, align 4, !tbaa !36
  %wide.load538 = load <4 x i32>, ptr %179, align 4, !tbaa !36
  %180 = add <4 x i32> %wide.load537, %vec.phi534
  %181 = add <4 x i32> %wide.load538, %vec.phi535
  %index.next539 = add nuw i64 %index533, 8
  %182 = icmp eq i64 %index.next539, %n.vec527
  br i1 %182, label %middle.block522, label %vector.body532, !llvm.loop !48

middle.block522:                                  ; preds = %vector.body532
  %bin.rdx540 = add <4 x i32> %181, %180
  %183 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx540)
  %cmp.n541 = icmp eq i64 %n.vec527, %178
  br i1 %cmp.n541, label %._crit_edge340.loopexit401, label %.lr.ph339.split.split.us.split.us.preheader567

.lr.ph339.split.split.us.split.preheader:         ; preds = %.lr.ph339.split.split.us
  br i1 %min.iters.check503, label %.lr.ph339.split.split.us.split.preheader566, label %vector.ph504

.lr.ph339.split.split.us.split.preheader566:      ; preds = %middle.block501, %.lr.ph339.split.split.us.split.preheader
  %indvars.iv428.ph = phi i64 [ %138, %.lr.ph339.split.split.us.split.preheader ], [ %ind.end507, %middle.block501 ]
  %.0271337.us344.ph = phi i32 [ 0, %.lr.ph339.split.split.us.split.preheader ], [ %ind.end509, %middle.block501 ]
  %.3294335.us346.ph = phi i32 [ %.0286380, %.lr.ph339.split.split.us.split.preheader ], [ %188, %middle.block501 ]
  br label %.lr.ph339.split.split.us.split

vector.ph504:                                     ; preds = %.lr.ph339.split.split.us.split.preheader
  %n.vec506 = and i64 %178, 2147483640
  %ind.end507 = add nsw i64 %n.vec506, %138
  %ind.end509 = trunc nuw nsw i64 %n.vec506 to i32
  %invariant.gep617 = getelementptr i32, ptr %.pn305.us349, i64 %138
  br label %vector.body511

vector.body511:                                   ; preds = %vector.body511, %vector.ph504
  %index512 = phi i64 [ 0, %vector.ph504 ], [ %index.next518, %vector.body511 ]
  %vec.phi513 = phi <4 x i32> [ %142, %vector.ph504 ], [ %185, %vector.body511 ]
  %vec.phi514 = phi <4 x i32> [ zeroinitializer, %vector.ph504 ], [ %186, %vector.body511 ]
  %gep618 = getelementptr i32, ptr %invariant.gep617, i64 %index512
  %184 = getelementptr inbounds i8, ptr %gep618, i64 16
  %wide.load516 = load <4 x i32>, ptr %gep618, align 4, !tbaa !36
  %wide.load517 = load <4 x i32>, ptr %184, align 4, !tbaa !36
  %185 = add <4 x i32> %wide.load516, %vec.phi513
  %186 = add <4 x i32> %wide.load517, %vec.phi514
  %index.next518 = add nuw i64 %index512, 8
  %187 = icmp eq i64 %index.next518, %n.vec506
  br i1 %187, label %middle.block501, label %vector.body511, !llvm.loop !49

middle.block501:                                  ; preds = %vector.body511
  %bin.rdx519 = add <4 x i32> %186, %185
  %188 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx519)
  %cmp.n520 = icmp eq i64 %n.vec506, %178
  br i1 %cmp.n520, label %._crit_edge340.loopexit400, label %.lr.ph339.split.split.us.split.preheader566

.lr.ph339.split.split.us.split.us:                ; preds = %.lr.ph339.split.split.us.split.us.preheader567, %.lr.ph339.split.split.us.split.us
  %indvars.iv423 = phi i64 [ %indvars.iv.next424, %.lr.ph339.split.split.us.split.us ], [ %indvars.iv423.ph, %.lr.ph339.split.split.us.split.us.preheader567 ]
  %.0271337.us344.us = phi i32 [ %189, %.lr.ph339.split.split.us.split.us ], [ %.0271337.us344.us.ph, %.lr.ph339.split.split.us.split.us.preheader567 ]
  %.3294335.us346.us = phi i32 [ %.4295.us352.us, %.lr.ph339.split.split.us.split.us ], [ %.3294335.us346.us.ph, %.lr.ph339.split.split.us.split.us.preheader567 ]
  %indvars.iv.next424 = add nsw i64 %indvars.iv423, 1
  %.pn304.in.us350.us = getelementptr inbounds i32, ptr %.pn305.us349, i64 %indvars.iv423
  %.pn304.us351.us = load i32, ptr %.pn304.in.us350.us, align 4, !tbaa !36
  %.4295.us352.us = add nsw i32 %.pn304.us351.us, %.3294335.us346.us
  %189 = add nuw nsw i32 %.0271337.us344.us, 1
  %exitcond427.not = icmp eq i32 %189, %161
  br i1 %exitcond427.not, label %._crit_edge340.loopexit401, label %.lr.ph339.split.split.us.split.us, !llvm.loop !50

.lr.ph339.split.split.us.split:                   ; preds = %.lr.ph339.split.split.us.split.preheader566, %.lr.ph339.split.split.us.split
  %indvars.iv428 = phi i64 [ %indvars.iv.next429, %.lr.ph339.split.split.us.split ], [ %indvars.iv428.ph, %.lr.ph339.split.split.us.split.preheader566 ]
  %.0271337.us344 = phi i32 [ %190, %.lr.ph339.split.split.us.split ], [ %.0271337.us344.ph, %.lr.ph339.split.split.us.split.preheader566 ]
  %.3294335.us346 = phi i32 [ %.4295.us352, %.lr.ph339.split.split.us.split ], [ %.3294335.us346.ph, %.lr.ph339.split.split.us.split.preheader566 ]
  %indvars.iv.next429 = add nsw i64 %indvars.iv428, 1
  %.pn304.in.us350 = getelementptr inbounds i32, ptr %.pn305.us349, i64 %indvars.iv428
  %.pn304.us351 = load i32, ptr %.pn304.in.us350, align 4, !tbaa !36
  %.4295.us352 = add nsw i32 %.pn304.us351, %.3294335.us346
  %190 = add nuw nsw i32 %.0271337.us344, 1
  %exitcond432.not = icmp eq i32 %190, %161
  br i1 %exitcond432.not, label %._crit_edge340.loopexit400, label %.lr.ph339.split.split.us.split, !llvm.loop !51

.lr.ph339.split.split:                            ; preds = %.lr.ph339.split.split.preheader, %.loopexit317
  %191 = phi ptr [ %156, %.lr.ph339.split.split.preheader ], [ %283, %.loopexit317 ]
  %192 = phi ptr [ %156, %.lr.ph339.split.split.preheader ], [ %284, %.loopexit317 ]
  %indvars.iv420 = phi i64 [ %138, %.lr.ph339.split.split.preheader ], [ %indvars.iv.next421, %.loopexit317 ]
  %.0271337 = phi i32 [ 0, %.lr.ph339.split.split.preheader ], [ %285, %.loopexit317 ]
  %.3294335 = phi i32 [ %.0286380, %.lr.ph339.split.split.preheader ], [ %.4295, %.loopexit317 ]
  %193 = load ptr, ptr %39, align 8, !tbaa !43
  %194 = getelementptr inbounds i32, ptr %193, i64 %indvars.iv420
  %195 = load i32, ptr %194, align 4, !tbaa !36
  %196 = icmp ult i32 %.0271337, %.0270364
  %or.cond306 = and i1 %.fr, %196
  br i1 %or.cond306, label %.loopexit317, label %197

197:                                              ; preds = %.lr.ph339.split.split
  %198 = load ptr, ptr %10, align 8, !tbaa !22
  %199 = getelementptr inbounds %struct.ScreenedGrid, ptr %198, i64 %indvars.iv443
  %200 = getelementptr inbounds i8, ptr %199, i64 8
  %201 = load i32, ptr %200, align 4, !tbaa !52
  %202 = icmp eq i32 %201, 1
  br i1 %202, label %.loopexit317, label %203

203:                                              ; preds = %197
  %204 = getelementptr inbounds %struct.ScreenedGrid, ptr %198, i64 %indvars.iv420
  %205 = getelementptr inbounds i8, ptr %204, i64 8
  %206 = load i32, ptr %205, align 4, !tbaa !52
  %207 = icmp eq i32 %206, 1
  br i1 %207, label %.loopexit317, label %208

208:                                              ; preds = %203
  %209 = load i32, ptr %199, align 4, !tbaa !54
  %210 = load i32, ptr %204, align 4, !tbaa !54
  %. = call i32 @llvm.smax.i32(i32 %209, i32 %210)
  %211 = getelementptr inbounds %struct.ScreenedGrid, ptr %198, i64 %indvars.iv443, i32 1
  %212 = load i32, ptr %211, align 4, !tbaa !55
  %213 = getelementptr inbounds %struct.ScreenedGrid, ptr %198, i64 %indvars.iv420, i32 1
  %214 = load i32, ptr %213, align 4, !tbaa !55
  %215 = call i32 @llvm.smax.i32(i32 %212, i32 %214)
  %216 = load ptr, ptr %24, align 8, !tbaa !18
  %217 = getelementptr inbounds i8, ptr %216, i64 40
  store i32 %., ptr %217, align 8, !tbaa !25
  %218 = load ptr, ptr %34, align 8, !tbaa !23
  %219 = getelementptr inbounds i8, ptr %218, i64 40
  store i32 %., ptr %219, align 8, !tbaa !25
  %220 = getelementptr inbounds i8, ptr %216, i64 44
  store i32 %215, ptr %220, align 4, !tbaa !26
  %221 = getelementptr inbounds i8, ptr %218, i64 44
  store i32 %215, ptr %221, align 4, !tbaa !26
  %222 = load i32, ptr %44, align 4, !tbaa !56
  %223 = icmp sgt i32 %222, 0
  br i1 %223, label %.lr.ph334.preheader, label %.loopexit317

.lr.ph334.preheader:                              ; preds = %208
  %wide.trip.count = zext nneg i32 %222 to i64
  %224 = trunc nsw i64 %indvars.iv420 to i32
  %225 = trunc nsw i64 %indvars.iv420 to i32
  br label %.lr.ph334

.lr.ph334:                                        ; preds = %.lr.ph334.preheader, %.loopexit
  %indvars.iv416 = phi i64 [ 0, %.lr.ph334.preheader ], [ %indvars.iv.next417, %.loopexit ]
  %226 = getelementptr inbounds [10 x i32], ptr %45, i64 0, i64 %indvars.iv416
  %227 = load i32, ptr %226, align 4, !tbaa !36
  %228 = getelementptr inbounds [10 x i32], ptr %46, i64 0, i64 %indvars.iv416
  %229 = load i32, ptr %228, align 4, !tbaa !36
  %230 = sub nsw i32 0, %227
  %231 = icmp slt i32 %159, %230
  %232 = sub nsw i32 0, %229
  %233 = icmp slt i32 %195, %232
  %or.cond312 = select i1 %231, i1 true, i1 %233
  br i1 %or.cond312, label %.loopexit, label %234

234:                                              ; preds = %.lr.ph334
  br i1 %40, label %235, label %.critedge

235:                                              ; preds = %234
  %236 = icmp ne i32 %227, 0
  %or.cond = and i1 %110, %236
  %237 = icmp ne i32 %229, 0
  %or.cond3 = select i1 %134, i1 %237, i1 false
  %or.cond315 = select i1 %or.cond, i1 true, i1 %or.cond3
  br i1 %or.cond315, label %.loopexit, label %.critedge

.critedge:                                        ; preds = %235, %234
  %238 = add nsw i32 %227, %159
  %239 = add nsw i32 %229, %195
  %240 = icmp eq i32 %227, 1
  %241 = icmp eq i32 %229, 0
  %or.cond5 = select i1 %240, i1 %241, i1 false
  %242 = icmp eq i32 %227, 0
  %243 = icmp eq i32 %229, 1
  %or.cond7 = select i1 %242, i1 %243, i1 false
  %spec.select = select i1 %or.cond7, i32 %195, i32 %239
  %.0274 = load ptr, ptr %24, align 8, !tbaa !22
  %244 = getelementptr inbounds i8, ptr %.0274, i64 40
  %245 = load i32, ptr %244, align 8, !tbaa !25
  %246 = getelementptr inbounds i8, ptr %.0274, i64 44
  %247 = load i32, ptr %246, align 4, !tbaa !26
  %248 = icmp slt i32 %245, %247
  br i1 %248, label %249, label %263

249:                                              ; preds = %.critedge
  %250 = load ptr, ptr %53, align 8, !tbaa !22
  %251 = call { ptr, ptr } @calcChi(ptr noundef nonnull %12, ptr noundef %29, ptr noundef %250, ptr noundef nonnull %4, double noundef %98, ptr noundef nonnull %5, double noundef %117, i32 noundef %238, i32 noundef %176, i32 noundef %.2289362, i32 noundef %227, ptr noundef nonnull byval(%struct.doubleArray) align 8 %8, i32 noundef %239, i32 noundef %224, i32 noundef %.3294335, i32 noundef %229, ptr noundef nonnull byval(%struct.doubleArray) align 8 %9) #6
  %.sroa.7.0 = extractvalue { ptr, ptr } %251, 1
  %252 = icmp eq ptr %.sroa.7.0, null
  br i1 %252, label %.loopexit316, label %253

253:                                              ; preds = %249
  %.sroa.065.0 = extractvalue { ptr, ptr } %251, 0
  %spec.select397 = select i1 %or.cond5, i32 %239, i32 %spec.select
  %.0276 = select i1 %41, i32 %spec.select397, i32 %239
  %254 = select i1 %41, i1 %or.cond5, i1 false
  %.0275 = select i1 %254, i32 %159, i32 %238
  %255 = load ptr, ptr %47, align 8, !tbaa !58
  %256 = load ptr, ptr %48, align 8, !tbaa !59
  %257 = load i32, ptr %49, align 8, !tbaa !60
  %258 = load ptr, ptr %50, align 8, !tbaa !61
  %259 = load double, ptr %51, align 8, !tbaa !62
  %260 = call { ptr, ptr } @calcPolynomials(ptr %.sroa.065.0, ptr nonnull %.sroa.7.0, ptr noundef %255, ptr noundef %256, i32 noundef %257, ptr noundef %258, double noundef %259, double noundef 0x402921FB54442D18, i32 noundef %.0275, ptr noundef nonnull byval(%struct.doubleArray) align 8 %8, i32 noundef %.0276, ptr noundef nonnull byval(%struct.doubleArray) align 8 %9) #6
  %261 = extractvalue { ptr, ptr } %260, 0
  %262 = extractvalue { ptr, ptr } %260, 1
  call void %1(i32 noundef %112, i32 noundef %.0270364, i32 noundef %159, i32 noundef %227, i32 noundef %139, i32 noundef %.0271337, i32 noundef %195, i32 noundef %229, i32 noundef %95, ptr noundef %262, ptr noundef %2) #6
  call void @doubleArray_free(ptr %261, ptr %262) #6
  br label %263

263:                                              ; preds = %.critedge, %253
  %.0274.1 = load ptr, ptr %34, align 8, !tbaa !22
  %264 = getelementptr inbounds i8, ptr %.0274.1, i64 40
  %265 = load i32, ptr %264, align 8, !tbaa !25
  %266 = getelementptr inbounds i8, ptr %.0274.1, i64 44
  %267 = load i32, ptr %266, align 4, !tbaa !26
  %268 = icmp slt i32 %265, %267
  br i1 %268, label %269, label %.loopexit

269:                                              ; preds = %263
  %270 = load ptr, ptr %53, align 8, !tbaa !22
  %271 = call { ptr, ptr } @calcGamma(ptr noundef nonnull %14, ptr %70, ptr %71, ptr %67, ptr %68, ptr noundef %270, double noundef %98, double noundef %117, i32 noundef %238, i32 noundef %177, i32 noundef %.2289362, ptr noundef nonnull byval(%struct.doubleArray) align 8 %6, ptr noundef nonnull byval(%struct.doubleArray) align 8 %8, i32 noundef %227, i32 noundef %239, i32 noundef %225, i32 noundef %.3294335, ptr noundef nonnull byval(%struct.doubleArray) align 8 %7, ptr noundef nonnull byval(%struct.doubleArray) align 8 %9, i32 noundef %229) #6
  %.sroa.7.0.1 = extractvalue { ptr, ptr } %271, 1
  %272 = icmp eq ptr %.sroa.7.0.1, null
  br i1 %272, label %.loopexit316, label %273

273:                                              ; preds = %269
  %.sroa.065.0.1 = extractvalue { ptr, ptr } %271, 0
  %spec.select397.1 = select i1 %or.cond5, i32 %239, i32 %spec.select
  %.0276.1 = select i1 %41, i32 %spec.select397.1, i32 %239
  %274 = select i1 %41, i1 %or.cond5, i1 false
  %.0275.1 = select i1 %274, i32 %159, i32 %238
  %275 = load ptr, ptr %47, align 8, !tbaa !58
  %276 = load ptr, ptr %48, align 8, !tbaa !59
  %277 = load i32, ptr %49, align 8, !tbaa !60
  %278 = load ptr, ptr %50, align 8, !tbaa !61
  %279 = load double, ptr %51, align 8, !tbaa !62
  %280 = call { ptr, ptr } @calcPolynomials(ptr %.sroa.065.0.1, ptr nonnull %.sroa.7.0.1, ptr noundef %275, ptr noundef %276, i32 noundef %277, ptr noundef %278, double noundef %279, double noundef 0x4063BD3CC9BE45DE, i32 noundef %.0275.1, ptr noundef nonnull byval(%struct.doubleArray) align 8 %8, i32 noundef %.0276.1, ptr noundef nonnull byval(%struct.doubleArray) align 8 %9) #6
  %281 = extractvalue { ptr, ptr } %280, 0
  %282 = extractvalue { ptr, ptr } %280, 1
  call void %1(i32 noundef %113, i32 noundef %.0270364, i32 noundef %159, i32 noundef %227, i32 noundef %140, i32 noundef %.0271337, i32 noundef %195, i32 noundef %229, i32 noundef %96, ptr noundef %282, ptr noundef %2) #6
  call void @doubleArray_free(ptr %281, ptr %282) #6
  br label %.loopexit

.loopexit:                                        ; preds = %263, %273, %.lr.ph334, %235
  %indvars.iv.next417 = add nuw nsw i64 %indvars.iv416, 1
  %exitcond419.not = icmp eq i64 %indvars.iv.next417, %wide.trip.count
  br i1 %exitcond419.not, label %.loopexit317.loopexit, label %.lr.ph334, !llvm.loop !63

.loopexit317.loopexit:                            ; preds = %.loopexit
  %.pre = load ptr, ptr %38, align 8, !tbaa !37
  br label %.loopexit317

.loopexit317:                                     ; preds = %.loopexit317.loopexit, %208, %197, %203, %.lr.ph339.split.split
  %283 = phi ptr [ %.pre, %.loopexit317.loopexit ], [ %191, %208 ], [ %191, %197 ], [ %191, %203 ], [ %191, %.lr.ph339.split.split ]
  %284 = phi ptr [ %.pre, %.loopexit317.loopexit ], [ %192, %208 ], [ %192, %197 ], [ %192, %203 ], [ %192, %.lr.ph339.split.split ]
  %indvars.iv.next421 = add nsw i64 %indvars.iv420, 1
  %.pn305 = load ptr, ptr %.pn305.in, align 8, !tbaa !38
  %.pn304.in = getelementptr inbounds i32, ptr %.pn305, i64 %indvars.iv420
  %.pn304 = load i32, ptr %.pn304.in, align 4, !tbaa !36
  %.4295 = add nsw i32 %.pn304, %.3294335
  %285 = add nuw nsw i32 %.0271337, 1
  %286 = getelementptr inbounds i32, ptr %284, i64 %indvars.iv448
  %287 = load i32, ptr %286, align 4, !tbaa !36
  %288 = icmp slt i32 %285, %287
  br i1 %288, label %.lr.ph339.split.split, label %._crit_edge340.loopexit402, !llvm.loop !64

._crit_edge340.loopexit:                          ; preds = %.lr.ph339.split.us.split, %middle.block
  %indvars.iv.next439.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next439, %.lr.ph339.split.us.split ]
  %.4295.us.lcssa = phi i32 [ %173, %middle.block ], [ %.4295.us, %.lr.ph339.split.us.split ]
  %289 = trunc nsw i64 %indvars.iv.next439.lcssa to i32
  br label %._crit_edge340

._crit_edge340.loopexit399:                       ; preds = %.lr.ph339.split.us.split.us, %middle.block480
  %indvars.iv.next434.lcssa = phi i64 [ %ind.end486, %middle.block480 ], [ %indvars.iv.next434, %.lr.ph339.split.us.split.us ]
  %.4295.us.us.lcssa = phi i32 [ %168, %middle.block480 ], [ %.4295.us.us, %.lr.ph339.split.us.split.us ]
  %290 = trunc nsw i64 %indvars.iv.next434.lcssa to i32
  br label %._crit_edge340

._crit_edge340.loopexit400:                       ; preds = %.lr.ph339.split.split.us.split, %middle.block501
  %indvars.iv.next429.lcssa = phi i64 [ %ind.end507, %middle.block501 ], [ %indvars.iv.next429, %.lr.ph339.split.split.us.split ]
  %.4295.us352.lcssa = phi i32 [ %188, %middle.block501 ], [ %.4295.us352, %.lr.ph339.split.split.us.split ]
  %291 = trunc nsw i64 %indvars.iv.next429.lcssa to i32
  br label %._crit_edge340

._crit_edge340.loopexit401:                       ; preds = %.lr.ph339.split.split.us.split.us, %middle.block522
  %indvars.iv.next424.lcssa = phi i64 [ %ind.end528, %middle.block522 ], [ %indvars.iv.next424, %.lr.ph339.split.split.us.split.us ]
  %.4295.us352.us.lcssa = phi i32 [ %183, %middle.block522 ], [ %.4295.us352.us, %.lr.ph339.split.split.us.split.us ]
  %292 = trunc nsw i64 %indvars.iv.next424.lcssa to i32
  br label %._crit_edge340

._crit_edge340.loopexit402:                       ; preds = %.loopexit317
  %293 = trunc nsw i64 %indvars.iv.next421 to i32
  br label %._crit_edge340

._crit_edge340:                                   ; preds = %.lr.ph369.split.._crit_edge340_crit_edge, %._crit_edge340.loopexit402, %._crit_edge340.loopexit401, %._crit_edge340.loopexit400, %._crit_edge340.loopexit399, %._crit_edge340.loopexit
  %294 = phi ptr [ %156, %.lr.ph369.split.._crit_edge340_crit_edge ], [ %156, %._crit_edge340.loopexit ], [ %156, %._crit_edge340.loopexit399 ], [ %156, %._crit_edge340.loopexit400 ], [ %156, %._crit_edge340.loopexit401 ], [ %283, %._crit_edge340.loopexit402 ]
  %295 = phi ptr [ %.pre461, %.lr.ph369.split.._crit_edge340_crit_edge ], [ %.pn305.us, %._crit_edge340.loopexit ], [ %.pn305.us, %._crit_edge340.loopexit399 ], [ %.pn305.us349, %._crit_edge340.loopexit400 ], [ %.pn305.us349, %._crit_edge340.loopexit401 ], [ %.pn305, %._crit_edge340.loopexit402 ]
  %.3294.lcssa = phi i32 [ %.0286380, %.lr.ph369.split.._crit_edge340_crit_edge ], [ %.4295.us.lcssa, %._crit_edge340.loopexit ], [ %.4295.us.us.lcssa, %._crit_edge340.loopexit399 ], [ %.4295.us352.lcssa, %._crit_edge340.loopexit400 ], [ %.4295.us352.us.lcssa, %._crit_edge340.loopexit401 ], [ %.4295, %._crit_edge340.loopexit402 ]
  %.3.lcssa = phi i32 [ %.0279382, %.lr.ph369.split.._crit_edge340_crit_edge ], [ %289, %._crit_edge340.loopexit ], [ %290, %._crit_edge340.loopexit399 ], [ %291, %._crit_edge340.loopexit400 ], [ %292, %._crit_edge340.loopexit401 ], [ %293, %._crit_edge340.loopexit402 ]
  %296 = getelementptr inbounds i32, ptr %295, i64 %indvars.iv443
  %297 = load i32, ptr %296, align 4, !tbaa !36
  %298 = add nsw i32 %297, %.2289362
  %indvars.iv.next444 = add nsw i64 %indvars.iv443, 1
  %299 = add nuw nsw i32 %.0270364, 1
  %300 = getelementptr inbounds i32, ptr %294, i64 %indvars.iv446
  %301 = load i32, ptr %300, align 4, !tbaa !36
  %302 = icmp slt i32 %299, %301
  br i1 %302, label %.lr.ph369.split, label %._crit_edge370.loopexit, !llvm.loop !65

._crit_edge370.loopexit:                          ; preds = %._crit_edge340
  %303 = trunc nsw i64 %indvars.iv.next444 to i32
  %.pre462 = load ptr, ptr %7, align 8
  %.pre463 = load ptr, ptr %.sroa.413.0..sroa_idx, align 8
  br label %._crit_edge370

._crit_edge370.loopexit403:                       ; preds = %scalar.ph544, %middle.block543
  %.lcssa473 = phi i32 [ %151, %middle.block543 ], [ %154, %scalar.ph544 ]
  %indvars.iv.next413.lcssa = phi i64 [ %ind.end549, %middle.block543 ], [ %indvars.iv.next413, %scalar.ph544 ]
  %304 = trunc nsw i64 %indvars.iv.next413.lcssa to i32
  br label %._crit_edge370

._crit_edge370:                                   ; preds = %._crit_edge370.loopexit403, %._crit_edge370.loopexit, %115
  %305 = phi ptr [ %128, %115 ], [ %.pre463, %._crit_edge370.loopexit ], [ %128, %._crit_edge370.loopexit403 ]
  %306 = phi ptr [ %127, %115 ], [ %.pre462, %._crit_edge370.loopexit ], [ %127, %._crit_edge370.loopexit403 ]
  %.2293.lcssa = phi i32 [ %.1292379, %115 ], [ %.3294.lcssa, %._crit_edge370.loopexit ], [ %.0286380, %._crit_edge370.loopexit403 ]
  %.2289.lcssa = phi i32 [ %.0285386, %115 ], [ %298, %._crit_edge370.loopexit ], [ %.lcssa473, %._crit_edge370.loopexit403 ]
  %.2284.lcssa = phi i32 [ %.1283381, %115 ], [ %.3.lcssa, %._crit_edge370.loopexit ], [ %.0279382, %._crit_edge370.loopexit403 ]
  %.2.lcssa = phi i32 [ %.0278388, %115 ], [ %303, %._crit_edge370.loopexit ], [ %304, %._crit_edge370.loopexit403 ]
  call void @doubleArray_free(ptr %306, ptr %305) #6
  %307 = load ptr, ptr %9, align 8
  %308 = load ptr, ptr %.sroa.415.0..sroa_idx, align 8
  call void @doubleArray_free(ptr %307, ptr %308) #6
  %indvars.iv.next449 = add nuw nsw i64 %indvars.iv448, 1
  %exitcond452.not = icmp eq i64 %indvars.iv.next449, %wide.trip.count459
  br i1 %exitcond452.not, label %309, label %115, !llvm.loop !67

309:                                              ; preds = %._crit_edge370
  %310 = load ptr, ptr %6, align 8
  %311 = load ptr, ptr %.sroa.417.0..sroa_idx, align 8
  call void @doubleArray_free(ptr %310, ptr %311) #6
  %312 = load ptr, ptr %8, align 8
  %313 = load ptr, ptr %.sroa.419.0..sroa_idx, align 8
  call void @doubleArray_free(ptr %312, ptr %313) #6
  %indvars.iv.next447 = add nuw nsw i64 %indvars.iv446, 1
  %exitcond455.not = icmp eq i64 %indvars.iv.next447, %wide.trip.count459
  br i1 %exitcond455.not, label %._crit_edge392, label %.lr.ph391, !llvm.loop !68

._crit_edge392:                                   ; preds = %309
  call void @doubleArray_free(ptr %67, ptr %68) #6
  call void @doubleArray_free(ptr %70, ptr %71) #6
  %314 = load ptr, ptr %10, align 8, !tbaa !22
  call void @free(ptr noundef %314) #6
  br label %315

315:                                              ; preds = %52, %._crit_edge392
  %indvars.iv.next457 = add nuw nsw i64 %indvars.iv456, 1
  %exitcond460.not = icmp eq i64 %indvars.iv.next457, %wide.trip.count459
  br i1 %exitcond460.not, label %.loopexit316, label %52, !llvm.loop !69

.loopexit316:                                     ; preds = %315, %249, %269, %3
  %.0290 = phi i32 [ 0, %3 ], [ 2, %269 ], [ 1, %249 ], [ 0, %315 ]
  call void @doubleArray_free(ptr %31, ptr %32) #6
  call void @free(ptr noundef %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret i32 %.0290
}

declare { ptr, ptr } @tabOmega(ptr noundef) local_unnamed_addr #3

declare { ptr, ptr } @tabECP_FM06(ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #3

declare { ptr, ptr } @calcF_FM06(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare double @evalECP(ptr noundef, i32 noundef, double noundef) local_unnamed_addr #3

declare i32 @potentialScreening(ptr noundef, ptr noundef, double noundef) local_unnamed_addr #3

declare double @distance(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @distanceVector(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare { ptr, ptr } @unitarySpherePolynomials(i32 noundef, ptr noundef) local_unnamed_addr #3

declare { ptr, ptr } @evalAngularIntegrals(ptr noundef, ptr, ptr, i32 noundef, ptr noundef) local_unnamed_addr #3

declare { ptr, ptr } @calcChi(ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8) local_unnamed_addr #3

declare { ptr, ptr } @calcGamma(ptr noundef, ptr, ptr, ptr, ptr, ptr noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8, ptr noundef byval(%struct.doubleArray) align 8, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8, ptr noundef byval(%struct.doubleArray) align 8, i32 noundef) local_unnamed_addr #3

declare { ptr, ptr } @calcPolynomials(ptr, ptr, ptr noundef, ptr noundef, i32 noundef, ptr noundef, double noundef, double noundef, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8, i32 noundef, ptr noundef byval(%struct.doubleArray) align 8) local_unnamed_addr #3

declare void @doubleArray_free(ptr, ptr) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 96}
!6 = !{!"_libECPHandle", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !7, i64 160, !7, i64 164, !7, i64 168, !10, i64 176, !10, i64 184, !7, i64 192, !11, i64 200, !11, i64 208}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !10, i64 104}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !7, i64 64}
!16 = !{!6, !10, i64 88}
!17 = !{!6, !10, i64 16}
!18 = !{!19, !10, i64 120}
!19 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !10, i64 104, !7, i64 112, !10, i64 120, !11, i64 128, !11, i64 136, !11, i64 144}
!20 = !{!21, !7, i64 4}
!21 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 44}
!22 = !{!10, !10, i64 0}
!23 = !{!24, !10, i64 184}
!24 = !{!"_Type2", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !10, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !10, i64 184, !7, i64 192, !10, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !7, i64 232}
!25 = !{!21, !7, i64 40}
!26 = !{!21, !7, i64 44}
!27 = !{!24, !7, i64 80}
!28 = !{!24, !11, i64 216}
!29 = !{!30, !7, i64 12}
!30 = !{!"_ECP", !10, i64 0, !7, i64 8, !7, i64 12}
!31 = !{!21, !10, i64 8}
!32 = !{!11, !11, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!19, !11, i64 128}
!36 = !{!7, !7, i64 0}
!37 = !{!6, !10, i64 24}
!38 = !{!6, !10, i64 40}
!39 = distinct !{!39, !34, !40, !41}
!40 = !{!"llvm.loop.isvectorized", i32 1}
!41 = !{!"llvm.loop.unroll.runtime.disable"}
!42 = distinct !{!42, !34, !41, !40}
!43 = !{!6, !10, i64 32}
!44 = distinct !{!44, !34, !40, !41}
!45 = distinct !{!45, !34, !40, !41}
!46 = distinct !{!46, !34, !41, !40}
!47 = distinct !{!47, !34, !41, !40}
!48 = distinct !{!48, !34, !40, !41}
!49 = distinct !{!49, !34, !40, !41}
!50 = distinct !{!50, !34, !41, !40}
!51 = distinct !{!51, !34, !41, !40}
!52 = !{!53, !7, i64 8}
!53 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8}
!54 = !{!53, !7, i64 0}
!55 = !{!53, !7, i64 4}
!56 = !{!57, !7, i64 4}
!57 = !{!"", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 48}
!58 = !{!6, !10, i64 144}
!59 = !{!6, !10, i64 152}
!60 = !{!6, !7, i64 160}
!61 = !{!6, !10, i64 128}
!62 = !{!6, !11, i64 208}
!63 = distinct !{!63, !34}
!64 = distinct !{!64, !34}
!65 = distinct !{!65, !34, !66}
!66 = !{!"llvm.loop.unswitch.partial.disable"}
!67 = distinct !{!67, !34}
!68 = distinct !{!68, !34}
!69 = distinct !{!69, !34}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass