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

; 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 [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @zpoequb_(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 i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i64, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %29, ptr %16, align 8, !tbaa !9
  %30 = load i64, ptr %16, align 8, !tbaa !9
  %31 = add nsw i64 1, %30
  store i64 %31, ptr %17, align 8, !tbaa !9
  %32 = load i64, ptr %17, align 8, !tbaa !9
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = sub i64 0, %32
  %35 = getelementptr inbounds %struct.doublecomplex, ptr %33, i64 %34
  store ptr %35, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i32 -1
  store ptr %37, ptr %12, align 8, !tbaa !5
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 0, ptr %38, align 8, !tbaa !9
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load i64, ptr %39, align 8, !tbaa !9
  %41 = icmp slt i64 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %7
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -1, ptr %43, align 8, !tbaa !9
  br label %60

44:                                               ; preds = %7
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = load i64, ptr %45, align 8, !tbaa !9
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = icmp sge i64 1, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %44
  br label %54

51:                                               ; preds = %44
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  br label %54

54:                                               ; preds = %51, %50
  %55 = phi i64 [ 1, %50 ], [ %53, %51 ]
  %56 = icmp slt i64 %46, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %54
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -3, ptr %58, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %57, %54
  br label %60

60:                                               ; preds = %59, %42
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = icmp ne i64 %62, 0
  br i1 %63, label %64, label %69

64:                                               ; preds = %60
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = sub nsw i64 0, %66
  store i64 %67, ptr %18, align 8, !tbaa !9
  %68 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %18)
  store i32 0, ptr %8, align 4
  store i32 1, ptr %27, align 4
  br label %207

69:                                               ; preds = %60
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = icmp eq i64 %71, 0
  br i1 %72, label %73, label %76

73:                                               ; preds = %69
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %74, align 8, !tbaa !11
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %75, align 8, !tbaa !11
  store i32 0, ptr %8, align 4
  store i32 1, ptr %27, align 4
  br label %207

76:                                               ; preds = %69
  %77 = call double @dlamch_(ptr noundef @.str.1)
  store double %77, ptr %25, align 8, !tbaa !11
  %78 = load double, ptr %25, align 8, !tbaa !11
  %79 = call double @log(double noundef %78) #4
  %80 = fdiv double -5.000000e-01, %79
  store double %80, ptr %24, align 8, !tbaa !11
  %81 = load i64, ptr %16, align 8, !tbaa !9
  %82 = add nsw i64 %81, 1
  store i64 %82, ptr %18, align 8, !tbaa !9
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = load i64, ptr %18, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.doublecomplex, ptr %83, i64 %84
  %86 = getelementptr inbounds %struct.doublecomplex, ptr %85, i32 0, i32 0
  %87 = load double, ptr %86, align 8, !tbaa !13
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i64 1
  store double %87, ptr %89, align 8, !tbaa !11
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 1
  %92 = load double, ptr %91, align 8, !tbaa !11
  store double %92, ptr %26, align 8, !tbaa !11
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 1
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  store double %95, ptr %96, align 8, !tbaa !11
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  store i64 %98, ptr %18, align 8, !tbaa !9
  store i64 2, ptr %23, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %148, %76
  %100 = load i64, ptr %23, align 8, !tbaa !9
  %101 = load i64, ptr %18, align 8, !tbaa !9
  %102 = icmp sle i64 %100, %101
  br i1 %102, label %103, label %151

103:                                              ; preds = %99
  %104 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %104, ptr %19, align 8, !tbaa !9
  %105 = load i64, ptr %23, align 8, !tbaa !9
  %106 = load i64, ptr %23, align 8, !tbaa !9
  %107 = load i64, ptr %16, align 8, !tbaa !9
  %108 = mul nsw i64 %106, %107
  %109 = add nsw i64 %105, %108
  store i64 %109, ptr %20, align 8, !tbaa !9
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load i64, ptr %20, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.doublecomplex, ptr %110, i64 %111
  %113 = getelementptr inbounds %struct.doublecomplex, ptr %112, i32 0, i32 0
  %114 = load double, ptr %113, align 8, !tbaa !13
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load i64, ptr %19, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %115, i64 %116
  store double %114, ptr %117, align 8, !tbaa !11
  %118 = load double, ptr %26, align 8, !tbaa !11
  store double %118, ptr %21, align 8, !tbaa !11
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load i64, ptr %23, align 8, !tbaa !9
  %121 = getelementptr inbounds double, ptr %119, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !11
  store double %122, ptr %22, align 8, !tbaa !11
  %123 = load double, ptr %21, align 8, !tbaa !11
  %124 = load double, ptr %22, align 8, !tbaa !11
  %125 = fcmp ole double %123, %124
  br i1 %125, label %126, label %128

126:                                              ; preds = %103
  %127 = load double, ptr %21, align 8, !tbaa !11
  br label %130

128:                                              ; preds = %103
  %129 = load double, ptr %22, align 8, !tbaa !11
  br label %130

130:                                              ; preds = %128, %126
  %131 = phi double [ %127, %126 ], [ %129, %128 ]
  store double %131, ptr %26, align 8, !tbaa !11
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = load double, ptr %132, align 8, !tbaa !11
  store double %133, ptr %21, align 8, !tbaa !11
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load i64, ptr %23, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !11
  store double %137, ptr %22, align 8, !tbaa !11
  %138 = load double, ptr %21, align 8, !tbaa !11
  %139 = load double, ptr %22, align 8, !tbaa !11
  %140 = fcmp oge double %138, %139
  br i1 %140, label %141, label %143

141:                                              ; preds = %130
  %142 = load double, ptr %21, align 8, !tbaa !11
  br label %145

143:                                              ; preds = %130
  %144 = load double, ptr %22, align 8, !tbaa !11
  br label %145

145:                                              ; preds = %143, %141
  %146 = phi double [ %142, %141 ], [ %144, %143 ]
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  store double %146, ptr %147, align 8, !tbaa !11
  br label %148

148:                                              ; preds = %145
  %149 = load i64, ptr %23, align 8, !tbaa !9
  %150 = add nsw i64 %149, 1
  store i64 %150, ptr %23, align 8, !tbaa !9
  br label %99, !llvm.loop !15

151:                                              ; preds = %99
  %152 = load double, ptr %26, align 8, !tbaa !11
  %153 = fcmp ole double %152, 0.000000e+00
  br i1 %153, label %154, label %175

154:                                              ; preds = %151
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = load i64, ptr %155, align 8, !tbaa !9
  store i64 %156, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %23, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %171, %154
  %158 = load i64, ptr %23, align 8, !tbaa !9
  %159 = load i64, ptr %18, align 8, !tbaa !9
  %160 = icmp sle i64 %158, %159
  br i1 %160, label %161, label %174

161:                                              ; preds = %157
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = load i64, ptr %23, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !11
  %166 = fcmp ole double %165, 0.000000e+00
  br i1 %166, label %167, label %170

167:                                              ; preds = %161
  %168 = load i64, ptr %23, align 8, !tbaa !9
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %168, ptr %169, align 8, !tbaa !9
  store i32 0, ptr %8, align 4
  store i32 1, ptr %27, align 4
  br label %207

170:                                              ; preds = %161
  br label %171

171:                                              ; preds = %170
  %172 = load i64, ptr %23, align 8, !tbaa !9
  %173 = add nsw i64 %172, 1
  store i64 %173, ptr %23, align 8, !tbaa !9
  br label %157, !llvm.loop !17

174:                                              ; preds = %157
  br label %206

175:                                              ; preds = %151
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = load i64, ptr %176, align 8, !tbaa !9
  store i64 %177, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %23, align 8, !tbaa !9
  br label %178

178:                                              ; preds = %195, %175
  %179 = load i64, ptr %23, align 8, !tbaa !9
  %180 = load i64, ptr %18, align 8, !tbaa !9
  %181 = icmp sle i64 %179, %180
  br i1 %181, label %182, label %198

182:                                              ; preds = %178
  %183 = load double, ptr %24, align 8, !tbaa !11
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = load i64, ptr %23, align 8, !tbaa !9
  %186 = getelementptr inbounds double, ptr %184, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = call double @log(double noundef %187) #4
  %189 = fmul double %183, %188
  %190 = fptosi double %189 to i64
  store i64 %190, ptr %19, align 8, !tbaa !9
  %191 = call double @pow_di(ptr noundef %25, ptr noundef %19)
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = load i64, ptr %23, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  store double %191, ptr %194, align 8, !tbaa !11
  br label %195

195:                                              ; preds = %182
  %196 = load i64, ptr %23, align 8, !tbaa !9
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %23, align 8, !tbaa !9
  br label %178, !llvm.loop !18

198:                                              ; preds = %178
  %199 = load double, ptr %26, align 8, !tbaa !11
  %200 = call double @sqrt(double noundef %199) #4
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = load double, ptr %201, align 8, !tbaa !11
  %203 = call double @sqrt(double noundef %202) #4
  %204 = fdiv double %200, %203
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  store double %204, ptr %205, align 8, !tbaa !11
  br label %206

206:                                              ; preds = %198, %174
  store i32 0, ptr %8, align 4
  store i32 1, ptr %27, align 4
  br label %207

207:                                              ; preds = %206, %167, %73, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  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
  %208 = load i32, ptr %8, align 4
  ret i32 %208
}

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

; Function Attrs: nounwind
declare double @log(double noundef) #3

declare double @pow_di(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; 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 "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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!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.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

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

18:                                               ; preds = %7
  %19 = load i64, ptr %2, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %16, i64 1)
  %20 = icmp slt i64 %19, %spec.select
  br i1 %20, label %.thread, label %23

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

23:                                               ; preds = %18
  %24 = icmp eq i64 %16, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %23
  store double 1.000000e+00, ptr %4, align 8, !tbaa !9
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  br label %.loopexit

26:                                               ; preds = %23
  %27 = tail call double @dlamch_(ptr noundef nonnull @.str.1) #5
  store double %27, ptr %10, align 8, !tbaa !9
  %28 = tail call double @log(double noundef %27) #5
  %29 = fdiv double -5.000000e-01, %28
  %30 = load double, ptr %1, align 8, !tbaa !11
  store double %30, ptr %3, align 8, !tbaa !9
  store double %30, ptr %5, align 8, !tbaa !9
  %31 = load i64, ptr %0, align 8, !tbaa !5
  %.not7177 = icmp slt i64 %31, 2
  br i1 %.not7177, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %26, %.lr.ph
  %.079 = phi double [ %37, %.lr.ph ], [ %30, %26 ]
  %.06878 = phi i64 [ %41, %.lr.ph ], [ 2, %26 ]
  %32 = mul i64 %.06878, %12
  %33 = getelementptr inbounds %struct.doublecomplex, ptr %14, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds double, ptr %15, i64 %.06878
  store double %34, ptr %35, align 8, !tbaa !9
  %36 = fcmp ole double %.079, %34
  %37 = select i1 %36, double %.079, double %34
  %38 = load double, ptr %5, align 8, !tbaa !9
  %39 = fcmp oge double %38, %34
  %40 = select i1 %39, double %38, double %34
  store double %40, ptr %5, align 8, !tbaa !9
  %41 = add nuw i64 %.06878, 1
  %exitcond.not = icmp eq i64 %.06878, %31
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %26
  %.0.lcssa = phi double [ %30, %26 ], [ %37, %.lr.ph ]
  %42 = fcmp ugt double %.0.lcssa, 0.000000e+00
  %.not7285 = icmp slt i64 %31, 1
  br i1 %42, label %50, label %43

43:                                               ; preds = %._crit_edge
  br i1 %.not7285, label %.loopexit, label %.lr.ph84

.lr.ph84:                                         ; preds = %43, %48
  %.182 = phi i64 [ %49, %48 ], [ 1, %43 ]
  %44 = getelementptr inbounds double, ptr %15, i64 %.182
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = fcmp ugt double %45, 0.000000e+00
  br i1 %46, label %48, label %47

47:                                               ; preds = %.lr.ph84
  store i64 %.182, ptr %6, align 8, !tbaa !5
  br label %.loopexit

48:                                               ; preds = %.lr.ph84
  %49 = add nuw i64 %.182, 1
  %exitcond91.not = icmp eq i64 %.182, %31
  br i1 %exitcond91.not, label %.loopexit, label %.lr.ph84, !llvm.loop !15

50:                                               ; preds = %._crit_edge
  br i1 %.not7285, label %._crit_edge89, label %.lr.ph88

.lr.ph88:                                         ; preds = %50, %.lr.ph88
  %.286 = phi i64 [ %57, %.lr.ph88 ], [ 1, %50 ]
  %51 = getelementptr inbounds double, ptr %15, i64 %.286
  %52 = load double, ptr %51, align 8, !tbaa !9
  %53 = call double @log(double noundef %52) #5
  %54 = fmul double %29, %53
  %55 = fptosi double %54 to i64
  store i64 %55, ptr %9, align 8, !tbaa !5
  %56 = call double @pow_di(ptr noundef nonnull %10, ptr noundef nonnull %9) #5
  store double %56, ptr %51, align 8, !tbaa !9
  %57 = add nuw nsw i64 %.286, 1
  %.not72.not = icmp slt i64 %.286, %31
  br i1 %.not72.not, label %.lr.ph88, label %._crit_edge89, !llvm.loop !16

._crit_edge89:                                    ; preds = %.lr.ph88, %50
  %58 = call double @sqrt(double noundef %.0.lcssa) #5
  %59 = load double, ptr %5, align 8, !tbaa !9
  %60 = call double @sqrt(double noundef %59) #5
  %61 = fdiv double %58, %60
  store double %61, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %48, %43, %._crit_edge89, %47, %25, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  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 @dlamch_(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #3

declare double @pow_di(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #4

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 nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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