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

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

64:                                               ; preds = %10
  %65 = load ptr, ptr %12, 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 %21, align 8, !tbaa !5
  store i64 -1, ptr %69, align 8, !tbaa !9
  br label %104

70:                                               ; preds = %64, %10
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = call i64 @lsame_(ptr noundef %71, ptr noundef @.str.2)
  %73 = icmp ne i64 %72, 0
  br i1 %73, label %80, label %74

74:                                               ; preds = %70
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = call i64 @lsame_(ptr noundef %75, ptr noundef @.str.3)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %80, label %78

78:                                               ; preds = %74
  %79 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -2, ptr %79, align 8, !tbaa !9
  br label %103

80:                                               ; preds = %74, %70
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = icmp slt i64 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -3, ptr %85, align 8, !tbaa !9
  br label %102

86:                                               ; preds = %80
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = icmp slt i64 %88, 1
  br i1 %89, label %99, label %90

90:                                               ; preds = %86
  %91 = load i64, ptr %34, align 8, !tbaa !9
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %93, label %101

93:                                               ; preds = %90
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = icmp slt i64 %95, %97
  br i1 %98, label %99, label %101

99:                                               ; preds = %93, %86
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -7, ptr %100, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %99, %93, %90
  br label %102

102:                                              ; preds = %101, %84
  br label %103

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

104:                                              ; preds = %103, %68
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = icmp ne i64 %106, 0
  br i1 %107, label %108, label %113

108:                                              ; preds = %104
  %109 = load ptr, ptr %21, align 8, !tbaa !5
  %110 = load i64, ptr %109, align 8, !tbaa !9
  %111 = sub nsw i64 0, %110
  store i64 %111, ptr %24, align 8, !tbaa !9
  %112 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %24)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %42, align 4
  br label %290

113:                                              ; preds = %104
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = icmp eq i64 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %113
  store i32 0, ptr %11, align 4
  store i32 1, ptr %42, align 4
  br label %290

118:                                              ; preds = %113
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = icmp eq i64 %120, 1
  br i1 %121, label %122, label %145

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

133:                                              ; preds = %122
  %134 = load i64, ptr %22, align 8, !tbaa !9
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %24, align 8, !tbaa !9
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = load i64, ptr %24, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.complex, ptr %136, i64 %137
  %139 = getelementptr inbounds %struct.complex, ptr %138, i32 0, i32 0
  store float 1.000000e+00, ptr %139, align 4, !tbaa !11
  %140 = load ptr, ptr %17, align 8, !tbaa !5
  %141 = load i64, ptr %24, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.complex, ptr %140, i64 %141
  %143 = getelementptr inbounds %struct.complex, ptr %142, i32 0, i32 1
  store float 0.000000e+00, ptr %143, align 4, !tbaa !15
  br label %144

144:                                              ; preds = %133, %122
  store i32 0, ptr %11, align 4
  store i32 1, ptr %42, align 4
  br label %290

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

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

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

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

185:                                              ; preds = %181
  store i64 1, ptr %35, align 8, !tbaa !9
  %186 = load float, ptr %31, align 4, !tbaa !14
  %187 = load float, ptr %28, align 4, !tbaa !14
  %188 = fdiv float %186, %187
  store float %188, ptr %32, align 4, !tbaa !14
  br label %189

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

190:                                              ; preds = %189, %177
  %191 = load i64, ptr %35, align 8, !tbaa !9
  %192 = icmp eq i64 %191, 1
  br i1 %192, label %193, label %204

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

204:                                              ; preds = %193, %190
  store i64 1, ptr %27, align 8, !tbaa !9
  store i64 1, ptr %38, align 8, !tbaa !9
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  %207 = load ptr, ptr %15, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.complex, ptr %207, i64 1
  %209 = load ptr, ptr %16, align 8, !tbaa !5
  %210 = getelementptr inbounds float, ptr %209, i64 1
  %211 = load ptr, ptr %20, align 8, !tbaa !5
  %212 = load i64, ptr %27, align 8, !tbaa !9
  %213 = getelementptr inbounds float, ptr %211, i64 %212
  %214 = load ptr, ptr %19, align 8, !tbaa !5
  %215 = load i64, ptr %38, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct.complex, ptr %214, i64 %215
  %217 = call i32 @chptrd_(ptr noundef %205, ptr noundef %206, ptr noundef %208, ptr noundef %210, ptr noundef %213, ptr noundef %216, ptr noundef %33)
  %218 = load i64, ptr %34, align 8, !tbaa !9
  %219 = icmp ne i64 %218, 0
  br i1 %219, label %229, label %220

220:                                              ; preds = %204
  %221 = load ptr, ptr %14, align 8, !tbaa !5
  %222 = load ptr, ptr %16, align 8, !tbaa !5
  %223 = getelementptr inbounds float, ptr %222, i64 1
  %224 = load ptr, ptr %20, align 8, !tbaa !5
  %225 = load i64, ptr %27, align 8, !tbaa !9
  %226 = getelementptr inbounds float, ptr %224, i64 %225
  %227 = load ptr, ptr %21, align 8, !tbaa !5
  %228 = call i32 @ssterf_(ptr noundef %221, ptr noundef %223, ptr noundef %226, ptr noundef %227)
  br label %269

229:                                              ; preds = %204
  %230 = load i64, ptr %38, align 8, !tbaa !9
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = load i64, ptr %231, align 8, !tbaa !9
  %233 = add nsw i64 %230, %232
  store i64 %233, ptr %40, align 8, !tbaa !9
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.complex, ptr %236, i64 1
  %238 = load ptr, ptr %19, align 8, !tbaa !5
  %239 = load i64, ptr %38, align 8, !tbaa !9
  %240 = getelementptr inbounds %struct.complex, ptr %238, i64 %239
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  %242 = load i64, ptr %23, align 8, !tbaa !9
  %243 = getelementptr inbounds %struct.complex, ptr %241, i64 %242
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = load ptr, ptr %19, align 8, !tbaa !5
  %246 = load i64, ptr %40, align 8, !tbaa !9
  %247 = getelementptr inbounds %struct.complex, ptr %245, i64 %246
  %248 = call i32 @cupgtr_(ptr noundef %234, ptr noundef %235, ptr noundef %237, ptr noundef %240, ptr noundef %243, ptr noundef %244, ptr noundef %247, ptr noundef %33)
  %249 = load i64, ptr %27, align 8, !tbaa !9
  %250 = load ptr, ptr %14, align 8, !tbaa !5
  %251 = load i64, ptr %250, align 8, !tbaa !9
  %252 = add nsw i64 %249, %251
  store i64 %252, ptr %39, align 8, !tbaa !9
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = load ptr, ptr %14, align 8, !tbaa !5
  %255 = load ptr, ptr %16, align 8, !tbaa !5
  %256 = getelementptr inbounds float, ptr %255, i64 1
  %257 = load ptr, ptr %20, align 8, !tbaa !5
  %258 = load i64, ptr %27, align 8, !tbaa !9
  %259 = getelementptr inbounds float, ptr %257, i64 %258
  %260 = load ptr, ptr %17, align 8, !tbaa !5
  %261 = load i64, ptr %23, align 8, !tbaa !9
  %262 = getelementptr inbounds %struct.complex, ptr %260, i64 %261
  %263 = load ptr, ptr %18, align 8, !tbaa !5
  %264 = load ptr, ptr %20, align 8, !tbaa !5
  %265 = load i64, ptr %39, align 8, !tbaa !9
  %266 = getelementptr inbounds float, ptr %264, i64 %265
  %267 = load ptr, ptr %21, align 8, !tbaa !5
  %268 = call i32 @csteqr_(ptr noundef %253, ptr noundef %254, ptr noundef %256, ptr noundef %259, ptr noundef %262, ptr noundef %263, ptr noundef %266, ptr noundef %267)
  br label %269

269:                                              ; preds = %229, %220
  %270 = load i64, ptr %35, align 8, !tbaa !9
  %271 = icmp eq i64 %270, 1
  br i1 %271, label %272, label %289

272:                                              ; preds = %269
  %273 = load ptr, ptr %21, align 8, !tbaa !5
  %274 = load i64, ptr %273, align 8, !tbaa !9
  %275 = icmp eq i64 %274, 0
  br i1 %275, label %276, label %279

276:                                              ; preds = %272
  %277 = load ptr, ptr %14, align 8, !tbaa !5
  %278 = load i64, ptr %277, align 8, !tbaa !9
  store i64 %278, ptr %29, align 8, !tbaa !9
  br label %283

279:                                              ; preds = %272
  %280 = load ptr, ptr %21, align 8, !tbaa !5
  %281 = load i64, ptr %280, align 8, !tbaa !9
  %282 = sub nsw i64 %281, 1
  store i64 %282, ptr %29, align 8, !tbaa !9
  br label %283

283:                                              ; preds = %279, %276
  %284 = load float, ptr %32, align 4, !tbaa !14
  %285 = fdiv float 1.000000e+00, %284
  store float %285, ptr %25, align 4, !tbaa !14
  %286 = load ptr, ptr %16, align 8, !tbaa !5
  %287 = getelementptr inbounds float, ptr %286, i64 1
  %288 = call i32 @f2c_sscal(ptr noundef %29, ptr noundef %25, ptr noundef %287, ptr noundef @c__1)
  br label %289

289:                                              ; preds = %283, %269
  store i32 0, ptr %11, align 4
  store i32 1, ptr %42, align 4
  br label %290

290:                                              ; preds = %289, %144, %117, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  %291 = load i32, ptr %11, align 4
  ret i32 %291
}

; 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

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

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

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

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

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

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

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

declare i32 @f2c_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 = !{!"long", !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 i64, align 8

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

17:                                               ; preds = %10
  %18 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not108 = icmp eq i64 %18, 0
  br i1 %.not108, label %.thread.sink.split, label %19

19:                                               ; preds = %17, %10
  %20 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #3
  %.not109 = icmp eq i64 %20, 0
  br i1 %.not109, label %21, label %23

21:                                               ; preds = %19
  %22 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #3
  %.not110 = icmp eq i64 %22, 0
  br i1 %.not110, label %.thread.sink.split, label %23

23:                                               ; preds = %21, %19
  %24 = load i64, ptr %2, align 8, !tbaa !5
  %25 = icmp slt i64 %24, 0
  br i1 %25, label %.thread.sink.split, label %26

26:                                               ; preds = %23
  %27 = load i64, ptr %6, align 8, !tbaa !5
  %28 = icmp slt i64 %27, 1
  %29 = icmp ult i64 %27, %24
  %or.cond = and i1 %.not, %29
  %or.cond118 = or i1 %28, %or.cond
  br i1 %or.cond118, label %.thread.sink.split, label %30

30:                                               ; preds = %26
  %.pr = load i64, ptr %9, align 8, !tbaa !5
  %.not111 = icmp eq i64 %.pr, 0
  br i1 %.not111, label %34, label %.thread

.thread.sink.split:                               ; preds = %26, %23, %21, %17
  %.sink = phi i64 [ -1, %17 ], [ -2, %21 ], [ -3, %23 ], [ -7, %26 ]
  store i64 %.sink, ptr %9, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %30
  %31 = phi i64 [ %.pr, %30 ], [ %.sink, %.thread.sink.split ]
  %32 = sub nsw i64 0, %31
  store i64 %32, ptr %11, align 8, !tbaa !5
  %33 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %11) #3
  br label %81

34:                                               ; preds = %30
  switch i64 %24, label %38 [
    i64 0, label %81
    i64 1, label %35
  ]

35:                                               ; preds = %34
  %36 = load float, ptr %3, align 4, !tbaa !9
  store float %36, ptr %4, align 4, !tbaa !12
  store float 1.000000e+00, ptr %8, align 4, !tbaa !12
  br i1 %.not, label %37, label %81

37:                                               ; preds = %35
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %5, align 4, !tbaa !12
  br label %81

38:                                               ; preds = %34
  %39 = tail call double @slamch_(ptr noundef nonnull @.str.5) #3
  %40 = fptrunc double %39 to float
  %41 = tail call double @slamch_(ptr noundef nonnull @.str.6) #3
  %42 = fptrunc double %41 to float
  %43 = fdiv float %40, %42
  %44 = fdiv float 1.000000e+00, %43
  %sqrtf = tail call float @sqrtf(float noundef %43) #4
  %sqrtf112 = tail call float @sqrtf(float noundef %44) #4
  %45 = tail call double @clanhp_(ptr noundef nonnull @.str.7, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %8) #3
  %46 = fptrunc double %45 to float
  %47 = fcmp ogt float %46, 0.000000e+00
  %48 = fcmp ogt float %sqrtf, %46
  %or.cond113 = select i1 %47, i1 %48, i1 false
  br i1 %or.cond113, label %51, label %49

49:                                               ; preds = %38
  %50 = fcmp olt float %sqrtf112, %46
  br i1 %50, label %51, label %57

51:                                               ; preds = %49, %38
  %sqrtf112.pn = phi float [ %sqrtf, %38 ], [ %sqrtf112, %49 ]
  %storemerge117 = fdiv float %sqrtf112.pn, %46
  store float %storemerge117, ptr %14, align 4, !tbaa !12
  %52 = load i64, ptr %2, align 8, !tbaa !5
  %53 = add nsw i64 %52, 1
  %54 = mul nsw i64 %53, %52
  %55 = sdiv i64 %54, 2
  store i64 %55, ptr %11, align 8, !tbaa !5
  %56 = call i32 @f2c_csscal(ptr noundef nonnull %11, ptr noundef nonnull %14, ptr noundef %3, ptr noundef nonnull @c__1) #3
  br label %57

57:                                               ; preds = %49, %51
  %58 = phi i1 [ true, %51 ], [ false, %49 ]
  %59 = call i32 @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 %62, label %60

60:                                               ; preds = %57
  %61 = call i32 @ssterf_(ptr noundef nonnull %2, ptr noundef %4, ptr noundef %8, ptr noundef nonnull %9) #3
  br label %69

62:                                               ; preds = %57
  %63 = load i64, ptr %2, align 8, !tbaa !5
  %64 = getelementptr %struct.complex, ptr %7, i64 %63
  %65 = call i32 @cupgtr_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %7, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %64, ptr noundef nonnull %15) #3
  %66 = load i64, ptr %2, align 8, !tbaa !5
  %67 = getelementptr float, ptr %8, i64 %66
  %68 = call i32 @csteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %8, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %67, ptr noundef nonnull %9) #3
  br label %69

69:                                               ; preds = %62, %60
  br i1 %58, label %70, label %81

70:                                               ; preds = %69
  %71 = load i64, ptr %9, align 8, !tbaa !5
  %72 = icmp eq i64 %71, 0
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = load i64, ptr %2, align 8, !tbaa !5
  br label %77

75:                                               ; preds = %70
  %76 = add nsw i64 %71, -1
  br label %77

77:                                               ; preds = %75, %73
  %storemerge = phi i64 [ %76, %75 ], [ %74, %73 ]
  store i64 %storemerge, ptr %13, align 8, !tbaa !5
  %78 = load float, ptr %14, align 4, !tbaa !12
  %79 = fdiv float 1.000000e+00, %78
  store float %79, ptr %12, align 4, !tbaa !12
  %80 = call i32 @f2c_sscal(ptr noundef nonnull %13, ptr noundef nonnull %12, ptr noundef %4, ptr noundef nonnull @c__1) #3
  br label %81

81:                                               ; preds = %69, %77, %35, %37, %34, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  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 double @clanhp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

declare i32 @f2c_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 = !{!"long", !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}


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