; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 void @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 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 i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %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
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %28 = load ptr, ptr %17, align 8, !tbaa !5
  %29 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %29, ptr %21, align 4, !tbaa !9
  %30 = load i32, ptr %21, align 4, !tbaa !9
  %31 = mul nsw i32 %30, 1
  %32 = add nsw i32 1, %31
  store i32 %32, ptr %22, align 4, !tbaa !9
  %33 = load i32, ptr %22, align 4, !tbaa !9
  %34 = load ptr, ptr %16, align 8, !tbaa !5
  %35 = sext i32 %33 to i64
  %36 = sub i64 0, %35
  %37 = getelementptr inbounds double, ptr %34, i64 %36
  store ptr %37, ptr %16, align 8, !tbaa !5
  %38 = load ptr, ptr %19, align 8, !tbaa !5
  %39 = load i32, ptr %38, align 4, !tbaa !9
  store i32 %39, ptr %23, align 4, !tbaa !9
  %40 = load i32, ptr %23, align 4, !tbaa !9
  %41 = mul nsw i32 %40, 1
  %42 = add nsw i32 1, %41
  store i32 %42, ptr %24, align 4, !tbaa !9
  %43 = load i32, ptr %24, align 4, !tbaa !9
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  %45 = sext i32 %43 to i64
  %46 = sub i64 0, %45
  %47 = getelementptr inbounds double, ptr %44, i64 %46
  store ptr %47, ptr %18, align 8, !tbaa !5
  %48 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %48, align 4, !tbaa !9
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = call i32 @lsame_(ptr noundef %49, ptr noundef @.str)
  store i32 %50, ptr %26, align 4, !tbaa !9
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call i32 @lsame_(ptr noundef %51, ptr noundef @.str.1)
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %60, label %54

54:                                               ; preds = %10
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call i32 @lsame_(ptr noundef %55, ptr noundef @.str.2)
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %60, label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %59, align 4, !tbaa !9
  br label %131

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

64:                                               ; preds = %60
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = call i32 @lsame_(ptr noundef %65, ptr noundef @.str.3)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %74, label %68

68:                                               ; preds = %64
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = call i32 @lsame_(ptr noundef %69, ptr noundef @.str.4)
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %74, label %72

72:                                               ; preds = %68
  %73 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -2, ptr %73, align 4, !tbaa !9
  br label %130

74:                                               ; preds = %68, %64, %60
  %75 = load i32, ptr %26, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %83, label %77

77:                                               ; preds = %74
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = call i32 @lsame_(ptr noundef %78, ptr noundef @.str.1)
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %83, label %81

81:                                               ; preds = %77
  %82 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %82, align 4, !tbaa !9
  br label %129

83:                                               ; preds = %77, %74
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = icmp slt i32 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -4, ptr %88, align 4, !tbaa !9
  br label %128

89:                                               ; preds = %83
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = icmp slt i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %89
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -5, ptr %94, align 4, !tbaa !9
  br label %127

95:                                               ; preds = %89
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp sge i32 1, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %95
  br label %105

102:                                              ; preds = %95
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %102, %101
  %106 = phi i32 [ 1, %101 ], [ %104, %102 ]
  %107 = icmp slt i32 %97, %106
  br i1 %107, label %108, label %110

108:                                              ; preds = %105
  %109 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -7, ptr %109, align 4, !tbaa !9
  br label %126

110:                                              ; preds = %105
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = icmp sge i32 1, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  br label %120

117:                                              ; preds = %110
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %117, %116
  %121 = phi i32 [ 1, %116 ], [ %119, %117 ]
  %122 = icmp slt i32 %112, %121
  br i1 %122, label %123, label %125

123:                                              ; preds = %120
  %124 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -9, ptr %124, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %123, %120
  br label %126

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

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

128:                                              ; preds = %127, %87
  br label %129

129:                                              ; preds = %128, %81
  br label %130

130:                                              ; preds = %129, %72
  br label %131

131:                                              ; preds = %130, %58
  %132 = load ptr, ptr %20, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %140

135:                                              ; preds = %131
  %136 = load ptr, ptr %20, align 8, !tbaa !5
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = sub nsw i32 0, %137
  store i32 %138, ptr %25, align 4, !tbaa !9
  %139 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %25, i32 noundef 6)
  store i32 1, ptr %27, align 4
  br label %194

140:                                              ; preds = %131
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = icmp eq i32 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %140
  store i32 1, ptr %27, align 4
  br label %194

145:                                              ; preds = %140
  %146 = load i32, ptr %26, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %177

148:                                              ; preds = %145
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  %150 = load i32, ptr %149, align 4, !tbaa !9
  store i32 %150, ptr %25, align 4, !tbaa !9
  %151 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 1, ptr %151, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %172, %148
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = load i32, ptr %25, align 4, !tbaa !9
  %156 = icmp sle i32 %154, %155
  br i1 %156, label %157, label %176

157:                                              ; preds = %152
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  %160 = load i32, ptr %159, align 4, !tbaa !9
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  %162 = load i32, ptr %161, align 4, !tbaa !9
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = mul nsw i32 %162, %163
  %165 = add nsw i32 %160, %164
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %158, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !11
  %169 = fcmp oeq double %168, 0.000000e+00
  br i1 %169, label %170, label %171

170:                                              ; preds = %157
  store i32 1, ptr %27, align 4
  br label %194

171:                                              ; preds = %157
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %20, align 8, !tbaa !5
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %173, align 4, !tbaa !9
  br label %152, !llvm.loop !13

176:                                              ; preds = %152
  br label %177

177:                                              ; preds = %176, %145
  %178 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %178, align 4, !tbaa !9
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = load ptr, ptr %14, align 8, !tbaa !5
  %183 = load ptr, ptr %15, align 8, !tbaa !5
  %184 = load ptr, ptr %16, align 8, !tbaa !5
  %185 = load i32, ptr %22, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = load ptr, ptr %18, align 8, !tbaa !5
  %190 = load i32, ptr %24, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds double, ptr %189, i64 %191
  %193 = load ptr, ptr %19, align 8, !tbaa !5
  call void @dtrsm_(ptr noundef @.str.6, ptr noundef %179, ptr noundef %180, ptr noundef %181, ptr noundef %182, ptr noundef %183, ptr noundef @c_b12, ptr noundef %187, ptr noundef %188, ptr noundef %192, ptr noundef %193)
  store i32 1, ptr %27, align 4
  br label %194

194:                                              ; preds = %177, %170, %144, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  ret void
}

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

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

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

declare void @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 = !{!"int", !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 void @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 i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %12 = load i32, ptr %6, align 4, !tbaa !5
  %narrow = xor i32 %12, -1
  %13 = sext i32 %narrow to i64
  %14 = getelementptr inbounds double, ptr %5, i64 %13
  store i32 0, ptr %9, align 4, !tbaa !5
  %15 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #4
  %16 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %17, label %19

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.lr.ph:                                           ; preds = %46
  %47 = add i32 %12, 1
  %48 = add nuw i32 %29, 1
  %wide.trip.count = zext i32 %48 to i64
  br label %49

49:                                               ; preds = %.lr.ph, %56
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %56 ]
  %50 = trunc nuw nsw i64 %indvars.iv to i32
  %51 = mul i32 %47, %50
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %14, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fcmp oeq double %54, 0.000000e+00
  br i1 %55, label %.loopexit70, label %56

56:                                               ; preds = %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %49, !llvm.loop !11

.loopexit:                                        ; preds = %56, %46
  store i32 0, ptr %9, align 4, !tbaa !5
  tail call void @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 %57

.loopexit70:                                      ; preds = %49
  store i32 %50, ptr %9, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %.loopexit70, %44, %.loopexit, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  ret void
}

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

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

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

declare void @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 i32 @llvm.umax.i32(i32, i32) #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 = !{!"int", !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