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

; 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 [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @cpbtrs_(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) #0 {
  %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 i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = 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) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  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
  %28 = load ptr, ptr %16, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %29, ptr %20, align 8, !tbaa !9
  %30 = load i64, ptr %20, align 8, !tbaa !9
  %31 = add nsw i64 1, %30
  store i64 %31, ptr %21, align 8, !tbaa !9
  %32 = load i64, ptr %21, align 8, !tbaa !9
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = sub i64 0, %32
  %35 = getelementptr inbounds %struct.complex, ptr %33, i64 %34
  store ptr %35, ptr %15, align 8, !tbaa !5
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  %37 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %37, ptr %22, align 8, !tbaa !9
  %38 = load i64, ptr %22, align 8, !tbaa !9
  %39 = add nsw i64 1, %38
  store i64 %39, ptr %23, align 8, !tbaa !9
  %40 = load i64, ptr %23, align 8, !tbaa !9
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  %42 = sub i64 0, %40
  %43 = getelementptr inbounds %struct.complex, ptr %41, i64 %42
  store ptr %43, ptr %17, align 8, !tbaa !5
  %44 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %44, align 8, !tbaa !9
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = call i64 @lsame_(ptr noundef %45, ptr noundef @.str)
  store i64 %46, ptr %26, align 8, !tbaa !9
  %47 = load i64, ptr %26, align 8, !tbaa !9
  %48 = icmp ne i64 %47, 0
  br i1 %48, label %55, label %49

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

53:                                               ; preds = %49
  %54 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %54, align 8, !tbaa !9
  br label %102

55:                                               ; preds = %49, %9
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = icmp slt i64 %57, 0
  br i1 %58, label %59, label %61

59:                                               ; preds = %55
  %60 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %60, align 8, !tbaa !9
  br label %101

61:                                               ; preds = %55
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = icmp slt i64 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %61
  %66 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -3, ptr %66, align 8, !tbaa !9
  br label %100

67:                                               ; preds = %61
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = icmp slt i64 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %72, align 8, !tbaa !9
  br label %99

73:                                               ; preds = %67
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = load i64, ptr %74, align 8, !tbaa !9
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = add nsw i64 %77, 1
  %79 = icmp slt i64 %75, %78
  br i1 %79, label %80, label %82

80:                                               ; preds = %73
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -6, ptr %81, align 8, !tbaa !9
  br label %98

82:                                               ; preds = %73
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = icmp sge i64 1, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %82
  br label %92

89:                                               ; preds = %82
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %89, %88
  %93 = phi i64 [ 1, %88 ], [ %91, %89 ]
  %94 = icmp slt i64 %84, %93
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -8, ptr %96, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %95, %92
  br label %98

98:                                               ; preds = %97, %80
  br label %99

99:                                               ; preds = %98, %71
  br label %100

100:                                              ; preds = %99, %65
  br label %101

101:                                              ; preds = %100, %59
  br label %102

102:                                              ; preds = %101, %53
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = icmp ne i64 %104, 0
  br i1 %105, label %106, label %111

106:                                              ; preds = %102
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = load i64, ptr %107, align 8, !tbaa !9
  %109 = sub nsw i64 0, %108
  store i64 %109, ptr %24, align 8, !tbaa !9
  %110 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %24)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %27, align 4
  br label %200

111:                                              ; preds = %102
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = icmp eq i64 %113, 0
  br i1 %114, label %119, label %115

115:                                              ; preds = %111
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %115, %111
  store i32 0, ptr %10, align 4
  store i32 1, ptr %27, align 4
  br label %200

120:                                              ; preds = %115
  %121 = load i64, ptr %26, align 8, !tbaa !9
  %122 = icmp ne i64 %121, 0
  br i1 %122, label %123, label %161

123:                                              ; preds = %120
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = load i64, ptr %124, align 8, !tbaa !9
  store i64 %125, ptr %24, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %157, %123
  %127 = load i64, ptr %25, align 8, !tbaa !9
  %128 = load i64, ptr %24, align 8, !tbaa !9
  %129 = icmp sle i64 %127, %128
  br i1 %129, label %130, label %160

130:                                              ; preds = %126
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = load i64, ptr %21, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.complex, ptr %133, i64 %134
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = load i64, ptr %25, align 8, !tbaa !9
  %139 = load i64, ptr %22, align 8, !tbaa !9
  %140 = mul nsw i64 %138, %139
  %141 = add nsw i64 %140, 1
  %142 = getelementptr inbounds %struct.complex, ptr %137, i64 %141
  %143 = call i32 @f2c_ctbsv(ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %131, ptr noundef %132, ptr noundef %135, ptr noundef %136, ptr noundef %142, ptr noundef @c__1)
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = load i64, ptr %21, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.complex, ptr %146, i64 %147
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = load i64, ptr %25, align 8, !tbaa !9
  %152 = load i64, ptr %22, align 8, !tbaa !9
  %153 = mul nsw i64 %151, %152
  %154 = add nsw i64 %153, 1
  %155 = getelementptr inbounds %struct.complex, ptr %150, i64 %154
  %156 = call i32 @f2c_ctbsv(ptr noundef @.str.3, ptr noundef @.str.6, ptr noundef @.str.5, ptr noundef %144, ptr noundef %145, ptr noundef %148, ptr noundef %149, ptr noundef %155, ptr noundef @c__1)
  br label %157

157:                                              ; preds = %130
  %158 = load i64, ptr %25, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %25, align 8, !tbaa !9
  br label %126, !llvm.loop !11

160:                                              ; preds = %126
  br label %199

161:                                              ; preds = %120
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = load i64, ptr %162, align 8, !tbaa !9
  store i64 %163, ptr %24, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %195, %161
  %165 = load i64, ptr %25, align 8, !tbaa !9
  %166 = load i64, ptr %24, align 8, !tbaa !9
  %167 = icmp sle i64 %165, %166
  br i1 %167, label %168, label %198

168:                                              ; preds = %164
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  %172 = load i64, ptr %21, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.complex, ptr %171, i64 %172
  %174 = load ptr, ptr %16, align 8, !tbaa !5
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  %176 = load i64, ptr %25, align 8, !tbaa !9
  %177 = load i64, ptr %22, align 8, !tbaa !9
  %178 = mul nsw i64 %176, %177
  %179 = add nsw i64 %178, 1
  %180 = getelementptr inbounds %struct.complex, ptr %175, i64 %179
  %181 = call i32 @f2c_ctbsv(ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef @.str.5, ptr noundef %169, ptr noundef %170, ptr noundef %173, ptr noundef %174, ptr noundef %180, ptr noundef @c__1)
  %182 = load ptr, ptr %12, align 8, !tbaa !5
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = load i64, ptr %21, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.complex, ptr %184, i64 %185
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = load i64, ptr %25, align 8, !tbaa !9
  %190 = load i64, ptr %22, align 8, !tbaa !9
  %191 = mul nsw i64 %189, %190
  %192 = add nsw i64 %191, 1
  %193 = getelementptr inbounds %struct.complex, ptr %188, i64 %192
  %194 = call i32 @f2c_ctbsv(ptr noundef @.str.7, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %182, ptr noundef %183, ptr noundef %186, ptr noundef %187, ptr noundef %193, ptr noundef @c__1)
  br label %195

195:                                              ; preds = %168
  %196 = load i64, ptr %25, align 8, !tbaa !9
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %25, align 8, !tbaa !9
  br label %164, !llvm.loop !13

198:                                              ; preds = %164
  br label %199

199:                                              ; preds = %198, %160
  store i32 0, ptr %10, align 4
  store i32 1, ptr %27, align 4
  br label %200

200:                                              ; preds = %199, %119, %106
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %201 = load i32, ptr %10, align 4
  ret i32 %201
}

; 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 @f2c_ctbsv(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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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 [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @cpbtrs_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7, ptr nocapture noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %11 = load i64, ptr %7, align 8, !tbaa !5
  %12 = xor i64 %11, -1
  %13 = getelementptr inbounds %struct.complex, ptr %6, i64 %12
  store i64 0, ptr %8, align 8, !tbaa !5
  %14 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %15, label %17

15:                                               ; preds = %9
  %16 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not73 = icmp eq i64 %16, 0
  br i1 %.not73, label %.thread.sink.split, label %17

17:                                               ; preds = %15, %9
  %18 = load i64, ptr %1, align 8, !tbaa !5
  %19 = icmp slt i64 %18, 0
  br i1 %19, label %.thread.sink.split, label %20

20:                                               ; preds = %17
  %21 = load i64, ptr %2, align 8, !tbaa !5
  %22 = icmp slt i64 %21, 0
  br i1 %22, label %.thread.sink.split, label %23

23:                                               ; preds = %20
  %24 = load i64, ptr %3, align 8, !tbaa !5
  %25 = icmp slt i64 %24, 0
  br i1 %25, label %.thread.sink.split, label %26

26:                                               ; preds = %23
  %27 = load i64, ptr %5, align 8, !tbaa !5
  %.not74 = icmp sgt i64 %27, %21
  br i1 %.not74, label %28, label %.thread.sink.split

28:                                               ; preds = %26
  %29 = load i64, ptr %7, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %18, i64 1)
  %30 = icmp slt i64 %29, %spec.select
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not75 = icmp eq i64 %.pr, 0
  br i1 %.not75, label %35, label %.thread

.thread.sink.split:                               ; preds = %28, %26, %23, %20, %17, %15
  %.sink = phi i64 [ -1, %15 ], [ -2, %17 ], [ -3, %20 ], [ -4, %23 ], [ -6, %26 ], [ -8, %28 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %31
  %32 = phi i64 [ %.pr, %31 ], [ %.sink, %.thread.sink.split ]
  %33 = sub nsw i64 0, %32
  store i64 %33, ptr %10, align 8, !tbaa !5
  %34 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %10) #4
  br label %.loopexit

35:                                               ; preds = %31
  %36 = icmp eq i64 %18, 0
  %37 = icmp eq i64 %24, 0
  %or.cond = or i1 %36, %37
  br i1 %or.cond, label %.loopexit, label %38

38:                                               ; preds = %35
  %invariant.gep82 = getelementptr i8, ptr %13, i64 8
  br i1 %.not, label %.lr.ph86, label %.lr.ph

.lr.ph:                                           ; preds = %38, %.lr.ph
  %.06981 = phi i64 [ %42, %.lr.ph ], [ 1, %38 ]
  %39 = mul nsw i64 %.06981, %11
  %gep = getelementptr %struct.complex, ptr %invariant.gep82, i64 %39
  %40 = tail call i32 @f2c_ctbsv(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %gep, ptr noundef nonnull @c__1) #4
  %41 = tail call i32 @f2c_ctbsv(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %gep, ptr noundef nonnull @c__1) #4
  %42 = add nuw i64 %.06981, 1
  %exitcond.not = icmp eq i64 %.06981, %24
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !9

.lr.ph86:                                         ; preds = %38, %.lr.ph86
  %.185 = phi i64 [ %46, %.lr.ph86 ], [ 1, %38 ]
  %43 = mul nsw i64 %.185, %11
  %gep83 = getelementptr %struct.complex, ptr %invariant.gep82, i64 %43
  %44 = tail call i32 @f2c_ctbsv(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %gep83, ptr noundef nonnull @c__1) #4
  %45 = tail call i32 @f2c_ctbsv(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %gep83, ptr noundef nonnull @c__1) #4
  %46 = add nuw i64 %.185, 1
  %exitcond88.not = icmp eq i64 %.185, %24
  br i1 %exitcond88.not, label %.loopexit, label %.lr.ph86, !llvm.loop !11

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph86, %35, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  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 @f2c_ctbsv(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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

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


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