; LLVM IR from heroseh/cgm :: cgm (cgm_3d_pt_vs_aabb)

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

%union.CgmVec3 = type { %struct.anon.0 }
%struct.anon.0 = type { float, float, float }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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 float @llvm.copysign.f32(float, float) #2

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_sub(<2 x float>, float, <2 x float>, float) #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_abs(<2 x float>, float) #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmAabb3d_center(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @cgm_3d_pt_vs_aabb(<2 x float> %0, float %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca i8, align 1
  %7 = alloca %union.CgmVec3, align 4
  %8 = alloca { <2 x float>, float }, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %union.CgmVec3, align 4
  %13 = alloca %union.CgmVec3, align 4
  %14 = alloca { <2 x float>, float }, align 8
  %15 = alloca { <2 x float>, float }, align 4
  %16 = alloca { <2 x float>, float }, align 4
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca %union.CgmVec3, align 4
  %19 = alloca %union.CgmVec3, align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca %union.CgmVec3, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca { <2 x float>, float }, align 4
  %25 = alloca { <2 x float>, float }, align 4
  %26 = alloca { <2 x float>, float }, align 8
  %27 = alloca i32, align 4
  %28 = alloca %union.CgmVec3, align 4
  %29 = alloca %union.CgmVec3, align 4
  %30 = alloca %union.CgmVec3, align 4
  %31 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 0
  store <2 x float> %0, ptr %31, align 4
  %32 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 1
  store float %1, ptr %32, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %8, i64 12, i1 false)
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #4
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call { <2 x float>, float } @CgmAabb3d_center(ptr noundef %33)
  %35 = getelementptr inbounds %union.CgmVec3, ptr %13, i32 0, i32 0
  store { <2 x float>, float } %34, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %14, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %7, i64 12, i1 false)
  %36 = getelementptr inbounds { <2 x float>, float }, ptr %15, i32 0, i32 0
  %37 = load <2 x float>, ptr %36, align 4
  %38 = getelementptr inbounds { <2 x float>, float }, ptr %15, i32 0, i32 1
  %39 = load float, ptr %38, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %13, i64 12, i1 false)
  %40 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 0
  %41 = load <2 x float>, ptr %40, align 4
  %42 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 1
  %43 = load float, ptr %42, align 4
  %44 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %37, float %39, <2 x float> %41, float %43)
  %45 = getelementptr inbounds %union.CgmVec3, ptr %12, i32 0, i32 0
  store { <2 x float>, float } %44, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 8 %17, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #4
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = call { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef %46)
  %48 = getelementptr inbounds %union.CgmVec3, ptr %19, i32 0, i32 0
  store { <2 x float>, float } %47, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %12, i64 12, i1 false)
  %49 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %50 = load <2 x float>, ptr %49, align 4
  %51 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %52 = load float, ptr %51, align 4
  %53 = call { <2 x float>, float } @CgmVec3_abs(<2 x float> %50, float %52)
  %54 = getelementptr inbounds %union.CgmVec3, ptr %21, i32 0, i32 0
  store { <2 x float>, float } %53, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %19, i64 12, i1 false)
  %55 = getelementptr inbounds { <2 x float>, float }, ptr %24, i32 0, i32 0
  %56 = load <2 x float>, ptr %55, align 4
  %57 = getelementptr inbounds { <2 x float>, float }, ptr %24, i32 0, i32 1
  %58 = load float, ptr %57, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %21, i64 12, i1 false)
  %59 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 0
  %60 = load <2 x float>, ptr %59, align 4
  %61 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 1
  %62 = load float, ptr %61, align 4
  %63 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %56, float %58, <2 x float> %60, float %62)
  %64 = getelementptr inbounds %union.CgmVec3, ptr %18, i32 0, i32 0
  store { <2 x float>, float } %63, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 8 %26, i64 12, i1 false)
  %65 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !9
  %67 = fcmp olt float %66, 0.000000e+00
  br i1 %67, label %76, label %68

68:                                               ; preds = %5
  %69 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 1
  %70 = load float, ptr %69, align 4, !tbaa !9
  %71 = fcmp olt float %70, 0.000000e+00
  br i1 %71, label %76, label %72

72:                                               ; preds = %68
  %73 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 2
  %74 = load float, ptr %73, align 4, !tbaa !9
  %75 = fcmp olt float %74, 0.000000e+00
  br i1 %75, label %76, label %77

76:                                               ; preds = %72, %68, %5
  store i8 0, ptr %6, align 1
  store i32 1, ptr %27, align 4
  br label %163

77:                                               ; preds = %72
  %78 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !9
  %80 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 1
  %81 = load float, ptr %80, align 4, !tbaa !9
  %82 = fcmp olt float %79, %81
  br i1 %82, label %83, label %109

83:                                               ; preds = %77
  %84 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 0
  %85 = load float, ptr %84, align 4, !tbaa !9
  %86 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 2
  %87 = load float, ptr %86, align 4, !tbaa !9
  %88 = fcmp olt float %85, %87
  br i1 %88, label %89, label %109

89:                                               ; preds = %83
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %96

92:                                               ; preds = %89
  %93 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 0
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  store float %94, ptr %95, align 4, !tbaa !10
  br label %96

96:                                               ; preds = %92, %89
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %108

99:                                               ; preds = %96
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.anon.0, ptr %28, i32 0, i32 0
  %102 = getelementptr inbounds %struct.anon.0, ptr %12, i32 0, i32 0
  %103 = load float, ptr %102, align 4, !tbaa !9
  %104 = call float @llvm.copysign.f32(float 1.000000e+00, float %103)
  %105 = fneg float %104
  store float %105, ptr %101, align 4, !tbaa !12
  %106 = getelementptr inbounds %struct.anon.0, ptr %28, i32 0, i32 1
  store float 0.000000e+00, ptr %106, align 4, !tbaa !14
  %107 = getelementptr inbounds %struct.anon.0, ptr %28, i32 0, i32 2
  store float 0.000000e+00, ptr %107, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !16
  br label %108

108:                                              ; preds = %99, %96
  br label %162

109:                                              ; preds = %83, %77
  %110 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 1
  %111 = load float, ptr %110, align 4, !tbaa !9
  %112 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 0
  %113 = load float, ptr %112, align 4, !tbaa !9
  %114 = fcmp olt float %111, %113
  br i1 %114, label %115, label %141

115:                                              ; preds = %109
  %116 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 1
  %117 = load float, ptr %116, align 4, !tbaa !9
  %118 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 2
  %119 = load float, ptr %118, align 4, !tbaa !9
  %120 = fcmp olt float %117, %119
  br i1 %120, label %121, label %141

121:                                              ; preds = %115
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = icmp ne ptr %122, null
  br i1 %123, label %124, label %128

124:                                              ; preds = %121
  %125 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 1
  %126 = load float, ptr %125, align 4, !tbaa !9
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  store float %126, ptr %127, align 4, !tbaa !10
  br label %128

128:                                              ; preds = %124, %121
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = icmp ne ptr %129, null
  br i1 %130, label %131, label %140

131:                                              ; preds = %128
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.anon.0, ptr %29, i32 0, i32 0
  store float 0.000000e+00, ptr %133, align 4, !tbaa !12
  %134 = getelementptr inbounds %struct.anon.0, ptr %29, i32 0, i32 1
  %135 = getelementptr inbounds %struct.anon.0, ptr %12, i32 0, i32 1
  %136 = load float, ptr %135, align 4, !tbaa !9
  %137 = call float @llvm.copysign.f32(float 1.000000e+00, float %136)
  %138 = fneg float %137
  store float %138, ptr %134, align 4, !tbaa !14
  %139 = getelementptr inbounds %struct.anon.0, ptr %29, i32 0, i32 2
  store float 0.000000e+00, ptr %139, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %132, ptr align 4 %29, i64 12, i1 false), !tbaa.struct !16
  br label %140

140:                                              ; preds = %131, %128
  br label %161

141:                                              ; preds = %115, %109
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %148

144:                                              ; preds = %141
  %145 = getelementptr inbounds %struct.anon.0, ptr %18, i32 0, i32 2
  %146 = load float, ptr %145, align 4, !tbaa !9
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  store float %146, ptr %147, align 4, !tbaa !10
  br label %148

148:                                              ; preds = %144, %141
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %160

151:                                              ; preds = %148
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.anon.0, ptr %30, i32 0, i32 0
  store float 0.000000e+00, ptr %153, align 4, !tbaa !12
  %154 = getelementptr inbounds %struct.anon.0, ptr %30, i32 0, i32 1
  store float 0.000000e+00, ptr %154, align 4, !tbaa !14
  %155 = getelementptr inbounds %struct.anon.0, ptr %30, i32 0, i32 2
  %156 = getelementptr inbounds %struct.anon.0, ptr %12, i32 0, i32 2
  %157 = load float, ptr %156, align 4, !tbaa !9
  %158 = call float @llvm.copysign.f32(float 1.000000e+00, float %157)
  %159 = fneg float %158
  store float %159, ptr %155, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %152, ptr align 4 %30, i64 12, i1 false), !tbaa.struct !16
  br label %160

160:                                              ; preds = %151, %148
  br label %161

161:                                              ; preds = %160, %140
  br label %162

162:                                              ; preds = %161, %108
  store i8 1, ptr %6, align 1
  store i32 1, ptr %27, align 4
  br label %163

163:                                              ; preds = %162, %76
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #4
  %164 = load i8, ptr %6, align 1
  ret i8 %164
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!14 = !{!13, !11, i64 4}
!15 = !{!13, !11, i64 8}
!16 = !{i64 0, i64 12, !9}


; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.copysign.f32(float, float) #0

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_sub(<2 x float>, float, <2 x float>, float) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_abs(<2 x float>, float) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmAabb3d_center(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @cgm_3d_pt_vs_aabb(<2 x float> %0, float %1, ptr noundef %2, ptr noundef writeonly %3, ptr noundef writeonly %4) local_unnamed_addr #1 {
  %6 = tail call { <2 x float>, float } @CgmAabb3d_center(ptr noundef %2)
  %.fca.0.extract60 = extractvalue { <2 x float>, float } %6, 0
  %.fca.1.extract61 = extractvalue { <2 x float>, float } %6, 1
  %7 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %0, float %1, <2 x float> %.fca.0.extract60, float %.fca.1.extract61)
  %.fca.0.extract52 = extractvalue { <2 x float>, float } %7, 0
  %.fca.1.extract53 = extractvalue { <2 x float>, float } %7, 1
  %8 = tail call { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef %2)
  %.fca.0.extract26 = extractvalue { <2 x float>, float } %8, 0
  %.fca.1.extract27 = extractvalue { <2 x float>, float } %8, 1
  %9 = tail call { <2 x float>, float } @CgmVec3_abs(<2 x float> %.fca.0.extract52, float %.fca.1.extract53)
  %.fca.0.extract18 = extractvalue { <2 x float>, float } %9, 0
  %.fca.1.extract19 = extractvalue { <2 x float>, float } %9, 1
  %10 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract26, float %.fca.1.extract27, <2 x float> %.fca.0.extract18, float %.fca.1.extract19)
  %.fca.0.extract = extractvalue { <2 x float>, float } %10, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %10, 1
  %.sroa.032.0.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 0
  %11 = fcmp olt float %.sroa.032.0.vec.extract, 0.000000e+00
  %.sroa.032.4.vec.extract48 = extractelement <2 x float> %.fca.0.extract, i64 1
  %12 = fcmp olt float %.sroa.032.4.vec.extract48, 0.000000e+00
  %or.cond = select i1 %11, i1 true, i1 %12
  %13 = fcmp olt float %.fca.1.extract, 0.000000e+00
  %or.cond5 = select i1 %or.cond, i1 true, i1 %13
  br i1 %or.cond5, label %38, label %14

14:                                               ; preds = %5
  %15 = fcmp olt float %.sroa.032.0.vec.extract, %.sroa.032.4.vec.extract48
  %16 = fcmp olt float %.sroa.032.0.vec.extract, %.fca.1.extract
  %or.cond94 = select i1 %15, i1 %16, i1 false
  br i1 %or.cond94, label %17, label %23

17:                                               ; preds = %14
  %.not92 = icmp eq ptr %4, null
  br i1 %.not92, label %19, label %18

18:                                               ; preds = %17
  store float %.sroa.032.0.vec.extract, ptr %4, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %18, %17
  %.not93 = icmp eq ptr %3, null
  br i1 %.not93, label %38, label %20

20:                                               ; preds = %19
  %.sroa.066.0.vec.extract = extractelement <2 x float> %.fca.0.extract52, i64 0
  %21 = fneg float %.sroa.066.0.vec.extract
  %22 = tail call float @llvm.copysign.f32(float 1.000000e+00, float %21)
  br label %.sink.split

23:                                               ; preds = %14
  %24 = fcmp olt float %.sroa.032.4.vec.extract48, %.sroa.032.0.vec.extract
  %25 = fcmp olt float %.sroa.032.4.vec.extract48, %.fca.1.extract
  %or.cond95 = select i1 %24, i1 %25, i1 false
  %.not90 = icmp eq ptr %4, null
  br i1 %or.cond95, label %26, label %32

26:                                               ; preds = %23
  br i1 %.not90, label %28, label %27

27:                                               ; preds = %26
  store float %.sroa.032.4.vec.extract48, ptr %4, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %27, %26
  %.not91 = icmp eq ptr %3, null
  br i1 %.not91, label %38, label %29

29:                                               ; preds = %28
  %.sroa.066.4.vec.extract = extractelement <2 x float> %.fca.0.extract52, i64 1
  %30 = fneg float %.sroa.066.4.vec.extract
  %31 = tail call float @llvm.copysign.f32(float 1.000000e+00, float %30)
  br label %.sink.split

32:                                               ; preds = %23
  br i1 %.not90, label %34, label %33

33:                                               ; preds = %32
  store float %.fca.1.extract, ptr %4, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %33, %32
  %.not89 = icmp eq ptr %3, null
  br i1 %.not89, label %38, label %35

35:                                               ; preds = %34
  %36 = fneg float %.fca.1.extract53
  %37 = tail call float @llvm.copysign.f32(float 1.000000e+00, float %36)
  br label %.sink.split

.sink.split:                                      ; preds = %29, %35, %20
  %.sink97 = phi float [ %22, %20 ], [ 0.000000e+00, %35 ], [ 0.000000e+00, %29 ]
  %.sink96 = phi float [ 0.000000e+00, %20 ], [ 0.000000e+00, %35 ], [ %31, %29 ]
  %.sink = phi float [ 0.000000e+00, %20 ], [ %37, %35 ], [ 0.000000e+00, %29 ]
  store float %.sink97, ptr %3, align 4
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 4
  store float %.sink96, ptr %.sroa.210.0..sroa_idx, align 4
  %.sroa.311.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store float %.sink, ptr %.sroa.311.0..sroa_idx, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %.sink.split, %19, %34, %28, %5
  %.0 = phi i8 [ 0, %5 ], [ 1, %28 ], [ 1, %34 ], [ 1, %19 ], [ 1, %.sink.split ]
  ret i8 %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="64" "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" }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}


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