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

; 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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4

; Function Attrs: nounwind uwtable
define dso_local void @chegv_(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, ptr noundef %10, ptr noundef %11, ptr noundef %12) #0 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca [1 x i8], align 1
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  %41 = load ptr, ptr %19, align 8, !tbaa !5
  %42 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %42, ptr %27, align 4, !tbaa !9
  %43 = load i32, ptr %27, align 4, !tbaa !9
  %44 = mul nsw i32 %43, 1
  %45 = add nsw i32 1, %44
  store i32 %45, ptr %28, align 4, !tbaa !9
  %46 = load i32, ptr %28, align 4, !tbaa !9
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  %48 = sext i32 %46 to i64
  %49 = sub i64 0, %48
  %50 = getelementptr inbounds %struct.complex, ptr %47, i64 %49
  store ptr %50, ptr %18, align 8, !tbaa !5
  %51 = load ptr, ptr %21, align 8, !tbaa !5
  %52 = load i32, ptr %51, align 4, !tbaa !9
  store i32 %52, ptr %29, align 4, !tbaa !9
  %53 = load i32, ptr %29, align 4, !tbaa !9
  %54 = mul nsw i32 %53, 1
  %55 = add nsw i32 1, %54
  store i32 %55, ptr %30, align 4, !tbaa !9
  %56 = load i32, ptr %30, align 4, !tbaa !9
  %57 = load ptr, ptr %20, align 8, !tbaa !5
  %58 = sext i32 %56 to i64
  %59 = sub i64 0, %58
  %60 = getelementptr inbounds %struct.complex, ptr %57, i64 %59
  store ptr %60, ptr %20, align 8, !tbaa !5
  %61 = load ptr, ptr %22, align 8, !tbaa !5
  %62 = getelementptr inbounds float, ptr %61, i32 -1
  store ptr %62, ptr %22, align 8, !tbaa !5
  %63 = load ptr, ptr %23, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.complex, ptr %63, i32 -1
  store ptr %64, ptr %23, align 8, !tbaa !5
  %65 = load ptr, ptr %25, align 8, !tbaa !5
  %66 = getelementptr inbounds float, ptr %65, i32 -1
  store ptr %66, ptr %25, align 8, !tbaa !5
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = call i32 @lsame_(ptr noundef %67, ptr noundef @.str)
  store i32 %68, ptr %36, align 4, !tbaa !9
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  %70 = call i32 @lsame_(ptr noundef %69, ptr noundef @.str.1)
  store i32 %70, ptr %35, align 4, !tbaa !9
  %71 = load ptr, ptr %24, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = icmp eq i32 %72, -1
  %74 = zext i1 %73 to i32
  store i32 %74, ptr %39, align 4, !tbaa !9
  %75 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 0, ptr %75, align 4, !tbaa !9
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = icmp slt i32 %77, 1
  br i1 %78, label %83, label %79

79:                                               ; preds = %13
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = icmp sgt i32 %81, 3
  br i1 %82, label %83, label %85

83:                                               ; preds = %79, %13
  %84 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -1, ptr %84, align 4, !tbaa !9
  br label %144

85:                                               ; preds = %79
  %86 = load i32, ptr %36, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %94, label %88

88:                                               ; preds = %85
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = call i32 @lsame_(ptr noundef %89, ptr noundef @.str.2)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %94, label %92

92:                                               ; preds = %88
  %93 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -2, ptr %93, align 4, !tbaa !9
  br label %143

94:                                               ; preds = %88, %85
  %95 = load i32, ptr %35, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %103, label %97

97:                                               ; preds = %94
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = call i32 @lsame_(ptr noundef %98, ptr noundef @.str.3)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %103, label %101

101:                                              ; preds = %97
  %102 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -3, ptr %102, align 4, !tbaa !9
  br label %142

103:                                              ; preds = %97, %94
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = icmp slt i32 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -4, ptr %108, align 4, !tbaa !9
  br label %141

109:                                              ; preds = %103
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp sge i32 1, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %109
  br label %119

116:                                              ; preds = %109
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %116, %115
  %120 = phi i32 [ 1, %115 ], [ %118, %116 ]
  %121 = icmp slt i32 %111, %120
  br i1 %121, label %122, label %124

122:                                              ; preds = %119
  %123 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -6, ptr %123, align 4, !tbaa !9
  br label %140

124:                                              ; preds = %119
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = icmp sge i32 1, %128
  br i1 %129, label %130, label %131

130:                                              ; preds = %124
  br label %134

131:                                              ; preds = %124
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %131, %130
  %135 = phi i32 [ 1, %130 ], [ %133, %131 ]
  %136 = icmp slt i32 %126, %135
  br i1 %136, label %137, label %139

137:                                              ; preds = %134
  %138 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -8, ptr %138, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %137, %134
  br label %140

140:                                              ; preds = %139, %122
  br label %141

141:                                              ; preds = %140, %107
  br label %142

142:                                              ; preds = %141, %101
  br label %143

143:                                              ; preds = %142, %92
  br label %144

144:                                              ; preds = %143, %83
  %145 = load ptr, ptr %26, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %196

148:                                              ; preds = %144
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.4, ptr noundef %149, ptr noundef %150, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %151, ptr %37, align 4, !tbaa !9
  store i32 1, ptr %31, align 4, !tbaa !9
  %152 = load i32, ptr %37, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = mul nsw i32 %153, %155
  store i32 %156, ptr %32, align 4, !tbaa !9
  %157 = load i32, ptr %31, align 4, !tbaa !9
  %158 = load i32, ptr %32, align 4, !tbaa !9
  %159 = icmp sge i32 %157, %158
  br i1 %159, label %160, label %162

160:                                              ; preds = %148
  %161 = load i32, ptr %31, align 4, !tbaa !9
  br label %164

162:                                              ; preds = %148
  %163 = load i32, ptr %32, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %162, %160
  %165 = phi i32 [ %161, %160 ], [ %163, %162 ]
  store i32 %165, ptr %38, align 4, !tbaa !9
  %166 = load i32, ptr %38, align 4, !tbaa !9
  %167 = sitofp i32 %166 to float
  %168 = load ptr, ptr %23, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.complex, ptr %168, i64 1
  %170 = getelementptr inbounds %struct.complex, ptr %169, i32 0, i32 0
  store float %167, ptr %170, align 4, !tbaa !11
  %171 = load ptr, ptr %23, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.complex, ptr %171, i64 1
  %173 = getelementptr inbounds %struct.complex, ptr %172, i32 0, i32 1
  store float 0.000000e+00, ptr %173, align 4, !tbaa !14
  store i32 1, ptr %31, align 4, !tbaa !9
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = shl i32 %175, 1
  %177 = sub nsw i32 %176, 1
  store i32 %177, ptr %32, align 4, !tbaa !9
  %178 = load ptr, ptr %24, align 8, !tbaa !5
  %179 = load i32, ptr %178, align 4, !tbaa !9
  %180 = load i32, ptr %31, align 4, !tbaa !9
  %181 = load i32, ptr %32, align 4, !tbaa !9
  %182 = icmp sge i32 %180, %181
  br i1 %182, label %183, label %185

183:                                              ; preds = %164
  %184 = load i32, ptr %31, align 4, !tbaa !9
  br label %187

185:                                              ; preds = %164
  %186 = load i32, ptr %32, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %185, %183
  %188 = phi i32 [ %184, %183 ], [ %186, %185 ]
  %189 = icmp slt i32 %179, %188
  br i1 %189, label %190, label %195

190:                                              ; preds = %187
  %191 = load i32, ptr %39, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %195, label %193

193:                                              ; preds = %190
  %194 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -11, ptr %194, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %193, %190, %187
  br label %196

196:                                              ; preds = %195, %144
  %197 = load ptr, ptr %26, align 8, !tbaa !5
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %200, label %205

200:                                              ; preds = %196
  %201 = load ptr, ptr %26, align 8, !tbaa !5
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = sub nsw i32 0, %202
  store i32 %203, ptr %31, align 4, !tbaa !9
  %204 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %31, i32 noundef 6)
  store i32 1, ptr %40, align 4
  br label %343

205:                                              ; preds = %196
  %206 = load i32, ptr %39, align 4, !tbaa !9
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %209

208:                                              ; preds = %205
  store i32 1, ptr %40, align 4
  br label %343

209:                                              ; preds = %205
  br label %210

210:                                              ; preds = %209
  %211 = load ptr, ptr %17, align 8, !tbaa !5
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %213 = icmp eq i32 %212, 0
  br i1 %213, label %214, label %215

214:                                              ; preds = %210
  store i32 1, ptr %40, align 4
  br label %343

215:                                              ; preds = %210
  %216 = load ptr, ptr %16, align 8, !tbaa !5
  %217 = load ptr, ptr %17, align 8, !tbaa !5
  %218 = load ptr, ptr %20, align 8, !tbaa !5
  %219 = load i32, ptr %30, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %struct.complex, ptr %218, i64 %220
  %222 = load ptr, ptr %21, align 8, !tbaa !5
  %223 = load ptr, ptr %26, align 8, !tbaa !5
  %224 = call i32 @cpotrf_(ptr noundef %216, ptr noundef %217, ptr noundef %221, ptr noundef %222, ptr noundef %223)
  %225 = load ptr, ptr %26, align 8, !tbaa !5
  %226 = load i32, ptr %225, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %235

228:                                              ; preds = %215
  %229 = load ptr, ptr %17, align 8, !tbaa !5
  %230 = load i32, ptr %229, align 4, !tbaa !9
  %231 = load ptr, ptr %26, align 8, !tbaa !5
  %232 = load i32, ptr %231, align 4, !tbaa !9
  %233 = add nsw i32 %230, %232
  %234 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 %233, ptr %234, align 4, !tbaa !9
  store i32 1, ptr %40, align 4
  br label %343

235:                                              ; preds = %215
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = load ptr, ptr %17, align 8, !tbaa !5
  %239 = load ptr, ptr %18, align 8, !tbaa !5
  %240 = load i32, ptr %28, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds %struct.complex, ptr %239, i64 %241
  %243 = load ptr, ptr %19, align 8, !tbaa !5
  %244 = load ptr, ptr %20, align 8, !tbaa !5
  %245 = load i32, ptr %30, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds %struct.complex, ptr %244, i64 %246
  %248 = load ptr, ptr %21, align 8, !tbaa !5
  %249 = load ptr, ptr %26, align 8, !tbaa !5
  call void @chegst_(ptr noundef %236, ptr noundef %237, ptr noundef %238, ptr noundef %242, ptr noundef %243, ptr noundef %247, ptr noundef %248, ptr noundef %249)
  %250 = load ptr, ptr %15, align 8, !tbaa !5
  %251 = load ptr, ptr %16, align 8, !tbaa !5
  %252 = load ptr, ptr %17, align 8, !tbaa !5
  %253 = load ptr, ptr %18, align 8, !tbaa !5
  %254 = load i32, ptr %28, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds %struct.complex, ptr %253, i64 %255
  %257 = load ptr, ptr %19, align 8, !tbaa !5
  %258 = load ptr, ptr %22, align 8, !tbaa !5
  %259 = getelementptr inbounds float, ptr %258, i64 1
  %260 = load ptr, ptr %23, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.complex, ptr %260, i64 1
  %262 = load ptr, ptr %24, align 8, !tbaa !5
  %263 = load ptr, ptr %25, align 8, !tbaa !5
  %264 = getelementptr inbounds float, ptr %263, i64 1
  %265 = load ptr, ptr %26, align 8, !tbaa !5
  call void @cheev_(ptr noundef %250, ptr noundef %251, ptr noundef %252, ptr noundef %256, ptr noundef %257, ptr noundef %259, ptr noundef %261, ptr noundef %262, ptr noundef %264, ptr noundef %265)
  %266 = load i32, ptr %36, align 4, !tbaa !9
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %334

268:                                              ; preds = %235
  %269 = load ptr, ptr %17, align 8, !tbaa !5
  %270 = load i32, ptr %269, align 4, !tbaa !9
  store i32 %270, ptr %33, align 4, !tbaa !9
  %271 = load ptr, ptr %26, align 8, !tbaa !5
  %272 = load i32, ptr %271, align 4, !tbaa !9
  %273 = icmp sgt i32 %272, 0
  br i1 %273, label %274, label %278

274:                                              ; preds = %268
  %275 = load ptr, ptr %26, align 8, !tbaa !5
  %276 = load i32, ptr %275, align 4, !tbaa !9
  %277 = sub nsw i32 %276, 1
  store i32 %277, ptr %33, align 4, !tbaa !9
  br label %278

278:                                              ; preds = %274, %268
  %279 = load ptr, ptr %14, align 8, !tbaa !5
  %280 = load i32, ptr %279, align 4, !tbaa !9
  %281 = icmp eq i32 %280, 1
  br i1 %281, label %286, label %282

282:                                              ; preds = %278
  %283 = load ptr, ptr %14, align 8, !tbaa !5
  %284 = load i32, ptr %283, align 4, !tbaa !9
  %285 = icmp eq i32 %284, 2
  br i1 %285, label %286, label %307

286:                                              ; preds = %282, %278
  %287 = load i32, ptr %35, align 4, !tbaa !9
  %288 = icmp ne i32 %287, 0
  br i1 %288, label %289, label %291

289:                                              ; preds = %286
  %290 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 78, ptr %290, align 1, !tbaa !15
  br label %293

291:                                              ; preds = %286
  %292 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 67, ptr %292, align 1, !tbaa !15
  br label %293

293:                                              ; preds = %291, %289
  %294 = load ptr, ptr %16, align 8, !tbaa !5
  %295 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %296 = load ptr, ptr %17, align 8, !tbaa !5
  %297 = load ptr, ptr %20, align 8, !tbaa !5
  %298 = load i32, ptr %30, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds %struct.complex, ptr %297, i64 %299
  %301 = load ptr, ptr %21, align 8, !tbaa !5
  %302 = load ptr, ptr %18, align 8, !tbaa !5
  %303 = load i32, ptr %28, align 4, !tbaa !9
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds %struct.complex, ptr %302, i64 %304
  %306 = load ptr, ptr %19, align 8, !tbaa !5
  call void @ctrsm_(ptr noundef @.str.6, ptr noundef %294, ptr noundef %295, ptr noundef @.str.7, ptr noundef %296, ptr noundef %33, ptr noundef @c_b1, ptr noundef %300, ptr noundef %301, ptr noundef %305, ptr noundef %306)
  br label %333

307:                                              ; preds = %282
  %308 = load ptr, ptr %14, align 8, !tbaa !5
  %309 = load i32, ptr %308, align 4, !tbaa !9
  %310 = icmp eq i32 %309, 3
  br i1 %310, label %311, label %332

311:                                              ; preds = %307
  %312 = load i32, ptr %35, align 4, !tbaa !9
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %314, label %316

314:                                              ; preds = %311
  %315 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 67, ptr %315, align 1, !tbaa !15
  br label %318

316:                                              ; preds = %311
  %317 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 78, ptr %317, align 1, !tbaa !15
  br label %318

318:                                              ; preds = %316, %314
  %319 = load ptr, ptr %16, align 8, !tbaa !5
  %320 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %321 = load ptr, ptr %17, align 8, !tbaa !5
  %322 = load ptr, ptr %20, align 8, !tbaa !5
  %323 = load i32, ptr %30, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds %struct.complex, ptr %322, i64 %324
  %326 = load ptr, ptr %21, align 8, !tbaa !5
  %327 = load ptr, ptr %18, align 8, !tbaa !5
  %328 = load i32, ptr %28, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds %struct.complex, ptr %327, i64 %329
  %331 = load ptr, ptr %19, align 8, !tbaa !5
  call void @ctrmm_(ptr noundef @.str.6, ptr noundef %319, ptr noundef %320, ptr noundef @.str.7, ptr noundef %321, ptr noundef %33, ptr noundef @c_b1, ptr noundef %325, ptr noundef %326, ptr noundef %330, ptr noundef %331)
  br label %332

332:                                              ; preds = %318, %307
  br label %333

333:                                              ; preds = %332, %293
  br label %334

334:                                              ; preds = %333, %235
  %335 = load i32, ptr %38, align 4, !tbaa !9
  %336 = sitofp i32 %335 to float
  %337 = load ptr, ptr %23, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.complex, ptr %337, i64 1
  %339 = getelementptr inbounds %struct.complex, ptr %338, i32 0, i32 0
  store float %336, ptr %339, align 4, !tbaa !11
  %340 = load ptr, ptr %23, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.complex, ptr %340, i64 1
  %342 = getelementptr inbounds %struct.complex, ptr %341, i32 0, i32 1
  store float 0.000000e+00, ptr %342, align 4, !tbaa !14
  store i32 1, ptr %40, align 4
  br label %343

343:                                              ; preds = %334, %228, %214, %208, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  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 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  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 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

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

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

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

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


; 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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4

; Function Attrs: nounwind uwtable
define dso_local void @chegv_(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, ptr noundef %10, ptr noundef %11, ptr noundef %12) local_unnamed_addr #0 {
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #4
  %17 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %18 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.1) #4
  %19 = load i32, ptr %10, align 4, !tbaa !5
  %20 = icmp eq i32 %19, -1
  store i32 0, ptr %12, align 4, !tbaa !5
  %21 = load i32, ptr %0, align 4, !tbaa !5
  %22 = add i32 %21, -4
  %or.cond129 = icmp ult i32 %22, -3
  br i1 %or.cond129, label %.thread136.sink.split, label %23

23:                                               ; preds = %13
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %24, label %26

24:                                               ; preds = %23
  %25 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #4
  %.not120 = icmp eq i32 %25, 0
  br i1 %.not120, label %.thread136.sink.split, label %26

26:                                               ; preds = %24, %23
  %.not121 = icmp eq i32 %18, 0
  br i1 %.not121, label %27, label %29

27:                                               ; preds = %26
  %28 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.3) #4
  %.not122 = icmp eq i32 %28, 0
  br i1 %.not122, label %.thread136.sink.split, label %29

29:                                               ; preds = %27, %26
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 0
  br i1 %31, label %.thread136.sink.split, label %32

32:                                               ; preds = %29
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %30, i32 1)
  %34 = icmp slt i32 %33, %spec.select
  br i1 %34, label %.thread136.sink.split, label %35

35:                                               ; preds = %32
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = icmp slt i32 %36, %spec.select
  br i1 %37, label %.thread136.sink.split, label %38

38:                                               ; preds = %35
  %.pr = load i32, ptr %12, align 4, !tbaa !5
  %39 = icmp eq i32 %.pr, 0
  br i1 %39, label %40, label %.thread136

40:                                               ; preds = %38
  %41 = tail call i32 @ilaenv_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.4, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, i32 noundef 6, i32 noundef 1) #4
  %42 = add nsw i32 %41, 1
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = mul nsw i32 %43, %42
  %45 = tail call i32 @llvm.smax.i32(i32 %44, i32 1)
  %46 = uitofp nneg i32 %45 to float
  store float %46, ptr %9, align 4, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %9, i64 4
  store float 0.000000e+00, ptr %47, align 4, !tbaa !12
  %48 = shl i32 %43, 1
  %49 = add nsw i32 %48, -1
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = icmp slt i32 %48, 3
  %52 = select i1 %51, i32 1, i32 %49
  %53 = icmp sge i32 %50, %52
  %or.cond = select i1 %53, i1 true, i1 %20
  br i1 %or.cond, label %.thread, label %.thread136.sink.split

.thread:                                          ; preds = %40
  %.pr133.pr = load i32, ptr %12, align 4, !tbaa !5
  %.not123 = icmp eq i32 %.pr133.pr, 0
  br i1 %.not123, label %57, label %.thread136

.thread136.sink.split:                            ; preds = %40, %35, %32, %29, %27, %24, %13
  %.sink = phi i32 [ -1, %13 ], [ -2, %24 ], [ -3, %27 ], [ -4, %29 ], [ -6, %32 ], [ -8, %35 ], [ -11, %40 ]
  store i32 %.sink, ptr %12, align 4, !tbaa !5
  br label %.thread136

.thread136:                                       ; preds = %.thread136.sink.split, %38, %.thread
  %54 = phi i32 [ %.pr133.pr, %.thread ], [ %.pr, %38 ], [ %.sink, %.thread136.sink.split ]
  %55 = sub nsw i32 0, %54
  store i32 %55, ptr %14, align 4, !tbaa !5
  %56 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %14, i32 noundef 6) #4
  br label %77

57:                                               ; preds = %.thread
  %58 = icmp eq i32 %43, 0
  %or.cond142 = or i1 %20, %58
  br i1 %or.cond142, label %77, label %59

59:                                               ; preds = %57
  %60 = tail call i32 @cpotrf_(ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull %12) #4
  %61 = load i32, ptr %12, align 4, !tbaa !5
  %.not124 = icmp eq i32 %61, 0
  br i1 %.not124, label %65, label %62

62:                                               ; preds = %59
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = add nsw i32 %63, %61
  store i32 %64, ptr %12, align 4, !tbaa !5
  br label %77

65:                                               ; preds = %59
  tail call void @chegst_(ptr noundef nonnull %0, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull %12) #4
  tail call void @cheev_(ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %11, ptr noundef nonnull %12) #4
  br i1 %.not, label %76, label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %67, ptr %15, align 4, !tbaa !5
  %68 = load i32, ptr %12, align 4, !tbaa !5
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %66
  %71 = add nsw i32 %68, -1
  store i32 %71, ptr %15, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %70, %66
  %73 = load i32, ptr %0, align 4, !tbaa !5
  switch i32 %73, label %76 [
    i32 1, label %74
    i32 2, label %74
    i32 3, label %75
  ]

74:                                               ; preds = %72, %72
  %. = select i1 %.not121, i8 67, i8 78
  store i8 %., ptr %16, align 1, !tbaa !13
  call void @ctrsm_(ptr noundef nonnull @.str.6, ptr noundef %2, ptr noundef nonnull %16, ptr noundef nonnull @.str.7, ptr noundef nonnull %3, ptr noundef nonnull %15, ptr noundef nonnull @c_b1, ptr noundef %6, ptr noundef nonnull %7, ptr noundef %4, ptr noundef nonnull %5) #4
  br label %76

75:                                               ; preds = %72
  %.131 = select i1 %.not121, i8 78, i8 67
  store i8 %.131, ptr %16, align 1, !tbaa !13
  call void @ctrmm_(ptr noundef nonnull @.str.6, ptr noundef %2, ptr noundef nonnull %16, ptr noundef nonnull @.str.7, ptr noundef nonnull %3, ptr noundef nonnull %15, ptr noundef nonnull @c_b1, ptr noundef %6, ptr noundef nonnull %7, ptr noundef %4, ptr noundef nonnull %5) #4
  br label %76

76:                                               ; preds = %72, %74, %75, %65
  store float %46, ptr %9, align 4, !tbaa !9
  store float 0.000000e+00, ptr %47, align 4, !tbaa !12
  br label %77

77:                                               ; preds = %57, %76, %62, %.thread136
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #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 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

declare void @cheev_(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 void @ctrsm_(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 void @ctrmm_(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

; 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.smax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass