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

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

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

52:                                               ; preds = %9
  store i64 -1, ptr %29, align 8, !tbaa !9
  br label %59

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

57:                                               ; preds = %53
  store i64 -2, ptr %29, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %57, %53
  br label %59

59:                                               ; preds = %58, %52
  %60 = load i64, ptr %29, align 8, !tbaa !9
  %61 = icmp ne i64 %60, 0
  br i1 %61, label %62, label %66

62:                                               ; preds = %59
  %63 = load i64, ptr %29, align 8, !tbaa !9
  %64 = sub nsw i64 0, %63
  store i64 %64, ptr %24, align 8, !tbaa !9
  %65 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %24)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %230

66:                                               ; preds = %59
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  store i64 %68, ptr %27, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %226, %66
  %70 = load i64, ptr %27, align 8, !tbaa !9
  %71 = icmp sge i64 %70, 1
  br i1 %71, label %72, label %229

72:                                               ; preds = %69
  %73 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %73, ptr %24, align 8, !tbaa !9
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  %75 = load i64, ptr %24, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.complex, ptr %74, i64 %75
  %77 = getelementptr inbounds %struct.complex, ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !11
  %79 = fcmp oeq float %78, 0.000000e+00
  br i1 %79, label %80, label %113

80:                                               ; preds = %72
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = load i64, ptr %24, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.complex, ptr %81, i64 %82
  %84 = getelementptr inbounds %struct.complex, ptr %83, i32 0, i32 1
  %85 = load float, ptr %84, align 4, !tbaa !14
  %86 = fcmp oeq float %85, 0.000000e+00
  br i1 %86, label %87, label %113

87:                                               ; preds = %80
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load i64, ptr %88, align 8, !tbaa !9
  store i64 %89, ptr %24, align 8, !tbaa !9
  %90 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %90, ptr %28, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %109, %87
  %92 = load i64, ptr %28, align 8, !tbaa !9
  %93 = load i64, ptr %24, align 8, !tbaa !9
  %94 = icmp sle i64 %92, %93
  br i1 %94, label %95, label %112

95:                                               ; preds = %91
  %96 = load i64, ptr %28, align 8, !tbaa !9
  %97 = load i64, ptr %27, align 8, !tbaa !9
  %98 = load i64, ptr %20, align 8, !tbaa !9
  %99 = mul nsw i64 %97, %98
  %100 = add nsw i64 %96, %99
  store i64 %100, ptr %25, align 8, !tbaa !9
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = load i64, ptr %25, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.complex, ptr %101, i64 %102
  %104 = getelementptr inbounds %struct.complex, ptr %103, i32 0, i32 0
  store float 0.000000e+00, ptr %104, align 4, !tbaa !11
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = load i64, ptr %25, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.complex, ptr %105, i64 %106
  %108 = getelementptr inbounds %struct.complex, ptr %107, i32 0, i32 1
  store float 0.000000e+00, ptr %108, align 4, !tbaa !14
  br label %109

109:                                              ; preds = %95
  %110 = load i64, ptr %28, align 8, !tbaa !9
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %28, align 8, !tbaa !9
  br label %91, !llvm.loop !15

112:                                              ; preds = %91
  br label %225

113:                                              ; preds = %80, %72
  %114 = load i64, ptr %27, align 8, !tbaa !9
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = icmp slt i64 %114, %116
  br i1 %117, label %118, label %200

118:                                              ; preds = %113
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = load i64, ptr %27, align 8, !tbaa !9
  %122 = load i64, ptr %22, align 8, !tbaa !9
  %123 = add nsw i64 %121, %122
  %124 = getelementptr inbounds %struct.complex, ptr %120, i64 %123
  %125 = load ptr, ptr %16, align 8, !tbaa !5
  %126 = call i32 @clacgv_(ptr noundef %119, ptr noundef %124, ptr noundef %125)
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = load i64, ptr %127, align 8, !tbaa !9
  %129 = load i64, ptr %27, align 8, !tbaa !9
  %130 = sub nsw i64 %128, %129
  store i64 %130, ptr %24, align 8, !tbaa !9
  %131 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %131, ptr %25, align 8, !tbaa !9
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = load i64, ptr %25, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.complex, ptr %132, i64 %133
  %135 = getelementptr inbounds %struct.complex, ptr %134, i32 0, i32 0
  %136 = load float, ptr %135, align 4, !tbaa !11
  %137 = fneg float %136
  %138 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 0
  store float %137, ptr %138, align 4, !tbaa !11
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = load i64, ptr %25, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.complex, ptr %139, i64 %140
  %142 = getelementptr inbounds %struct.complex, ptr %141, i32 0, i32 1
  %143 = load float, ptr %142, align 4, !tbaa !14
  %144 = fneg float %143
  %145 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 1
  store float %144, ptr %145, align 4, !tbaa !14
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = load i64, ptr %27, align 8, !tbaa !9
  %149 = add nsw i64 %148, 1
  %150 = load i64, ptr %22, align 8, !tbaa !9
  %151 = add nsw i64 %149, %150
  %152 = getelementptr inbounds %struct.complex, ptr %147, i64 %151
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = load i64, ptr %27, align 8, !tbaa !9
  %156 = load i64, ptr %22, align 8, !tbaa !9
  %157 = add nsw i64 %155, %156
  %158 = getelementptr inbounds %struct.complex, ptr %154, i64 %157
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = load ptr, ptr %18, align 8, !tbaa !5
  %161 = load i64, ptr %27, align 8, !tbaa !9
  %162 = add nsw i64 %161, 1
  %163 = load i64, ptr %27, align 8, !tbaa !9
  %164 = load i64, ptr %20, align 8, !tbaa !9
  %165 = mul nsw i64 %163, %164
  %166 = add nsw i64 %162, %165
  %167 = getelementptr inbounds %struct.complex, ptr %160, i64 %166
  %168 = call i32 @f2c_cgemv(ptr noundef @.str.3, ptr noundef %24, ptr noundef %146, ptr noundef %26, ptr noundef %152, ptr noundef %153, ptr noundef %158, ptr noundef %159, ptr noundef @c_b1, ptr noundef %167, ptr noundef @c__1)
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = load i64, ptr %27, align 8, !tbaa !9
  %172 = load i64, ptr %22, align 8, !tbaa !9
  %173 = add nsw i64 %171, %172
  %174 = getelementptr inbounds %struct.complex, ptr %170, i64 %173
  %175 = load ptr, ptr %16, align 8, !tbaa !5
  %176 = call i32 @clacgv_(ptr noundef %169, ptr noundef %174, ptr noundef %175)
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = load i64, ptr %177, align 8, !tbaa !9
  %179 = load i64, ptr %27, align 8, !tbaa !9
  %180 = sub nsw i64 %178, %179
  store i64 %180, ptr %24, align 8, !tbaa !9
  %181 = load ptr, ptr %18, align 8, !tbaa !5
  %182 = load i64, ptr %27, align 8, !tbaa !9
  %183 = add nsw i64 %182, 1
  %184 = load i64, ptr %27, align 8, !tbaa !9
  %185 = add nsw i64 %184, 1
  %186 = load i64, ptr %20, align 8, !tbaa !9
  %187 = mul nsw i64 %185, %186
  %188 = add nsw i64 %183, %187
  %189 = getelementptr inbounds %struct.complex, ptr %181, i64 %188
  %190 = load ptr, ptr %19, align 8, !tbaa !5
  %191 = load ptr, ptr %18, align 8, !tbaa !5
  %192 = load i64, ptr %27, align 8, !tbaa !9
  %193 = add nsw i64 %192, 1
  %194 = load i64, ptr %27, align 8, !tbaa !9
  %195 = load i64, ptr %20, align 8, !tbaa !9
  %196 = mul nsw i64 %194, %195
  %197 = add nsw i64 %193, %196
  %198 = getelementptr inbounds %struct.complex, ptr %191, i64 %197
  %199 = call i32 @f2c_ctrmv(ptr noundef @.str.4, ptr noundef @.str.3, ptr noundef @.str.5, ptr noundef %24, ptr noundef %189, ptr noundef %190, ptr noundef %198, ptr noundef @c__1)
  br label %200

200:                                              ; preds = %118, %113
  %201 = load i64, ptr %27, align 8, !tbaa !9
  %202 = load i64, ptr %27, align 8, !tbaa !9
  %203 = load i64, ptr %20, align 8, !tbaa !9
  %204 = mul nsw i64 %202, %203
  %205 = add nsw i64 %201, %204
  store i64 %205, ptr %24, align 8, !tbaa !9
  %206 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %206, ptr %25, align 8, !tbaa !9
  %207 = load ptr, ptr %17, align 8, !tbaa !5
  %208 = load i64, ptr %25, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.complex, ptr %207, i64 %208
  %210 = getelementptr inbounds %struct.complex, ptr %209, i32 0, i32 0
  %211 = load float, ptr %210, align 4, !tbaa !11
  %212 = load ptr, ptr %18, align 8, !tbaa !5
  %213 = load i64, ptr %24, align 8, !tbaa !9
  %214 = getelementptr inbounds %struct.complex, ptr %212, i64 %213
  %215 = getelementptr inbounds %struct.complex, ptr %214, i32 0, i32 0
  store float %211, ptr %215, align 4, !tbaa !11
  %216 = load ptr, ptr %17, align 8, !tbaa !5
  %217 = load i64, ptr %25, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.complex, ptr %216, i64 %217
  %219 = getelementptr inbounds %struct.complex, ptr %218, i32 0, i32 1
  %220 = load float, ptr %219, align 4, !tbaa !14
  %221 = load ptr, ptr %18, align 8, !tbaa !5
  %222 = load i64, ptr %24, align 8, !tbaa !9
  %223 = getelementptr inbounds %struct.complex, ptr %221, i64 %222
  %224 = getelementptr inbounds %struct.complex, ptr %223, i32 0, i32 1
  store float %220, ptr %224, align 4, !tbaa !14
  br label %225

225:                                              ; preds = %200, %112
  br label %226

226:                                              ; preds = %225
  %227 = load i64, ptr %27, align 8, !tbaa !9
  %228 = add nsw i64 %227, -1
  store i64 %228, ptr %27, align 8, !tbaa !9
  br label %69, !llvm.loop !17

229:                                              ; preds = %69
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %230

230:                                              ; preds = %229, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %231 = load i32, ptr %10, align 4
  ret i32 %231
}

; 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 @clacgv_(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_ctrmv(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"}
!17 = distinct !{!17, !16}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @clarzt_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef readonly %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  %11 = alloca %struct.complex, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %12 = getelementptr inbounds i8, ptr %6, i64 -8
  %13 = load i64, ptr %8, align 8, !tbaa !5
  %14 = xor i64 %13, -1
  %15 = getelementptr inbounds %struct.complex, ptr %7, i64 %14
  %16 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %.thread, label %17

17:                                               ; preds = %9
  %18 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #4
  %.not86.not = icmp eq i64 %18, 0
  br i1 %.not86.not, label %.thread, label %20

.thread:                                          ; preds = %9, %17
  %.0.neg92 = phi i64 [ 2, %17 ], [ 1, %9 ]
  store i64 %.0.neg92, ptr %10, align 8, !tbaa !5
  %19 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %10) #4
  br label %.loopexit93

20:                                               ; preds = %17
  %21 = load i64, ptr %3, align 8, !tbaa !5
  %invariant.gep96 = getelementptr i8, ptr %4, i64 -8
  %22 = icmp sgt i64 %21, 0
  br i1 %22, label %.lr.ph100, label %.loopexit93

.lr.ph100:                                        ; preds = %20
  %23 = add i64 %13, 1
  %24 = shl i64 %21, 3
  %25 = add i64 %24, -8
  %26 = mul i64 %13, %25
  %27 = shl i64 %13, 3
  %28 = sub nuw nsw i64 -8, %27
  %29 = getelementptr i8, ptr %7, i64 %26
  %30 = getelementptr i8, ptr %29, i64 %24
  %31 = getelementptr i8, ptr %30, i64 -8
  br label %32

32:                                               ; preds = %.lr.ph100, %.loopexit
  %indvar = phi i64 [ 0, %.lr.ph100 ], [ %indvar.next, %.loopexit ]
  %.08498 = phi i64 [ %21, %.lr.ph100 ], [ %73, %.loopexit ]
  %33 = mul i64 %28, %indvar
  %scevgep = getelementptr i8, ptr %31, i64 %33
  %reass.sub = sub nsw i64 %indvar, %21
  %34 = add i64 %reass.sub, 1
  store i64 %.08498, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.complex, ptr %12, i64 %.08498
  %36 = load float, ptr %35, align 4, !tbaa !9
  %37 = fcmp oeq float %36, 0.000000e+00
  br i1 %37, label %38, label %._crit_edge

._crit_edge:                                      ; preds = %32
  %.pre = load i64, ptr %3, align 8, !tbaa !5
  br label %45

38:                                               ; preds = %32
  %39 = getelementptr inbounds i8, ptr %35, i64 4
  %40 = load float, ptr %39, align 4, !tbaa !12
  %41 = fcmp oeq float %40, 0.000000e+00
  %.pre101 = load i64, ptr %3, align 8, !tbaa !5
  br i1 %41, label %42, label %45

42:                                               ; preds = %38
  store i64 %.pre101, ptr %10, align 8, !tbaa !5
  %.not8894 = icmp sgt i64 %.08498, %.pre101
  br i1 %.not8894, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %42
  %43 = add i64 %.pre101, %34
  %44 = shl nuw i64 %43, 3
  call void @llvm.memset.p0.i64(ptr align 4 %scevgep, i8 0, i64 %44, i1 false), !tbaa !13
  br label %.loopexit

45:                                               ; preds = %._crit_edge, %38
  %46 = phi i64 [ %.pre, %._crit_edge ], [ %.pre101, %38 ]
  %47 = icmp slt i64 %.08498, %46
  br i1 %47, label %48, label %66

48:                                               ; preds = %45
  %gep97 = getelementptr %struct.complex, ptr %invariant.gep96, i64 %.08498
  %49 = call i32 @clacgv_(ptr noundef %2, ptr noundef %gep97, ptr noundef nonnull %5) #4
  %50 = load i64, ptr %3, align 8, !tbaa !5
  %51 = sub nsw i64 %50, %.08498
  store i64 %51, ptr %10, align 8, !tbaa !5
  %52 = load <2 x float>, ptr %35, align 4, !tbaa !13
  %53 = fneg <2 x float> %52
  store <2 x float> %53, ptr %11, align 8, !tbaa !13
  %54 = add nuw nsw i64 %.08498, 1
  %55 = getelementptr inbounds %struct.complex, ptr %4, i64 %.08498
  %56 = mul nsw i64 %.08498, %13
  %57 = getelementptr %struct.complex, ptr %15, i64 %54
  %58 = getelementptr %struct.complex, ptr %57, i64 %56
  %59 = call i32 @f2c_cgemv(ptr noundef nonnull @.str.3, ptr noundef nonnull %10, ptr noundef %2, ptr noundef nonnull %11, ptr noundef nonnull %55, ptr noundef nonnull %5, ptr noundef %gep97, ptr noundef nonnull %5, ptr noundef nonnull @c_b1, ptr noundef %58, ptr noundef nonnull @c__1) #4
  %60 = call i32 @clacgv_(ptr noundef %2, ptr noundef %gep97, ptr noundef nonnull %5) #4
  %61 = load i64, ptr %3, align 8, !tbaa !5
  %62 = sub nsw i64 %61, %.08498
  store i64 %62, ptr %10, align 8, !tbaa !5
  %63 = mul i64 %54, %23
  %64 = getelementptr inbounds %struct.complex, ptr %15, i64 %63
  %65 = call i32 @f2c_ctrmv(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.5, ptr noundef nonnull %10, ptr noundef %64, ptr noundef nonnull %8, ptr noundef %58, ptr noundef nonnull @c__1) #4
  %.pre102 = load float, ptr %35, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %48, %45
  %67 = phi float [ %.pre102, %48 ], [ %36, %45 ]
  %68 = mul i64 %.08498, %23
  store i64 %68, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.complex, ptr %15, i64 %68
  store float %67, ptr %69, align 4, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %35, i64 4
  %71 = load float, ptr %70, align 4, !tbaa !12
  %72 = getelementptr inbounds %struct.complex, ptr %15, i64 %68, i32 1
  store float %71, ptr %72, align 4, !tbaa !12
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %42, %66
  %73 = add nsw i64 %.08498, -1
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond.not = icmp eq i64 %indvar.next, %21
  br i1 %exitcond.not, label %.loopexit93, label %32, !llvm.loop !14

.loopexit93:                                      ; preds = %.loopexit, %20, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  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 @clacgv_(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_ctrmv(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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nounwind willreturn memory(argmem: write) }
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 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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