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

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

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

37:                                               ; preds = %33
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -1, ptr %38, align 4, !tbaa !9
  br label %46

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

45:                                               ; preds = %43, %39
  br label %46

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

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

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

59:                                               ; preds = %55
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  store double 1.000000e+00, ptr %60, align 8, !tbaa !11
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %61, align 8, !tbaa !11
  store i32 1, ptr %23, align 4
  br label %254

62:                                               ; preds = %55
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.doublecomplex, ptr %63, i64 1
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %64, i32 0, i32 0
  %66 = load double, ptr %65, align 8, !tbaa !13
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %67, i64 1
  store double %66, ptr %68, align 8, !tbaa !11
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 1
  %71 = load double, ptr %70, align 8, !tbaa !11
  store double %71, ptr %19, align 8, !tbaa !11
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 1
  %74 = load double, ptr %73, align 8, !tbaa !11
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  store double %74, ptr %75, align 8, !tbaa !11
  %76 = load i32, ptr %21, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %136

78:                                               ; preds = %62
  store i32 1, ptr %22, align 4, !tbaa !9
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i32, ptr %79, align 4, !tbaa !9
  store i32 %80, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %20, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %132, %78
  %82 = load i32, ptr %20, align 4, !tbaa !9
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = icmp sle i32 %82, %83
  br i1 %84, label %85, label %135

85:                                               ; preds = %81
  %86 = load i32, ptr %20, align 4, !tbaa !9
  %87 = load i32, ptr %22, align 4, !tbaa !9
  %88 = add nsw i32 %87, %86
  store i32 %88, ptr %22, align 4, !tbaa !9
  %89 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %89, ptr %16, align 4, !tbaa !9
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %90, i64 %92
  %94 = getelementptr inbounds %struct.doublecomplex, ptr %93, i32 0, i32 0
  %95 = load double, ptr %94, align 8, !tbaa !13
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = load i32, ptr %20, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  store double %95, ptr %99, align 8, !tbaa !11
  %100 = load double, ptr %19, align 8, !tbaa !11
  store double %100, ptr %17, align 8, !tbaa !11
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = load i32, ptr %20, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %101, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !11
  store double %105, ptr %18, align 8, !tbaa !11
  %106 = load double, ptr %17, align 8, !tbaa !11
  %107 = load double, ptr %18, align 8, !tbaa !11
  %108 = fcmp ole double %106, %107
  br i1 %108, label %109, label %111

109:                                              ; preds = %85
  %110 = load double, ptr %17, align 8, !tbaa !11
  br label %113

111:                                              ; preds = %85
  %112 = load double, ptr %18, align 8, !tbaa !11
  br label %113

113:                                              ; preds = %111, %109
  %114 = phi double [ %110, %109 ], [ %112, %111 ]
  store double %114, ptr %19, align 8, !tbaa !11
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = load double, ptr %115, align 8, !tbaa !11
  store double %116, ptr %17, align 8, !tbaa !11
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %20, 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 %18, align 8, !tbaa !11
  %122 = load double, ptr %17, align 8, !tbaa !11
  %123 = load double, ptr %18, align 8, !tbaa !11
  %124 = fcmp oge double %122, %123
  br i1 %124, label %125, label %127

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

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

129:                                              ; preds = %127, %125
  %130 = phi double [ %126, %125 ], [ %128, %127 ]
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  store double %130, ptr %131, align 8, !tbaa !11
  br label %132

132:                                              ; preds = %129
  %133 = load i32, ptr %20, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %20, align 4, !tbaa !9
  br label %81, !llvm.loop !15

135:                                              ; preds = %81
  br label %198

136:                                              ; preds = %62
  store i32 1, ptr %22, align 4, !tbaa !9
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  store i32 %138, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %20, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %194, %136
  %140 = load i32, ptr %20, align 4, !tbaa !9
  %141 = load i32, ptr %15, align 4, !tbaa !9
  %142 = icmp sle i32 %140, %141
  br i1 %142, label %143, label %197

143:                                              ; preds = %139
  %144 = load i32, ptr %22, align 4, !tbaa !9
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = add nsw i32 %144, %146
  %148 = load i32, ptr %20, align 4, !tbaa !9
  %149 = sub nsw i32 %147, %148
  %150 = add nsw i32 %149, 2
  store i32 %150, ptr %22, align 4, !tbaa !9
  %151 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %151, ptr %16, align 4, !tbaa !9
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %152, i64 %154
  %156 = getelementptr inbounds %struct.doublecomplex, ptr %155, i32 0, i32 0
  %157 = load double, ptr %156, align 8, !tbaa !13
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  %159 = load i32, ptr %20, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  store double %157, ptr %161, align 8, !tbaa !11
  %162 = load double, ptr %19, align 8, !tbaa !11
  store double %162, ptr %17, align 8, !tbaa !11
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load i32, ptr %20, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %163, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !11
  store double %167, ptr %18, align 8, !tbaa !11
  %168 = load double, ptr %17, align 8, !tbaa !11
  %169 = load double, ptr %18, align 8, !tbaa !11
  %170 = fcmp ole double %168, %169
  br i1 %170, label %171, label %173

171:                                              ; preds = %143
  %172 = load double, ptr %17, align 8, !tbaa !11
  br label %175

173:                                              ; preds = %143
  %174 = load double, ptr %18, align 8, !tbaa !11
  br label %175

175:                                              ; preds = %173, %171
  %176 = phi double [ %172, %171 ], [ %174, %173 ]
  store double %176, ptr %19, align 8, !tbaa !11
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = load double, ptr %177, align 8, !tbaa !11
  store double %178, ptr %17, align 8, !tbaa !11
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = load i32, ptr %20, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %179, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !11
  store double %183, ptr %18, align 8, !tbaa !11
  %184 = load double, ptr %17, align 8, !tbaa !11
  %185 = load double, ptr %18, align 8, !tbaa !11
  %186 = fcmp oge double %184, %185
  br i1 %186, label %187, label %189

187:                                              ; preds = %175
  %188 = load double, ptr %17, align 8, !tbaa !11
  br label %191

189:                                              ; preds = %175
  %190 = load double, ptr %18, align 8, !tbaa !11
  br label %191

191:                                              ; preds = %189, %187
  %192 = phi double [ %188, %187 ], [ %190, %189 ]
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  store double %192, ptr %193, align 8, !tbaa !11
  br label %194

194:                                              ; preds = %191
  %195 = load i32, ptr %20, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %20, align 4, !tbaa !9
  br label %139, !llvm.loop !17

197:                                              ; preds = %139
  br label %198

198:                                              ; preds = %197, %135
  %199 = load double, ptr %19, align 8, !tbaa !11
  %200 = fcmp ole double %199, 0.000000e+00
  br i1 %200, label %201, label %223

201:                                              ; preds = %198
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  %203 = load i32, ptr %202, align 4, !tbaa !9
  store i32 %203, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %219, %201
  %205 = load i32, ptr %20, align 4, !tbaa !9
  %206 = load i32, ptr %15, align 4, !tbaa !9
  %207 = icmp sle i32 %205, %206
  br i1 %207, label %208, label %222

208:                                              ; preds = %204
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = load i32, ptr %20, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds double, ptr %209, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !11
  %214 = fcmp ole double %213, 0.000000e+00
  br i1 %214, label %215, label %218

215:                                              ; preds = %208
  %216 = load i32, ptr %20, align 4, !tbaa !9
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %216, ptr %217, align 4, !tbaa !9
  store i32 1, ptr %23, align 4
  br label %254

218:                                              ; preds = %208
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %20, align 4, !tbaa !9
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %20, align 4, !tbaa !9
  br label %204, !llvm.loop !18

222:                                              ; preds = %204
  br label %253

223:                                              ; preds = %198
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = load i32, ptr %224, align 4, !tbaa !9
  store i32 %225, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %242, %223
  %227 = load i32, ptr %20, align 4, !tbaa !9
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = icmp sle i32 %227, %228
  br i1 %229, label %230, label %245

230:                                              ; preds = %226
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = load i32, ptr %20, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds double, ptr %231, i64 %233
  %235 = load double, ptr %234, align 8, !tbaa !11
  %236 = call double @sqrt(double noundef %235) #4
  %237 = fdiv double 1.000000e+00, %236
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = load i32, ptr %20, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds double, ptr %238, i64 %240
  store double %237, ptr %241, align 8, !tbaa !11
  br label %242

242:                                              ; preds = %230
  %243 = load i32, ptr %20, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %20, align 4, !tbaa !9
  br label %226, !llvm.loop !19

245:                                              ; preds = %226
  %246 = load double, ptr %19, align 8, !tbaa !11
  %247 = call double @sqrt(double noundef %246) #4
  %248 = load ptr, ptr %13, align 8, !tbaa !5
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = call double @sqrt(double noundef %249) #4
  %251 = fdiv double %247, %250
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  store double %251, ptr %252, align 8, !tbaa !11
  br label %253

253:                                              ; preds = %245, %222
  store i32 1, ptr %23, align 4
  br label %254

254:                                              ; preds = %253, %215, %59, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  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 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 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 @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 = !{!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}
!19 = distinct !{!19, !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 [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 @zppequ_(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 -16
  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
  %.not94 = icmp eq i32 %13, 0
  br i1 %.not94, 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
  %.not95 = icmp eq i32 %.pr, 0
  br i1 %.not95, 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 !11
  store double %25, ptr %3, align 8, !tbaa !9
  store double %25, ptr %5, align 8, !tbaa !9
  %.not96108 = icmp eq i32 %15, 1
  br i1 %.not, label %39, label %26

26:                                               ; preds = %24
  br i1 %.not96108, label %.loopexit101, 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 ]
  %.0107 = phi i32 [ 1, %.lr.ph.preheader ], [ %29, %.lr.ph ]
  %.090105 = phi double [ %25, %.lr.ph.preheader ], [ %35, %.lr.ph ]
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = add nuw nsw i32 %.0107, %28
  %30 = zext nneg i32 %29 to i64
  %31 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  store double %32, ptr %33, align 8, !tbaa !9
  %34 = fcmp ole double %.090105, %32
  %35 = select i1 %34, double %.090105, 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 %.loopexit101, label %.lr.ph, !llvm.loop !13

39:                                               ; preds = %24
  br i1 %.not96108, label %.loopexit101, label %.lr.ph112

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

42:                                               ; preds = %.lr.ph112, %42
  %indvars.iv124 = phi i64 [ 2, %.lr.ph112 ], [ %indvars.iv.next125, %42 ]
  %.1111 = phi i32 [ 1, %.lr.ph112 ], [ %45, %42 ]
  %.191109 = phi double [ %25, %.lr.ph112 ], [ %51, %42 ]
  %43 = trunc nuw nsw i64 %indvars.iv124 to i32
  %44 = sub i32 %40, %43
  %45 = add i32 %44, %.1111
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds double, ptr %9, i64 %indvars.iv124
  store double %48, ptr %49, align 8, !tbaa !9
  %50 = fcmp ole double %.191109, %48
  %51 = select i1 %50, double %.191109, 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.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond128.not = icmp eq i64 %indvars.iv.next125, %wide.trip.count127
  br i1 %exitcond128.not, label %.loopexit101, label %42, !llvm.loop !15

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

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

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

.lr.ph116:                                        ; preds = %.loopexit101, %65
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %65 ], [ 1, %.loopexit101 ]
  %60 = getelementptr inbounds double, ptr %9, i64 %indvars.iv129
  %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.ph116
  %64 = trunc nuw nsw i64 %indvars.iv129 to i32
  store i32 %64, ptr %6, align 4, !tbaa !5
  br label %.loopexit

65:                                               ; preds = %.lr.ph116
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %exitcond133.not = icmp eq i64 %indvars.iv.next130, %wide.trip.count137
  br i1 %exitcond133.not, label %.loopexit, label %.lr.ph116, !llvm.loop !16

.lr.ph119:                                        ; preds = %.lr.ph119, %.lr.ph119.preheader.new
  %indvars.iv134 = phi i64 [ 1, %.lr.ph119.preheader.new ], [ %indvars.iv.next135.3, %.lr.ph119 ]
  %niter = phi i64 [ 0, %.lr.ph119.preheader.new ], [ %niter.next.3, %.lr.ph119 ]
  %66 = getelementptr inbounds double, ptr %9, i64 %indvars.iv134
  %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.iv134
  %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.iv134
  %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
  %gep151 = getelementptr inbounds double, ptr %invariant.gep150, i64 %indvars.iv134
  %77 = load double, ptr %gep151, align 8, !tbaa !9
  %78 = tail call double @sqrt(double noundef %77) #4
  %79 = fdiv double 1.000000e+00, %78
  store double %79, ptr %gep151, align 8, !tbaa !9
  %indvars.iv.next135.3 = add nuw nsw i64 %indvars.iv134, 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.ph119, !llvm.loop !17

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

.lr.ph119.epil:                                   ; preds = %._crit_edge.unr-lcssa, %.lr.ph119.epil
  %indvars.iv134.epil = phi i64 [ %indvars.iv.next135.epil, %.lr.ph119.epil ], [ %indvars.iv134.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph119.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %80 = getelementptr inbounds double, ptr %9, i64 %indvars.iv134.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.next135.epil = add nuw nsw i64 %indvars.iv134.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.ph119.epil, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph119.epil, %._crit_edge.unr-lcssa
  %84 = tail call double @sqrt(double noundef %.292) #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 = !{!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}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !19}
!19 = !{!"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