; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i32 @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 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 float, align 4
  %25 = alloca float, align 4
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca float, align 4
  %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 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, 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 4, 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.complex, 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 float, 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 %233

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 float 1.000000e+00, ptr %90, align 4, !tbaa !11
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  store float 0.000000e+00, ptr %91, align 4, !tbaa !11
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %233

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.complex, ptr %104, i64 %105
  %107 = getelementptr inbounds %struct.complex, ptr %106, i32 0, i32 0
  %108 = load float, ptr %107, align 4, !tbaa !13
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  %110 = getelementptr inbounds float, ptr %109, i64 1
  store float %108, ptr %110, align 4, !tbaa !11
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds float, ptr %111, i64 1
  %113 = load float, ptr %112, align 4, !tbaa !11
  store float %113, ptr %28, align 4, !tbaa !11
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = getelementptr inbounds float, ptr %114, i64 1
  %116 = load float, ptr %115, align 4, !tbaa !11
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  store float %116, ptr %117, align 4, !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 = %172, %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 %175

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.complex, ptr %130, i64 %131
  %133 = getelementptr inbounds %struct.complex, ptr %132, i32 0, i32 0
  %134 = load float, ptr %133, align 4, !tbaa !13
  %135 = load ptr, ptr %16, align 8, !tbaa !5
  %136 = load i64, ptr %26, align 8, !tbaa !9
  %137 = getelementptr inbounds float, ptr %135, i64 %136
  store float %134, ptr %137, align 4, !tbaa !11
  %138 = load float, ptr %28, align 4, !tbaa !11
  store float %138, ptr %24, align 4, !tbaa !11
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  %140 = load i64, ptr %26, align 8, !tbaa !9
  %141 = getelementptr inbounds float, ptr %139, i64 %140
  %142 = load float, ptr %141, align 4, !tbaa !11
  store float %142, ptr %25, align 4, !tbaa !11
  %143 = load float, ptr %24, align 4, !tbaa !11
  %144 = load float, ptr %25, align 4, !tbaa !11
  %145 = fcmp ole float %143, %144
  br i1 %145, label %146, label %148

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

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

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

163:                                              ; preds = %150
  %164 = load float, ptr %24, align 4, !tbaa !11
  br label %167

165:                                              ; preds = %150
  %166 = load float, ptr %25, align 4, !tbaa !11
  br label %167

167:                                              ; preds = %165, %163
  %168 = phi float [ %164, %163 ], [ %166, %165 ]
  %169 = fpext float %168 to double
  %170 = fptrunc double %169 to float
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  store float %170, ptr %171, align 4, !tbaa !11
  br label %172

172:                                              ; preds = %167
  %173 = load i64, ptr %26, align 8, !tbaa !9
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %26, align 8, !tbaa !9
  br label %120, !llvm.loop !15

175:                                              ; preds = %120
  %176 = load float, ptr %28, align 4, !tbaa !11
  %177 = fcmp ole float %176, 0.000000e+00
  br i1 %177, label %178, label %199

178:                                              ; preds = %175
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  store i64 %180, ptr %22, align 8, !tbaa !9
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %195, %178
  %182 = load i64, ptr %26, align 8, !tbaa !9
  %183 = load i64, ptr %22, align 8, !tbaa !9
  %184 = icmp sle i64 %182, %183
  br i1 %184, label %185, label %198

185:                                              ; preds = %181
  %186 = load ptr, ptr %16, align 8, !tbaa !5
  %187 = load i64, ptr %26, align 8, !tbaa !9
  %188 = getelementptr inbounds float, ptr %186, i64 %187
  %189 = load float, ptr %188, align 4, !tbaa !11
  %190 = fcmp ole float %189, 0.000000e+00
  br i1 %190, label %191, label %194

191:                                              ; preds = %185
  %192 = load i64, ptr %26, align 8, !tbaa !9
  %193 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 %192, ptr %193, align 8, !tbaa !9
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %233

194:                                              ; preds = %185
  br label %195

195:                                              ; preds = %194
  %196 = load i64, ptr %26, align 8, !tbaa !9
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %26, align 8, !tbaa !9
  br label %181, !llvm.loop !17

198:                                              ; preds = %181
  br label %232

199:                                              ; preds = %175
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = load i64, ptr %200, align 8, !tbaa !9
  store i64 %201, ptr %22, align 8, !tbaa !9
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %202

202:                                              ; preds = %218, %199
  %203 = load i64, ptr %26, align 8, !tbaa !9
  %204 = load i64, ptr %22, align 8, !tbaa !9
  %205 = icmp sle i64 %203, %204
  br i1 %205, label %206, label %221

206:                                              ; preds = %202
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = load i64, ptr %26, align 8, !tbaa !9
  %209 = getelementptr inbounds float, ptr %207, i64 %208
  %210 = load float, ptr %209, align 4, !tbaa !11
  %211 = fpext float %210 to double
  %212 = call double @sqrt(double noundef %211) #4
  %213 = fdiv double 1.000000e+00, %212
  %214 = fptrunc double %213 to float
  %215 = load ptr, ptr %16, align 8, !tbaa !5
  %216 = load i64, ptr %26, align 8, !tbaa !9
  %217 = getelementptr inbounds float, ptr %215, i64 %216
  store float %214, ptr %217, align 4, !tbaa !11
  br label %218

218:                                              ; preds = %206
  %219 = load i64, ptr %26, align 8, !tbaa !9
  %220 = add nsw i64 %219, 1
  store i64 %220, ptr %26, align 8, !tbaa !9
  br label %202, !llvm.loop !18

221:                                              ; preds = %202
  %222 = load float, ptr %28, align 4, !tbaa !11
  %223 = fpext float %222 to double
  %224 = call double @sqrt(double noundef %223) #4
  %225 = load ptr, ptr %18, align 8, !tbaa !5
  %226 = load float, ptr %225, align 4, !tbaa !11
  %227 = fpext float %226 to double
  %228 = call double @sqrt(double noundef %227) #4
  %229 = fdiv double %224, %228
  %230 = fptrunc double %229 to float
  %231 = load ptr, ptr %17, align 8, !tbaa !5
  store float %230, ptr %231, align 4, !tbaa !11
  br label %232

232:                                              ; preds = %221, %198
  store i32 0, ptr %10, align 4
  store i32 1, ptr %30, align 4
  br label %233

233:                                              ; preds = %232, %191, %89, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  %234 = load i32, ptr %10, align 4
  ret i32 %234
}

; 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 = !{!"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 noundef i32 @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 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.complex, ptr %3, i64 %12
  %14 = getelementptr inbounds i8, ptr %5, i64 -4
  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 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 i64 %22, 1
  %spec.select = select i1 %.not, i64 1, i64 %34
  %35 = getelementptr %struct.complex, ptr %13, i64 %spec.select
  %36 = getelementptr %struct.complex, ptr %35, i64 %11
  %37 = load float, ptr %36, align 4, !tbaa !11
  store float %37, ptr %5, align 4, !tbaa !9
  store float %37, ptr %7, align 4, !tbaa !9
  %.not8186 = icmp eq i64 %19, 1
  br i1 %.not8186, label %._crit_edge, label %.lr.ph

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

39:                                               ; preds = %.lr.ph, %39
  %.07488 = phi float [ %37, %.lr.ph ], [ %45, %39 ]
  %.07687 = phi i64 [ 2, %.lr.ph ], [ %49, %39 ]
  %40 = mul nsw i64 %.07687, %11
  %41 = getelementptr %struct.complex, ptr %38, i64 %40
  %42 = load float, ptr %41, align 4, !tbaa !11
  %43 = getelementptr inbounds float, ptr %14, i64 %.07687
  store float %42, ptr %43, align 4, !tbaa !9
  %44 = fcmp ole float %.07488, %42
  %45 = select i1 %44, float %.07488, float %42
  %46 = load float, ptr %7, align 4, !tbaa !9
  %47 = fcmp oge float %46, %42
  %48 = select i1 %47, float %46, float %42
  store float %48, ptr %7, align 4, !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 float [ %37, %33 ], [ %45, %39 ]
  %50 = fcmp ugt float %.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, 1
  %51 = icmp eq i64 %19, 1
  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, 9223372036854775806
  br label %.lr.ph96

.lr.ph92:                                         ; preds = %._crit_edge, %56
  %.190 = phi i64 [ %57, %56 ], [ 1, %._crit_edge ]
  %52 = getelementptr inbounds float, ptr %14, i64 %.190
  %53 = load float, ptr %52, align 4, !tbaa !9
  %54 = fcmp ugt float %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 ], [ %70, %.lr.ph96 ]
  %niter = phi i64 [ 0, %.lr.ph96.preheader.new ], [ %niter.next.1, %.lr.ph96 ]
  %58 = getelementptr inbounds float, ptr %14, i64 %.294
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = fpext float %59 to double
  %61 = tail call double @sqrt(double noundef %60) #4
  %62 = fdiv double 1.000000e+00, %61
  %63 = fptrunc double %62 to float
  store float %63, ptr %58, align 4, !tbaa !9
  %64 = getelementptr float, ptr %5, i64 %.294
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = fpext float %65 to double
  %67 = tail call double @sqrt(double noundef %66) #4
  %68 = fdiv double 1.000000e+00, %67
  %69 = fptrunc double %68 to float
  store float %69, ptr %64, align 4, !tbaa !9
  %70 = add nuw i64 %.294, 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_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 ], [ %70, %.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
  %71 = getelementptr inbounds float, ptr %14, i64 %.294.unr
  %72 = load float, ptr %71, align 4, !tbaa !9
  %73 = fpext float %72 to double
  %74 = tail call double @sqrt(double noundef %73) #4
  %75 = fdiv double 1.000000e+00, %74
  %76 = fptrunc double %75 to float
  store float %76, ptr %71, align 4, !tbaa !9
  br label %._crit_edge97

._crit_edge97:                                    ; preds = %._crit_edge97.unr-lcssa, %.lr.ph96.epil
  %77 = fpext float %.074.lcssa to double
  %78 = tail call double @sqrt(double noundef %77) #4
  %79 = load float, ptr %7, align 4, !tbaa !9
  %80 = fpext float %79 to double
  %81 = tail call double @sqrt(double noundef %80) #4
  %82 = fdiv double %78, %81
  %83 = fptrunc double %82 to float
  store float %83, ptr %6, align 4, !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 = !{!"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,SROAPass,SimplifyCFGPass,TailCallElimPass