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

; 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 [20 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4
@c_b2 = external hidden global %struct.complex, align 4
@c__1 = external hidden global i64, align 8
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1

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

45:                                               ; preds = %9
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.complex, ptr %46, i32 0, i32 1
  %48 = load float, ptr %47, align 4, !tbaa !14
  %49 = fcmp une float %48, 0.000000e+00
  br i1 %49, label %50, label %116

50:                                               ; preds = %45, %9
  %51 = load i64, ptr %24, align 8, !tbaa !9
  %52 = icmp ne i64 %51, 0
  br i1 %52, label %53, label %56

53:                                               ; preds = %50
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load i64, ptr %54, align 8, !tbaa !9
  store i64 %55, ptr %26, align 8, !tbaa !9
  br label %59

56:                                               ; preds = %50
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i64, ptr %57, align 8, !tbaa !9
  store i64 %58, ptr %26, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %56, %53
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = icmp sgt i64 %61, 0
  br i1 %62, label %63, label %70

63:                                               ; preds = %59
  %64 = load i64, ptr %26, align 8, !tbaa !9
  %65 = sub nsw i64 %64, 1
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = mul nsw i64 %65, %67
  %69 = add nsw i64 %68, 1
  store i64 %69, ptr %23, align 8, !tbaa !9
  br label %71

70:                                               ; preds = %59
  store i64 1, ptr %23, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %70, %63
  br label %72

72:                                               ; preds = %91, %71
  %73 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %73, ptr %21, align 8, !tbaa !9
  %74 = load i64, ptr %26, align 8, !tbaa !9
  %75 = icmp sgt i64 %74, 0
  br i1 %75, label %76, label %90

76:                                               ; preds = %72
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = load i64, ptr %21, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.complex, ptr %77, i64 %78
  %80 = getelementptr inbounds %struct.complex, ptr %79, i32 0, i32 0
  %81 = load float, ptr %80, align 4, !tbaa !11
  %82 = fcmp oeq float %81, 0.000000e+00
  br i1 %82, label %83, label %90

83:                                               ; preds = %76
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load i64, ptr %21, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.complex, ptr %84, i64 %85
  %87 = getelementptr inbounds %struct.complex, ptr %86, i32 0, i32 1
  %88 = load float, ptr %87, align 4, !tbaa !14
  %89 = fcmp oeq float %88, 0.000000e+00
  br i1 %89, label %91, label %90

90:                                               ; preds = %83, %76, %72
  br label %98

91:                                               ; preds = %83
  %92 = load i64, ptr %26, align 8, !tbaa !9
  %93 = add nsw i64 %92, -1
  store i64 %93, ptr %26, align 8, !tbaa !9
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = load i64, ptr %23, align 8, !tbaa !9
  %97 = sub nsw i64 %96, %95
  store i64 %97, ptr %23, align 8, !tbaa !9
  br label %72

98:                                               ; preds = %90
  %99 = load i64, ptr %24, align 8, !tbaa !9
  %100 = icmp ne i64 %99, 0
  br i1 %100, label %101, label %108

101:                                              ; preds = %98
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = load i64, ptr %20, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct.complex, ptr %103, i64 %104
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = call i64 @ilaclc_(ptr noundef %26, ptr noundef %102, ptr noundef %105, ptr noundef %106)
  store i64 %107, ptr %25, align 8, !tbaa !9
  br label %115

108:                                              ; preds = %98
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = load i64, ptr %20, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.complex, ptr %110, i64 %111
  %113 = load ptr, ptr %17, align 8, !tbaa !5
  %114 = call i64 @ilaclr_(ptr noundef %109, ptr noundef %26, ptr noundef %112, ptr noundef %113)
  store i64 %114, ptr %25, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %108, %101
  br label %116

116:                                              ; preds = %115, %45
  %117 = load i64, ptr %24, align 8, !tbaa !9
  %118 = icmp ne i64 %117, 0
  br i1 %118, label %119, label %154

119:                                              ; preds = %116
  %120 = load i64, ptr %26, align 8, !tbaa !9
  %121 = icmp sgt i64 %120, 0
  br i1 %121, label %122, label %153

122:                                              ; preds = %119
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = load i64, ptr %20, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.complex, ptr %123, i64 %124
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.complex, ptr %127, i64 1
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.complex, ptr %130, i64 1
  %132 = call i32 @f2c_cgemv(ptr noundef @.str.1, ptr noundef %26, ptr noundef %25, ptr noundef @c_b1, ptr noundef %125, ptr noundef %126, ptr noundef %128, ptr noundef %129, ptr noundef @c_b2, ptr noundef %131, ptr noundef @c__1)
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.complex, ptr %133, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = fneg float %135
  %137 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  store float %136, ptr %137, align 4, !tbaa !11
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.complex, ptr %138, i32 0, i32 1
  %140 = load float, ptr %139, align 4, !tbaa !14
  %141 = fneg float %140
  %142 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  store float %141, ptr %142, align 4, !tbaa !14
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.complex, ptr %143, i64 1
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.complex, ptr %146, i64 1
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = load i64, ptr %20, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.complex, ptr %148, i64 %149
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = call i32 @f2c_cgerc(ptr noundef %26, ptr noundef %25, ptr noundef %22, ptr noundef %144, ptr noundef %145, ptr noundef %147, ptr noundef @c__1, ptr noundef %150, ptr noundef %151)
  br label %153

153:                                              ; preds = %122, %119
  br label %189

154:                                              ; preds = %116
  %155 = load i64, ptr %26, align 8, !tbaa !9
  %156 = icmp sgt i64 %155, 0
  br i1 %156, label %157, label %188

157:                                              ; preds = %154
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = load i64, ptr %20, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.complex, ptr %158, i64 %159
  %161 = load ptr, ptr %17, align 8, !tbaa !5
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.complex, ptr %162, i64 1
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = load ptr, ptr %18, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.complex, ptr %165, i64 1
  %167 = call i32 @f2c_cgemv(ptr noundef @.str.2, ptr noundef %25, ptr noundef %26, ptr noundef @c_b1, ptr noundef %160, ptr noundef %161, ptr noundef %163, ptr noundef %164, ptr noundef @c_b2, ptr noundef %166, ptr noundef @c__1)
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.complex, ptr %168, i32 0, i32 0
  %170 = load float, ptr %169, align 4, !tbaa !11
  %171 = fneg float %170
  %172 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  store float %171, ptr %172, align 4, !tbaa !11
  %173 = load ptr, ptr %15, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.complex, ptr %173, i32 0, i32 1
  %175 = load float, ptr %174, align 4, !tbaa !14
  %176 = fneg float %175
  %177 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  store float %176, ptr %177, align 4, !tbaa !14
  %178 = load ptr, ptr %18, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.complex, ptr %178, i64 1
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.complex, ptr %180, i64 1
  %182 = load ptr, ptr %14, align 8, !tbaa !5
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  %184 = load i64, ptr %20, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.complex, ptr %183, i64 %184
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = call i32 @f2c_cgerc(ptr noundef %25, ptr noundef %26, ptr noundef %22, ptr noundef %179, ptr noundef @c__1, ptr noundef %181, ptr noundef %182, ptr noundef %185, ptr noundef %186)
  br label %188

188:                                              ; preds = %157, %154
  br label %189

189:                                              ; preds = %188, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  ret i32 0
}

; 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 i64 @ilaclc_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i64 @ilaclr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare i32 @f2c_cgerc(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}


; 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 [20 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4
@c_b2 = external hidden global %struct.complex, align 4
@c__1 = external hidden global i64, align 8
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @clarf_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca %struct.complex, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  %13 = getelementptr inbounds i8, ptr %3, i64 -8
  %14 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  store i64 0, ptr %11, align 8, !tbaa !5
  %15 = load float, ptr %5, align 4, !tbaa !9
  %16 = fcmp une float %15, 0.000000e+00
  br i1 %16, label %21, label %17

17:                                               ; preds = %9
  %18 = getelementptr inbounds i8, ptr %5, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !12
  %20 = fcmp une float %19, 0.000000e+00
  br i1 %20, label %21, label %.thread71

21:                                               ; preds = %17, %9
  %.not = icmp eq i64 %14, 0
  %. = select i1 %.not, ptr %2, ptr %1
  %storemerge = load i64, ptr %., align 8, !tbaa !5
  %22 = load i64, ptr %4, align 8, !tbaa !5
  %23 = icmp sgt i64 %storemerge, 0
  br i1 %23, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %21
  %.inv = icmp slt i64 %22, 1
  %24 = add nsw i64 %storemerge, -1
  %25 = mul nsw i64 %22, %24
  %26 = add nsw i64 %25, 1
  %.0 = select i1 %.inv, i64 1, i64 %26
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %35
  %.164 = phi i64 [ %37, %35 ], [ %.0, %.lr.ph.preheader ]
  %27 = phi i64 [ %36, %35 ], [ %storemerge, %.lr.ph.preheader ]
  %28 = getelementptr inbounds %struct.complex, ptr %13, i64 %.164
  %29 = load float, ptr %28, align 4, !tbaa !9
  %30 = fcmp oeq float %29, 0.000000e+00
  br i1 %30, label %31, label %._crit_edge

31:                                               ; preds = %.lr.ph
  %32 = getelementptr inbounds i8, ptr %28, i64 4
  %33 = load float, ptr %32, align 4, !tbaa !12
  %34 = fcmp oeq float %33, 0.000000e+00
  br i1 %34, label %35, label %._crit_edge

35:                                               ; preds = %31
  %36 = add nsw i64 %27, -1
  %37 = sub nsw i64 %.164, %22
  %38 = icmp sgt i64 %27, 1
  br i1 %38, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %31, %.lr.ph, %35, %21
  %.lcssa = phi i64 [ %storemerge, %21 ], [ 0, %35 ], [ %27, %.lr.ph ], [ %27, %31 ]
  store i64 %.lcssa, ptr %12, align 8, !tbaa !5
  br i1 %.not, label %47, label %39

39:                                               ; preds = %._crit_edge
  %40 = call i64 @ilaclc_(ptr noundef nonnull %12, ptr noundef %2, ptr noundef %6, ptr noundef nonnull %7) #3
  store i64 %40, ptr %11, align 8, !tbaa !5
  %.pre = load i64, ptr %12, align 8, !tbaa !5
  %41 = icmp sgt i64 %.pre, 0
  br i1 %41, label %42, label %.thread71

42:                                               ; preds = %39
  %43 = call i32 @f2c_cgemv(ptr noundef nonnull @.str.1, ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef nonnull @c_b1, ptr noundef %6, ptr noundef %7, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull @c_b2, ptr noundef %8, ptr noundef nonnull @c__1) #3
  %44 = load <2 x float>, ptr %5, align 4, !tbaa !13
  %45 = fneg <2 x float> %44
  store <2 x float> %45, ptr %10, align 8, !tbaa !13
  %46 = call i32 @f2c_cgerc(ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %8, ptr noundef nonnull @c__1, ptr noundef %6, ptr noundef %7) #3
  br label %.thread71

47:                                               ; preds = %._crit_edge
  %48 = call i64 @ilaclr_(ptr noundef %1, ptr noundef nonnull %12, ptr noundef %6, ptr noundef nonnull %7) #3
  store i64 %48, ptr %11, align 8, !tbaa !5
  %.pre69 = load i64, ptr %12, align 8, !tbaa !5
  %49 = icmp sgt i64 %.pre69, 0
  br i1 %49, label %50, label %.thread71

50:                                               ; preds = %47
  %51 = call i32 @f2c_cgemv(ptr noundef nonnull @.str.2, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull @c_b1, ptr noundef %6, ptr noundef nonnull %7, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull @c_b2, ptr noundef %8, ptr noundef nonnull @c__1) #3
  %52 = load <2 x float>, ptr %5, align 4, !tbaa !13
  %53 = fneg <2 x float> %52
  store <2 x float> %53, ptr %10, align 8, !tbaa !13
  %54 = call i32 @f2c_cgerc(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %10, ptr noundef %8, ptr noundef nonnull @c__1, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %6, ptr noundef nonnull %7) #3
  br label %.thread71

.thread71:                                        ; preds = %17, %47, %50, %39, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  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 i64 @ilaclc_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i64 @ilaclr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @f2c_cgemv(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

declare i32 @f2c_cgerc(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

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 = { 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 = !{!11, !11, i64 0}


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