; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i64, align 8

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

54:                                               ; preds = %9
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call i64 @lsame_(ptr noundef %55, ptr noundef @.str)
  %57 = icmp ne i64 %56, 0
  br label %58

58:                                               ; preds = %54, %9
  %59 = phi i1 [ true, %9 ], [ %57, %54 ]
  %60 = zext i1 %59 to i32
  %61 = sext i32 %60 to i64
  store i64 %61, ptr %33, align 8, !tbaa !9
  %62 = load i64, ptr %33, align 8, !tbaa !9
  %63 = icmp ne i64 %62, 0
  br i1 %63, label %70, label %64

64:                                               ; preds = %58
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = call i64 @lsame_(ptr noundef %65, ptr noundef @.str.1)
  %67 = icmp ne i64 %66, 0
  br i1 %67, label %70, label %68

68:                                               ; preds = %64
  %69 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %69, align 8, !tbaa !9
  br label %100

70:                                               ; preds = %64, %58
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = icmp slt i64 %72, 0
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %75, align 8, !tbaa !9
  br label %99

76:                                               ; preds = %70
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = icmp sge i64 1, %80
  br i1 %81, label %82, label %83

82:                                               ; preds = %76
  br label %86

83:                                               ; preds = %76
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %83, %82
  %87 = phi i64 [ 1, %82 ], [ %85, %83 ]
  %88 = icmp slt i64 %78, %87
  br i1 %88, label %89, label %91

89:                                               ; preds = %86
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %90, align 8, !tbaa !9
  br label %98

91:                                               ; preds = %86
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load float, ptr %92, align 4, !tbaa !12
  %94 = fcmp olt float %93, 0.000000e+00
  br i1 %94, label %95, label %97

95:                                               ; preds = %91
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -5, ptr %96, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %95, %91
  br label %98

98:                                               ; preds = %97, %89
  br label %99

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

100:                                              ; preds = %99, %68
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = icmp ne i64 %102, 0
  br i1 %103, label %104, label %109

104:                                              ; preds = %100
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = sub nsw i64 0, %106
  store i64 %107, ptr %22, align 8, !tbaa !9
  %108 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %22)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %276

109:                                              ; preds = %100
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  store float 0.000000e+00, ptr %110, align 4, !tbaa !12
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = icmp eq i64 %112, 0
  br i1 %113, label %114, label %116

114:                                              ; preds = %109
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  store float 1.000000e+00, ptr %115, align 4, !tbaa !12
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %276

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

120:                                              ; preds = %116
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %276

121:                                              ; preds = %116
  br label %122

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

128:                                              ; preds = %122
  store i64 1, ptr %29, align 8, !tbaa !9
  br label %130

129:                                              ; preds = %122
  store i64 2, ptr %29, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %129, %128
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %131

131:                                              ; preds = %263, %130
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = add nsw i64 %135, 1
  %137 = getelementptr inbounds %struct.complex, ptr %133, i64 %136
  %138 = load ptr, ptr %17, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.complex, ptr %138, i64 1
  %140 = getelementptr inbounds [3 x i64], ptr %31, i64 0, i64 0
  %141 = call i32 @clacn2_(ptr noundef %132, ptr noundef %137, ptr noundef %139, ptr noundef %32, ptr noundef %28, ptr noundef %140)
  %142 = load i64, ptr %28, align 8, !tbaa !9
  %143 = icmp ne i64 %142, 0
  br i1 %143, label %144, label %264

144:                                              ; preds = %131
  %145 = load i64, ptr %28, align 8, !tbaa !9
  %146 = load i64, ptr %29, align 8, !tbaa !9
  %147 = icmp eq i64 %145, %146
  br i1 %147, label %148, label %176

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

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

204:                                              ; preds = %176, %148
  %205 = load float, ptr %25, align 4, !tbaa !12
  %206 = load float, ptr %27, align 4, !tbaa !12
  %207 = fmul float %205, %206
  store float %207, ptr %30, align 4, !tbaa !12
  %208 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %208, align 1, !tbaa !11
  %209 = load float, ptr %30, align 4, !tbaa !12
  %210 = fcmp une float %209, 1.000000e+00
  br i1 %210, label %211, label %263

211:                                              ; preds = %204
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = load ptr, ptr %17, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.complex, ptr %213, i64 1
  %215 = call i64 @f2c_icamax(ptr noundef %212, ptr noundef %214, ptr noundef @c__1)
  store i64 %215, ptr %26, align 8, !tbaa !9
  %216 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %216, ptr %22, align 8, !tbaa !9
  %217 = load float, ptr %30, align 4, !tbaa !12
  %218 = fpext float %217 to double
  %219 = load ptr, ptr %17, align 8, !tbaa !5
  %220 = load i64, ptr %22, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.complex, ptr %219, i64 %220
  %222 = getelementptr inbounds %struct.complex, ptr %221, i32 0, i32 0
  %223 = load float, ptr %222, align 4, !tbaa !14
  store float %223, ptr %23, align 4, !tbaa !12
  %224 = load float, ptr %23, align 4, !tbaa !12
  %225 = fcmp oge float %224, 0.000000e+00
  br i1 %225, label %226, label %228

226:                                              ; preds = %211
  %227 = load float, ptr %23, align 4, !tbaa !12
  br label %231

228:                                              ; preds = %211
  %229 = load float, ptr %23, align 4, !tbaa !12
  %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 = load ptr, ptr %17, align 8, !tbaa !5
  %235 = load i64, ptr %26, align 8, !tbaa !9
  %236 = getelementptr inbounds %struct.complex, ptr %234, i64 %235
  %237 = call double @r_imag(ptr noundef %236)
  %238 = fptrunc double %237 to float
  store float %238, ptr %24, align 4, !tbaa !12
  %239 = load float, ptr %24, align 4, !tbaa !12
  %240 = fcmp oge float %239, 0.000000e+00
  br i1 %240, label %241, label %243

241:                                              ; preds = %231
  %242 = load float, ptr %24, align 4, !tbaa !12
  br label %246

243:                                              ; preds = %231
  %244 = load float, ptr %24, align 4, !tbaa !12
  %245 = fneg float %244
  br label %246

246:                                              ; preds = %243, %241
  %247 = phi float [ %242, %241 ], [ %245, %243 ]
  %248 = fpext float %247 to double
  %249 = fadd double %233, %248
  %250 = load float, ptr %35, align 4, !tbaa !12
  %251 = fpext float %250 to double
  %252 = fmul double %249, %251
  %253 = fcmp olt double %218, %252
  br i1 %253, label %257, label %254

254:                                              ; preds = %246
  %255 = load float, ptr %30, align 4, !tbaa !12
  %256 = fcmp oeq float %255, 0.000000e+00
  br i1 %256, label %257, label %258

257:                                              ; preds = %254, %246
  br label %275

258:                                              ; preds = %254
  %259 = load ptr, ptr %12, align 8, !tbaa !5
  %260 = load ptr, ptr %17, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.complex, ptr %260, i64 1
  %262 = call i32 @csrscl_(ptr noundef %259, ptr noundef %30, ptr noundef %261, ptr noundef @c__1)
  br label %263

263:                                              ; preds = %258, %204
  br label %131

264:                                              ; preds = %131
  %265 = load float, ptr %32, align 4, !tbaa !12
  %266 = fcmp une float %265, 0.000000e+00
  br i1 %266, label %267, label %274

267:                                              ; preds = %264
  %268 = load float, ptr %32, align 4, !tbaa !12
  %269 = fdiv float 1.000000e+00, %268
  %270 = load ptr, ptr %15, align 8, !tbaa !5
  %271 = load float, ptr %270, align 4, !tbaa !12
  %272 = fdiv float %269, %271
  %273 = load ptr, ptr %16, align 8, !tbaa !5
  store float %272, ptr %273, align 4, !tbaa !12
  br label %274

274:                                              ; preds = %267, %264
  br label %275

275:                                              ; preds = %274, %257
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %276

276:                                              ; preds = %275, %120, %114, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %277 = load i32, ptr %10, align 4
  ret i32 %277
}

; 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 @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 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 = !{!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 i64, align 8

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

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

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

27:                                               ; preds = %.thread
  %28 = load i64, ptr %3, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %25, i64 1)
  %29 = icmp slt i64 %28, %spec.select
  br i1 %29, label %.thread87.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 %.thread87.sink.split, label %33

33:                                               ; preds = %30
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not84 = icmp eq i64 %.pr, 0
  br i1 %.not84, label %37, label %.thread87

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

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

37:                                               ; preds = %33
  store float 0.000000e+00, ptr %5, align 4, !tbaa !10
  %38 = icmp eq i64 %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 double @slamch_(ptr noundef nonnull @.str.3) #4
  store float 0.000000e+00, ptr %16, align 4, !tbaa !10
  store i8 78, ptr %17, align 1, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !5
  %45 = load i64, ptr %1, align 8, !tbaa !5
  %46 = getelementptr %struct.complex, ptr %6, i64 %45
  %47 = call i32 @clacn2_(ptr noundef nonnull %1, ptr noundef %46, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #4
  %48 = load i64, ptr %13, align 8, !tbaa !5
  %.not8590 = icmp eq i64 %48, 0
  br i1 %.not8590, label %._crit_edge, label %.lr.ph

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

51:                                               ; preds = %.lr.ph, %91
  %52 = phi i64 [ %48, %.lr.ph ], [ %95, %91 ]
  %53 = icmp eq i64 %52, %.
  br i1 %53, label %54, label %59

54:                                               ; preds = %51
  %55 = call i32 @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 %11, ptr noundef %7, ptr noundef nonnull %8) #4
  %56 = load i64, ptr %1, align 8, !tbaa !5
  %57 = getelementptr float, ptr %7, i64 %56
  %58 = call i32 @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 %12, ptr noundef %57, ptr noundef nonnull %8) #4
  br label %64

59:                                               ; preds = %51
  %60 = load i64, ptr %1, align 8, !tbaa !5
  %61 = getelementptr float, ptr %7, i64 %60
  %62 = call i32 @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 %12, ptr noundef %61, ptr noundef nonnull %8) #4
  %63 = call i32 @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 %11, ptr noundef %7, ptr noundef nonnull %8) #4
  br label %64

64:                                               ; preds = %59, %54
  %65 = load float, ptr %11, align 4, !tbaa !10
  %66 = load float, ptr %12, align 4, !tbaa !10
  %67 = fmul float %65, %66
  store float %67, ptr %14, align 4, !tbaa !10
  store i8 89, ptr %17, align 1, !tbaa !9
  %68 = fcmp une float %67, 1.000000e+00
  br i1 %68, label %69, label %91

69:                                               ; preds = %64
  %70 = call i64 @f2c_icamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %71 = load float, ptr %14, align 4, !tbaa !10
  %72 = fpext float %71 to double
  %73 = getelementptr inbounds %struct.complex, ptr %18, i64 %70
  %74 = load float, ptr %73, align 4, !tbaa !12
  %75 = call double @r_imag(ptr noundef nonnull %73) #4
  %76 = fptrunc double %75 to float
  %77 = insertelement <2 x float> poison, float %74, i64 0
  %78 = insertelement <2 x float> %77, float %76, i64 1
  %79 = fcmp oge <2 x float> %78, zeroinitializer
  %80 = fneg <2 x float> %78
  %81 = select <2 x i1> %79, <2 x float> %78, <2 x float> %80
  %82 = fpext <2 x float> %81 to <2 x double>
  %shift = shufflevector <2 x double> %82, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %83 = fadd <2 x double> %shift, %82
  %84 = extractelement <2 x double> %83, i64 0
  %85 = fmul double %84, %50
  %86 = fcmp ogt double %85, %72
  %87 = load float, ptr %14, align 4
  %88 = fcmp oeq float %87, 0.000000e+00
  %or.cond = select i1 %86, i1 true, i1 %88
  br i1 %or.cond, label %.loopexit, label %89

89:                                               ; preds = %69
  %90 = call i32 @csrscl_(ptr noundef nonnull %1, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %91

91:                                               ; preds = %89, %64
  %92 = load i64, ptr %1, align 8, !tbaa !5
  %93 = getelementptr %struct.complex, ptr %6, i64 %92
  %94 = call i32 @clacn2_(ptr noundef nonnull %1, ptr noundef %93, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #4
  %95 = load i64, ptr %13, align 8, !tbaa !5
  %.not85 = icmp eq i64 %95, 0
  br i1 %.not85, label %._crit_edge, label %51

._crit_edge:                                      ; preds = %91, %43
  %96 = load float, ptr %16, align 4, !tbaa !10
  %97 = fcmp une float %96, 0.000000e+00
  br i1 %97, label %98, label %.loopexit

98:                                               ; preds = %._crit_edge
  %99 = fdiv float 1.000000e+00, %96
  %100 = load float, ptr %4, align 4, !tbaa !10
  %101 = fdiv float %99, %100
  store float %101, ptr %5, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %69, %98, %._crit_edge, %40, %39, %.thread87
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  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 @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 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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!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,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass