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

; 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"

@.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 @dpoequb_(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 double, align 8
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = 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
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %28, ptr %16, align 8, !tbaa !9
  %29 = load i64, ptr %16, align 8, !tbaa !9
  %30 = add nsw i64 1, %29
  store i64 %30, ptr %17, align 8, !tbaa !9
  %31 = load i64, ptr %17, align 8, !tbaa !9
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = sub i64 0, %31
  %34 = getelementptr inbounds double, ptr %32, i64 %33
  store ptr %34, ptr %10, align 8, !tbaa !5
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %35, i32 -1
  store ptr %36, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 0, ptr %37, align 8, !tbaa !9
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = icmp slt i64 %39, 0
  br i1 %40, label %41, label %43

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

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

49:                                               ; preds = %43
  br label %53

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

53:                                               ; preds = %50, %49
  %54 = phi i64 [ 1, %49 ], [ %52, %50 ]
  %55 = icmp slt i64 %45, %54
  br i1 %55, label %56, label %58

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

58:                                               ; preds = %56, %53
  br label %59

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

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

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

72:                                               ; preds = %68
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %73, align 8, !tbaa !11
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %74, align 8, !tbaa !11
  store i32 0, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %201

75:                                               ; preds = %68
  %76 = call double @dlamch_(ptr noundef @.str.1)
  store double %76, ptr %24, align 8, !tbaa !11
  %77 = load double, ptr %24, align 8, !tbaa !11
  %78 = call double @log(double noundef %77) #4
  %79 = fdiv double -5.000000e-01, %78
  store double %79, ptr %23, align 8, !tbaa !11
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load i64, ptr %16, align 8, !tbaa !9
  %82 = add nsw i64 %81, 1
  %83 = getelementptr inbounds double, ptr %80, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 1
  store double %84, ptr %86, align 8, !tbaa !11
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds double, ptr %87, i64 1
  %89 = load double, ptr %88, align 8, !tbaa !11
  store double %89, ptr %25, 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
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  store double %92, ptr %93, align 8, !tbaa !11
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i64, ptr %94, align 8, !tbaa !9
  store i64 %95, ptr %18, align 8, !tbaa !9
  store i64 2, ptr %22, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %142, %75
  %97 = load i64, ptr %22, align 8, !tbaa !9
  %98 = load i64, ptr %18, align 8, !tbaa !9
  %99 = icmp sle i64 %97, %98
  br i1 %99, label %100, label %145

100:                                              ; preds = %96
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = load i64, ptr %22, align 8, !tbaa !9
  %103 = load i64, ptr %22, align 8, !tbaa !9
  %104 = load i64, ptr %16, align 8, !tbaa !9
  %105 = mul nsw i64 %103, %104
  %106 = add nsw i64 %102, %105
  %107 = getelementptr inbounds double, ptr %101, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = load i64, ptr %22, align 8, !tbaa !9
  %111 = getelementptr inbounds double, ptr %109, i64 %110
  store double %108, ptr %111, align 8, !tbaa !11
  %112 = load double, ptr %25, align 8, !tbaa !11
  store double %112, ptr %20, align 8, !tbaa !11
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = load i64, ptr %22, align 8, !tbaa !9
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !11
  store double %116, ptr %21, align 8, !tbaa !11
  %117 = load double, ptr %20, align 8, !tbaa !11
  %118 = load double, ptr %21, align 8, !tbaa !11
  %119 = fcmp ole double %117, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %100
  %121 = load double, ptr %20, align 8, !tbaa !11
  br label %124

122:                                              ; preds = %100
  %123 = load double, ptr %21, align 8, !tbaa !11
  br label %124

124:                                              ; preds = %122, %120
  %125 = phi double [ %121, %120 ], [ %123, %122 ]
  store double %125, ptr %25, align 8, !tbaa !11
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load double, ptr %126, align 8, !tbaa !11
  store double %127, ptr %20, align 8, !tbaa !11
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = load i64, ptr %22, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %128, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !11
  store double %131, ptr %21, align 8, !tbaa !11
  %132 = load double, ptr %20, align 8, !tbaa !11
  %133 = load double, ptr %21, align 8, !tbaa !11
  %134 = fcmp oge double %132, %133
  br i1 %134, label %135, label %137

135:                                              ; preds = %124
  %136 = load double, ptr %20, align 8, !tbaa !11
  br label %139

137:                                              ; preds = %124
  %138 = load double, ptr %21, align 8, !tbaa !11
  br label %139

139:                                              ; preds = %137, %135
  %140 = phi double [ %136, %135 ], [ %138, %137 ]
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  store double %140, ptr %141, align 8, !tbaa !11
  br label %142

142:                                              ; preds = %139
  %143 = load i64, ptr %22, align 8, !tbaa !9
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %22, align 8, !tbaa !9
  br label %96, !llvm.loop !13

145:                                              ; preds = %96
  %146 = load double, ptr %25, align 8, !tbaa !11
  %147 = fcmp ole double %146, 0.000000e+00
  br i1 %147, label %148, label %169

148:                                              ; preds = %145
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = load i64, ptr %149, align 8, !tbaa !9
  store i64 %150, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %165, %148
  %152 = load i64, ptr %22, align 8, !tbaa !9
  %153 = load i64, ptr %18, align 8, !tbaa !9
  %154 = icmp sle i64 %152, %153
  br i1 %154, label %155, label %168

155:                                              ; preds = %151
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = load i64, ptr %22, align 8, !tbaa !9
  %158 = getelementptr inbounds double, ptr %156, i64 %157
  %159 = load double, ptr %158, align 8, !tbaa !11
  %160 = fcmp ole double %159, 0.000000e+00
  br i1 %160, label %161, label %164

161:                                              ; preds = %155
  %162 = load i64, ptr %22, align 8, !tbaa !9
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %162, ptr %163, align 8, !tbaa !9
  store i32 0, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %201

164:                                              ; preds = %155
  br label %165

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

168:                                              ; preds = %151
  br label %200

169:                                              ; preds = %145
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = load i64, ptr %170, align 8, !tbaa !9
  store i64 %171, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %189, %169
  %173 = load i64, ptr %22, align 8, !tbaa !9
  %174 = load i64, ptr %18, align 8, !tbaa !9
  %175 = icmp sle i64 %173, %174
  br i1 %175, label %176, label %192

176:                                              ; preds = %172
  %177 = load double, ptr %23, align 8, !tbaa !11
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = load i64, ptr %22, align 8, !tbaa !9
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !11
  %182 = call double @log(double noundef %181) #4
  %183 = fmul double %177, %182
  %184 = fptosi double %183 to i64
  store i64 %184, ptr %19, align 8, !tbaa !9
  %185 = call double @pow_di(ptr noundef %24, ptr noundef %19)
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = load i64, ptr %22, align 8, !tbaa !9
  %188 = getelementptr inbounds double, ptr %186, i64 %187
  store double %185, ptr %188, align 8, !tbaa !11
  br label %189

189:                                              ; preds = %176
  %190 = load i64, ptr %22, align 8, !tbaa !9
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %22, align 8, !tbaa !9
  br label %172, !llvm.loop !16

192:                                              ; preds = %172
  %193 = load double, ptr %25, align 8, !tbaa !11
  %194 = call double @sqrt(double noundef %193) #4
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = load double, ptr %195, align 8, !tbaa !11
  %197 = call double @sqrt(double noundef %196) #4
  %198 = fdiv double %194, %197
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  store double %198, ptr %199, align 8, !tbaa !11
  br label %200

200:                                              ; preds = %192, %168
  store i32 0, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %201

201:                                              ; preds = %200, %161, %72, %63
  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
  %202 = load i32, ptr %8, align 4
  ret i32 %202
}

; 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 = 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"

@.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 @dpoequb_(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 = xor i64 %11, -1
  %13 = getelementptr inbounds double, ptr %1, i64 %12
  %14 = getelementptr inbounds i8, ptr %3, i64 -8
  store i64 0, ptr %6, align 8, !tbaa !5
  %15 = load i64, ptr %0, align 8, !tbaa !5
  %16 = icmp slt i64 %15, 0
  br i1 %16, label %.thread, label %17

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

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

22:                                               ; preds = %17
  %23 = icmp eq i64 %15, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %22
  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

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

.lr.ph:                                           ; preds = %25
  %31 = add i64 %11, 1
  br label %32

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

._crit_edge:                                      ; preds = %32, %25
  %.0.lcssa = phi double [ %29, %25 ], [ %38, %32 ]
  %43 = fcmp ugt double %.0.lcssa, 0.000000e+00
  %.not7182 = icmp slt i64 %30, 1
  br i1 %43, label %51, label %44

44:                                               ; preds = %._crit_edge
  br i1 %.not7182, label %.loopexit, label %.lr.ph81

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

48:                                               ; preds = %.lr.ph81
  store i64 %.179, ptr %6, align 8, !tbaa !5
  br label %.loopexit

49:                                               ; preds = %.lr.ph81
  %50 = add nuw i64 %.179, 1
  %exitcond88.not = icmp eq i64 %.179, %30
  br i1 %exitcond88.not, label %.loopexit, label %.lr.ph81, !llvm.loop !13

51:                                               ; preds = %._crit_edge
  br i1 %.not7182, label %._crit_edge86, label %.lr.ph85

.lr.ph85:                                         ; preds = %51, %.lr.ph85
  %.283 = phi i64 [ %58, %.lr.ph85 ], [ 1, %51 ]
  %52 = getelementptr inbounds double, ptr %14, i64 %.283
  %53 = load double, ptr %52, align 8, !tbaa !9
  %54 = call double @log(double noundef %53) #5
  %55 = fmul double %28, %54
  %56 = fptosi double %55 to i64
  store i64 %56, ptr %9, align 8, !tbaa !5
  %57 = call double @pow_di(ptr noundef nonnull %10, ptr noundef nonnull %9) #5
  store double %57, ptr %52, align 8, !tbaa !9
  %58 = add nuw nsw i64 %.283, 1
  %.not71.not = icmp slt i64 %.283, %30
  br i1 %.not71.not, label %.lr.ph85, label %._crit_edge86, !llvm.loop !14

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

.loopexit:                                        ; preds = %49, %44, %._crit_edge86, %48, %24, %.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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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