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

; 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
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @cpbcon_(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, ptr noundef %9) #0 {
  %11 = alloca i32, align 4
  %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 ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca float, align 4
  %30 = alloca [3 x i64], align 16
  %31 = alloca i64, align 8
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca [1 x i8], align 1
  %36 = alloca float, align 4
  %37 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  store i64 %39, ptr %22, align 8, !tbaa !9
  %40 = load i64, ptr %22, align 8, !tbaa !9
  %41 = add nsw i64 1, %40
  store i64 %41, ptr %23, align 8, !tbaa !9
  %42 = load i64, ptr %23, align 8, !tbaa !9
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = sub i64 0, %42
  %45 = getelementptr inbounds %struct.complex, ptr %43, i64 %44
  store ptr %45, ptr %15, align 8, !tbaa !5
  %46 = load ptr, ptr %19, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.complex, ptr %46, i32 -1
  store ptr %47, ptr %19, align 8, !tbaa !5
  %48 = load ptr, ptr %20, align 8, !tbaa !5
  %49 = getelementptr inbounds float, ptr %48, i32 -1
  store ptr %49, ptr %20, align 8, !tbaa !5
  %50 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 0, ptr %50, align 8, !tbaa !9
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = call i64 @lsame_(ptr noundef %51, ptr noundef @.str)
  store i64 %52, ptr %31, align 8, !tbaa !9
  %53 = load i64, ptr %31, align 8, !tbaa !9
  %54 = icmp ne i64 %53, 0
  br i1 %54, label %61, label %55

55:                                               ; preds = %10
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = call i64 @lsame_(ptr noundef %56, ptr noundef @.str.1)
  %58 = icmp ne i64 %57, 0
  br i1 %58, label %61, label %59

59:                                               ; preds = %55
  %60 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -1, ptr %60, align 8, !tbaa !9
  br label %92

61:                                               ; preds = %55, %10
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = icmp slt i64 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %61
  %66 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -2, ptr %66, align 8, !tbaa !9
  br label %91

67:                                               ; preds = %61
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = icmp slt i64 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -3, ptr %72, align 8, !tbaa !9
  br label %90

73:                                               ; preds = %67
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = load i64, ptr %74, align 8, !tbaa !9
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = add nsw i64 %77, 1
  %79 = icmp slt i64 %75, %78
  br i1 %79, label %80, label %82

80:                                               ; preds = %73
  %81 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -5, ptr %81, align 8, !tbaa !9
  br label %89

82:                                               ; preds = %73
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = load float, ptr %83, align 4, !tbaa !11
  %85 = fcmp olt float %84, 0.000000e+00
  br i1 %85, label %86, label %88

86:                                               ; preds = %82
  %87 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -6, ptr %87, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %86, %82
  br label %89

89:                                               ; preds = %88, %80
  br label %90

90:                                               ; preds = %89, %71
  br label %91

91:                                               ; preds = %90, %65
  br label %92

92:                                               ; preds = %91, %59
  %93 = load ptr, ptr %21, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %96, label %101

96:                                               ; preds = %92
  %97 = load ptr, ptr %21, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = sub nsw i64 0, %98
  store i64 %99, ptr %24, align 8, !tbaa !9
  %100 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %24)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %37, align 4
  br label %261

101:                                              ; preds = %92
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  store float 0.000000e+00, ptr %102, align 4, !tbaa !11
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = icmp eq i64 %104, 0
  br i1 %105, label %106, label %108

106:                                              ; preds = %101
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  store float 1.000000e+00, ptr %107, align 4, !tbaa !11
  store i32 0, ptr %11, align 4
  store i32 1, ptr %37, align 4
  br label %261

108:                                              ; preds = %101
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = load float, ptr %109, align 4, !tbaa !11
  %111 = fcmp oeq float %110, 0.000000e+00
  br i1 %111, label %112, label %113

112:                                              ; preds = %108
  store i32 0, ptr %11, align 4
  store i32 1, ptr %37, align 4
  br label %261

113:                                              ; preds = %108
  br label %114

114:                                              ; preds = %113
  %115 = call double @slamch_(ptr noundef @.str.3)
  %116 = fptrunc double %115 to float
  store float %116, ptr %36, align 4, !tbaa !11
  store i64 0, ptr %28, align 8, !tbaa !9
  %117 = getelementptr inbounds [1 x i8], ptr %35, i64 0, i64 0
  store i8 78, ptr %117, align 1, !tbaa !13
  br label %118

118:                                              ; preds = %248, %114
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load ptr, ptr %19, align 8, !tbaa !5
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = add nsw i64 %122, 1
  %124 = getelementptr inbounds %struct.complex, ptr %120, i64 %123
  %125 = load ptr, ptr %19, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.complex, ptr %125, i64 1
  %127 = getelementptr inbounds [3 x i64], ptr %30, i64 0, i64 0
  %128 = call i32 @clacn2_(ptr noundef %119, ptr noundef %124, ptr noundef %126, ptr noundef %34, ptr noundef %28, ptr noundef %127)
  %129 = load i64, ptr %28, align 8, !tbaa !9
  %130 = icmp ne i64 %129, 0
  br i1 %130, label %131, label %249

131:                                              ; preds = %118
  %132 = load i64, ptr %31, align 8, !tbaa !9
  %133 = icmp ne i64 %132, 0
  br i1 %133, label %134, label %162

134:                                              ; preds = %131
  %135 = getelementptr inbounds [1 x i8], ptr %35, i64 0, i64 0
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load i64, ptr %23, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.complex, ptr %138, i64 %139
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load ptr, ptr %19, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.complex, ptr %142, i64 1
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  %145 = getelementptr inbounds float, ptr %144, i64 1
  %146 = load ptr, ptr %21, align 8, !tbaa !5
  %147 = call i32 @clatbs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %135, ptr noundef %136, ptr noundef %137, ptr noundef %140, ptr noundef %141, ptr noundef %143, ptr noundef %32, ptr noundef %145, ptr noundef %146)
  %148 = getelementptr inbounds [1 x i8], ptr %35, i64 0, i64 0
  store i8 89, ptr %148, align 1, !tbaa !13
  %149 = getelementptr inbounds [1 x i8], ptr %35, i64 0, i64 0
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  %153 = load i64, ptr %23, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.complex, ptr %152, i64 %153
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.complex, ptr %156, i64 1
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = getelementptr inbounds float, ptr %158, i64 1
  %160 = load ptr, ptr %21, align 8, !tbaa !5
  %161 = call i32 @clatbs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %149, ptr noundef %150, ptr noundef %151, ptr noundef %154, ptr noundef %155, ptr noundef %157, ptr noundef %33, ptr noundef %159, ptr noundef %160)
  br label %190

162:                                              ; preds = %131
  %163 = getelementptr inbounds [1 x i8], ptr %35, i64 0, i64 0
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load ptr, ptr %15, align 8, !tbaa !5
  %167 = load i64, ptr %23, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.complex, ptr %166, i64 %167
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.complex, ptr %170, i64 1
  %172 = load ptr, ptr %20, align 8, !tbaa !5
  %173 = getelementptr inbounds float, ptr %172, i64 1
  %174 = load ptr, ptr %21, align 8, !tbaa !5
  %175 = call i32 @clatbs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %163, ptr noundef %164, ptr noundef %165, ptr noundef %168, ptr noundef %169, ptr noundef %171, ptr noundef %32, ptr noundef %173, ptr noundef %174)
  %176 = getelementptr inbounds [1 x i8], ptr %35, i64 0, i64 0
  store i8 89, ptr %176, align 1, !tbaa !13
  %177 = getelementptr inbounds [1 x i8], ptr %35, i64 0, i64 0
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = load ptr, ptr %14, align 8, !tbaa !5
  %180 = load ptr, ptr %15, align 8, !tbaa !5
  %181 = load i64, ptr %23, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.complex, ptr %180, i64 %181
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.complex, ptr %184, i64 1
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = getelementptr inbounds float, ptr %186, i64 1
  %188 = load ptr, ptr %21, align 8, !tbaa !5
  %189 = call i32 @clatbs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %182, ptr noundef %183, ptr noundef %185, ptr noundef %33, ptr noundef %187, ptr noundef %188)
  br label %190

190:                                              ; preds = %162, %134
  %191 = load float, ptr %32, align 4, !tbaa !11
  %192 = load float, ptr %33, align 4, !tbaa !11
  %193 = fmul float %191, %192
  store float %193, ptr %29, align 4, !tbaa !11
  %194 = load float, ptr %29, align 4, !tbaa !11
  %195 = fcmp une float %194, 1.000000e+00
  br i1 %195, label %196, label %248

196:                                              ; preds = %190
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.complex, ptr %198, i64 1
  %200 = call i64 @f2c_icamax(ptr noundef %197, ptr noundef %199, ptr noundef @c__1)
  store i64 %200, ptr %27, align 8, !tbaa !9
  %201 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %201, ptr %24, align 8, !tbaa !9
  %202 = load float, ptr %29, align 4, !tbaa !11
  %203 = fpext float %202 to double
  %204 = load ptr, ptr %19, align 8, !tbaa !5
  %205 = load i64, ptr %24, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.complex, ptr %204, i64 %205
  %207 = getelementptr inbounds %struct.complex, ptr %206, i32 0, i32 0
  %208 = load float, ptr %207, align 4, !tbaa !14
  store float %208, ptr %25, align 4, !tbaa !11
  %209 = load float, ptr %25, align 4, !tbaa !11
  %210 = fcmp oge float %209, 0.000000e+00
  br i1 %210, label %211, label %213

211:                                              ; preds = %196
  %212 = load float, ptr %25, align 4, !tbaa !11
  br label %216

213:                                              ; preds = %196
  %214 = load float, ptr %25, align 4, !tbaa !11
  %215 = fneg float %214
  br label %216

216:                                              ; preds = %213, %211
  %217 = phi float [ %212, %211 ], [ %215, %213 ]
  %218 = fpext float %217 to double
  %219 = load ptr, ptr %19, align 8, !tbaa !5
  %220 = load i64, ptr %27, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.complex, ptr %219, i64 %220
  %222 = call double @r_imag(ptr noundef %221)
  %223 = fptrunc double %222 to float
  store float %223, ptr %26, align 4, !tbaa !11
  %224 = load float, ptr %26, align 4, !tbaa !11
  %225 = fcmp oge float %224, 0.000000e+00
  br i1 %225, label %226, label %228

226:                                              ; preds = %216
  %227 = load float, ptr %26, align 4, !tbaa !11
  br label %231

228:                                              ; preds = %216
  %229 = load float, ptr %26, align 4, !tbaa !11
  %230 = fneg float %229
  br label %231

231:                                              ; preds = %228, %226
  %232 = phi float [ %227, %226 ], [ %230, %228 ]
  %233 = fpext float %232 to double
  %234 = fadd double %218, %233
  %235 = load float, ptr %36, align 4, !tbaa !11
  %236 = fpext float %235 to double
  %237 = fmul double %234, %236
  %238 = fcmp olt double %203, %237
  br i1 %238, label %242, label %239

239:                                              ; preds = %231
  %240 = load float, ptr %29, align 4, !tbaa !11
  %241 = fcmp oeq float %240, 0.000000e+00
  br i1 %241, label %242, label %243

242:                                              ; preds = %239, %231
  br label %260

243:                                              ; preds = %239
  %244 = load ptr, ptr %13, align 8, !tbaa !5
  %245 = load ptr, ptr %19, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.complex, ptr %245, i64 1
  %247 = call i32 @csrscl_(ptr noundef %244, ptr noundef %29, ptr noundef %246, ptr noundef @c__1)
  br label %248

248:                                              ; preds = %243, %190
  br label %118

249:                                              ; preds = %118
  %250 = load float, ptr %34, align 4, !tbaa !11
  %251 = fcmp une float %250, 0.000000e+00
  br i1 %251, label %252, label %259

252:                                              ; preds = %249
  %253 = load float, ptr %34, align 4, !tbaa !11
  %254 = fdiv float 1.000000e+00, %253
  %255 = load ptr, ptr %17, align 8, !tbaa !5
  %256 = load float, ptr %255, align 4, !tbaa !11
  %257 = fdiv float %254, %256
  %258 = load ptr, ptr %18, align 8, !tbaa !5
  store float %257, ptr %258, align 4, !tbaa !11
  br label %259

259:                                              ; preds = %252, %249
  br label %260

260:                                              ; preds = %259, %242
  store i32 0, ptr %11, align 4
  store i32 1, ptr %37, align 4
  br label %261

261:                                              ; preds = %260, %112, %106, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %262 = load i32, ptr %11, align 4
  ret i32 %262
}

; 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

declare double @slamch_(ptr noundef) #2

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

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

declare i64 @f2c_icamax(ptr noundef, ptr noundef, ptr noundef) #2

declare double @r_imag(ptr noundef) #2

declare i32 @csrscl_(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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"", !12, i64 0, !12, i64 4}


; 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
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @cpbcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef writeonly %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca float, align 4
  %14 = alloca [3 x i64], align 16
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #3
  %19 = getelementptr inbounds i8, ptr %7, i64 -8
  store i64 0, ptr %9, align 8, !tbaa !5
  %20 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %.not = icmp eq i64 %20, 0
  br i1 %.not, label %21, label %23

21:                                               ; preds = %10
  %22 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not83 = icmp eq i64 %22, 0
  br i1 %.not83, label %.thread.sink.split, label %23

23:                                               ; preds = %21, %10
  %24 = load i64, ptr %1, align 8, !tbaa !5
  %25 = icmp slt i64 %24, 0
  br i1 %25, label %.thread.sink.split, label %26

26:                                               ; preds = %23
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = icmp slt i64 %27, 0
  br i1 %28, label %.thread.sink.split, label %29

29:                                               ; preds = %26
  %30 = load i64, ptr %4, align 8, !tbaa !5
  %.not84 = icmp sgt i64 %30, %27
  br i1 %.not84, label %31, label %.thread.sink.split

31:                                               ; preds = %29
  %32 = load float, ptr %5, align 4, !tbaa !9
  %33 = fcmp olt float %32, 0.000000e+00
  br i1 %33, label %.thread.sink.split, label %34

34:                                               ; preds = %31
  %.pr = load i64, ptr %9, align 8, !tbaa !5
  %.not85 = icmp eq i64 %.pr, 0
  br i1 %.not85, label %38, label %.thread

.thread.sink.split:                               ; preds = %31, %29, %26, %23, %21
  %.sink = phi i64 [ -1, %21 ], [ -2, %23 ], [ -3, %26 ], [ -5, %29 ], [ -6, %31 ]
  store i64 %.sink, ptr %9, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %34
  %35 = phi i64 [ %.pr, %34 ], [ %.sink, %.thread.sink.split ]
  %36 = sub nsw i64 0, %35
  store i64 %36, ptr %11, align 8, !tbaa !5
  %37 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %11) #3
  br label %.loopexit

38:                                               ; preds = %34
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  %39 = icmp eq i64 %24, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  store float 1.000000e+00, ptr %6, align 4, !tbaa !9
  br label %.loopexit

41:                                               ; preds = %38
  %42 = load float, ptr %5, align 4, !tbaa !9
  %43 = fcmp oeq float %42, 0.000000e+00
  br i1 %43, label %.loopexit, label %44

44:                                               ; preds = %41
  %45 = tail call double @slamch_(ptr noundef nonnull @.str.3) #3
  store i64 0, ptr %12, align 8, !tbaa !5
  store i8 78, ptr %18, align 1, !tbaa !11
  %46 = load i64, ptr %1, align 8, !tbaa !5
  %47 = getelementptr %struct.complex, ptr %7, i64 %46
  %48 = call i32 @clacn2_(ptr noundef nonnull %1, ptr noundef %47, ptr noundef %7, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %49 = load i64, ptr %12, align 8, !tbaa !5
  %.not8688 = icmp eq i64 %49, 0
  br i1 %.not8688, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %44
  %50 = fptrunc double %45 to float
  %51 = fpext float %50 to double
  br label %52

52:                                               ; preds = %.lr.ph, %86
  br i1 %.not, label %56, label %53

53:                                               ; preds = %52
  %54 = call i32 @clatbs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %8, ptr noundef nonnull %9) #3
  store i8 89, ptr %18, align 1, !tbaa !11
  %55 = call i32 @clatbs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %16, ptr noundef %8, ptr noundef nonnull %9) #3
  br label %59

56:                                               ; preds = %52
  %57 = call i32 @clatbs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %8, ptr noundef nonnull %9) #3
  store i8 89, ptr %18, align 1, !tbaa !11
  %58 = call i32 @clatbs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %16, ptr noundef %8, ptr noundef nonnull %9) #3
  br label %59

59:                                               ; preds = %56, %53
  %60 = load float, ptr %15, align 4, !tbaa !9
  %61 = load float, ptr %16, align 4, !tbaa !9
  %62 = fmul float %60, %61
  store float %62, ptr %13, align 4, !tbaa !9
  %63 = fcmp une float %62, 1.000000e+00
  br i1 %63, label %64, label %86

64:                                               ; preds = %59
  %65 = call i64 @f2c_icamax(ptr noundef nonnull %1, ptr noundef %7, ptr noundef nonnull @c__1) #3
  %66 = load float, ptr %13, align 4, !tbaa !9
  %67 = fpext float %66 to double
  %68 = getelementptr inbounds %struct.complex, ptr %19, i64 %65
  %69 = load float, ptr %68, align 4, !tbaa !12
  %70 = call double @r_imag(ptr noundef nonnull %68) #3
  %71 = fptrunc double %70 to float
  %72 = insertelement <2 x float> poison, float %69, i64 0
  %73 = insertelement <2 x float> %72, float %71, i64 1
  %74 = fcmp oge <2 x float> %73, zeroinitializer
  %75 = fneg <2 x float> %73
  %76 = select <2 x i1> %74, <2 x float> %73, <2 x float> %75
  %77 = fpext <2 x float> %76 to <2 x double>
  %shift = shufflevector <2 x double> %77, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %78 = fadd <2 x double> %shift, %77
  %79 = extractelement <2 x double> %78, i64 0
  %80 = fmul double %79, %51
  %81 = fcmp ogt double %80, %67
  %82 = load float, ptr %13, align 4
  %83 = fcmp oeq float %82, 0.000000e+00
  %or.cond = select i1 %81, i1 true, i1 %83
  br i1 %or.cond, label %.loopexit, label %84

84:                                               ; preds = %64
  %85 = call i32 @csrscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #3
  br label %86

86:                                               ; preds = %84, %59
  %87 = load i64, ptr %1, align 8, !tbaa !5
  %88 = getelementptr %struct.complex, ptr %7, i64 %87
  %89 = call i32 @clacn2_(ptr noundef nonnull %1, ptr noundef %88, ptr noundef %7, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %90 = load i64, ptr %12, align 8, !tbaa !5
  %.not86 = icmp eq i64 %90, 0
  br i1 %.not86, label %._crit_edge, label %52

._crit_edge:                                      ; preds = %86, %44
  %91 = load float, ptr %17, align 4, !tbaa !9
  %92 = fcmp une float %91, 0.000000e+00
  br i1 %92, label %93, label %.loopexit

93:                                               ; preds = %._crit_edge
  %94 = fdiv float 1.000000e+00, %91
  %95 = load float, ptr %5, align 4, !tbaa !9
  %96 = fdiv float %94, %95
  store float %96, ptr %6, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %64, %93, %._crit_edge, %41, %40, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #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 i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @slamch_(ptr noundef) local_unnamed_addr #2

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

declare i32 @clatbs_(ptr noundef, 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 i64 @f2c_icamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @r_imag(ptr noundef) local_unnamed_addr #2

declare i32 @csrscl_(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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"", !10, i64 0, !10, i64 4}


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