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

; 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 [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_b2 = external hidden global %struct.complex, align 4

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

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

56:                                               ; preds = %52
  %57 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -1, ptr %57, align 8, !tbaa !9
  br label %129

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

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

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

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

72:                                               ; preds = %66, %62, %58
  %73 = load i64, ptr %28, align 8, !tbaa !9
  %74 = icmp ne i64 %73, 0
  br i1 %74, label %81, label %75

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

79:                                               ; preds = %75
  %80 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -3, ptr %80, align 8, !tbaa !9
  br label %127

81:                                               ; preds = %75, %72
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = icmp slt i64 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %81
  %86 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -4, ptr %86, align 8, !tbaa !9
  br label %126

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

91:                                               ; preds = %87
  %92 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -5, ptr %92, align 8, !tbaa !9
  br label %125

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

99:                                               ; preds = %93
  br label %103

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

103:                                              ; preds = %100, %99
  %104 = phi i64 [ 1, %99 ], [ %102, %100 ]
  %105 = icmp slt i64 %95, %104
  br i1 %105, label %106, label %108

106:                                              ; preds = %103
  %107 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -7, ptr %107, align 8, !tbaa !9
  br label %124

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

114:                                              ; preds = %108
  br label %118

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

118:                                              ; preds = %115, %114
  %119 = phi i64 [ 1, %114 ], [ %117, %115 ]
  %120 = icmp slt i64 %110, %119
  br i1 %120, label %121, label %123

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

123:                                              ; preds = %121, %118
  br label %124

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

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

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

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

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

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

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

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

142:                                              ; preds = %138
  store i32 0, ptr %11, align 4
  store i32 1, ptr %29, align 4
  br label %199

143:                                              ; preds = %138
  %144 = load i64, ptr %28, align 8, !tbaa !9
  %145 = icmp ne i64 %144, 0
  br i1 %145, label %146, label %183

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

150:                                              ; preds = %178, %146
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = load i64, ptr %151, align 8, !tbaa !9
  %153 = load i64, ptr %26, align 8, !tbaa !9
  %154 = icmp sle i64 %152, %153
  br i1 %154, label %155, label %182

155:                                              ; preds = %150
  %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
  store i64 %162, ptr %27, align 8, !tbaa !9
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = load i64, ptr %27, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.complex, ptr %163, i64 %164
  %166 = getelementptr inbounds %struct.complex, ptr %165, i32 0, i32 0
  %167 = load float, ptr %166, align 4, !tbaa !11
  %168 = fcmp oeq float %167, 0.000000e+00
  br i1 %168, label %169, label %177

169:                                              ; preds = %155
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = load i64, ptr %27, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.complex, ptr %170, i64 %171
  %173 = getelementptr inbounds %struct.complex, ptr %172, i32 0, i32 1
  %174 = load float, ptr %173, align 4, !tbaa !14
  %175 = fcmp oeq float %174, 0.000000e+00
  br i1 %175, label %176, label %177

176:                                              ; preds = %169
  store i32 0, ptr %11, align 4
  store i32 1, ptr %29, align 4
  br label %199

177:                                              ; preds = %169, %155
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %21, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %179, align 8, !tbaa !9
  br label %150, !llvm.loop !15

182:                                              ; preds = %150
  br label %183

183:                                              ; preds = %182, %143
  %184 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 0, ptr %184, align 8, !tbaa !9
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = load ptr, ptr %14, align 8, !tbaa !5
  %188 = load ptr, ptr %15, align 8, !tbaa !5
  %189 = load ptr, ptr %16, align 8, !tbaa !5
  %190 = load ptr, ptr %17, align 8, !tbaa !5
  %191 = load i64, ptr %23, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.complex, ptr %190, i64 %191
  %193 = load ptr, ptr %18, align 8, !tbaa !5
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = load i64, ptr %25, align 8, !tbaa !9
  %196 = getelementptr inbounds %struct.complex, ptr %194, i64 %195
  %197 = load ptr, ptr %20, align 8, !tbaa !5
  %198 = call i32 @f2c_ctrsm(ptr noundef @.str.6, ptr noundef %185, ptr noundef %186, ptr noundef %187, ptr noundef %188, ptr noundef %189, ptr noundef @c_b2, ptr noundef %192, ptr noundef %193, ptr noundef %196, ptr noundef %197)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %29, align 4
  br label %199

199:                                              ; preds = %183, %176, %142, %133
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %200 = load i32, ptr %11, align 4
  ret i32 %200
}

; 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_ctrsm(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, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"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 [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_b2 = external hidden global %struct.complex, align 4

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @ctrtrs_(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 %struct.complex, 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
  %.not63 = icmp eq i64 %18, 0
  br i1 %.not63, label %.thread.sink.split, label %19

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

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

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

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

26:                                               ; preds = %25
  %27 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.1) #4
  %.not68 = icmp eq i64 %27, 0
  br i1 %.not68, 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
  %.not69 = icmp eq i64 %.pr, 0
  br i1 %.not69, 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 %60

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

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

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

48:                                               ; preds = %.lr.ph, %57
  %storemerge77 = phi i64 [ 1, %.lr.ph ], [ %58, %57 ]
  %49 = mul i64 %storemerge77, %47
  %50 = getelementptr inbounds %struct.complex, ptr %14, i64 %49
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = fcmp oeq float %51, 0.000000e+00
  br i1 %52, label %53, label %57

53:                                               ; preds = %48
  %54 = getelementptr inbounds i8, ptr %50, i64 4
  %55 = load float, ptr %54, align 4, !tbaa !12
  %56 = fcmp oeq float %55, 0.000000e+00
  br i1 %56, label %.loopexit74, label %57

57:                                               ; preds = %48, %53
  %58 = add nuw i64 %storemerge77, 1
  %exitcond.not = icmp eq i64 %storemerge77, %29
  br i1 %exitcond.not, label %.loopexit, label %48, !llvm.loop !13

.loopexit:                                        ; preds = %57, %46
  store i64 0, ptr %9, align 8, !tbaa !5
  %59 = tail call i32 @f2c_ctrsm(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_b2, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %7, ptr noundef nonnull %8) #4
  br label %60

.loopexit74:                                      ; preds = %53
  store i64 %storemerge77, ptr %9, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %.loopexit74, %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_ctrsm(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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"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