; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4
@.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 void @cpptri_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca %struct.complex, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.complex, ptr %21, i32 -1
  store ptr %22, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %23, align 4, !tbaa !9
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call i32 @lsame_(ptr noundef %24, ptr noundef @.str)
  store i32 %25, ptr %15, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %34, label %28

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

32:                                               ; preds = %28
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 -1, ptr %33, align 4, !tbaa !9
  br label %41

34:                                               ; preds = %28, %4
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp slt i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %34
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 -2, ptr %39, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %38, %34
  br label %41

41:                                               ; preds = %40, %32
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %50

45:                                               ; preds = %41
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = sub nsw i32 0, %47
  store i32 %48, ptr %9, align 4, !tbaa !9
  %49 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %9, i32 noundef 6)
  store i32 1, ptr %20, align 4
  br label %175

50:                                               ; preds = %41
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %50
  store i32 1, ptr %20, align 4
  br label %175

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

64:                                               ; preds = %55
  store i32 1, ptr %20, align 4
  br label %175

65:                                               ; preds = %55
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %108

68:                                               ; preds = %65
  store i32 0, ptr %17, align 4, !tbaa !9
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  store i32 %70, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %104, %68
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = icmp sle i32 %72, %73
  br i1 %74, label %75, label %107

75:                                               ; preds = %71
  %76 = load i32, ptr %17, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %16, align 4, !tbaa !9
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = load i32, ptr %17, align 4, !tbaa !9
  %80 = add nsw i32 %79, %78
  store i32 %80, ptr %17, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = icmp sgt i32 %81, 1
  br i1 %82, label %83, label %92

83:                                               ; preds = %75
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = sub nsw i32 %84, 1
  store i32 %85, ptr %10, align 4, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %struct.complex, ptr %86, i64 %88
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.complex, ptr %90, i64 1
  call void @chpr_(ptr noundef @.str.4, ptr noundef %10, ptr noundef @c_b8, ptr noundef %89, ptr noundef @c__1, ptr noundef %91)
  br label %92

92:                                               ; preds = %83, %75
  %93 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %93, ptr %10, align 4, !tbaa !9
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.complex, ptr %94, i64 %96
  %98 = getelementptr inbounds %struct.complex, ptr %97, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !11
  store float %99, ptr %18, align 4, !tbaa !14
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds %struct.complex, ptr %100, i64 %102
  call void @csscal_(ptr noundef %14, ptr noundef %18, ptr noundef %103, ptr noundef @c__1)
  br label %104

104:                                              ; preds = %92
  %105 = load i32, ptr %14, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %14, align 4, !tbaa !9
  br label %71, !llvm.loop !15

107:                                              ; preds = %71
  br label %174

108:                                              ; preds = %65
  store i32 1, ptr %17, align 4, !tbaa !9
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !9
  store i32 %110, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %170, %108
  %112 = load i32, ptr %14, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %115, label %173

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

154:                                              ; preds = %115
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = sub nsw i32 %156, %157
  store i32 %158, ptr %10, align 4, !tbaa !9
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = load i32, ptr %19, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds %struct.complex, ptr %159, i64 %161
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds %struct.complex, ptr %163, i64 %166
  call void @ctpmv_(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.3, ptr noundef %10, ptr noundef %162, ptr noundef %167, ptr noundef @c__1)
  br label %168

168:                                              ; preds = %154, %115
  %169 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %169, ptr %17, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %168
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %14, align 4, !tbaa !9
  br label %111, !llvm.loop !18

173:                                              ; preds = %111
  br label %174

174:                                              ; preds = %173, %107
  store i32 1, ptr %20, align 4
  br label %175

175:                                              ; preds = %174, %64, %54, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cdotc_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @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 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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 i32, align 4
@.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 void @cpptri_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.complex, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  %11 = getelementptr inbounds i8, ptr %2, i64 -8
  store i32 0, ptr %3, align 4, !tbaa !5
  %12 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %15

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

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

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

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

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

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

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

27:                                               ; preds = %24
  %28 = load i32, ptr %1, align 4, !tbaa !5
  br i1 %.not, label %44, label %29

29:                                               ; preds = %27
  store i32 1, ptr %9, align 4, !tbaa !5
  %.not5457 = icmp slt i32 %28, 1
  br i1 %.not5457, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %29, %37
  %.059 = phi i32 [ %31, %37 ], [ 0, %29 ]
  %storemerge5358 = phi i32 [ %43, %37 ], [ 1, %29 ]
  %30 = add nsw i32 %.059, 1
  %31 = add nsw i32 %.059, %storemerge5358
  %32 = icmp sgt i32 %storemerge5358, 1
  br i1 %32, label %33, label %.lr.ph._crit_edge

.lr.ph._crit_edge:                                ; preds = %.lr.ph
  %.pre = sext i32 %30 to i64
  br label %37

33:                                               ; preds = %.lr.ph
  %34 = add nsw i32 %storemerge5358, -1
  store i32 %34, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %30 to i64
  %36 = getelementptr inbounds %struct.complex, ptr %11, i64 %35
  call void @chpr_(ptr noundef nonnull @.str.4, ptr noundef nonnull %6, ptr noundef nonnull @c_b8, ptr noundef nonnull %36, ptr noundef nonnull @c__1, ptr noundef %2) #4
  br label %37

37:                                               ; preds = %.lr.ph._crit_edge, %33
  %.pre-phi = phi i64 [ %.pre, %.lr.ph._crit_edge ], [ %35, %33 ]
  store i32 %31, ptr %6, align 4, !tbaa !5
  %38 = sext i32 %31 to i64
  %39 = getelementptr inbounds %struct.complex, ptr %11, i64 %38
  %40 = load float, ptr %39, align 4, !tbaa !9
  store float %40, ptr %10, align 4, !tbaa !12
  %41 = getelementptr inbounds %struct.complex, ptr %11, i64 %.pre-phi
  call void @csscal_(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %41, ptr noundef nonnull @c__1) #4
  %42 = load i32, ptr %9, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %9, align 4, !tbaa !5
  %.not54.not = icmp slt i32 %42, %28
  br i1 %.not54.not, label %.lr.ph, label %.loopexit, !llvm.loop !13

44:                                               ; preds = %27
  %.not5260 = icmp slt i32 %28, 1
  br i1 %.not5260, label %.loopexit, label %.lr.ph63

.lr.ph63:                                         ; preds = %44, %65
  %45 = phi i32 [ %66, %65 ], [ 1, %44 ]
  %storemerge.neg62 = phi i32 [ %storemerge.neg, %65 ], [ -1, %44 ]
  %.161 = phi i32 [ %49, %65 ], [ 1, %44 ]
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = add i32 %storemerge.neg62, 1
  %48 = add i32 %47, %.161
  %49 = add i32 %48, %46
  store i32 %.161, ptr %6, align 4, !tbaa !5
  %50 = add i32 %47, %46
  store i32 %50, ptr %7, align 4, !tbaa !5
  %51 = sext i32 %.161 to i64
  %52 = getelementptr inbounds %struct.complex, ptr %11, i64 %51
  call void @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)
  %53 = load float, ptr %8, align 4, !tbaa !9
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %struct.complex, ptr %11, i64 %55
  store float %53, ptr %56, align 4, !tbaa !9
  %57 = getelementptr inbounds %struct.complex, ptr %11, i64 %55, i32 1
  store float 0.000000e+00, ptr %57, align 4, !tbaa !15
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = icmp slt i32 %45, %58
  br i1 %59, label %60, label %65

60:                                               ; preds = %.lr.ph63
  %61 = sub nsw i32 %58, %45
  store i32 %61, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %49 to i64
  %63 = getelementptr inbounds %struct.complex, ptr %11, i64 %62
  %64 = getelementptr i8, ptr %52, i64 8
  call void @ctpmv_(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, ptr noundef nonnull %6, ptr noundef nonnull %63, ptr noundef %64, ptr noundef nonnull @c__1) #4
  br label %65

65:                                               ; preds = %60, %.lr.ph63
  %66 = add nuw nsw i32 %45, 1
  %storemerge.neg = xor i32 %45, -1
  %.not52.not = icmp slt i32 %45, %28
  br i1 %.not52.not, label %.lr.ph63, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %37, %65, %29, %44, %24, %22, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cdotc_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @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 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "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 #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 = !{!"int", !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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass