; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (cgecon)

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

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

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

60:                                               ; preds = %56, %9
  %61 = phi i1 [ true, %9 ], [ %59, %56 ]
  %62 = zext i1 %61 to i32
  store i32 %62, ptr %32, align 4, !tbaa !9
  %63 = load i32, ptr %32, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %71, label %65

65:                                               ; preds = %60
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = call i32 @lsame_(ptr noundef %66, ptr noundef @.str.1)
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %71, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -1, ptr %70, align 4, !tbaa !9
  br label %101

71:                                               ; preds = %65, %60
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %71
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -2, ptr %76, align 4, !tbaa !9
  br label %100

77:                                               ; preds = %71
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = icmp sge i32 1, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %77
  br label %87

84:                                               ; preds = %77
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = load i32, ptr %85, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %84, %83
  %88 = phi i32 [ 1, %83 ], [ %86, %84 ]
  %89 = icmp slt i32 %79, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -4, ptr %91, align 4, !tbaa !9
  br label %99

92:                                               ; preds = %87
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = load float, ptr %93, align 4, !tbaa !12
  %95 = fcmp olt float %94, 0.000000e+00
  br i1 %95, label %96, label %98

96:                                               ; preds = %92
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -5, ptr %97, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %96, %92
  br label %99

99:                                               ; preds = %98, %90
  br label %100

100:                                              ; preds = %99, %75
  br label %101

101:                                              ; preds = %100, %69
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %110

105:                                              ; preds = %101
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = sub nsw i32 0, %107
  store i32 %108, ptr %21, align 4, !tbaa !9
  %109 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %21, i32 noundef 6)
  store i32 1, ptr %35, align 4
  br label %278

110:                                              ; preds = %101
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  store float 0.000000e+00, ptr %111, align 4, !tbaa !12
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %115, label %117

115:                                              ; preds = %110
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  store float 1.000000e+00, ptr %116, align 4, !tbaa !12
  store i32 1, ptr %35, align 4
  br label %278

117:                                              ; preds = %110
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load float, ptr %118, align 4, !tbaa !12
  %120 = fcmp oeq float %119, 0.000000e+00
  br i1 %120, label %121, label %122

121:                                              ; preds = %117
  store i32 1, ptr %35, align 4
  br label %278

122:                                              ; preds = %117
  br label %123

123:                                              ; preds = %122
  %124 = call float @slamch_(ptr noundef @.str.3)
  store float %124, ptr %34, align 4, !tbaa !12
  store float 0.000000e+00, ptr %31, align 4, !tbaa !12
  %125 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 78, ptr %125, align 1, !tbaa !11
  %126 = load i32, ptr %32, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %123
  store i32 1, ptr %25, align 4, !tbaa !9
  br label %130

129:                                              ; preds = %123
  store i32 2, ptr %25, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %129, %128
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %265, %130
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.complex, ptr %133, i64 %137
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.complex, ptr %139, i64 1
  %141 = getelementptr inbounds [3 x i32], ptr %27, i64 0, i64 0
  call void @clacn2_(ptr noundef %132, ptr noundef %138, ptr noundef %140, ptr noundef %31, ptr noundef %24, ptr noundef %141)
  %142 = load i32, ptr %24, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %266

144:                                              ; preds = %131
  %145 = load i32, ptr %24, align 4, !tbaa !9
  %146 = load i32, ptr %25, align 4, !tbaa !9
  %147 = icmp eq i32 %145, %146
  br i1 %147, label %148, label %177

148:                                              ; preds = %144
  %149 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.complex, ptr %151, i64 %153
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.complex, ptr %156, i64 1
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = getelementptr inbounds float, ptr %158, i64 1
  %160 = load ptr, ptr %18, align 8, !tbaa !5
  call void @clatrs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %149, ptr noundef %150, ptr noundef %154, ptr noundef %155, ptr noundef %157, ptr noundef %28, ptr noundef %159, ptr noundef %160)
  %161 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = load i32, ptr %20, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds %struct.complex, ptr %163, i64 %165
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.complex, ptr %168, i64 1
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = load i32, ptr %171, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds float, ptr %170, i64 %174
  %176 = load ptr, ptr %18, align 8, !tbaa !5
  call void @clatrs_(ptr noundef @.str.7, ptr noundef @.str.5, ptr noundef @.str.8, ptr noundef %161, ptr noundef %162, ptr noundef %166, ptr noundef %167, ptr noundef %169, ptr noundef %30, ptr noundef %175, ptr noundef %176)
  br label %206

177:                                              ; preds = %144
  %178 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = load i32, ptr %20, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds %struct.complex, ptr %180, i64 %182
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.complex, ptr %185, i64 1
  %187 = load ptr, ptr %17, align 8, !tbaa !5
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = load i32, ptr %188, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds float, ptr %187, i64 %191
  %193 = load ptr, ptr %18, align 8, !tbaa !5
  call void @clatrs_(ptr noundef @.str.7, ptr noundef @.str.9, ptr noundef @.str.8, ptr noundef %178, ptr noundef %179, ptr noundef %183, ptr noundef %184, ptr noundef %186, ptr noundef %30, ptr noundef %192, ptr noundef %193)
  %194 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load i32, ptr %20, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %struct.complex, ptr %196, i64 %198
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = load ptr, ptr %16, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.complex, ptr %201, i64 1
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = getelementptr inbounds float, ptr %203, i64 1
  %205 = load ptr, ptr %18, align 8, !tbaa !5
  call void @clatrs_(ptr noundef @.str.4, ptr noundef @.str.9, ptr noundef @.str.6, ptr noundef %194, ptr noundef %195, ptr noundef %199, ptr noundef %200, ptr noundef %202, ptr noundef %28, ptr noundef %204, ptr noundef %205)
  br label %206

206:                                              ; preds = %177, %148
  %207 = load float, ptr %28, align 4, !tbaa !12
  %208 = load float, ptr %30, align 4, !tbaa !12
  %209 = fmul float %207, %208
  store float %209, ptr %26, align 4, !tbaa !12
  %210 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 89, ptr %210, align 1, !tbaa !11
  %211 = load float, ptr %26, align 4, !tbaa !12
  %212 = fcmp une float %211, 1.000000e+00
  br i1 %212, label %213, label %265

213:                                              ; preds = %206
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = load ptr, ptr %16, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.complex, ptr %215, i64 1
  %217 = call i32 @icamax_(ptr noundef %214, ptr noundef %216, ptr noundef @c__1)
  store i32 %217, ptr %29, align 4, !tbaa !9
  %218 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %218, ptr %21, align 4, !tbaa !9
  %219 = load float, ptr %26, align 4, !tbaa !12
  %220 = load ptr, ptr %16, align 8, !tbaa !5
  %221 = load i32, ptr %21, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds %struct.complex, ptr %220, i64 %222
  %224 = getelementptr inbounds %struct.complex, ptr %223, i32 0, i32 0
  %225 = load float, ptr %224, align 4, !tbaa !14
  store float %225, ptr %22, align 4, !tbaa !12
  %226 = load float, ptr %22, align 4, !tbaa !12
  %227 = fcmp oge float %226, 0.000000e+00
  br i1 %227, label %228, label %230

228:                                              ; preds = %213
  %229 = load float, ptr %22, align 4, !tbaa !12
  br label %233

230:                                              ; preds = %213
  %231 = load float, ptr %22, align 4, !tbaa !12
  %232 = fneg float %231
  br label %233

233:                                              ; preds = %230, %228
  %234 = phi float [ %229, %228 ], [ %232, %230 ]
  %235 = load ptr, ptr %16, align 8, !tbaa !5
  %236 = load i32, ptr %29, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds %struct.complex, ptr %235, i64 %237
  %239 = call <2 x float> @Cf(ptr noundef %238)
  store <2 x float> %239, ptr %36, align 4
  %240 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 0
  %241 = load float, ptr %240, align 4
  %242 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 1
  %243 = load float, ptr %242, align 4
  store float %243, ptr %23, align 4, !tbaa !12
  %244 = load float, ptr %23, align 4, !tbaa !12
  %245 = fcmp oge float %244, 0.000000e+00
  br i1 %245, label %246, label %248

246:                                              ; preds = %233
  %247 = load float, ptr %23, align 4, !tbaa !12
  br label %251

248:                                              ; preds = %233
  %249 = load float, ptr %23, align 4, !tbaa !12
  %250 = fneg float %249
  br label %251

251:                                              ; preds = %248, %246
  %252 = phi float [ %247, %246 ], [ %250, %248 ]
  %253 = fadd float %234, %252
  %254 = load float, ptr %34, align 4, !tbaa !12
  %255 = fmul float %253, %254
  %256 = fcmp olt float %219, %255
  br i1 %256, label %260, label %257

257:                                              ; preds = %251
  %258 = load float, ptr %26, align 4, !tbaa !12
  %259 = fcmp oeq float %258, 0.000000e+00
  br i1 %259, label %260, label %261

260:                                              ; preds = %257, %251
  br label %277

261:                                              ; preds = %257
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = load ptr, ptr %16, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.complex, ptr %263, i64 1
  call void @csrscl_(ptr noundef %262, ptr noundef %26, ptr noundef %264, ptr noundef @c__1)
  br label %265

265:                                              ; preds = %261, %206
  br label %131

266:                                              ; preds = %131
  %267 = load float, ptr %31, align 4, !tbaa !12
  %268 = fcmp une float %267, 0.000000e+00
  br i1 %268, label %269, label %276

269:                                              ; preds = %266
  %270 = load float, ptr %31, align 4, !tbaa !12
  %271 = fdiv float 1.000000e+00, %270
  %272 = load ptr, ptr %14, align 8, !tbaa !5
  %273 = load float, ptr %272, align 4, !tbaa !12
  %274 = fdiv float %271, %273
  %275 = load ptr, ptr %15, align 8, !tbaa !5
  store float %274, ptr %275, align 4, !tbaa !12
  br label %276

276:                                              ; preds = %269, %266
  br label %277

277:                                              ; preds = %276, %260
  store i32 1, ptr %35, align 4
  br label %278

278:                                              ; preds = %277, %121, %115, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 1, 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 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 12, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #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 @clatrs_(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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0, !13, 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 [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@c__1 = external hidden global i32, align 4

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

21:                                               ; preds = %9
  %22 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str) #5
  %.not88 = icmp eq i32 %22, 0
  br i1 %.not88, label %23, label %.thread

23:                                               ; preds = %21
  %24 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #5
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %.thread86.sink.split, label %.thread

.thread:                                          ; preds = %9, %23, %21
  %. = phi i32 [ 2, %23 ], [ 1, %21 ], [ 1, %9 ]
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %.thread86.sink.split, label %27

27:                                               ; preds = %.thread
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %25, i32 1)
  %29 = icmp slt i32 %28, %spec.select
  br i1 %29, label %.thread86.sink.split, label %30

30:                                               ; preds = %27
  %31 = load float, ptr %4, align 4, !tbaa !10
  %32 = fcmp olt float %31, 0.000000e+00
  br i1 %32, label %.thread86.sink.split, label %33

33:                                               ; preds = %30
  %.pr = load i32, ptr %8, align 4, !tbaa !5
  %.not83 = icmp eq i32 %.pr, 0
  br i1 %.not83, label %37, label %.thread86

.thread86.sink.split:                             ; preds = %30, %27, %.thread, %23
  %.sink = phi i32 [ -1, %23 ], [ -2, %.thread ], [ -4, %27 ], [ -5, %30 ]
  store i32 %.sink, ptr %8, align 4, !tbaa !5
  br label %.thread86

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

37:                                               ; preds = %33
  store float 0.000000e+00, ptr %5, align 4, !tbaa !10
  %38 = icmp eq i32 %25, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %37
  store float 1.000000e+00, ptr %5, align 4, !tbaa !10
  br label %.loopexit

40:                                               ; preds = %37
  %41 = load float, ptr %4, align 4, !tbaa !10
  %42 = fcmp oeq float %41, 0.000000e+00
  br i1 %42, label %.loopexit, label %43

43:                                               ; preds = %40
  %44 = tail call float @slamch_(ptr noundef nonnull @.str.3) #5
  store float 0.000000e+00, ptr %16, align 4, !tbaa !10
  store i8 78, ptr %17, align 1, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !5
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %gep93 = getelementptr %struct.complex, ptr %6, i64 %46
  call void @clacn2_(ptr noundef nonnull %1, ptr noundef %gep93, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #5
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %.not8494 = icmp eq i32 %47, 0
  br i1 %.not8494, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %43, %80
  %48 = phi i32 [ %83, %80 ], [ %47, %43 ]
  %49 = icmp eq i32 %48, %.
  br i1 %49, label %50, label %53

50:                                               ; preds = %.lr.ph
  call void @clatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %7, ptr noundef nonnull %8) #5
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %gep92 = getelementptr float, ptr %7, i64 %52
  call void @clatrs_(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.8, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %gep92, ptr noundef nonnull %8) #5
  br label %56

53:                                               ; preds = %.lr.ph
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %gep90 = getelementptr float, ptr %7, i64 %55
  call void @clatrs_(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.8, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %gep90, ptr noundef nonnull %8) #5
  call void @clatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %7, ptr noundef nonnull %8) #5
  br label %56

56:                                               ; preds = %53, %50
  %57 = load float, ptr %14, align 4, !tbaa !10
  %58 = load float, ptr %15, align 4, !tbaa !10
  %59 = fmul float %57, %58
  store float %59, ptr %12, align 4, !tbaa !10
  store i8 89, ptr %17, align 1, !tbaa !9
  %60 = fcmp une float %59, 1.000000e+00
  br i1 %60, label %61, label %80

61:                                               ; preds = %56
  %62 = call i32 @icamax_(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #5
  %63 = load float, ptr %12, align 4, !tbaa !10
  %64 = sext i32 %62 to i64
  %65 = getelementptr inbounds %struct.complex, ptr %18, i64 %64
  %66 = load float, ptr %65, align 4, !tbaa !12
  %67 = fcmp oge float %66, 0.000000e+00
  %68 = fneg float %66
  %69 = select i1 %67, float %66, float %68
  %70 = call <2 x float> @Cf(ptr noundef nonnull %65)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %70, i64 1
  %71 = fcmp oge float %.sroa.0.4.vec.extract, 0.000000e+00
  %72 = fneg float %.sroa.0.4.vec.extract
  %73 = select i1 %71, float %.sroa.0.4.vec.extract, float %72
  %74 = fadd float %69, %73
  %75 = fmul float %44, %74
  %76 = fcmp olt float %63, %75
  %77 = load float, ptr %12, align 4
  %78 = fcmp oeq float %77, 0.000000e+00
  %or.cond = select i1 %76, i1 true, i1 %78
  br i1 %or.cond, label %.loopexit, label %79

79:                                               ; preds = %61
  call void @csrscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #5
  br label %80

80:                                               ; preds = %79, %56
  %81 = load i32, ptr %1, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %gep = getelementptr %struct.complex, ptr %6, i64 %82
  call void @clacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #5
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %.not84 = icmp eq i32 %83, 0
  br i1 %.not84, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %80, %43
  %84 = load float, ptr %16, align 4, !tbaa !10
  %85 = fcmp une float %84, 0.000000e+00
  br i1 %85, label %86, label %.loopexit

86:                                               ; preds = %._crit_edge
  %87 = fdiv float 1.000000e+00, %84
  %88 = load float, ptr %4, align 4, !tbaa !10
  %89 = fdiv float %87, %88
  store float %89, ptr %5, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %61, %86, %._crit_edge, %40, %39, %.thread86
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  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 @clatrs_(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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 4}


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