; LLVM IR from o0o0o0o0o0o0o/image-processing-from-scratch :: ImageMatting/Eigen/blas (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"

@_ZZ6dsyr2_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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @dsyr2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca i32, align 4
  %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 ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %30, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %31, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %32 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %32, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = load double, ptr %33, align 8, !tbaa !9
  store double %34, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !11
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = load i8, ptr %35, align 1, !tbaa !13
  %37 = sext i8 %36 to i32
  %38 = icmp eq i32 %37, 85
  br i1 %38, label %44, label %39

39:                                               ; preds = %9
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %42, 117
  br i1 %43, label %44, label %45

44:                                               ; preds = %39, %9
  br label %59

45:                                               ; preds = %39
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load i8, ptr %46, align 1, !tbaa !13
  %48 = sext i8 %47 to i32
  %49 = icmp eq i32 %48, 76
  br i1 %49, label %55, label %50

50:                                               ; preds = %45
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = load i8, ptr %51, align 1, !tbaa !13
  %53 = sext i8 %52 to i32
  %54 = icmp eq i32 %53, 108
  br label %55

55:                                               ; preds = %50, %45
  %56 = phi i1 [ true, %45 ], [ %54, %50 ]
  %57 = zext i1 %56 to i64
  %58 = select i1 %56, i32 1, i32 255
  br label %59

59:                                               ; preds = %55, %44
  %60 = phi i32 [ 0, %44 ], [ %58, %55 ]
  %61 = icmp eq i32 %60, 255
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  store i32 1, ptr %24, align 4, !tbaa !11
  br label %90

63:                                               ; preds = %59
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = icmp slt i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %63
  store i32 2, ptr %24, align 4, !tbaa !11
  br label %89

68:                                               ; preds = %63
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !11
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  store i32 5, ptr %24, align 4, !tbaa !11
  br label %88

73:                                               ; preds = %68
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  %75 = load i32, ptr %74, align 4, !tbaa !11
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %73
  store i32 7, ptr %24, align 4, !tbaa !11
  br label %87

78:                                               ; preds = %73
  %79 = load ptr, ptr %19, align 8, !tbaa !5
  %80 = load i32, ptr %79, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 1, ptr %25, align 4, !tbaa !11
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %81)
  %83 = load i32, ptr %82, align 4, !tbaa !11
  %84 = icmp slt i32 %80, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br i1 %84, label %85, label %86

85:                                               ; preds = %78
  store i32 9, ptr %24, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %85, %78
  br label %87

87:                                               ; preds = %86, %77
  br label %88

88:                                               ; preds = %87, %72
  br label %89

89:                                               ; preds = %88, %67
  br label %90

90:                                               ; preds = %89, %62
  %91 = load i32, ptr %24, align 4, !tbaa !11
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %90
  %94 = call i32 @xerbla_(ptr noundef @.str.9, ptr noundef %24, i32 noundef 6)
  store i32 %94, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %179

95:                                               ; preds = %90
  %96 = load double, ptr %23, align 8, !tbaa !9
  %97 = fcmp oeq double %96, 0.000000e+00
  br i1 %97, label %98, label %99

98:                                               ; preds = %95
  store i32 1, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %179

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %100 = load ptr, ptr %20, align 8, !tbaa !5
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = call noundef ptr @_Z18get_compact_vectorIKdEPT_S2_ii(ptr noundef %100, i32 noundef %102, i32 noundef %104)
  store ptr %105, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %106 = load ptr, ptr %21, align 8, !tbaa !5
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load i32, ptr %107, align 4, !tbaa !11
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !11
  %111 = call noundef ptr @_Z18get_compact_vectorIKdEPT_S2_ii(ptr noundef %106, i32 noundef %108, i32 noundef %110)
  store ptr %111, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load i8, ptr %112, align 1, !tbaa !13
  %114 = sext i8 %113 to i32
  %115 = icmp eq i32 %114, 85
  br i1 %115, label %121, label %116

116:                                              ; preds = %99
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i8, ptr %117, align 1, !tbaa !13
  %119 = sext i8 %118 to i32
  %120 = icmp eq i32 %119, 117
  br i1 %120, label %121, label %122

121:                                              ; preds = %116, %99
  br label %136

122:                                              ; preds = %116
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = load i8, ptr %123, align 1, !tbaa !13
  %125 = sext i8 %124 to i32
  %126 = icmp eq i32 %125, 76
  br i1 %126, label %132, label %127

127:                                              ; preds = %122
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = load i8, ptr %128, align 1, !tbaa !13
  %130 = sext i8 %129 to i32
  %131 = icmp eq i32 %130, 108
  br label %132

132:                                              ; preds = %127, %122
  %133 = phi i1 [ true, %122 ], [ %131, %127 ]
  %134 = zext i1 %133 to i64
  %135 = select i1 %133, i32 1, i32 255
  br label %136

136:                                              ; preds = %132, %121
  %137 = phi i32 [ 0, %121 ], [ %135, %132 ]
  store i32 %137, ptr %29, align 4, !tbaa !11
  %138 = load i32, ptr %29, align 4, !tbaa !11
  %139 = icmp sge i32 %138, 2
  br i1 %139, label %146, label %140

140:                                              ; preds = %136
  %141 = load i32, ptr %29, align 4, !tbaa !11
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [2 x ptr], ptr @_ZZ6dsyr2_E4func, i64 0, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = icmp eq ptr %144, null
  br i1 %145, label %146, label %147

146:                                              ; preds = %140, %136
  store i32 0, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %178

147:                                              ; preds = %140
  %148 = load i32, ptr %29, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [2 x ptr], ptr @_ZZ6dsyr2_E4func, i64 0, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = load i32, ptr %152, align 4, !tbaa !11
  %154 = load ptr, ptr %22, align 8, !tbaa !5
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !11
  %157 = load ptr, ptr %27, align 8, !tbaa !5
  %158 = load ptr, ptr %28, align 8, !tbaa !5
  %159 = load double, ptr %23, align 8, !tbaa !9
  call void %151(i32 noundef %153, ptr noundef %154, i32 noundef %156, ptr noundef %157, ptr noundef %158, double noundef %159)
  %160 = load ptr, ptr %27, align 8, !tbaa !5
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  %162 = icmp ne ptr %160, %161
  br i1 %162, label %163, label %168

163:                                              ; preds = %147
  %164 = load ptr, ptr %27, align 8, !tbaa !5
  %165 = icmp eq ptr %164, null
  br i1 %165, label %167, label %166

166:                                              ; preds = %163
  call void @_ZdaPv(ptr noundef %164) #6
  br label %167

167:                                              ; preds = %166, %163
  br label %168

168:                                              ; preds = %167, %147
  %169 = load ptr, ptr %28, align 8, !tbaa !5
  %170 = load ptr, ptr %21, align 8, !tbaa !5
  %171 = icmp ne ptr %169, %170
  br i1 %171, label %172, label %177

172:                                              ; preds = %168
  %173 = load ptr, ptr %28, align 8, !tbaa !5
  %174 = icmp eq ptr %173, null
  br i1 %174, label %176, label %175

175:                                              ; preds = %172
  call void @_ZdaPv(ptr noundef %173) #6
  br label %176

176:                                              ; preds = %175, %172
  br label %177

177:                                              ; preds = %176, %168
  store i32 1, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %178

178:                                              ; preds = %177, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %179

179:                                              ; preds = %178, %98, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %180 = load i32, ptr %10, align 4
  ret i32 %180
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !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"

@_ZZ6dsyr2_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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @dsyr2_(ptr nocapture noundef readonly %0, ptr noundef %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, ptr nocapture noundef readonly %8) local_unnamed_addr #3 {
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = load double, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %13 = load i8, ptr %0, align 1, !tbaa !9
  switch i8 %13, label %14 [
    i8 85, label %.critedge
    i8 117, label %.critedge
    i8 76, label %.critedge
    i8 108, label %.critedge
  ]

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

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

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

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

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

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

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

26:                                               ; preds = %22
  %27 = load i32, ptr %8, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 1, ptr %11, align 4, !tbaa !10
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %29 = load i32, ptr %28, align 4, !tbaa !10
  %30 = icmp slt i32 %27, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br i1 %30, label %31, label %33

31:                                               ; preds = %26
  store i32 9, ptr %10, align 4, !tbaa !10
  br label %.thread

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

33:                                               ; preds = %26
  %34 = fcmp oeq double %12, 0.000000e+00
  br i1 %34, label %55, label %35

35:                                               ; preds = %33
  %36 = load i32, ptr %1, align 4, !tbaa !10
  %37 = load i32, ptr %4, align 4, !tbaa !10
  %38 = call noundef ptr @_Z18get_compact_vectorIKdEPT_S2_ii(ptr noundef %3, i32 noundef %36, i32 noundef %37)
  %39 = load i32, ptr %1, align 4, !tbaa !10
  %40 = load i32, ptr %6, align 4, !tbaa !10
  %41 = call noundef ptr @_Z18get_compact_vectorIKdEPT_S2_ii(ptr noundef %5, i32 noundef %39, i32 noundef %40)
  %42 = load i8, ptr %0, align 1, !tbaa !9
  switch i8 %42, label %55 [
    i8 85, label %select.unfold
    i8 117, label %select.unfold
    i8 76, label %43
    i8 108, label %select.unfold.fold.split
  ]

43:                                               ; preds = %35
  br label %select.unfold

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

select.unfold:                                    ; preds = %35, %35, %select.unfold.fold.split, %43
  %.ph = phi i64 [ 1, %43 ], [ 0, %35 ], [ 0, %35 ], [ 1, %select.unfold.fold.split ]
  %44 = getelementptr inbounds [2 x ptr], ptr @_ZZ6dsyr2_E4func, i64 0, i64 %.ph
  %45 = load ptr, ptr %44, align 8, !tbaa !12
  %46 = icmp eq ptr %45, null
  br i1 %46, label %55, label %47

47:                                               ; preds = %select.unfold
  %48 = load i32, ptr %1, align 4, !tbaa !10
  %49 = load i32, ptr %8, align 4, !tbaa !10
  call void %45(i32 noundef %48, ptr noundef %7, i32 noundef %49, ptr noundef %38, ptr noundef %41, double noundef %12)
  %.not46 = icmp eq ptr %38, %3
  %50 = icmp eq ptr %38, null
  %or.cond = or i1 %.not46, %50
  br i1 %or.cond, label %52, label %51

51:                                               ; preds = %47
  call void @_ZdaPv(ptr noundef nonnull %38) #6
  br label %52

52:                                               ; preds = %51, %47
  %.not47 = icmp eq ptr %41, %5
  %53 = icmp eq ptr %41, null
  %or.cond48 = or i1 %.not47, %53
  br i1 %or.cond48, label %55, label %54

54:                                               ; preds = %52
  call void @_ZdaPv(ptr noundef nonnull %41) #6
  br label %55

55:                                               ; preds = %35, %select.unfold, %54, %52, %33, %.thread
  %.1 = phi i32 [ %32, %.thread ], [ 1, %33 ], [ 0, %select.unfold ], [ 1, %54 ], [ 1, %52 ], [ 0, %35 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  ret i32 %.1
}

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


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