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

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

51:                                               ; preds = %47
  %52 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -1, ptr %52, align 4, !tbaa !9
  br label %77

53:                                               ; preds = %47, %9
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp slt i32 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %53
  %58 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -2, ptr %58, align 4, !tbaa !9
  br label %76

59:                                               ; preds = %53
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -3, ptr %64, align 4, !tbaa !9
  br label %75

65:                                               ; preds = %59
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  %71 = icmp slt i32 %67, %70
  br i1 %71, label %72, label %74

72:                                               ; preds = %65
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -5, ptr %73, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %72, %65
  br label %75

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

76:                                               ; preds = %75, %57
  br label %77

77:                                               ; preds = %76, %51
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %86

81:                                               ; preds = %77
  %82 = load ptr, ptr %18, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = sub nsw i32 0, %83
  store i32 %84, ptr %21, align 4, !tbaa !9
  %85 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %21, i32 noundef 6)
  store i32 1, ptr %29, align 4
  br label %233

86:                                               ; preds = %77
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %93

90:                                               ; preds = %86
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %91, align 8, !tbaa !11
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  store double 0.000000e+00, ptr %92, align 8, !tbaa !11
  store i32 1, ptr %29, align 4
  br label %233

93:                                               ; preds = %86
  %94 = load i32, ptr %28, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %100

96:                                               ; preds = %93
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %27, align 4, !tbaa !9
  br label %101

100:                                              ; preds = %93
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %100, %96
  %102 = load i32, ptr %27, align 4, !tbaa !9
  %103 = load i32, ptr %19, align 4, !tbaa !9
  %104 = add nsw i32 %102, %103
  store i32 %104, ptr %21, align 4, !tbaa !9
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = load i32, ptr %21, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %105, i64 %107
  %109 = getelementptr inbounds %struct.doublecomplex, ptr %108, i32 0, i32 0
  %110 = load double, ptr %109, align 8, !tbaa !13
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 1
  store double %110, ptr %112, align 8, !tbaa !11
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = getelementptr inbounds double, ptr %113, i64 1
  %115 = load double, ptr %114, align 8, !tbaa !11
  store double %115, ptr %25, align 8, !tbaa !11
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = getelementptr inbounds double, ptr %116, i64 1
  %118 = load double, ptr %117, align 8, !tbaa !11
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  store double %118, ptr %119, align 8, !tbaa !11
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  store i32 %121, ptr %21, align 4, !tbaa !9
  store i32 2, ptr %26, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %174, %101
  %123 = load i32, ptr %26, align 4, !tbaa !9
  %124 = load i32, ptr %21, align 4, !tbaa !9
  %125 = icmp sle i32 %123, %124
  br i1 %125, label %126, label %177

126:                                              ; preds = %122
  %127 = load i32, ptr %27, align 4, !tbaa !9
  %128 = load i32, ptr %26, align 4, !tbaa !9
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = mul nsw i32 %128, %129
  %131 = add nsw i32 %127, %130
  store i32 %131, ptr %22, align 4, !tbaa !9
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %135, i32 0, i32 0
  %137 = load double, ptr %136, align 8, !tbaa !13
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load i32, ptr %26, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %138, i64 %140
  store double %137, ptr %141, align 8, !tbaa !11
  %142 = load double, ptr %25, align 8, !tbaa !11
  store double %142, ptr %23, align 8, !tbaa !11
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = load i32, ptr %26, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %143, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  store double %147, ptr %24, align 8, !tbaa !11
  %148 = load double, ptr %23, align 8, !tbaa !11
  %149 = load double, ptr %24, align 8, !tbaa !11
  %150 = fcmp ole double %148, %149
  br i1 %150, label %151, label %153

151:                                              ; preds = %126
  %152 = load double, ptr %23, align 8, !tbaa !11
  br label %155

153:                                              ; preds = %126
  %154 = load double, ptr %24, align 8, !tbaa !11
  br label %155

155:                                              ; preds = %153, %151
  %156 = phi double [ %152, %151 ], [ %154, %153 ]
  store double %156, ptr %25, align 8, !tbaa !11
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = load double, ptr %157, align 8, !tbaa !11
  store double %158, ptr %23, align 8, !tbaa !11
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = load i32, ptr %26, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds double, ptr %159, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !11
  store double %163, ptr %24, align 8, !tbaa !11
  %164 = load double, ptr %23, align 8, !tbaa !11
  %165 = load double, ptr %24, align 8, !tbaa !11
  %166 = fcmp oge double %164, %165
  br i1 %166, label %167, label %169

167:                                              ; preds = %155
  %168 = load double, ptr %23, align 8, !tbaa !11
  br label %171

169:                                              ; preds = %155
  %170 = load double, ptr %24, align 8, !tbaa !11
  br label %171

171:                                              ; preds = %169, %167
  %172 = phi double [ %168, %167 ], [ %170, %169 ]
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  store double %172, ptr %173, align 8, !tbaa !11
  br label %174

174:                                              ; preds = %171
  %175 = load i32, ptr %26, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %26, align 4, !tbaa !9
  br label %122, !llvm.loop !15

177:                                              ; preds = %122
  %178 = load double, ptr %25, align 8, !tbaa !11
  %179 = fcmp ole double %178, 0.000000e+00
  br i1 %179, label %180, label %202

180:                                              ; preds = %177
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = load i32, ptr %181, align 4, !tbaa !9
  store i32 %182, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %26, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %198, %180
  %184 = load i32, ptr %26, align 4, !tbaa !9
  %185 = load i32, ptr %21, align 4, !tbaa !9
  %186 = icmp sle i32 %184, %185
  br i1 %186, label %187, label %201

187:                                              ; preds = %183
  %188 = load ptr, ptr %15, align 8, !tbaa !5
  %189 = load i32, ptr %26, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds double, ptr %188, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !11
  %193 = fcmp ole double %192, 0.000000e+00
  br i1 %193, label %194, label %197

194:                                              ; preds = %187
  %195 = load i32, ptr %26, align 4, !tbaa !9
  %196 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %195, ptr %196, align 4, !tbaa !9
  store i32 1, ptr %29, align 4
  br label %233

197:                                              ; preds = %187
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %26, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %26, align 4, !tbaa !9
  br label %183, !llvm.loop !17

201:                                              ; preds = %183
  br label %232

202:                                              ; preds = %177
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = load i32, ptr %203, align 4, !tbaa !9
  store i32 %204, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %26, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %221, %202
  %206 = load i32, ptr %26, align 4, !tbaa !9
  %207 = load i32, ptr %21, align 4, !tbaa !9
  %208 = icmp sle i32 %206, %207
  br i1 %208, label %209, label %224

209:                                              ; preds = %205
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = load i32, ptr %26, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds double, ptr %210, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !11
  %215 = call double @sqrt(double noundef %214) #4
  %216 = fdiv double 1.000000e+00, %215
  %217 = load ptr, ptr %15, align 8, !tbaa !5
  %218 = load i32, ptr %26, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  store double %216, ptr %220, align 8, !tbaa !11
  br label %221

221:                                              ; preds = %209
  %222 = load i32, ptr %26, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %26, align 4, !tbaa !9
  br label %205, !llvm.loop !18

224:                                              ; preds = %205
  %225 = load double, ptr %25, align 8, !tbaa !11
  %226 = call double @sqrt(double noundef %225) #4
  %227 = load ptr, ptr %17, align 8, !tbaa !5
  %228 = load double, ptr %227, align 8, !tbaa !11
  %229 = call double @sqrt(double noundef %228) #4
  %230 = fdiv double %226, %229
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  store double %230, ptr %231, align 8, !tbaa !11
  br label %232

232:                                              ; preds = %224, %201
  store i32 1, ptr %29, align 4
  br label %233

233:                                              ; preds = %232, %194, %90, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 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 4, ptr %19) #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}


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

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

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

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

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

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

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

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

30:                                               ; preds = %26
  %31 = icmp eq i32 %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 i32 %22, 1
  %spec.select = select i1 %.not, i32 1, i32 %34
  %35 = add nsw i32 %spec.select, %11
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds %struct.doublecomplex, ptr %13, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !11
  store double %38, ptr %5, align 8, !tbaa !9
  store double %38, ptr %7, align 8, !tbaa !9
  %.not8085 = icmp eq i32 %19, 1
  br i1 %.not8085, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %33
  %39 = sext i32 %11 to i64
  %40 = zext nneg i32 %spec.select to i64
  %41 = add nuw i32 %19, 1
  %wide.trip.count = zext i32 %41 to i64
  %invariant.gep = getelementptr %struct.doublecomplex, ptr %13, i64 %40
  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 ]
  %.07486 = phi double [ %38, %.lr.ph.preheader ], [ %46, %.lr.ph ]
  %42 = mul nsw i64 %indvars.iv, %39
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %42
  %43 = load double, ptr %gep, align 8, !tbaa !11
  %44 = getelementptr inbounds double, ptr %14, i64 %indvars.iv
  store double %43, ptr %44, align 8, !tbaa !9
  %45 = fcmp ole double %.07486, %43
  %46 = select i1 %45, double %.07486, double %43
  %47 = load double, ptr %7, align 8, !tbaa !9
  %48 = fcmp oge double %47, %43
  %49 = select i1 %48, double %47, double %43
  store double %49, ptr %7, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %33
  %.074.lcssa = phi double [ %38, %33 ], [ %46, %.lr.ph ]
  %50 = fcmp ugt double %.074.lcssa, 0.000000e+00
  %51 = add nuw i32 %19, 1
  %wide.trip.count107 = zext i32 %51 to i64
  br i1 %50, label %.lr.ph95.preheader, label %.lr.ph91

.lr.ph95.preheader:                               ; preds = %._crit_edge
  %52 = zext nneg i32 %19 to i64
  %53 = add nsw i64 %wide.trip.count107, -2
  %xtraiter = and i64 %52, 3
  %54 = icmp ult i64 %53, 3
  br i1 %54, label %._crit_edge96.unr-lcssa, label %.lr.ph95.preheader.new

.lr.ph95.preheader.new:                           ; preds = %.lr.ph95.preheader
  %unroll_iter = and i64 %52, 2147483644
  %invariant.gep113 = getelementptr inbounds i8, ptr %14, i64 16
  %invariant.gep115 = getelementptr inbounds i8, ptr %14, i64 24
  br label %.lr.ph95

.lr.ph91:                                         ; preds = %._crit_edge, %60
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %60 ], [ 1, %._crit_edge ]
  %55 = getelementptr inbounds double, ptr %14, i64 %indvars.iv99
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = fcmp ugt double %56, 0.000000e+00
  br i1 %57, label %60, label %58

58:                                               ; preds = %.lr.ph91
  %59 = trunc nuw nsw i64 %indvars.iv99 to i32
  store i32 %59, ptr %8, align 4, !tbaa !5
  br label %.loopexit

60:                                               ; preds = %.lr.ph91
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next100, %wide.trip.count107
  br i1 %exitcond103.not, label %.loopexit, label %.lr.ph91, !llvm.loop !15

.lr.ph95:                                         ; preds = %.lr.ph95, %.lr.ph95.preheader.new
  %indvars.iv104 = phi i64 [ 1, %.lr.ph95.preheader.new ], [ %indvars.iv.next105.3, %.lr.ph95 ]
  %niter = phi i64 [ 0, %.lr.ph95.preheader.new ], [ %niter.next.3, %.lr.ph95 ]
  %61 = getelementptr inbounds double, ptr %14, i64 %indvars.iv104
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = tail call double @sqrt(double noundef %62) #4
  %64 = fdiv double 1.000000e+00, %63
  store double %64, ptr %61, align 8, !tbaa !9
  %65 = getelementptr double, ptr %5, i64 %indvars.iv104
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = tail call double @sqrt(double noundef %66) #4
  %68 = fdiv double 1.000000e+00, %67
  store double %68, ptr %65, align 8, !tbaa !9
  %gep114 = getelementptr inbounds double, ptr %invariant.gep113, i64 %indvars.iv104
  %69 = load double, ptr %gep114, align 8, !tbaa !9
  %70 = tail call double @sqrt(double noundef %69) #4
  %71 = fdiv double 1.000000e+00, %70
  store double %71, ptr %gep114, align 8, !tbaa !9
  %gep116 = getelementptr inbounds double, ptr %invariant.gep115, i64 %indvars.iv104
  %72 = load double, ptr %gep116, align 8, !tbaa !9
  %73 = tail call double @sqrt(double noundef %72) #4
  %74 = fdiv double 1.000000e+00, %73
  store double %74, ptr %gep116, align 8, !tbaa !9
  %indvars.iv.next105.3 = add nuw nsw i64 %indvars.iv104, 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_edge96.unr-lcssa, label %.lr.ph95, !llvm.loop !16

._crit_edge96.unr-lcssa:                          ; preds = %.lr.ph95, %.lr.ph95.preheader
  %indvars.iv104.unr = phi i64 [ 1, %.lr.ph95.preheader ], [ %indvars.iv.next105.3, %.lr.ph95 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge96, label %.lr.ph95.epil

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

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

.loopexit:                                        ; preds = %60, %._crit_edge96, %58, %32, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #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, !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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass