; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (zhbev)

; 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.doublecomplex = type { double, double }

@.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
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b11 = external hidden global double, align 8
@.str.9 = 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 @zhbev_(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) #0 {
  %13 = alloca i32, align 4
  %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 i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca i64, align 8
  %34 = alloca double, align 8
  %35 = alloca i64, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca i64, align 8
  %46 = alloca double, align 8
  %47 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %48 = load ptr, ptr %19, align 8, !tbaa !5
  %49 = load i64, ptr %48, align 8, !tbaa !9
  store i64 %49, ptr %26, align 8, !tbaa !9
  %50 = load i64, ptr %26, align 8, !tbaa !9
  %51 = add nsw i64 1, %50
  store i64 %51, ptr %27, align 8, !tbaa !9
  %52 = load i64, ptr %27, align 8, !tbaa !9
  %53 = load ptr, ptr %18, align 8, !tbaa !5
  %54 = sub i64 0, %52
  %55 = getelementptr inbounds %struct.doublecomplex, ptr %53, i64 %54
  store ptr %55, ptr %18, align 8, !tbaa !5
  %56 = load ptr, ptr %20, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i32 -1
  store ptr %57, ptr %20, align 8, !tbaa !5
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  %59 = load i64, ptr %58, align 8, !tbaa !9
  store i64 %59, ptr %28, align 8, !tbaa !9
  %60 = load i64, ptr %28, align 8, !tbaa !9
  %61 = add nsw i64 1, %60
  store i64 %61, ptr %29, align 8, !tbaa !9
  %62 = load i64, ptr %29, align 8, !tbaa !9
  %63 = load ptr, ptr %21, align 8, !tbaa !5
  %64 = sub i64 0, %62
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %63, i64 %64
  store ptr %65, ptr %21, align 8, !tbaa !5
  %66 = load ptr, ptr %23, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.doublecomplex, ptr %66, i32 -1
  store ptr %67, ptr %23, align 8, !tbaa !5
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i32 -1
  store ptr %69, ptr %24, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = call i64 @lsame_(ptr noundef %70, ptr noundef @.str)
  store i64 %71, ptr %41, align 8, !tbaa !9
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = call i64 @lsame_(ptr noundef %72, ptr noundef @.str.1)
  store i64 %73, ptr %40, align 8, !tbaa !9
  %74 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 0, ptr %74, align 8, !tbaa !9
  %75 = load i64, ptr %41, align 8, !tbaa !9
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %83, label %77

77:                                               ; preds = %12
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = call i64 @lsame_(ptr noundef %78, ptr noundef @.str.2)
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %83, label %81

81:                                               ; preds = %77
  %82 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -1, ptr %82, align 8, !tbaa !9
  br label %133

83:                                               ; preds = %77, %12
  %84 = load i64, ptr %40, align 8, !tbaa !9
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %92, label %86

86:                                               ; preds = %83
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = call i64 @lsame_(ptr noundef %87, ptr noundef @.str.3)
  %89 = icmp ne i64 %88, 0
  br i1 %89, label %92, label %90

90:                                               ; preds = %86
  %91 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -2, ptr %91, align 8, !tbaa !9
  br label %132

92:                                               ; preds = %86, %83
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = icmp slt i64 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %92
  %97 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -3, ptr %97, align 8, !tbaa !9
  br label %131

98:                                               ; preds = %92
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = icmp slt i64 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -4, ptr %103, align 8, !tbaa !9
  br label %130

104:                                              ; preds = %98
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = load i64, ptr %107, align 8, !tbaa !9
  %109 = add nsw i64 %108, 1
  %110 = icmp slt i64 %106, %109
  br i1 %110, label %111, label %113

111:                                              ; preds = %104
  %112 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -6, ptr %112, align 8, !tbaa !9
  br label %129

113:                                              ; preds = %104
  %114 = load ptr, ptr %22, align 8, !tbaa !5
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = icmp slt i64 %115, 1
  br i1 %116, label %126, label %117

117:                                              ; preds = %113
  %118 = load i64, ptr %41, align 8, !tbaa !9
  %119 = icmp ne i64 %118, 0
  br i1 %119, label %120, label %128

120:                                              ; preds = %117
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = icmp slt i64 %122, %124
  br i1 %125, label %126, label %128

126:                                              ; preds = %120, %113
  %127 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 -9, ptr %127, align 8, !tbaa !9
  br label %128

128:                                              ; preds = %126, %120, %117
  br label %129

129:                                              ; preds = %128, %111
  br label %130

130:                                              ; preds = %129, %102
  br label %131

131:                                              ; preds = %130, %96
  br label %132

132:                                              ; preds = %131, %90
  br label %133

133:                                              ; preds = %132, %81
  %134 = load ptr, ptr %25, align 8, !tbaa !5
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %137, label %142

137:                                              ; preds = %133
  %138 = load ptr, ptr %25, align 8, !tbaa !5
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = sub nsw i64 0, %139
  store i64 %140, ptr %30, align 8, !tbaa !9
  %141 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %30)
  store i32 0, ptr %13, align 4
  store i32 1, ptr %47, align 4
  br label %336

142:                                              ; preds = %133
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = load i64, ptr %143, align 8, !tbaa !9
  %145 = icmp eq i64 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %142
  store i32 0, ptr %13, align 4
  store i32 1, ptr %47, align 4
  br label %336

147:                                              ; preds = %142
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = icmp eq i64 %149, 1
  br i1 %150, label %151, label %192

151:                                              ; preds = %147
  %152 = load i64, ptr %40, align 8, !tbaa !9
  %153 = icmp ne i64 %152, 0
  br i1 %153, label %154, label %164

154:                                              ; preds = %151
  %155 = load i64, ptr %26, align 8, !tbaa !9
  %156 = add nsw i64 %155, 1
  store i64 %156, ptr %30, align 8, !tbaa !9
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = load i64, ptr %30, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %157, i64 %158
  %160 = getelementptr inbounds %struct.doublecomplex, ptr %159, i32 0, i32 0
  %161 = load double, ptr %160, align 8, !tbaa !11
  %162 = load ptr, ptr %20, align 8, !tbaa !5
  %163 = getelementptr inbounds double, ptr %162, i64 1
  store double %161, ptr %163, align 8, !tbaa !14
  br label %177

164:                                              ; preds = %151
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = add nsw i64 %166, 1
  %168 = load i64, ptr %26, align 8, !tbaa !9
  %169 = add nsw i64 %167, %168
  store i64 %169, ptr %30, align 8, !tbaa !9
  %170 = load ptr, ptr %18, align 8, !tbaa !5
  %171 = load i64, ptr %30, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %170, i64 %171
  %173 = getelementptr inbounds %struct.doublecomplex, ptr %172, i32 0, i32 0
  %174 = load double, ptr %173, align 8, !tbaa !11
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = getelementptr inbounds double, ptr %175, i64 1
  store double %174, ptr %176, align 8, !tbaa !14
  br label %177

177:                                              ; preds = %164, %154
  %178 = load i64, ptr %41, align 8, !tbaa !9
  %179 = icmp ne i64 %178, 0
  br i1 %179, label %180, label %191

180:                                              ; preds = %177
  %181 = load i64, ptr %28, align 8, !tbaa !9
  %182 = add nsw i64 %181, 1
  store i64 %182, ptr %30, align 8, !tbaa !9
  %183 = load ptr, ptr %21, align 8, !tbaa !5
  %184 = load i64, ptr %30, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.doublecomplex, ptr %183, i64 %184
  %186 = getelementptr inbounds %struct.doublecomplex, ptr %185, i32 0, i32 0
  store double 1.000000e+00, ptr %186, align 8, !tbaa !11
  %187 = load ptr, ptr %21, align 8, !tbaa !5
  %188 = load i64, ptr %30, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.doublecomplex, ptr %187, i64 %188
  %190 = getelementptr inbounds %struct.doublecomplex, ptr %189, i32 0, i32 1
  store double 0.000000e+00, ptr %190, align 8, !tbaa !15
  br label %191

191:                                              ; preds = %180, %177
  store i32 0, ptr %13, align 4
  store i32 1, ptr %47, align 4
  br label %336

192:                                              ; preds = %147
  %193 = call double @dlamch_(ptr noundef @.str.5)
  store double %193, ptr %43, align 8, !tbaa !14
  %194 = call double @dlamch_(ptr noundef @.str.6)
  store double %194, ptr %32, align 8, !tbaa !14
  %195 = load double, ptr %43, align 8, !tbaa !14
  %196 = load double, ptr %32, align 8, !tbaa !14
  %197 = fdiv double %195, %196
  store double %197, ptr %46, align 8, !tbaa !14
  %198 = load double, ptr %46, align 8, !tbaa !14
  %199 = fdiv double 1.000000e+00, %198
  store double %199, ptr %44, align 8, !tbaa !14
  %200 = load double, ptr %46, align 8, !tbaa !14
  %201 = call double @sqrt(double noundef %200) #4
  store double %201, ptr %36, align 8, !tbaa !14
  %202 = load double, ptr %44, align 8, !tbaa !14
  %203 = call double @sqrt(double noundef %202) #4
  store double %203, ptr %37, align 8, !tbaa !14
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = load ptr, ptr %16, align 8, !tbaa !5
  %206 = load ptr, ptr %17, align 8, !tbaa !5
  %207 = load ptr, ptr %18, align 8, !tbaa !5
  %208 = load i64, ptr %27, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.doublecomplex, ptr %207, i64 %208
  %210 = load ptr, ptr %19, align 8, !tbaa !5
  %211 = load ptr, ptr %24, align 8, !tbaa !5
  %212 = getelementptr inbounds double, ptr %211, i64 1
  %213 = call double @zlanhb_(ptr noundef @.str.7, ptr noundef %204, ptr noundef %205, ptr noundef %206, ptr noundef %209, ptr noundef %210, ptr noundef %212)
  store double %213, ptr %34, align 8, !tbaa !14
  store i64 0, ptr %42, align 8, !tbaa !9
  %214 = load double, ptr %34, align 8, !tbaa !14
  %215 = fcmp ogt double %214, 0.000000e+00
  br i1 %215, label %216, label %224

216:                                              ; preds = %192
  %217 = load double, ptr %34, align 8, !tbaa !14
  %218 = load double, ptr %36, align 8, !tbaa !14
  %219 = fcmp olt double %217, %218
  br i1 %219, label %220, label %224

220:                                              ; preds = %216
  store i64 1, ptr %42, align 8, !tbaa !9
  %221 = load double, ptr %36, align 8, !tbaa !14
  %222 = load double, ptr %34, align 8, !tbaa !14
  %223 = fdiv double %221, %222
  store double %223, ptr %38, align 8, !tbaa !14
  br label %233

224:                                              ; preds = %216, %192
  %225 = load double, ptr %34, align 8, !tbaa !14
  %226 = load double, ptr %37, align 8, !tbaa !14
  %227 = fcmp ogt double %225, %226
  br i1 %227, label %228, label %232

228:                                              ; preds = %224
  store i64 1, ptr %42, align 8, !tbaa !9
  %229 = load double, ptr %37, align 8, !tbaa !14
  %230 = load double, ptr %34, align 8, !tbaa !14
  %231 = fdiv double %229, %230
  store double %231, ptr %38, align 8, !tbaa !14
  br label %232

232:                                              ; preds = %228, %224
  br label %233

233:                                              ; preds = %232, %220
  %234 = load i64, ptr %42, align 8, !tbaa !9
  %235 = icmp eq i64 %234, 1
  br i1 %235, label %236, label %262

236:                                              ; preds = %233
  %237 = load i64, ptr %40, align 8, !tbaa !9
  %238 = icmp ne i64 %237, 0
  br i1 %238, label %239, label %250

239:                                              ; preds = %236
  %240 = load ptr, ptr %17, align 8, !tbaa !5
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = load ptr, ptr %16, align 8, !tbaa !5
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = load i64, ptr %27, align 8, !tbaa !9
  %246 = getelementptr inbounds %struct.doublecomplex, ptr %244, i64 %245
  %247 = load ptr, ptr %19, align 8, !tbaa !5
  %248 = load ptr, ptr %25, align 8, !tbaa !5
  %249 = call i32 @zlascl_(ptr noundef @.str.8, ptr noundef %240, ptr noundef %241, ptr noundef @c_b11, ptr noundef %38, ptr noundef %242, ptr noundef %243, ptr noundef %246, ptr noundef %247, ptr noundef %248)
  br label %261

250:                                              ; preds = %236
  %251 = load ptr, ptr %17, align 8, !tbaa !5
  %252 = load ptr, ptr %17, align 8, !tbaa !5
  %253 = load ptr, ptr %16, align 8, !tbaa !5
  %254 = load ptr, ptr %16, align 8, !tbaa !5
  %255 = load ptr, ptr %18, align 8, !tbaa !5
  %256 = load i64, ptr %27, align 8, !tbaa !9
  %257 = getelementptr inbounds %struct.doublecomplex, ptr %255, i64 %256
  %258 = load ptr, ptr %19, align 8, !tbaa !5
  %259 = load ptr, ptr %25, align 8, !tbaa !5
  %260 = call i32 @zlascl_(ptr noundef @.str.9, ptr noundef %251, ptr noundef %252, ptr noundef @c_b11, ptr noundef %38, ptr noundef %253, ptr noundef %254, ptr noundef %257, ptr noundef %258, ptr noundef %259)
  br label %261

261:                                              ; preds = %250, %239
  br label %262

262:                                              ; preds = %261, %233
  store i64 1, ptr %33, align 8, !tbaa !9
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = load ptr, ptr %15, align 8, !tbaa !5
  %265 = load ptr, ptr %16, align 8, !tbaa !5
  %266 = load ptr, ptr %17, align 8, !tbaa !5
  %267 = load ptr, ptr %18, align 8, !tbaa !5
  %268 = load i64, ptr %27, align 8, !tbaa !9
  %269 = getelementptr inbounds %struct.doublecomplex, ptr %267, i64 %268
  %270 = load ptr, ptr %19, align 8, !tbaa !5
  %271 = load ptr, ptr %20, align 8, !tbaa !5
  %272 = getelementptr inbounds double, ptr %271, i64 1
  %273 = load ptr, ptr %24, align 8, !tbaa !5
  %274 = load i64, ptr %33, align 8, !tbaa !9
  %275 = getelementptr inbounds double, ptr %273, i64 %274
  %276 = load ptr, ptr %21, align 8, !tbaa !5
  %277 = load i64, ptr %29, align 8, !tbaa !9
  %278 = getelementptr inbounds %struct.doublecomplex, ptr %276, i64 %277
  %279 = load ptr, ptr %22, align 8, !tbaa !5
  %280 = load ptr, ptr %23, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.doublecomplex, ptr %280, i64 1
  %282 = call i32 @zhbtrd_(ptr noundef %263, ptr noundef %264, ptr noundef %265, ptr noundef %266, ptr noundef %269, ptr noundef %270, ptr noundef %272, ptr noundef %275, ptr noundef %278, ptr noundef %279, ptr noundef %281, ptr noundef %39)
  %283 = load i64, ptr %41, align 8, !tbaa !9
  %284 = icmp ne i64 %283, 0
  br i1 %284, label %294, label %285

285:                                              ; preds = %262
  %286 = load ptr, ptr %16, align 8, !tbaa !5
  %287 = load ptr, ptr %20, align 8, !tbaa !5
  %288 = getelementptr inbounds double, ptr %287, i64 1
  %289 = load ptr, ptr %24, align 8, !tbaa !5
  %290 = load i64, ptr %33, align 8, !tbaa !9
  %291 = getelementptr inbounds double, ptr %289, i64 %290
  %292 = load ptr, ptr %25, align 8, !tbaa !5
  %293 = call i32 @dsterf_(ptr noundef %286, ptr noundef %288, ptr noundef %291, ptr noundef %292)
  br label %315

294:                                              ; preds = %262
  %295 = load i64, ptr %33, align 8, !tbaa !9
  %296 = load ptr, ptr %16, align 8, !tbaa !5
  %297 = load i64, ptr %296, align 8, !tbaa !9
  %298 = add nsw i64 %295, %297
  store i64 %298, ptr %45, align 8, !tbaa !9
  %299 = load ptr, ptr %14, align 8, !tbaa !5
  %300 = load ptr, ptr %16, align 8, !tbaa !5
  %301 = load ptr, ptr %20, align 8, !tbaa !5
  %302 = getelementptr inbounds double, ptr %301, i64 1
  %303 = load ptr, ptr %24, align 8, !tbaa !5
  %304 = load i64, ptr %33, align 8, !tbaa !9
  %305 = getelementptr inbounds double, ptr %303, i64 %304
  %306 = load ptr, ptr %21, align 8, !tbaa !5
  %307 = load i64, ptr %29, align 8, !tbaa !9
  %308 = getelementptr inbounds %struct.doublecomplex, ptr %306, i64 %307
  %309 = load ptr, ptr %22, align 8, !tbaa !5
  %310 = load ptr, ptr %24, align 8, !tbaa !5
  %311 = load i64, ptr %45, align 8, !tbaa !9
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load ptr, ptr %25, align 8, !tbaa !5
  %314 = call i32 @zsteqr_(ptr noundef %299, ptr noundef %300, ptr noundef %302, ptr noundef %305, ptr noundef %308, ptr noundef %309, ptr noundef %312, ptr noundef %313)
  br label %315

315:                                              ; preds = %294, %285
  %316 = load i64, ptr %42, align 8, !tbaa !9
  %317 = icmp eq i64 %316, 1
  br i1 %317, label %318, label %335

318:                                              ; preds = %315
  %319 = load ptr, ptr %25, align 8, !tbaa !5
  %320 = load i64, ptr %319, align 8, !tbaa !9
  %321 = icmp eq i64 %320, 0
  br i1 %321, label %322, label %325

322:                                              ; preds = %318
  %323 = load ptr, ptr %16, align 8, !tbaa !5
  %324 = load i64, ptr %323, align 8, !tbaa !9
  store i64 %324, ptr %35, align 8, !tbaa !9
  br label %329

325:                                              ; preds = %318
  %326 = load ptr, ptr %25, align 8, !tbaa !5
  %327 = load i64, ptr %326, align 8, !tbaa !9
  %328 = sub nsw i64 %327, 1
  store i64 %328, ptr %35, align 8, !tbaa !9
  br label %329

329:                                              ; preds = %325, %322
  %330 = load double, ptr %38, align 8, !tbaa !14
  %331 = fdiv double 1.000000e+00, %330
  store double %331, ptr %31, align 8, !tbaa !14
  %332 = load ptr, ptr %20, align 8, !tbaa !5
  %333 = getelementptr inbounds double, ptr %332, i64 1
  %334 = call i32 @f2c_dscal(ptr noundef %35, ptr noundef %31, ptr noundef %333, ptr noundef @c__1)
  br label %335

335:                                              ; preds = %329, %315
  store i32 0, ptr %13, align 4
  store i32 1, ptr %47, align 4
  br label %336

336:                                              ; preds = %335, %191, %146, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  %337 = load i32, ptr %13, align 4
  ret i32 %337
}

; 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 @dlamch_(ptr noundef) #2

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

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

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

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

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

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

declare i32 @f2c_dscal(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 8}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 8}


; 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.doublecomplex = type { double, double }

@.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
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b11 = external hidden global double, align 8
@.str.9 = 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 @zhbev_(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) local_unnamed_addr #0 {
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %18 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %19 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #4
  store i64 0, ptr %11, align 8, !tbaa !5
  %.not = icmp ne i64 %18, 0
  br i1 %.not, label %22, label %20

20:                                               ; preds = %12
  %21 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not134 = icmp eq i64 %21, 0
  br i1 %.not134, label %.thread.sink.split, label %22

22:                                               ; preds = %20, %12
  %.not135 = icmp eq i64 %19, 0
  br i1 %.not135, label %23, label %25

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

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

28:                                               ; preds = %25
  %29 = load i64, ptr %3, align 8, !tbaa !5
  %30 = icmp slt i64 %29, 0
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %32 = load i64, ptr %5, align 8, !tbaa !5
  %.not137 = icmp sgt i64 %32, %29
  br i1 %.not137, label %33, label %.thread.sink.split

33:                                               ; preds = %31
  %34 = load i64, ptr %8, align 8, !tbaa !5
  %35 = icmp slt i64 %34, 1
  %36 = icmp ult i64 %34, %26
  %or.cond = and i1 %.not, %36
  %or.cond147 = or i1 %35, %or.cond
  br i1 %or.cond147, label %.thread.sink.split, label %37

37:                                               ; preds = %33
  %.pr = load i64, ptr %11, align 8, !tbaa !5
  %.not138 = icmp eq i64 %.pr, 0
  br i1 %.not138, label %41, label %.thread

.thread.sink.split:                               ; preds = %33, %31, %28, %25, %23, %20
  %.sink = phi i64 [ -1, %20 ], [ -2, %23 ], [ -3, %25 ], [ -4, %28 ], [ -6, %31 ], [ -9, %33 ]
  store i64 %.sink, ptr %11, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %37
  %38 = phi i64 [ %.pr, %37 ], [ %.sink, %.thread.sink.split ]
  %39 = sub nsw i64 0, %38
  store i64 %39, ptr %13, align 8, !tbaa !5
  %40 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %13) #4
  br label %78

41:                                               ; preds = %37
  switch i64 %26, label %44 [
    i64 0, label %78
    i64 1, label %42
  ]

42:                                               ; preds = %41
  %spec.select.idx = select i1 %.not135, i64 %29, i64 0
  %spec.select = getelementptr inbounds %struct.doublecomplex, ptr %4, i64 %spec.select.idx
  %storemerge141 = load double, ptr %spec.select, align 8, !tbaa !9
  store double %storemerge141, ptr %6, align 8, !tbaa !12
  br i1 %.not, label %43, label %78

43:                                               ; preds = %42
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %7, align 8, !tbaa !12
  br label %78

44:                                               ; preds = %41
  %45 = tail call double @dlamch_(ptr noundef nonnull @.str.5) #4
  %46 = tail call double @dlamch_(ptr noundef nonnull @.str.6) #4
  %47 = fdiv double %45, %46
  %48 = fdiv double 1.000000e+00, %47
  %49 = tail call double @sqrt(double noundef %47) #4
  %50 = tail call double @sqrt(double noundef %48) #4
  %51 = tail call double @zlanhb_(ptr noundef nonnull @.str.7, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %10) #4
  %52 = fcmp ogt double %51, 0.000000e+00
  %53 = fcmp olt double %51, %49
  %or.cond142 = select i1 %52, i1 %53, i1 false
  br i1 %or.cond142, label %.sink.split, label %54

54:                                               ; preds = %44
  %55 = fcmp ogt double %51, %50
  br i1 %55, label %.sink.split, label %57

.sink.split:                                      ; preds = %54, %44
  %.pn = phi double [ %49, %44 ], [ %50, %54 ]
  %storemerge146 = fdiv double %.pn, %51
  store double %storemerge146, ptr %16, align 8, !tbaa !12
  %.str.9..str.8 = select i1 %.not135, ptr @.str.9, ptr @.str.8
  %56 = call i32 @zlascl_(ptr noundef nonnull %.str.9..str.8, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef nonnull @c_b11, ptr noundef nonnull %16, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef nonnull %11) #4
  br label %57

57:                                               ; preds = %.sink.split, %54
  %58 = phi i1 [ false, %54 ], [ true, %.sink.split ]
  %59 = call i32 @zhbtrd_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %10, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %17) #4
  br i1 %.not, label %62, label %60

60:                                               ; preds = %57
  %61 = call i32 @dsterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef %10, ptr noundef nonnull %11) #4
  br label %66

62:                                               ; preds = %57
  %63 = load i64, ptr %2, align 8, !tbaa !5
  %64 = getelementptr double, ptr %10, i64 %63
  %65 = call i32 @zsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef %10, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %64, ptr noundef nonnull %11) #4
  br label %66

66:                                               ; preds = %62, %60
  br i1 %58, label %67, label %78

67:                                               ; preds = %66
  %68 = load i64, ptr %11, align 8, !tbaa !5
  %69 = icmp eq i64 %68, 0
  br i1 %69, label %70, label %72

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

72:                                               ; preds = %67
  %73 = add nsw i64 %68, -1
  br label %74

74:                                               ; preds = %72, %70
  %storemerge = phi i64 [ %73, %72 ], [ %71, %70 ]
  store i64 %storemerge, ptr %15, align 8, !tbaa !5
  %75 = load double, ptr %16, align 8, !tbaa !12
  %76 = fdiv double 1.000000e+00, %75
  store double %76, ptr %14, align 8, !tbaa !12
  %77 = call i32 @f2c_dscal(ptr noundef nonnull %15, ptr noundef nonnull %14, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %78

78:                                               ; preds = %66, %74, %42, %43, %41, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  ret i32 0
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

declare double @zlanhb_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare i32 @f2c_dscal(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

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 = { 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" }
attributes #4 = { nounwind }

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

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


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