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

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

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

39:                                               ; preds = %10
  %40 = load ptr, ptr %17, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.complex, ptr %40, i32 0, i32 0
  %42 = load float, ptr %41, align 4, !tbaa !11
  %43 = fcmp une float %42, 0.000000e+00
  br i1 %43, label %49, label %44

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

49:                                               ; preds = %44, %39
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  %52 = load i64, ptr %22, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.complex, ptr %51, i64 %52
  %54 = load ptr, ptr %19, align 8, !tbaa !5
  %55 = load ptr, ptr %20, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.complex, ptr %55, i64 1
  %57 = call i32 @f2c_ccopy(ptr noundef %50, ptr noundef %53, ptr noundef %54, ptr noundef %56, ptr noundef @c__1)
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load ptr, ptr %20, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.complex, ptr %59, i64 1
  %61 = call i32 @clacgv_(ptr noundef %58, ptr noundef %60, ptr noundef @c__1)
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = sub nsw i64 %66, %68
  %70 = add nsw i64 %69, 1
  %71 = load i64, ptr %21, align 8, !tbaa !9
  %72 = add nsw i64 %70, %71
  %73 = getelementptr inbounds %struct.complex, ptr %64, i64 %72
  %74 = load ptr, ptr %19, align 8, !tbaa !5
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.complex, ptr %75, i64 1
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = load ptr, ptr %20, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.complex, ptr %78, i64 1
  %80 = call i32 @f2c_cgemv(ptr noundef @.str.1, ptr noundef %62, ptr noundef %63, ptr noundef @c_b1, ptr noundef %73, ptr noundef %74, ptr noundef %76, ptr noundef %77, ptr noundef @c_b1, ptr noundef %79, ptr noundef @c__1)
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = load ptr, ptr %20, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.complex, ptr %82, i64 1
  %84 = call i32 @clacgv_(ptr noundef %81, ptr noundef %83, ptr noundef @c__1)
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.complex, ptr %85, i32 0, i32 0
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = fneg float %87
  %89 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 0
  store float %88, ptr %89, align 4, !tbaa !11
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.complex, ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !14
  %93 = fneg float %92
  %94 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 1
  store float %93, ptr %94, align 4, !tbaa !14
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.complex, ptr %96, i64 1
  %98 = load ptr, ptr %18, align 8, !tbaa !5
  %99 = load i64, ptr %22, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.complex, ptr %98, i64 %99
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = call i32 @f2c_caxpy(ptr noundef %95, ptr noundef %23, ptr noundef %97, ptr noundef @c__1, ptr noundef %100, ptr noundef %101)
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.complex, ptr %103, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !11
  %106 = fneg float %105
  %107 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 0
  store float %106, ptr %107, align 4, !tbaa !11
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.complex, ptr %108, i32 0, i32 1
  %110 = load float, ptr %109, align 4, !tbaa !14
  %111 = fneg float %110
  %112 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 1
  store float %111, ptr %112, align 4, !tbaa !14
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.complex, ptr %115, i64 1
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.complex, ptr %118, i64 1
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = sub nsw i64 %122, %124
  %126 = add nsw i64 %125, 1
  %127 = load i64, ptr %21, align 8, !tbaa !9
  %128 = add nsw i64 %126, %127
  %129 = getelementptr inbounds %struct.complex, ptr %120, i64 %128
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = call i32 @f2c_cgeru(ptr noundef %113, ptr noundef %114, ptr noundef %23, ptr noundef %116, ptr noundef %117, ptr noundef %119, ptr noundef @c__1, ptr noundef %129, ptr noundef %130)
  br label %132

132:                                              ; preds = %49, %44
  br label %219

133:                                              ; preds = %10
  %134 = load ptr, ptr %17, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.complex, ptr %134, i32 0, i32 0
  %136 = load float, ptr %135, align 4, !tbaa !11
  %137 = fcmp une float %136, 0.000000e+00
  br i1 %137, label %143, label %138

138:                                              ; preds = %133
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.complex, ptr %139, i32 0, i32 1
  %141 = load float, ptr %140, align 4, !tbaa !14
  %142 = fcmp une float %141, 0.000000e+00
  br i1 %142, label %143, label %218

143:                                              ; preds = %138, %133
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = load i64, ptr %22, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.complex, ptr %145, i64 %146
  %148 = load ptr, ptr %20, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.complex, ptr %148, i64 1
  %150 = call i32 @f2c_ccopy(ptr noundef %144, ptr noundef %147, ptr noundef @c__1, ptr noundef %149, ptr noundef @c__1)
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = load i64, ptr %154, align 8, !tbaa !9
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = load i64, ptr %156, align 8, !tbaa !9
  %158 = sub nsw i64 %155, %157
  %159 = add nsw i64 %158, 1
  %160 = load i64, ptr %21, align 8, !tbaa !9
  %161 = mul nsw i64 %159, %160
  %162 = add nsw i64 %161, 1
  %163 = getelementptr inbounds %struct.complex, ptr %153, i64 %162
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.complex, ptr %165, i64 1
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  %168 = load ptr, ptr %20, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.complex, ptr %168, i64 1
  %170 = call i32 @f2c_cgemv(ptr noundef @.str.2, ptr noundef %151, ptr noundef %152, ptr noundef @c_b1, ptr noundef %163, ptr noundef %164, ptr noundef %166, ptr noundef %167, ptr noundef @c_b1, ptr noundef %169, ptr noundef @c__1)
  %171 = load ptr, ptr %17, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.complex, ptr %171, i32 0, i32 0
  %173 = load float, ptr %172, align 4, !tbaa !11
  %174 = fneg float %173
  %175 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 0
  store float %174, ptr %175, align 4, !tbaa !11
  %176 = load ptr, ptr %17, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.complex, ptr %176, i32 0, i32 1
  %178 = load float, ptr %177, align 4, !tbaa !14
  %179 = fneg float %178
  %180 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 1
  store float %179, ptr %180, align 4, !tbaa !14
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = load ptr, ptr %20, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.complex, ptr %182, i64 1
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = load i64, ptr %22, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.complex, ptr %184, i64 %185
  %187 = call i32 @f2c_caxpy(ptr noundef %181, ptr noundef %23, ptr noundef %183, ptr noundef @c__1, ptr noundef %186, ptr noundef @c__1)
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.complex, ptr %188, i32 0, i32 0
  %190 = load float, ptr %189, align 4, !tbaa !11
  %191 = fneg float %190
  %192 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 0
  store float %191, ptr %192, align 4, !tbaa !11
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.complex, ptr %193, i32 0, i32 1
  %195 = load float, ptr %194, align 4, !tbaa !14
  %196 = fneg float %195
  %197 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 1
  store float %196, ptr %197, align 4, !tbaa !14
  %198 = load ptr, ptr %12, align 8, !tbaa !5
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = load ptr, ptr %20, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.complex, ptr %200, i64 1
  %202 = load ptr, ptr %15, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.complex, ptr %202, i64 1
  %204 = load ptr, ptr %16, align 8, !tbaa !5
  %205 = load ptr, ptr %18, align 8, !tbaa !5
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = load i64, ptr %206, align 8, !tbaa !9
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = load i64, ptr %208, align 8, !tbaa !9
  %210 = sub nsw i64 %207, %209
  %211 = add nsw i64 %210, 1
  %212 = load i64, ptr %21, align 8, !tbaa !9
  %213 = mul nsw i64 %211, %212
  %214 = add nsw i64 %213, 1
  %215 = getelementptr inbounds %struct.complex, ptr %205, i64 %214
  %216 = load ptr, ptr %19, align 8, !tbaa !5
  %217 = call i32 @f2c_cgerc(ptr noundef %198, ptr noundef %199, ptr noundef %23, ptr noundef %201, ptr noundef @c__1, ptr noundef %203, ptr noundef %204, ptr noundef %215, ptr noundef %216)
  br label %218

218:                                              ; preds = %143, %138
  br label %219

219:                                              ; preds = %218, %132
  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
  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 i32 @f2c_ccopy(ptr noundef, ptr noundef, ptr noundef, 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_caxpy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

18:                                               ; preds = %10
  br i1 %17, label %23, label %19

19:                                               ; preds = %18
  %20 = getelementptr inbounds i8, ptr %6, i64 4
  %21 = load float, ptr %20, align 4, !tbaa !12
  %22 = fcmp une float %21, 0.000000e+00
  br i1 %22, label %23, label %70

23:                                               ; preds = %19, %18
  %24 = tail call i32 @f2c_ccopy(ptr noundef %2, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull @c__1) #3
  %25 = tail call i32 @clacgv_(ptr noundef %2, ptr noundef %9, ptr noundef nonnull @c__1) #3
  %26 = load i64, ptr %1, align 8, !tbaa !5
  %27 = load i64, ptr %3, align 8, !tbaa !5
  %28 = sub nsw i64 %26, %27
  %29 = getelementptr inbounds %struct.complex, ptr %7, i64 %28
  %30 = tail call i32 @f2c_cgemv(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef %2, ptr noundef nonnull @c_b1, ptr noundef %29, ptr noundef nonnull %8, ptr noundef %4, ptr noundef %5, ptr noundef nonnull @c_b1, ptr noundef %9, ptr noundef nonnull @c__1) #3
  %31 = tail call i32 @clacgv_(ptr noundef %2, ptr noundef %9, ptr noundef nonnull @c__1) #3
  %32 = load <2 x float>, ptr %6, align 4, !tbaa !13
  %33 = fneg <2 x float> %32
  store <2 x float> %33, ptr %11, align 8, !tbaa !13
  %34 = call i32 @f2c_caxpy(ptr noundef %2, ptr noundef nonnull %11, ptr noundef %9, ptr noundef nonnull @c__1, ptr noundef %7, ptr noundef nonnull %8) #3
  %35 = load <2 x float>, ptr %6, align 4, !tbaa !13
  %36 = fneg <2 x float> %35
  store <2 x float> %36, ptr %11, align 8, !tbaa !13
  %37 = load i64, ptr %1, align 8, !tbaa !5
  %38 = load i64, ptr %3, align 8, !tbaa !5
  %39 = sub nsw i64 %37, %38
  %40 = getelementptr inbounds %struct.complex, ptr %7, i64 %39
  %41 = call i32 @f2c_cgeru(ptr noundef nonnull %3, ptr noundef %2, ptr noundef nonnull %11, ptr noundef %4, ptr noundef %5, ptr noundef %9, ptr noundef nonnull @c__1, ptr noundef %40, ptr noundef nonnull %8) #3
  br label %70

42:                                               ; preds = %10
  br i1 %17, label %47, label %43

43:                                               ; preds = %42
  %44 = getelementptr inbounds i8, ptr %6, i64 4
  %45 = load float, ptr %44, align 4, !tbaa !12
  %46 = fcmp une float %45, 0.000000e+00
  br i1 %46, label %47, label %70

47:                                               ; preds = %43, %42
  %48 = tail call i32 @f2c_ccopy(ptr noundef %1, ptr noundef %7, ptr noundef nonnull @c__1, ptr noundef %9, ptr noundef nonnull @c__1) #3
  %49 = load i64, ptr %2, align 8, !tbaa !5
  %50 = load i64, ptr %3, align 8, !tbaa !5
  %51 = add i64 %49, 1
  %52 = sub i64 %51, %50
  %53 = mul nsw i64 %52, %12
  %54 = getelementptr %struct.complex, ptr %14, i64 %53
  %55 = getelementptr i8, ptr %54, i64 8
  %56 = tail call i32 @f2c_cgemv(ptr noundef nonnull @.str.2, ptr noundef %1, ptr noundef nonnull %3, ptr noundef nonnull @c_b1, ptr noundef %55, ptr noundef nonnull %8, ptr noundef %4, ptr noundef %5, ptr noundef nonnull @c_b1, ptr noundef %9, ptr noundef nonnull @c__1) #3
  %57 = load <2 x float>, ptr %6, align 4, !tbaa !13
  %58 = fneg <2 x float> %57
  store <2 x float> %58, ptr %11, align 8, !tbaa !13
  %59 = call i32 @f2c_caxpy(ptr noundef %1, ptr noundef nonnull %11, ptr noundef %9, ptr noundef nonnull @c__1, ptr noundef %7, ptr noundef nonnull @c__1) #3
  %60 = load <2 x float>, ptr %6, align 4, !tbaa !13
  %61 = fneg <2 x float> %60
  store <2 x float> %61, ptr %11, align 8, !tbaa !13
  %62 = load i64, ptr %2, align 8, !tbaa !5
  %63 = load i64, ptr %3, align 8, !tbaa !5
  %64 = add i64 %62, 1
  %65 = sub i64 %64, %63
  %66 = mul nsw i64 %65, %12
  %67 = getelementptr %struct.complex, ptr %14, i64 %66
  %68 = getelementptr i8, ptr %67, i64 8
  %69 = call i32 @f2c_cgerc(ptr noundef %1, ptr noundef nonnull %3, ptr noundef nonnull %11, ptr noundef %9, ptr noundef nonnull @c__1, ptr noundef %4, ptr noundef %5, ptr noundef %68, ptr noundef nonnull %8) #3
  br label %70

70:                                               ; preds = %43, %47, %19, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #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 i32 @f2c_ccopy(ptr noundef, ptr noundef, ptr noundef, 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_caxpy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @f2c_cgeru(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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass