; LLVM IR from o0o0o0o0o0o0o/image-processing-from-scratch :: ImageMatting/Eigen/blas (complex_single)

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

%"class.std::complex" = type { { float, float } }

@_ZZ6chpr2_E4func = external hidden constant [2 x ptr], align 16
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorISt7complexIfEEPT_S3_ii(ptr noundef, i32 noundef, i32 noundef) #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local i32 @chpr2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #7 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.std::complex", align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::complex", align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::complex", align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %29 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %29, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %30, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %31 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %31, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !11
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load i8, ptr %33, align 1, !tbaa !10
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %35, 85
  br i1 %36, label %42, label %37

37:                                               ; preds = %8
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load i8, ptr %38, align 1, !tbaa !10
  %40 = sext i8 %39 to i32
  %41 = icmp eq i32 %40, 117
  br i1 %41, label %42, label %43

42:                                               ; preds = %37, %8
  br label %57

43:                                               ; preds = %37
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load i8, ptr %44, align 1, !tbaa !10
  %46 = sext i8 %45 to i32
  %47 = icmp eq i32 %46, 76
  br i1 %47, label %53, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load i8, ptr %49, align 1, !tbaa !10
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 108
  br label %53

53:                                               ; preds = %48, %43
  %54 = phi i1 [ true, %43 ], [ %52, %48 ]
  %55 = zext i1 %54 to i64
  %56 = select i1 %54, i32 1, i32 255
  br label %57

57:                                               ; preds = %53, %42
  %58 = phi i32 [ 0, %42 ], [ %56, %53 ]
  %59 = icmp eq i32 %58, 255
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  store i32 1, ptr %22, align 4, !tbaa !11
  br label %79

61:                                               ; preds = %57
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !11
  %64 = icmp slt i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %61
  store i32 2, ptr %22, align 4, !tbaa !11
  br label %78

66:                                               ; preds = %61
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !11
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  store i32 5, ptr %22, align 4, !tbaa !11
  br label %77

71:                                               ; preds = %66
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %76

75:                                               ; preds = %71
  store i32 7, ptr %22, align 4, !tbaa !11
  br label %76

76:                                               ; preds = %75, %71
  br label %77

77:                                               ; preds = %76, %70
  br label %78

78:                                               ; preds = %77, %65
  br label %79

79:                                               ; preds = %78, %60
  %80 = load i32, ptr %22, align 4, !tbaa !11
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %84

82:                                               ; preds = %79
  %83 = call i32 @xerbla_(ptr noundef @.str.9, ptr noundef %22, i32 noundef 6)
  store i32 %83, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %166

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %85 = call noundef zeroext i1 @_ZSteqIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br i1 %85, label %86, label %87

86:                                               ; preds = %84
  store i32 1, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %166

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load i32, ptr %89, align 4, !tbaa !11
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = load i32, ptr %91, align 4, !tbaa !11
  %93 = call noundef ptr @_Z18get_compact_vectorISt7complexIfEEPT_S3_ii(ptr noundef %88, i32 noundef %90, i32 noundef %92)
  store ptr %93, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !11
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !11
  %99 = call noundef ptr @_Z18get_compact_vectorISt7complexIfEEPT_S3_ii(ptr noundef %94, i32 noundef %96, i32 noundef %98)
  store ptr %99, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load i8, ptr %100, align 1, !tbaa !10
  %102 = sext i8 %101 to i32
  %103 = icmp eq i32 %102, 85
  br i1 %103, label %109, label %104

104:                                              ; preds = %87
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load i8, ptr %105, align 1, !tbaa !10
  %107 = sext i8 %106 to i32
  %108 = icmp eq i32 %107, 117
  br i1 %108, label %109, label %110

109:                                              ; preds = %104, %87
  br label %124

110:                                              ; preds = %104
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load i8, ptr %111, align 1, !tbaa !10
  %113 = sext i8 %112 to i32
  %114 = icmp eq i32 %113, 76
  br i1 %114, label %120, label %115

115:                                              ; preds = %110
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = load i8, ptr %116, align 1, !tbaa !10
  %118 = sext i8 %117 to i32
  %119 = icmp eq i32 %118, 108
  br label %120

120:                                              ; preds = %115, %110
  %121 = phi i1 [ true, %110 ], [ %119, %115 ]
  %122 = zext i1 %121 to i64
  %123 = select i1 %121, i32 1, i32 255
  br label %124

124:                                              ; preds = %120, %109
  %125 = phi i32 [ 0, %109 ], [ %123, %120 ]
  store i32 %125, ptr %27, align 4, !tbaa !11
  %126 = load i32, ptr %27, align 4, !tbaa !11
  %127 = icmp sge i32 %126, 2
  br i1 %127, label %134, label %128

128:                                              ; preds = %124
  %129 = load i32, ptr %27, align 4, !tbaa !11
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [2 x ptr], ptr @_ZZ6chpr2_E4func, i64 0, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = icmp eq ptr %132, null
  br i1 %133, label %134, label %135

134:                                              ; preds = %128, %124
  store i32 0, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %165

135:                                              ; preds = %128
  %136 = load i32, ptr %27, align 4, !tbaa !11
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [2 x ptr], ptr @_ZZ6chpr2_E4func, i64 0, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = load i32, ptr %140, align 4, !tbaa !11
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  %143 = load ptr, ptr %25, align 8, !tbaa !5
  %144 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !9
  %145 = getelementptr inbounds %"class.std::complex", ptr %28, i32 0, i32 0
  %146 = load <2 x float>, ptr %145, align 4
  call void %139(i32 noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144, <2 x float> %146)
  %147 = load ptr, ptr %25, align 8, !tbaa !5
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  %149 = icmp ne ptr %147, %148
  br i1 %149, label %150, label %155

150:                                              ; preds = %135
  %151 = load ptr, ptr %25, align 8, !tbaa !5
  %152 = icmp eq ptr %151, null
  br i1 %152, label %154, label %153

153:                                              ; preds = %150
  call void @_ZdaPv(ptr noundef %151) #9
  br label %154

154:                                              ; preds = %153, %150
  br label %155

155:                                              ; preds = %154, %135
  %156 = load ptr, ptr %26, align 8, !tbaa !5
  %157 = load ptr, ptr %19, align 8, !tbaa !5
  %158 = icmp ne ptr %156, %157
  br i1 %158, label %159, label %164

159:                                              ; preds = %155
  %160 = load ptr, ptr %26, align 8, !tbaa !5
  %161 = icmp eq ptr %160, null
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  call void @_ZdaPv(ptr noundef %160) #9
  br label %163

163:                                              ; preds = %162, %159
  br label %164

164:                                              ; preds = %163, %155
  store i32 1, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %165

165:                                              ; preds = %164, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %166

166:                                              ; preds = %165, %86, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %167 = load i32, ptr %9, align 4
  ret i32 %167
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { "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 = { inlinehint mustprogress 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 #5 = { mustprogress 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 #6 = { nobuiltin 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 #7 = { mustprogress 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 #8 = { nounwind }
attributes #9 = { builtin 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++ TBAA"}
!9 = !{i64 0, i64 8, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


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

%"class.std::complex" = type { { float, float } }

@_ZZ6chpr2_E4func = external hidden local_unnamed_addr constant [2 x ptr], align 16
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorISt7complexIfEEPT_S3_ii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local i32 @chpr2_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr nocapture noundef readonly %4, ptr noundef %5, ptr nocapture noundef readonly %6, ptr noundef %7) local_unnamed_addr #6 {
  %9 = alloca %"class.std::complex", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::complex", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %12 = load i64, ptr %2, align 4, !tbaa !5
  store i64 %12, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %13 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %13, label %14 [
    i8 85, label %.critedge
    i8 117, label %.critedge
    i8 76, label %.critedge
    i8 108, label %.critedge
  ]

14:                                               ; preds = %8
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %.thread

.critedge:                                        ; preds = %8, %8, %8, %8
  %15 = load i32, ptr %1, align 4, !tbaa !8
  %16 = icmp slt i32 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %.critedge
  store i32 2, ptr %10, align 4, !tbaa !8
  br label %.thread

18:                                               ; preds = %.critedge
  %19 = load i32, ptr %4, align 4, !tbaa !8
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  store i32 5, ptr %10, align 4, !tbaa !8
  br label %.thread

22:                                               ; preds = %18
  %23 = load i32, ptr %6, align 4, !tbaa !8
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %27

25:                                               ; preds = %22
  store i32 7, ptr %10, align 4, !tbaa !8
  br label %.thread

.thread:                                          ; preds = %14, %21, %25, %17
  %26 = call i32 @xerbla_(ptr noundef nonnull @.str.9, ptr noundef nonnull %10, i32 noundef 6)
  br label %48

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %28 = call noundef zeroext i1 @_ZSteqIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br i1 %28, label %48, label %29

29:                                               ; preds = %27
  %30 = load i32, ptr %1, align 4, !tbaa !8
  %31 = load i32, ptr %4, align 4, !tbaa !8
  %32 = call noundef ptr @_Z18get_compact_vectorISt7complexIfEEPT_S3_ii(ptr noundef %3, i32 noundef %30, i32 noundef %31)
  %33 = load i32, ptr %1, align 4, !tbaa !8
  %34 = load i32, ptr %6, align 4, !tbaa !8
  %35 = call noundef ptr @_Z18get_compact_vectorISt7complexIfEEPT_S3_ii(ptr noundef %5, i32 noundef %33, i32 noundef %34)
  %36 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %36, label %48 [
    i8 85, label %select.unfold
    i8 117, label %select.unfold
    i8 76, label %37
    i8 108, label %select.unfold.fold.split
  ]

37:                                               ; preds = %29
  br label %select.unfold

select.unfold.fold.split:                         ; preds = %29
  br label %select.unfold

select.unfold:                                    ; preds = %29, %29, %select.unfold.fold.split, %37
  %.ph = phi i64 [ 1, %37 ], [ 0, %29 ], [ 0, %29 ], [ 1, %select.unfold.fold.split ]
  %38 = getelementptr inbounds [2 x ptr], ptr @_ZZ6chpr2_E4func, i64 0, i64 %.ph
  %39 = load ptr, ptr %38, align 8, !tbaa !10
  %40 = icmp eq ptr %39, null
  br i1 %40, label %48, label %41

41:                                               ; preds = %select.unfold
  %42 = load i32, ptr %1, align 4, !tbaa !8
  %.sroa.0.0.copyload = load <2 x float>, ptr %9, align 8, !tbaa !5
  call void %39(i32 noundef %42, ptr noundef %7, ptr noundef %32, ptr noundef %35, <2 x float> %.sroa.0.0.copyload)
  %.not40 = icmp eq ptr %32, %3
  %43 = icmp eq ptr %32, null
  %or.cond = or i1 %.not40, %43
  br i1 %or.cond, label %45, label %44

44:                                               ; preds = %41
  call void @_ZdaPv(ptr noundef nonnull %32) #8
  br label %45

45:                                               ; preds = %44, %41
  %.not41 = icmp eq ptr %35, %5
  %46 = icmp eq ptr %35, null
  %or.cond42 = or i1 %.not41, %46
  br i1 %or.cond42, label %48, label %47

47:                                               ; preds = %45
  call void @_ZdaPv(ptr noundef nonnull %35) #8
  br label %48

48:                                               ; preds = %29, %select.unfold, %47, %45, %27, %.thread
  %.1 = phi i32 [ %26, %.thread ], [ 1, %27 ], [ 0, %select.unfold ], [ 1, %47 ], [ 1, %45 ], [ 0, %29 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  ret i32 %.1
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { "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 = { inlinehint mustprogress 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 = { mustprogress 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 #5 = { nobuiltin 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 #6 = { mustprogress 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 #7 = { nounwind }
attributes #8 = { builtin 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass