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

; 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.complex = type { float, float }

@.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 @cpbequ_(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 float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %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 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, 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.complex, 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 float, 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 %238

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 float 1.000000e+00, ptr %91, align 4, !tbaa !11
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  store float 0.000000e+00, ptr %92, align 4, !tbaa !11
  store i32 1, ptr %29, align 4
  br label %238

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.complex, ptr %105, i64 %107
  %109 = getelementptr inbounds %struct.complex, ptr %108, i32 0, i32 0
  %110 = load float, ptr %109, align 4, !tbaa !13
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds float, ptr %111, i64 1
  store float %110, ptr %112, align 4, !tbaa !11
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = getelementptr inbounds float, ptr %113, i64 1
  %115 = load float, ptr %114, align 4, !tbaa !11
  store float %115, ptr %25, align 4, !tbaa !11
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = getelementptr inbounds float, ptr %116, i64 1
  %118 = load float, ptr %117, align 4, !tbaa !11
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  store float %118, ptr %119, align 4, !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.complex, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.complex, ptr %135, i32 0, i32 0
  %137 = load float, ptr %136, align 4, !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 float, ptr %138, i64 %140
  store float %137, ptr %141, align 4, !tbaa !11
  %142 = load float, ptr %25, align 4, !tbaa !11
  store float %142, ptr %23, align 4, !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 float, ptr %143, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !11
  store float %147, ptr %24, align 4, !tbaa !11
  %148 = load float, ptr %23, align 4, !tbaa !11
  %149 = load float, ptr %24, align 4, !tbaa !11
  %150 = fcmp ole float %148, %149
  br i1 %150, label %151, label %153

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

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

155:                                              ; preds = %153, %151
  %156 = phi float [ %152, %151 ], [ %154, %153 ]
  store float %156, ptr %25, align 4, !tbaa !11
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = load float, ptr %157, align 4, !tbaa !11
  store float %158, ptr %23, align 4, !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 float, ptr %159, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !11
  store float %163, ptr %24, align 4, !tbaa !11
  %164 = load float, ptr %23, align 4, !tbaa !11
  %165 = load float, ptr %24, align 4, !tbaa !11
  %166 = fcmp oge float %164, %165
  br i1 %166, label %167, label %169

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

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

171:                                              ; preds = %169, %167
  %172 = phi float [ %168, %167 ], [ %170, %169 ]
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  store float %172, ptr %173, align 4, !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 float, ptr %25, align 4, !tbaa !11
  %179 = fcmp ole float %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 float, ptr %188, i64 %190
  %192 = load float, ptr %191, align 4, !tbaa !11
  %193 = fcmp ole float %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 %238

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 %237

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 = %223, %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 %226

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 float, ptr %210, i64 %212
  %214 = load float, ptr %213, align 4, !tbaa !11
  %215 = fpext float %214 to double
  %216 = call double @sqrt(double noundef %215) #4
  %217 = fdiv double 1.000000e+00, %216
  %218 = fptrunc double %217 to float
  %219 = load ptr, ptr %15, align 8, !tbaa !5
  %220 = load i32, ptr %26, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds float, ptr %219, i64 %221
  store float %218, ptr %222, align 4, !tbaa !11
  br label %223

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

226:                                              ; preds = %205
  %227 = load float, ptr %25, align 4, !tbaa !11
  %228 = fpext float %227 to double
  %229 = call double @sqrt(double noundef %228) #4
  %230 = load ptr, ptr %17, align 8, !tbaa !5
  %231 = load float, ptr %230, align 4, !tbaa !11
  %232 = fpext float %231 to double
  %233 = call double @sqrt(double noundef %232) #4
  %234 = fdiv double %229, %233
  %235 = fptrunc double %234 to float
  %236 = load ptr, ptr %16, align 8, !tbaa !5
  store float %235, ptr %236, align 4, !tbaa !11
  br label %237

237:                                              ; preds = %226, %201
  store i32 1, ptr %29, align 4
  br label %238

238:                                              ; preds = %237, %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 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 4}
!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.complex = type { float, float }

@.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 @cpbequ_(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.complex, ptr %3, i64 %12
  %14 = getelementptr inbounds i8, ptr %5, i64 -4
  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 float 1.000000e+00, ptr %6, align 4, !tbaa !9
  store float 0.000000e+00, ptr %7, align 4, !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.complex, ptr %13, i64 %36
  %38 = load float, ptr %37, align 4, !tbaa !11
  store float %38, ptr %5, align 4, !tbaa !9
  store float %38, ptr %7, align 4, !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.complex, 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 float [ %38, %.lr.ph.preheader ], [ %46, %.lr.ph ]
  %42 = mul nsw i64 %indvars.iv, %39
  %gep = getelementptr %struct.complex, ptr %invariant.gep, i64 %42
  %43 = load float, ptr %gep, align 4, !tbaa !11
  %44 = getelementptr inbounds float, ptr %14, i64 %indvars.iv
  store float %43, ptr %44, align 4, !tbaa !9
  %45 = fcmp ole float %.07486, %43
  %46 = select i1 %45, float %.07486, float %43
  %47 = load float, ptr %7, align 4, !tbaa !9
  %48 = fcmp oge float %47, %43
  %49 = select i1 %48, float %47, float %43
  store float %49, ptr %7, align 4, !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 float [ %38, %33 ], [ %46, %.lr.ph ]
  %50 = fcmp ugt float %.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
  %xtraiter = and i64 %52, 1
  %53 = icmp eq i32 %51, 2
  br i1 %53, label %._crit_edge96.unr-lcssa, label %.lr.ph95.preheader.new

.lr.ph95.preheader.new:                           ; preds = %.lr.ph95.preheader
  %unroll_iter = and i64 %52, 2147483646
  br label %.lr.ph95

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

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

59:                                               ; 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.1, %.lr.ph95 ]
  %niter = phi i64 [ 0, %.lr.ph95.preheader.new ], [ %niter.next.1, %.lr.ph95 ]
  %60 = getelementptr inbounds float, ptr %14, i64 %indvars.iv104
  %61 = load float, ptr %60, align 4, !tbaa !9
  %62 = fpext float %61 to double
  %63 = tail call double @sqrt(double noundef %62) #4
  %64 = fdiv double 1.000000e+00, %63
  %65 = fptrunc double %64 to float
  store float %65, ptr %60, align 4, !tbaa !9
  %66 = getelementptr float, ptr %5, i64 %indvars.iv104
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = fpext float %67 to double
  %69 = tail call double @sqrt(double noundef %68) #4
  %70 = fdiv double 1.000000e+00, %69
  %71 = fptrunc double %70 to float
  store float %71, ptr %66, align 4, !tbaa !9
  %indvars.iv.next105.1 = add nuw nsw i64 %indvars.iv104, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, 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.1, %.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
  %72 = getelementptr inbounds float, ptr %14, i64 %indvars.iv104.unr
  %73 = load float, ptr %72, align 4, !tbaa !9
  %74 = fpext float %73 to double
  %75 = tail call double @sqrt(double noundef %74) #4
  %76 = fdiv double 1.000000e+00, %75
  %77 = fptrunc double %76 to float
  store float %77, ptr %72, align 4, !tbaa !9
  br label %._crit_edge96

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

.loopexit:                                        ; preds = %59, %._crit_edge96, %57, %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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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