; LLVM IR from FSmallenburg/EDMD :: Grow (mdgrow)

; 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.sparticle = type { double, double, double, double, double, double, double, double, double, double, [24 x ptr], i8, double, double, double, double, i8, i8, i8, i8, i32, i32, i32, ptr, i32, ptr, ptr, i32, i8 }

@time = external dso_local global double, align 8
@xsize = external dso_local global double, align 8
@ysize = external dso_local global double, align 8
@zsize = external dso_local global double, align 8
@hx = external dso_local global double, align 8
@hy = external dso_local global double, align 8
@hz = external dso_local global double, align 8

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: nounwind uwtable
define dso_local double @findcollision(ptr noundef %0, ptr noundef %1, double noundef %2) #3 {
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %24 = load double, ptr @time, align 8, !tbaa !9
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.sparticle, ptr %25, i32 0, i32 12
  %27 = load double, ptr %26, align 8, !tbaa !11
  %28 = fsub double %24, %27
  store double %28, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.sparticle, ptr %29, i32 0, i32 0
  %31 = load double, ptr %30, align 8, !tbaa !14
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.sparticle, ptr %32, i32 0, i32 0
  %34 = load double, ptr %33, align 8, !tbaa !14
  %35 = fsub double %31, %34
  %36 = load double, ptr %8, align 8, !tbaa !9
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.sparticle, ptr %37, i32 0, i32 3
  %39 = load double, ptr %38, align 8, !tbaa !15
  %40 = fneg double %36
  %41 = call double @llvm.fmuladd.f64(double %40, double %39, double %35)
  store double %41, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.sparticle, ptr %42, i32 0, i32 1
  %44 = load double, ptr %43, align 8, !tbaa !16
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.sparticle, ptr %45, i32 0, i32 1
  %47 = load double, ptr %46, align 8, !tbaa !16
  %48 = fsub double %44, %47
  %49 = load double, ptr %8, align 8, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.sparticle, ptr %50, i32 0, i32 4
  %52 = load double, ptr %51, align 8, !tbaa !17
  %53 = fneg double %49
  %54 = call double @llvm.fmuladd.f64(double %53, double %52, double %48)
  store double %54, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.sparticle, ptr %55, i32 0, i32 2
  %57 = load double, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.sparticle, ptr %58, i32 0, i32 2
  %60 = load double, ptr %59, align 8, !tbaa !18
  %61 = fsub double %57, %60
  %62 = load double, ptr %8, align 8, !tbaa !9
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.sparticle, ptr %63, i32 0, i32 5
  %65 = load double, ptr %64, align 8, !tbaa !19
  %66 = fneg double %62
  %67 = call double @llvm.fmuladd.f64(double %66, double %65, double %61)
  store double %67, ptr %11, align 8, !tbaa !9
  %68 = load double, ptr %9, align 8, !tbaa !9
  %69 = load double, ptr @hx, align 8, !tbaa !9
  %70 = fcmp ogt double %68, %69
  br i1 %70, label %71, label %75

71:                                               ; preds = %3
  %72 = load double, ptr @xsize, align 8, !tbaa !9
  %73 = load double, ptr %9, align 8, !tbaa !9
  %74 = fsub double %73, %72
  store double %74, ptr %9, align 8, !tbaa !9
  br label %85

75:                                               ; preds = %3
  %76 = load double, ptr %9, align 8, !tbaa !9
  %77 = load double, ptr @hx, align 8, !tbaa !9
  %78 = fneg double %77
  %79 = fcmp olt double %76, %78
  br i1 %79, label %80, label %84

80:                                               ; preds = %75
  %81 = load double, ptr @xsize, align 8, !tbaa !9
  %82 = load double, ptr %9, align 8, !tbaa !9
  %83 = fadd double %82, %81
  store double %83, ptr %9, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %80, %75
  br label %85

85:                                               ; preds = %84, %71
  %86 = load double, ptr %10, align 8, !tbaa !9
  %87 = load double, ptr @hy, align 8, !tbaa !9
  %88 = fcmp ogt double %86, %87
  br i1 %88, label %89, label %93

89:                                               ; preds = %85
  %90 = load double, ptr @ysize, align 8, !tbaa !9
  %91 = load double, ptr %10, align 8, !tbaa !9
  %92 = fsub double %91, %90
  store double %92, ptr %10, align 8, !tbaa !9
  br label %103

93:                                               ; preds = %85
  %94 = load double, ptr %10, align 8, !tbaa !9
  %95 = load double, ptr @hy, align 8, !tbaa !9
  %96 = fneg double %95
  %97 = fcmp olt double %94, %96
  br i1 %97, label %98, label %102

98:                                               ; preds = %93
  %99 = load double, ptr @ysize, align 8, !tbaa !9
  %100 = load double, ptr %10, align 8, !tbaa !9
  %101 = fadd double %100, %99
  store double %101, ptr %10, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %98, %93
  br label %103

103:                                              ; preds = %102, %89
  %104 = load double, ptr %11, align 8, !tbaa !9
  %105 = load double, ptr @hz, align 8, !tbaa !9
  %106 = fcmp ogt double %104, %105
  br i1 %106, label %107, label %111

107:                                              ; preds = %103
  %108 = load double, ptr @zsize, align 8, !tbaa !9
  %109 = load double, ptr %11, align 8, !tbaa !9
  %110 = fsub double %109, %108
  store double %110, ptr %11, align 8, !tbaa !9
  br label %121

111:                                              ; preds = %103
  %112 = load double, ptr %11, align 8, !tbaa !9
  %113 = load double, ptr @hz, align 8, !tbaa !9
  %114 = fneg double %113
  %115 = fcmp olt double %112, %114
  br i1 %115, label %116, label %120

116:                                              ; preds = %111
  %117 = load double, ptr @zsize, align 8, !tbaa !9
  %118 = load double, ptr %11, align 8, !tbaa !9
  %119 = fadd double %118, %117
  store double %119, ptr %11, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %116, %111
  br label %121

121:                                              ; preds = %120, %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.sparticle, ptr %122, i32 0, i32 3
  %124 = load double, ptr %123, align 8, !tbaa !15
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.sparticle, ptr %125, i32 0, i32 3
  %127 = load double, ptr %126, align 8, !tbaa !15
  %128 = fsub double %124, %127
  store double %128, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.sparticle, ptr %129, i32 0, i32 4
  %131 = load double, ptr %130, align 8, !tbaa !17
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.sparticle, ptr %132, i32 0, i32 4
  %134 = load double, ptr %133, align 8, !tbaa !17
  %135 = fsub double %131, %134
  store double %135, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.sparticle, ptr %136, i32 0, i32 5
  %138 = load double, ptr %137, align 8, !tbaa !19
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.sparticle, ptr %139, i32 0, i32 5
  %141 = load double, ptr %140, align 8, !tbaa !19
  %142 = fsub double %138, %141
  store double %142, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.sparticle, ptr %143, i32 0, i32 9
  %145 = load double, ptr %144, align 8, !tbaa !20
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.sparticle, ptr %146, i32 0, i32 9
  %148 = load double, ptr %147, align 8, !tbaa !20
  %149 = fadd double %145, %148
  store double %149, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.sparticle, ptr %150, i32 0, i32 13
  %152 = load double, ptr %151, align 8, !tbaa !21
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.sparticle, ptr %153, i32 0, i32 13
  %155 = load double, ptr %154, align 8, !tbaa !21
  %156 = fadd double %152, %155
  %157 = load double, ptr %8, align 8, !tbaa !9
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.sparticle, ptr %158, i32 0, i32 9
  %160 = load double, ptr %159, align 8, !tbaa !20
  %161 = call double @llvm.fmuladd.f64(double %157, double %160, double %156)
  store double %161, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %162 = load double, ptr %9, align 8, !tbaa !9
  %163 = load double, ptr %12, align 8, !tbaa !9
  %164 = load double, ptr %10, align 8, !tbaa !9
  %165 = load double, ptr %13, align 8, !tbaa !9
  %166 = fmul double %164, %165
  %167 = call double @llvm.fmuladd.f64(double %162, double %163, double %166)
  %168 = load double, ptr %11, align 8, !tbaa !9
  %169 = load double, ptr %14, align 8, !tbaa !9
  %170 = call double @llvm.fmuladd.f64(double %168, double %169, double %167)
  %171 = load double, ptr %15, align 8, !tbaa !9
  %172 = load double, ptr %16, align 8, !tbaa !9
  %173 = fneg double %171
  %174 = call double @llvm.fmuladd.f64(double %173, double %172, double %170)
  store double %174, ptr %17, align 8, !tbaa !9
  %175 = load double, ptr %17, align 8, !tbaa !9
  %176 = fcmp ogt double %175, 0.000000e+00
  br i1 %176, label %177, label %178

177:                                              ; preds = %121
  store double 1.000000e+22, ptr %4, align 8
  store i32 1, ptr %18, align 4
  br label %226

178:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %179 = load double, ptr %12, align 8, !tbaa !9
  %180 = load double, ptr %12, align 8, !tbaa !9
  %181 = load double, ptr %13, align 8, !tbaa !9
  %182 = load double, ptr %13, align 8, !tbaa !9
  %183 = fmul double %181, %182
  %184 = call double @llvm.fmuladd.f64(double %179, double %180, double %183)
  %185 = load double, ptr %14, align 8, !tbaa !9
  %186 = load double, ptr %14, align 8, !tbaa !9
  %187 = call double @llvm.fmuladd.f64(double %185, double %186, double %184)
  store double %187, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %188 = load double, ptr %9, align 8, !tbaa !9
  %189 = load double, ptr %9, align 8, !tbaa !9
  %190 = load double, ptr %10, align 8, !tbaa !9
  %191 = load double, ptr %10, align 8, !tbaa !9
  %192 = fmul double %190, %191
  %193 = call double @llvm.fmuladd.f64(double %188, double %189, double %192)
  %194 = load double, ptr %11, align 8, !tbaa !9
  %195 = load double, ptr %11, align 8, !tbaa !9
  %196 = call double @llvm.fmuladd.f64(double %194, double %195, double %193)
  store double %196, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %197 = load double, ptr %19, align 8, !tbaa !9
  %198 = load double, ptr %15, align 8, !tbaa !9
  %199 = load double, ptr %15, align 8, !tbaa !9
  %200 = fneg double %198
  %201 = call double @llvm.fmuladd.f64(double %200, double %199, double %197)
  store double %201, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %202 = load double, ptr %17, align 8, !tbaa !9
  %203 = load double, ptr %17, align 8, !tbaa !9
  %204 = load double, ptr %21, align 8, !tbaa !9
  %205 = load double, ptr %20, align 8, !tbaa !9
  %206 = load double, ptr %16, align 8, !tbaa !9
  %207 = load double, ptr %16, align 8, !tbaa !9
  %208 = fneg double %206
  %209 = call double @llvm.fmuladd.f64(double %208, double %207, double %205)
  %210 = fmul double %204, %209
  %211 = fneg double %210
  %212 = call double @llvm.fmuladd.f64(double %202, double %203, double %211)
  store double %212, ptr %22, align 8, !tbaa !9
  %213 = load double, ptr %22, align 8, !tbaa !9
  %214 = fcmp olt double %213, 0.000000e+00
  br i1 %214, label %215, label %216

215:                                              ; preds = %178
  store double 1.000000e+22, ptr %4, align 8
  store i32 1, ptr %18, align 4
  br label %225

216:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %217 = load double, ptr %17, align 8, !tbaa !9
  %218 = fneg double %217
  %219 = load double, ptr %22, align 8, !tbaa !9
  %220 = call double @sqrt(double noundef %219) #4
  %221 = fsub double %218, %220
  %222 = load double, ptr %21, align 8, !tbaa !9
  %223 = fdiv double %221, %222
  store double %223, ptr %23, align 8, !tbaa !9
  %224 = load double, ptr %23, align 8, !tbaa !9
  store double %224, ptr %4, align 8
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %225

225:                                              ; preds = %216, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %226

226:                                              ; preds = %225, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %227 = load double, ptr %4, align 8
  ret double %227
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 280}
!12 = !{!"sparticle", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !7, i64 312, !7, i64 313, !7, i64 314, !7, i64 315, !13, i64 316, !13, i64 320, !13, i64 324, !6, i64 328, !13, i64 336, !6, i64 344, !6, i64 352, !13, i64 360, !7, i64 364}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 0}
!15 = !{!12, !10, i64 24}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 16}
!19 = !{!12, !10, i64 40}
!20 = !{!12, !10, i64 72}
!21 = !{!12, !10, i64 288}


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

@time = external dso_local local_unnamed_addr global double, align 8
@xsize = external dso_local local_unnamed_addr global double, align 8
@ysize = external dso_local local_unnamed_addr global double, align 8
@zsize = external dso_local local_unnamed_addr global double, align 8
@hx = external dso_local local_unnamed_addr global double, align 8
@hy = external dso_local local_unnamed_addr global double, align 8
@hz = external dso_local local_unnamed_addr global double, align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(readwrite, inaccessiblemem: write) uwtable
define dso_local double @findcollision(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, double noundef %2) local_unnamed_addr #2 {
  %4 = load double, ptr @time, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 280
  %6 = load double, ptr %5, align 8, !tbaa !9
  %7 = fsub double %4, %6
  %8 = load double, ptr %0, align 8, !tbaa !13
  %9 = load double, ptr %1, align 8, !tbaa !13
  %10 = fsub double %8, %9
  %11 = getelementptr inbounds i8, ptr %1, i64 24
  %12 = load double, ptr %11, align 8, !tbaa !14
  %13 = fneg double %7
  %14 = tail call double @llvm.fmuladd.f64(double %13, double %12, double %10)
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load double, ptr %15, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load double, ptr %17, align 8, !tbaa !15
  %19 = fsub double %16, %18
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  %21 = load double, ptr %20, align 8, !tbaa !16
  %22 = tail call double @llvm.fmuladd.f64(double %13, double %21, double %19)
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load double, ptr %23, align 8, !tbaa !17
  %25 = getelementptr inbounds i8, ptr %1, i64 16
  %26 = load double, ptr %25, align 8, !tbaa !17
  %27 = fsub double %24, %26
  %28 = getelementptr inbounds i8, ptr %1, i64 40
  %29 = load double, ptr %28, align 8, !tbaa !18
  %30 = tail call double @llvm.fmuladd.f64(double %13, double %29, double %27)
  %31 = load double, ptr @hx, align 8, !tbaa !5
  %32 = fcmp ogt double %14, %31
  br i1 %32, label %33, label %36

33:                                               ; preds = %3
  %34 = load double, ptr @xsize, align 8, !tbaa !5
  %35 = fsub double %14, %34
  br label %42

36:                                               ; preds = %3
  %37 = fneg double %31
  %38 = fcmp olt double %14, %37
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  %40 = load double, ptr @xsize, align 8, !tbaa !5
  %41 = fadd double %14, %40
  br label %42

42:                                               ; preds = %36, %39, %33
  %.073 = phi double [ %35, %33 ], [ %41, %39 ], [ %14, %36 ]
  %43 = load double, ptr @hy, align 8, !tbaa !5
  %44 = fcmp ogt double %22, %43
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = load double, ptr @ysize, align 8, !tbaa !5
  %47 = fsub double %22, %46
  br label %54

48:                                               ; preds = %42
  %49 = fneg double %43
  %50 = fcmp olt double %22, %49
  br i1 %50, label %51, label %54

51:                                               ; preds = %48
  %52 = load double, ptr @ysize, align 8, !tbaa !5
  %53 = fadd double %22, %52
  br label %54

54:                                               ; preds = %48, %51, %45
  %.074 = phi double [ %47, %45 ], [ %53, %51 ], [ %22, %48 ]
  %55 = load double, ptr @hz, align 8, !tbaa !5
  %56 = fcmp ogt double %30, %55
  br i1 %56, label %57, label %60

57:                                               ; preds = %54
  %58 = load double, ptr @zsize, align 8, !tbaa !5
  %59 = fsub double %30, %58
  br label %66

60:                                               ; preds = %54
  %61 = fneg double %55
  %62 = fcmp olt double %30, %61
  br i1 %62, label %63, label %66

63:                                               ; preds = %60
  %64 = load double, ptr @zsize, align 8, !tbaa !5
  %65 = fadd double %30, %64
  br label %66

66:                                               ; preds = %60, %63, %57
  %.075 = phi double [ %59, %57 ], [ %65, %63 ], [ %30, %60 ]
  %67 = getelementptr inbounds i8, ptr %0, i64 24
  %68 = load double, ptr %67, align 8, !tbaa !14
  %69 = fsub double %68, %12
  %70 = getelementptr inbounds i8, ptr %0, i64 32
  %71 = load double, ptr %70, align 8, !tbaa !16
  %72 = fsub double %71, %21
  %73 = getelementptr inbounds i8, ptr %0, i64 40
  %74 = load double, ptr %73, align 8, !tbaa !18
  %75 = fsub double %74, %29
  %76 = getelementptr inbounds i8, ptr %0, i64 72
  %77 = load double, ptr %76, align 8, !tbaa !19
  %78 = getelementptr inbounds i8, ptr %1, i64 72
  %79 = load double, ptr %78, align 8, !tbaa !19
  %80 = fadd double %77, %79
  %81 = getelementptr inbounds i8, ptr %0, i64 288
  %82 = load double, ptr %81, align 8, !tbaa !20
  %83 = getelementptr inbounds i8, ptr %1, i64 288
  %84 = load double, ptr %83, align 8, !tbaa !20
  %85 = fadd double %82, %84
  %86 = tail call double @llvm.fmuladd.f64(double %7, double %79, double %85)
  %87 = fmul double %.074, %72
  %88 = tail call double @llvm.fmuladd.f64(double %.073, double %69, double %87)
  %89 = tail call double @llvm.fmuladd.f64(double %.075, double %75, double %88)
  %90 = fneg double %80
  %91 = tail call double @llvm.fmuladd.f64(double %90, double %86, double %89)
  %92 = fcmp ogt double %91, 0.000000e+00
  br i1 %92, label %112, label %93

93:                                               ; preds = %66
  %94 = fmul double %72, %72
  %95 = tail call double @llvm.fmuladd.f64(double %69, double %69, double %94)
  %96 = tail call double @llvm.fmuladd.f64(double %75, double %75, double %95)
  %97 = fmul double %.074, %.074
  %98 = tail call double @llvm.fmuladd.f64(double %.073, double %.073, double %97)
  %99 = tail call double @llvm.fmuladd.f64(double %.075, double %.075, double %98)
  %100 = tail call double @llvm.fmuladd.f64(double %90, double %80, double %96)
  %101 = fneg double %86
  %102 = tail call double @llvm.fmuladd.f64(double %101, double %86, double %99)
  %103 = fneg double %100
  %104 = fmul double %102, %103
  %105 = tail call double @llvm.fmuladd.f64(double %91, double %91, double %104)
  %106 = fcmp olt double %105, 0.000000e+00
  br i1 %106, label %112, label %107

107:                                              ; preds = %93
  %108 = fneg double %91
  %109 = tail call double @sqrt(double noundef %105) #3
  %110 = fsub double %108, %109
  %111 = fdiv double %110, %100
  br label %112

112:                                              ; preds = %107, %93, %66
  %.1 = phi double [ 1.000000e+22, %66 ], [ %111, %107 ], [ 1.000000e+22, %93 ]
  ret double %.1
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 280}
!10 = !{!"sparticle", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !7, i64 80, !7, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !7, i64 312, !7, i64 313, !7, i64 314, !7, i64 315, !11, i64 316, !11, i64 320, !11, i64 324, !12, i64 328, !11, i64 336, !12, i64 344, !12, i64 352, !11, i64 360, !7, i64 364}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !6, i64 0}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 8}
!16 = !{!10, !6, i64 32}
!17 = !{!10, !6, i64 16}
!18 = !{!10, !6, i64 40}
!19 = !{!10, !6, i64 72}
!20 = !{!10, !6, i64 288}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass