; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (zheev_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__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__2 = 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
@c__0 = external hidden global i32, align 4
@c_b28 = external hidden global double, align 8

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

78:                                               ; preds = %10
  %79 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %79, align 4, !tbaa !9
  br label %113

80:                                               ; preds = %10
  %81 = load i32, ptr %34, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %89, label %83

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

87:                                               ; preds = %83
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -2, ptr %88, align 4, !tbaa !9
  br label %112

89:                                               ; preds = %83, %80
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = icmp slt i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %89
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %94, align 4, !tbaa !9
  br label %111

95:                                               ; preds = %89
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp sge i32 1, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %95
  br label %105

102:                                              ; preds = %95
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %102, %101
  %106 = phi i32 [ 1, %101 ], [ %104, %102 ]
  %107 = icmp slt i32 %97, %106
  br i1 %107, label %108, label %110

108:                                              ; preds = %105
  %109 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -5, ptr %109, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %108, %105
  br label %111

111:                                              ; preds = %110, %93
  br label %112

112:                                              ; preds = %111, %87
  br label %113

113:                                              ; preds = %112, %78
  %114 = load ptr, ptr %20, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %154

117:                                              ; preds = %113
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = call i32 @ilaenv2stage_(ptr noundef @c__1, ptr noundef @.str.4, ptr noundef %118, ptr noundef %119, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %120, ptr %38, align 4, !tbaa !9
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = call i32 @ilaenv2stage_(ptr noundef @c__2, ptr noundef @.str.4, ptr noundef %121, ptr noundef %122, ptr noundef %38, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %123, ptr %37, align 4, !tbaa !9
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = call i32 @ilaenv2stage_(ptr noundef @c__3, ptr noundef @.str.4, ptr noundef %124, ptr noundef %125, ptr noundef %38, ptr noundef %37, ptr noundef @c_n1)
  store i32 %126, ptr %32, align 4, !tbaa !9
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = call i32 @ilaenv2stage_(ptr noundef @c__4, ptr noundef @.str.4, ptr noundef %127, ptr noundef %128, ptr noundef %38, ptr noundef %37, ptr noundef @c_n1)
  store i32 %129, ptr %35, align 4, !tbaa !9
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = load i32, ptr %32, align 4, !tbaa !9
  %133 = add nsw i32 %131, %132
  %134 = load i32, ptr %35, align 4, !tbaa !9
  %135 = add nsw i32 %133, %134
  store i32 %135, ptr %33, align 4, !tbaa !9
  %136 = load i32, ptr %33, align 4, !tbaa !9
  %137 = sitofp i32 %136 to double
  %138 = load ptr, ptr %17, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.doublecomplex, ptr %138, i64 1
  %140 = getelementptr inbounds %struct.doublecomplex, ptr %139, i32 0, i32 0
  store double %137, ptr %140, align 8, !tbaa !11
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.doublecomplex, ptr %141, i64 1
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %142, i32 0, i32 1
  store double 0.000000e+00, ptr %143, align 8, !tbaa !14
  %144 = load ptr, ptr %18, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = load i32, ptr %33, align 4, !tbaa !9
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %153

148:                                              ; preds = %117
  %149 = load i32, ptr %46, align 4, !tbaa !9
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %153, label %151

151:                                              ; preds = %148
  %152 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -8, ptr %152, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %151, %148, %117
  br label %154

154:                                              ; preds = %153, %113
  %155 = load ptr, ptr %20, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %163

158:                                              ; preds = %154
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  %160 = load i32, ptr %159, align 4, !tbaa !9
  %161 = sub nsw i32 0, %160
  store i32 %161, ptr %23, align 4, !tbaa !9
  %162 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %23, i32 noundef 13)
  store i32 1, ptr %49, align 4
  br label %380

163:                                              ; preds = %154
  %164 = load i32, ptr %46, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %163
  store i32 1, ptr %49, align 4
  br label %380

167:                                              ; preds = %163
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %168
  store i32 1, ptr %49, align 4
  br label %380

173:                                              ; preds = %168
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = icmp eq i32 %175, 1
  br i1 %176, label %177, label %210

177:                                              ; preds = %173
  %178 = load i32, ptr %21, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %23, align 4, !tbaa !9
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = load i32, ptr %23, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds %struct.doublecomplex, ptr %180, i64 %182
  %184 = getelementptr inbounds %struct.doublecomplex, ptr %183, i32 0, i32 0
  %185 = load double, ptr %184, align 8, !tbaa !11
  %186 = load ptr, ptr %16, align 8, !tbaa !5
  %187 = getelementptr inbounds double, ptr %186, i64 1
  store double %185, ptr %187, align 8, !tbaa !15
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.doublecomplex, ptr %188, i64 1
  %190 = getelementptr inbounds %struct.doublecomplex, ptr %189, i32 0, i32 0
  store double 1.000000e+00, ptr %190, align 8, !tbaa !11
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %191, i64 1
  %193 = getelementptr inbounds %struct.doublecomplex, ptr %192, i32 0, i32 1
  store double 0.000000e+00, ptr %193, align 8, !tbaa !14
  %194 = load i32, ptr %36, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %209

196:                                              ; preds = %177
  %197 = load i32, ptr %21, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %23, align 4, !tbaa !9
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = load i32, ptr %23, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds %struct.doublecomplex, ptr %199, i64 %201
  %203 = getelementptr inbounds %struct.doublecomplex, ptr %202, i32 0, i32 0
  store double 1.000000e+00, ptr %203, align 8, !tbaa !11
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = load i32, ptr %23, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %struct.doublecomplex, ptr %204, i64 %206
  %208 = getelementptr inbounds %struct.doublecomplex, ptr %207, i32 0, i32 1
  store double 0.000000e+00, ptr %208, align 8, !tbaa !14
  br label %209

209:                                              ; preds = %196, %177
  store i32 1, ptr %49, align 4
  br label %380

210:                                              ; preds = %173
  %211 = call double @dlamch_(ptr noundef @.str.6)
  store double %211, ptr %40, align 8, !tbaa !15
  %212 = call double @dlamch_(ptr noundef @.str.7)
  store double %212, ptr %47, align 8, !tbaa !15
  %213 = load double, ptr %40, align 8, !tbaa !15
  %214 = load double, ptr %47, align 8, !tbaa !15
  %215 = fdiv double %213, %214
  store double %215, ptr %45, align 8, !tbaa !15
  %216 = load double, ptr %45, align 8, !tbaa !15
  %217 = fdiv double 1.000000e+00, %216
  store double %217, ptr %41, align 8, !tbaa !15
  %218 = load double, ptr %45, align 8, !tbaa !15
  %219 = call double @sqrt(double noundef %218) #4
  store double %219, ptr %28, align 8, !tbaa !15
  %220 = load double, ptr %41, align 8, !tbaa !15
  %221 = call double @sqrt(double noundef %220) #4
  store double %221, ptr %29, align 8, !tbaa !15
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = load ptr, ptr %14, align 8, !tbaa !5
  %225 = load i32, ptr %22, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds %struct.doublecomplex, ptr %224, i64 %226
  %228 = load ptr, ptr %15, align 8, !tbaa !5
  %229 = load ptr, ptr %19, align 8, !tbaa !5
  %230 = getelementptr inbounds double, ptr %229, i64 1
  %231 = call double @zlanhe_(ptr noundef @.str.8, ptr noundef %222, ptr noundef %223, ptr noundef %227, ptr noundef %228, ptr noundef %230)
  store double %231, ptr %26, align 8, !tbaa !15
  store i32 0, ptr %39, align 4, !tbaa !9
  %232 = load double, ptr %26, align 8, !tbaa !15
  %233 = fcmp ogt double %232, 0.000000e+00
  br i1 %233, label %234, label %242

234:                                              ; preds = %210
  %235 = load double, ptr %26, align 8, !tbaa !15
  %236 = load double, ptr %28, align 8, !tbaa !15
  %237 = fcmp olt double %235, %236
  br i1 %237, label %238, label %242

238:                                              ; preds = %234
  store i32 1, ptr %39, align 4, !tbaa !9
  %239 = load double, ptr %28, align 8, !tbaa !15
  %240 = load double, ptr %26, align 8, !tbaa !15
  %241 = fdiv double %239, %240
  store double %241, ptr %30, align 8, !tbaa !15
  br label %251

242:                                              ; preds = %234, %210
  %243 = load double, ptr %26, align 8, !tbaa !15
  %244 = load double, ptr %29, align 8, !tbaa !15
  %245 = fcmp ogt double %243, %244
  br i1 %245, label %246, label %250

246:                                              ; preds = %242
  store i32 1, ptr %39, align 4, !tbaa !9
  %247 = load double, ptr %29, align 8, !tbaa !15
  %248 = load double, ptr %26, align 8, !tbaa !15
  %249 = fdiv double %247, %248
  store double %249, ptr %30, align 8, !tbaa !15
  br label %250

250:                                              ; preds = %246, %242
  br label %251

251:                                              ; preds = %250, %238
  %252 = load i32, ptr %39, align 4, !tbaa !9
  %253 = icmp eq i32 %252, 1
  br i1 %253, label %254, label %264

254:                                              ; preds = %251
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  %256 = load ptr, ptr %13, align 8, !tbaa !5
  %257 = load ptr, ptr %13, align 8, !tbaa !5
  %258 = load ptr, ptr %14, align 8, !tbaa !5
  %259 = load i32, ptr %22, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds %struct.doublecomplex, ptr %258, i64 %260
  %262 = load ptr, ptr %15, align 8, !tbaa !5
  %263 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zlascl_(ptr noundef %255, ptr noundef @c__0, ptr noundef @c__0, ptr noundef @c_b28, ptr noundef %30, ptr noundef %256, ptr noundef %257, ptr noundef %261, ptr noundef %262, ptr noundef %263)
  br label %264

264:                                              ; preds = %254, %251
  store i32 1, ptr %25, align 4, !tbaa !9
  store i32 1, ptr %42, align 4, !tbaa !9
  %265 = load i32, ptr %42, align 4, !tbaa !9
  %266 = load ptr, ptr %13, align 8, !tbaa !5
  %267 = load i32, ptr %266, align 4, !tbaa !9
  %268 = add nsw i32 %265, %267
  store i32 %268, ptr %48, align 4, !tbaa !9
  %269 = load i32, ptr %48, align 4, !tbaa !9
  %270 = load i32, ptr %32, align 4, !tbaa !9
  %271 = add nsw i32 %269, %270
  store i32 %271, ptr %43, align 4, !tbaa !9
  %272 = load ptr, ptr %18, align 8, !tbaa !5
  %273 = load i32, ptr %272, align 4, !tbaa !9
  %274 = load i32, ptr %43, align 4, !tbaa !9
  %275 = sub nsw i32 %273, %274
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %44, align 4, !tbaa !9
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = load ptr, ptr %12, align 8, !tbaa !5
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = load ptr, ptr %14, align 8, !tbaa !5
  %281 = load i32, ptr %22, align 4, !tbaa !9
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds %struct.doublecomplex, ptr %280, i64 %282
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  %285 = load ptr, ptr %16, align 8, !tbaa !5
  %286 = getelementptr inbounds double, ptr %285, i64 1
  %287 = load ptr, ptr %19, align 8, !tbaa !5
  %288 = load i32, ptr %25, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds double, ptr %287, i64 %289
  %291 = load ptr, ptr %17, align 8, !tbaa !5
  %292 = load i32, ptr %42, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds %struct.doublecomplex, ptr %291, i64 %293
  %295 = load ptr, ptr %17, align 8, !tbaa !5
  %296 = load i32, ptr %48, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds %struct.doublecomplex, ptr %295, i64 %297
  %299 = load ptr, ptr %17, align 8, !tbaa !5
  %300 = load i32, ptr %43, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds %struct.doublecomplex, ptr %299, i64 %301
  call void @zhetrd_2stage_(ptr noundef %277, ptr noundef %278, ptr noundef %279, ptr noundef %283, ptr noundef %284, ptr noundef %286, ptr noundef %290, ptr noundef %294, ptr noundef %298, ptr noundef %32, ptr noundef %302, ptr noundef %44, ptr noundef %31)
  %303 = load i32, ptr %36, align 4, !tbaa !9
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %314, label %305

305:                                              ; preds = %264
  %306 = load ptr, ptr %13, align 8, !tbaa !5
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  %308 = getelementptr inbounds double, ptr %307, i64 1
  %309 = load ptr, ptr %19, align 8, !tbaa !5
  %310 = load i32, ptr %25, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds double, ptr %309, i64 %311
  %313 = load ptr, ptr %20, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %306, ptr noundef %308, ptr noundef %312, ptr noundef %313)
  br label %352

314:                                              ; preds = %264
  %315 = load ptr, ptr %12, align 8, !tbaa !5
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  %317 = load ptr, ptr %14, align 8, !tbaa !5
  %318 = load i32, ptr %22, align 4, !tbaa !9
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds %struct.doublecomplex, ptr %317, i64 %319
  %321 = load ptr, ptr %15, align 8, !tbaa !5
  %322 = load ptr, ptr %17, align 8, !tbaa !5
  %323 = load i32, ptr %42, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds %struct.doublecomplex, ptr %322, i64 %324
  %326 = load ptr, ptr %17, align 8, !tbaa !5
  %327 = load i32, ptr %43, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds %struct.doublecomplex, ptr %326, i64 %328
  call void @zungtr_(ptr noundef %315, ptr noundef %316, ptr noundef %320, ptr noundef %321, ptr noundef %325, ptr noundef %329, ptr noundef %44, ptr noundef %31)
  %330 = load i32, ptr %25, align 4, !tbaa !9
  %331 = load ptr, ptr %13, align 8, !tbaa !5
  %332 = load i32, ptr %331, align 4, !tbaa !9
  %333 = add nsw i32 %330, %332
  store i32 %333, ptr %43, align 4, !tbaa !9
  %334 = load ptr, ptr %11, align 8, !tbaa !5
  %335 = load ptr, ptr %13, align 8, !tbaa !5
  %336 = load ptr, ptr %16, align 8, !tbaa !5
  %337 = getelementptr inbounds double, ptr %336, i64 1
  %338 = load ptr, ptr %19, align 8, !tbaa !5
  %339 = load i32, ptr %25, align 4, !tbaa !9
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds double, ptr %338, i64 %340
  %342 = load ptr, ptr %14, align 8, !tbaa !5
  %343 = load i32, ptr %22, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds %struct.doublecomplex, ptr %342, i64 %344
  %346 = load ptr, ptr %15, align 8, !tbaa !5
  %347 = load ptr, ptr %19, align 8, !tbaa !5
  %348 = load i32, ptr %43, align 4, !tbaa !9
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds double, ptr %347, i64 %349
  %351 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zsteqr_(ptr noundef %334, ptr noundef %335, ptr noundef %337, ptr noundef %341, ptr noundef %345, ptr noundef %346, ptr noundef %350, ptr noundef %351)
  br label %352

352:                                              ; preds = %314, %305
  %353 = load i32, ptr %39, align 4, !tbaa !9
  %354 = icmp eq i32 %353, 1
  br i1 %354, label %355, label %371

355:                                              ; preds = %352
  %356 = load ptr, ptr %20, align 8, !tbaa !5
  %357 = load i32, ptr %356, align 4, !tbaa !9
  %358 = icmp eq i32 %357, 0
  br i1 %358, label %359, label %362

359:                                              ; preds = %355
  %360 = load ptr, ptr %13, align 8, !tbaa !5
  %361 = load i32, ptr %360, align 4, !tbaa !9
  store i32 %361, ptr %27, align 4, !tbaa !9
  br label %366

362:                                              ; preds = %355
  %363 = load ptr, ptr %20, align 8, !tbaa !5
  %364 = load i32, ptr %363, align 4, !tbaa !9
  %365 = sub nsw i32 %364, 1
  store i32 %365, ptr %27, align 4, !tbaa !9
  br label %366

366:                                              ; preds = %362, %359
  %367 = load double, ptr %30, align 8, !tbaa !15
  %368 = fdiv double 1.000000e+00, %367
  store double %368, ptr %24, align 8, !tbaa !15
  %369 = load ptr, ptr %16, align 8, !tbaa !5
  %370 = getelementptr inbounds double, ptr %369, i64 1
  call void @dscal_(ptr noundef %27, ptr noundef %24, ptr noundef %370, ptr noundef @c__1)
  br label %371

371:                                              ; preds = %366, %352
  %372 = load i32, ptr %33, align 4, !tbaa !9
  %373 = sitofp i32 %372 to double
  %374 = load ptr, ptr %17, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.doublecomplex, ptr %374, i64 1
  %376 = getelementptr inbounds %struct.doublecomplex, ptr %375, i32 0, i32 0
  store double %373, ptr %376, align 8, !tbaa !11
  %377 = load ptr, ptr %17, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.doublecomplex, ptr %377, i64 1
  %379 = getelementptr inbounds %struct.doublecomplex, ptr %378, i32 0, i32 1
  store double 0.000000e+00, ptr %379, align 8, !tbaa !14
  store i32 1, ptr %49, align 4
  br label %380

380:                                              ; preds = %371, %209, %172, %166, %158
  call void @llvm.lifetime.end.p0(i64 4, 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 8, 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 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 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 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  ret void
}

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

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

declare i32 @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 @zlanhe_(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_2stage_(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 @zungtr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__2 = 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
@c__0 = external hidden global i32, align 4
@c_b28 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local void @zheev_2stage_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #5
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = add nsw i32 %20, 1
  %narrow = xor i32 %20, -1
  %22 = sext i32 %narrow to i64
  %23 = getelementptr inbounds %struct.doublecomplex, ptr %3, i64 %22
  %24 = getelementptr inbounds i8, ptr %6, i64 -16
  %25 = getelementptr inbounds i8, ptr %8, i64 -8
  %26 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #5
  %27 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #5
  %28 = load i32, ptr %7, align 4, !tbaa !5
  %29 = icmp eq i32 %28, -1
  store i32 0, ptr %9, align 4, !tbaa !5
  %30 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #5
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %.thread157.sink.split, label %31

31:                                               ; preds = %10
  %.not147 = icmp eq i32 %27, 0
  br i1 %.not147, label %32, label %34

32:                                               ; preds = %31
  %33 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #5
  %.not148 = icmp eq i32 %33, 0
  br i1 %.not148, label %.thread157.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 %.thread157.sink.split, label %37

37:                                               ; preds = %34
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %35, i32 1)
  %39 = icmp slt i32 %38, %spec.select
  br i1 %39, label %.thread157.sink.split, label %40

40:                                               ; preds = %37
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %41 = icmp eq i32 %.pr, 0
  br i1 %41, label %42, label %.thread157

42:                                               ; preds = %40
  %43 = tail call i32 @ilaenv2stage_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #5
  store i32 %43, ptr %18, align 4, !tbaa !5
  %44 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__2, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %18, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #5
  store i32 %44, ptr %17, align 4, !tbaa !5
  %45 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__3, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %18, ptr noundef nonnull %17, ptr noundef nonnull @c_n1) #5
  store i32 %45, ptr %16, align 4, !tbaa !5
  %46 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__4, ptr noundef nonnull @.str.4, ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %18, ptr noundef nonnull %17, ptr noundef nonnull @c_n1) #5
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = add i32 %47, %46
  %49 = add i32 %48, %45
  %50 = sitofp i32 %49 to double
  store double %50, ptr %6, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %6, i64 8
  store double 0.000000e+00, ptr %51, align 8, !tbaa !12
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = icmp sge i32 %52, %49
  %or.cond = select i1 %53, i1 true, i1 %29
  br i1 %or.cond, label %.thread, label %.thread157.sink.split

.thread:                                          ; preds = %42
  %.pr154.pr = load i32, ptr %9, align 4, !tbaa !5
  %.not149 = icmp eq i32 %.pr154.pr, 0
  br i1 %.not149, label %57, label %.thread157

.thread157.sink.split:                            ; preds = %42, %37, %34, %32, %10
  %.sink = phi i32 [ -1, %10 ], [ -2, %32 ], [ -3, %34 ], [ -5, %37 ], [ -8, %42 ]
  store i32 %.sink, ptr %9, align 4, !tbaa !5
  br label %.thread157

.thread157:                                       ; preds = %.thread157.sink.split, %40, %.thread
  %54 = phi i32 [ %.pr154.pr, %.thread ], [ %.pr, %40 ], [ %.sink, %.thread157.sink.split ]
  %55 = sub nsw i32 0, %54
  store i32 %55, ptr %11, align 4, !tbaa !5
  %56 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %11, i32 noundef 13) #5
  br label %106

57:                                               ; preds = %.thread
  br i1 %29, label %106, label %58

58:                                               ; preds = %57
  switch i32 %47, label %64 [
    i32 0, label %106
    i32 1, label %59
  ]

59:                                               ; preds = %58
  %60 = load double, ptr %3, align 8, !tbaa !9
  store double %60, ptr %5, align 8, !tbaa !13
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %6, align 8, !tbaa !13
  %.not151 = icmp eq i32 %26, 0
  br i1 %.not151, label %106, label %61

61:                                               ; preds = %59
  store double 1.000000e+00, ptr %3, align 8, !tbaa !9
  %62 = sext i32 %21 to i64
  %63 = getelementptr inbounds %struct.doublecomplex, ptr %23, i64 %62, i32 1
  store double 0.000000e+00, ptr %63, align 8, !tbaa !12
  br label %106

64:                                               ; preds = %58
  %65 = call double @dlamch_(ptr noundef nonnull @.str.6) #5
  %66 = call double @dlamch_(ptr noundef nonnull @.str.7) #5
  %67 = fdiv double %65, %66
  %68 = fdiv double 1.000000e+00, %67
  %69 = call double @sqrt(double noundef %67) #5
  %70 = call double @sqrt(double noundef %68) #5
  %71 = call double @zlanhe_(ptr noundef nonnull @.str.8, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %8) #5
  %72 = fcmp ogt double %71, 0.000000e+00
  %73 = fcmp olt double %71, %69
  %or.cond152 = select i1 %72, i1 %73, i1 false
  br i1 %or.cond152, label %76, label %74

74:                                               ; preds = %64
  %75 = fcmp ogt double %71, %70
  br i1 %75, label %76, label %77

76:                                               ; preds = %74, %64
  %.pn = phi double [ %69, %64 ], [ %70, %74 ]
  %storemerge165 = fdiv double %.pn, %71
  store double %storemerge165, ptr %14, align 8, !tbaa !13
  call void @zlascl_(ptr noundef %1, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull @c_b28, ptr noundef nonnull %14, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %9) #5
  br label %77

77:                                               ; preds = %74, %76
  %78 = phi i1 [ true, %76 ], [ false, %74 ]
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  %81 = add nsw i32 %80, %45
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %reass.sub = sub i32 %82, %81
  %83 = add i32 %reass.sub, 1
  store i32 %83, ptr %19, align 4, !tbaa !5
  %84 = sext i32 %80 to i64
  %85 = getelementptr inbounds %struct.doublecomplex, ptr %24, i64 %84
  %86 = sext i32 %81 to i64
  %87 = getelementptr inbounds %struct.doublecomplex, ptr %24, i64 %86
  call void @zhetrd_2stage_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %8, ptr noundef nonnull %6, ptr noundef nonnull %85, ptr noundef nonnull %16, ptr noundef nonnull %87, ptr noundef nonnull %19, ptr noundef nonnull %15) #5
  %.not150 = icmp eq i32 %26, 0
  br i1 %.not150, label %88, label %89

88:                                               ; preds = %77
  call void @dsterf_(ptr noundef nonnull %2, ptr noundef %5, ptr noundef %8, ptr noundef nonnull %9) #5
  br label %94

89:                                               ; preds = %77
  call void @zungtr_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %87, ptr noundef nonnull %19, ptr noundef nonnull %15) #5
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr double, ptr %25, i64 %91
  %93 = getelementptr i8, ptr %92, i64 8
  call void @zsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %8, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %93, ptr noundef nonnull %9) #5
  br label %94

94:                                               ; preds = %89, %88
  br i1 %78, label %95, label %105

95:                                               ; preds = %94
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %100

98:                                               ; preds = %95
  %99 = load i32, ptr %2, align 4, !tbaa !5
  br label %102

100:                                              ; preds = %95
  %101 = add nsw i32 %96, -1
  br label %102

102:                                              ; preds = %100, %98
  %storemerge = phi i32 [ %101, %100 ], [ %99, %98 ]
  store i32 %storemerge, ptr %13, align 4, !tbaa !5
  %103 = load double, ptr %14, align 8, !tbaa !13
  %104 = fdiv double 1.000000e+00, %103
  store double %104, ptr %12, align 8, !tbaa !13
  call void @dscal_(ptr noundef nonnull %13, ptr noundef nonnull %12, ptr noundef %5, ptr noundef nonnull @c__1) #5
  br label %105

105:                                              ; preds = %102, %94
  store double %50, ptr %6, align 8, !tbaa !9
  store double 0.000000e+00, ptr %51, align 8, !tbaa !12
  br label %106

106:                                              ; preds = %59, %61, %58, %57, %105, %.thread157
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  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 @zlanhe_(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_2stage_(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 @zungtr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}


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