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

; 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
@c_b5 = external hidden global %struct.complex, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @clarfg_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %struct.complex, align 4
  %16 = alloca %struct.complex, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.complex, ptr %26, i32 -1
  store ptr %27, ptr %9, align 8, !tbaa !5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = icmp sle i64 %29, 0
  br i1 %30, label %31, label %36

31:                                               ; preds = %5
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.complex, ptr %32, i32 0, i32 0
  store float 0.000000e+00, ptr %33, align 4, !tbaa !11
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.complex, ptr %34, i32 0, i32 1
  store float 0.000000e+00, ptr %35, align 4, !tbaa !14
  store i32 0, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %213

36:                                               ; preds = %5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = sub nsw i64 %38, 1
  store i64 %39, ptr %12, align 8, !tbaa !9
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.complex, ptr %40, i64 1
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = call double @f2c_scnrm2(ptr noundef %12, ptr noundef %41, ptr noundef %42)
  %44 = fptrunc double %43 to float
  store float %44, ptr %22, align 4, !tbaa !15
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.complex, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !11
  store float %47, ptr %21, align 4, !tbaa !15
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call double @r_imag(ptr noundef %48)
  %50 = fptrunc double %49 to float
  store float %50, ptr %20, align 4, !tbaa !15
  %51 = load float, ptr %22, align 4, !tbaa !15
  %52 = fcmp oeq float %51, 0.000000e+00
  br i1 %52, label %53, label %61

53:                                               ; preds = %36
  %54 = load float, ptr %20, align 4, !tbaa !15
  %55 = fcmp oeq float %54, 0.000000e+00
  br i1 %55, label %56, label %61

56:                                               ; preds = %53
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.complex, ptr %57, i32 0, i32 0
  store float 0.000000e+00, ptr %58, align 4, !tbaa !11
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.complex, ptr %59, i32 0, i32 1
  store float 0.000000e+00, ptr %60, align 4, !tbaa !14
  br label %212

61:                                               ; preds = %53, %36
  %62 = call double @slapy3_(ptr noundef %21, ptr noundef %20, ptr noundef %22)
  %63 = fptrunc double %62 to float
  store float %63, ptr %13, align 4, !tbaa !15
  %64 = call double @r_sign(ptr noundef %13, ptr noundef %21)
  %65 = fneg double %64
  %66 = fptrunc double %65 to float
  store float %66, ptr %19, align 4, !tbaa !15
  %67 = call double @slamch_(ptr noundef @.str)
  %68 = call double @slamch_(ptr noundef @.str.1)
  %69 = fdiv double %67, %68
  %70 = fptrunc double %69 to float
  store float %70, ptr %23, align 4, !tbaa !15
  %71 = load float, ptr %23, align 4, !tbaa !15
  %72 = fdiv float 1.000000e+00, %71
  store float %72, ptr %24, align 4, !tbaa !15
  store i64 0, ptr %18, align 8, !tbaa !9
  %73 = load float, ptr %19, align 4, !tbaa !15
  %74 = fcmp oge float %73, 0.000000e+00
  br i1 %74, label %75, label %77

75:                                               ; preds = %61
  %76 = load float, ptr %19, align 4, !tbaa !15
  br label %80

77:                                               ; preds = %61
  %78 = load float, ptr %19, align 4, !tbaa !15
  %79 = fneg float %78
  br label %80

80:                                               ; preds = %77, %75
  %81 = phi float [ %76, %75 ], [ %79, %77 ]
  %82 = fpext float %81 to double
  %83 = load float, ptr %23, align 4, !tbaa !15
  %84 = fpext float %83 to double
  %85 = fcmp olt double %82, %84
  br i1 %85, label %86, label %146

86:                                               ; preds = %80
  br label %87

87:                                               ; preds = %119, %86
  %88 = load i64, ptr %18, align 8, !tbaa !9
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %18, align 8, !tbaa !9
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = sub nsw i64 %91, 1
  store i64 %92, ptr %12, align 8, !tbaa !9
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.complex, ptr %93, i64 1
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = call i32 @f2c_csscal(ptr noundef %12, ptr noundef %24, ptr noundef %94, ptr noundef %95)
  %97 = load float, ptr %24, align 4, !tbaa !15
  %98 = load float, ptr %19, align 4, !tbaa !15
  %99 = fmul float %98, %97
  store float %99, ptr %19, align 4, !tbaa !15
  %100 = load float, ptr %24, align 4, !tbaa !15
  %101 = load float, ptr %20, align 4, !tbaa !15
  %102 = fmul float %101, %100
  store float %102, ptr %20, align 4, !tbaa !15
  %103 = load float, ptr %24, align 4, !tbaa !15
  %104 = load float, ptr %21, align 4, !tbaa !15
  %105 = fmul float %104, %103
  store float %105, ptr %21, align 4, !tbaa !15
  %106 = load float, ptr %19, align 4, !tbaa !15
  %107 = fcmp oge float %106, 0.000000e+00
  br i1 %107, label %108, label %110

108:                                              ; preds = %87
  %109 = load float, ptr %19, align 4, !tbaa !15
  br label %113

110:                                              ; preds = %87
  %111 = load float, ptr %19, align 4, !tbaa !15
  %112 = fneg float %111
  br label %113

113:                                              ; preds = %110, %108
  %114 = phi float [ %109, %108 ], [ %112, %110 ]
  %115 = fpext float %114 to double
  %116 = load float, ptr %23, align 4, !tbaa !15
  %117 = fpext float %116 to double
  %118 = fcmp olt double %115, %117
  br i1 %118, label %119, label %120

119:                                              ; preds = %113
  br label %87

120:                                              ; preds = %113
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = sub nsw i64 %122, 1
  store i64 %123, ptr %12, align 8, !tbaa !9
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.complex, ptr %124, i64 1
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = call double @f2c_scnrm2(ptr noundef %12, ptr noundef %125, ptr noundef %126)
  %128 = fptrunc double %127 to float
  store float %128, ptr %22, align 4, !tbaa !15
  %129 = load float, ptr %21, align 4, !tbaa !15
  %130 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  store float %129, ptr %130, align 4, !tbaa !11
  %131 = load float, ptr %20, align 4, !tbaa !15
  %132 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  store float %131, ptr %132, align 4, !tbaa !14
  %133 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  %134 = load float, ptr %133, align 4, !tbaa !11
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.complex, ptr %135, i32 0, i32 0
  store float %134, ptr %136, align 4, !tbaa !11
  %137 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  %138 = load float, ptr %137, align 4, !tbaa !14
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.complex, ptr %139, i32 0, i32 1
  store float %138, ptr %140, align 4, !tbaa !14
  %141 = call double @slapy3_(ptr noundef %21, ptr noundef %20, ptr noundef %22)
  %142 = fptrunc double %141 to float
  store float %142, ptr %13, align 4, !tbaa !15
  %143 = call double @r_sign(ptr noundef %13, ptr noundef %21)
  %144 = fneg double %143
  %145 = fptrunc double %144 to float
  store float %145, ptr %19, align 4, !tbaa !15
  br label %146

146:                                              ; preds = %120, %80
  %147 = load float, ptr %19, align 4, !tbaa !15
  %148 = load float, ptr %21, align 4, !tbaa !15
  %149 = fsub float %147, %148
  %150 = load float, ptr %19, align 4, !tbaa !15
  %151 = fdiv float %149, %150
  store float %151, ptr %13, align 4, !tbaa !15
  %152 = load float, ptr %20, align 4, !tbaa !15
  %153 = fneg float %152
  %154 = load float, ptr %19, align 4, !tbaa !15
  %155 = fdiv float %153, %154
  store float %155, ptr %14, align 4, !tbaa !15
  %156 = load float, ptr %13, align 4, !tbaa !15
  %157 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  store float %156, ptr %157, align 4, !tbaa !11
  %158 = load float, ptr %14, align 4, !tbaa !15
  %159 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  store float %158, ptr %159, align 4, !tbaa !14
  %160 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  %161 = load float, ptr %160, align 4, !tbaa !11
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.complex, ptr %162, i32 0, i32 0
  store float %161, ptr %163, align 4, !tbaa !11
  %164 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  %165 = load float, ptr %164, align 4, !tbaa !14
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.complex, ptr %166, i32 0, i32 1
  store float %165, ptr %167, align 4, !tbaa !14
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.complex, ptr %168, i32 0, i32 0
  %170 = load float, ptr %169, align 4, !tbaa !11
  %171 = load float, ptr %19, align 4, !tbaa !15
  %172 = fsub float %170, %171
  %173 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 0
  store float %172, ptr %173, align 4, !tbaa !11
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.complex, ptr %174, i32 0, i32 1
  %176 = load float, ptr %175, align 4, !tbaa !14
  %177 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 1
  store float %176, ptr %177, align 4, !tbaa !14
  call void @cladiv_(ptr noundef %15, ptr noundef @c_b5, ptr noundef %16)
  %178 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  %179 = load float, ptr %178, align 4, !tbaa !11
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.complex, ptr %180, i32 0, i32 0
  store float %179, ptr %181, align 4, !tbaa !11
  %182 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  %183 = load float, ptr %182, align 4, !tbaa !14
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.complex, ptr %184, i32 0, i32 1
  store float %183, ptr %185, align 4, !tbaa !14
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = sub nsw i64 %187, 1
  store i64 %188, ptr %12, align 8, !tbaa !9
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.complex, ptr %190, i64 1
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = call i32 @f2c_cscal(ptr noundef %12, ptr noundef %189, ptr noundef %191, ptr noundef %192)
  %194 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %194, ptr %12, align 8, !tbaa !9
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %195

195:                                              ; preds = %203, %146
  %196 = load i64, ptr %17, align 8, !tbaa !9
  %197 = load i64, ptr %12, align 8, !tbaa !9
  %198 = icmp sle i64 %196, %197
  br i1 %198, label %199, label %206

199:                                              ; preds = %195
  %200 = load float, ptr %23, align 4, !tbaa !15
  %201 = load float, ptr %19, align 4, !tbaa !15
  %202 = fmul float %201, %200
  store float %202, ptr %19, align 4, !tbaa !15
  br label %203

203:                                              ; preds = %199
  %204 = load i64, ptr %17, align 8, !tbaa !9
  %205 = add nsw i64 %204, 1
  store i64 %205, ptr %17, align 8, !tbaa !9
  br label %195, !llvm.loop !16

206:                                              ; preds = %195
  %207 = load float, ptr %19, align 4, !tbaa !15
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.complex, ptr %208, i32 0, i32 0
  store float %207, ptr %209, align 4, !tbaa !11
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.complex, ptr %210, i32 0, i32 1
  store float 0.000000e+00, ptr %211, align 4, !tbaa !14
  br label %212

212:                                              ; preds = %206, %56
  store i32 0, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %213

213:                                              ; preds = %212, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %214 = load i32, ptr %6, align 4
  ret i32 %214
}

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

declare double @f2c_scnrm2(ptr noundef, ptr noundef, ptr noundef) #2

declare double @r_imag(ptr noundef) #2

declare double @slapy3_(ptr noundef, ptr noundef, ptr noundef) #2

declare double @r_sign(ptr noundef, ptr noundef) #2

declare double @slamch_(ptr noundef) #2

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

declare void @cladiv_(ptr noundef, ptr noundef, ptr noundef) #2

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

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

!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, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!13, !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; 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
@c_b5 = external hidden global %struct.complex, align 4

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @clarfg_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca float, align 4
  %8 = alloca %struct.complex, align 8
  %9 = alloca %struct.complex, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  %14 = load i64, ptr %0, align 8, !tbaa !5
  %15 = icmp slt i64 %14, 1
  br i1 %15, label %16, label %18

16:                                               ; preds = %5
  store float 0.000000e+00, ptr %4, align 4, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %4, i64 4
  br label %101

18:                                               ; preds = %5
  %19 = add nsw i64 %14, -1
  store i64 %19, ptr %6, align 8, !tbaa !5
  %20 = call double @f2c_scnrm2(ptr noundef nonnull %6, ptr noundef %2, ptr noundef %3) #3
  %21 = fptrunc double %20 to float
  store float %21, ptr %12, align 4, !tbaa !12
  %22 = load float, ptr %1, align 4, !tbaa !9
  store float %22, ptr %11, align 4, !tbaa !12
  %23 = call double @r_imag(ptr noundef nonnull %1) #3
  %24 = fptrunc double %23 to float
  store float %24, ptr %10, align 4, !tbaa !12
  %25 = fcmp oeq float %21, 0.000000e+00
  %26 = fcmp oeq float %24, 0.000000e+00
  %or.cond = select i1 %25, i1 %26, i1 false
  br i1 %or.cond, label %27, label %29

27:                                               ; preds = %18
  store float 0.000000e+00, ptr %4, align 4, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %4, i64 4
  br label %101

29:                                               ; preds = %18
  %30 = call double @slapy3_(ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %31 = fptrunc double %30 to float
  store float %31, ptr %7, align 4, !tbaa !12
  %32 = call double @r_sign(ptr noundef nonnull %7, ptr noundef nonnull %11) #3
  %33 = fptrunc double %32 to float
  %34 = fneg float %33
  %35 = call double @slamch_(ptr noundef nonnull @.str) #3
  %36 = call double @slamch_(ptr noundef nonnull @.str.1) #3
  %37 = fdiv double %35, %36
  %38 = fptrunc double %37 to float
  %39 = fdiv float 1.000000e+00, %38
  store float %39, ptr %13, align 4, !tbaa !12
  %40 = fcmp ole float %33, 0.000000e+00
  %41 = select i1 %40, float %34, float %33
  %42 = fcmp olt float %41, %38
  br i1 %42, label %.preheader, label %71

.preheader:                                       ; preds = %29, %.preheader
  %.055 = phi i64 [ %43, %.preheader ], [ 0, %29 ]
  %.054 = phi float [ %48, %.preheader ], [ %34, %29 ]
  %43 = add nuw nsw i64 %.055, 1
  %44 = load i64, ptr %0, align 8, !tbaa !5
  %45 = add nsw i64 %44, -1
  store i64 %45, ptr %6, align 8, !tbaa !5
  %46 = call i32 @f2c_csscal(ptr noundef nonnull %6, ptr noundef nonnull %13, ptr noundef %2, ptr noundef %3) #3
  %47 = load float, ptr %13, align 4, !tbaa !12
  %48 = fmul float %.054, %47
  %49 = load float, ptr %10, align 4, !tbaa !12
  %50 = fmul float %47, %49
  store float %50, ptr %10, align 4, !tbaa !12
  %51 = load float, ptr %11, align 4, !tbaa !12
  %52 = fmul float %47, %51
  store float %52, ptr %11, align 4, !tbaa !12
  %53 = fcmp oge float %48, 0.000000e+00
  %54 = fneg float %48
  %55 = select i1 %53, float %48, float %54
  %56 = fcmp olt float %55, %38
  br i1 %56, label %.preheader, label %57

57:                                               ; preds = %.preheader
  %58 = load i64, ptr %0, align 8, !tbaa !5
  %59 = add nsw i64 %58, -1
  store i64 %59, ptr %6, align 8, !tbaa !5
  %60 = call double @f2c_scnrm2(ptr noundef nonnull %6, ptr noundef %2, ptr noundef %3) #3
  %61 = fptrunc double %60 to float
  store float %61, ptr %12, align 4, !tbaa !12
  %62 = load float, ptr %11, align 4, !tbaa !12
  store float %62, ptr %8, align 8, !tbaa !9
  %63 = load float, ptr %10, align 4, !tbaa !12
  %64 = getelementptr inbounds i8, ptr %8, i64 4
  store float %63, ptr %64, align 4, !tbaa !13
  store float %62, ptr %1, align 4, !tbaa !9
  %65 = getelementptr inbounds i8, ptr %1, i64 4
  store float %63, ptr %65, align 4, !tbaa !13
  %66 = call double @slapy3_(ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %67 = fptrunc double %66 to float
  store float %67, ptr %7, align 4, !tbaa !12
  %68 = call double @r_sign(ptr noundef nonnull %7, ptr noundef nonnull %11) #3
  %69 = fptrunc double %68 to float
  %70 = fneg float %69
  br label %71

71:                                               ; preds = %57, %29
  %.156 = phi i64 [ %43, %57 ], [ 0, %29 ]
  %.1 = phi float [ %70, %57 ], [ %34, %29 ]
  %72 = load float, ptr %11, align 4, !tbaa !12
  %73 = fsub float %.1, %72
  %74 = load float, ptr %10, align 4, !tbaa !12
  %75 = fneg float %74
  %76 = insertelement <2 x float> poison, float %73, i64 0
  %77 = insertelement <2 x float> %76, float %75, i64 1
  %78 = insertelement <2 x float> poison, float %.1, i64 0
  %79 = shufflevector <2 x float> %78, <2 x float> poison, <2 x i32> zeroinitializer
  %80 = fdiv <2 x float> %77, %79
  %81 = extractelement <2 x float> %80, i64 0
  store float %81, ptr %7, align 4, !tbaa !12
  store <2 x float> %80, ptr %8, align 8, !tbaa !12
  store <2 x float> %80, ptr %4, align 4, !tbaa !12
  %82 = load float, ptr %1, align 4, !tbaa !9
  %83 = fsub float %82, %.1
  store float %83, ptr %9, align 4, !tbaa !9
  %84 = getelementptr inbounds i8, ptr %1, i64 4
  %85 = load float, ptr %84, align 4, !tbaa !13
  %86 = getelementptr inbounds i8, ptr %9, i64 4
  store float %85, ptr %86, align 4, !tbaa !13
  call void @cladiv_(ptr noundef nonnull %8, ptr noundef nonnull @c_b5, ptr noundef nonnull %9) #3
  %87 = load <2 x float>, ptr %8, align 8, !tbaa !12
  store <2 x float> %87, ptr %1, align 4, !tbaa !12
  %88 = load i64, ptr %0, align 8, !tbaa !5
  %89 = add nsw i64 %88, -1
  store i64 %89, ptr %6, align 8, !tbaa !5
  %90 = call i32 @f2c_cscal(ptr noundef nonnull %6, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #3
  %.not58 = icmp slt i64 %.156, 1
  br i1 %.not58, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %71
  %xtraiter = and i64 %.156, 7
  %91 = icmp ult i64 %.156, 8
  br i1 %91, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %.156, 9223372036854775800
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.260 = phi float [ %.1, %.lr.ph.preheader.new ], [ %99, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %92 = fmul float %.260, %38
  %93 = fmul float %92, %38
  %94 = fmul float %93, %38
  %95 = fmul float %94, %38
  %96 = fmul float %95, %38
  %97 = fmul float %96, %38
  %98 = fmul float %97, %38
  %99 = fmul float %98, %38
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !14

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph.preheader ], [ %99, %.lr.ph ]
  %.260.unr = phi float [ %.1, %.lr.ph.preheader ], [ %99, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %.260.epil = phi float [ %100, %.lr.ph.epil ], [ %.260.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %100 = fmul float %.260.epil, %38
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !16

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %71
  %.2.lcssa = phi float [ %.1, %71 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %100, %.lr.ph.epil ]
  store float %.2.lcssa, ptr %1, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %27, %._crit_edge, %16
  %.sink = phi ptr [ %28, %27 ], [ %84, %._crit_edge ], [ %17, %16 ]
  store float 0.000000e+00, ptr %.sink, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  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 double @f2c_scnrm2(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @r_imag(ptr noundef) local_unnamed_addr #2

declare double @slapy3_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @r_sign(ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @slamch_(ptr noundef) local_unnamed_addr #2

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

declare void @cladiv_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; 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 = { 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}


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