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

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

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

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

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

58:                                               ; preds = %54
  %59 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %59, align 8, !tbaa !9
  br label %106

60:                                               ; preds = %54, %50, %9
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = icmp slt i64 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %65, align 8, !tbaa !9
  br label %105

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

70:                                               ; preds = %66
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -3, ptr %71, align 8, !tbaa !9
  br label %104

72:                                               ; preds = %66
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = icmp sge i64 1, %76
  br i1 %77, label %78, label %79

78:                                               ; preds = %72
  br label %82

79:                                               ; preds = %72
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = load i64, ptr %80, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %79, %78
  %83 = phi i64 [ 1, %78 ], [ %81, %79 ]
  %84 = icmp slt i64 %74, %83
  br i1 %84, label %85, label %87

85:                                               ; preds = %82
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -5, ptr %86, align 8, !tbaa !9
  br label %103

87:                                               ; preds = %82
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = icmp sge i64 1, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %87
  br label %97

94:                                               ; preds = %87
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %94, %93
  %98 = phi i64 [ 1, %93 ], [ %96, %94 ]
  %99 = icmp slt i64 %89, %98
  br i1 %99, label %100, label %102

100:                                              ; preds = %97
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -8, ptr %101, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %100, %97
  br label %103

103:                                              ; preds = %102, %85
  br label %104

104:                                              ; preds = %103, %70
  br label %105

105:                                              ; preds = %104, %64
  br label %106

106:                                              ; preds = %105, %58
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = load i64, ptr %107, align 8, !tbaa !9
  %109 = icmp ne i64 %108, 0
  br i1 %109, label %110, label %115

110:                                              ; preds = %106
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = sub nsw i64 0, %112
  store i64 %113, ptr %24, align 8, !tbaa !9
  %114 = call i32 @xerbla_(ptr noundef @.str.3, ptr noundef %24)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %192

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

119:                                              ; preds = %115
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = icmp eq i64 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %119, %115
  store i32 0, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %192

124:                                              ; preds = %119
  %125 = load i64, ptr %25, align 8, !tbaa !9
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %159

127:                                              ; preds = %124
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = load i64, ptr %23, align 8, !tbaa !9
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  %135 = getelementptr inbounds i64, ptr %134, i64 1
  %136 = call i32 @dlaswp_(ptr noundef %128, ptr noundef %131, ptr noundef %132, ptr noundef @c__1, ptr noundef %133, ptr noundef %135, ptr noundef @c__1)
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load i64, ptr %21, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  %144 = load i64, ptr %23, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = call i32 @f2c_dtrsm(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %137, ptr noundef %138, ptr noundef @c_b12, ptr noundef %141, ptr noundef %142, ptr noundef %145, ptr noundef %146)
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = load i64, ptr %21, align 8, !tbaa !9
  %152 = getelementptr inbounds double, ptr %150, i64 %151
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = load i64, ptr %23, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = call i32 @f2c_dtrsm(ptr noundef @.str.4, ptr noundef @.str.8, ptr noundef @.str.6, ptr noundef @.str.9, ptr noundef %148, ptr noundef %149, ptr noundef @c_b12, ptr noundef %152, ptr noundef %153, ptr noundef %156, ptr noundef %157)
  br label %191

159:                                              ; preds = %124
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = load i64, ptr %21, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = load i64, ptr %23, align 8, !tbaa !9
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  %170 = call i32 @f2c_dtrsm(ptr noundef @.str.4, ptr noundef @.str.8, ptr noundef @.str.10, ptr noundef @.str.9, ptr noundef %160, ptr noundef %161, ptr noundef @c_b12, ptr noundef %164, ptr noundef %165, ptr noundef %168, ptr noundef %169)
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load i64, ptr %21, align 8, !tbaa !9
  %175 = getelementptr inbounds double, ptr %173, i64 %174
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load ptr, ptr %17, align 8, !tbaa !5
  %178 = load i64, ptr %23, align 8, !tbaa !9
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  %180 = load ptr, ptr %18, align 8, !tbaa !5
  %181 = call i32 @f2c_dtrsm(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.10, ptr noundef @.str.7, ptr noundef %171, ptr noundef %172, ptr noundef @c_b12, ptr noundef %175, ptr noundef %176, ptr noundef %179, ptr noundef %180)
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = load i64, ptr %23, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  %186 = load ptr, ptr %18, align 8, !tbaa !5
  %187 = load ptr, ptr %12, align 8, !tbaa !5
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = getelementptr inbounds i64, ptr %188, i64 1
  %190 = call i32 @dlaswp_(ptr noundef %182, ptr noundef %185, ptr noundef %186, ptr noundef @c__1, ptr noundef %187, ptr noundef %189, ptr noundef @c_n1)
  br label %191

191:                                              ; preds = %159, %127
  store i32 0, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %192

192:                                              ; preds = %191, %123, %110
  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
  %193 = load i32, ptr %10, align 4
  ret i32 %193
}

; 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 @dlaswp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @dgetrs_(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 nocapture noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store i64 0, ptr %8, align 8, !tbaa !5
  %11 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %12, label %16

12:                                               ; preds = %9
  %13 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not78 = icmp eq i64 %13, 0
  br i1 %.not78, label %14, label %16

14:                                               ; preds = %12
  %15 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not79 = icmp eq i64 %15, 0
  br i1 %.not79, label %.thread.sink.split, label %16

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

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

22:                                               ; preds = %19
  %23 = load i64, ptr %4, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %17, i64 1)
  %24 = icmp slt i64 %23, %spec.select
  br i1 %24, label %.thread.sink.split, label %25

25:                                               ; preds = %22
  %26 = load i64, ptr %7, align 8, !tbaa !5
  %27 = icmp slt i64 %26, %spec.select
  br i1 %27, label %.thread.sink.split, label %28

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

.thread.sink.split:                               ; preds = %25, %22, %19, %16, %14
  %.sink = phi i64 [ -1, %14 ], [ -2, %16 ], [ -3, %19 ], [ -5, %22 ], [ -8, %25 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread

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

32:                                               ; preds = %28
  %33 = icmp eq i64 %17, 0
  %34 = icmp eq i64 %20, 0
  %or.cond = or i1 %33, %34
  br i1 %or.cond, label %44, label %35

35:                                               ; preds = %32
  br i1 %.not, label %40, label %36

36:                                               ; preds = %35
  %37 = tail call i32 @dlaswp_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull @c__1, ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #4
  %38 = tail call i32 @f2c_dtrsm(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull @c_b12, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %6, ptr noundef nonnull %7) #4
  %39 = tail call i32 @f2c_dtrsm(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.9, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull @c_b12, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %6, ptr noundef nonnull %7) #4
  br label %44

40:                                               ; preds = %35
  %41 = tail call i32 @f2c_dtrsm(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.9, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull @c_b12, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %6, ptr noundef nonnull %7) #4
  %42 = tail call i32 @f2c_dtrsm(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.7, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull @c_b12, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %6, ptr noundef nonnull %7) #4
  %43 = tail call i32 @dlaswp_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull @c__1, ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c_n1) #4
  br label %44

44:                                               ; preds = %36, %40, %32, %.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 @dlaswp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass