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

; 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
@c__2 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__3 = external hidden global i32, align 4
@c__4 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b21 = external hidden global double, align 8
@.str.10 = 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 @zhbev_2stage_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #0 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca i32, align 4
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca double, align 8
  %53 = alloca i32, align 4
  %54 = alloca double, align 8
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #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 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 4, 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 4, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #4
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  %58 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %58, ptr %27, align 4, !tbaa !9
  %59 = load i32, ptr %27, align 4, !tbaa !9
  %60 = mul nsw i32 %59, 1
  %61 = add nsw i32 1, %60
  store i32 %61, ptr %28, align 4, !tbaa !9
  %62 = load i32, ptr %28, align 4, !tbaa !9
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  %64 = sext i32 %62 to i64
  %65 = sub i64 0, %64
  %66 = getelementptr inbounds %struct.doublecomplex, ptr %63, i64 %65
  store ptr %66, ptr %18, align 8, !tbaa !5
  %67 = load ptr, ptr %20, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %67, i32 -1
  store ptr %68, ptr %20, align 8, !tbaa !5
  %69 = load ptr, ptr %22, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  store i32 %70, ptr %29, align 4, !tbaa !9
  %71 = load i32, ptr %29, align 4, !tbaa !9
  %72 = mul nsw i32 %71, 1
  %73 = add nsw i32 1, %72
  store i32 %73, ptr %30, align 4, !tbaa !9
  %74 = load i32, ptr %30, align 4, !tbaa !9
  %75 = load ptr, ptr %21, align 8, !tbaa !5
  %76 = sext i32 %74 to i64
  %77 = sub i64 0, %76
  %78 = getelementptr inbounds %struct.doublecomplex, ptr %75, i64 %77
  store ptr %78, ptr %21, align 8, !tbaa !5
  %79 = load ptr, ptr %23, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.doublecomplex, ptr %79, i32 -1
  store ptr %80, ptr %23, align 8, !tbaa !5
  %81 = load ptr, ptr %25, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i32 -1
  store ptr %82, ptr %25, align 8, !tbaa !5
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = call i32 @lsame_(ptr noundef %83, ptr noundef @.str)
  store i32 %84, ptr %44, align 4, !tbaa !9
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = call i32 @lsame_(ptr noundef %85, ptr noundef @.str.1)
  store i32 %86, ptr %42, align 4, !tbaa !9
  %87 = load ptr, ptr %24, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = icmp eq i32 %88, -1
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %53, align 4, !tbaa !9
  %91 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 0, ptr %91, align 4, !tbaa !9
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = call i32 @lsame_(ptr noundef %92, ptr noundef @.str.2)
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %97, label %95

95:                                               ; preds = %13
  %96 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -1, ptr %96, align 4, !tbaa !9
  br label %147

97:                                               ; preds = %13
  %98 = load i32, ptr %42, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %106, label %100

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

104:                                              ; preds = %100
  %105 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -2, ptr %105, align 4, !tbaa !9
  br label %146

106:                                              ; preds = %100, %97
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = icmp slt i32 %108, 0
  br i1 %109, label %110, label %112

110:                                              ; preds = %106
  %111 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -3, ptr %111, align 4, !tbaa !9
  br label %145

112:                                              ; preds = %106
  %113 = load ptr, ptr %17, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = icmp slt i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %112
  %117 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -4, ptr %117, align 4, !tbaa !9
  br label %144

118:                                              ; preds = %112
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  %124 = icmp slt i32 %120, %123
  br i1 %124, label %125, label %127

125:                                              ; preds = %118
  %126 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -6, ptr %126, align 4, !tbaa !9
  br label %143

127:                                              ; preds = %118
  %128 = load ptr, ptr %22, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = icmp slt i32 %129, 1
  br i1 %130, label %140, label %131

131:                                              ; preds = %127
  %132 = load i32, ptr %44, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %142

134:                                              ; preds = %131
  %135 = load ptr, ptr %22, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = icmp slt i32 %136, %138
  br i1 %139, label %140, label %142

140:                                              ; preds = %134, %127
  %141 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -9, ptr %141, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %140, %134, %131
  br label %143

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

144:                                              ; preds = %143, %116
  br label %145

145:                                              ; preds = %144, %110
  br label %146

146:                                              ; preds = %145, %104
  br label %147

147:                                              ; preds = %146, %95
  %148 = load ptr, ptr %26, align 8, !tbaa !5
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %199

151:                                              ; preds = %147
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = load i32, ptr %152, align 4, !tbaa !9
  %154 = icmp sle i32 %153, 1
  br i1 %154, label %155, label %164

155:                                              ; preds = %151
  store i32 1, ptr %41, align 4, !tbaa !9
  %156 = load i32, ptr %41, align 4, !tbaa !9
  %157 = sitofp i32 %156 to double
  %158 = load ptr, ptr %23, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %158, i64 1
  %160 = getelementptr inbounds %struct.doublecomplex, ptr %159, i32 0, i32 0
  store double %157, ptr %160, align 8, !tbaa !11
  %161 = load ptr, ptr %23, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.doublecomplex, ptr %161, i64 1
  %163 = getelementptr inbounds %struct.doublecomplex, ptr %162, i32 0, i32 1
  store double 0.000000e+00, ptr %163, align 8, !tbaa !14
  br label %188

164:                                              ; preds = %151
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load ptr, ptr %16, align 8, !tbaa !5
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = call i32 @ilaenv2stage_(ptr noundef @c__2, ptr noundef @.str.4, ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %168, ptr %45, align 4, !tbaa !9
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = load ptr, ptr %16, align 8, !tbaa !5
  %171 = load ptr, ptr %17, align 8, !tbaa !5
  %172 = call i32 @ilaenv2stage_(ptr noundef @c__3, ptr noundef @.str.4, ptr noundef %169, ptr noundef %170, ptr noundef %171, ptr noundef %45, ptr noundef @c_n1)
  store i32 %172, ptr %40, align 4, !tbaa !9
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load ptr, ptr %16, align 8, !tbaa !5
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  %176 = call i32 @ilaenv2stage_(ptr noundef @c__4, ptr noundef @.str.4, ptr noundef %173, ptr noundef %174, ptr noundef %175, ptr noundef %45, ptr noundef @c_n1)
  store i32 %176, ptr %43, align 4, !tbaa !9
  %177 = load i32, ptr %40, align 4, !tbaa !9
  %178 = load i32, ptr %43, align 4, !tbaa !9
  %179 = add nsw i32 %177, %178
  store i32 %179, ptr %41, align 4, !tbaa !9
  %180 = load i32, ptr %41, align 4, !tbaa !9
  %181 = sitofp i32 %180 to double
  %182 = load ptr, ptr %23, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.doublecomplex, ptr %182, i64 1
  %184 = getelementptr inbounds %struct.doublecomplex, ptr %183, i32 0, i32 0
  store double %181, ptr %184, align 8, !tbaa !11
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.doublecomplex, ptr %185, i64 1
  %187 = getelementptr inbounds %struct.doublecomplex, ptr %186, i32 0, i32 1
  store double 0.000000e+00, ptr %187, align 8, !tbaa !14
  br label %188

188:                                              ; preds = %164, %155
  %189 = load ptr, ptr %24, align 8, !tbaa !5
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = load i32, ptr %41, align 4, !tbaa !9
  %192 = icmp slt i32 %190, %191
  br i1 %192, label %193, label %198

193:                                              ; preds = %188
  %194 = load i32, ptr %53, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %198, label %196

196:                                              ; preds = %193
  %197 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -11, ptr %197, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %196, %193, %188
  br label %199

199:                                              ; preds = %198, %147
  %200 = load ptr, ptr %26, align 8, !tbaa !5
  %201 = load i32, ptr %200, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %208

203:                                              ; preds = %199
  %204 = load ptr, ptr %26, align 8, !tbaa !5
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = sub nsw i32 0, %205
  store i32 %206, ptr %31, align 4, !tbaa !9
  %207 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %31, i32 noundef 13)
  store i32 1, ptr %56, align 4
  br label %432

208:                                              ; preds = %199
  %209 = load i32, ptr %53, align 4, !tbaa !9
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %212

211:                                              ; preds = %208
  store i32 1, ptr %56, align 4
  br label %432

212:                                              ; preds = %208
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = load i32, ptr %214, align 4, !tbaa !9
  %216 = icmp eq i32 %215, 0
  br i1 %216, label %217, label %218

217:                                              ; preds = %213
  store i32 1, ptr %56, align 4
  br label %432

218:                                              ; preds = %213
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = load i32, ptr %219, align 4, !tbaa !9
  %221 = icmp eq i32 %220, 1
  br i1 %221, label %222, label %267

222:                                              ; preds = %218
  %223 = load i32, ptr %42, align 4, !tbaa !9
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %236

225:                                              ; preds = %222
  %226 = load i32, ptr %27, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %31, align 4, !tbaa !9
  %228 = load ptr, ptr %18, align 8, !tbaa !5
  %229 = load i32, ptr %31, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds %struct.doublecomplex, ptr %228, i64 %230
  %232 = getelementptr inbounds %struct.doublecomplex, ptr %231, i32 0, i32 0
  %233 = load double, ptr %232, align 8, !tbaa !11
  %234 = load ptr, ptr %20, align 8, !tbaa !5
  %235 = getelementptr inbounds double, ptr %234, i64 1
  store double %233, ptr %235, align 8, !tbaa !15
  br label %250

236:                                              ; preds = %222
  %237 = load ptr, ptr %17, align 8, !tbaa !5
  %238 = load i32, ptr %237, align 4, !tbaa !9
  %239 = add nsw i32 %238, 1
  %240 = load i32, ptr %27, align 4, !tbaa !9
  %241 = add nsw i32 %239, %240
  store i32 %241, ptr %31, align 4, !tbaa !9
  %242 = load ptr, ptr %18, align 8, !tbaa !5
  %243 = load i32, ptr %31, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds %struct.doublecomplex, ptr %242, i64 %244
  %246 = getelementptr inbounds %struct.doublecomplex, ptr %245, i32 0, i32 0
  %247 = load double, ptr %246, align 8, !tbaa !11
  %248 = load ptr, ptr %20, align 8, !tbaa !5
  %249 = getelementptr inbounds double, ptr %248, i64 1
  store double %247, ptr %249, align 8, !tbaa !15
  br label %250

250:                                              ; preds = %236, %225
  %251 = load i32, ptr %44, align 4, !tbaa !9
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %266

253:                                              ; preds = %250
  %254 = load i32, ptr %29, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %31, align 4, !tbaa !9
  %256 = load ptr, ptr %21, align 8, !tbaa !5
  %257 = load i32, ptr %31, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds %struct.doublecomplex, ptr %256, i64 %258
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %259, i32 0, i32 0
  store double 1.000000e+00, ptr %260, align 8, !tbaa !11
  %261 = load ptr, ptr %21, align 8, !tbaa !5
  %262 = load i32, ptr %31, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.doublecomplex, ptr %261, i64 %263
  %265 = getelementptr inbounds %struct.doublecomplex, ptr %264, i32 0, i32 1
  store double 0.000000e+00, ptr %265, align 8, !tbaa !14
  br label %266

266:                                              ; preds = %253, %250
  store i32 1, ptr %56, align 4
  br label %432

267:                                              ; preds = %218
  %268 = call double @dlamch_(ptr noundef @.str.6)
  store double %268, ptr %47, align 8, !tbaa !15
  %269 = call double @dlamch_(ptr noundef @.str.7)
  store double %269, ptr %54, align 8, !tbaa !15
  %270 = load double, ptr %47, align 8, !tbaa !15
  %271 = load double, ptr %54, align 8, !tbaa !15
  %272 = fdiv double %270, %271
  store double %272, ptr %52, align 8, !tbaa !15
  %273 = load double, ptr %52, align 8, !tbaa !15
  %274 = fdiv double 1.000000e+00, %273
  store double %274, ptr %48, align 8, !tbaa !15
  %275 = load double, ptr %52, align 8, !tbaa !15
  %276 = call double @sqrt(double noundef %275) #4
  store double %276, ptr %36, align 8, !tbaa !15
  %277 = load double, ptr %48, align 8, !tbaa !15
  %278 = call double @sqrt(double noundef %277) #4
  store double %278, ptr %37, align 8, !tbaa !15
  %279 = load ptr, ptr %15, align 8, !tbaa !5
  %280 = load ptr, ptr %16, align 8, !tbaa !5
  %281 = load ptr, ptr %17, align 8, !tbaa !5
  %282 = load ptr, ptr %18, align 8, !tbaa !5
  %283 = load i32, ptr %28, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds %struct.doublecomplex, ptr %282, i64 %284
  %286 = load ptr, ptr %19, align 8, !tbaa !5
  %287 = load ptr, ptr %25, align 8, !tbaa !5
  %288 = getelementptr inbounds double, ptr %287, i64 1
  %289 = call double @zlanhb_(ptr noundef @.str.8, ptr noundef %279, ptr noundef %280, ptr noundef %281, ptr noundef %285, ptr noundef %286, ptr noundef %288)
  store double %289, ptr %34, align 8, !tbaa !15
  store i32 0, ptr %46, align 4, !tbaa !9
  %290 = load double, ptr %34, align 8, !tbaa !15
  %291 = fcmp ogt double %290, 0.000000e+00
  br i1 %291, label %292, label %300

292:                                              ; preds = %267
  %293 = load double, ptr %34, align 8, !tbaa !15
  %294 = load double, ptr %36, align 8, !tbaa !15
  %295 = fcmp olt double %293, %294
  br i1 %295, label %296, label %300

296:                                              ; preds = %292
  store i32 1, ptr %46, align 4, !tbaa !9
  %297 = load double, ptr %36, align 8, !tbaa !15
  %298 = load double, ptr %34, align 8, !tbaa !15
  %299 = fdiv double %297, %298
  store double %299, ptr %38, align 8, !tbaa !15
  br label %309

300:                                              ; preds = %292, %267
  %301 = load double, ptr %34, align 8, !tbaa !15
  %302 = load double, ptr %37, align 8, !tbaa !15
  %303 = fcmp ogt double %301, %302
  br i1 %303, label %304, label %308

304:                                              ; preds = %300
  store i32 1, ptr %46, align 4, !tbaa !9
  %305 = load double, ptr %37, align 8, !tbaa !15
  %306 = load double, ptr %34, align 8, !tbaa !15
  %307 = fdiv double %305, %306
  store double %307, ptr %38, align 8, !tbaa !15
  br label %308

308:                                              ; preds = %304, %300
  br label %309

309:                                              ; preds = %308, %296
  %310 = load i32, ptr %46, align 4, !tbaa !9
  %311 = icmp eq i32 %310, 1
  br i1 %311, label %312, label %338

312:                                              ; preds = %309
  %313 = load i32, ptr %42, align 4, !tbaa !9
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %315, label %326

315:                                              ; preds = %312
  %316 = load ptr, ptr %17, align 8, !tbaa !5
  %317 = load ptr, ptr %17, align 8, !tbaa !5
  %318 = load ptr, ptr %16, align 8, !tbaa !5
  %319 = load ptr, ptr %16, align 8, !tbaa !5
  %320 = load ptr, ptr %18, align 8, !tbaa !5
  %321 = load i32, ptr %28, align 4, !tbaa !9
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds %struct.doublecomplex, ptr %320, i64 %322
  %324 = load ptr, ptr %19, align 8, !tbaa !5
  %325 = load ptr, ptr %26, align 8, !tbaa !5
  call void @zlascl_(ptr noundef @.str.9, ptr noundef %316, ptr noundef %317, ptr noundef @c_b21, ptr noundef %38, ptr noundef %318, ptr noundef %319, ptr noundef %323, ptr noundef %324, ptr noundef %325)
  br label %337

326:                                              ; preds = %312
  %327 = load ptr, ptr %17, align 8, !tbaa !5
  %328 = load ptr, ptr %17, align 8, !tbaa !5
  %329 = load ptr, ptr %16, align 8, !tbaa !5
  %330 = load ptr, ptr %16, align 8, !tbaa !5
  %331 = load ptr, ptr %18, align 8, !tbaa !5
  %332 = load i32, ptr %28, align 4, !tbaa !9
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds %struct.doublecomplex, ptr %331, i64 %333
  %335 = load ptr, ptr %19, align 8, !tbaa !5
  %336 = load ptr, ptr %26, align 8, !tbaa !5
  call void @zlascl_(ptr noundef @.str.10, ptr noundef %327, ptr noundef %328, ptr noundef @c_b21, ptr noundef %38, ptr noundef %329, ptr noundef %330, ptr noundef %334, ptr noundef %335, ptr noundef %336)
  br label %337

337:                                              ; preds = %326, %315
  br label %338

338:                                              ; preds = %337, %309
  store i32 1, ptr %33, align 4, !tbaa !9
  store i32 1, ptr %55, align 4, !tbaa !9
  %339 = load i32, ptr %55, align 4, !tbaa !9
  %340 = load i32, ptr %40, align 4, !tbaa !9
  %341 = add nsw i32 %339, %340
  store i32 %341, ptr %49, align 4, !tbaa !9
  %342 = load ptr, ptr %24, align 8, !tbaa !5
  %343 = load i32, ptr %342, align 4, !tbaa !9
  %344 = load i32, ptr %49, align 4, !tbaa !9
  %345 = sub nsw i32 %343, %344
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %51, align 4, !tbaa !9
  %347 = load ptr, ptr %14, align 8, !tbaa !5
  %348 = load ptr, ptr %15, align 8, !tbaa !5
  %349 = load ptr, ptr %16, align 8, !tbaa !5
  %350 = load ptr, ptr %17, align 8, !tbaa !5
  %351 = load ptr, ptr %18, align 8, !tbaa !5
  %352 = load i32, ptr %28, align 4, !tbaa !9
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds %struct.doublecomplex, ptr %351, i64 %353
  %355 = load ptr, ptr %19, align 8, !tbaa !5
  %356 = load ptr, ptr %20, align 8, !tbaa !5
  %357 = getelementptr inbounds double, ptr %356, i64 1
  %358 = load ptr, ptr %25, align 8, !tbaa !5
  %359 = load i32, ptr %33, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds double, ptr %358, i64 %360
  %362 = load ptr, ptr %23, align 8, !tbaa !5
  %363 = load i32, ptr %55, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds %struct.doublecomplex, ptr %362, i64 %364
  %366 = load ptr, ptr %23, align 8, !tbaa !5
  %367 = load i32, ptr %49, align 4, !tbaa !9
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds %struct.doublecomplex, ptr %366, i64 %368
  call void @zhetrd_hb2st_(ptr noundef @.str.2, ptr noundef %347, ptr noundef %348, ptr noundef %349, ptr noundef %350, ptr noundef %354, ptr noundef %355, ptr noundef %357, ptr noundef %361, ptr noundef %365, ptr noundef %40, ptr noundef %369, ptr noundef %51, ptr noundef %39)
  %370 = load i32, ptr %44, align 4, !tbaa !9
  %371 = icmp ne i32 %370, 0
  br i1 %371, label %381, label %372

372:                                              ; preds = %338
  %373 = load ptr, ptr %16, align 8, !tbaa !5
  %374 = load ptr, ptr %20, align 8, !tbaa !5
  %375 = getelementptr inbounds double, ptr %374, i64 1
  %376 = load ptr, ptr %25, align 8, !tbaa !5
  %377 = load i32, ptr %33, align 4, !tbaa !9
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds double, ptr %376, i64 %378
  %380 = load ptr, ptr %26, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %373, ptr noundef %375, ptr noundef %379, ptr noundef %380)
  br label %404

381:                                              ; preds = %338
  %382 = load i32, ptr %33, align 4, !tbaa !9
  %383 = load ptr, ptr %16, align 8, !tbaa !5
  %384 = load i32, ptr %383, align 4, !tbaa !9
  %385 = add nsw i32 %382, %384
  store i32 %385, ptr %50, align 4, !tbaa !9
  %386 = load ptr, ptr %14, align 8, !tbaa !5
  %387 = load ptr, ptr %16, align 8, !tbaa !5
  %388 = load ptr, ptr %20, align 8, !tbaa !5
  %389 = getelementptr inbounds double, ptr %388, i64 1
  %390 = load ptr, ptr %25, align 8, !tbaa !5
  %391 = load i32, ptr %33, align 4, !tbaa !9
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds double, ptr %390, i64 %392
  %394 = load ptr, ptr %21, align 8, !tbaa !5
  %395 = load i32, ptr %30, align 4, !tbaa !9
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds %struct.doublecomplex, ptr %394, i64 %396
  %398 = load ptr, ptr %22, align 8, !tbaa !5
  %399 = load ptr, ptr %25, align 8, !tbaa !5
  %400 = load i32, ptr %50, align 4, !tbaa !9
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds double, ptr %399, i64 %401
  %403 = load ptr, ptr %26, align 8, !tbaa !5
  call void @zsteqr_(ptr noundef %386, ptr noundef %387, ptr noundef %389, ptr noundef %393, ptr noundef %397, ptr noundef %398, ptr noundef %402, ptr noundef %403)
  br label %404

404:                                              ; preds = %381, %372
  %405 = load i32, ptr %46, align 4, !tbaa !9
  %406 = icmp eq i32 %405, 1
  br i1 %406, label %407, label %423

407:                                              ; preds = %404
  %408 = load ptr, ptr %26, align 8, !tbaa !5
  %409 = load i32, ptr %408, align 4, !tbaa !9
  %410 = icmp eq i32 %409, 0
  br i1 %410, label %411, label %414

411:                                              ; preds = %407
  %412 = load ptr, ptr %16, align 8, !tbaa !5
  %413 = load i32, ptr %412, align 4, !tbaa !9
  store i32 %413, ptr %35, align 4, !tbaa !9
  br label %418

414:                                              ; preds = %407
  %415 = load ptr, ptr %26, align 8, !tbaa !5
  %416 = load i32, ptr %415, align 4, !tbaa !9
  %417 = sub nsw i32 %416, 1
  store i32 %417, ptr %35, align 4, !tbaa !9
  br label %418

418:                                              ; preds = %414, %411
  %419 = load double, ptr %38, align 8, !tbaa !15
  %420 = fdiv double 1.000000e+00, %419
  store double %420, ptr %32, align 8, !tbaa !15
  %421 = load ptr, ptr %20, align 8, !tbaa !5
  %422 = getelementptr inbounds double, ptr %421, i64 1
  call void @dscal_(ptr noundef %35, ptr noundef %32, ptr noundef %422, ptr noundef @c__1)
  br label %423

423:                                              ; preds = %418, %404
  %424 = load i32, ptr %41, align 4, !tbaa !9
  %425 = sitofp i32 %424 to double
  %426 = load ptr, ptr %23, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.doublecomplex, ptr %426, i64 1
  %428 = getelementptr inbounds %struct.doublecomplex, ptr %427, i32 0, i32 0
  store double %425, ptr %428, align 8, !tbaa !11
  %429 = load ptr, ptr %23, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.doublecomplex, ptr %429, i64 1
  %431 = getelementptr inbounds %struct.doublecomplex, ptr %430, i32 0, i32 1
  store double 0.000000e+00, ptr %431, align 8, !tbaa !14
  store i32 1, ptr %56, align 4
  br label %432

432:                                              ; preds = %423, %266, %217, %211, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  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 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 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  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 @ilaenv2stage_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 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 void @zlascl_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @zhetrd_hb2st_(ptr noundef, ptr noundef, 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 void @dsterf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.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
@c__2 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__3 = external hidden global i32, align 4
@c__4 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@c_b21 = external hidden global double, align 8
@.str.10 = 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 @zhbev_2stage_(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 nocapture noundef readonly %10, ptr noundef %11, ptr noundef %12) local_unnamed_addr #0 {
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = add i32 %22, 1
  %narrow = xor i32 %22, -1
  %24 = sext i32 %narrow to i64
  %25 = getelementptr inbounds %struct.doublecomplex, ptr %4, i64 %24
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  %narrow174 = xor i32 %26, -1
  %28 = sext i32 %narrow174 to i64
  %29 = getelementptr inbounds %struct.doublecomplex, ptr %7, i64 %28
  %30 = getelementptr inbounds i8, ptr %9, i64 -16
  %31 = getelementptr inbounds i8, ptr %11, i64 -8
  %32 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %33 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #4
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = icmp eq i32 %34, -1
  store i32 0, ptr %12, align 4, !tbaa !5
  %36 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %.thread181.sink.split, label %37

37:                                               ; preds = %13
  %.not164 = icmp eq i32 %33, 0
  br i1 %.not164, label %38, label %40

38:                                               ; preds = %37
  %39 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #4
  %.not165 = icmp eq i32 %39, 0
  br i1 %.not165, label %.thread181.sink.split, label %40

40:                                               ; preds = %38, %37
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 0
  br i1 %42, label %.thread181.sink.split, label %43

43:                                               ; preds = %40
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 0
  br i1 %45, label %.thread181.sink.split, label %46

46:                                               ; preds = %43
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %.not166 = icmp sgt i32 %47, %44
  br i1 %.not166, label %48, label %.thread181.sink.split

48:                                               ; preds = %46
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 1
  br i1 %50, label %.thread181.sink.split, label %51

51:                                               ; preds = %48
  %.not167 = icmp ne i32 %32, 0
  %52 = icmp ult i32 %49, %41
  %or.cond175 = and i1 %.not167, %52
  br i1 %or.cond175, label %.thread181.sink.split, label %53

53:                                               ; preds = %51
  %.pr = load i32, ptr %12, align 4, !tbaa !5
  %54 = icmp eq i32 %.pr, 0
  br i1 %54, label %55, label %.thread181

55:                                               ; preds = %53
  %56 = icmp ult i32 %41, 2
  br i1 %56, label %63, label %57

57:                                               ; preds = %55
  %58 = tail call i32 @ilaenv2stage_(ptr noundef nonnull @c__2, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #4
  store i32 %58, ptr %20, align 4, !tbaa !5
  %59 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__3, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %20, ptr noundef nonnull @c_n1) #4
  store i32 %59, ptr %19, align 4, !tbaa !5
  %60 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__4, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %20, ptr noundef nonnull @c_n1) #4
  %61 = add nsw i32 %59, %60
  %62 = sitofp i32 %61 to double
  br label %63

63:                                               ; preds = %55, %57
  %64 = phi i32 [ %59, %57 ], [ undef, %55 ]
  %.sink = phi double [ %62, %57 ], [ 1.000000e+00, %55 ]
  %.0 = phi i32 [ %61, %57 ], [ 1, %55 ]
  store double %.sink, ptr %9, align 8
  %65 = getelementptr inbounds i8, ptr %9, i64 8
  store double 0.000000e+00, ptr %65, align 8
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = icmp sge i32 %66, %.0
  %or.cond = select i1 %67, i1 true, i1 %35
  br i1 %or.cond, label %.thread, label %.thread181.sink.split

.thread:                                          ; preds = %63
  %.pr178.pr = load i32, ptr %12, align 4, !tbaa !5
  %.not168 = icmp eq i32 %.pr178.pr, 0
  br i1 %.not168, label %71, label %.thread181

.thread181.sink.split:                            ; preds = %63, %48, %51, %46, %43, %40, %38, %13
  %.sink191 = phi i32 [ -1, %13 ], [ -2, %38 ], [ -3, %40 ], [ -4, %43 ], [ -6, %46 ], [ -9, %51 ], [ -9, %48 ], [ -11, %63 ]
  store i32 %.sink191, ptr %12, align 4, !tbaa !5
  br label %.thread181

.thread181:                                       ; preds = %.thread181.sink.split, %53, %.thread
  %68 = phi i32 [ %.pr178.pr, %.thread ], [ %.pr, %53 ], [ %.sink191, %.thread181.sink.split ]
  %69 = sub nsw i32 0, %68
  store i32 %69, ptr %14, align 4, !tbaa !5
  %70 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %14, i32 noundef 13) #4
  br label %122

71:                                               ; preds = %.thread
  br i1 %35, label %122, label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %2, align 4, !tbaa !5
  switch i32 %73, label %84 [
    i32 0, label %122
    i32 1, label %74
  ]

74:                                               ; preds = %72
  br i1 %.not164, label %75, label %80

75:                                               ; preds = %74
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = add i32 %23, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %struct.doublecomplex, ptr %25, i64 %78
  br label %80

80:                                               ; preds = %74, %75
  %storemerge172.in = phi ptr [ %79, %75 ], [ %4, %74 ]
  %storemerge172 = load double, ptr %storemerge172.in, align 8, !tbaa !9
  store double %storemerge172, ptr %6, align 8, !tbaa !12
  %.not173 = icmp eq i32 %32, 0
  br i1 %.not173, label %122, label %81

81:                                               ; preds = %80
  store double 1.000000e+00, ptr %7, align 8, !tbaa !9
  %82 = sext i32 %27 to i64
  %83 = getelementptr inbounds %struct.doublecomplex, ptr %29, i64 %82, i32 1
  store double 0.000000e+00, ptr %83, align 8, !tbaa !13
  br label %122

84:                                               ; preds = %72
  %85 = call double @dlamch_(ptr noundef nonnull @.str.6) #4
  %86 = call double @dlamch_(ptr noundef nonnull @.str.7) #4
  %87 = fdiv double %85, %86
  %88 = fdiv double 1.000000e+00, %87
  %89 = call double @sqrt(double noundef %87) #4
  %90 = call double @sqrt(double noundef %88) #4
  %91 = call double @zlanhb_(ptr noundef nonnull @.str.8, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %11) #4
  %92 = fcmp ogt double %91, 0.000000e+00
  %93 = fcmp olt double %91, %89
  %or.cond176 = select i1 %92, i1 %93, i1 false
  br i1 %or.cond176, label %.sink.split, label %94

94:                                               ; preds = %84
  %95 = fcmp ogt double %91, %90
  br i1 %95, label %.sink.split, label %96

.sink.split:                                      ; preds = %94, %84
  %.pn = phi double [ %89, %84 ], [ %90, %94 ]
  %storemerge189 = fdiv double %.pn, %91
  store double %storemerge189, ptr %17, align 8, !tbaa !12
  %.str.10..str.9 = select i1 %.not164, ptr @.str.10, ptr @.str.9
  call void @zlascl_(ptr noundef nonnull %.str.10..str.9, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef nonnull @c_b21, ptr noundef nonnull %17, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef nonnull %12) #4
  br label %96

96:                                               ; preds = %.sink.split, %94
  %97 = phi i1 [ false, %94 ], [ true, %.sink.split ]
  %98 = load i32, ptr %10, align 4, !tbaa !5
  %99 = sub i32 %98, %64
  store i32 %99, ptr %21, align 4, !tbaa !5
  %100 = sext i32 %64 to i64
  %101 = getelementptr %struct.doublecomplex, ptr %30, i64 %100
  %102 = getelementptr i8, ptr %101, i64 16
  call void @zhetrd_hb2st_(ptr noundef nonnull @.str.2, 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 %11, ptr noundef nonnull %9, ptr noundef nonnull %19, ptr noundef nonnull %102, ptr noundef nonnull %21, ptr noundef nonnull %18) #4
  %.not170 = icmp eq i32 %32, 0
  br i1 %.not170, label %103, label %104

103:                                              ; preds = %96
  call void @dsterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef %11, ptr noundef nonnull %12) #4
  br label %109

104:                                              ; preds = %96
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr double, ptr %31, i64 %106
  %108 = getelementptr i8, ptr %107, i64 8
  call void @zsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef %11, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %108, ptr noundef nonnull %12) #4
  br label %109

109:                                              ; preds = %104, %103
  br i1 %97, label %110, label %120

110:                                              ; preds = %109
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %110
  %114 = load i32, ptr %2, align 4, !tbaa !5
  br label %117

115:                                              ; preds = %110
  %116 = add nsw i32 %111, -1
  br label %117

117:                                              ; preds = %115, %113
  %storemerge = phi i32 [ %116, %115 ], [ %114, %113 ]
  store i32 %storemerge, ptr %16, align 4, !tbaa !5
  %118 = load double, ptr %17, align 8, !tbaa !12
  %119 = fdiv double 1.000000e+00, %118
  store double %119, ptr %15, align 8, !tbaa !12
  call void @dscal_(ptr noundef nonnull %16, ptr noundef nonnull %15, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %120

120:                                              ; preds = %117, %109
  %121 = sitofp i32 %.0 to double
  store double %121, ptr %9, align 8, !tbaa !9
  store double 0.000000e+00, ptr %65, align 8, !tbaa !13
  br label %122

122:                                              ; preds = %80, %81, %72, %71, %120, %.thread181
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  ret void
}

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

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

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 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 void @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 void @zhetrd_hb2st_(ptr noundef, ptr noundef, 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 void @dsterf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @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 = !{!"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 8}
!11 = !{!"double", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}


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