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

; 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 { { double, double } }

@_ZZ6zhpr2_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 @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double 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 @_ZSteqIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorISt7complexIdEEPT_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 @zhpr2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #5 {
  %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 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::complex", align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::complex", align 8
  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) #7
  %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) #7
  %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) #7
  %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 16, ptr %21) #7
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  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 %168

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %85 = call noundef zeroext i1 @_ZSteqIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  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 %168

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %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_vectorISt7complexIdEEPT_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) #7
  %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_vectorISt7complexIdEEPT_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) #7
  %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 @_ZZ6zhpr2_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 %167

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 @_ZZ6zhpr2_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 8 %28, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !9
  %145 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %146 = load double, ptr %145, align 8
  %147 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %148 = load double, ptr %147, align 8
  call void %139(i32 noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144, double %146, double %148)
  %149 = load ptr, ptr %25, align 8, !tbaa !5
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = icmp ne ptr %149, %150
  br i1 %151, label %152, label %157

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

155:                                              ; preds = %152
  call void @_ZdaPv(ptr noundef %153) #8
  br label %156

156:                                              ; preds = %155, %152
  br label %157

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

161:                                              ; preds = %157
  %162 = load ptr, ptr %26, align 8, !tbaa !5
  %163 = icmp eq ptr %162, null
  br i1 %163, label %165, label %164

164:                                              ; preds = %161
  call void @_ZdaPv(ptr noundef %162) #8
  br label %165

165:                                              ; preds = %164, %161
  br label %166

166:                                              ; preds = %165, %157
  store i32 1, ptr %9, align 4
  store i32 1, ptr %23, align 4
  br label %167

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

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

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

@_ZZ6zhpr2_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 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: 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 @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @zhpr2_(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 #5 {
  %9 = alloca %"class.std::complex", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %12 = load i8, ptr %0, align 1, !tbaa !6
  switch i8 %12, label %13 [
    i8 85, label %.critedge
    i8 117, label %.critedge
    i8 76, label %.critedge
    i8 108, label %.critedge
  ]

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

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

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

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

20:                                               ; preds = %17
  store i32 5, ptr %10, align 4, !tbaa !9
  br label %.thread

21:                                               ; preds = %17
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  store i32 7, ptr %10, align 4, !tbaa !9
  br label %.thread

.thread:                                          ; preds = %13, %20, %24, %16
  %25 = call i32 @xerbla_(ptr noundef nonnull @.str.9, ptr noundef nonnull %10, i32 noundef 6)
  br label %47

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %27 = call noundef zeroext i1 @_ZSteqIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br i1 %27, label %47, label %28

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

36:                                               ; preds = %28
  br label %select.unfold

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

select.unfold:                                    ; preds = %28, %28, %select.unfold.fold.split, %36
  %.ph = phi i64 [ 1, %36 ], [ 0, %28 ], [ 0, %28 ], [ 1, %select.unfold.fold.split ]
  %37 = getelementptr inbounds [2 x ptr], ptr @_ZZ6zhpr2_E4func, i64 0, i64 %.ph
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = icmp eq ptr %38, null
  br i1 %39, label %47, label %40

40:                                               ; preds = %select.unfold
  %41 = load i32, ptr %1, align 4, !tbaa !9
  %.sroa.0.0.copyload = load double, ptr %9, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !6
  call void %38(i32 noundef %41, ptr noundef %7, ptr noundef %31, ptr noundef %34, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %.not40 = icmp eq ptr %31, %3
  %42 = icmp eq ptr %31, null
  %or.cond = or i1 %.not40, %42
  br i1 %or.cond, label %44, label %43

43:                                               ; preds = %40
  call void @_ZdaPv(ptr noundef nonnull %31) #8
  br label %44

44:                                               ; preds = %43, %40
  %.not41 = icmp eq ptr %34, %5
  %45 = icmp eq ptr %34, null
  %or.cond42 = or i1 %.not41, %45
  br i1 %or.cond42, label %47, label %46

46:                                               ; preds = %44
  call void @_ZdaPv(ptr noundef nonnull %34) #8
  br label %47

47:                                               ; preds = %28, %select.unfold, %46, %44, %26, %.thread
  %.1 = phi i32 [ %25, %.thread ], [ 1, %26 ], [ 0, %select.unfold ], [ 1, %46 ], [ 1, %44 ], [ 0, %28 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  ret i32 %.1
}

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


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