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

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

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

71:                                               ; preds = %65, %10
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = call i32 @lsame_(ptr noundef %72, ptr noundef @.str.2)
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %81, label %75

75:                                               ; preds = %71
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = call i32 @lsame_(ptr noundef %76, ptr noundef @.str.3)
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %81, label %79

79:                                               ; preds = %75
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -2, ptr %80, align 4, !tbaa !9
  br label %104

81:                                               ; preds = %75, %71
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %81
  %86 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %86, align 4, !tbaa !9
  br label %103

87:                                               ; preds = %81
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = icmp slt i32 %89, 1
  br i1 %90, label %100, label %91

91:                                               ; preds = %87
  %92 = load i32, ptr %32, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %102

94:                                               ; preds = %91
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = icmp slt i32 %96, %98
  br i1 %99, label %100, label %102

100:                                              ; preds = %94, %87
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -7, ptr %101, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %100, %94, %91
  br label %103

103:                                              ; preds = %102, %85
  br label %104

104:                                              ; preds = %103, %79
  br label %105

105:                                              ; preds = %104, %69
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %114

109:                                              ; preds = %105
  %110 = load ptr, ptr %20, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = sub nsw i32 0, %111
  store i32 %112, ptr %23, align 4, !tbaa !9
  %113 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %23, i32 noundef 6)
  store i32 1, ptr %41, align 4
  br label %293

114:                                              ; preds = %105
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %114
  store i32 1, ptr %41, align 4
  br label %293

119:                                              ; preds = %114
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %148

123:                                              ; preds = %119
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.complex, ptr %124, i64 1
  %126 = getelementptr inbounds %struct.complex, ptr %125, i32 0, i32 0
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  %129 = getelementptr inbounds float, ptr %128, i64 1
  store float %127, ptr %129, align 4, !tbaa !14
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = getelementptr inbounds float, ptr %130, i64 1
  store float 1.000000e+00, ptr %131, align 4, !tbaa !14
  %132 = load i32, ptr %32, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %147

134:                                              ; preds = %123
  %135 = load i32, ptr %21, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %23, align 4, !tbaa !9
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = load i32, ptr %23, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %struct.complex, ptr %137, i64 %139
  %141 = getelementptr inbounds %struct.complex, ptr %140, i32 0, i32 0
  store float 1.000000e+00, ptr %141, align 4, !tbaa !11
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  %143 = load i32, ptr %23, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds %struct.complex, ptr %142, i64 %144
  %146 = getelementptr inbounds %struct.complex, ptr %145, i32 0, i32 1
  store float 0.000000e+00, ptr %146, align 4, !tbaa !15
  br label %147

147:                                              ; preds = %134, %123
  store i32 1, ptr %41, align 4
  br label %293

148:                                              ; preds = %119
  %149 = call float @slamch_(ptr noundef @.str.5)
  store float %149, ptr %34, align 4, !tbaa !14
  %150 = call float @slamch_(ptr noundef @.str.6)
  store float %150, ptr %40, align 4, !tbaa !14
  %151 = load float, ptr %34, align 4, !tbaa !14
  %152 = load float, ptr %40, align 4, !tbaa !14
  %153 = fdiv float %151, %152
  store float %153, ptr %39, align 4, !tbaa !14
  %154 = load float, ptr %39, align 4, !tbaa !14
  %155 = fdiv float 1.000000e+00, %154
  store float %155, ptr %35, align 4, !tbaa !14
  %156 = load float, ptr %39, align 4, !tbaa !14
  %157 = fpext float %156 to double
  %158 = call double @sqrt(double noundef %157) #4
  %159 = fptrunc double %158 to float
  store float %159, ptr %28, align 4, !tbaa !14
  %160 = load float, ptr %35, align 4, !tbaa !14
  %161 = fpext float %160 to double
  %162 = call double @sqrt(double noundef %161) #4
  %163 = fptrunc double %162 to float
  store float %163, ptr %29, align 4, !tbaa !14
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.complex, ptr %166, i64 1
  %168 = load ptr, ptr %19, align 8, !tbaa !5
  %169 = getelementptr inbounds float, ptr %168, i64 1
  %170 = call float @clanhp_(ptr noundef @.str.7, ptr noundef %164, ptr noundef %165, ptr noundef %167, ptr noundef %169)
  store float %170, ptr %26, align 4, !tbaa !14
  store i32 0, ptr %33, align 4, !tbaa !9
  %171 = load float, ptr %26, align 4, !tbaa !14
  %172 = fcmp ogt float %171, 0.000000e+00
  br i1 %172, label %173, label %181

173:                                              ; preds = %148
  %174 = load float, ptr %26, align 4, !tbaa !14
  %175 = load float, ptr %28, align 4, !tbaa !14
  %176 = fcmp olt float %174, %175
  br i1 %176, label %177, label %181

177:                                              ; preds = %173
  store i32 1, ptr %33, align 4, !tbaa !9
  %178 = load float, ptr %28, align 4, !tbaa !14
  %179 = load float, ptr %26, align 4, !tbaa !14
  %180 = fdiv float %178, %179
  store float %180, ptr %30, align 4, !tbaa !14
  br label %190

181:                                              ; preds = %173, %148
  %182 = load float, ptr %26, align 4, !tbaa !14
  %183 = load float, ptr %29, align 4, !tbaa !14
  %184 = fcmp ogt float %182, %183
  br i1 %184, label %185, label %189

185:                                              ; preds = %181
  store i32 1, ptr %33, align 4, !tbaa !9
  %186 = load float, ptr %29, align 4, !tbaa !14
  %187 = load float, ptr %26, align 4, !tbaa !14
  %188 = fdiv float %186, %187
  store float %188, ptr %30, align 4, !tbaa !14
  br label %189

189:                                              ; preds = %185, %181
  br label %190

190:                                              ; preds = %189, %177
  %191 = load i32, ptr %33, align 4, !tbaa !9
  %192 = icmp eq i32 %191, 1
  br i1 %192, label %193, label %203

193:                                              ; preds = %190
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = load i32, ptr %196, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  %199 = mul nsw i32 %195, %198
  %200 = sdiv i32 %199, 2
  store i32 %200, ptr %23, align 4, !tbaa !9
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.complex, ptr %201, i64 1
  call void @csscal_(ptr noundef %23, ptr noundef %30, ptr noundef %202, ptr noundef @c__1)
  br label %203

203:                                              ; preds = %193, %190
  store i32 1, ptr %25, align 4, !tbaa !9
  store i32 1, ptr %36, align 4, !tbaa !9
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.complex, ptr %206, i64 1
  %208 = load ptr, ptr %15, align 8, !tbaa !5
  %209 = getelementptr inbounds float, ptr %208, i64 1
  %210 = load ptr, ptr %19, align 8, !tbaa !5
  %211 = load i32, ptr %25, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds float, ptr %210, i64 %212
  %214 = load ptr, ptr %18, align 8, !tbaa !5
  %215 = load i32, ptr %36, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds %struct.complex, ptr %214, i64 %216
  call void @chptrd_(ptr noundef %204, ptr noundef %205, ptr noundef %207, ptr noundef %209, ptr noundef %213, ptr noundef %217, ptr noundef %31)
  %218 = load i32, ptr %32, align 4, !tbaa !9
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %229, label %220

220:                                              ; preds = %203
  %221 = load ptr, ptr %13, align 8, !tbaa !5
  %222 = load ptr, ptr %15, align 8, !tbaa !5
  %223 = getelementptr inbounds float, ptr %222, i64 1
  %224 = load ptr, ptr %19, align 8, !tbaa !5
  %225 = load i32, ptr %25, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds float, ptr %224, i64 %226
  %228 = load ptr, ptr %20, align 8, !tbaa !5
  call void @ssterf_(ptr noundef %221, ptr noundef %223, ptr noundef %227, ptr noundef %228)
  br label %273

229:                                              ; preds = %203
  %230 = load i32, ptr %36, align 4, !tbaa !9
  %231 = load ptr, ptr %13, align 8, !tbaa !5
  %232 = load i32, ptr %231, align 4, !tbaa !9
  %233 = add nsw i32 %230, %232
  store i32 %233, ptr %38, align 4, !tbaa !9
  %234 = load ptr, ptr %12, align 8, !tbaa !5
  %235 = load ptr, ptr %13, align 8, !tbaa !5
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.complex, ptr %236, i64 1
  %238 = load ptr, ptr %18, align 8, !tbaa !5
  %239 = load i32, ptr %36, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds %struct.complex, ptr %238, i64 %240
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = load i32, ptr %22, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds %struct.complex, ptr %242, i64 %244
  %246 = load ptr, ptr %17, align 8, !tbaa !5
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  %248 = load i32, ptr %38, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds %struct.complex, ptr %247, i64 %249
  call void @cupgtr_(ptr noundef %234, ptr noundef %235, ptr noundef %237, ptr noundef %241, ptr noundef %245, ptr noundef %246, ptr noundef %250, ptr noundef %31)
  %251 = load i32, ptr %25, align 4, !tbaa !9
  %252 = load ptr, ptr %13, align 8, !tbaa !5
  %253 = load i32, ptr %252, align 4, !tbaa !9
  %254 = add nsw i32 %251, %253
  store i32 %254, ptr %37, align 4, !tbaa !9
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  %256 = load ptr, ptr %13, align 8, !tbaa !5
  %257 = load ptr, ptr %15, align 8, !tbaa !5
  %258 = getelementptr inbounds float, ptr %257, i64 1
  %259 = load ptr, ptr %19, align 8, !tbaa !5
  %260 = load i32, ptr %25, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds float, ptr %259, i64 %261
  %263 = load ptr, ptr %16, align 8, !tbaa !5
  %264 = load i32, ptr %22, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds %struct.complex, ptr %263, i64 %265
  %267 = load ptr, ptr %17, align 8, !tbaa !5
  %268 = load ptr, ptr %19, align 8, !tbaa !5
  %269 = load i32, ptr %37, align 4, !tbaa !9
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds float, ptr %268, i64 %270
  %272 = load ptr, ptr %20, align 8, !tbaa !5
  call void @csteqr_(ptr noundef %255, ptr noundef %256, ptr noundef %258, ptr noundef %262, ptr noundef %266, ptr noundef %267, ptr noundef %271, ptr noundef %272)
  br label %273

273:                                              ; preds = %229, %220
  %274 = load i32, ptr %33, align 4, !tbaa !9
  %275 = icmp eq i32 %274, 1
  br i1 %275, label %276, label %292

276:                                              ; preds = %273
  %277 = load ptr, ptr %20, align 8, !tbaa !5
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = icmp eq i32 %278, 0
  br i1 %279, label %280, label %283

280:                                              ; preds = %276
  %281 = load ptr, ptr %13, align 8, !tbaa !5
  %282 = load i32, ptr %281, align 4, !tbaa !9
  store i32 %282, ptr %27, align 4, !tbaa !9
  br label %287

283:                                              ; preds = %276
  %284 = load ptr, ptr %20, align 8, !tbaa !5
  %285 = load i32, ptr %284, align 4, !tbaa !9
  %286 = sub nsw i32 %285, 1
  store i32 %286, ptr %27, align 4, !tbaa !9
  br label %287

287:                                              ; preds = %283, %280
  %288 = load float, ptr %30, align 4, !tbaa !14
  %289 = fdiv float 1.000000e+00, %288
  store float %289, ptr %24, align 4, !tbaa !14
  %290 = load ptr, ptr %15, align 8, !tbaa !5
  %291 = getelementptr inbounds float, ptr %290, i64 1
  call void @sscal_(ptr noundef %27, ptr noundef %24, ptr noundef %291, ptr noundef @c__1)
  br label %292

292:                                              ; preds = %287, %273
  store i32 1, ptr %41, align 4
  br label %293

293:                                              ; preds = %292, %147, %118, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  ret void
}

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

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

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

declare float @slamch_(ptr noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

declare float @clanhp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @chpev_(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) local_unnamed_addr #0 {
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = add nsw i32 %16, 1
  %narrow = xor i32 %16, -1
  %18 = sext i32 %narrow to i64
  %19 = getelementptr inbounds %struct.complex, ptr %5, i64 %18
  %20 = getelementptr inbounds i8, ptr %7, i64 -8
  %21 = getelementptr inbounds i8, ptr %8, i64 -4
  %22 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  %.not = icmp ne i32 %22, 0
  br i1 %.not, label %25, label %23

23:                                               ; preds = %10
  %24 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not107 = icmp eq i32 %24, 0
  br i1 %.not107, label %.thread.sink.split, label %25

25:                                               ; preds = %23, %10
  %26 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #3
  %.not108 = icmp eq i32 %26, 0
  br i1 %.not108, label %27, label %29

27:                                               ; preds = %25
  %28 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #3
  %.not109 = icmp eq i32 %28, 0
  br i1 %.not109, label %.thread.sink.split, label %29

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

32:                                               ; preds = %29
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 1
  %35 = icmp ult i32 %33, %30
  %or.cond = and i1 %.not, %35
  %or.cond117 = or i1 %34, %or.cond
  br i1 %or.cond117, label %.thread.sink.split, label %36

36:                                               ; preds = %32
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %.not110 = icmp eq i32 %.pr, 0
  br i1 %.not110, label %40, label %.thread

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

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

40:                                               ; preds = %36
  switch i32 %30, label %46 [
    i32 0, label %84
    i32 1, label %41
  ]

41:                                               ; preds = %40
  %42 = load float, ptr %3, align 4, !tbaa !9
  store float %42, ptr %4, align 4, !tbaa !12
  store float 1.000000e+00, ptr %8, align 4, !tbaa !12
  br i1 %.not, label %43, label %84

43:                                               ; preds = %41
  store float 1.000000e+00, ptr %5, align 4, !tbaa !9
  %44 = sext i32 %17 to i64
  %45 = getelementptr inbounds %struct.complex, ptr %19, i64 %44, i32 1
  store float 0.000000e+00, ptr %45, align 4, !tbaa !13
  br label %84

46:                                               ; preds = %40
  %47 = tail call float @slamch_(ptr noundef nonnull @.str.5) #3
  %48 = tail call float @slamch_(ptr noundef nonnull @.str.6) #3
  %49 = fdiv float %47, %48
  %50 = fdiv float 1.000000e+00, %49
  %sqrtf = tail call float @sqrtf(float noundef %49) #4
  %sqrtf111 = tail call float @sqrtf(float noundef %50) #4
  %51 = tail call float @clanhp_(ptr noundef nonnull @.str.7, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %8) #3
  %52 = fcmp ogt float %51, 0.000000e+00
  %53 = fcmp olt float %51, %sqrtf
  %or.cond112 = select i1 %52, i1 %53, i1 false
  br i1 %or.cond112, label %56, label %54

54:                                               ; preds = %46
  %55 = fcmp ogt float %51, %sqrtf111
  br i1 %55, label %56, label %61

56:                                               ; preds = %54, %46
  %sqrtf111.pn = phi float [ %sqrtf, %46 ], [ %sqrtf111, %54 ]
  %storemerge116 = fdiv float %sqrtf111.pn, %51
  store float %storemerge116, ptr %14, align 4, !tbaa !12
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  %59 = mul nsw i32 %58, %57
  %60 = sdiv i32 %59, 2
  store i32 %60, ptr %11, align 4, !tbaa !5
  call void @csscal_(ptr noundef nonnull %11, ptr noundef nonnull %14, ptr noundef %3, ptr noundef nonnull @c__1) #3
  br label %61

61:                                               ; preds = %54, %56
  %62 = phi i1 [ true, %56 ], [ false, %54 ]
  call void @chptrd_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4, ptr noundef %8, ptr noundef %7, ptr noundef nonnull %15) #3
  br i1 %.not, label %64, label %63

63:                                               ; preds = %61
  call void @ssterf_(ptr noundef nonnull %2, ptr noundef %4, ptr noundef %8, ptr noundef nonnull %9) #3
  br label %73

64:                                               ; preds = %61
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr %struct.complex, ptr %20, i64 %66
  %68 = getelementptr i8, ptr %67, i64 8
  call void @cupgtr_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %7, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %68, ptr noundef nonnull %15) #3
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr float, ptr %21, i64 %70
  %72 = getelementptr i8, ptr %71, i64 4
  call void @csteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %8, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %72, ptr noundef nonnull %9) #3
  br label %73

73:                                               ; preds = %64, %63
  br i1 %62, label %74, label %84

74:                                               ; preds = %73
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %79

77:                                               ; preds = %74
  %78 = load i32, ptr %2, align 4, !tbaa !5
  br label %81

79:                                               ; preds = %74
  %80 = add nsw i32 %75, -1
  br label %81

81:                                               ; preds = %79, %77
  %storemerge = phi i32 [ %80, %79 ], [ %78, %77 ]
  store i32 %storemerge, ptr %13, align 4, !tbaa !5
  %82 = load float, ptr %14, align 4, !tbaa !12
  %83 = fdiv float 1.000000e+00, %82
  store float %83, ptr %12, align 4, !tbaa !12
  call void @sscal_(ptr noundef nonnull %13, ptr noundef nonnull %12, ptr noundef %4, ptr noundef nonnull @c__1) #3
  br label %84

84:                                               ; preds = %73, %81, %41, %43, %40, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  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 float @clanhp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

declare void @sscal_(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

declare float @sqrtf(float) local_unnamed_addr

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

!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 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}


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