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

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

@.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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@c_b12 = external hidden global double, align 8

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

51:                                               ; preds = %10
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = call i64 @lsame_(ptr noundef %52, ptr noundef @.str.2)
  %54 = icmp ne i64 %53, 0
  br i1 %54, label %57, label %55

55:                                               ; preds = %51
  %56 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -1, ptr %56, align 8, !tbaa !9
  br label %128

57:                                               ; preds = %51, %10
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = call i64 @lsame_(ptr noundef %58, ptr noundef @.str)
  %60 = icmp ne i64 %59, 0
  br i1 %60, label %71, label %61

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

65:                                               ; preds = %61
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = call i64 @lsame_(ptr noundef %66, ptr noundef @.str.4)
  %68 = icmp ne i64 %67, 0
  br i1 %68, label %71, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -2, ptr %70, align 8, !tbaa !9
  br label %127

71:                                               ; preds = %65, %61, %57
  %72 = load i64, ptr %27, align 8, !tbaa !9
  %73 = icmp ne i64 %72, 0
  br i1 %73, label %80, label %74

74:                                               ; preds = %71
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = call i64 @lsame_(ptr noundef %75, ptr noundef @.str.1)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %80, label %78

78:                                               ; preds = %74
  %79 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -3, ptr %79, align 8, !tbaa !9
  br label %126

80:                                               ; preds = %74, %71
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = icmp slt i64 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -4, ptr %85, align 8, !tbaa !9
  br label %125

86:                                               ; preds = %80
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = icmp slt i64 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -5, ptr %91, align 8, !tbaa !9
  br label %124

92:                                               ; preds = %86
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = icmp sge i64 1, %96
  br i1 %97, label %98, label %99

98:                                               ; preds = %92
  br label %102

99:                                               ; preds = %92
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = load i64, ptr %100, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %99, %98
  %103 = phi i64 [ 1, %98 ], [ %101, %99 ]
  %104 = icmp slt i64 %94, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %102
  %106 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -7, ptr %106, align 8, !tbaa !9
  br label %123

107:                                              ; preds = %102
  %108 = load ptr, ptr %20, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = icmp sge i64 1, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %107
  br label %117

114:                                              ; preds = %107
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = load i64, ptr %115, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %114, %113
  %118 = phi i64 [ 1, %113 ], [ %116, %114 ]
  %119 = icmp slt i64 %109, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  %121 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -9, ptr %121, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %120, %117
  br label %123

123:                                              ; preds = %122, %105
  br label %124

124:                                              ; preds = %123, %90
  br label %125

125:                                              ; preds = %124, %84
  br label %126

126:                                              ; preds = %125, %78
  br label %127

127:                                              ; preds = %126, %69
  br label %128

128:                                              ; preds = %127, %55
  %129 = load ptr, ptr %21, align 8, !tbaa !5
  %130 = load i64, ptr %129, align 8, !tbaa !9
  %131 = icmp ne i64 %130, 0
  br i1 %131, label %132, label %137

132:                                              ; preds = %128
  %133 = load ptr, ptr %21, align 8, !tbaa !5
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = sub nsw i64 0, %134
  store i64 %135, ptr %26, align 8, !tbaa !9
  %136 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %26)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %28, align 4
  br label %189

137:                                              ; preds = %128
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = icmp eq i64 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %137
  store i32 0, ptr %11, align 4
  store i32 1, ptr %28, align 4
  br label %189

142:                                              ; preds = %137
  %143 = load i64, ptr %27, align 8, !tbaa !9
  %144 = icmp ne i64 %143, 0
  br i1 %144, label %145, label %173

145:                                              ; preds = %142
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = load i64, ptr %146, align 8, !tbaa !9
  store i64 %147, ptr %26, align 8, !tbaa !9
  %148 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 1, ptr %148, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %168, %145
  %150 = load ptr, ptr %21, align 8, !tbaa !5
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = load i64, ptr %26, align 8, !tbaa !9
  %153 = icmp sle i64 %151, %152
  br i1 %153, label %154, label %172

154:                                              ; preds = %149
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = load ptr, ptr %21, align 8, !tbaa !5
  %157 = load i64, ptr %156, align 8, !tbaa !9
  %158 = load ptr, ptr %21, align 8, !tbaa !5
  %159 = load i64, ptr %158, align 8, !tbaa !9
  %160 = load i64, ptr %22, align 8, !tbaa !9
  %161 = mul nsw i64 %159, %160
  %162 = add nsw i64 %157, %161
  %163 = getelementptr inbounds double, ptr %155, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = fcmp oeq double %164, 0.000000e+00
  br i1 %165, label %166, label %167

166:                                              ; preds = %154
  store i32 0, ptr %11, align 4
  store i32 1, ptr %28, align 4
  br label %189

167:                                              ; preds = %154
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %21, align 8, !tbaa !5
  %170 = load i64, ptr %169, align 8, !tbaa !9
  %171 = add nsw i64 %170, 1
  store i64 %171, ptr %169, align 8, !tbaa !9
  br label %149, !llvm.loop !13

172:                                              ; preds = %149
  br label %173

173:                                              ; preds = %172, %142
  %174 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 0, ptr %174, align 8, !tbaa !9
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = load ptr, ptr %16, align 8, !tbaa !5
  %180 = load ptr, ptr %17, align 8, !tbaa !5
  %181 = load i64, ptr %23, align 8, !tbaa !9
  %182 = getelementptr inbounds double, ptr %180, i64 %181
  %183 = load ptr, ptr %18, align 8, !tbaa !5
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = load i64, ptr %25, align 8, !tbaa !9
  %186 = getelementptr inbounds double, ptr %184, i64 %185
  %187 = load ptr, ptr %20, align 8, !tbaa !5
  %188 = call i32 @f2c_dtrsm(ptr noundef @.str.6, ptr noundef %175, ptr noundef %176, ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef @c_b12, ptr noundef %182, ptr noundef %183, ptr noundef %186, ptr noundef %187)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %28, align 4
  br label %189

189:                                              ; preds = %173, %166, %141, %132
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %190 = load i32, ptr %11, align 4
  ret i32 %190
}

; 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_dtrsm(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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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"

@.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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@c_b12 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @dtrtrs_(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 nocapture noundef %9) local_unnamed_addr #0 {
  %11 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %12 = load i64, ptr %6, align 8, !tbaa !5
  %13 = xor i64 %12, -1
  %14 = getelementptr inbounds double, ptr %5, i64 %13
  store i64 0, ptr %9, align 8, !tbaa !5
  %15 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #4
  %16 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %17, label %19

17:                                               ; preds = %10
  %18 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not60 = icmp eq i64 %18, 0
  br i1 %.not60, label %.thread.sink.split, label %19

19:                                               ; preds = %17, %10
  %20 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %.not61 = icmp eq i64 %20, 0
  br i1 %.not61, label %21, label %25

21:                                               ; preds = %19
  %22 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #4
  %.not62 = icmp eq i64 %22, 0
  br i1 %.not62, label %23, label %25

23:                                               ; preds = %21
  %24 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #4
  %.not63 = icmp eq i64 %24, 0
  br i1 %.not63, label %.thread.sink.split, label %25

25:                                               ; preds = %23, %21, %19
  %.not64 = icmp eq i64 %15, 0
  br i1 %.not64, label %26, label %28

26:                                               ; preds = %25
  %27 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.1) #4
  %.not65 = icmp eq i64 %27, 0
  br i1 %.not65, label %.thread.sink.split, label %28

28:                                               ; preds = %26, %25
  %29 = load i64, ptr %3, align 8, !tbaa !5
  %30 = icmp slt i64 %29, 0
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %32 = load i64, ptr %4, align 8, !tbaa !5
  %33 = icmp slt i64 %32, 0
  br i1 %33, label %.thread.sink.split, label %34

34:                                               ; preds = %31
  %35 = load i64, ptr %6, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %29, i64 1)
  %36 = icmp slt i64 %35, %spec.select
  br i1 %36, label %.thread.sink.split, label %37

37:                                               ; preds = %34
  %38 = load i64, ptr %8, align 8, !tbaa !5
  %39 = icmp slt i64 %38, %spec.select
  br i1 %39, label %.thread.sink.split, label %40

40:                                               ; preds = %37
  %.pr = load i64, ptr %9, align 8, !tbaa !5
  %.not66 = icmp eq i64 %.pr, 0
  br i1 %.not66, label %44, label %.thread

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

.thread:                                          ; preds = %.thread.sink.split, %40
  %41 = phi i64 [ %.pr, %40 ], [ %.sink, %.thread.sink.split ]
  %42 = sub nsw i64 0, %41
  store i64 %42, ptr %11, align 8, !tbaa !5
  %43 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %11) #4
  br label %56

44:                                               ; preds = %40
  %45 = icmp eq i64 %29, 0
  br i1 %45, label %56, label %46

46:                                               ; preds = %44
  br i1 %.not64, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %46
  %47 = add i64 %12, 1
  br label %48

48:                                               ; preds = %.lr.ph, %53
  %storemerge74 = phi i64 [ 1, %.lr.ph ], [ %54, %53 ]
  %49 = mul i64 %storemerge74, %47
  %50 = getelementptr inbounds double, ptr %14, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !9
  %52 = fcmp oeq double %51, 0.000000e+00
  br i1 %52, label %.loopexit71, label %53

53:                                               ; preds = %48
  %54 = add nuw i64 %storemerge74, 1
  %exitcond.not = icmp eq i64 %storemerge74, %29
  br i1 %exitcond.not, label %.loopexit, label %48, !llvm.loop !11

.loopexit:                                        ; preds = %53, %46
  store i64 0, ptr %9, align 8, !tbaa !5
  %55 = tail call i32 @f2c_dtrsm(ptr noundef nonnull @.str.6, ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull @c_b12, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %7, ptr noundef nonnull %8) #4
  br label %56

.loopexit71:                                      ; preds = %48
  store i64 %storemerge74, ptr %9, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %.loopexit71, %44, %.loopexit, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #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_dtrsm(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

; 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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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