; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (cgtcon)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.complex = type { float, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @cgtcon_(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, ptr noundef %9, ptr noundef %10) #0 {
  %12 = alloca i32, align 4
  %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 ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca [3 x i64], align 16
  %30 = alloca float, align 4
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  %33 = load ptr, ptr %22, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.complex, ptr %33, i32 -1
  store ptr %34, ptr %22, align 8, !tbaa !5
  %35 = load ptr, ptr %19, align 8, !tbaa !5
  %36 = getelementptr inbounds i64, ptr %35, i32 -1
  store ptr %36, ptr %19, align 8, !tbaa !5
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.complex, ptr %37, i32 -1
  store ptr %38, ptr %18, align 8, !tbaa !5
  %39 = load ptr, ptr %17, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.complex, ptr %39, i32 -1
  store ptr %40, ptr %17, align 8, !tbaa !5
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.complex, ptr %41, i32 -1
  store ptr %42, ptr %16, align 8, !tbaa !5
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.complex, ptr %43, i32 -1
  store ptr %44, ptr %15, align 8, !tbaa !5
  %45 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 0, ptr %45, align 8, !tbaa !9
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = zext i8 %47 to i32
  %49 = icmp eq i32 %48, 49
  br i1 %49, label %54, label %50

50:                                               ; preds = %11
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = call i64 @lsame_(ptr noundef %51, ptr noundef @.str)
  %53 = icmp ne i64 %52, 0
  br label %54

54:                                               ; preds = %50, %11
  %55 = phi i1 [ true, %11 ], [ %53, %50 ]
  %56 = zext i1 %55 to i32
  %57 = sext i32 %56 to i64
  store i64 %57, ptr %31, align 8, !tbaa !9
  %58 = load i64, ptr %31, align 8, !tbaa !9
  %59 = icmp ne i64 %58, 0
  br i1 %59, label %66, label %60

60:                                               ; preds = %54
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = call i64 @lsame_(ptr noundef %61, ptr noundef @.str.1)
  %63 = icmp ne i64 %62, 0
  br i1 %63, label %66, label %64

64:                                               ; preds = %60
  %65 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -1, ptr %65, align 8, !tbaa !9
  br label %80

66:                                               ; preds = %60, %54
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = icmp slt i64 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %66
  %71 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -2, ptr %71, align 8, !tbaa !9
  br label %79

72:                                               ; preds = %66
  %73 = load ptr, ptr %20, align 8, !tbaa !5
  %74 = load float, ptr %73, align 4, !tbaa !12
  %75 = fcmp olt float %74, 0.000000e+00
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -8, ptr %77, align 8, !tbaa !9
  br label %78

78:                                               ; preds = %76, %72
  br label %79

79:                                               ; preds = %78, %70
  br label %80

80:                                               ; preds = %79, %64
  %81 = load ptr, ptr %23, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %84, label %89

84:                                               ; preds = %80
  %85 = load ptr, ptr %23, align 8, !tbaa !5
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = sub nsw i64 0, %86
  store i64 %87, ptr %24, align 8, !tbaa !9
  %88 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %24)
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %198

89:                                               ; preds = %80
  %90 = load ptr, ptr %21, align 8, !tbaa !5
  store float 0.000000e+00, ptr %90, align 4, !tbaa !12
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = icmp eq i64 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %89
  %95 = load ptr, ptr %21, align 8, !tbaa !5
  store float 1.000000e+00, ptr %95, align 4, !tbaa !12
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %198

96:                                               ; preds = %89
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = load float, ptr %97, align 4, !tbaa !12
  %99 = fcmp oeq float %98, 0.000000e+00
  br i1 %99, label %100, label %101

100:                                              ; preds = %96
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %198

101:                                              ; preds = %96
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load i64, ptr %103, align 8, !tbaa !9
  store i64 %104, ptr %24, align 8, !tbaa !9
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %126, %102
  %106 = load i64, ptr %26, align 8, !tbaa !9
  %107 = load i64, ptr %24, align 8, !tbaa !9
  %108 = icmp sle i64 %106, %107
  br i1 %108, label %109, label %129

109:                                              ; preds = %105
  %110 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %110, ptr %25, align 8, !tbaa !9
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = load i64, ptr %25, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.complex, ptr %111, i64 %112
  %114 = getelementptr inbounds %struct.complex, ptr %113, i32 0, i32 0
  %115 = load float, ptr %114, align 4, !tbaa !14
  %116 = fcmp oeq float %115, 0.000000e+00
  br i1 %116, label %117, label %125

117:                                              ; preds = %109
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = load i64, ptr %25, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.complex, ptr %118, i64 %119
  %121 = getelementptr inbounds %struct.complex, ptr %120, i32 0, i32 1
  %122 = load float, ptr %121, align 4, !tbaa !16
  %123 = fcmp oeq float %122, 0.000000e+00
  br i1 %123, label %124, label %125

124:                                              ; preds = %117
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %198

125:                                              ; preds = %117, %109
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %26, align 8, !tbaa !9
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %26, align 8, !tbaa !9
  br label %105, !llvm.loop !17

129:                                              ; preds = %105
  store float 0.000000e+00, ptr %30, align 4, !tbaa !12
  %130 = load i64, ptr %31, align 8, !tbaa !9
  %131 = icmp ne i64 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %129
  store i64 1, ptr %28, align 8, !tbaa !9
  br label %134

133:                                              ; preds = %129
  store i64 2, ptr %28, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %133, %132
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %186, %134
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = load ptr, ptr %22, align 8, !tbaa !5
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = add nsw i64 %139, 1
  %141 = getelementptr inbounds %struct.complex, ptr %137, i64 %140
  %142 = load ptr, ptr %22, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.complex, ptr %142, i64 1
  %144 = getelementptr inbounds [3 x i64], ptr %29, i64 0, i64 0
  %145 = call i32 @clacn2_(ptr noundef %136, ptr noundef %141, ptr noundef %143, ptr noundef %30, ptr noundef %27, ptr noundef %144)
  %146 = load i64, ptr %27, align 8, !tbaa !9
  %147 = icmp ne i64 %146, 0
  br i1 %147, label %148, label %187

148:                                              ; preds = %135
  %149 = load i64, ptr %27, align 8, !tbaa !9
  %150 = load i64, ptr %28, align 8, !tbaa !9
  %151 = icmp eq i64 %149, %150
  br i1 %151, label %152, label %169

152:                                              ; preds = %148
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.complex, ptr %154, i64 1
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.complex, ptr %156, i64 1
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.complex, ptr %158, i64 1
  %160 = load ptr, ptr %18, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.complex, ptr %160, i64 1
  %162 = load ptr, ptr %19, align 8, !tbaa !5
  %163 = getelementptr inbounds i64, ptr %162, i64 1
  %164 = load ptr, ptr %22, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.complex, ptr %164, i64 1
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = load ptr, ptr %23, align 8, !tbaa !5
  %168 = call i32 @cgttrs_(ptr noundef @.str.3, ptr noundef %153, ptr noundef @c__1, ptr noundef %155, ptr noundef %157, ptr noundef %159, ptr noundef %161, ptr noundef %163, ptr noundef %165, ptr noundef %166, ptr noundef %167)
  br label %186

169:                                              ; preds = %148
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.complex, ptr %171, i64 1
  %173 = load ptr, ptr %16, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.complex, ptr %173, i64 1
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.complex, ptr %175, i64 1
  %177 = load ptr, ptr %18, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.complex, ptr %177, i64 1
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = getelementptr inbounds i64, ptr %179, i64 1
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.complex, ptr %181, i64 1
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = load ptr, ptr %23, align 8, !tbaa !5
  %185 = call i32 @cgttrs_(ptr noundef @.str.4, ptr noundef %170, ptr noundef @c__1, ptr noundef %172, ptr noundef %174, ptr noundef %176, ptr noundef %178, ptr noundef %180, ptr noundef %182, ptr noundef %183, ptr noundef %184)
  br label %186

186:                                              ; preds = %169, %152
  br label %135

187:                                              ; preds = %135
  %188 = load float, ptr %30, align 4, !tbaa !12
  %189 = fcmp une float %188, 0.000000e+00
  br i1 %189, label %190, label %197

190:                                              ; preds = %187
  %191 = load float, ptr %30, align 4, !tbaa !12
  %192 = fdiv float 1.000000e+00, %191
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = load float, ptr %193, align 4, !tbaa !12
  %195 = fdiv float %192, %194
  %196 = load ptr, ptr %21, align 8, !tbaa !5
  store float %195, ptr %196, align 4, !tbaa !12
  br label %197

197:                                              ; preds = %190, %187
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %198

198:                                              ; preds = %197, %124, %100, %94, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %199 = load i32, ptr %12, align 4
  ret i32 %199
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) #2

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 4}
!16 = !{!15, !13, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

%struct.complex = type { float, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @cgtcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7, ptr nocapture noundef writeonly %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca [3 x i64], align 16
  %15 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  %16 = getelementptr inbounds i8, ptr %3, i64 -8
  store i64 0, ptr %10, align 8, !tbaa !5
  %17 = load i8, ptr %0, align 1, !tbaa !9
  %18 = icmp eq i8 %17, 49
  br i1 %18, label %.thread, label %19

19:                                               ; preds = %11
  %20 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str) #3
  %.not67 = icmp eq i64 %20, 0
  br i1 %.not67, label %21, label %.thread

21:                                               ; preds = %19
  %22 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %.thread65.sink.split, label %.thread

.thread:                                          ; preds = %11, %21, %19
  %. = phi i64 [ 2, %21 ], [ 1, %19 ], [ 1, %11 ]
  %23 = load i64, ptr %1, align 8, !tbaa !5
  %24 = icmp slt i64 %23, 0
  br i1 %24, label %.thread65.sink.split, label %25

25:                                               ; preds = %.thread
  %26 = load float, ptr %7, align 4, !tbaa !10
  %27 = fcmp olt float %26, 0.000000e+00
  br i1 %27, label %.thread65.sink.split, label %28

28:                                               ; preds = %25
  %.pr = load i64, ptr %10, align 8, !tbaa !5
  %.not61 = icmp eq i64 %.pr, 0
  br i1 %.not61, label %32, label %.thread65

.thread65.sink.split:                             ; preds = %25, %.thread, %21
  %.sink = phi i64 [ -1, %21 ], [ -2, %.thread ], [ -8, %25 ]
  store i64 %.sink, ptr %10, align 8, !tbaa !5
  br label %.thread65

.thread65:                                        ; preds = %.thread65.sink.split, %28
  %29 = phi i64 [ %.pr, %28 ], [ %.sink, %.thread65.sink.split ]
  %30 = sub nsw i64 0, %29
  store i64 %30, ptr %12, align 8, !tbaa !5
  %31 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %12) #3
  br label %.loopexit

32:                                               ; preds = %28
  store float 0.000000e+00, ptr %8, align 4, !tbaa !10
  %33 = icmp eq i64 %23, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %32
  store float 1.000000e+00, ptr %8, align 4, !tbaa !10
  br label %.loopexit

35:                                               ; preds = %32
  %36 = load float, ptr %7, align 4, !tbaa !10
  %37 = fcmp oeq float %36, 0.000000e+00
  br i1 %37, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %35, %45
  %.05769 = phi i64 [ %46, %45 ], [ 1, %35 ]
  %38 = getelementptr inbounds %struct.complex, ptr %16, i64 %.05769
  %39 = load float, ptr %38, align 4, !tbaa !12
  %40 = fcmp oeq float %39, 0.000000e+00
  br i1 %40, label %41, label %45

41:                                               ; preds = %.lr.ph
  %42 = getelementptr inbounds i8, ptr %38, i64 4
  %43 = load float, ptr %42, align 4, !tbaa !14
  %44 = fcmp oeq float %43, 0.000000e+00
  br i1 %44, label %.loopexit, label %45

45:                                               ; preds = %.lr.ph, %41
  %46 = add nuw i64 %.05769, 1
  %exitcond.not = icmp eq i64 %.05769, %23
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %45
  store float 0.000000e+00, ptr %15, align 4, !tbaa !10
  store i64 0, ptr %13, align 8, !tbaa !5
  %47 = getelementptr %struct.complex, ptr %9, i64 %23
  %48 = call i32 @clacn2_(ptr noundef nonnull %1, ptr noundef %47, ptr noundef %9, ptr noundef nonnull %15, ptr noundef nonnull %13, ptr noundef nonnull %14) #3
  %49 = load i64, ptr %13, align 8, !tbaa !5
  %.not6370 = icmp eq i64 %49, 0
  br i1 %.not6370, label %._crit_edge73, label %.lr.ph72

.lr.ph72:                                         ; preds = %._crit_edge, %.lr.ph72
  %50 = phi i64 [ %56, %.lr.ph72 ], [ %49, %._crit_edge ]
  %51 = icmp eq i64 %50, %.
  %.str.3..str.4 = select i1 %51, ptr @.str.3, ptr @.str.4
  %52 = call i32 @cgttrs_(ptr noundef nonnull %.str.3..str.4, ptr noundef nonnull %1, ptr noundef nonnull @c__1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %1, ptr noundef nonnull %10) #3
  %53 = load i64, ptr %1, align 8, !tbaa !5
  %54 = getelementptr %struct.complex, ptr %9, i64 %53
  %55 = call i32 @clacn2_(ptr noundef nonnull %1, ptr noundef %54, ptr noundef %9, ptr noundef nonnull %15, ptr noundef nonnull %13, ptr noundef nonnull %14) #3
  %56 = load i64, ptr %13, align 8, !tbaa !5
  %.not63 = icmp eq i64 %56, 0
  br i1 %.not63, label %._crit_edge73, label %.lr.ph72

._crit_edge73:                                    ; preds = %.lr.ph72, %._crit_edge
  %57 = load float, ptr %15, align 4, !tbaa !10
  %58 = fcmp une float %57, 0.000000e+00
  br i1 %58, label %59, label %.loopexit

59:                                               ; preds = %._crit_edge73
  %60 = fdiv float 1.000000e+00, %57
  %61 = load float, ptr %7, align 4, !tbaa !10
  %62 = fdiv float %60, %61
  store float %62, ptr %8, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %41, %._crit_edge73, %59, %35, %34, %.thread65
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  ret i32 0
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"long", !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}
!14 = !{!13, !11, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass