; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (zpbequ)

; 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 @zpbequ_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca i32, align 4
  %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 ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca double, align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %31 = load ptr, ptr %15, align 8, !tbaa !5
  %32 = load i64, ptr %31, align 8, !tbaa !9
  store i64 %32, ptr %20, align 8, !tbaa !9
  %33 = load i64, ptr %20, align 8, !tbaa !9
  %34 = add nsw i64 1, %33
  store i64 %34, ptr %21, align 8, !tbaa !9
  %35 = load i64, ptr %21, align 8, !tbaa !9
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = sub i64 0, %35
  %38 = getelementptr inbounds %struct.doublecomplex, ptr %36, i64 %37
  store ptr %38, ptr %14, align 8, !tbaa !5
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %39, i32 -1
  store ptr %40, ptr %16, align 8, !tbaa !5
  %41 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %41, align 8, !tbaa !9
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = call i64 @lsame_(ptr noundef %42, ptr noundef @.str)
  store i64 %43, ptr %29, align 8, !tbaa !9
  %44 = load i64, ptr %29, align 8, !tbaa !9
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %52, label %46

46:                                               ; preds = %9
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = call i64 @lsame_(ptr noundef %47, ptr noundef @.str.1)
  %49 = icmp ne i64 %48, 0
  br i1 %49, label %52, label %50

50:                                               ; preds = %46
  %51 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %51, align 8, !tbaa !9
  br label %76

52:                                               ; preds = %46, %9
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = icmp slt i64 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %52
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %57, align 8, !tbaa !9
  br label %75

58:                                               ; preds = %52
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -3, ptr %63, align 8, !tbaa !9
  br label %74

64:                                               ; preds = %58
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = add nsw i64 %68, 1
  %70 = icmp slt i64 %66, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %64
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -5, ptr %72, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %71, %64
  br label %74

74:                                               ; preds = %73, %62
  br label %75

75:                                               ; preds = %74, %56
  br label %76

76:                                               ; preds = %75, %50
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %85

80:                                               ; preds = %76
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = sub nsw i64 0, %82
  store i64 %83, ptr %22, align 8, !tbaa !9
  %84 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %22)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %224

85:                                               ; preds = %76
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = icmp eq i64 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %85
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  store double 1.000000e+00, ptr %90, align 8, !tbaa !11
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  store double 0.000000e+00, ptr %91, align 8, !tbaa !11
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %224

92:                                               ; preds = %85
  %93 = load i64, ptr %29, align 8, !tbaa !9
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %95, label %99

95:                                               ; preds = %92
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %27, align 8, !tbaa !9
  br label %100

99:                                               ; preds = %92
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %99, %95
  %101 = load i64, ptr %27, align 8, !tbaa !9
  %102 = load i64, ptr %20, align 8, !tbaa !9
  %103 = add nsw i64 %101, %102
  store i64 %103, ptr %22, align 8, !tbaa !9
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = load i64, ptr %22, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.doublecomplex, ptr %104, i64 %105
  %107 = getelementptr inbounds %struct.doublecomplex, ptr %106, i32 0, i32 0
  %108 = load double, ptr %107, align 8, !tbaa !13
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 1
  store double %108, ptr %110, align 8, !tbaa !11
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 1
  %113 = load double, ptr %112, align 8, !tbaa !11
  store double %113, ptr %28, align 8, !tbaa !11
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = getelementptr inbounds double, ptr %114, i64 1
  %116 = load double, ptr %115, align 8, !tbaa !11
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  store double %116, ptr %117, align 8, !tbaa !11
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load i64, ptr %118, align 8, !tbaa !9
  store i64 %119, ptr %22, align 8, !tbaa !9
  store i64 2, ptr %26, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %168, %100
  %121 = load i64, ptr %26, align 8, !tbaa !9
  %122 = load i64, ptr %22, align 8, !tbaa !9
  %123 = icmp sle i64 %121, %122
  br i1 %123, label %124, label %171

124:                                              ; preds = %120
  %125 = load i64, ptr %27, align 8, !tbaa !9
  %126 = load i64, ptr %26, align 8, !tbaa !9
  %127 = load i64, ptr %20, align 8, !tbaa !9
  %128 = mul nsw i64 %126, %127
  %129 = add nsw i64 %125, %128
  store i64 %129, ptr %23, align 8, !tbaa !9
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load i64, ptr %23, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.doublecomplex, ptr %130, i64 %131
  %133 = getelementptr inbounds %struct.doublecomplex, ptr %132, i32 0, i32 0
  %134 = load double, ptr %133, align 8, !tbaa !13
  %135 = load ptr, ptr %16, align 8, !tbaa !5
  %136 = load i64, ptr %26, align 8, !tbaa !9
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  store double %134, ptr %137, align 8, !tbaa !11
  %138 = load double, ptr %28, align 8, !tbaa !11
  store double %138, ptr %24, align 8, !tbaa !11
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  %140 = load i64, ptr %26, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !11
  store double %142, ptr %25, align 8, !tbaa !11
  %143 = load double, ptr %24, align 8, !tbaa !11
  %144 = load double, ptr %25, align 8, !tbaa !11
  %145 = fcmp ole double %143, %144
  br i1 %145, label %146, label %148

146:                                              ; preds = %124
  %147 = load double, ptr %24, align 8, !tbaa !11
  br label %150

148:                                              ; preds = %124
  %149 = load double, ptr %25, align 8, !tbaa !11
  br label %150

150:                                              ; preds = %148, %146
  %151 = phi double [ %147, %146 ], [ %149, %148 ]
  store double %151, ptr %28, align 8, !tbaa !11
  %152 = load ptr, ptr %18, align 8, !tbaa !5
  %153 = load double, ptr %152, align 8, !tbaa !11
  store double %153, ptr %24, align 8, !tbaa !11
  %154 = load ptr, ptr %16, align 8, !tbaa !5
  %155 = load i64, ptr %26, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !11
  store double %157, ptr %25, align 8, !tbaa !11
  %158 = load double, ptr %24, align 8, !tbaa !11
  %159 = load double, ptr %25, align 8, !tbaa !11
  %160 = fcmp oge double %158, %159
  br i1 %160, label %161, label %163

161:                                              ; preds = %150
  %162 = load double, ptr %24, align 8, !tbaa !11
  br label %165

163:                                              ; preds = %150
  %164 = load double, ptr %25, align 8, !tbaa !11
  br label %165

165:                                              ; preds = %163, %161
  %166 = phi double [ %162, %161 ], [ %164, %163 ]
  %167 = load ptr, ptr %18, align 8, !tbaa !5
  store double %166, ptr %167, align 8, !tbaa !11
  br label %168

168:                                              ; preds = %165
  %169 = load i64, ptr %26, align 8, !tbaa !9
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %26, align 8, !tbaa !9
  br label %120, !llvm.loop !15

171:                                              ; preds = %120
  %172 = load double, ptr %28, align 8, !tbaa !11
  %173 = fcmp ole double %172, 0.000000e+00
  br i1 %173, label %174, label %195

174:                                              ; preds = %171
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = load i64, ptr %175, align 8, !tbaa !9
  store i64 %176, ptr %22, align 8, !tbaa !9
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %191, %174
  %178 = load i64, ptr %26, align 8, !tbaa !9
  %179 = load i64, ptr %22, align 8, !tbaa !9
  %180 = icmp sle i64 %178, %179
  br i1 %180, label %181, label %194

181:                                              ; preds = %177
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = load i64, ptr %26, align 8, !tbaa !9
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !11
  %186 = fcmp ole double %185, 0.000000e+00
  br i1 %186, label %187, label %190

187:                                              ; preds = %181
  %188 = load i64, ptr %26, align 8, !tbaa !9
  %189 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 %188, ptr %189, align 8, !tbaa !9
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %224

190:                                              ; preds = %181
  br label %191

191:                                              ; preds = %190
  %192 = load i64, ptr %26, align 8, !tbaa !9
  %193 = add nsw i64 %192, 1
  store i64 %193, ptr %26, align 8, !tbaa !9
  br label %177, !llvm.loop !17

194:                                              ; preds = %177
  br label %223

195:                                              ; preds = %171
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load i64, ptr %196, align 8, !tbaa !9
  store i64 %197, ptr %22, align 8, !tbaa !9
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %198

198:                                              ; preds = %212, %195
  %199 = load i64, ptr %26, align 8, !tbaa !9
  %200 = load i64, ptr %22, align 8, !tbaa !9
  %201 = icmp sle i64 %199, %200
  br i1 %201, label %202, label %215

202:                                              ; preds = %198
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  %204 = load i64, ptr %26, align 8, !tbaa !9
  %205 = getelementptr inbounds double, ptr %203, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = call double @sqrt(double noundef %206) #4
  %208 = fdiv double 1.000000e+00, %207
  %209 = load ptr, ptr %16, align 8, !tbaa !5
  %210 = load i64, ptr %26, align 8, !tbaa !9
  %211 = getelementptr inbounds double, ptr %209, i64 %210
  store double %208, ptr %211, align 8, !tbaa !11
  br label %212

212:                                              ; preds = %202
  %213 = load i64, ptr %26, align 8, !tbaa !9
  %214 = add nsw i64 %213, 1
  store i64 %214, ptr %26, align 8, !tbaa !9
  br label %198, !llvm.loop !18

215:                                              ; preds = %198
  %216 = load double, ptr %28, align 8, !tbaa !11
  %217 = call double @sqrt(double noundef %216) #4
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = load double, ptr %218, align 8, !tbaa !11
  %220 = call double @sqrt(double noundef %219) #4
  %221 = fdiv double %217, %220
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  store double %221, ptr %222, align 8, !tbaa !11
  br label %223

223:                                              ; preds = %215, %194
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %224

224:                                              ; preds = %223, %187, %89, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  %225 = load i32, ptr %10, align 4
  ret i32 %225
}

; 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}


; 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 @zpbequ_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef %7, ptr nocapture noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %11 = load i64, ptr %4, align 8, !tbaa !5
  %12 = xor i64 %11, -1
  %13 = getelementptr inbounds %struct.doublecomplex, ptr %3, i64 %12
  %14 = getelementptr inbounds i8, ptr %5, i64 -8
  store i64 0, ptr %8, align 8, !tbaa !5
  %15 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %15, 0
  br i1 %.not, label %16, label %18

16:                                               ; preds = %9
  %17 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not78 = icmp eq i64 %17, 0
  br i1 %.not78, label %.thread.sink.split, label %18

18:                                               ; preds = %16, %9
  %19 = load i64, ptr %1, align 8, !tbaa !5
  %20 = icmp slt i64 %19, 0
  br i1 %20, label %.thread.sink.split, label %21

21:                                               ; preds = %18
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %.thread.sink.split, label %24

24:                                               ; preds = %21
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %.not79 = icmp sgt i64 %25, %22
  br i1 %.not79, label %26, label %.thread.sink.split

26:                                               ; preds = %24
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not80 = icmp eq i64 %.pr, 0
  br i1 %.not80, label %30, label %.thread

.thread.sink.split:                               ; preds = %24, %21, %18, %16
  %.sink = phi i64 [ -1, %16 ], [ -2, %18 ], [ -3, %21 ], [ -5, %24 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread

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

30:                                               ; preds = %26
  %31 = icmp eq i64 %19, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %30
  store double 1.000000e+00, ptr %6, align 8, !tbaa !9
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  br label %.loopexit

33:                                               ; preds = %30
  %34 = add nuw nsw i64 %22, 1
  %spec.select = select i1 %.not, i64 1, i64 %34
  %35 = getelementptr %struct.doublecomplex, ptr %13, i64 %spec.select
  %36 = getelementptr %struct.doublecomplex, ptr %35, i64 %11
  %37 = load double, ptr %36, align 8, !tbaa !11
  store double %37, ptr %5, align 8, !tbaa !9
  store double %37, ptr %7, align 8, !tbaa !9
  %.not8186 = icmp eq i64 %19, 1
  br i1 %.not8186, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %33
  %38 = getelementptr %struct.doublecomplex, ptr %13, i64 %spec.select
  br label %39

39:                                               ; preds = %.lr.ph, %39
  %.07488 = phi double [ %37, %.lr.ph ], [ %45, %39 ]
  %.07687 = phi i64 [ 2, %.lr.ph ], [ %49, %39 ]
  %40 = mul nsw i64 %.07687, %11
  %41 = getelementptr %struct.doublecomplex, ptr %38, i64 %40
  %42 = load double, ptr %41, align 8, !tbaa !11
  %43 = getelementptr inbounds double, ptr %14, i64 %.07687
  store double %42, ptr %43, align 8, !tbaa !9
  %44 = fcmp ole double %.07488, %42
  %45 = select i1 %44, double %.07488, double %42
  %46 = load double, ptr %7, align 8, !tbaa !9
  %47 = fcmp oge double %46, %42
  %48 = select i1 %47, double %46, double %42
  store double %48, ptr %7, align 8, !tbaa !9
  %49 = add nuw i64 %.07687, 1
  %exitcond.not = icmp eq i64 %.07687, %19
  br i1 %exitcond.not, label %._crit_edge, label %39, !llvm.loop !13

._crit_edge:                                      ; preds = %39, %33
  %.074.lcssa = phi double [ %37, %33 ], [ %45, %39 ]
  %50 = fcmp ugt double %.074.lcssa, 0.000000e+00
  br i1 %50, label %.lr.ph96.preheader, label %.lr.ph92

.lr.ph96.preheader:                               ; preds = %._crit_edge
  %xtraiter = and i64 %19, 3
  %51 = icmp ult i64 %19, 4
  br i1 %51, label %._crit_edge97.unr-lcssa, label %.lr.ph96.preheader.new

.lr.ph96.preheader.new:                           ; preds = %.lr.ph96.preheader
  %unroll_iter = and i64 %19, 9223372036854775804
  %invariant.gep = getelementptr i8, ptr %14, i64 16
  %invariant.gep106 = getelementptr i8, ptr %14, i64 24
  br label %.lr.ph96

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

55:                                               ; preds = %.lr.ph92
  store i64 %.190, ptr %8, align 8, !tbaa !5
  br label %.loopexit

56:                                               ; preds = %.lr.ph92
  %57 = add nuw i64 %.190, 1
  %exitcond99.not = icmp eq i64 %.190, %19
  br i1 %exitcond99.not, label %.loopexit, label %.lr.ph92, !llvm.loop !15

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

._crit_edge97.unr-lcssa:                          ; preds = %.lr.ph96, %.lr.ph96.preheader
  %.294.unr = phi i64 [ 1, %.lr.ph96.preheader ], [ %72, %.lr.ph96 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge97, label %.lr.ph96.epil

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

._crit_edge97:                                    ; preds = %.lr.ph96.epil, %._crit_edge97.unr-lcssa
  %78 = tail call double @sqrt(double noundef %.074.lcssa) #4
  %79 = load double, ptr %7, align 8, !tbaa !9
  %80 = tail call double @sqrt(double noundef %79) #4
  %81 = fdiv double %78, %80
  store double %81, ptr %6, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %56, %._crit_edge97, %55, %32, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #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, !18}
!18 = !{!"llvm.loop.unroll.disable"}


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