; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (transfer)

; 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.transfer_workspace = type { %struct.HypersphericalInterpolationStructure, i32, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, i32, double, i16 }
%struct.HypersphericalInterpolationStructure = type { i32, double, double, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr }
%struct.transfers = type { double, double, double, [100 x double], [100 x double], i16, i16, [256 x i8], i32, ptr, ptr, ptr, i16, i16, [256 x i8], i32, ptr, ptr, ptr, ptr, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, ptr, double, i64, ptr, ptr, i32, ptr, i16, i16, [2048 x i8] }

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @transfer_radial_coordinates(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store double 0.000000e+00, ptr %10, align 8, !tbaa !11
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.transfer_workspace, ptr %11, i32 0, i32 14
  %13 = load i32, ptr %12, align 8, !tbaa !13
  switch i32 %13, label %242 [
    i32 1, label %14
    i32 0, label %95
    i32 -1, label %160
  ]

14:                                               ; preds = %4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.transfer_workspace, ptr %15, i32 0, i32 13
  %17 = load double, ptr %16, align 8, !tbaa !17
  %18 = call double @sqrt(double noundef %17) #3
  store double %18, ptr %10, align 8, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %91, %14
  %20 = load i32, ptr %9, align 4, !tbaa !9
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.transfer_workspace, ptr %21, i32 0, i32 4
  %23 = load i32, ptr %22, align 4, !tbaa !18
  %24 = icmp slt i32 %20, %23
  br i1 %24, label %25, label %94

25:                                               ; preds = %19
  %26 = load double, ptr %10, align 8, !tbaa !11
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.transfer_workspace, ptr %27, i32 0, i32 8
  %29 = load ptr, ptr %28, align 8, !tbaa !19
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds double, ptr %29, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !11
  %34 = fmul double %26, %33
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.transfer_workspace, ptr %35, i32 0, i32 10
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %37, i64 %39
  store double %34, ptr %40, align 8, !tbaa !11
  %41 = load double, ptr %10, align 8, !tbaa !11
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.transfers, ptr %42, i32 0, i32 47
  %44 = load ptr, ptr %43, align 8, !tbaa !21
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %44, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %48, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = fdiv double %41, %52
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.transfer_workspace, ptr %54, i32 0, i32 10
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = call double @sin(double noundef %60) #3
  %62 = fdiv double %53, %61
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.transfer_workspace, ptr %63, i32 0, i32 11
  %65 = load ptr, ptr %64, align 8, !tbaa !24
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %65, i64 %67
  store double %62, ptr %68, align 8, !tbaa !11
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.transfer_workspace, ptr %69, i32 0, i32 11
  %71 = load ptr, ptr %70, align 8, !tbaa !24
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %71, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.transfer_workspace, ptr %76, i32 0, i32 10
  %78 = load ptr, ptr %77, align 8, !tbaa !20
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !11
  %83 = call double @cos(double noundef %82) #3
  %84 = fmul double %75, %83
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.transfer_workspace, ptr %85, i32 0, i32 12
  %87 = load ptr, ptr %86, align 8, !tbaa !25
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %87, i64 %89
  store double %84, ptr %90, align 8, !tbaa !11
  br label %91

91:                                               ; preds = %25
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %9, align 4, !tbaa !9
  br label %19, !llvm.loop !26

94:                                               ; preds = %19
  br label %242

95:                                               ; preds = %4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %156, %95
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.transfer_workspace, ptr %98, i32 0, i32 4
  %100 = load i32, ptr %99, align 4, !tbaa !18
  %101 = icmp slt i32 %97, %100
  br i1 %101, label %102, label %159

102:                                              ; preds = %96
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.transfers, ptr %103, i32 0, i32 47
  %105 = load ptr, ptr %104, align 8, !tbaa !21
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %105, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %109, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.transfer_workspace, ptr %114, i32 0, i32 8
  %116 = load ptr, ptr %115, align 8, !tbaa !19
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !11
  %121 = fmul double %113, %120
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.transfer_workspace, ptr %122, i32 0, i32 10
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds double, ptr %124, i64 %126
  store double %121, ptr %127, align 8, !tbaa !11
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.transfer_workspace, ptr %128, i32 0, i32 10
  %130 = load ptr, ptr %129, align 8, !tbaa !20
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %130, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !11
  %135 = fdiv double 1.000000e+00, %134
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.transfer_workspace, ptr %136, i32 0, i32 11
  %138 = load ptr, ptr %137, align 8, !tbaa !24
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %138, i64 %140
  store double %135, ptr %141, align 8, !tbaa !11
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.transfer_workspace, ptr %142, i32 0, i32 10
  %144 = load ptr, ptr %143, align 8, !tbaa !20
  %145 = load i32, ptr %9, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !11
  %149 = fdiv double 1.000000e+00, %148
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.transfer_workspace, ptr %150, i32 0, i32 12
  %152 = load ptr, ptr %151, align 8, !tbaa !25
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds double, ptr %152, i64 %154
  store double %149, ptr %155, align 8, !tbaa !11
  br label %156

156:                                              ; preds = %102
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %9, align 4, !tbaa !9
  br label %96, !llvm.loop !28

159:                                              ; preds = %96
  br label %242

160:                                              ; preds = %4
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.transfer_workspace, ptr %161, i32 0, i32 13
  %163 = load double, ptr %162, align 8, !tbaa !17
  %164 = fneg double %163
  %165 = call double @sqrt(double noundef %164) #3
  store double %165, ptr %10, align 8, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %238, %160
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.transfer_workspace, ptr %168, i32 0, i32 4
  %170 = load i32, ptr %169, align 4, !tbaa !18
  %171 = icmp slt i32 %167, %170
  br i1 %171, label %172, label %241

172:                                              ; preds = %166
  %173 = load double, ptr %10, align 8, !tbaa !11
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.transfer_workspace, ptr %174, i32 0, i32 8
  %176 = load ptr, ptr %175, align 8, !tbaa !19
  %177 = load i32, ptr %9, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds double, ptr %176, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !11
  %181 = fmul double %173, %180
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.transfer_workspace, ptr %182, i32 0, i32 10
  %184 = load ptr, ptr %183, align 8, !tbaa !20
  %185 = load i32, ptr %9, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  store double %181, ptr %187, align 8, !tbaa !11
  %188 = load double, ptr %10, align 8, !tbaa !11
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.transfers, ptr %189, i32 0, i32 47
  %191 = load ptr, ptr %190, align 8, !tbaa !21
  %192 = load i32, ptr %7, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds ptr, ptr %191, i64 %193
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  %196 = load i32, ptr %8, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %195, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = fdiv double %188, %199
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.transfer_workspace, ptr %201, i32 0, i32 10
  %203 = load ptr, ptr %202, align 8, !tbaa !20
  %204 = load i32, ptr %9, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds double, ptr %203, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = call double @sinh(double noundef %207) #3
  %209 = fdiv double %200, %208
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.transfer_workspace, ptr %210, i32 0, i32 11
  %212 = load ptr, ptr %211, align 8, !tbaa !24
  %213 = load i32, ptr %9, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  store double %209, ptr %215, align 8, !tbaa !11
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.transfer_workspace, ptr %216, i32 0, i32 11
  %218 = load ptr, ptr %217, align 8, !tbaa !24
  %219 = load i32, ptr %9, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds double, ptr %218, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !11
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.transfer_workspace, ptr %223, i32 0, i32 10
  %225 = load ptr, ptr %224, align 8, !tbaa !20
  %226 = load i32, ptr %9, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds double, ptr %225, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !11
  %230 = call double @cosh(double noundef %229) #3
  %231 = fmul double %222, %230
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.transfer_workspace, ptr %232, i32 0, i32 12
  %234 = load ptr, ptr %233, align 8, !tbaa !25
  %235 = load i32, ptr %9, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds double, ptr %234, i64 %236
  store double %231, ptr %237, align 8, !tbaa !11
  br label %238

238:                                              ; preds = %172
  %239 = load i32, ptr %9, align 4, !tbaa !9
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %9, align 4, !tbaa !9
  br label %166, !llvm.loop !29

241:                                              ; preds = %166
  br label %242

242:                                              ; preds = %241, %159, %94, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret i32 0
}

; Function Attrs: nounwind
declare double @sin(double noundef) #1

; Function Attrs: nounwind
declare double @cos(double noundef) #1

; Function Attrs: nounwind
declare double @sinh(double noundef) #1

; Function Attrs: nounwind
declare double @cosh(double noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 192}
!14 = !{!"transfer_workspace", !15, i64 0, !10, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !12, i64 184, !10, i64 192, !12, i64 200, !16, i64 208}
!15 = !{!"HypersphericalInterpolationStructure", !10, i64 0, !12, i64 8, !12, i64 16, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!16 = !{!"short", !7, i64 0}
!17 = !{!14, !12, i64 184}
!18 = !{!14, !10, i64 116}
!19 = !{!14, !6, i64 144}
!20 = !{!14, !6, i64 160}
!21 = !{!22, !6, i64 2352}
!22 = !{!"transfers", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !7, i64 824, !16, i64 1624, !16, i64 1626, !7, i64 1628, !10, i64 1884, !6, i64 1888, !6, i64 1896, !6, i64 1904, !16, i64 1912, !16, i64 1914, !7, i64 1916, !10, i64 2172, !6, i64 2176, !6, i64 2184, !6, i64 2192, !6, i64 2200, !16, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !10, i64 2232, !10, i64 2236, !10, i64 2240, !10, i64 2244, !10, i64 2248, !10, i64 2252, !10, i64 2256, !10, i64 2260, !10, i64 2264, !10, i64 2268, !10, i64 2272, !10, i64 2276, !10, i64 2280, !6, i64 2288, !6, i64 2296, !6, i64 2304, !10, i64 2312, !6, i64 2320, !12, i64 2328, !23, i64 2336, !6, i64 2344, !6, i64 2352, !10, i64 2360, !6, i64 2368, !16, i64 2376, !16, i64 2378, !7, i64 2380}
!23 = !{!"long", !7, i64 0}
!24 = !{!14, !6, i64 168}
!25 = !{!14, !6, i64 176}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}


; 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"

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local noundef i32 @transfer_radial_coordinates(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %1, i64 192
  %6 = load i32, ptr %5, align 8, !tbaa !5
  switch i32 %6, label %.loopexit [
    i32 1, label %49
    i32 0, label %.preheader
    i32 -1, label %110
  ]

.preheader:                                       ; preds = %4
  %7 = getelementptr inbounds i8, ptr %1, i64 116
  %8 = load i32, ptr %7, align 4, !tbaa !14
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph68, label %.loopexit

.lr.ph68:                                         ; preds = %.preheader
  %10 = getelementptr inbounds i8, ptr %0, i64 2352
  %11 = load ptr, ptr %10, align 8, !tbaa !15
  %12 = sext i32 %2 to i64
  %13 = getelementptr inbounds ptr, ptr %11, i64 %12
  %14 = load ptr, ptr %13, align 8, !tbaa !18
  %15 = sext i32 %3 to i64
  %16 = getelementptr inbounds double, ptr %14, i64 %15
  %17 = getelementptr inbounds i8, ptr %1, i64 144
  %18 = load ptr, ptr %17, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %1, i64 160
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %1, i64 168
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %1, i64 176
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  %wide.trip.count = zext nneg i32 %8 to i64
  %min.iters.check = icmp ult i32 %8, 6
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph68
  %indvars.iv74.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph68 ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %25 = load double, ptr %16, align 8, !tbaa !23
  %26 = getelementptr inbounds double, ptr %18, i64 %indvars.iv74.ph
  %27 = load double, ptr %26, align 8, !tbaa !23
  %28 = fmul double %25, %27
  %29 = getelementptr inbounds double, ptr %20, i64 %indvars.iv74.ph
  store double %28, ptr %29, align 8, !tbaa !23
  %30 = fdiv double 1.000000e+00, %28
  %31 = getelementptr inbounds double, ptr %22, i64 %indvars.iv74.ph
  store double %30, ptr %31, align 8, !tbaa !23
  %32 = load double, ptr %29, align 8, !tbaa !23
  %33 = fdiv double 1.000000e+00, %32
  %34 = getelementptr inbounds double, ptr %24, i64 %indvars.iv74.ph
  store double %33, ptr %34, align 8, !tbaa !23
  %indvars.iv.next75.prol = or disjoint i64 %indvars.iv74.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv74.unr = phi i64 [ %indvars.iv74.ph, %scalar.ph.preheader ], [ %indvars.iv.next75.prol, %scalar.ph.prol ]
  %35 = add nsw i64 %wide.trip.count, -1
  %36 = icmp eq i64 %indvars.iv74.ph, %35
  br i1 %36, label %.loopexit, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph68
  %37 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %20, i64 %37
  %scevgep84 = getelementptr i8, ptr %22, i64 %37
  %scevgep85 = getelementptr i8, ptr %24, i64 %37
  %38 = shl nsw i64 %15, 3
  %39 = getelementptr i8, ptr %14, i64 %38
  %scevgep86 = getelementptr i8, ptr %39, i64 8
  %scevgep87 = getelementptr i8, ptr %18, i64 %37
  %bound0 = icmp ult ptr %20, %scevgep84
  %bound1 = icmp ult ptr %22, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound088 = icmp ult ptr %20, %scevgep85
  %bound189 = icmp ult ptr %24, %scevgep
  %found.conflict90 = and i1 %bound088, %bound189
  %conflict.rdx = or i1 %found.conflict, %found.conflict90
  %bound091 = icmp ult ptr %20, %scevgep86
  %bound192 = icmp ult ptr %16, %scevgep
  %found.conflict93 = and i1 %bound091, %bound192
  %conflict.rdx94 = or i1 %conflict.rdx, %found.conflict93
  %bound095 = icmp ult ptr %20, %scevgep87
  %bound196 = icmp ult ptr %18, %scevgep
  %found.conflict97 = and i1 %bound095, %bound196
  %conflict.rdx98 = or i1 %conflict.rdx94, %found.conflict97
  %bound099 = icmp ult ptr %22, %scevgep85
  %bound1100 = icmp ult ptr %24, %scevgep84
  %found.conflict101 = and i1 %bound099, %bound1100
  %conflict.rdx102 = or i1 %conflict.rdx98, %found.conflict101
  %bound0103 = icmp ult ptr %22, %scevgep86
  %bound1104 = icmp ult ptr %16, %scevgep84
  %found.conflict105 = and i1 %bound0103, %bound1104
  %conflict.rdx106 = or i1 %conflict.rdx102, %found.conflict105
  %bound0107 = icmp ult ptr %22, %scevgep87
  %bound1108 = icmp ult ptr %18, %scevgep84
  %found.conflict109 = and i1 %bound0107, %bound1108
  %conflict.rdx110 = or i1 %conflict.rdx106, %found.conflict109
  %bound0111 = icmp ult ptr %24, %scevgep86
  %bound1112 = icmp ult ptr %16, %scevgep85
  %found.conflict113 = and i1 %bound0111, %bound1112
  %conflict.rdx114 = or i1 %conflict.rdx110, %found.conflict113
  %bound0115 = icmp ult ptr %24, %scevgep87
  %bound1116 = icmp ult ptr %18, %scevgep85
  %found.conflict117 = and i1 %bound0115, %bound1116
  %conflict.rdx118 = or i1 %conflict.rdx114, %found.conflict117
  br i1 %conflict.rdx118, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483646
  %40 = load double, ptr %16, align 8, !tbaa !23, !alias.scope !24
  %broadcast.splatinsert = insertelement <2 x double> poison, double %40, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %41 = getelementptr inbounds double, ptr %18, i64 %index
  %wide.load = load <2 x double>, ptr %41, align 8, !tbaa !23, !alias.scope !27
  %42 = fmul <2 x double> %broadcast.splat, %wide.load
  %43 = getelementptr inbounds double, ptr %20, i64 %index
  store <2 x double> %42, ptr %43, align 8, !tbaa !23, !alias.scope !29, !noalias !31
  %44 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %42
  %45 = getelementptr inbounds double, ptr %22, i64 %index
  store <2 x double> %44, ptr %45, align 8, !tbaa !23, !alias.scope !34, !noalias !35
  %46 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %42
  %47 = getelementptr inbounds double, ptr %24, i64 %index
  store <2 x double> %46, ptr %47, align 8, !tbaa !23, !alias.scope !36, !noalias !37
  %index.next = add nuw i64 %index, 2
  %48 = icmp eq i64 %index.next, %n.vec
  br i1 %48, label %middle.block, label %vector.body, !llvm.loop !38

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

49:                                               ; preds = %4
  %50 = getelementptr inbounds i8, ptr %1, i64 184
  %51 = load double, ptr %50, align 8, !tbaa !42
  %52 = tail call double @sqrt(double noundef %51) #2
  %53 = getelementptr inbounds i8, ptr %1, i64 116
  %54 = load i32, ptr %53, align 4, !tbaa !14
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.lr.ph70, label %.loopexit

.lr.ph70:                                         ; preds = %49
  %56 = getelementptr inbounds i8, ptr %1, i64 144
  %57 = getelementptr inbounds i8, ptr %1, i64 160
  %58 = getelementptr inbounds i8, ptr %0, i64 2352
  %59 = sext i32 %2 to i64
  %60 = sext i32 %3 to i64
  %61 = getelementptr inbounds i8, ptr %1, i64 168
  %62 = getelementptr inbounds i8, ptr %1, i64 176
  br label %63

63:                                               ; preds = %.lr.ph70, %63
  %indvars.iv77 = phi i64 [ 0, %.lr.ph70 ], [ %indvars.iv.next78, %63 ]
  %64 = load ptr, ptr %56, align 8, !tbaa !19
  %65 = getelementptr inbounds double, ptr %64, i64 %indvars.iv77
  %66 = load double, ptr %65, align 8, !tbaa !23
  %67 = fmul double %52, %66
  %68 = load ptr, ptr %57, align 8, !tbaa !20
  %69 = getelementptr inbounds double, ptr %68, i64 %indvars.iv77
  store double %67, ptr %69, align 8, !tbaa !23
  %70 = load ptr, ptr %58, align 8, !tbaa !15
  %71 = getelementptr inbounds ptr, ptr %70, i64 %59
  %72 = load ptr, ptr %71, align 8, !tbaa !18
  %73 = getelementptr inbounds double, ptr %72, i64 %60
  %74 = load double, ptr %73, align 8, !tbaa !23
  %75 = fdiv double %52, %74
  %76 = tail call double @sin(double noundef %67) #2
  %77 = fdiv double %75, %76
  %78 = load ptr, ptr %61, align 8, !tbaa !21
  %79 = getelementptr inbounds double, ptr %78, i64 %indvars.iv77
  store double %77, ptr %79, align 8, !tbaa !23
  %80 = load ptr, ptr %57, align 8, !tbaa !20
  %81 = getelementptr inbounds double, ptr %80, i64 %indvars.iv77
  %82 = load double, ptr %81, align 8, !tbaa !23
  %83 = tail call double @cos(double noundef %82) #2
  %84 = fmul double %77, %83
  %85 = load ptr, ptr %62, align 8, !tbaa !22
  %86 = getelementptr inbounds double, ptr %85, i64 %indvars.iv77
  store double %84, ptr %86, align 8, !tbaa !23
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %87 = load i32, ptr %53, align 4, !tbaa !14
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next78, %88
  br i1 %89, label %63, label %.loopexit, !llvm.loop !43

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv74 = phi i64 [ %indvars.iv.next75.1, %scalar.ph ], [ %indvars.iv74.unr, %scalar.ph.prol.loopexit ]
  %90 = load double, ptr %16, align 8, !tbaa !23
  %91 = getelementptr inbounds double, ptr %18, i64 %indvars.iv74
  %92 = load double, ptr %91, align 8, !tbaa !23
  %93 = fmul double %90, %92
  %94 = getelementptr inbounds double, ptr %20, i64 %indvars.iv74
  store double %93, ptr %94, align 8, !tbaa !23
  %95 = fdiv double 1.000000e+00, %93
  %96 = getelementptr inbounds double, ptr %22, i64 %indvars.iv74
  store double %95, ptr %96, align 8, !tbaa !23
  %97 = load double, ptr %94, align 8, !tbaa !23
  %98 = fdiv double 1.000000e+00, %97
  %99 = getelementptr inbounds double, ptr %24, i64 %indvars.iv74
  store double %98, ptr %99, align 8, !tbaa !23
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %100 = load double, ptr %16, align 8, !tbaa !23
  %101 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.next75
  %102 = load double, ptr %101, align 8, !tbaa !23
  %103 = fmul double %100, %102
  %104 = getelementptr inbounds double, ptr %20, i64 %indvars.iv.next75
  store double %103, ptr %104, align 8, !tbaa !23
  %105 = fdiv double 1.000000e+00, %103
  %106 = getelementptr inbounds double, ptr %22, i64 %indvars.iv.next75
  store double %105, ptr %106, align 8, !tbaa !23
  %107 = load double, ptr %104, align 8, !tbaa !23
  %108 = fdiv double 1.000000e+00, %107
  %109 = getelementptr inbounds double, ptr %24, i64 %indvars.iv.next75
  store double %108, ptr %109, align 8, !tbaa !23
  %indvars.iv.next75.1 = add nuw nsw i64 %indvars.iv74, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next75.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.loopexit, label %scalar.ph, !llvm.loop !44

110:                                              ; preds = %4
  %111 = getelementptr inbounds i8, ptr %1, i64 184
  %112 = load double, ptr %111, align 8, !tbaa !42
  %113 = fneg double %112
  %114 = tail call double @sqrt(double noundef %113) #2
  %115 = getelementptr inbounds i8, ptr %1, i64 116
  %116 = load i32, ptr %115, align 4, !tbaa !14
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %110
  %118 = getelementptr inbounds i8, ptr %1, i64 144
  %119 = getelementptr inbounds i8, ptr %1, i64 160
  %120 = getelementptr inbounds i8, ptr %0, i64 2352
  %121 = sext i32 %2 to i64
  %122 = sext i32 %3 to i64
  %123 = getelementptr inbounds i8, ptr %1, i64 168
  %124 = getelementptr inbounds i8, ptr %1, i64 176
  br label %125

125:                                              ; preds = %.lr.ph, %125
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %125 ]
  %126 = load ptr, ptr %118, align 8, !tbaa !19
  %127 = getelementptr inbounds double, ptr %126, i64 %indvars.iv
  %128 = load double, ptr %127, align 8, !tbaa !23
  %129 = fmul double %114, %128
  %130 = load ptr, ptr %119, align 8, !tbaa !20
  %131 = getelementptr inbounds double, ptr %130, i64 %indvars.iv
  store double %129, ptr %131, align 8, !tbaa !23
  %132 = load ptr, ptr %120, align 8, !tbaa !15
  %133 = getelementptr inbounds ptr, ptr %132, i64 %121
  %134 = load ptr, ptr %133, align 8, !tbaa !18
  %135 = getelementptr inbounds double, ptr %134, i64 %122
  %136 = load double, ptr %135, align 8, !tbaa !23
  %137 = fdiv double %114, %136
  %138 = tail call double @sinh(double noundef %129) #2
  %139 = fdiv double %137, %138
  %140 = load ptr, ptr %123, align 8, !tbaa !21
  %141 = getelementptr inbounds double, ptr %140, i64 %indvars.iv
  store double %139, ptr %141, align 8, !tbaa !23
  %142 = load ptr, ptr %119, align 8, !tbaa !20
  %143 = getelementptr inbounds double, ptr %142, i64 %indvars.iv
  %144 = load double, ptr %143, align 8, !tbaa !23
  %145 = tail call double @cosh(double noundef %144) #2
  %146 = fmul double %139, %145
  %147 = load ptr, ptr %124, align 8, !tbaa !22
  %148 = getelementptr inbounds double, ptr %147, i64 %indvars.iv
  store double %146, ptr %148, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %149 = load i32, ptr %115, align 4, !tbaa !14
  %150 = sext i32 %149 to i64
  %151 = icmp slt i64 %indvars.iv.next, %150
  br i1 %151, label %125, label %.loopexit, !llvm.loop !45

.loopexit:                                        ; preds = %125, %scalar.ph.prol.loopexit, %scalar.ph, %63, %middle.block, %110, %.preheader, %49, %4
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sinh(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cosh(double noundef) local_unnamed_addr #0

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) "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 #1 = { nofree nounwind memory(readwrite, inaccessiblemem: write) 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 #2 = { nounwind }

!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, !8, i64 192}
!6 = !{!"transfer_workspace", !7, i64 0, !8, i64 96, !12, i64 104, !8, i64 112, !8, i64 116, !8, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !11, i64 184, !8, i64 192, !11, i64 200, !13, i64 208}
!7 = !{!"HypersphericalInterpolationStructure", !8, i64 0, !11, i64 8, !11, i64 16, !8, i64 24, !8, i64 28, !12, i64 32, !12, i64 40, !8, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"short", !9, i64 0}
!14 = !{!6, !8, i64 116}
!15 = !{!16, !12, i64 2352}
!16 = !{!"transfers", !11, i64 0, !11, i64 8, !11, i64 16, !9, i64 24, !9, i64 824, !13, i64 1624, !13, i64 1626, !9, i64 1628, !8, i64 1884, !12, i64 1888, !12, i64 1896, !12, i64 1904, !13, i64 1912, !13, i64 1914, !9, i64 1916, !8, i64 2172, !12, i64 2176, !12, i64 2184, !12, i64 2192, !12, i64 2200, !13, i64 2208, !8, i64 2212, !8, i64 2216, !8, i64 2220, !8, i64 2224, !8, i64 2228, !8, i64 2232, !8, i64 2236, !8, i64 2240, !8, i64 2244, !8, i64 2248, !8, i64 2252, !8, i64 2256, !8, i64 2260, !8, i64 2264, !8, i64 2268, !8, i64 2272, !8, i64 2276, !8, i64 2280, !12, i64 2288, !12, i64 2296, !12, i64 2304, !8, i64 2312, !12, i64 2320, !11, i64 2328, !17, i64 2336, !12, i64 2344, !12, i64 2352, !8, i64 2360, !12, i64 2368, !13, i64 2376, !13, i64 2378, !9, i64 2380}
!17 = !{!"long", !9, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!6, !12, i64 144}
!20 = !{!6, !12, i64 160}
!21 = !{!6, !12, i64 168}
!22 = !{!6, !12, i64 176}
!23 = !{!11, !11, i64 0}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = !{!30}
!30 = distinct !{!30, !26}
!31 = !{!32, !33, !25, !28}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}
!34 = !{!32}
!35 = !{!33, !25, !28}
!36 = !{!33}
!37 = !{!25, !28}
!38 = distinct !{!38, !39, !40, !41}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!"llvm.loop.isvectorized", i32 1}
!41 = !{!"llvm.loop.unroll.runtime.disable"}
!42 = !{!6, !11, i64 184}
!43 = distinct !{!43, !39}
!44 = distinct !{!44, !39, !40}
!45 = distinct !{!45, !39}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass