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

; 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.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@c__1 = external hidden global i64, align 8

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

32:                                               ; preds = %7
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -1, ptr %33, align 8, !tbaa !9
  br label %41

34:                                               ; preds = %7
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = load double, ptr %35, align 8, !tbaa !11
  %37 = fcmp olt double %36, 0.000000e+00
  br i1 %37, label %38, label %40

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

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

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

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

50:                                               ; preds = %41
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %51, align 8, !tbaa !11
  %52 = load ptr, ptr %9, 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 %57

55:                                               ; preds = %50
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %56, align 8, !tbaa !11
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %180

57:                                               ; preds = %50
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = load double, ptr %58, align 8, !tbaa !11
  %60 = fcmp oeq double %59, 0.000000e+00
  br i1 %60, label %61, label %62

61:                                               ; preds = %57
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %180

62:                                               ; preds = %57
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load i64, ptr %64, align 8, !tbaa !9
  store i64 %65, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %18, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %78, %63
  %67 = load i64, ptr %18, align 8, !tbaa !9
  %68 = load i64, ptr %16, align 8, !tbaa !9
  %69 = icmp sle i64 %67, %68
  br i1 %69, label %70, label %81

70:                                               ; preds = %66
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load i64, ptr %18, align 8, !tbaa !9
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !11
  %75 = fcmp ole double %74, 0.000000e+00
  br i1 %75, label %76, label %77

76:                                               ; preds = %70
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %180

77:                                               ; preds = %70
  br label %78

78:                                               ; preds = %77
  %79 = load i64, ptr %18, align 8, !tbaa !9
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr %18, align 8, !tbaa !9
  br label %66, !llvm.loop !13

81:                                               ; preds = %66
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 1
  store double 1.000000e+00, ptr %83, align 8, !tbaa !11
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !9
  store i64 %85, ptr %16, align 8, !tbaa !9
  store i64 2, ptr %18, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %105, %81
  %87 = load i64, ptr %18, align 8, !tbaa !9
  %88 = load i64, ptr %16, align 8, !tbaa !9
  %89 = icmp sle i64 %87, %88
  br i1 %89, label %90, label %108

90:                                               ; preds = %86
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = load i64, ptr %18, align 8, !tbaa !9
  %93 = sub nsw i64 %92, 1
  %94 = getelementptr inbounds double, ptr %91, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = load i64, ptr %18, align 8, !tbaa !9
  %98 = sub nsw i64 %97, 1
  %99 = getelementptr inbounds %struct.doublecomplex, ptr %96, i64 %98
  %100 = call double @z_abs(ptr noundef %99)
  %101 = call double @llvm.fmuladd.f64(double %95, double %100, double 1.000000e+00)
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load i64, ptr %18, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  store double %101, ptr %104, align 8, !tbaa !11
  br label %105

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

108:                                              ; preds = %86
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds double, ptr %109, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %114, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !11
  %119 = fdiv double %118, %113
  store double %119, ptr %117, align 8, !tbaa !11
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = sub nsw i64 %121, 1
  store i64 %122, ptr %18, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %149, %108
  %124 = load i64, ptr %18, align 8, !tbaa !9
  %125 = icmp sge i64 %124, 1
  br i1 %125, label %126, label %152

126:                                              ; preds = %123
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = load i64, ptr %18, align 8, !tbaa !9
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !11
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load i64, ptr %18, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !11
  %135 = fdiv double %130, %134
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = load i64, ptr %18, align 8, !tbaa !9
  %138 = add nsw i64 %137, 1
  %139 = getelementptr inbounds double, ptr %136, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !11
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i64, ptr %18, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %141, i64 %142
  %144 = call double @z_abs(ptr noundef %143)
  %145 = call double @llvm.fmuladd.f64(double %140, double %144, double %135)
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = load i64, ptr %18, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  store double %145, ptr %148, align 8, !tbaa !11
  br label %149

149:                                              ; preds = %126
  %150 = load i64, ptr %18, align 8, !tbaa !9
  %151 = add nsw i64 %150, -1
  store i64 %151, ptr %18, align 8, !tbaa !9
  br label %123, !llvm.loop !16

152:                                              ; preds = %123
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %154, i64 1
  %156 = call i64 @f2c_idamax(ptr noundef %153, ptr noundef %155, ptr noundef @c__1)
  store i64 %156, ptr %19, align 8, !tbaa !9
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = load i64, ptr %19, align 8, !tbaa !9
  %159 = getelementptr inbounds double, ptr %157, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !11
  store double %160, ptr %17, align 8, !tbaa !11
  %161 = load double, ptr %17, align 8, !tbaa !11
  %162 = fcmp oge double %161, 0.000000e+00
  br i1 %162, label %163, label %165

163:                                              ; preds = %152
  %164 = load double, ptr %17, align 8, !tbaa !11
  br label %168

165:                                              ; preds = %152
  %166 = load double, ptr %17, align 8, !tbaa !11
  %167 = fneg double %166
  br label %168

168:                                              ; preds = %165, %163
  %169 = phi double [ %164, %163 ], [ %167, %165 ]
  store double %169, ptr %20, align 8, !tbaa !11
  %170 = load double, ptr %20, align 8, !tbaa !11
  %171 = fcmp une double %170, 0.000000e+00
  br i1 %171, label %172, label %179

172:                                              ; preds = %168
  %173 = load double, ptr %20, align 8, !tbaa !11
  %174 = fdiv double 1.000000e+00, %173
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = load double, ptr %175, align 8, !tbaa !11
  %177 = fdiv double %174, %176
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  store double %177, ptr %178, align 8, !tbaa !11
  br label %179

179:                                              ; preds = %172, %168
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %180

180:                                              ; preds = %179, %76, %61, %55, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %181 = load i32, ptr %8, align 4
  ret i32 %181
}

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

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

declare double @z_abs(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare i64 @f2c_idamax(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @zptcon_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4, ptr noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #0 {
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %9 = getelementptr inbounds i8, ptr %5, i64 -8
  %10 = getelementptr inbounds i8, ptr %2, i64 -16
  %11 = getelementptr inbounds i8, ptr %1, i64 -8
  store i64 0, ptr %6, align 8, !tbaa !5
  %12 = load i64, ptr %0, align 8, !tbaa !5
  %13 = icmp slt i64 %12, 0
  br i1 %13, label %.thread, label %14

14:                                               ; preds = %7
  %15 = load double, ptr %3, align 8, !tbaa !9
  %16 = fcmp olt double %15, 0.000000e+00
  br i1 %16, label %.thread, label %19

.thread:                                          ; preds = %14, %7
  %storemerge = phi i64 [ -1, %7 ], [ -4, %14 ]
  store i64 %storemerge, ptr %6, align 8, !tbaa !5
  %17 = sub nsw i64 0, %storemerge
  store i64 %17, ptr %8, align 8, !tbaa !5
  %18 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %8) #4
  br label %.loopexit

19:                                               ; preds = %14
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  %20 = icmp eq i64 %12, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %19
  store double 1.000000e+00, ptr %4, align 8, !tbaa !9
  br label %.loopexit

22:                                               ; preds = %19
  %23 = load double, ptr %3, align 8, !tbaa !9
  %24 = fcmp oeq double %23, 0.000000e+00
  br i1 %24, label %.loopexit, label %.lr.ph

25:                                               ; preds = %.lr.ph
  %26 = add nuw i64 %.05764, 1
  %exitcond.not = icmp eq i64 %.05764, %12
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph:                                           ; preds = %22, %25
  %.05764 = phi i64 [ %26, %25 ], [ 1, %22 ]
  %27 = getelementptr inbounds double, ptr %11, i64 %.05764
  %28 = load double, ptr %27, align 8, !tbaa !9
  %29 = fcmp ugt double %28, 0.000000e+00
  br i1 %29, label %25, label %.loopexit

._crit_edge:                                      ; preds = %25
  store double 1.000000e+00, ptr %5, align 8, !tbaa !9
  %.not6165 = icmp slt i64 %12, 2
  br i1 %.not6165, label %._crit_edge69.thread, label %.lr.ph68.preheader

._crit_edge69.thread:                             ; preds = %._crit_edge
  %30 = getelementptr inbounds double, ptr %11, i64 %12
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds double, ptr %9, i64 %12
  %33 = load double, ptr %32, align 8, !tbaa !9
  %34 = fdiv double %33, %31
  store double %34, ptr %32, align 8, !tbaa !9
  br label %._crit_edge73

.lr.ph68.preheader:                               ; preds = %._crit_edge
  %invariant.gep = getelementptr i8, ptr %2, i64 -32
  br label %.lr.ph68

.lr.ph68:                                         ; preds = %.lr.ph68.preheader, %.lr.ph68
  %35 = phi double [ %37, %.lr.ph68 ], [ 1.000000e+00, %.lr.ph68.preheader ]
  %.166 = phi i64 [ %39, %.lr.ph68 ], [ 2, %.lr.ph68.preheader ]
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %.166
  %36 = tail call double @z_abs(ptr noundef nonnull %gep) #4
  %37 = tail call double @llvm.fmuladd.f64(double %35, double %36, double 1.000000e+00)
  %38 = getelementptr inbounds double, ptr %9, i64 %.166
  store double %37, ptr %38, align 8, !tbaa !9
  %39 = add nuw i64 %.166, 1
  %exitcond74.not = icmp eq i64 %.166, %12
  br i1 %exitcond74.not, label %._crit_edge69, label %.lr.ph68, !llvm.loop !13

._crit_edge69:                                    ; preds = %.lr.ph68
  %.pre75 = load i64, ptr %0, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %11, i64 %.pre75
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds double, ptr %9, i64 %.pre75
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = fdiv double %43, %41
  store double %44, ptr %42, align 8, !tbaa !9
  %45 = icmp sgt i64 %.pre75, 1
  br i1 %45, label %.lr.ph72, label %._crit_edge73

.lr.ph72:                                         ; preds = %._crit_edge69, %.lr.ph72
  %46 = phi double [ %54, %.lr.ph72 ], [ %44, %._crit_edge69 ]
  %.2.in70 = phi i64 [ %.2, %.lr.ph72 ], [ %.pre75, %._crit_edge69 ]
  %.2 = add nsw i64 %.2.in70, -1
  %47 = getelementptr inbounds double, ptr %9, i64 %.2
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds double, ptr %11, i64 %.2
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = fdiv double %48, %50
  %52 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %.2
  %53 = tail call double @z_abs(ptr noundef nonnull %52) #4
  %54 = tail call double @llvm.fmuladd.f64(double %46, double %53, double %51)
  store double %54, ptr %47, align 8, !tbaa !9
  %55 = icmp ugt i64 %.2.in70, 2
  br i1 %55, label %.lr.ph72, label %._crit_edge73, !llvm.loop !14

._crit_edge73:                                    ; preds = %.lr.ph72, %._crit_edge69.thread, %._crit_edge69
  %56 = tail call i64 @f2c_idamax(ptr noundef nonnull %0, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #4
  %57 = getelementptr inbounds double, ptr %9, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !9
  %59 = fcmp une double %58, 0.000000e+00
  br i1 %59, label %60, label %.loopexit

60:                                               ; preds = %._crit_edge73
  %61 = fcmp oge double %58, 0.000000e+00
  %62 = fneg double %58
  %63 = select i1 %61, double %58, double %62
  %64 = fdiv double 1.000000e+00, %63
  %65 = load double, ptr %3, align 8, !tbaa !9
  %66 = fdiv double %64, %65
  store double %66, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %._crit_edge73, %60, %22, %21, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #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 i32 @xerbla_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @z_abs(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare i64 @f2c_idamax(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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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