; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i32 @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 i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = getelementptr inbounds double, ptr %25, i32 -1
  store ptr %26, ptr %12, align 8, !tbaa !5
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.doublecomplex, ptr %27, i32 -1
  store ptr %28, ptr %11, align 8, !tbaa !5
  %29 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 0, ptr %29, align 8, !tbaa !9
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call i64 @lsame_(ptr noundef %30, ptr noundef @.str)
  store i64 %31, ptr %23, align 8, !tbaa !9
  %32 = load i64, ptr %23, align 8, !tbaa !9
  %33 = icmp ne i64 %32, 0
  br i1 %33, label %40, label %34

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

38:                                               ; preds = %34
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -1, ptr %39, align 8, !tbaa !9
  br label %47

40:                                               ; preds = %34, %7
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = icmp slt i64 %42, 0
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -2, ptr %45, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %44, %40
  br label %47

47:                                               ; preds = %46, %38
  %48 = load ptr, ptr %15, align 8, !tbaa !5
  %49 = load i64, ptr %48, align 8, !tbaa !9
  %50 = icmp ne i64 %49, 0
  br i1 %50, label %51, label %56

51:                                               ; preds = %47
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = sub nsw i64 0, %53
  store i64 %54, ptr %16, align 8, !tbaa !9
  %55 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %16)
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %244

56:                                               ; preds = %47
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = icmp eq i64 %58, 0
  br i1 %59, label %60, label %63

60:                                               ; preds = %56
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %61, align 8, !tbaa !11
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %62, align 8, !tbaa !11
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %244

63:                                               ; preds = %56
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %64, i64 1
  %66 = getelementptr inbounds %struct.doublecomplex, ptr %65, i32 0, i32 0
  %67 = load double, ptr %66, align 8, !tbaa !13
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 1
  store double %67, ptr %69, align 8, !tbaa !11
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i64 1
  %72 = load double, ptr %71, align 8, !tbaa !11
  store double %72, ptr %22, align 8, !tbaa !11
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 1
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  store double %75, ptr %76, align 8, !tbaa !11
  %77 = load i64, ptr %23, align 8, !tbaa !9
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %79, label %133

79:                                               ; preds = %63
  store i64 1, ptr %21, align 8, !tbaa !9
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load i64, ptr %80, align 8, !tbaa !9
  store i64 %81, ptr %16, align 8, !tbaa !9
  store i64 2, ptr %20, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %129, %79
  %83 = load i64, ptr %20, align 8, !tbaa !9
  %84 = load i64, ptr %16, align 8, !tbaa !9
  %85 = icmp sle i64 %83, %84
  br i1 %85, label %86, label %132

86:                                               ; preds = %82
  %87 = load i64, ptr %20, align 8, !tbaa !9
  %88 = load i64, ptr %21, align 8, !tbaa !9
  %89 = add nsw i64 %88, %87
  store i64 %89, ptr %21, align 8, !tbaa !9
  %90 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %90, ptr %17, align 8, !tbaa !9
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load i64, ptr %17, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %91, 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 %12, align 8, !tbaa !5
  %97 = load i64, ptr %20, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  store double %95, ptr %98, align 8, !tbaa !11
  %99 = load double, ptr %22, align 8, !tbaa !11
  store double %99, ptr %18, align 8, !tbaa !11
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load i64, ptr %20, align 8, !tbaa !9
  %102 = getelementptr inbounds double, ptr %100, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  store double %103, ptr %19, align 8, !tbaa !11
  %104 = load double, ptr %18, align 8, !tbaa !11
  %105 = load double, ptr %19, align 8, !tbaa !11
  %106 = fcmp ole double %104, %105
  br i1 %106, label %107, label %109

107:                                              ; preds = %86
  %108 = load double, ptr %18, align 8, !tbaa !11
  br label %111

109:                                              ; preds = %86
  %110 = load double, ptr %19, align 8, !tbaa !11
  br label %111

111:                                              ; preds = %109, %107
  %112 = phi double [ %108, %107 ], [ %110, %109 ]
  store double %112, ptr %22, align 8, !tbaa !11
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load double, ptr %113, align 8, !tbaa !11
  store double %114, ptr %18, align 8, !tbaa !11
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load i64, ptr %20, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %115, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !11
  store double %118, ptr %19, align 8, !tbaa !11
  %119 = load double, ptr %18, align 8, !tbaa !11
  %120 = load double, ptr %19, align 8, !tbaa !11
  %121 = fcmp oge double %119, %120
  br i1 %121, label %122, label %124

122:                                              ; preds = %111
  %123 = load double, ptr %18, align 8, !tbaa !11
  br label %126

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

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

129:                                              ; preds = %126
  %130 = load i64, ptr %20, align 8, !tbaa !9
  %131 = add nsw i64 %130, 1
  store i64 %131, ptr %20, align 8, !tbaa !9
  br label %82, !llvm.loop !15

132:                                              ; preds = %82
  br label %191

133:                                              ; preds = %63
  store i64 1, ptr %21, align 8, !tbaa !9
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = load i64, ptr %134, align 8, !tbaa !9
  store i64 %135, ptr %16, align 8, !tbaa !9
  store i64 2, ptr %20, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %187, %133
  %137 = load i64, ptr %20, align 8, !tbaa !9
  %138 = load i64, ptr %16, align 8, !tbaa !9
  %139 = icmp sle i64 %137, %138
  br i1 %139, label %140, label %190

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

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

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

169:                                              ; preds = %167, %165
  %170 = phi double [ %166, %165 ], [ %168, %167 ]
  store double %170, ptr %22, align 8, !tbaa !11
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = load double, ptr %171, align 8, !tbaa !11
  store double %172, ptr %18, align 8, !tbaa !11
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = load i64, ptr %20, align 8, !tbaa !9
  %175 = getelementptr inbounds double, ptr %173, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !11
  store double %176, ptr %19, align 8, !tbaa !11
  %177 = load double, ptr %18, align 8, !tbaa !11
  %178 = load double, ptr %19, align 8, !tbaa !11
  %179 = fcmp oge double %177, %178
  br i1 %179, label %180, label %182

180:                                              ; preds = %169
  %181 = load double, ptr %18, align 8, !tbaa !11
  br label %184

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

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

187:                                              ; preds = %184
  %188 = load i64, ptr %20, align 8, !tbaa !9
  %189 = add nsw i64 %188, 1
  store i64 %189, ptr %20, align 8, !tbaa !9
  br label %136, !llvm.loop !17

190:                                              ; preds = %136
  br label %191

191:                                              ; preds = %190, %132
  %192 = load double, ptr %22, align 8, !tbaa !11
  %193 = fcmp ole double %192, 0.000000e+00
  br i1 %193, label %194, label %215

194:                                              ; preds = %191
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  %196 = load i64, ptr %195, align 8, !tbaa !9
  store i64 %196, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %197

197:                                              ; preds = %211, %194
  %198 = load i64, ptr %20, align 8, !tbaa !9
  %199 = load i64, ptr %16, align 8, !tbaa !9
  %200 = icmp sle i64 %198, %199
  br i1 %200, label %201, label %214

201:                                              ; preds = %197
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = load i64, ptr %20, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !11
  %206 = fcmp ole double %205, 0.000000e+00
  br i1 %206, label %207, label %210

207:                                              ; preds = %201
  %208 = load i64, ptr %20, align 8, !tbaa !9
  %209 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %208, ptr %209, align 8, !tbaa !9
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %244

210:                                              ; preds = %201
  br label %211

211:                                              ; preds = %210
  %212 = load i64, ptr %20, align 8, !tbaa !9
  %213 = add nsw i64 %212, 1
  store i64 %213, ptr %20, align 8, !tbaa !9
  br label %197, !llvm.loop !18

214:                                              ; preds = %197
  br label %243

215:                                              ; preds = %191
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = load i64, ptr %216, align 8, !tbaa !9
  store i64 %217, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %218

218:                                              ; preds = %232, %215
  %219 = load i64, ptr %20, align 8, !tbaa !9
  %220 = load i64, ptr %16, align 8, !tbaa !9
  %221 = icmp sle i64 %219, %220
  br i1 %221, label %222, label %235

222:                                              ; preds = %218
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  %224 = load i64, ptr %20, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !11
  %227 = call double @sqrt(double noundef %226) #4
  %228 = fdiv double 1.000000e+00, %227
  %229 = load ptr, ptr %12, align 8, !tbaa !5
  %230 = load i64, ptr %20, align 8, !tbaa !9
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  store double %228, ptr %231, align 8, !tbaa !11
  br label %232

232:                                              ; preds = %222
  %233 = load i64, ptr %20, align 8, !tbaa !9
  %234 = add nsw i64 %233, 1
  store i64 %234, ptr %20, align 8, !tbaa !9
  br label %218, !llvm.loop !19

235:                                              ; preds = %218
  %236 = load double, ptr %22, align 8, !tbaa !11
  %237 = call double @sqrt(double noundef %236) #4
  %238 = load ptr, ptr %14, align 8, !tbaa !5
  %239 = load double, ptr %238, align 8, !tbaa !11
  %240 = call double @sqrt(double noundef %239) #4
  %241 = fdiv double %237, %240
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  store double %241, ptr %242, align 8, !tbaa !11
  br label %243

243:                                              ; preds = %235, %214
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %244

244:                                              ; preds = %243, %207, %60, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %245 = load i32, ptr %8, align 4
  ret i32 %245
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i64 @lsame_(ptr noundef, ptr noundef) #2

declare i32 @xerbla_(ptr noundef, ptr noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!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 noundef i32 @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 i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %9 = getelementptr inbounds i8, ptr %3, i64 -8
  %10 = getelementptr inbounds i8, ptr %2, i64 -16
  store i64 0, ptr %6, align 8, !tbaa !5
  %11 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %12, label %14

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

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

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

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

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

21:                                               ; preds = %17
  %22 = icmp eq i64 %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
  %.not97109 = icmp eq i64 %15, 1
  br i1 %.not, label %37, label %26

26:                                               ; preds = %24
  br i1 %.not97109, label %.loopexit102, label %.lr.ph

.lr.ph:                                           ; preds = %26, %.lr.ph
  %.089108 = phi double [ %32, %.lr.ph ], [ %25, %26 ]
  %.090107 = phi i64 [ %27, %.lr.ph ], [ 1, %26 ]
  %.092106 = phi i64 [ %36, %.lr.ph ], [ 2, %26 ]
  %27 = add nuw nsw i64 %.090107, %.092106
  %28 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %27
  %29 = load double, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds double, ptr %9, i64 %.092106
  store double %29, ptr %30, align 8, !tbaa !9
  %31 = fcmp ole double %.089108, %29
  %32 = select i1 %31, double %.089108, double %29
  %33 = load double, ptr %5, align 8, !tbaa !9
  %34 = fcmp oge double %33, %29
  %35 = select i1 %34, double %33, double %29
  store double %35, ptr %5, align 8, !tbaa !9
  %36 = add nuw i64 %.092106, 1
  %exitcond.not = icmp eq i64 %.092106, %15
  br i1 %exitcond.not, label %.loopexit102, label %.lr.ph, !llvm.loop !13

37:                                               ; preds = %24
  br i1 %.not97109, label %.loopexit102, label %.lr.ph113

.lr.ph113:                                        ; preds = %37
  %38 = add nuw i64 %15, 2
  br label %39

39:                                               ; preds = %.lr.ph113, %39
  %.1112 = phi double [ %25, %.lr.ph113 ], [ %46, %39 ]
  %.191111 = phi i64 [ 1, %.lr.ph113 ], [ %41, %39 ]
  %.193110 = phi i64 [ 2, %.lr.ph113 ], [ %50, %39 ]
  %40 = sub i64 %38, %.193110
  %41 = add i64 %40, %.191111
  %42 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds double, ptr %9, i64 %.193110
  store double %43, ptr %44, align 8, !tbaa !9
  %45 = fcmp ole double %.1112, %43
  %46 = select i1 %45, double %.1112, double %43
  %47 = load double, ptr %5, align 8, !tbaa !9
  %48 = fcmp oge double %47, %43
  %49 = select i1 %48, double %47, double %43
  store double %49, ptr %5, align 8, !tbaa !9
  %50 = add nuw i64 %.193110, 1
  %exitcond124.not = icmp eq i64 %.193110, %15
  br i1 %exitcond124.not, label %.loopexit102, label %39, !llvm.loop !15

.loopexit102:                                     ; preds = %.lr.ph, %39, %26, %37
  %.2 = phi double [ %25, %37 ], [ %25, %26 ], [ %46, %39 ], [ %32, %.lr.ph ]
  %51 = fcmp ugt double %.2, 0.000000e+00
  br i1 %51, label %.lr.ph120.preheader, label %.lr.ph117

.lr.ph120.preheader:                              ; preds = %.loopexit102
  %xtraiter = and i64 %15, 3
  %52 = icmp ult i64 %15, 4
  br i1 %52, label %._crit_edge.unr-lcssa, label %.lr.ph120.preheader.new

.lr.ph120.preheader.new:                          ; preds = %.lr.ph120.preheader
  %unroll_iter = and i64 %15, 9223372036854775804
  %invariant.gep = getelementptr i8, ptr %9, i64 16
  %invariant.gep139 = getelementptr i8, ptr %9, i64 24
  br label %.lr.ph120

.lr.ph117:                                        ; preds = %.loopexit102, %57
  %.294116 = phi i64 [ %58, %57 ], [ 1, %.loopexit102 ]
  %53 = getelementptr inbounds double, ptr %9, i64 %.294116
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fcmp ugt double %54, 0.000000e+00
  br i1 %55, label %57, label %56

56:                                               ; preds = %.lr.ph117
  store i64 %.294116, ptr %6, align 8, !tbaa !5
  br label %.loopexit

57:                                               ; preds = %.lr.ph117
  %58 = add nuw i64 %.294116, 1
  %exitcond125.not = icmp eq i64 %.294116, %15
  br i1 %exitcond125.not, label %.loopexit, label %.lr.ph117, !llvm.loop !16

.lr.ph120:                                        ; preds = %.lr.ph120, %.lr.ph120.preheader.new
  %.3119 = phi i64 [ 1, %.lr.ph120.preheader.new ], [ %73, %.lr.ph120 ]
  %niter = phi i64 [ 0, %.lr.ph120.preheader.new ], [ %niter.next.3, %.lr.ph120 ]
  %59 = getelementptr inbounds double, ptr %9, i64 %.3119
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = tail call double @sqrt(double noundef %60) #4
  %62 = fdiv double 1.000000e+00, %61
  store double %62, ptr %59, align 8, !tbaa !9
  %63 = getelementptr double, ptr %3, i64 %.3119
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = tail call double @sqrt(double noundef %64) #4
  %66 = fdiv double 1.000000e+00, %65
  store double %66, ptr %63, align 8, !tbaa !9
  %gep = getelementptr double, ptr %invariant.gep, i64 %.3119
  %67 = load double, ptr %gep, align 8, !tbaa !9
  %68 = tail call double @sqrt(double noundef %67) #4
  %69 = fdiv double 1.000000e+00, %68
  store double %69, ptr %gep, align 8, !tbaa !9
  %gep140 = getelementptr double, ptr %invariant.gep139, i64 %.3119
  %70 = load double, ptr %gep140, align 8, !tbaa !9
  %71 = tail call double @sqrt(double noundef %70) #4
  %72 = fdiv double 1.000000e+00, %71
  store double %72, ptr %gep140, align 8, !tbaa !9
  %73 = add nuw i64 %.3119, 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.ph120, !llvm.loop !17

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph120, %.lr.ph120.preheader
  %.3119.unr = phi i64 [ 1, %.lr.ph120.preheader ], [ %73, %.lr.ph120 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph120.epil

.lr.ph120.epil:                                   ; preds = %._crit_edge.unr-lcssa, %.lr.ph120.epil
  %.3119.epil = phi i64 [ %78, %.lr.ph120.epil ], [ %.3119.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph120.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %74 = getelementptr inbounds double, ptr %9, i64 %.3119.epil
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = tail call double @sqrt(double noundef %75) #4
  %77 = fdiv double 1.000000e+00, %76
  store double %77, ptr %74, align 8, !tbaa !9
  %78 = add nuw i64 %.3119.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.ph120.epil, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph120.epil, %._crit_edge.unr-lcssa
  %79 = tail call double @sqrt(double noundef %.2) #4
  %80 = load double, ptr %5, align 8, !tbaa !9
  %81 = tail call double @sqrt(double noundef %80) #4
  %82 = fdiv double %79, %81
  store double %82, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %57, %._crit_edge, %56, %23, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @xerbla_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!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