; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dppequ)

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

; Function Attrs: nounwind uwtable
define dso_local void @dppequ_(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 double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = 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 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 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %23, i32 -1
  store ptr %24, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds double, ptr %25, i32 -1
  store ptr %26, ptr %10, align 8, !tbaa !5
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %27, align 4, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = call i32 @lsame_(ptr noundef %28, ptr noundef @.str)
  store i32 %29, ptr %20, align 4, !tbaa !9
  %30 = load i32, ptr %20, align 4, !tbaa !9
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %38, label %32

32:                                               ; preds = %7
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = call i32 @lsame_(ptr noundef %33, ptr noundef @.str.1)
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %38, label %36

36:                                               ; preds = %32
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -1, ptr %37, align 4, !tbaa !9
  br label %45

38:                                               ; preds = %32, %7
  %39 = load ptr, ptr %9, 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 = %38
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -2, ptr %43, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %42, %38
  br label %45

45:                                               ; preds = %44, %36
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %54

49:                                               ; preds = %45
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = sub nsw i32 0, %51
  store i32 %52, ptr %15, align 4, !tbaa !9
  %53 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %15, i32 noundef 6)
  store i32 1, ptr %22, align 4
  br label %248

54:                                               ; preds = %45
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %54
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  store double 1.000000e+00, ptr %59, align 8, !tbaa !11
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %60, align 8, !tbaa !11
  store i32 1, ptr %22, align 4
  br label %248

61:                                               ; preds = %54
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 1
  %64 = load double, ptr %63, align 8, !tbaa !11
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 1
  store double %64, ptr %66, align 8, !tbaa !11
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %67, i64 1
  %69 = load double, ptr %68, align 8, !tbaa !11
  store double %69, ptr %18, align 8, !tbaa !11
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i64 1
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  store double %72, ptr %73, align 8, !tbaa !11
  %74 = load i32, ptr %20, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %132

76:                                               ; preds = %61
  store i32 1, ptr %21, align 4, !tbaa !9
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  store i32 %78, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %19, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %128, %76
  %80 = load i32, ptr %19, align 4, !tbaa !9
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = icmp sle i32 %80, %81
  br i1 %82, label %83, label %131

83:                                               ; preds = %79
  %84 = load i32, ptr %19, align 4, !tbaa !9
  %85 = load i32, ptr %21, align 4, !tbaa !9
  %86 = add nsw i32 %85, %84
  store i32 %86, ptr %21, align 4, !tbaa !9
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = load i32, ptr %21, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %87, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !11
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = load i32, ptr %19, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %92, i64 %94
  store double %91, ptr %95, align 8, !tbaa !11
  %96 = load double, ptr %18, align 8, !tbaa !11
  store double %96, ptr %16, align 8, !tbaa !11
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = load i32, ptr %19, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %97, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !11
  store double %101, ptr %17, align 8, !tbaa !11
  %102 = load double, ptr %16, align 8, !tbaa !11
  %103 = load double, ptr %17, align 8, !tbaa !11
  %104 = fcmp ole double %102, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %83
  %106 = load double, ptr %16, align 8, !tbaa !11
  br label %109

107:                                              ; preds = %83
  %108 = load double, ptr %17, align 8, !tbaa !11
  br label %109

109:                                              ; preds = %107, %105
  %110 = phi double [ %106, %105 ], [ %108, %107 ]
  store double %110, ptr %18, align 8, !tbaa !11
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = load double, ptr %111, align 8, !tbaa !11
  store double %112, ptr %16, align 8, !tbaa !11
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load i32, ptr %19, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %113, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !11
  store double %117, ptr %17, align 8, !tbaa !11
  %118 = load double, ptr %16, align 8, !tbaa !11
  %119 = load double, ptr %17, align 8, !tbaa !11
  %120 = fcmp oge double %118, %119
  br i1 %120, label %121, label %123

121:                                              ; preds = %109
  %122 = load double, ptr %16, align 8, !tbaa !11
  br label %125

123:                                              ; preds = %109
  %124 = load double, ptr %17, align 8, !tbaa !11
  br label %125

125:                                              ; preds = %123, %121
  %126 = phi double [ %122, %121 ], [ %124, %123 ]
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  store double %126, ptr %127, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %125
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %19, align 4, !tbaa !9
  br label %79, !llvm.loop !13

131:                                              ; preds = %79
  br label %192

132:                                              ; preds = %61
  store i32 1, ptr %21, align 4, !tbaa !9
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  store i32 %134, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %19, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %188, %132
  %136 = load i32, ptr %19, align 4, !tbaa !9
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = icmp sle i32 %136, %137
  br i1 %138, label %139, label %191

139:                                              ; preds = %135
  %140 = load i32, ptr %21, align 4, !tbaa !9
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = add nsw i32 %140, %142
  %144 = load i32, ptr %19, align 4, !tbaa !9
  %145 = sub nsw i32 %143, %144
  %146 = add nsw i32 %145, 2
  store i32 %146, ptr %21, align 4, !tbaa !9
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = load i32, ptr %21, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %147, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !11
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = load i32, ptr %19, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds double, ptr %152, i64 %154
  store double %151, ptr %155, align 8, !tbaa !11
  %156 = load double, ptr %18, align 8, !tbaa !11
  store double %156, ptr %16, align 8, !tbaa !11
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = load i32, ptr %19, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds double, ptr %157, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !11
  store double %161, ptr %17, align 8, !tbaa !11
  %162 = load double, ptr %16, align 8, !tbaa !11
  %163 = load double, ptr %17, align 8, !tbaa !11
  %164 = fcmp ole double %162, %163
  br i1 %164, label %165, label %167

165:                                              ; preds = %139
  %166 = load double, ptr %16, align 8, !tbaa !11
  br label %169

167:                                              ; preds = %139
  %168 = load double, ptr %17, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %167, %165
  %170 = phi double [ %166, %165 ], [ %168, %167 ]
  store double %170, ptr %18, align 8, !tbaa !11
  %171 = load ptr, ptr %13, align 8, !tbaa !5
  %172 = load double, ptr %171, align 8, !tbaa !11
  store double %172, ptr %16, align 8, !tbaa !11
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = load i32, ptr %19, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !11
  store double %177, ptr %17, align 8, !tbaa !11
  %178 = load double, ptr %16, align 8, !tbaa !11
  %179 = load double, ptr %17, align 8, !tbaa !11
  %180 = fcmp oge double %178, %179
  br i1 %180, label %181, label %183

181:                                              ; preds = %169
  %182 = load double, ptr %16, align 8, !tbaa !11
  br label %185

183:                                              ; preds = %169
  %184 = load double, ptr %17, align 8, !tbaa !11
  br label %185

185:                                              ; preds = %183, %181
  %186 = phi double [ %182, %181 ], [ %184, %183 ]
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  store double %186, ptr %187, align 8, !tbaa !11
  br label %188

188:                                              ; preds = %185
  %189 = load i32, ptr %19, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %19, align 4, !tbaa !9
  br label %135, !llvm.loop !15

191:                                              ; preds = %135
  br label %192

192:                                              ; preds = %191, %131
  %193 = load double, ptr %18, align 8, !tbaa !11
  %194 = fcmp ole double %193, 0.000000e+00
  br i1 %194, label %195, label %217

195:                                              ; preds = %192
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = load i32, ptr %196, align 4, !tbaa !9
  store i32 %197, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %213, %195
  %199 = load i32, ptr %19, align 4, !tbaa !9
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = icmp sle i32 %199, %200
  br i1 %201, label %202, label %216

202:                                              ; preds = %198
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = load i32, ptr %19, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds double, ptr %203, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = fcmp ole double %207, 0.000000e+00
  br i1 %208, label %209, label %212

209:                                              ; preds = %202
  %210 = load i32, ptr %19, align 4, !tbaa !9
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %210, ptr %211, align 4, !tbaa !9
  store i32 1, ptr %22, align 4
  br label %248

212:                                              ; preds = %202
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %19, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %19, align 4, !tbaa !9
  br label %198, !llvm.loop !16

216:                                              ; preds = %198
  br label %247

217:                                              ; preds = %192
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = load i32, ptr %218, align 4, !tbaa !9
  store i32 %219, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %236, %217
  %221 = load i32, ptr %19, align 4, !tbaa !9
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = icmp sle i32 %221, %222
  br i1 %223, label %224, label %239

224:                                              ; preds = %220
  %225 = load ptr, ptr %11, align 8, !tbaa !5
  %226 = load i32, ptr %19, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds double, ptr %225, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !11
  %230 = call double @sqrt(double noundef %229) #4
  %231 = fdiv double 1.000000e+00, %230
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = load i32, ptr %19, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %232, i64 %234
  store double %231, ptr %235, align 8, !tbaa !11
  br label %236

236:                                              ; preds = %224
  %237 = load i32, ptr %19, align 4, !tbaa !9
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %19, align 4, !tbaa !9
  br label %220, !llvm.loop !17

239:                                              ; preds = %220
  %240 = load double, ptr %18, align 8, !tbaa !11
  %241 = call double @sqrt(double noundef %240) #4
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  %243 = load double, ptr %242, align 8, !tbaa !11
  %244 = call double @sqrt(double noundef %243) #4
  %245 = fdiv double %241, %244
  %246 = load ptr, ptr %12, align 8, !tbaa !5
  store double %245, ptr %246, align 8, !tbaa !11
  br label %247

247:                                              ; preds = %239, %216
  store i32 1, ptr %22, align 4
  br label %248

248:                                              ; preds = %247, %209, %58, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  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 @lsame_(ptr noundef, ptr noundef) #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 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 = !{!"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}
!17 = distinct !{!17, !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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dppequ_(ptr noundef %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 %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %9 = getelementptr inbounds i8, ptr %3, i64 -8
  %10 = getelementptr inbounds i8, ptr %2, i64 -8
  store i32 0, ptr %6, align 4, !tbaa !5
  %11 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %12, label %14

12:                                               ; preds = %7
  %13 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not92 = icmp eq i32 %13, 0
  br i1 %.not92, label %.thread.sink.split, label %14

14:                                               ; preds = %12, %7
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 0
  br i1 %16, label %.thread.sink.split, label %17

17:                                               ; preds = %14
  %.pr = load i32, ptr %6, align 4, !tbaa !5
  %.not93 = icmp eq i32 %.pr, 0
  br i1 %.not93, label %21, label %.thread

.thread.sink.split:                               ; preds = %14, %12
  %.sink = phi i32 [ -1, %12 ], [ -2, %14 ]
  store i32 %.sink, ptr %6, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %17
  %18 = phi i32 [ %.pr, %17 ], [ %.sink, %.thread.sink.split ]
  %19 = sub nsw i32 0, %18
  store i32 %19, ptr %8, align 4, !tbaa !5
  %20 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %8, i32 noundef 6) #4
  br label %.loopexit

21:                                               ; preds = %17
  %22 = icmp eq i32 %15, 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 = load double, ptr %2, align 8, !tbaa !9
  store double %25, ptr %3, align 8, !tbaa !9
  store double %25, ptr %5, align 8, !tbaa !9
  %.not94106 = icmp eq i32 %15, 1
  br i1 %.not, label %39, label %26

26:                                               ; preds = %24
  br i1 %.not94106, label %.loopexit99, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %26
  %27 = add nuw i32 %15, 1
  %wide.trip.count = zext i32 %27 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 ]
  %.0105 = phi i32 [ 1, %.lr.ph.preheader ], [ %29, %.lr.ph ]
  %.088103 = phi double [ %25, %.lr.ph.preheader ], [ %35, %.lr.ph ]
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = add nuw nsw i32 %.0105, %28
  %30 = zext nneg i32 %29 to i64
  %31 = getelementptr inbounds double, ptr %10, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  store double %32, ptr %33, align 8, !tbaa !9
  %34 = fcmp ole double %.088103, %32
  %35 = select i1 %34, double %.088103, double %32
  %36 = load double, ptr %5, align 8, !tbaa !9
  %37 = fcmp oge double %36, %32
  %38 = select i1 %37, double %36, double %32
  store double %38, 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 %.loopexit99, label %.lr.ph, !llvm.loop !11

39:                                               ; preds = %24
  br i1 %.not94106, label %.loopexit99, label %.lr.ph110

.lr.ph110:                                        ; preds = %39
  %40 = add nuw i32 %15, 2
  %41 = add nuw i32 %15, 1
  %wide.trip.count125 = zext i32 %41 to i64
  br label %42

42:                                               ; preds = %.lr.ph110, %42
  %indvars.iv122 = phi i64 [ 2, %.lr.ph110 ], [ %indvars.iv.next123, %42 ]
  %.1109 = phi i32 [ 1, %.lr.ph110 ], [ %45, %42 ]
  %.189107 = phi double [ %25, %.lr.ph110 ], [ %51, %42 ]
  %43 = trunc nuw nsw i64 %indvars.iv122 to i32
  %44 = sub i32 %40, %43
  %45 = add i32 %44, %.1109
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %10, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds double, ptr %9, i64 %indvars.iv122
  store double %48, ptr %49, align 8, !tbaa !9
  %50 = fcmp ole double %.189107, %48
  %51 = select i1 %50, double %.189107, double %48
  %52 = load double, ptr %5, align 8, !tbaa !9
  %53 = fcmp oge double %52, %48
  %54 = select i1 %53, double %52, double %48
  store double %54, ptr %5, align 8, !tbaa !9
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next123, %wide.trip.count125
  br i1 %exitcond126.not, label %.loopexit99, label %42, !llvm.loop !13

.loopexit99:                                      ; preds = %.lr.ph, %42, %26, %39
  %.290 = phi double [ %25, %39 ], [ %25, %26 ], [ %51, %42 ], [ %35, %.lr.ph ]
  %55 = fcmp ugt double %.290, 0.000000e+00
  %56 = add nuw i32 %15, 1
  %wide.trip.count135 = zext i32 %56 to i64
  br i1 %55, label %.lr.ph117.preheader, label %.lr.ph114

.lr.ph117.preheader:                              ; preds = %.loopexit99
  %57 = zext nneg i32 %15 to i64
  %58 = add nsw i64 %wide.trip.count135, -2
  %xtraiter = and i64 %57, 3
  %59 = icmp ult i64 %58, 3
  br i1 %59, label %._crit_edge.unr-lcssa, label %.lr.ph117.preheader.new

.lr.ph117.preheader.new:                          ; preds = %.lr.ph117.preheader
  %unroll_iter = and i64 %57, 2147483644
  %invariant.gep = getelementptr inbounds i8, ptr %9, i64 16
  %invariant.gep148 = getelementptr inbounds i8, ptr %9, i64 24
  br label %.lr.ph117

.lr.ph114:                                        ; preds = %.loopexit99, %65
  %indvars.iv127 = phi i64 [ %indvars.iv.next128, %65 ], [ 1, %.loopexit99 ]
  %60 = getelementptr inbounds double, ptr %9, i64 %indvars.iv127
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = fcmp ugt double %61, 0.000000e+00
  br i1 %62, label %65, label %63

63:                                               ; preds = %.lr.ph114
  %64 = trunc nuw nsw i64 %indvars.iv127 to i32
  store i32 %64, ptr %6, align 4, !tbaa !5
  br label %.loopexit

65:                                               ; preds = %.lr.ph114
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next128, %wide.trip.count135
  br i1 %exitcond131.not, label %.loopexit, label %.lr.ph114, !llvm.loop !14

.lr.ph117:                                        ; preds = %.lr.ph117, %.lr.ph117.preheader.new
  %indvars.iv132 = phi i64 [ 1, %.lr.ph117.preheader.new ], [ %indvars.iv.next133.3, %.lr.ph117 ]
  %niter = phi i64 [ 0, %.lr.ph117.preheader.new ], [ %niter.next.3, %.lr.ph117 ]
  %66 = getelementptr inbounds double, ptr %9, i64 %indvars.iv132
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = tail call double @sqrt(double noundef %67) #4
  %69 = fdiv double 1.000000e+00, %68
  store double %69, ptr %66, align 8, !tbaa !9
  %70 = getelementptr double, ptr %3, i64 %indvars.iv132
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = tail call double @sqrt(double noundef %71) #4
  %73 = fdiv double 1.000000e+00, %72
  store double %73, ptr %70, align 8, !tbaa !9
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv132
  %74 = load double, ptr %gep, align 8, !tbaa !9
  %75 = tail call double @sqrt(double noundef %74) #4
  %76 = fdiv double 1.000000e+00, %75
  store double %76, ptr %gep, align 8, !tbaa !9
  %gep149 = getelementptr inbounds double, ptr %invariant.gep148, i64 %indvars.iv132
  %77 = load double, ptr %gep149, align 8, !tbaa !9
  %78 = tail call double @sqrt(double noundef %77) #4
  %79 = fdiv double 1.000000e+00, %78
  store double %79, ptr %gep149, align 8, !tbaa !9
  %indvars.iv.next133.3 = add nuw nsw i64 %indvars.iv132, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph117, !llvm.loop !15

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph117, %.lr.ph117.preheader
  %indvars.iv132.unr = phi i64 [ 1, %.lr.ph117.preheader ], [ %indvars.iv.next133.3, %.lr.ph117 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph117.epil

.lr.ph117.epil:                                   ; preds = %._crit_edge.unr-lcssa, %.lr.ph117.epil
  %indvars.iv132.epil = phi i64 [ %indvars.iv.next133.epil, %.lr.ph117.epil ], [ %indvars.iv132.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph117.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %80 = getelementptr inbounds double, ptr %9, i64 %indvars.iv132.epil
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = tail call double @sqrt(double noundef %81) #4
  %83 = fdiv double 1.000000e+00, %82
  store double %83, ptr %80, align 8, !tbaa !9
  %indvars.iv.next133.epil = add nuw nsw i64 %indvars.iv132.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph117.epil, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph117.epil, %._crit_edge.unr-lcssa
  %84 = tail call double @sqrt(double noundef %.290) #4
  %85 = load double, ptr %5, align 8, !tbaa !9
  %86 = tail call double @sqrt(double noundef %85) #4
  %87 = fdiv double %84, %86
  store double %87, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %65, %._crit_edge, %63, %23, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  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 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 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

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 = { 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}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}


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