; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

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

61:                                               ; preds = %57
  %62 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %62, align 4, !tbaa !9
  br label %94

63:                                               ; preds = %57, %10
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = icmp slt i32 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %63
  %68 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -2, ptr %68, align 4, !tbaa !9
  br label %93

69:                                               ; preds = %63
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = icmp slt i32 %71, 0
  br i1 %72, label %73, label %75

73:                                               ; preds = %69
  %74 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %74, align 4, !tbaa !9
  br label %92

75:                                               ; preds = %69
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  %81 = icmp slt i32 %77, %80
  br i1 %81, label %82, label %84

82:                                               ; preds = %75
  %83 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -5, ptr %83, align 4, !tbaa !9
  br label %91

84:                                               ; preds = %75
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  %86 = load float, ptr %85, align 4, !tbaa !11
  %87 = fcmp olt float %86, 0.000000e+00
  br i1 %87, label %88, label %90

88:                                               ; preds = %84
  %89 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -6, ptr %89, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %88, %84
  br label %91

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

92:                                               ; preds = %91, %73
  br label %93

93:                                               ; preds = %92, %67
  br label %94

94:                                               ; preds = %93, %61
  %95 = load ptr, ptr %20, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %94
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = sub nsw i32 0, %100
  store i32 %101, ptr %23, align 4, !tbaa !9
  %102 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %23, i32 noundef 6)
  store i32 1, ptr %36, align 4
  br label %262

103:                                              ; preds = %94
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  store float 0.000000e+00, ptr %104, align 4, !tbaa !11
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %103
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  store float 1.000000e+00, ptr %109, align 4, !tbaa !11
  store i32 1, ptr %36, align 4
  br label %262

110:                                              ; preds = %103
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = load float, ptr %111, align 4, !tbaa !11
  %113 = fcmp oeq float %112, 0.000000e+00
  br i1 %113, label %114, label %115

114:                                              ; preds = %110
  store i32 1, ptr %36, align 4
  br label %262

115:                                              ; preds = %110
  br label %116

116:                                              ; preds = %115
  %117 = call float @slamch_(ptr noundef @.str.3)
  store float %117, ptr %35, align 4, !tbaa !11
  store i32 0, ptr %26, align 4, !tbaa !9
  %118 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 78, ptr %118, align 1, !tbaa !13
  br label %119

119:                                              ; preds = %249, %116
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %struct.complex, ptr %121, i64 %125
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.complex, ptr %127, i64 1
  %129 = getelementptr inbounds [3 x i32], ptr %28, i64 0, i64 0
  call void @clacn2_(ptr noundef %120, ptr noundef %126, ptr noundef %128, ptr noundef %33, ptr noundef %26, ptr noundef %129)
  %130 = load i32, ptr %26, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %250

132:                                              ; preds = %119
  %133 = load i32, ptr %29, align 4, !tbaa !9
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %163

135:                                              ; preds = %132
  %136 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load i32, ptr %22, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %struct.complex, ptr %139, i64 %141
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = load ptr, ptr %18, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.complex, ptr %144, i64 1
  %146 = load ptr, ptr %19, align 8, !tbaa !5
  %147 = getelementptr inbounds float, ptr %146, i64 1
  %148 = load ptr, ptr %20, align 8, !tbaa !5
  call void @clatbs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %142, ptr noundef %143, ptr noundef %145, ptr noundef %31, ptr noundef %147, ptr noundef %148)
  %149 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %149, align 1, !tbaa !13
  %150 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load i32, ptr %22, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds %struct.complex, ptr %153, i64 %155
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.complex, ptr %158, i64 1
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = getelementptr inbounds float, ptr %160, i64 1
  %162 = load ptr, ptr %20, align 8, !tbaa !5
  call void @clatbs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %150, ptr noundef %151, ptr noundef %152, ptr noundef %156, ptr noundef %157, ptr noundef %159, ptr noundef %32, ptr noundef %161, ptr noundef %162)
  br label %191

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

191:                                              ; preds = %163, %135
  %192 = load float, ptr %31, align 4, !tbaa !11
  %193 = load float, ptr %32, align 4, !tbaa !11
  %194 = fmul float %192, %193
  store float %194, ptr %27, align 4, !tbaa !11
  %195 = load float, ptr %27, align 4, !tbaa !11
  %196 = fcmp une float %195, 1.000000e+00
  br i1 %196, label %197, label %249

197:                                              ; preds = %191
  %198 = load ptr, ptr %12, align 8, !tbaa !5
  %199 = load ptr, ptr %18, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.complex, ptr %199, i64 1
  %201 = call i32 @icamax_(ptr noundef %198, ptr noundef %200, ptr noundef @c__1)
  store i32 %201, ptr %30, align 4, !tbaa !9
  %202 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %202, ptr %23, align 4, !tbaa !9
  %203 = load float, ptr %27, align 4, !tbaa !11
  %204 = load ptr, ptr %18, align 8, !tbaa !5
  %205 = load i32, ptr %23, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %struct.complex, ptr %204, i64 %206
  %208 = getelementptr inbounds %struct.complex, ptr %207, i32 0, i32 0
  %209 = load float, ptr %208, align 4, !tbaa !14
  store float %209, ptr %24, align 4, !tbaa !11
  %210 = load float, ptr %24, align 4, !tbaa !11
  %211 = fcmp oge float %210, 0.000000e+00
  br i1 %211, label %212, label %214

212:                                              ; preds = %197
  %213 = load float, ptr %24, align 4, !tbaa !11
  br label %217

214:                                              ; preds = %197
  %215 = load float, ptr %24, align 4, !tbaa !11
  %216 = fneg float %215
  br label %217

217:                                              ; preds = %214, %212
  %218 = phi float [ %213, %212 ], [ %216, %214 ]
  %219 = load ptr, ptr %18, align 8, !tbaa !5
  %220 = load i32, ptr %30, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds %struct.complex, ptr %219, i64 %221
  %223 = call <2 x float> @Cf(ptr noundef %222)
  store <2 x float> %223, ptr %37, align 4
  %224 = getelementptr inbounds { float, float }, ptr %37, i32 0, i32 0
  %225 = load float, ptr %224, align 4
  %226 = getelementptr inbounds { float, float }, ptr %37, i32 0, i32 1
  %227 = load float, ptr %226, align 4
  store float %227, ptr %25, align 4, !tbaa !11
  %228 = load float, ptr %25, align 4, !tbaa !11
  %229 = fcmp oge float %228, 0.000000e+00
  br i1 %229, label %230, label %232

230:                                              ; preds = %217
  %231 = load float, ptr %25, align 4, !tbaa !11
  br label %235

232:                                              ; preds = %217
  %233 = load float, ptr %25, align 4, !tbaa !11
  %234 = fneg float %233
  br label %235

235:                                              ; preds = %232, %230
  %236 = phi float [ %231, %230 ], [ %234, %232 ]
  %237 = fadd float %218, %236
  %238 = load float, ptr %35, align 4, !tbaa !11
  %239 = fmul float %237, %238
  %240 = fcmp olt float %203, %239
  br i1 %240, label %244, label %241

241:                                              ; preds = %235
  %242 = load float, ptr %27, align 4, !tbaa !11
  %243 = fcmp oeq float %242, 0.000000e+00
  br i1 %243, label %244, label %245

244:                                              ; preds = %241, %235
  br label %261

245:                                              ; preds = %241
  %246 = load ptr, ptr %12, align 8, !tbaa !5
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.complex, ptr %247, i64 1
  call void @csrscl_(ptr noundef %246, ptr noundef %27, ptr noundef %248, ptr noundef @c__1)
  br label %249

249:                                              ; preds = %245, %191
  br label %119

250:                                              ; preds = %119
  %251 = load float, ptr %33, align 4, !tbaa !11
  %252 = fcmp une float %251, 0.000000e+00
  br i1 %252, label %253, label %260

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

260:                                              ; preds = %253, %250
  br label %261

261:                                              ; preds = %260, %244
  store i32 1, ptr %36, align 4
  br label %262

262:                                              ; preds = %261, %114, %108, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  ret void
}

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

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

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

declare float @slamch_(ptr noundef) #2

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

declare void @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 i32 @icamax_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) #3

declare void @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"="64" "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!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 i32, align 4

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

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

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

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

29:                                               ; preds = %26
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %.not83 = icmp sgt i32 %30, %27
  br i1 %.not83, 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 i32, ptr %9, align 4, !tbaa !5
  %.not84 = icmp eq i32 %.pr, 0
  br i1 %.not84, label %38, label %.thread

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

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

38:                                               ; preds = %34
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  %39 = icmp eq i32 %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 float @slamch_(ptr noundef nonnull @.str.3) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  store i8 78, ptr %18, align 1, !tbaa !11
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %gep87 = getelementptr %struct.complex, ptr %7, i64 %47
  call void @clacn2_(ptr noundef nonnull %1, ptr noundef %gep87, ptr noundef %7, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #4
  %48 = load i32, ptr %12, align 4, !tbaa !5
  %.not8588 = icmp eq i32 %48, 0
  br i1 %.not8588, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %44, %75
  br i1 %.not, label %50, label %49

49:                                               ; preds = %.lr.ph
  call void @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) #4
  store i8 89, ptr %18, align 1, !tbaa !11
  call void @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) #4
  br label %51

50:                                               ; preds = %.lr.ph
  call void @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) #4
  store i8 89, ptr %18, align 1, !tbaa !11
  call void @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) #4
  br label %51

51:                                               ; preds = %50, %49
  %52 = load float, ptr %15, align 4, !tbaa !9
  %53 = load float, ptr %16, align 4, !tbaa !9
  %54 = fmul float %52, %53
  store float %54, ptr %13, align 4, !tbaa !9
  %55 = fcmp une float %54, 1.000000e+00
  br i1 %55, label %56, label %75

56:                                               ; preds = %51
  %57 = call i32 @icamax_(ptr noundef nonnull %1, ptr noundef %7, ptr noundef nonnull @c__1) #4
  %58 = load float, ptr %13, align 4, !tbaa !9
  %59 = sext i32 %57 to i64
  %60 = getelementptr inbounds %struct.complex, ptr %19, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !12
  %62 = fcmp oge float %61, 0.000000e+00
  %63 = fneg float %61
  %64 = select i1 %62, float %61, float %63
  %65 = call <2 x float> @Cf(ptr noundef nonnull %60)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %65, i64 1
  %66 = fcmp oge float %.sroa.0.4.vec.extract, 0.000000e+00
  %67 = fneg float %.sroa.0.4.vec.extract
  %68 = select i1 %66, float %.sroa.0.4.vec.extract, float %67
  %69 = fadd float %64, %68
  %70 = fmul float %45, %69
  %71 = fcmp olt float %58, %70
  %72 = load float, ptr %13, align 4
  %73 = fcmp oeq float %72, 0.000000e+00
  %or.cond = select i1 %71, i1 true, i1 %73
  br i1 %or.cond, label %.loopexit, label %74

74:                                               ; preds = %56
  call void @csrscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #4
  br label %75

75:                                               ; preds = %74, %51
  %76 = load i32, ptr %1, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %gep = getelementptr %struct.complex, ptr %7, i64 %77
  call void @clacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %7, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #4
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %.not85 = icmp eq i32 %78, 0
  br i1 %.not85, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %75, %44
  %79 = load float, ptr %17, align 4, !tbaa !9
  %80 = fcmp une float %79, 0.000000e+00
  br i1 %80, label %81, label %.loopexit

81:                                               ; preds = %._crit_edge
  %82 = fdiv float 1.000000e+00, %79
  %83 = load float, ptr %5, align 4, !tbaa !9
  %84 = fdiv float %82, %83
  store float %84, ptr %6, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %56, %81, %._crit_edge, %41, %40, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  ret void
}

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

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

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

declare float @slamch_(ptr noundef) local_unnamed_addr #2

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

declare void @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 i32 @icamax_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) local_unnamed_addr #3

declare void @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"="64" "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!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,SROAPass,SimplifyCFGPass,TailCallElimPass