; LLVM IR from FSmallenburg/EDMD :: Multi (mdMulti)

; 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, ptr, ptr, ptr, i8 }
%struct.sevent = type { double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32 }

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

67:                                               ; preds = %2
  %68 = load double, ptr %6, 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 = %67
  %72 = load double, ptr @xsize, align 8, !tbaa !9
  %73 = load double, ptr %6, align 8, !tbaa !9
  %74 = fsub double %73, %72
  store double %74, ptr %6, align 8, !tbaa !9
  br label %85

75:                                               ; preds = %67
  %76 = load double, ptr %6, 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 %6, align 8, !tbaa !9
  %83 = fadd double %82, %81
  store double %83, ptr %6, align 8, !tbaa !9
  br label %84

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

85:                                               ; preds = %84, %71
  %86 = load double, ptr %7, 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 %7, align 8, !tbaa !9
  %92 = fsub double %91, %90
  store double %92, ptr %7, align 8, !tbaa !9
  br label %103

93:                                               ; preds = %85
  %94 = load double, ptr %7, 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 %7, align 8, !tbaa !9
  %101 = fadd double %100, %99
  store double %101, ptr %7, align 8, !tbaa !9
  br label %102

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

103:                                              ; preds = %102, %89
  %104 = load double, ptr %8, 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 %8, align 8, !tbaa !9
  %110 = fsub double %109, %108
  store double %110, ptr %8, align 8, !tbaa !9
  br label %121

111:                                              ; preds = %103
  %112 = load double, ptr %8, 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 %8, align 8, !tbaa !9
  %119 = fadd double %118, %117
  store double %119, ptr %8, align 8, !tbaa !9
  br label %120

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

121:                                              ; preds = %120, %107
  br label %122

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

155:                                              ; preds = %122
  store i32 1, ptr %13, align 4
  br label %227

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

195:                                              ; preds = %156
  store i32 1, ptr %13, align 4
  br label %226

196:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %197 = load double, ptr @simtime, align 8, !tbaa !9
  %198 = load double, ptr %12, align 8, !tbaa !9
  %199 = fneg double %198
  %200 = load double, ptr %17, align 8, !tbaa !9
  %201 = call double @sqrt(double noundef %200) #4
  %202 = fsub double %199, %201
  %203 = load double, ptr %14, align 8, !tbaa !9
  %204 = fdiv double %202, %203
  %205 = fadd double %197, %204
  store double %205, ptr %18, align 8, !tbaa !9
  %206 = load double, ptr %18, align 8, !tbaa !9
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.sparticle, ptr %207, i32 0, i32 19
  %209 = load ptr, ptr %208, align 8, !tbaa !22
  %210 = getelementptr inbounds %struct.sevent, ptr %209, i32 0, i32 0
  %211 = load double, ptr %210, align 8, !tbaa !23
  %212 = fcmp olt double %206, %211
  br i1 %212, label %213, label %225

213:                                              ; preds = %196
  %214 = load double, ptr %18, align 8, !tbaa !9
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.sparticle, ptr %215, i32 0, i32 19
  %217 = load ptr, ptr %216, align 8, !tbaa !22
  %218 = getelementptr inbounds %struct.sevent, ptr %217, i32 0, i32 0
  %219 = load double, ptr %218, align 8, !tbaa !23
  %220 = fcmp olt double %214, %219
  br i1 %220, label %221, label %225

221:                                              ; preds = %213
  %222 = load double, ptr %18, align 8, !tbaa !9
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  call void @createevent(double noundef %222, ptr noundef %223, ptr noundef %224, i32 noundef 0)
  br label %225

225:                                              ; preds = %221, %213, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  store i32 0, ptr %13, align 4
  br label %226

226:                                              ; preds = %225, %195
  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
  br label %227

227:                                              ; preds = %226, %155
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %228 = load i32, ptr %13, align 4
  switch i32 %228, label %230 [
    i32 0, label %229
    i32 1, label %229
  ]

229:                                              ; preds = %227, %227
  ret void

230:                                              ; preds = %227
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local void @createevent(double noundef, ptr noundef, ptr noundef, i32 noundef) #3

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, !6, i64 320, !6, i64 328, !6, i64 336, !7, i64 344}
!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}
!22 = !{!12, !6, i64 320}
!23 = !{!24, !10, i64 0}
!24 = !{!"sevent", !10, 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, !13, i64 84}


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

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

30:                                               ; preds = %26
  %31 = load double, ptr @xsize, align 8, !tbaa !5
  %32 = fsub double %28, %31
  br label %39

33:                                               ; preds = %26
  %34 = fneg double %27
  %35 = fcmp olt double %28, %34
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load double, ptr @xsize, align 8, !tbaa !5
  %38 = fadd double %28, %37
  br label %39

39:                                               ; preds = %33, %36, %30
  %.0 = phi double [ %32, %30 ], [ %38, %36 ], [ %28, %33 ]
  %40 = load double, ptr @hy, align 8, !tbaa !5
  %41 = extractelement <2 x double> %15, i64 1
  %42 = fcmp ogt double %41, %40
  br i1 %42, label %43, label %46

43:                                               ; preds = %39
  %44 = load double, ptr @ysize, align 8, !tbaa !5
  %45 = fsub double %41, %44
  br label %52

46:                                               ; preds = %39
  %47 = fneg double %40
  %48 = fcmp olt double %41, %47
  br i1 %48, label %49, label %52

49:                                               ; preds = %46
  %50 = load double, ptr @ysize, align 8, !tbaa !5
  %51 = fadd double %41, %50
  br label %52

52:                                               ; preds = %46, %49, %43
  %.070 = phi double [ %45, %43 ], [ %51, %49 ], [ %41, %46 ]
  %53 = load double, ptr @hz, align 8, !tbaa !5
  %54 = fcmp ogt double %23, %53
  br i1 %54, label %55, label %60

55:                                               ; preds = %52
  %56 = load double, ptr @zsize, align 8, !tbaa !5
  %57 = fsub double %23, %56
  %58 = insertelement <2 x double> poison, double %.0, i64 0
  %59 = insertelement <2 x double> %58, double %.070, i64 1
  br label %68

60:                                               ; preds = %52
  %61 = fneg double %53
  %62 = fcmp olt double %23, %61
  %63 = insertelement <2 x double> poison, double %.0, i64 0
  %64 = insertelement <2 x double> %63, double %.070, i64 1
  br i1 %62, label %65, label %68

65:                                               ; preds = %60
  %66 = load double, ptr @zsize, align 8, !tbaa !5
  %67 = fadd double %23, %66
  br label %68

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

87:                                               ; preds = %68
  %88 = fmul double %77, %77
  %89 = tail call double @llvm.fmuladd.f64(double %73, double %73, double %88)
  %90 = tail call double @llvm.fmuladd.f64(double %80, double %80, double %89)
  %91 = fmul double %81, %81
  %92 = tail call double @llvm.fmuladd.f64(double %83, double %83, double %91)
  %93 = tail call double @llvm.fmuladd.f64(double %.072, double %.072, double %92)
  %94 = getelementptr inbounds i8, ptr %0, i64 280
  %95 = load double, ptr %94, align 8, !tbaa !18
  %96 = getelementptr inbounds i8, ptr %1, i64 280
  %97 = load double, ptr %96, align 8, !tbaa !18
  %98 = fadd double %95, %97
  %99 = fneg double %98
  %100 = tail call double @llvm.fmuladd.f64(double %99, double %98, double %93)
  %101 = fneg double %90
  %102 = fmul double %100, %101
  %103 = tail call double @llvm.fmuladd.f64(double %85, double %85, double %102)
  %104 = fcmp olt double %103, 0.000000e+00
  br i1 %104, label %121, label %105

105:                                              ; preds = %87
  %106 = fneg double %85
  %107 = tail call double @sqrt(double noundef %103) #4
  %108 = fsub double %106, %107
  %109 = fdiv double %108, %90
  %110 = fadd double %3, %109
  %111 = getelementptr inbounds i8, ptr %0, i64 320
  %112 = load ptr, ptr %111, align 8, !tbaa !19
  %113 = load double, ptr %112, align 8, !tbaa !20
  %114 = fcmp olt double %110, %113
  br i1 %114, label %115, label %121

115:                                              ; preds = %105
  %116 = getelementptr inbounds i8, ptr %1, i64 320
  %117 = load ptr, ptr %116, align 8, !tbaa !19
  %118 = load double, ptr %117, align 8, !tbaa !20
  %119 = fcmp olt double %110, %118
  br i1 %119, label %120, label %121

120:                                              ; preds = %115
  tail call void @createevent(double noundef %110, ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 0)
  br label %121

121:                                              ; preds = %87, %120, %115, %105, %68
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @createevent(double noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; 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 = { 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 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, !12, i64 320, !12, i64 328, !12, i64 336, !7, i64 344}
!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}
!19 = !{!10, !12, i64 320}
!20 = !{!21, !6, i64 0}
!21 = !{!"sevent", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !11, i64 84}


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