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

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

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

51:                                               ; preds = %45
  br label %55

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

55:                                               ; preds = %52, %51
  %56 = phi i32 [ 1, %51 ], [ %54, %52 ]
  %57 = icmp slt i32 %47, %56
  br i1 %57, label %58, label %60

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

60:                                               ; preds = %58, %55
  br label %61

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

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

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

74:                                               ; preds = %70
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  store double 1.000000e+00, ptr %75, align 8, !tbaa !11
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %76, align 8, !tbaa !11
  store i32 1, ptr %26, align 4
  br label %218

77:                                               ; preds = %70
  %78 = call double @dlamch_(ptr noundef @.str.1)
  store double %78, ptr %22, align 8, !tbaa !11
  %79 = load double, ptr %22, align 8, !tbaa !11
  %80 = call double @log(double noundef %79) #4
  %81 = fdiv double -5.000000e-01, %80
  store double %81, ptr %25, align 8, !tbaa !11
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %17, align 4, !tbaa !9
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %struct.doublecomplex, ptr %84, i64 %86
  %88 = getelementptr inbounds %struct.doublecomplex, ptr %87, i32 0, i32 0
  %89 = load double, ptr %88, align 8, !tbaa !13
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 1
  store double %89, ptr %91, 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
  store double %94, ptr %23, align 8, !tbaa !11
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds double, ptr %95, i64 1
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  store double %97, ptr %98, align 8, !tbaa !11
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  store i32 %100, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %154, %77
  %102 = load i32, ptr %24, align 4, !tbaa !9
  %103 = load i32, ptr %17, align 4, !tbaa !9
  %104 = icmp sle i32 %102, %103
  br i1 %104, label %105, label %157

105:                                              ; preds = %101
  %106 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %106, ptr %18, align 4, !tbaa !9
  %107 = load i32, ptr %24, align 4, !tbaa !9
  %108 = load i32, ptr %24, align 4, !tbaa !9
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = mul nsw i32 %108, %109
  %111 = add nsw i32 %107, %110
  store i32 %111, ptr %19, align 4, !tbaa !9
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i32, ptr %19, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds %struct.doublecomplex, ptr %112, i64 %114
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %115, i32 0, i32 0
  %117 = load double, ptr %116, align 8, !tbaa !13
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %118, i64 %120
  store double %117, ptr %121, align 8, !tbaa !11
  %122 = load double, ptr %23, align 8, !tbaa !11
  store double %122, ptr %20, align 8, !tbaa !11
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = load i32, ptr %24, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !11
  store double %127, ptr %21, align 8, !tbaa !11
  %128 = load double, ptr %20, align 8, !tbaa !11
  %129 = load double, ptr %21, align 8, !tbaa !11
  %130 = fcmp ole double %128, %129
  br i1 %130, label %131, label %133

131:                                              ; preds = %105
  %132 = load double, ptr %20, align 8, !tbaa !11
  br label %135

133:                                              ; preds = %105
  %134 = load double, ptr %21, align 8, !tbaa !11
  br label %135

135:                                              ; preds = %133, %131
  %136 = phi double [ %132, %131 ], [ %134, %133 ]
  store double %136, ptr %23, align 8, !tbaa !11
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = load double, ptr %137, align 8, !tbaa !11
  store double %138, ptr %20, align 8, !tbaa !11
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = load i32, ptr %24, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !11
  store double %143, ptr %21, align 8, !tbaa !11
  %144 = load double, ptr %20, align 8, !tbaa !11
  %145 = load double, ptr %21, align 8, !tbaa !11
  %146 = fcmp oge double %144, %145
  br i1 %146, label %147, label %149

147:                                              ; preds = %135
  %148 = load double, ptr %20, align 8, !tbaa !11
  br label %151

149:                                              ; preds = %135
  %150 = load double, ptr %21, align 8, !tbaa !11
  br label %151

151:                                              ; preds = %149, %147
  %152 = phi double [ %148, %147 ], [ %150, %149 ]
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  store double %152, ptr %153, align 8, !tbaa !11
  br label %154

154:                                              ; preds = %151
  %155 = load i32, ptr %24, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %24, align 4, !tbaa !9
  br label %101, !llvm.loop !15

157:                                              ; preds = %101
  %158 = load double, ptr %23, align 8, !tbaa !11
  %159 = fcmp ole double %158, 0.000000e+00
  br i1 %159, label %160, label %182

160:                                              ; preds = %157
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = load i32, ptr %161, align 4, !tbaa !9
  store i32 %162, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %178, %160
  %164 = load i32, ptr %24, align 4, !tbaa !9
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = icmp sle i32 %164, %165
  br i1 %166, label %167, label %181

167:                                              ; preds = %163
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = load i32, ptr %24, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !11
  %173 = fcmp ole double %172, 0.000000e+00
  br i1 %173, label %174, label %177

174:                                              ; preds = %167
  %175 = load i32, ptr %24, align 4, !tbaa !9
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %175, ptr %176, align 4, !tbaa !9
  store i32 1, ptr %26, align 4
  br label %218

177:                                              ; preds = %167
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %24, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %24, align 4, !tbaa !9
  br label %163, !llvm.loop !17

181:                                              ; preds = %163
  br label %217

182:                                              ; preds = %157
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = load i32, ptr %183, align 4, !tbaa !9
  store i32 %184, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %206, %182
  %186 = load i32, ptr %24, align 4, !tbaa !9
  %187 = load i32, ptr %17, align 4, !tbaa !9
  %188 = icmp sle i32 %186, %187
  br i1 %188, label %189, label %209

189:                                              ; preds = %185
  %190 = load double, ptr %25, align 8, !tbaa !11
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = load i32, ptr %24, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds double, ptr %191, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !11
  %196 = call double @log(double noundef %195) #4
  %197 = fmul double %190, %196
  %198 = fptosi double %197 to i32
  store i32 %198, ptr %18, align 4, !tbaa !9
  %199 = load double, ptr %22, align 8, !tbaa !11
  %200 = load i32, ptr %18, align 4, !tbaa !9
  %201 = call double @dpow_ui(double noundef %199, i32 noundef %200)
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = load i32, ptr %24, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %202, i64 %204
  store double %201, ptr %205, align 8, !tbaa !11
  br label %206

206:                                              ; preds = %189
  %207 = load i32, ptr %24, align 4, !tbaa !9
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %24, align 4, !tbaa !9
  br label %185, !llvm.loop !18

209:                                              ; preds = %185
  %210 = load double, ptr %23, align 8, !tbaa !11
  %211 = call double @sqrt(double noundef %210) #4
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = load double, ptr %212, align 8, !tbaa !11
  %214 = call double @sqrt(double noundef %213) #4
  %215 = fdiv double %211, %214
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  store double %215, ptr %216, align 8, !tbaa !11
  br label %217

217:                                              ; preds = %209, %181
  store i32 1, ptr %26, align 4
  br label %218

218:                                              ; preds = %217, %174, %74, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  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 = !{!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 void @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 i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = add i32 %9, 1
  %narrow = xor i32 %9, -1
  %11 = sext i32 %narrow to i64
  %12 = getelementptr inbounds %struct.doublecomplex, ptr %1, i64 %11
  %13 = getelementptr inbounds i8, ptr %3, i64 -8
  store i32 0, ptr %6, align 4, !tbaa !5
  %14 = load i32, ptr %0, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %.thread, label %16

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

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

21:                                               ; preds = %16
  %22 = icmp eq i32 %14, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  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

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

.lr.ph.preheader:                                 ; preds = %24
  %30 = add nuw i32 %29, 1
  %wide.trip.count = zext i32 %30 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.07079 = phi double [ %28, %.lr.ph.preheader ], [ %38, %.lr.ph ]
  %31 = trunc nuw nsw i64 %indvars.iv to i32
  %32 = mul i32 %10, %31
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %struct.doublecomplex, ptr %12, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds double, ptr %13, i64 %indvars.iv
  store double %35, ptr %36, align 8, !tbaa !9
  %37 = fcmp ole double %.07079, %35
  %38 = select i1 %37, double %.07079, 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
  %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 %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %24
  %.070.lcssa = phi double [ %28, %24 ], [ %38, %.lr.ph ]
  %42 = fcmp ugt double %.070.lcssa, 0.000000e+00
  %.not7485 = icmp slt i32 %29, 1
  br i1 %42, label %51, label %43

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

.lr.ph84.preheader:                               ; preds = %43
  %44 = add nuw i32 %29, 1
  %wide.trip.count95 = zext i32 %44 to i64
  br label %.lr.ph84

.lr.ph84:                                         ; preds = %.lr.ph84.preheader, %50
  %indvars.iv92 = phi i64 [ 1, %.lr.ph84.preheader ], [ %indvars.iv.next93, %50 ]
  %45 = getelementptr inbounds double, ptr %13, i64 %indvars.iv92
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = fcmp ugt double %46, 0.000000e+00
  br i1 %47, label %50, label %48

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

50:                                               ; preds = %.lr.ph84
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond96.not = icmp eq i64 %indvars.iv.next93, %wide.trip.count95
  br i1 %exitcond96.not, label %.loopexit, label %.lr.ph84, !llvm.loop !15

51:                                               ; preds = %._crit_edge
  br i1 %.not7485, label %._crit_edge89, label %.lr.ph88.preheader

.lr.ph88.preheader:                               ; preds = %51
  %52 = add nuw i32 %29, 1
  %wide.trip.count100 = zext i32 %52 to i64
  br label %.lr.ph88

.lr.ph88:                                         ; preds = %.lr.ph88.preheader, %.lr.ph88
  %indvars.iv97 = phi i64 [ 1, %.lr.ph88.preheader ], [ %indvars.iv.next98, %.lr.ph88 ]
  %53 = getelementptr inbounds double, ptr %13, i64 %indvars.iv97
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = tail call double @log(double noundef %54) #5
  %56 = fmul double %27, %55
  %57 = fptosi double %56 to i32
  %58 = tail call double @dpow_ui(double noundef %25, i32 noundef %57)
  store double %58, ptr %53, align 8, !tbaa !9
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond101.not = icmp eq i64 %indvars.iv.next98, %wide.trip.count100
  br i1 %exitcond101.not, label %._crit_edge89, label %.lr.ph88, !llvm.loop !16

._crit_edge89:                                    ; preds = %.lr.ph88, %51
  %59 = tail call double @sqrt(double noundef %.070.lcssa) #5
  %60 = load double, ptr %5, align 8, !tbaa !9
  %61 = tail 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 = %50, %43, %._crit_edge89, %48, %23, %.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 = !{!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