; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 void @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 ptr, align 8
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  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 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 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %27, ptr %15, align 4, !tbaa !9
  %28 = load i32, ptr %15, align 4, !tbaa !9
  %29 = mul nsw i32 %28, 1
  %30 = add nsw i32 1, %29
  store i32 %30, ptr %16, align 4, !tbaa !9
  %31 = load i32, ptr %16, align 4, !tbaa !9
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = sext i32 %31 to i64
  %34 = sub i64 0, %33
  %35 = getelementptr inbounds double, ptr %32, i64 %34
  store ptr %35, ptr %9, align 8, !tbaa !5
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i32 -1
  store ptr %37, ptr %11, align 8, !tbaa !5
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %38, align 4, !tbaa !9
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %42, label %44

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

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

50:                                               ; preds = %44
  br label %54

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

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

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

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

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

64:                                               ; preds = %60
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = sub nsw i32 0, %66
  store i32 %67, ptr %17, align 4, !tbaa !9
  %68 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %17, i32 noundef 7)
  store i32 1, ptr %25, align 4
  br label %212

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

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

76:                                               ; preds = %69
  %77 = call double @dlamch_(ptr noundef @.str.1)
  store double %77, ptr %21, align 8, !tbaa !11
  %78 = load double, ptr %21, 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 ptr, ptr %9, align 8, !tbaa !5
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %81, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !11
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds double, ptr %87, i64 1
  store double %86, ptr %88, align 8, !tbaa !11
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds double, ptr %89, i64 1
  %91 = load double, ptr %90, align 8, !tbaa !11
  store double %91, ptr %22, align 8, !tbaa !11
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds double, ptr %92, i64 1
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  store double %94, ptr %95, align 8, !tbaa !11
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  store i32 %97, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %23, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %148, %76
  %99 = load i32, ptr %23, align 4, !tbaa !9
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = icmp sle i32 %99, %100
  br i1 %101, label %102, label %151

102:                                              ; preds = %98
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i32, ptr %23, align 4, !tbaa !9
  %105 = load i32, ptr %23, align 4, !tbaa !9
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = mul nsw i32 %105, %106
  %108 = add nsw i32 %104, %107
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds double, ptr %103, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !11
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load i32, ptr %23, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds double, ptr %112, i64 %114
  store double %111, ptr %115, align 8, !tbaa !11
  %116 = load double, ptr %22, align 8, !tbaa !11
  store double %116, ptr %19, align 8, !tbaa !11
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %23, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !11
  store double %121, ptr %20, align 8, !tbaa !11
  %122 = load double, ptr %19, align 8, !tbaa !11
  %123 = load double, ptr %20, align 8, !tbaa !11
  %124 = fcmp ole double %122, %123
  br i1 %124, label %125, label %127

125:                                              ; preds = %102
  %126 = load double, ptr %19, align 8, !tbaa !11
  br label %129

127:                                              ; preds = %102
  %128 = load double, ptr %20, align 8, !tbaa !11
  br label %129

129:                                              ; preds = %127, %125
  %130 = phi double [ %126, %125 ], [ %128, %127 ]
  store double %130, ptr %22, align 8, !tbaa !11
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = load double, ptr %131, align 8, !tbaa !11
  store double %132, ptr %19, align 8, !tbaa !11
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load i32, ptr %23, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !11
  store double %137, ptr %20, align 8, !tbaa !11
  %138 = load double, ptr %19, align 8, !tbaa !11
  %139 = load double, ptr %20, align 8, !tbaa !11
  %140 = fcmp oge double %138, %139
  br i1 %140, label %141, label %143

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

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

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

148:                                              ; preds = %145
  %149 = load i32, ptr %23, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %23, align 4, !tbaa !9
  br label %98, !llvm.loop !13

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

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

157:                                              ; preds = %172, %154
  %158 = load i32, ptr %23, align 4, !tbaa !9
  %159 = load i32, ptr %17, align 4, !tbaa !9
  %160 = icmp sle i32 %158, %159
  br i1 %160, label %161, label %175

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

168:                                              ; preds = %161
  %169 = load i32, ptr %23, align 4, !tbaa !9
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %169, ptr %170, align 4, !tbaa !9
  store i32 1, ptr %25, align 4
  br label %212

171:                                              ; preds = %161
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %23, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %23, align 4, !tbaa !9
  br label %157, !llvm.loop !15

175:                                              ; preds = %157
  br label %211

176:                                              ; preds = %151
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = load i32, ptr %177, align 4, !tbaa !9
  store i32 %178, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %200, %176
  %180 = load i32, ptr %23, align 4, !tbaa !9
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = icmp sle i32 %180, %181
  br i1 %182, label %183, label %203

183:                                              ; preds = %179
  %184 = load double, ptr %24, align 8, !tbaa !11
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load i32, ptr %23, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds double, ptr %185, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = call double @log(double noundef %189) #4
  %191 = fmul double %184, %190
  %192 = fptosi double %191 to i32
  store i32 %192, ptr %18, align 4, !tbaa !9
  %193 = load double, ptr %21, align 8, !tbaa !11
  %194 = load i32, ptr %18, align 4, !tbaa !9
  %195 = call double @dpow_ui(double noundef %193, i32 noundef %194)
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load i32, ptr %23, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds double, ptr %196, i64 %198
  store double %195, ptr %199, align 8, !tbaa !11
  br label %200

200:                                              ; preds = %183
  %201 = load i32, ptr %23, align 4, !tbaa !9
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %23, align 4, !tbaa !9
  br label %179, !llvm.loop !16

203:                                              ; preds = %179
  %204 = load double, ptr %22, align 8, !tbaa !11
  %205 = call double @sqrt(double noundef %204) #4
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = call double @sqrt(double noundef %207) #4
  %209 = fdiv double %205, %208
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  store double %209, ptr %210, align 8, !tbaa !11
  br label %211

211:                                              ; preds = %203, %175
  store i32 1, ptr %25, align 4
  br label %212

212:                                              ; preds = %211, %168, %73, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 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
  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 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #2

declare double @dlamch_(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden double @dpow_ui(double noundef, i32 noundef) #0

; 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 = !{!"int", !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 void @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 i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %narrow = xor i32 %9, -1
  %10 = sext i32 %narrow to i64
  %11 = getelementptr inbounds double, ptr %1, i64 %10
  %12 = getelementptr inbounds i8, ptr %3, i64 -8
  store i32 0, ptr %6, align 4, !tbaa !5
  %13 = load i32, ptr %0, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 0
  br i1 %14, label %.thread, label %15

15:                                               ; preds = %7
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %13, i32 1)
  %17 = icmp slt i32 %16, %spec.select
  br i1 %17, label %.thread, label %20

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

20:                                               ; preds = %15
  %21 = icmp eq i32 %13, 0
  br i1 %21, label %22, label %23

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

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

.lr.ph:                                           ; preds = %23
  %29 = add i32 %9, 1
  %30 = add nuw i32 %28, 1
  %wide.trip.count = zext i32 %30 to i64
  br label %31

31:                                               ; preds = %.lr.ph, %31
  %indvars.iv = phi i64 [ 2, %.lr.ph ], [ %indvars.iv.next, %31 ]
  %.06877 = phi double [ %27, %.lr.ph ], [ %39, %31 ]
  %32 = trunc nuw nsw i64 %indvars.iv to i32
  %33 = mul i32 %29, %32
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds double, ptr %11, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds double, ptr %12, i64 %indvars.iv
  store double %36, ptr %37, align 8, !tbaa !9
  %38 = fcmp ole double %.06877, %36
  %39 = select i1 %38, double %.06877, double %36
  %40 = load double, ptr %5, align 8, !tbaa !9
  %41 = fcmp oge double %40, %36
  %42 = select i1 %41, double %40, double %36
  store double %42, ptr %5, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %31, !llvm.loop !11

._crit_edge:                                      ; preds = %31, %23
  %.068.lcssa = phi double [ %27, %23 ], [ %39, %31 ]
  %43 = fcmp ugt double %.068.lcssa, 0.000000e+00
  %.not7283 = icmp slt i32 %28, 1
  br i1 %43, label %52, label %44

44:                                               ; preds = %._crit_edge
  br i1 %.not7283, label %.loopexit, label %.lr.ph82.preheader

.lr.ph82.preheader:                               ; preds = %44
  %45 = add nuw i32 %28, 1
  %wide.trip.count93 = zext i32 %45 to i64
  br label %.lr.ph82

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %51
  %indvars.iv90 = phi i64 [ 1, %.lr.ph82.preheader ], [ %indvars.iv.next91, %51 ]
  %46 = getelementptr inbounds double, ptr %12, i64 %indvars.iv90
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = fcmp ugt double %47, 0.000000e+00
  br i1 %48, label %51, label %49

49:                                               ; preds = %.lr.ph82
  %50 = trunc nuw nsw i64 %indvars.iv90 to i32
  store i32 %50, ptr %6, align 4, !tbaa !5
  br label %.loopexit

51:                                               ; preds = %.lr.ph82
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next91, %wide.trip.count93
  br i1 %exitcond94.not, label %.loopexit, label %.lr.ph82, !llvm.loop !13

52:                                               ; preds = %._crit_edge
  br i1 %.not7283, label %._crit_edge87, label %.lr.ph86.preheader

.lr.ph86.preheader:                               ; preds = %52
  %53 = add nuw i32 %28, 1
  %wide.trip.count98 = zext i32 %53 to i64
  br label %.lr.ph86

.lr.ph86:                                         ; preds = %.lr.ph86.preheader, %.lr.ph86
  %indvars.iv95 = phi i64 [ 1, %.lr.ph86.preheader ], [ %indvars.iv.next96, %.lr.ph86 ]
  %54 = getelementptr inbounds double, ptr %12, i64 %indvars.iv95
  %55 = load double, ptr %54, align 8, !tbaa !9
  %56 = tail call double @log(double noundef %55) #5
  %57 = fmul double %26, %56
  %58 = fptosi double %57 to i32
  %59 = tail call double @dpow_ui(double noundef %24, i32 noundef %58)
  store double %59, ptr %54, align 8, !tbaa !9
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond99.not = icmp eq i64 %indvars.iv.next96, %wide.trip.count98
  br i1 %exitcond99.not, label %._crit_edge87, label %.lr.ph86, !llvm.loop !14

._crit_edge87:                                    ; preds = %.lr.ph86, %52
  %60 = tail call double @sqrt(double noundef %.068.lcssa) #5
  %61 = load double, ptr %5, align 8, !tbaa !9
  %62 = tail call double @sqrt(double noundef %61) #5
  %63 = fdiv double %60, %62
  store double %63, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %51, %44, %._crit_edge87, %49, %22, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  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 @xerbla_(ptr noundef, ptr noundef, i32 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

; Function Attrs: nounwind uwtable
declare hidden double @dpow_ui(double noundef, i32 noundef) local_unnamed_addr #0

; 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 i32 @llvm.umax.i32(i32, i32) #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 = !{!"int", !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