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

; 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 [7 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @ctzrqf_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %struct.complex, align 4
  %19 = alloca %struct.complex, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %struct.complex, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %26, ptr %14, align 8, !tbaa !9
  %27 = load i64, ptr %14, align 8, !tbaa !9
  %28 = add nsw i64 1, %27
  store i64 %28, ptr %15, align 8, !tbaa !9
  %29 = load i64, ptr %15, align 8, !tbaa !9
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = sub i64 0, %29
  %32 = getelementptr inbounds %struct.complex, ptr %30, i64 %31
  store ptr %32, ptr %10, align 8, !tbaa !5
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.complex, ptr %33, i32 -1
  store ptr %34, ptr %12, align 8, !tbaa !5
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %35, align 8, !tbaa !9
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = icmp slt i64 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %6
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -1, ptr %40, align 8, !tbaa !9
  br label %66

41:                                               ; preds = %6
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = icmp slt i64 %43, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %41
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -2, ptr %48, align 8, !tbaa !9
  br label %65

49:                                               ; preds = %41
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp sge i64 1, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %49
  br label %59

56:                                               ; preds = %49
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load i64, ptr %57, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %56, %55
  %60 = phi i64 [ 1, %55 ], [ %58, %56 ]
  %61 = icmp slt i64 %51, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %59
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -4, ptr %63, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %62, %59
  br label %65

65:                                               ; preds = %64, %47
  br label %66

66:                                               ; preds = %65, %39
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %70, label %75

70:                                               ; preds = %66
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = sub nsw i64 0, %72
  store i64 %73, ptr %16, align 8, !tbaa !9
  %74 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %16)
  store i32 0, ptr %7, align 4
  store i32 1, ptr %24, align 4
  br label %352

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

79:                                               ; preds = %75
  store i32 0, ptr %7, align 4
  store i32 1, ptr %24, align 4
  br label %352

80:                                               ; preds = %75
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = icmp eq i64 %82, %84
  br i1 %85, label %86, label %107

86:                                               ; preds = %80
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  store i64 %88, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %103, %86
  %90 = load i64, ptr %20, align 8, !tbaa !9
  %91 = load i64, ptr %16, align 8, !tbaa !9
  %92 = icmp sle i64 %90, %91
  br i1 %92, label %93, label %106

93:                                               ; preds = %89
  %94 = load i64, ptr %20, align 8, !tbaa !9
  store i64 %94, ptr %17, align 8, !tbaa !9
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load i64, ptr %17, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.complex, ptr %95, i64 %96
  %98 = getelementptr inbounds %struct.complex, ptr %97, i32 0, i32 0
  store float 0.000000e+00, ptr %98, align 4, !tbaa !11
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = load i64, ptr %17, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.complex, ptr %99, i64 %100
  %102 = getelementptr inbounds %struct.complex, ptr %101, i32 0, i32 1
  store float 0.000000e+00, ptr %102, align 4, !tbaa !14
  br label %103

103:                                              ; preds = %93
  %104 = load i64, ptr %20, align 8, !tbaa !9
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr %20, align 8, !tbaa !9
  br label %89, !llvm.loop !15

106:                                              ; preds = %89
  br label %351

107:                                              ; preds = %80
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %16, align 8, !tbaa !9
  %111 = load i64, ptr %16, align 8, !tbaa !9
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = icmp sle i64 %111, %113
  br i1 %114, label %115, label %117

115:                                              ; preds = %107
  %116 = load i64, ptr %16, align 8, !tbaa !9
  br label %120

117:                                              ; preds = %107
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load i64, ptr %118, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %117, %115
  %121 = phi i64 [ %116, %115 ], [ %119, %117 ]
  store i64 %121, ptr %22, align 8, !tbaa !9
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i64, ptr %122, align 8, !tbaa !9
  store i64 %123, ptr %21, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %347, %120
  %125 = load i64, ptr %21, align 8, !tbaa !9
  %126 = icmp sge i64 %125, 1
  br i1 %126, label %127, label %350

127:                                              ; preds = %124
  %128 = load i64, ptr %21, align 8, !tbaa !9
  %129 = load i64, ptr %21, align 8, !tbaa !9
  %130 = load i64, ptr %14, align 8, !tbaa !9
  %131 = mul nsw i64 %129, %130
  %132 = add nsw i64 %128, %131
  store i64 %132, ptr %16, align 8, !tbaa !9
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = load i64, ptr %21, align 8, !tbaa !9
  %135 = load i64, ptr %21, align 8, !tbaa !9
  %136 = load i64, ptr %14, align 8, !tbaa !9
  %137 = mul nsw i64 %135, %136
  %138 = add nsw i64 %134, %137
  %139 = getelementptr inbounds %struct.complex, ptr %133, i64 %138
  call void @r_cnjg(ptr noundef %18, ptr noundef %139)
  %140 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %141 = load float, ptr %140, align 4, !tbaa !11
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = load i64, ptr %16, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.complex, ptr %142, i64 %143
  %145 = getelementptr inbounds %struct.complex, ptr %144, i32 0, i32 0
  store float %141, ptr %145, align 4, !tbaa !11
  %146 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %147 = load float, ptr %146, align 4, !tbaa !14
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load i64, ptr %16, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.complex, ptr %148, i64 %149
  %151 = getelementptr inbounds %struct.complex, ptr %150, i32 0, i32 1
  store float %147, ptr %151, align 4, !tbaa !14
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i64, ptr %154, align 8, !tbaa !9
  %156 = sub nsw i64 %153, %155
  store i64 %156, ptr %16, align 8, !tbaa !9
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = load i64, ptr %21, align 8, !tbaa !9
  %159 = load i64, ptr %22, align 8, !tbaa !9
  %160 = load i64, ptr %14, align 8, !tbaa !9
  %161 = mul nsw i64 %159, %160
  %162 = add nsw i64 %158, %161
  %163 = getelementptr inbounds %struct.complex, ptr %157, i64 %162
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = call i32 @clacgv_(ptr noundef %16, ptr noundef %163, ptr noundef %164)
  %166 = load i64, ptr %21, align 8, !tbaa !9
  %167 = load i64, ptr %21, align 8, !tbaa !9
  %168 = load i64, ptr %14, align 8, !tbaa !9
  %169 = mul nsw i64 %167, %168
  %170 = add nsw i64 %166, %169
  store i64 %170, ptr %16, align 8, !tbaa !9
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = load i64, ptr %16, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.complex, ptr %171, i64 %172
  %174 = getelementptr inbounds %struct.complex, ptr %173, i32 0, i32 0
  %175 = load float, ptr %174, align 4, !tbaa !11
  %176 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 0
  store float %175, ptr %176, align 4, !tbaa !11
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = load i64, ptr %16, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.complex, ptr %177, i64 %178
  %180 = getelementptr inbounds %struct.complex, ptr %179, i32 0, i32 1
  %181 = load float, ptr %180, align 4, !tbaa !14
  %182 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 1
  store float %181, ptr %182, align 4, !tbaa !14
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = load i64, ptr %183, align 8, !tbaa !9
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = load i64, ptr %185, align 8, !tbaa !9
  %187 = sub nsw i64 %184, %186
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %16, align 8, !tbaa !9
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = load i64, ptr %21, align 8, !tbaa !9
  %191 = load i64, ptr %22, align 8, !tbaa !9
  %192 = load i64, ptr %14, align 8, !tbaa !9
  %193 = mul nsw i64 %191, %192
  %194 = add nsw i64 %190, %193
  %195 = getelementptr inbounds %struct.complex, ptr %189, i64 %194
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = load i64, ptr %21, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct.complex, ptr %197, i64 %198
  %200 = call i32 @clarfp_(ptr noundef %16, ptr noundef %23, ptr noundef %195, ptr noundef %196, ptr noundef %199)
  %201 = load i64, ptr %21, align 8, !tbaa !9
  %202 = load i64, ptr %21, align 8, !tbaa !9
  %203 = load i64, ptr %14, align 8, !tbaa !9
  %204 = mul nsw i64 %202, %203
  %205 = add nsw i64 %201, %204
  store i64 %205, ptr %16, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 0
  %207 = load float, ptr %206, align 4, !tbaa !11
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  %209 = load i64, ptr %16, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.complex, ptr %208, i64 %209
  %211 = getelementptr inbounds %struct.complex, ptr %210, i32 0, i32 0
  store float %207, ptr %211, align 4, !tbaa !11
  %212 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 1
  %213 = load float, ptr %212, align 4, !tbaa !14
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  %215 = load i64, ptr %16, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct.complex, ptr %214, i64 %215
  %217 = getelementptr inbounds %struct.complex, ptr %216, i32 0, i32 1
  store float %213, ptr %217, align 4, !tbaa !14
  %218 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %218, ptr %16, align 8, !tbaa !9
  %219 = load ptr, ptr %12, align 8, !tbaa !5
  %220 = load i64, ptr %21, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.complex, ptr %219, i64 %220
  call void @r_cnjg(ptr noundef %18, ptr noundef %221)
  %222 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %223 = load float, ptr %222, align 4, !tbaa !11
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  %225 = load i64, ptr %16, align 8, !tbaa !9
  %226 = getelementptr inbounds %struct.complex, ptr %224, i64 %225
  %227 = getelementptr inbounds %struct.complex, ptr %226, i32 0, i32 0
  store float %223, ptr %227, align 4, !tbaa !11
  %228 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %229 = load float, ptr %228, align 4, !tbaa !14
  %230 = load ptr, ptr %12, align 8, !tbaa !5
  %231 = load i64, ptr %16, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.complex, ptr %230, i64 %231
  %233 = getelementptr inbounds %struct.complex, ptr %232, i32 0, i32 1
  store float %229, ptr %233, align 4, !tbaa !14
  %234 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %234, ptr %16, align 8, !tbaa !9
  %235 = load ptr, ptr %12, align 8, !tbaa !5
  %236 = load i64, ptr %16, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.complex, ptr %235, i64 %236
  %238 = getelementptr inbounds %struct.complex, ptr %237, i32 0, i32 0
  %239 = load float, ptr %238, align 4, !tbaa !11
  %240 = fcmp une float %239, 0.000000e+00
  br i1 %240, label %248, label %241

241:                                              ; preds = %127
  %242 = load ptr, ptr %12, align 8, !tbaa !5
  %243 = load i64, ptr %16, align 8, !tbaa !9
  %244 = getelementptr inbounds %struct.complex, ptr %242, i64 %243
  %245 = getelementptr inbounds %struct.complex, ptr %244, i32 0, i32 1
  %246 = load float, ptr %245, align 4, !tbaa !14
  %247 = fcmp une float %246, 0.000000e+00
  br i1 %247, label %248, label %346

248:                                              ; preds = %241, %127
  %249 = load i64, ptr %21, align 8, !tbaa !9
  %250 = icmp sgt i64 %249, 1
  br i1 %250, label %251, label %346

251:                                              ; preds = %248
  %252 = load i64, ptr %21, align 8, !tbaa !9
  %253 = sub nsw i64 %252, 1
  store i64 %253, ptr %16, align 8, !tbaa !9
  %254 = load ptr, ptr %10, align 8, !tbaa !5
  %255 = load i64, ptr %21, align 8, !tbaa !9
  %256 = load i64, ptr %14, align 8, !tbaa !9
  %257 = mul nsw i64 %255, %256
  %258 = add nsw i64 %257, 1
  %259 = getelementptr inbounds %struct.complex, ptr %254, i64 %258
  %260 = load ptr, ptr %12, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.complex, ptr %260, i64 1
  %262 = call i32 @f2c_ccopy(ptr noundef %16, ptr noundef %259, ptr noundef @c__1, ptr noundef %261, ptr noundef @c__1)
  %263 = load i64, ptr %21, align 8, !tbaa !9
  %264 = sub nsw i64 %263, 1
  store i64 %264, ptr %16, align 8, !tbaa !9
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = load i64, ptr %265, align 8, !tbaa !9
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  %268 = load i64, ptr %267, align 8, !tbaa !9
  %269 = sub nsw i64 %266, %268
  store i64 %269, ptr %17, align 8, !tbaa !9
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  %271 = load i64, ptr %22, align 8, !tbaa !9
  %272 = load i64, ptr %14, align 8, !tbaa !9
  %273 = mul nsw i64 %271, %272
  %274 = add nsw i64 %273, 1
  %275 = getelementptr inbounds %struct.complex, ptr %270, i64 %274
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  %277 = load ptr, ptr %10, align 8, !tbaa !5
  %278 = load i64, ptr %21, align 8, !tbaa !9
  %279 = load i64, ptr %22, align 8, !tbaa !9
  %280 = load i64, ptr %14, align 8, !tbaa !9
  %281 = mul nsw i64 %279, %280
  %282 = add nsw i64 %278, %281
  %283 = getelementptr inbounds %struct.complex, ptr %277, i64 %282
  %284 = load ptr, ptr %11, align 8, !tbaa !5
  %285 = load ptr, ptr %12, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.complex, ptr %285, i64 1
  %287 = call i32 @f2c_cgemv(ptr noundef @.str.1, ptr noundef %16, ptr noundef %17, ptr noundef @c_b1, ptr noundef %275, ptr noundef %276, ptr noundef %283, ptr noundef %284, ptr noundef @c_b1, ptr noundef %286, ptr noundef @c__1)
  %288 = load i64, ptr %21, align 8, !tbaa !9
  %289 = sub nsw i64 %288, 1
  store i64 %289, ptr %16, align 8, !tbaa !9
  %290 = load ptr, ptr %12, align 8, !tbaa !5
  %291 = load i64, ptr %21, align 8, !tbaa !9
  %292 = getelementptr inbounds %struct.complex, ptr %290, i64 %291
  call void @r_cnjg(ptr noundef %19, ptr noundef %292)
  %293 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 0
  %294 = load float, ptr %293, align 4, !tbaa !11
  %295 = fneg float %294
  %296 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  store float %295, ptr %296, align 4, !tbaa !11
  %297 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 1
  %298 = load float, ptr %297, align 4, !tbaa !14
  %299 = fneg float %298
  %300 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  store float %299, ptr %300, align 4, !tbaa !14
  %301 = load ptr, ptr %12, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.complex, ptr %301, i64 1
  %303 = load ptr, ptr %10, align 8, !tbaa !5
  %304 = load i64, ptr %21, align 8, !tbaa !9
  %305 = load i64, ptr %14, align 8, !tbaa !9
  %306 = mul nsw i64 %304, %305
  %307 = add nsw i64 %306, 1
  %308 = getelementptr inbounds %struct.complex, ptr %303, i64 %307
  %309 = call i32 @f2c_caxpy(ptr noundef %16, ptr noundef %18, ptr noundef %302, ptr noundef @c__1, ptr noundef %308, ptr noundef @c__1)
  %310 = load i64, ptr %21, align 8, !tbaa !9
  %311 = sub nsw i64 %310, 1
  store i64 %311, ptr %16, align 8, !tbaa !9
  %312 = load ptr, ptr %9, align 8, !tbaa !5
  %313 = load i64, ptr %312, align 8, !tbaa !9
  %314 = load ptr, ptr %8, align 8, !tbaa !5
  %315 = load i64, ptr %314, align 8, !tbaa !9
  %316 = sub nsw i64 %313, %315
  store i64 %316, ptr %17, align 8, !tbaa !9
  %317 = load ptr, ptr %12, align 8, !tbaa !5
  %318 = load i64, ptr %21, align 8, !tbaa !9
  %319 = getelementptr inbounds %struct.complex, ptr %317, i64 %318
  call void @r_cnjg(ptr noundef %19, ptr noundef %319)
  %320 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 0
  %321 = load float, ptr %320, align 4, !tbaa !11
  %322 = fneg float %321
  %323 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  store float %322, ptr %323, align 4, !tbaa !11
  %324 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 1
  %325 = load float, ptr %324, align 4, !tbaa !14
  %326 = fneg float %325
  %327 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  store float %326, ptr %327, align 4, !tbaa !14
  %328 = load ptr, ptr %12, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.complex, ptr %328, i64 1
  %330 = load ptr, ptr %10, align 8, !tbaa !5
  %331 = load i64, ptr %21, align 8, !tbaa !9
  %332 = load i64, ptr %22, align 8, !tbaa !9
  %333 = load i64, ptr %14, align 8, !tbaa !9
  %334 = mul nsw i64 %332, %333
  %335 = add nsw i64 %331, %334
  %336 = getelementptr inbounds %struct.complex, ptr %330, i64 %335
  %337 = load ptr, ptr %11, align 8, !tbaa !5
  %338 = load ptr, ptr %10, align 8, !tbaa !5
  %339 = load i64, ptr %22, align 8, !tbaa !9
  %340 = load i64, ptr %14, align 8, !tbaa !9
  %341 = mul nsw i64 %339, %340
  %342 = add nsw i64 %341, 1
  %343 = getelementptr inbounds %struct.complex, ptr %338, i64 %342
  %344 = load ptr, ptr %11, align 8, !tbaa !5
  %345 = call i32 @f2c_cgerc(ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %329, ptr noundef @c__1, ptr noundef %336, ptr noundef %337, ptr noundef %343, ptr noundef %344)
  br label %346

346:                                              ; preds = %251, %248, %241
  br label %347

347:                                              ; preds = %346
  %348 = load i64, ptr %21, align 8, !tbaa !9
  %349 = add nsw i64 %348, -1
  store i64 %349, ptr %21, align 8, !tbaa !9
  br label %124, !llvm.loop !17

350:                                              ; preds = %124
  br label %351

351:                                              ; preds = %350, %106
  store i32 0, ptr %7, align 4
  store i32 1, ptr %24, align 4
  br label %352

352:                                              ; preds = %351, %79, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %14) #3
  %353 = load i32, ptr %7, align 4
  ret i32 %353
}

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

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

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

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

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

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

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

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

declare i32 @f2c_cgerc(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !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 [7 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4

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

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

21:                                               ; preds = %18
  %22 = load i64, ptr %3, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %16, i64 1)
  %23 = icmp slt i64 %22, %spec.select
  br i1 %23, label %.thread, label %25

.thread:                                          ; preds = %21, %18, %6
  %.sink = phi i64 [ -1, %6 ], [ -2, %18 ], [ -4, %21 ]
  %.neg = phi i64 [ 1, %6 ], [ 2, %18 ], [ 4, %21 ]
  store i64 %.sink, ptr %5, align 8, !tbaa !5
  store i64 %.neg, ptr %7, align 8, !tbaa !5
  %24 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %7) #5
  br label %.loopexit128

25:                                               ; preds = %21
  %26 = icmp eq i64 %16, 0
  br i1 %26, label %.loopexit128, label %27

27:                                               ; preds = %25
  %28 = icmp eq i64 %16, %19
  br i1 %28, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %27
  %29 = add nuw nsw i64 %16, 1
  %invariant.gep = getelementptr i8, ptr %14, i64 8
  %.not125.not = icmp ult i64 %16, %19
  %. = select i1 %.not125.not, i64 %29, i64 %19
  %30 = mul nsw i64 %., %12
  %invariant.gep132 = getelementptr %struct.complex, ptr %14, i64 %30
  %gep130 = getelementptr %struct.complex, ptr %invariant.gep, i64 %30
  br label %31

31:                                               ; preds = %.lr.ph, %77
  %.0118131 = phi i64 [ %16, %.lr.ph ], [ %78, %77 ]
  %32 = mul nsw i64 %.0118131, %12
  %33 = add nsw i64 %32, %.0118131
  store i64 %33, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.complex, ptr %14, i64 %33
  call void @r_cnjg(ptr noundef nonnull %9, ptr noundef %34) #5
  %35 = load i64, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.complex, ptr %14, i64 %35
  %37 = load <2 x float>, ptr %9, align 8, !tbaa !9
  store <2 x float> %37, ptr %36, align 4, !tbaa !9
  %38 = load i64, ptr %1, align 8, !tbaa !5
  %39 = load i64, ptr %0, align 8, !tbaa !5
  %40 = sub nsw i64 %38, %39
  store i64 %40, ptr %7, align 8, !tbaa !5
  %gep133 = getelementptr %struct.complex, ptr %invariant.gep132, i64 %.0118131
  %41 = call i32 @clacgv_(ptr noundef nonnull %7, ptr noundef %gep133, ptr noundef nonnull %3) #5
  %42 = load <2 x float>, ptr %34, align 4, !tbaa !9
  store <2 x float> %42, ptr %11, align 8, !tbaa !9
  %43 = load i64, ptr %1, align 8, !tbaa !5
  %44 = load i64, ptr %0, align 8, !tbaa !5
  %45 = add i64 %43, 1
  %46 = sub i64 %45, %44
  store i64 %46, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.complex, ptr %15, i64 %.0118131
  %48 = call i32 @clarfp_(ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef %gep133, ptr noundef nonnull %3, ptr noundef nonnull %47) #5
  %49 = load <2 x float>, ptr %11, align 8, !tbaa !9
  store <2 x float> %49, ptr %34, align 4, !tbaa !9
  store i64 %.0118131, ptr %7, align 8, !tbaa !5
  call void @r_cnjg(ptr noundef nonnull %9, ptr noundef nonnull %47) #5
  %50 = load i64, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.complex, ptr %15, i64 %50
  %52 = load <2 x float>, ptr %9, align 8, !tbaa !9
  store <2 x float> %52, ptr %51, align 4, !tbaa !9
  store i64 %.0118131, ptr %7, align 8, !tbaa !5
  %53 = load float, ptr %47, align 4, !tbaa !11
  %54 = fcmp une float %53, 0.000000e+00
  br i1 %54, label %60, label %55

55:                                               ; preds = %31
  %56 = getelementptr inbounds i8, ptr %47, i64 4
  %57 = load float, ptr %56, align 4, !tbaa !13
  %58 = fcmp une float %57, 0.000000e+00
  %59 = icmp ne i64 %.0118131, 1
  %or.cond = and i1 %59, %58
  br i1 %or.cond, label %61, label %77

60:                                               ; preds = %31
  %.old1.not = icmp eq i64 %.0118131, 1
  br i1 %.old1.not, label %.loopexit128, label %61

61:                                               ; preds = %55, %60
  %62 = add nsw i64 %.0118131, -1
  store i64 %62, ptr %7, align 8, !tbaa !5
  %gep = getelementptr %struct.complex, ptr %invariant.gep, i64 %32
  %63 = call i32 @f2c_ccopy(ptr noundef nonnull %7, ptr noundef %gep, ptr noundef nonnull @c__1, ptr noundef nonnull %4, ptr noundef nonnull @c__1) #5
  store i64 %62, ptr %7, align 8, !tbaa !5
  %64 = load i64, ptr %1, align 8, !tbaa !5
  %65 = load i64, ptr %0, align 8, !tbaa !5
  %66 = sub nsw i64 %64, %65
  store i64 %66, ptr %8, align 8, !tbaa !5
  %67 = call i32 @f2c_cgemv(ptr noundef nonnull @.str.1, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull @c_b1, ptr noundef %gep130, ptr noundef nonnull %3, ptr noundef %gep133, ptr noundef nonnull %3, ptr noundef nonnull @c_b1, ptr noundef nonnull %4, ptr noundef nonnull @c__1) #5
  store i64 %62, ptr %7, align 8, !tbaa !5
  call void @r_cnjg(ptr noundef nonnull %10, ptr noundef nonnull %47) #5
  %68 = load <2 x float>, ptr %10, align 8, !tbaa !9
  %69 = fneg <2 x float> %68
  store <2 x float> %69, ptr %9, align 8, !tbaa !9
  %70 = call i32 @f2c_caxpy(ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef %gep, ptr noundef nonnull @c__1) #5
  store i64 %62, ptr %7, align 8, !tbaa !5
  %71 = load i64, ptr %1, align 8, !tbaa !5
  %72 = load i64, ptr %0, align 8, !tbaa !5
  %73 = sub nsw i64 %71, %72
  store i64 %73, ptr %8, align 8, !tbaa !5
  call void @r_cnjg(ptr noundef nonnull %10, ptr noundef nonnull %47) #5
  %74 = load <2 x float>, ptr %10, align 8, !tbaa !9
  %75 = fneg <2 x float> %74
  store <2 x float> %75, ptr %9, align 8, !tbaa !9
  %76 = call i32 @f2c_cgerc(ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef %gep133, ptr noundef nonnull %3, ptr noundef %gep130, ptr noundef nonnull %3) #5
  br label %77

77:                                               ; preds = %55, %61
  %78 = add nsw i64 %.0118131, -1
  %79 = icmp sgt i64 %.0118131, 1
  br i1 %79, label %31, label %.loopexit128, !llvm.loop !14

.loopexit:                                        ; preds = %27
  %80 = shl nuw i64 %16, 3
  tail call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 %80, i1 false), !tbaa !9
  br label %.loopexit128

.loopexit128:                                     ; preds = %60, %77, %.loopexit, %25, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  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 i32 @xerbla_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

declare i32 @f2c_cgerc(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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