; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

80:                                               ; preds = %12
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = call i32 @lsame_(ptr noundef %81, ptr noundef @.str.2)
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %86, label %84

84:                                               ; preds = %80
  %85 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -1, ptr %85, align 4, !tbaa !9
  br label %136

86:                                               ; preds = %80, %12
  %87 = load i32, ptr %38, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %95, label %89

89:                                               ; preds = %86
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = call i32 @lsame_(ptr noundef %90, ptr noundef @.str.3)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %95, label %93

93:                                               ; preds = %89
  %94 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -2, ptr %94, align 4, !tbaa !9
  br label %135

95:                                               ; preds = %89, %86
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = icmp slt i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %95
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -3, ptr %100, align 4, !tbaa !9
  br label %134

101:                                              ; preds = %95
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp slt i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -4, ptr %106, align 4, !tbaa !9
  br label %133

107:                                              ; preds = %101
  %108 = load ptr, ptr %18, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  %113 = icmp slt i32 %109, %112
  br i1 %113, label %114, label %116

114:                                              ; preds = %107
  %115 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -6, ptr %115, align 4, !tbaa !9
  br label %132

116:                                              ; preds = %107
  %117 = load ptr, ptr %21, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = icmp slt i32 %118, 1
  br i1 %119, label %129, label %120

120:                                              ; preds = %116
  %121 = load i32, ptr %39, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %131

123:                                              ; preds = %120
  %124 = load ptr, ptr %21, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = icmp slt i32 %125, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %123, %116
  %130 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -9, ptr %130, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %129, %123, %120
  br label %132

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

133:                                              ; preds = %132, %105
  br label %134

134:                                              ; preds = %133, %99
  br label %135

135:                                              ; preds = %134, %93
  br label %136

136:                                              ; preds = %135, %84
  %137 = load ptr, ptr %24, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %145

140:                                              ; preds = %136
  %141 = load ptr, ptr %24, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = sub nsw i32 0, %142
  store i32 %143, ptr %29, align 4, !tbaa !9
  %144 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %29, i32 noundef 6)
  store i32 1, ptr %46, align 4
  br label %347

145:                                              ; preds = %136
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %145
  store i32 1, ptr %46, align 4
  br label %347

150:                                              ; preds = %145
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = icmp eq i32 %152, 1
  br i1 %153, label %154, label %199

154:                                              ; preds = %150
  %155 = load i32, ptr %38, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %168

157:                                              ; preds = %154
  %158 = load i32, ptr %25, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %29, align 4, !tbaa !9
  %160 = load ptr, ptr %17, align 8, !tbaa !5
  %161 = load i32, ptr %29, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds %struct.doublecomplex, ptr %160, i64 %162
  %164 = getelementptr inbounds %struct.doublecomplex, ptr %163, i32 0, i32 0
  %165 = load double, ptr %164, align 8, !tbaa !11
  %166 = load ptr, ptr %19, align 8, !tbaa !5
  %167 = getelementptr inbounds double, ptr %166, i64 1
  store double %165, ptr %167, align 8, !tbaa !14
  br label %182

168:                                              ; preds = %154
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  %172 = load i32, ptr %25, align 4, !tbaa !9
  %173 = add nsw i32 %171, %172
  store i32 %173, ptr %29, align 4, !tbaa !9
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load i32, ptr %29, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds %struct.doublecomplex, ptr %174, i64 %176
  %178 = getelementptr inbounds %struct.doublecomplex, ptr %177, i32 0, i32 0
  %179 = load double, ptr %178, align 8, !tbaa !11
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 1
  store double %179, ptr %181, align 8, !tbaa !14
  br label %182

182:                                              ; preds = %168, %157
  %183 = load i32, ptr %39, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %198

185:                                              ; preds = %182
  %186 = load i32, ptr %27, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %29, align 4, !tbaa !9
  %188 = load ptr, ptr %20, align 8, !tbaa !5
  %189 = load i32, ptr %29, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds %struct.doublecomplex, ptr %188, i64 %190
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %191, i32 0, i32 0
  store double 1.000000e+00, ptr %192, align 8, !tbaa !11
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = load i32, ptr %29, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %struct.doublecomplex, ptr %193, i64 %195
  %197 = getelementptr inbounds %struct.doublecomplex, ptr %196, i32 0, i32 1
  store double 0.000000e+00, ptr %197, align 8, !tbaa !15
  br label %198

198:                                              ; preds = %185, %182
  store i32 1, ptr %46, align 4
  br label %347

199:                                              ; preds = %150
  %200 = call double @dlamch_(ptr noundef @.str.5)
  store double %200, ptr %41, align 8, !tbaa !14
  %201 = call double @dlamch_(ptr noundef @.str.6)
  store double %201, ptr %45, align 8, !tbaa !14
  %202 = load double, ptr %41, align 8, !tbaa !14
  %203 = load double, ptr %45, align 8, !tbaa !14
  %204 = fdiv double %202, %203
  store double %204, ptr %44, align 8, !tbaa !14
  %205 = load double, ptr %44, align 8, !tbaa !14
  %206 = fdiv double 1.000000e+00, %205
  store double %206, ptr %42, align 8, !tbaa !14
  %207 = load double, ptr %44, align 8, !tbaa !14
  %208 = call double @sqrt(double noundef %207) #4
  store double %208, ptr %34, align 8, !tbaa !14
  %209 = load double, ptr %42, align 8, !tbaa !14
  %210 = call double @sqrt(double noundef %209) #4
  store double %210, ptr %35, align 8, !tbaa !14
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = load ptr, ptr %16, align 8, !tbaa !5
  %214 = load ptr, ptr %17, align 8, !tbaa !5
  %215 = load i32, ptr %26, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds %struct.doublecomplex, ptr %214, i64 %216
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = load ptr, ptr %23, align 8, !tbaa !5
  %220 = getelementptr inbounds double, ptr %219, i64 1
  %221 = call double @zlanhb_(ptr noundef @.str.7, ptr noundef %211, ptr noundef %212, ptr noundef %213, ptr noundef %217, ptr noundef %218, ptr noundef %220)
  store double %221, ptr %32, align 8, !tbaa !14
  store i32 0, ptr %40, align 4, !tbaa !9
  %222 = load double, ptr %32, align 8, !tbaa !14
  %223 = fcmp ogt double %222, 0.000000e+00
  br i1 %223, label %224, label %232

224:                                              ; preds = %199
  %225 = load double, ptr %32, align 8, !tbaa !14
  %226 = load double, ptr %34, align 8, !tbaa !14
  %227 = fcmp olt double %225, %226
  br i1 %227, label %228, label %232

228:                                              ; preds = %224
  store i32 1, ptr %40, align 4, !tbaa !9
  %229 = load double, ptr %34, align 8, !tbaa !14
  %230 = load double, ptr %32, align 8, !tbaa !14
  %231 = fdiv double %229, %230
  store double %231, ptr %36, align 8, !tbaa !14
  br label %241

232:                                              ; preds = %224, %199
  %233 = load double, ptr %32, align 8, !tbaa !14
  %234 = load double, ptr %35, align 8, !tbaa !14
  %235 = fcmp ogt double %233, %234
  br i1 %235, label %236, label %240

236:                                              ; preds = %232
  store i32 1, ptr %40, align 4, !tbaa !9
  %237 = load double, ptr %35, align 8, !tbaa !14
  %238 = load double, ptr %32, align 8, !tbaa !14
  %239 = fdiv double %237, %238
  store double %239, ptr %36, align 8, !tbaa !14
  br label %240

240:                                              ; preds = %236, %232
  br label %241

241:                                              ; preds = %240, %228
  %242 = load i32, ptr %40, align 4, !tbaa !9
  %243 = icmp eq i32 %242, 1
  br i1 %243, label %244, label %270

244:                                              ; preds = %241
  %245 = load i32, ptr %38, align 4, !tbaa !9
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %258

247:                                              ; preds = %244
  %248 = load ptr, ptr %16, align 8, !tbaa !5
  %249 = load ptr, ptr %16, align 8, !tbaa !5
  %250 = load ptr, ptr %15, align 8, !tbaa !5
  %251 = load ptr, ptr %15, align 8, !tbaa !5
  %252 = load ptr, ptr %17, align 8, !tbaa !5
  %253 = load i32, ptr %26, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds %struct.doublecomplex, ptr %252, i64 %254
  %256 = load ptr, ptr %18, align 8, !tbaa !5
  %257 = load ptr, ptr %24, align 8, !tbaa !5
  call void @zlascl_(ptr noundef @.str.8, ptr noundef %248, ptr noundef %249, ptr noundef @c_b11, ptr noundef %36, ptr noundef %250, ptr noundef %251, ptr noundef %255, ptr noundef %256, ptr noundef %257)
  br label %269

258:                                              ; preds = %244
  %259 = load ptr, ptr %16, align 8, !tbaa !5
  %260 = load ptr, ptr %16, align 8, !tbaa !5
  %261 = load ptr, ptr %15, align 8, !tbaa !5
  %262 = load ptr, ptr %15, align 8, !tbaa !5
  %263 = load ptr, ptr %17, align 8, !tbaa !5
  %264 = load i32, ptr %26, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds %struct.doublecomplex, ptr %263, i64 %265
  %267 = load ptr, ptr %18, align 8, !tbaa !5
  %268 = load ptr, ptr %24, align 8, !tbaa !5
  call void @zlascl_(ptr noundef @.str.9, ptr noundef %259, ptr noundef %260, ptr noundef @c_b11, ptr noundef %36, ptr noundef %261, ptr noundef %262, ptr noundef %266, ptr noundef %267, ptr noundef %268)
  br label %269

269:                                              ; preds = %258, %247
  br label %270

270:                                              ; preds = %269, %241
  store i32 1, ptr %31, align 4, !tbaa !9
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  %272 = load ptr, ptr %14, align 8, !tbaa !5
  %273 = load ptr, ptr %15, align 8, !tbaa !5
  %274 = load ptr, ptr %16, align 8, !tbaa !5
  %275 = load ptr, ptr %17, align 8, !tbaa !5
  %276 = load i32, ptr %26, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds %struct.doublecomplex, ptr %275, i64 %277
  %279 = load ptr, ptr %18, align 8, !tbaa !5
  %280 = load ptr, ptr %19, align 8, !tbaa !5
  %281 = getelementptr inbounds double, ptr %280, i64 1
  %282 = load ptr, ptr %23, align 8, !tbaa !5
  %283 = load i32, ptr %31, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds double, ptr %282, i64 %284
  %286 = load ptr, ptr %20, align 8, !tbaa !5
  %287 = load i32, ptr %28, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %struct.doublecomplex, ptr %286, i64 %288
  %290 = load ptr, ptr %21, align 8, !tbaa !5
  %291 = load ptr, ptr %22, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.doublecomplex, ptr %291, i64 1
  call void @zhbtrd_(ptr noundef %271, ptr noundef %272, ptr noundef %273, ptr noundef %274, ptr noundef %278, ptr noundef %279, ptr noundef %281, ptr noundef %285, ptr noundef %289, ptr noundef %290, ptr noundef %292, ptr noundef %37)
  %293 = load i32, ptr %39, align 4, !tbaa !9
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %304, label %295

295:                                              ; preds = %270
  %296 = load ptr, ptr %15, align 8, !tbaa !5
  %297 = load ptr, ptr %19, align 8, !tbaa !5
  %298 = getelementptr inbounds double, ptr %297, i64 1
  %299 = load ptr, ptr %23, align 8, !tbaa !5
  %300 = load i32, ptr %31, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds double, ptr %299, i64 %301
  %303 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %296, ptr noundef %298, ptr noundef %302, ptr noundef %303)
  br label %327

304:                                              ; preds = %270
  %305 = load i32, ptr %31, align 4, !tbaa !9
  %306 = load ptr, ptr %15, align 8, !tbaa !5
  %307 = load i32, ptr %306, align 4, !tbaa !9
  %308 = add nsw i32 %305, %307
  store i32 %308, ptr %43, align 4, !tbaa !9
  %309 = load ptr, ptr %13, align 8, !tbaa !5
  %310 = load ptr, ptr %15, align 8, !tbaa !5
  %311 = load ptr, ptr %19, align 8, !tbaa !5
  %312 = getelementptr inbounds double, ptr %311, i64 1
  %313 = load ptr, ptr %23, align 8, !tbaa !5
  %314 = load i32, ptr %31, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds double, ptr %313, i64 %315
  %317 = load ptr, ptr %20, align 8, !tbaa !5
  %318 = load i32, ptr %28, align 4, !tbaa !9
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds %struct.doublecomplex, ptr %317, i64 %319
  %321 = load ptr, ptr %21, align 8, !tbaa !5
  %322 = load ptr, ptr %23, align 8, !tbaa !5
  %323 = load i32, ptr %43, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds double, ptr %322, i64 %324
  %326 = load ptr, ptr %24, align 8, !tbaa !5
  call void @zsteqr_(ptr noundef %309, ptr noundef %310, ptr noundef %312, ptr noundef %316, ptr noundef %320, ptr noundef %321, ptr noundef %325, ptr noundef %326)
  br label %327

327:                                              ; preds = %304, %295
  %328 = load i32, ptr %40, align 4, !tbaa !9
  %329 = icmp eq i32 %328, 1
  br i1 %329, label %330, label %346

330:                                              ; preds = %327
  %331 = load ptr, ptr %24, align 8, !tbaa !5
  %332 = load i32, ptr %331, align 4, !tbaa !9
  %333 = icmp eq i32 %332, 0
  br i1 %333, label %334, label %337

334:                                              ; preds = %330
  %335 = load ptr, ptr %15, align 8, !tbaa !5
  %336 = load i32, ptr %335, align 4, !tbaa !9
  store i32 %336, ptr %33, align 4, !tbaa !9
  br label %341

337:                                              ; preds = %330
  %338 = load ptr, ptr %24, align 8, !tbaa !5
  %339 = load i32, ptr %338, align 4, !tbaa !9
  %340 = sub nsw i32 %339, 1
  store i32 %340, ptr %33, align 4, !tbaa !9
  br label %341

341:                                              ; preds = %337, %334
  %342 = load double, ptr %36, align 8, !tbaa !14
  %343 = fdiv double 1.000000e+00, %342
  store double %343, ptr %30, align 8, !tbaa !14
  %344 = load ptr, ptr %19, align 8, !tbaa !5
  %345 = getelementptr inbounds double, ptr %344, i64 1
  call void @dscal_(ptr noundef %33, ptr noundef %30, ptr noundef %345, ptr noundef @c__1)
  br label %346

346:                                              ; preds = %341, %327
  store i32 1, ptr %46, align 4
  br label %347

347:                                              ; preds = %346, %198, %149, %140
  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 4, 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 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 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 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 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  ret void
}

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

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

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

declare 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 @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 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 = !{!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 i32, align 4

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

29:                                               ; preds = %12
  %30 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not133 = icmp eq i32 %30, 0
  br i1 %.not133, label %.thread.sink.split, label %31

31:                                               ; preds = %29, %12
  %.not134 = icmp eq i32 %28, 0
  br i1 %.not134, label %32, label %34

32:                                               ; preds = %31
  %33 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #4
  %.not135 = icmp eq i32 %33, 0
  br i1 %.not135, label %.thread.sink.split, label %34

34:                                               ; preds = %32, %31
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %.thread.sink.split, label %37

37:                                               ; preds = %34
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %.thread.sink.split, label %40

40:                                               ; preds = %37
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %.not136 = icmp sgt i32 %41, %38
  br i1 %.not136, label %42, label %.thread.sink.split

42:                                               ; preds = %40
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 1
  %45 = icmp ult i32 %43, %35
  %or.cond = and i1 %.not, %45
  %or.cond147 = or i1 %44, %or.cond
  br i1 %or.cond147, label %.thread.sink.split, label %46

46:                                               ; preds = %42
  %.pr = load i32, ptr %11, align 4, !tbaa !5
  %.not137 = icmp eq i32 %.pr, 0
  br i1 %.not137, label %50, label %.thread

.thread.sink.split:                               ; preds = %42, %40, %37, %34, %32, %29
  %.sink = phi i32 [ -1, %29 ], [ -2, %32 ], [ -3, %34 ], [ -4, %37 ], [ -6, %40 ], [ -9, %42 ]
  store i32 %.sink, ptr %11, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %46
  %47 = phi i32 [ %.pr, %46 ], [ %.sink, %.thread.sink.split ]
  %48 = sub nsw i32 0, %47
  store i32 %48, ptr %13, align 4, !tbaa !5
  %49 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %13, i32 noundef 6) #4
  br label %89

50:                                               ; preds = %46
  switch i32 %35, label %58 [
    i32 0, label %89
    i32 1, label %51
  ]

51:                                               ; preds = %50
  %52 = add i32 %19, %38
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct.doublecomplex, ptr %21, i64 %53
  %storemerge140.in = select i1 %.not134, ptr %54, ptr %4
  %storemerge140 = load double, ptr %storemerge140.in, align 8, !tbaa !9
  store double %storemerge140, ptr %6, align 8, !tbaa !12
  br i1 %.not, label %55, label %89

55:                                               ; preds = %51
  store double 1.000000e+00, ptr %7, align 8, !tbaa !9
  %56 = sext i32 %23 to i64
  %57 = getelementptr inbounds %struct.doublecomplex, ptr %25, i64 %56, i32 1
  store double 0.000000e+00, ptr %57, align 8, !tbaa !13
  br label %89

58:                                               ; preds = %50
  %59 = tail call double @dlamch_(ptr noundef nonnull @.str.5) #4
  %60 = tail call double @dlamch_(ptr noundef nonnull @.str.6) #4
  %61 = fdiv double %59, %60
  %62 = fdiv double 1.000000e+00, %61
  %63 = tail call double @sqrt(double noundef %61) #4
  %64 = tail call double @sqrt(double noundef %62) #4
  %65 = 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
  %66 = fcmp ogt double %65, 0.000000e+00
  %67 = fcmp olt double %65, %63
  %or.cond142 = select i1 %66, i1 %67, i1 false
  br i1 %or.cond142, label %.sink.split, label %68

68:                                               ; preds = %58
  %69 = fcmp ogt double %65, %64
  br i1 %69, label %.sink.split, label %70

.sink.split:                                      ; preds = %68, %58
  %.pn = phi double [ %63, %58 ], [ %64, %68 ]
  %storemerge146 = fdiv double %.pn, %65
  store double %storemerge146, ptr %16, align 8, !tbaa !12
  %.str.9..str.8 = select i1 %.not134, ptr @.str.9, ptr @.str.8
  call void @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 %70

70:                                               ; preds = %.sink.split, %68
  %71 = phi i1 [ false, %68 ], [ true, %.sink.split ]
  call void @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 %73, label %72

72:                                               ; preds = %70
  call void @dsterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef %10, ptr noundef nonnull %11) #4
  br label %78

73:                                               ; preds = %70
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr double, ptr %26, i64 %75
  %77 = getelementptr i8, ptr %76, i64 8
  call void @zsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef %10, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %77, ptr noundef nonnull %11) #4
  br label %78

78:                                               ; preds = %73, %72
  br i1 %71, label %79, label %89

79:                                               ; preds = %78
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %84

82:                                               ; preds = %79
  %83 = load i32, ptr %2, align 4, !tbaa !5
  br label %86

84:                                               ; preds = %79
  %85 = add nsw i32 %80, -1
  br label %86

86:                                               ; preds = %84, %82
  %storemerge = phi i32 [ %85, %84 ], [ %83, %82 ]
  store i32 %storemerge, ptr %15, align 4, !tbaa !5
  %87 = load double, ptr %16, align 8, !tbaa !12
  %88 = fdiv double 1.000000e+00, %87
  store double %88, ptr %14, align 8, !tbaa !12
  call void @dscal_(ptr noundef nonnull %15, ptr noundef nonnull %14, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %89

89:                                               ; preds = %78, %86, %51, %55, %50, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #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 @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 @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 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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass