; LLVM IR from FSmallenburg/EDMD :: Single (mdSingle)

; 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, [24 x ptr], i8, double, double, double, i8, i32, i32, i32, i32, i32, i32, ptr, ptr, i8, double, ptr, ptr, ptr, ptr, i32, i8 }

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

71:                                               ; preds = %3
  %72 = load double, ptr %9, align 8, !tbaa !9
  %73 = load double, ptr @hx, align 8, !tbaa !9
  %74 = fcmp ogt double %72, %73
  br i1 %74, label %75, label %79

75:                                               ; preds = %71
  %76 = load double, ptr @xsize, align 8, !tbaa !9
  %77 = load double, ptr %9, align 8, !tbaa !9
  %78 = fsub double %77, %76
  store double %78, ptr %9, align 8, !tbaa !9
  br label %89

79:                                               ; preds = %71
  %80 = load double, ptr %9, align 8, !tbaa !9
  %81 = load double, ptr @hx, align 8, !tbaa !9
  %82 = fneg double %81
  %83 = fcmp olt double %80, %82
  br i1 %83, label %84, label %88

84:                                               ; preds = %79
  %85 = load double, ptr @xsize, align 8, !tbaa !9
  %86 = load double, ptr %9, align 8, !tbaa !9
  %87 = fadd double %86, %85
  store double %87, ptr %9, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %84, %79
  br label %89

89:                                               ; preds = %88, %75
  %90 = load double, ptr %10, align 8, !tbaa !9
  %91 = load double, ptr @hy, align 8, !tbaa !9
  %92 = fcmp ogt double %90, %91
  br i1 %92, label %93, label %97

93:                                               ; preds = %89
  %94 = load double, ptr @ysize, align 8, !tbaa !9
  %95 = load double, ptr %10, align 8, !tbaa !9
  %96 = fsub double %95, %94
  store double %96, ptr %10, align 8, !tbaa !9
  br label %107

97:                                               ; preds = %89
  %98 = load double, ptr %10, align 8, !tbaa !9
  %99 = load double, ptr @hy, align 8, !tbaa !9
  %100 = fneg double %99
  %101 = fcmp olt double %98, %100
  br i1 %101, label %102, label %106

102:                                              ; preds = %97
  %103 = load double, ptr @ysize, align 8, !tbaa !9
  %104 = load double, ptr %10, align 8, !tbaa !9
  %105 = fadd double %104, %103
  store double %105, ptr %10, align 8, !tbaa !9
  br label %106

106:                                              ; preds = %102, %97
  br label %107

107:                                              ; preds = %106, %93
  %108 = load double, ptr %11, align 8, !tbaa !9
  %109 = load double, ptr @hz, align 8, !tbaa !9
  %110 = fcmp ogt double %108, %109
  br i1 %110, label %111, label %115

111:                                              ; preds = %107
  %112 = load double, ptr @zsize, align 8, !tbaa !9
  %113 = load double, ptr %11, align 8, !tbaa !9
  %114 = fsub double %113, %112
  store double %114, ptr %11, align 8, !tbaa !9
  br label %125

115:                                              ; preds = %107
  %116 = load double, ptr %11, align 8, !tbaa !9
  %117 = load double, ptr @hz, align 8, !tbaa !9
  %118 = fneg double %117
  %119 = fcmp olt double %116, %118
  br i1 %119, label %120, label %124

120:                                              ; preds = %115
  %121 = load double, ptr @zsize, align 8, !tbaa !9
  %122 = load double, ptr %11, align 8, !tbaa !9
  %123 = fadd double %122, %121
  store double %123, ptr %11, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %120, %115
  br label %125

125:                                              ; preds = %124, %111
  br label %126

126:                                              ; preds = %125, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.sparticle, ptr %127, i32 0, i32 3
  %129 = load double, ptr %128, align 8, !tbaa !15
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.sparticle, ptr %130, i32 0, i32 3
  %132 = load double, ptr %131, align 8, !tbaa !15
  %133 = fsub double %129, %132
  store double %133, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.sparticle, ptr %134, i32 0, i32 4
  %136 = load double, ptr %135, align 8, !tbaa !17
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.sparticle, ptr %137, i32 0, i32 4
  %139 = load double, ptr %138, align 8, !tbaa !17
  %140 = fsub double %136, %139
  store double %140, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.sparticle, ptr %141, i32 0, i32 5
  %143 = load double, ptr %142, align 8, !tbaa !19
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.sparticle, ptr %144, i32 0, i32 5
  %146 = load double, ptr %145, align 8, !tbaa !19
  %147 = fsub double %143, %146
  store double %147, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %148 = load double, ptr %9, align 8, !tbaa !9
  %149 = load double, ptr %12, align 8, !tbaa !9
  %150 = load double, ptr %10, align 8, !tbaa !9
  %151 = load double, ptr %13, align 8, !tbaa !9
  %152 = fmul double %150, %151
  %153 = call double @llvm.fmuladd.f64(double %148, double %149, double %152)
  %154 = load double, ptr %11, align 8, !tbaa !9
  %155 = load double, ptr %14, align 8, !tbaa !9
  %156 = call double @llvm.fmuladd.f64(double %154, double %155, double %153)
  store double %156, ptr %15, align 8, !tbaa !9
  %157 = load double, ptr %15, align 8, !tbaa !9
  %158 = fcmp ogt double %157, 0.000000e+00
  br i1 %158, label %159, label %160

159:                                              ; preds = %126
  store i32 0, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %228

160:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %161 = load double, ptr %9, align 8, !tbaa !9
  %162 = load double, ptr %9, align 8, !tbaa !9
  %163 = load double, ptr %10, align 8, !tbaa !9
  %164 = load double, ptr %10, align 8, !tbaa !9
  %165 = fmul double %163, %164
  %166 = call double @llvm.fmuladd.f64(double %161, double %162, double %165)
  %167 = load double, ptr %11, align 8, !tbaa !9
  %168 = load double, ptr %11, align 8, !tbaa !9
  %169 = call double @llvm.fmuladd.f64(double %167, double %168, double %166)
  store double %169, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.sparticle, ptr %170, i32 0, i32 12
  %172 = load double, ptr %171, align 8, !tbaa !21
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.sparticle, ptr %173, i32 0, i32 12
  %175 = load double, ptr %174, align 8, !tbaa !21
  %176 = fadd double %172, %175
  store double %176, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %177 = load double, ptr %18, align 8, !tbaa !9
  %178 = load double, ptr %18, align 8, !tbaa !9
  %179 = load double, ptr %17, align 8, !tbaa !9
  %180 = fneg double %179
  %181 = call double @llvm.fmuladd.f64(double %177, double %178, double %180)
  store double %181, ptr %19, align 8, !tbaa !9
  %182 = load double, ptr %15, align 8, !tbaa !9
  %183 = fmul double 2.000000e+00, %182
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = load double, ptr %184, align 8, !tbaa !9
  %186 = fmul double %183, %185
  %187 = load double, ptr %19, align 8, !tbaa !9
  %188 = fcmp ogt double %186, %187
  br i1 %188, label %189, label %190

189:                                              ; preds = %160
  store i32 0, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %227

190:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %191 = load double, ptr %12, align 8, !tbaa !9
  %192 = load double, ptr %12, align 8, !tbaa !9
  %193 = load double, ptr %13, align 8, !tbaa !9
  %194 = load double, ptr %13, align 8, !tbaa !9
  %195 = fmul double %193, %194
  %196 = call double @llvm.fmuladd.f64(double %191, double %192, double %195)
  %197 = load double, ptr %14, align 8, !tbaa !9
  %198 = load double, ptr %14, align 8, !tbaa !9
  %199 = call double @llvm.fmuladd.f64(double %197, double %198, double %196)
  store double %199, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %200 = load double, ptr %15, align 8, !tbaa !9
  %201 = load double, ptr %15, align 8, !tbaa !9
  %202 = load double, ptr %20, align 8, !tbaa !9
  %203 = load double, ptr %19, align 8, !tbaa !9
  %204 = fmul double %202, %203
  %205 = call double @llvm.fmuladd.f64(double %200, double %201, double %204)
  store double %205, ptr %21, align 8, !tbaa !9
  %206 = load double, ptr %21, align 8, !tbaa !9
  %207 = fcmp olt double %206, 0.000000e+00
  br i1 %207, label %208, label %209

208:                                              ; preds = %190
  store i32 0, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %226

209:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %210 = load double, ptr %15, align 8, !tbaa !9
  %211 = fneg double %210
  %212 = load double, ptr %21, align 8, !tbaa !9
  %213 = call double @sqrt(double noundef %212) #4
  %214 = fsub double %211, %213
  %215 = load double, ptr %20, align 8, !tbaa !9
  %216 = fdiv double %214, %215
  store double %216, ptr %22, align 8, !tbaa !9
  %217 = load double, ptr %22, align 8, !tbaa !9
  %218 = load ptr, ptr %7, align 8, !tbaa !5
  %219 = load double, ptr %218, align 8, !tbaa !9
  %220 = fcmp olt double %217, %219
  br i1 %220, label %221, label %224

221:                                              ; preds = %209
  %222 = load double, ptr %22, align 8, !tbaa !9
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  store double %222, ptr %223, align 8, !tbaa !9
  store i32 1, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %225

224:                                              ; preds = %209
  store i32 0, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %225

225:                                              ; preds = %224, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %226

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

227:                                              ; preds = %226, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %228

228:                                              ; preds = %227, %159
  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
  %229 = load i32, ptr %4, align 4
  ret i32 %229
}

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 272}
!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, !7, i64 72, !7, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !7, i64 296, !13, i64 300, !13, i64 304, !13, i64 308, !13, i64 312, !13, i64 316, !13, i64 320, !6, i64 328, !6, i64 336, !7, i64 344, !10, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !13, i64 392, !7, i64 396}
!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, !7, i64 296}
!21 = !{!12, !10, i64 280}


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

@simtime = 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 range(i32 0, 2) i32 @findcollision(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2) local_unnamed_addr #2 {
  %4 = load double, ptr @simtime, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 272
  %6 = load double, ptr %5, align 8, !tbaa !9
  %7 = fsub double %4, %6
  %8 = getelementptr inbounds i8, ptr %1, i64 24
  %9 = fneg double %7
  %10 = load <2 x double>, ptr %0, align 8, !tbaa !5
  %11 = load <2 x double>, ptr %1, align 8, !tbaa !5
  %12 = fsub <2 x double> %10, %11
  %13 = load <2 x double>, ptr %8, align 8, !tbaa !5
  %14 = insertelement <2 x double> poison, double %9, i64 0
  %15 = shufflevector <2 x double> %14, <2 x double> poison, <2 x i32> zeroinitializer
  %16 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %15, <2 x double> %13, <2 x double> %12)
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load double, ptr %17, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = load double, ptr %19, align 8, !tbaa !13
  %21 = fsub double %18, %20
  %22 = getelementptr inbounds i8, ptr %1, i64 40
  %23 = load double, ptr %22, align 8, !tbaa !14
  %24 = tail call double @llvm.fmuladd.f64(double %9, double %23, double %21)
  %25 = getelementptr inbounds i8, ptr %0, i64 296
  %26 = load i8, ptr %25, align 8, !tbaa !15
  %.not = icmp eq i8 %26, 0
  br i1 %.not, label %69, label %27

27:                                               ; preds = %3
  %28 = load double, ptr @hx, align 8, !tbaa !5
  %29 = extractelement <2 x double> %16, i64 0
  %30 = fcmp ogt double %29, %28
  br i1 %30, label %31, label %34

31:                                               ; preds = %27
  %32 = load double, ptr @xsize, align 8, !tbaa !5
  %33 = fsub double %29, %32
  br label %40

34:                                               ; preds = %27
  %35 = fneg double %28
  %36 = fcmp olt double %29, %35
  br i1 %36, label %37, label %40

37:                                               ; preds = %34
  %38 = load double, ptr @xsize, align 8, !tbaa !5
  %39 = fadd double %29, %38
  br label %40

40:                                               ; preds = %34, %37, %31
  %.071 = phi double [ %33, %31 ], [ %39, %37 ], [ %29, %34 ]
  %41 = load double, ptr @hy, align 8, !tbaa !5
  %42 = extractelement <2 x double> %16, i64 1
  %43 = fcmp ogt double %42, %41
  br i1 %43, label %44, label %47

44:                                               ; preds = %40
  %45 = load double, ptr @ysize, align 8, !tbaa !5
  %46 = fsub double %42, %45
  br label %53

47:                                               ; preds = %40
  %48 = fneg double %41
  %49 = fcmp olt double %42, %48
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  %51 = load double, ptr @ysize, align 8, !tbaa !5
  %52 = fadd double %42, %51
  br label %53

53:                                               ; preds = %47, %50, %44
  %.073 = phi double [ %46, %44 ], [ %52, %50 ], [ %42, %47 ]
  %54 = load double, ptr @hz, align 8, !tbaa !5
  %55 = fcmp ogt double %24, %54
  br i1 %55, label %56, label %61

56:                                               ; preds = %53
  %57 = load double, ptr @zsize, align 8, !tbaa !5
  %58 = fsub double %24, %57
  %59 = insertelement <2 x double> poison, double %.071, i64 0
  %60 = insertelement <2 x double> %59, double %.073, i64 1
  br label %69

61:                                               ; preds = %53
  %62 = fneg double %54
  %63 = fcmp olt double %24, %62
  %64 = insertelement <2 x double> poison, double %.071, i64 0
  %65 = insertelement <2 x double> %64, double %.073, i64 1
  br i1 %63, label %66, label %69

66:                                               ; preds = %61
  %67 = load double, ptr @zsize, align 8, !tbaa !5
  %68 = fadd double %24, %67
  br label %69

69:                                               ; preds = %56, %66, %61, %3
  %.075 = phi double [ %58, %56 ], [ %68, %66 ], [ %24, %61 ], [ %24, %3 ]
  %70 = phi <2 x double> [ %60, %56 ], [ %65, %66 ], [ %65, %61 ], [ %16, %3 ]
  %71 = getelementptr inbounds i8, ptr %0, i64 24
  %72 = load double, ptr %71, align 8, !tbaa !16
  %73 = extractelement <2 x double> %13, i64 0
  %74 = fsub double %72, %73
  %75 = getelementptr inbounds i8, ptr %0, i64 32
  %76 = load double, ptr %75, align 8, !tbaa !17
  %77 = extractelement <2 x double> %13, i64 1
  %78 = fsub double %76, %77
  %79 = getelementptr inbounds i8, ptr %0, i64 40
  %80 = load double, ptr %79, align 8, !tbaa !14
  %81 = fsub double %80, %23
  %82 = extractelement <2 x double> %70, i64 1
  %83 = fmul double %82, %78
  %84 = extractelement <2 x double> %70, i64 0
  %85 = tail call double @llvm.fmuladd.f64(double %84, double %74, double %83)
  %86 = tail call double @llvm.fmuladd.f64(double %.075, double %81, double %85)
  %87 = fcmp ogt double %86, 0.000000e+00
  br i1 %87, label %118, label %88

88:                                               ; preds = %69
  %89 = fmul double %82, %82
  %90 = tail call double @llvm.fmuladd.f64(double %84, double %84, double %89)
  %91 = tail call double @llvm.fmuladd.f64(double %.075, double %.075, double %90)
  %92 = getelementptr inbounds i8, ptr %0, i64 280
  %93 = load double, ptr %92, align 8, !tbaa !18
  %94 = getelementptr inbounds i8, ptr %1, i64 280
  %95 = load double, ptr %94, align 8, !tbaa !18
  %96 = fadd double %93, %95
  %97 = fneg double %91
  %98 = tail call double @llvm.fmuladd.f64(double %96, double %96, double %97)
  %99 = fmul double %86, 2.000000e+00
  %100 = load double, ptr %2, align 8, !tbaa !5
  %101 = fmul double %99, %100
  %102 = fcmp ogt double %101, %98
  br i1 %102, label %118, label %103

103:                                              ; preds = %88
  %104 = fmul double %78, %78
  %105 = tail call double @llvm.fmuladd.f64(double %74, double %74, double %104)
  %106 = tail call double @llvm.fmuladd.f64(double %81, double %81, double %105)
  %107 = fmul double %106, %98
  %108 = tail call double @llvm.fmuladd.f64(double %86, double %86, double %107)
  %109 = fcmp olt double %108, 0.000000e+00
  br i1 %109, label %118, label %110

110:                                              ; preds = %103
  %111 = fneg double %86
  %112 = tail call double @sqrt(double noundef %108) #4
  %113 = fsub double %111, %112
  %114 = fdiv double %113, %106
  %115 = load double, ptr %2, align 8, !tbaa !5
  %116 = fcmp olt double %114, %115
  br i1 %116, label %117, label %118

117:                                              ; preds = %110
  store double %114, ptr %2, align 8, !tbaa !5
  br label %118

118:                                              ; preds = %88, %117, %110, %103, %69
  %.3 = phi i32 [ 0, %69 ], [ 0, %88 ], [ 0, %103 ], [ 1, %117 ], [ 0, %110 ]
  ret i32 %.3
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 272}
!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, !7, i64 72, !7, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !7, i64 296, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !11, i64 316, !11, i64 320, !12, i64 328, !12, i64 336, !7, i64 344, !6, i64 352, !12, i64 360, !12, i64 368, !12, i64 376, !12, i64 384, !11, i64 392, !7, i64 396}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !7, i64 296}
!16 = !{!10, !6, i64 24}
!17 = !{!10, !6, i64 32}
!18 = !{!10, !6, i64 280}


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