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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @cpptri_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca float, align 4
  %14 = alloca %struct.complex, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca float, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.complex, ptr %22, i32 -1
  store ptr %23, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %24, align 8, !tbaa !9
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call i64 @lsame_(ptr noundef %25, ptr noundef @.str)
  store i64 %26, ptr %20, align 8, !tbaa !9
  %27 = load i64, ptr %20, align 8, !tbaa !9
  %28 = icmp ne i64 %27, 0
  br i1 %28, label %35, label %29

29:                                               ; preds = %4
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call i64 @lsame_(ptr noundef %30, ptr noundef @.str.1)
  %32 = icmp ne i64 %31, 0
  br i1 %32, label %35, label %33

33:                                               ; preds = %29
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 -1, ptr %34, align 8, !tbaa !9
  br label %42

35:                                               ; preds = %29, %4
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = icmp slt i64 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %35
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 -2, ptr %40, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %39, %35
  br label %42

42:                                               ; preds = %41, %33
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %46, label %51

46:                                               ; preds = %42
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = sub nsw i64 0, %48
  store i64 %49, ptr %10, align 8, !tbaa !9
  %50 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %10)
  store i32 0, ptr %5, align 4
  store i32 1, ptr %21, align 4
  br label %171

51:                                               ; preds = %42
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %51
  store i32 0, ptr %5, align 4
  store i32 1, ptr %21, align 4
  br label %171

56:                                               ; preds = %51
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.complex, ptr %59, i64 1
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call i32 @ctptri_(ptr noundef %57, ptr noundef @.str.3, ptr noundef %58, ptr noundef %60, ptr noundef %61)
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = icmp sgt i64 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %56
  store i32 0, ptr %5, align 4
  store i32 1, ptr %21, align 4
  br label %171

67:                                               ; preds = %56
  %68 = load i64, ptr %20, align 8, !tbaa !9
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %70, label %109

70:                                               ; preds = %67
  store i64 0, ptr %17, align 8, !tbaa !9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  store i64 %72, ptr %10, align 8, !tbaa !9
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %105, %70
  %74 = load i64, ptr %15, align 8, !tbaa !9
  %75 = load i64, ptr %10, align 8, !tbaa !9
  %76 = icmp sle i64 %74, %75
  br i1 %76, label %77, label %108

77:                                               ; preds = %73
  %78 = load i64, ptr %17, align 8, !tbaa !9
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %16, align 8, !tbaa !9
  %80 = load i64, ptr %15, align 8, !tbaa !9
  %81 = load i64, ptr %17, align 8, !tbaa !9
  %82 = add nsw i64 %81, %80
  store i64 %82, ptr %17, align 8, !tbaa !9
  %83 = load i64, ptr %15, align 8, !tbaa !9
  %84 = icmp sgt i64 %83, 1
  br i1 %84, label %85, label %94

85:                                               ; preds = %77
  %86 = load i64, ptr %15, align 8, !tbaa !9
  %87 = sub nsw i64 %86, 1
  store i64 %87, ptr %11, align 8, !tbaa !9
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i64, ptr %16, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.complex, ptr %88, i64 %89
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.complex, ptr %91, i64 1
  %93 = call i32 @f2c_chpr(ptr noundef @.str.4, ptr noundef %11, ptr noundef @c_b8, ptr noundef %90, ptr noundef @c__1, ptr noundef %92)
  br label %94

94:                                               ; preds = %85, %77
  %95 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %95, ptr %11, align 8, !tbaa !9
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i64, ptr %11, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.complex, ptr %96, i64 %97
  %99 = getelementptr inbounds %struct.complex, ptr %98, i32 0, i32 0
  %100 = load float, ptr %99, align 4, !tbaa !11
  store float %100, ptr %18, align 4, !tbaa !14
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i64, ptr %16, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.complex, ptr %101, i64 %102
  %104 = call i32 @f2c_csscal(ptr noundef %15, ptr noundef %18, ptr noundef %103, ptr noundef @c__1)
  br label %105

105:                                              ; preds = %94
  %106 = load i64, ptr %15, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %15, align 8, !tbaa !9
  br label %73, !llvm.loop !15

108:                                              ; preds = %73
  br label %170

109:                                              ; preds = %67
  store i64 1, ptr %17, align 8, !tbaa !9
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !9
  store i64 %111, ptr %10, align 8, !tbaa !9
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %166, %109
  %113 = load i64, ptr %15, align 8, !tbaa !9
  %114 = load i64, ptr %10, align 8, !tbaa !9
  %115 = icmp sle i64 %113, %114
  br i1 %115, label %116, label %169

116:                                              ; preds = %112
  %117 = load i64, ptr %17, align 8, !tbaa !9
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load i64, ptr %118, align 8, !tbaa !9
  %120 = add nsw i64 %117, %119
  %121 = load i64, ptr %15, align 8, !tbaa !9
  %122 = sub nsw i64 %120, %121
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %19, align 8, !tbaa !9
  %124 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %124, ptr %11, align 8, !tbaa !9
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = load i64, ptr %15, align 8, !tbaa !9
  %128 = sub nsw i64 %126, %127
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %12, align 8, !tbaa !9
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load i64, ptr %17, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.complex, ptr %130, i64 %131
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = load i64, ptr %17, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.complex, ptr %133, i64 %134
  call void @f2c_cdotc(ptr noundef %14, ptr noundef %12, ptr noundef %132, ptr noundef @c__1, ptr noundef %135, ptr noundef @c__1)
  %136 = getelementptr inbounds %struct.complex, ptr %14, i32 0, i32 0
  %137 = load float, ptr %136, align 4, !tbaa !11
  store float %137, ptr %13, align 4, !tbaa !14
  %138 = load float, ptr %13, align 4, !tbaa !14
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = load i64, ptr %11, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.complex, ptr %139, i64 %140
  %142 = getelementptr inbounds %struct.complex, ptr %141, i32 0, i32 0
  store float %138, ptr %142, align 4, !tbaa !11
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load i64, ptr %11, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.complex, ptr %143, i64 %144
  %146 = getelementptr inbounds %struct.complex, ptr %145, i32 0, i32 1
  store float 0.000000e+00, ptr %146, align 4, !tbaa !17
  %147 = load i64, ptr %15, align 8, !tbaa !9
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = icmp slt i64 %147, %149
  br i1 %150, label %151, label %164

151:                                              ; preds = %116
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = load i64, ptr %15, align 8, !tbaa !9
  %155 = sub nsw i64 %153, %154
  store i64 %155, ptr %11, align 8, !tbaa !9
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = load i64, ptr %19, align 8, !tbaa !9
  %158 = getelementptr inbounds %struct.complex, ptr %156, i64 %157
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load i64, ptr %17, align 8, !tbaa !9
  %161 = add nsw i64 %160, 1
  %162 = getelementptr inbounds %struct.complex, ptr %159, i64 %161
  %163 = call i32 @f2c_ctpmv(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.3, ptr noundef %11, ptr noundef %158, ptr noundef %162, ptr noundef @c__1)
  br label %164

164:                                              ; preds = %151, %116
  %165 = load i64, ptr %19, align 8, !tbaa !9
  store i64 %165, ptr %17, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %164
  %167 = load i64, ptr %15, align 8, !tbaa !9
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %15, align 8, !tbaa !9
  br label %112, !llvm.loop !18

169:                                              ; preds = %112
  br label %170

170:                                              ; preds = %169, %108
  store i32 0, ptr %5, align 4
  store i32 1, ptr %21, align 4
  br label %171

171:                                              ; preds = %170, %66, %55, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %172 = load i32, ptr %5, align 4
  ret i32 %172
}

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

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

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

declare void @f2c_cdotc(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @f2c_ctpmv(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 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !13, i64 4}
!18 = distinct !{!18, !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 [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@c_b8 = external hidden global float, align 4
@c__1 = external hidden global i64, align 8
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

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

13:                                               ; preds = %4
  %14 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not51 = icmp eq i64 %14, 0
  br i1 %.not51, label %.thread.sink.split, label %15

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

18:                                               ; preds = %15
  %.pr = load i64, ptr %3, align 8, !tbaa !5
  %.not52 = icmp eq i64 %.pr, 0
  br i1 %.not52, label %22, label %.thread

.thread.sink.split:                               ; preds = %15, %13
  %.sink = phi i64 [ -1, %13 ], [ -2, %15 ]
  store i64 %.sink, ptr %3, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %18
  %19 = phi i64 [ %.pr, %18 ], [ %.sink, %.thread.sink.split ]
  %20 = sub nsw i64 0, %19
  store i64 %20, ptr %5, align 8, !tbaa !5
  %21 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %5) #3
  br label %.loopexit

22:                                               ; preds = %18
  %23 = icmp eq i64 %16, 0
  br i1 %23, label %.loopexit, label %24

24:                                               ; preds = %22
  %25 = tail call i32 @ctptri_(ptr noundef %0, ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3) #3
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %27 = icmp sgt i64 %26, 0
  br i1 %27, label %.loopexit, label %28

28:                                               ; preds = %24
  %29 = load i64, ptr %1, align 8, !tbaa !5
  br i1 %.not, label %44, label %30

30:                                               ; preds = %28
  store i64 1, ptr %9, align 8, !tbaa !5
  %.not5558 = icmp slt i64 %29, 1
  br i1 %.not5558, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %30, %37
  %.04660 = phi i64 [ %31, %37 ], [ 0, %30 ]
  %storemerge5459 = phi i64 [ %43, %37 ], [ 1, %30 ]
  %31 = add nsw i64 %.04660, %storemerge5459
  %32 = icmp sgt i64 %storemerge5459, 1
  br i1 %32, label %33, label %37

33:                                               ; preds = %.lr.ph
  %34 = add nsw i64 %storemerge5459, -1
  store i64 %34, ptr %6, align 8, !tbaa !5
  %35 = getelementptr %struct.complex, ptr %2, i64 %.04660
  %36 = call i32 @f2c_chpr(ptr noundef nonnull @.str.4, ptr noundef nonnull %6, ptr noundef nonnull @c_b8, ptr noundef %35, ptr noundef nonnull @c__1, ptr noundef %2) #3
  br label %37

37:                                               ; preds = %33, %.lr.ph
  store i64 %31, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.complex, ptr %11, i64 %31
  %39 = load float, ptr %38, align 4, !tbaa !9
  store float %39, ptr %10, align 4, !tbaa !12
  %40 = getelementptr %struct.complex, ptr %2, i64 %.04660
  %41 = call i32 @f2c_csscal(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %40, ptr noundef nonnull @c__1) #3
  %42 = load i64, ptr %9, align 8, !tbaa !5
  %43 = add nsw i64 %42, 1
  store i64 %43, ptr %9, align 8, !tbaa !5
  %.not55.not = icmp slt i64 %42, %29
  br i1 %.not55.not, label %.lr.ph, label %.loopexit, !llvm.loop !13

44:                                               ; preds = %28
  %.not5361 = icmp slt i64 %29, 1
  br i1 %.not5361, label %.loopexit, label %.lr.ph64

.lr.ph64:                                         ; preds = %44, %64
  %45 = phi i64 [ %65, %64 ], [ 1, %44 ]
  %storemerge.neg63 = phi i64 [ %storemerge.neg, %64 ], [ -1, %44 ]
  %.162 = phi i64 [ %49, %64 ], [ 1, %44 ]
  %46 = load i64, ptr %1, align 8, !tbaa !5
  %47 = add i64 %.162, %storemerge.neg63
  %48 = add i64 %47, %46
  %49 = add nsw i64 %48, 1
  store i64 %.162, ptr %6, align 8, !tbaa !5
  %50 = add i64 %storemerge.neg63, 1
  %51 = add i64 %50, %46
  store i64 %51, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.complex, ptr %11, i64 %.162
  call void @f2c_cdotc(ptr noundef nonnull %8, ptr noundef nonnull %7, ptr noundef nonnull %52, ptr noundef nonnull @c__1, ptr noundef nonnull %52, ptr noundef nonnull @c__1) #3
  %53 = load float, ptr %8, align 4, !tbaa !9
  %54 = load i64, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.complex, ptr %11, i64 %54
  store float %53, ptr %55, align 4, !tbaa !9
  %56 = getelementptr inbounds %struct.complex, ptr %11, i64 %54, i32 1
  store float 0.000000e+00, ptr %56, align 4, !tbaa !15
  %57 = load i64, ptr %1, align 8, !tbaa !5
  %58 = icmp slt i64 %45, %57
  br i1 %58, label %59, label %64

59:                                               ; preds = %.lr.ph64
  %60 = sub nsw i64 %57, %45
  store i64 %60, ptr %6, align 8, !tbaa !5
  %61 = getelementptr %struct.complex, ptr %2, i64 %48
  %62 = getelementptr %struct.complex, ptr %2, i64 %.162
  %63 = call i32 @f2c_ctpmv(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, ptr noundef nonnull %6, ptr noundef %61, ptr noundef %62, ptr noundef nonnull @c__1) #3
  br label %64

64:                                               ; preds = %59, %.lr.ph64
  %65 = add nuw nsw i64 %45, 1
  %storemerge.neg = xor i64 %45, -1
  %.not53.not = icmp slt i64 %45, %29
  br i1 %.not53.not, label %.lr.ph64, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %37, %64, %30, %44, %24, %22, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #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 @xerbla_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @ctptri_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @f2c_chpr(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @f2c_csscal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @f2c_cdotc(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @f2c_ctpmv(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 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !11, i64 4}
!16 = distinct !{!16, !14}


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