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

; 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 i64, align 8
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i64, align 8
@.str.5 = external hidden unnamed_addr constant [7 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 i64, align 8
@c_b18 = external hidden global double, align 8

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

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

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

80:                                               ; preds = %74, %10
  %81 = load i64, ptr %36, align 8, !tbaa !9
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %89, label %83

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

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

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

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

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

101:                                              ; preds = %95
  br label %105

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

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

108:                                              ; preds = %105
  %109 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -5, ptr %109, align 8, !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 %21, align 8, !tbaa !5
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = icmp eq i64 %115, 0
  br i1 %116, label %117, label %165

117:                                              ; preds = %113
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = call i64 @ilaenv_(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 i64 %120, ptr %27, align 8, !tbaa !9
  store i64 1, ptr %24, align 8, !tbaa !9
  %121 = load i64, ptr %27, align 8, !tbaa !9
  %122 = add nsw i64 %121, 1
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = mul nsw i64 %122, %124
  store i64 %125, ptr %25, align 8, !tbaa !9
  %126 = load i64, ptr %24, align 8, !tbaa !9
  %127 = load i64, ptr %25, align 8, !tbaa !9
  %128 = icmp sge i64 %126, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %117
  %130 = load i64, ptr %24, align 8, !tbaa !9
  br label %133

131:                                              ; preds = %117
  %132 = load i64, ptr %25, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %131, %129
  %134 = phi i64 [ %130, %129 ], [ %132, %131 ]
  store i64 %134, ptr %45, align 8, !tbaa !9
  %135 = load i64, ptr %45, align 8, !tbaa !9
  %136 = sitofp i64 %135 to double
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.doublecomplex, ptr %137, i64 1
  %139 = getelementptr inbounds %struct.doublecomplex, ptr %138, i32 0, i32 0
  store double %136, ptr %139, align 8, !tbaa !11
  %140 = load ptr, ptr %18, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %140, i64 1
  %142 = getelementptr inbounds %struct.doublecomplex, ptr %141, i32 0, i32 1
  store double 0.000000e+00, ptr %142, align 8, !tbaa !14
  store i64 1, ptr %24, align 8, !tbaa !9
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load i64, ptr %143, align 8, !tbaa !9
  %145 = shl i64 %144, 1
  %146 = sub nsw i64 %145, 1
  store i64 %146, ptr %25, align 8, !tbaa !9
  %147 = load ptr, ptr %19, align 8, !tbaa !5
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = load i64, ptr %24, align 8, !tbaa !9
  %150 = load i64, ptr %25, align 8, !tbaa !9
  %151 = icmp sge i64 %149, %150
  br i1 %151, label %152, label %154

152:                                              ; preds = %133
  %153 = load i64, ptr %24, align 8, !tbaa !9
  br label %156

154:                                              ; preds = %133
  %155 = load i64, ptr %25, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %154, %152
  %157 = phi i64 [ %153, %152 ], [ %155, %154 ]
  %158 = icmp slt i64 %148, %157
  br i1 %158, label %159, label %164

159:                                              ; preds = %156
  %160 = load i64, ptr %46, align 8, !tbaa !9
  %161 = icmp ne i64 %160, 0
  br i1 %161, label %164, label %162

162:                                              ; preds = %159
  %163 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -8, ptr %163, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %162, %159, %156
  br label %165

165:                                              ; preds = %164, %113
  %166 = load ptr, ptr %21, align 8, !tbaa !5
  %167 = load i64, ptr %166, align 8, !tbaa !9
  %168 = icmp ne i64 %167, 0
  br i1 %168, label %169, label %174

169:                                              ; preds = %165
  %170 = load ptr, ptr %21, align 8, !tbaa !5
  %171 = load i64, ptr %170, align 8, !tbaa !9
  %172 = sub nsw i64 0, %171
  store i64 %172, ptr %24, align 8, !tbaa !9
  %173 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %24)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %47, align 4
  br label %373

174:                                              ; preds = %165
  %175 = load i64, ptr %46, align 8, !tbaa !9
  %176 = icmp ne i64 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %174
  store i32 0, ptr %11, align 4
  store i32 1, ptr %47, align 4
  br label %373

178:                                              ; preds = %174
  br label %179

179:                                              ; preds = %178
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = load i64, ptr %180, align 8, !tbaa !9
  %182 = icmp eq i64 %181, 0
  br i1 %182, label %183, label %184

183:                                              ; preds = %179
  store i32 0, ptr %11, align 4
  store i32 1, ptr %47, align 4
  br label %373

184:                                              ; preds = %179
  %185 = load ptr, ptr %14, align 8, !tbaa !5
  %186 = load i64, ptr %185, align 8, !tbaa !9
  %187 = icmp eq i64 %186, 1
  br i1 %187, label %188, label %218

188:                                              ; preds = %184
  %189 = load i64, ptr %22, align 8, !tbaa !9
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %24, align 8, !tbaa !9
  %191 = load ptr, ptr %15, align 8, !tbaa !5
  %192 = load i64, ptr %24, align 8, !tbaa !9
  %193 = getelementptr inbounds %struct.doublecomplex, ptr %191, i64 %192
  %194 = getelementptr inbounds %struct.doublecomplex, ptr %193, i32 0, i32 0
  %195 = load double, ptr %194, align 8, !tbaa !11
  %196 = load ptr, ptr %17, align 8, !tbaa !5
  %197 = getelementptr inbounds double, ptr %196, i64 1
  store double %195, ptr %197, align 8, !tbaa !15
  %198 = load ptr, ptr %18, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %198, i64 1
  %200 = getelementptr inbounds %struct.doublecomplex, ptr %199, i32 0, i32 0
  store double 1.000000e+00, ptr %200, align 8, !tbaa !11
  %201 = load ptr, ptr %18, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.doublecomplex, ptr %201, i64 1
  %203 = getelementptr inbounds %struct.doublecomplex, ptr %202, i32 0, i32 1
  store double 0.000000e+00, ptr %203, align 8, !tbaa !14
  %204 = load i64, ptr %37, align 8, !tbaa !9
  %205 = icmp ne i64 %204, 0
  br i1 %205, label %206, label %217

206:                                              ; preds = %188
  %207 = load i64, ptr %22, align 8, !tbaa !9
  %208 = add nsw i64 %207, 1
  store i64 %208, ptr %24, align 8, !tbaa !9
  %209 = load ptr, ptr %15, align 8, !tbaa !5
  %210 = load i64, ptr %24, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.doublecomplex, ptr %209, i64 %210
  %212 = getelementptr inbounds %struct.doublecomplex, ptr %211, i32 0, i32 0
  store double 1.000000e+00, ptr %212, align 8, !tbaa !11
  %213 = load ptr, ptr %15, align 8, !tbaa !5
  %214 = load i64, ptr %24, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %213, i64 %214
  %216 = getelementptr inbounds %struct.doublecomplex, ptr %215, i32 0, i32 1
  store double 0.000000e+00, ptr %216, align 8, !tbaa !14
  br label %217

217:                                              ; preds = %206, %188
  store i32 0, ptr %11, align 4
  store i32 1, ptr %47, align 4
  br label %373

218:                                              ; preds = %184
  %219 = call double @dlamch_(ptr noundef @.str.6)
  store double %219, ptr %39, align 8, !tbaa !15
  %220 = call double @dlamch_(ptr noundef @.str.7)
  store double %220, ptr %28, align 8, !tbaa !15
  %221 = load double, ptr %39, align 8, !tbaa !15
  %222 = load double, ptr %28, align 8, !tbaa !15
  %223 = fdiv double %221, %222
  store double %223, ptr %44, align 8, !tbaa !15
  %224 = load double, ptr %44, align 8, !tbaa !15
  %225 = fdiv double 1.000000e+00, %224
  store double %225, ptr %40, align 8, !tbaa !15
  %226 = load double, ptr %44, align 8, !tbaa !15
  %227 = call double @sqrt(double noundef %226) #4
  store double %227, ptr %32, align 8, !tbaa !15
  %228 = load double, ptr %40, align 8, !tbaa !15
  %229 = call double @sqrt(double noundef %228) #4
  store double %229, ptr %33, align 8, !tbaa !15
  %230 = load ptr, ptr %13, align 8, !tbaa !5
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = load ptr, ptr %15, align 8, !tbaa !5
  %233 = load i64, ptr %23, align 8, !tbaa !9
  %234 = getelementptr inbounds %struct.doublecomplex, ptr %232, i64 %233
  %235 = load ptr, ptr %16, align 8, !tbaa !5
  %236 = load ptr, ptr %20, align 8, !tbaa !5
  %237 = getelementptr inbounds double, ptr %236, i64 1
  %238 = call double @zlanhe_(ptr noundef @.str.8, ptr noundef %230, ptr noundef %231, ptr noundef %234, ptr noundef %235, ptr noundef %237)
  store double %238, ptr %30, align 8, !tbaa !15
  store i64 0, ptr %38, align 8, !tbaa !9
  %239 = load double, ptr %30, align 8, !tbaa !15
  %240 = fcmp ogt double %239, 0.000000e+00
  br i1 %240, label %241, label %249

241:                                              ; preds = %218
  %242 = load double, ptr %30, align 8, !tbaa !15
  %243 = load double, ptr %32, align 8, !tbaa !15
  %244 = fcmp olt double %242, %243
  br i1 %244, label %245, label %249

245:                                              ; preds = %241
  store i64 1, ptr %38, align 8, !tbaa !9
  %246 = load double, ptr %32, align 8, !tbaa !15
  %247 = load double, ptr %30, align 8, !tbaa !15
  %248 = fdiv double %246, %247
  store double %248, ptr %34, align 8, !tbaa !15
  br label %258

249:                                              ; preds = %241, %218
  %250 = load double, ptr %30, align 8, !tbaa !15
  %251 = load double, ptr %33, align 8, !tbaa !15
  %252 = fcmp ogt double %250, %251
  br i1 %252, label %253, label %257

253:                                              ; preds = %249
  store i64 1, ptr %38, align 8, !tbaa !9
  %254 = load double, ptr %33, align 8, !tbaa !15
  %255 = load double, ptr %30, align 8, !tbaa !15
  %256 = fdiv double %254, %255
  store double %256, ptr %34, align 8, !tbaa !15
  br label %257

257:                                              ; preds = %253, %249
  br label %258

258:                                              ; preds = %257, %245
  %259 = load i64, ptr %38, align 8, !tbaa !9
  %260 = icmp eq i64 %259, 1
  br i1 %260, label %261, label %271

261:                                              ; preds = %258
  %262 = load ptr, ptr %13, align 8, !tbaa !5
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = load ptr, ptr %14, align 8, !tbaa !5
  %265 = load ptr, ptr %15, align 8, !tbaa !5
  %266 = load i64, ptr %23, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.doublecomplex, ptr %265, i64 %266
  %268 = load ptr, ptr %16, align 8, !tbaa !5
  %269 = load ptr, ptr %21, align 8, !tbaa !5
  %270 = call i32 @zlascl_(ptr noundef %262, ptr noundef @c__0, ptr noundef @c__0, ptr noundef @c_b18, ptr noundef %34, ptr noundef %263, ptr noundef %264, ptr noundef %267, ptr noundef %268, ptr noundef %269)
  br label %271

271:                                              ; preds = %261, %258
  store i64 1, ptr %29, align 8, !tbaa !9
  store i64 1, ptr %41, align 8, !tbaa !9
  %272 = load i64, ptr %41, align 8, !tbaa !9
  %273 = load ptr, ptr %14, align 8, !tbaa !5
  %274 = load i64, ptr %273, align 8, !tbaa !9
  %275 = add nsw i64 %272, %274
  store i64 %275, ptr %42, align 8, !tbaa !9
  %276 = load ptr, ptr %19, align 8, !tbaa !5
  %277 = load i64, ptr %276, align 8, !tbaa !9
  %278 = load i64, ptr %42, align 8, !tbaa !9
  %279 = sub nsw i64 %277, %278
  %280 = add nsw i64 %279, 1
  store i64 %280, ptr %43, align 8, !tbaa !9
  %281 = load ptr, ptr %13, align 8, !tbaa !5
  %282 = load ptr, ptr %14, align 8, !tbaa !5
  %283 = load ptr, ptr %15, align 8, !tbaa !5
  %284 = load i64, ptr %23, align 8, !tbaa !9
  %285 = getelementptr inbounds %struct.doublecomplex, ptr %283, i64 %284
  %286 = load ptr, ptr %16, align 8, !tbaa !5
  %287 = load ptr, ptr %17, align 8, !tbaa !5
  %288 = getelementptr inbounds double, ptr %287, i64 1
  %289 = load ptr, ptr %20, align 8, !tbaa !5
  %290 = load i64, ptr %29, align 8, !tbaa !9
  %291 = getelementptr inbounds double, ptr %289, i64 %290
  %292 = load ptr, ptr %18, align 8, !tbaa !5
  %293 = load i64, ptr %41, align 8, !tbaa !9
  %294 = getelementptr inbounds %struct.doublecomplex, ptr %292, i64 %293
  %295 = load ptr, ptr %18, align 8, !tbaa !5
  %296 = load i64, ptr %42, align 8, !tbaa !9
  %297 = getelementptr inbounds %struct.doublecomplex, ptr %295, i64 %296
  %298 = call i32 @zhetrd_(ptr noundef %281, ptr noundef %282, ptr noundef %285, ptr noundef %286, ptr noundef %288, ptr noundef %291, ptr noundef %294, ptr noundef %297, ptr noundef %43, ptr noundef %35)
  %299 = load i64, ptr %37, align 8, !tbaa !9
  %300 = icmp ne i64 %299, 0
  br i1 %300, label %310, label %301

301:                                              ; preds = %271
  %302 = load ptr, ptr %14, align 8, !tbaa !5
  %303 = load ptr, ptr %17, align 8, !tbaa !5
  %304 = getelementptr inbounds double, ptr %303, i64 1
  %305 = load ptr, ptr %20, align 8, !tbaa !5
  %306 = load i64, ptr %29, align 8, !tbaa !9
  %307 = getelementptr inbounds double, ptr %305, i64 %306
  %308 = load ptr, ptr %21, align 8, !tbaa !5
  %309 = call i32 @dsterf_(ptr noundef %302, ptr noundef %304, ptr noundef %307, ptr noundef %308)
  br label %344

310:                                              ; preds = %271
  %311 = load ptr, ptr %13, align 8, !tbaa !5
  %312 = load ptr, ptr %14, align 8, !tbaa !5
  %313 = load ptr, ptr %15, align 8, !tbaa !5
  %314 = load i64, ptr %23, align 8, !tbaa !9
  %315 = getelementptr inbounds %struct.doublecomplex, ptr %313, i64 %314
  %316 = load ptr, ptr %16, align 8, !tbaa !5
  %317 = load ptr, ptr %18, align 8, !tbaa !5
  %318 = load i64, ptr %41, align 8, !tbaa !9
  %319 = getelementptr inbounds %struct.doublecomplex, ptr %317, i64 %318
  %320 = load ptr, ptr %18, align 8, !tbaa !5
  %321 = load i64, ptr %42, align 8, !tbaa !9
  %322 = getelementptr inbounds %struct.doublecomplex, ptr %320, i64 %321
  %323 = call i32 @zungtr_(ptr noundef %311, ptr noundef %312, ptr noundef %315, ptr noundef %316, ptr noundef %319, ptr noundef %322, ptr noundef %43, ptr noundef %35)
  %324 = load i64, ptr %29, align 8, !tbaa !9
  %325 = load ptr, ptr %14, align 8, !tbaa !5
  %326 = load i64, ptr %325, align 8, !tbaa !9
  %327 = add nsw i64 %324, %326
  store i64 %327, ptr %42, align 8, !tbaa !9
  %328 = load ptr, ptr %12, align 8, !tbaa !5
  %329 = load ptr, ptr %14, align 8, !tbaa !5
  %330 = load ptr, ptr %17, align 8, !tbaa !5
  %331 = getelementptr inbounds double, ptr %330, i64 1
  %332 = load ptr, ptr %20, align 8, !tbaa !5
  %333 = load i64, ptr %29, align 8, !tbaa !9
  %334 = getelementptr inbounds double, ptr %332, i64 %333
  %335 = load ptr, ptr %15, align 8, !tbaa !5
  %336 = load i64, ptr %23, align 8, !tbaa !9
  %337 = getelementptr inbounds %struct.doublecomplex, ptr %335, i64 %336
  %338 = load ptr, ptr %16, align 8, !tbaa !5
  %339 = load ptr, ptr %20, align 8, !tbaa !5
  %340 = load i64, ptr %42, align 8, !tbaa !9
  %341 = getelementptr inbounds double, ptr %339, i64 %340
  %342 = load ptr, ptr %21, align 8, !tbaa !5
  %343 = call i32 @zsteqr_(ptr noundef %328, ptr noundef %329, ptr noundef %331, ptr noundef %334, ptr noundef %337, ptr noundef %338, ptr noundef %341, ptr noundef %342)
  br label %344

344:                                              ; preds = %310, %301
  %345 = load i64, ptr %38, align 8, !tbaa !9
  %346 = icmp eq i64 %345, 1
  br i1 %346, label %347, label %364

347:                                              ; preds = %344
  %348 = load ptr, ptr %21, align 8, !tbaa !5
  %349 = load i64, ptr %348, align 8, !tbaa !9
  %350 = icmp eq i64 %349, 0
  br i1 %350, label %351, label %354

351:                                              ; preds = %347
  %352 = load ptr, ptr %14, align 8, !tbaa !5
  %353 = load i64, ptr %352, align 8, !tbaa !9
  store i64 %353, ptr %31, align 8, !tbaa !9
  br label %358

354:                                              ; preds = %347
  %355 = load ptr, ptr %21, align 8, !tbaa !5
  %356 = load i64, ptr %355, align 8, !tbaa !9
  %357 = sub nsw i64 %356, 1
  store i64 %357, ptr %31, align 8, !tbaa !9
  br label %358

358:                                              ; preds = %354, %351
  %359 = load double, ptr %34, align 8, !tbaa !15
  %360 = fdiv double 1.000000e+00, %359
  store double %360, ptr %26, align 8, !tbaa !15
  %361 = load ptr, ptr %17, align 8, !tbaa !5
  %362 = getelementptr inbounds double, ptr %361, i64 1
  %363 = call i32 @f2c_dscal(ptr noundef %31, ptr noundef %26, ptr noundef %362, ptr noundef @c__1)
  br label %364

364:                                              ; preds = %358, %344
  %365 = load i64, ptr %45, align 8, !tbaa !9
  %366 = sitofp i64 %365 to double
  %367 = load ptr, ptr %18, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.doublecomplex, ptr %367, i64 1
  %369 = getelementptr inbounds %struct.doublecomplex, ptr %368, i32 0, i32 0
  store double %366, ptr %369, align 8, !tbaa !11
  %370 = load ptr, ptr %18, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.doublecomplex, ptr %370, i64 1
  %372 = getelementptr inbounds %struct.doublecomplex, ptr %371, i32 0, i32 1
  store double 0.000000e+00, ptr %372, align 8, !tbaa !14
  store i32 0, ptr %11, align 4
  store i32 1, ptr %47, align 4
  br label %373

373:                                              ; preds = %364, %217, %183, %177, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  %374 = load i32, ptr %11, align 4
  ret i32 %374
}

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

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

declare i64 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare double @dlamch_(ptr noundef) #2

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

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

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

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

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 8}
!13 = !{!"double", !7, i64 0}
!14 = !{!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 i64, align 8
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i64, align 8
@.str.5 = external hidden unnamed_addr constant [7 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 i64, align 8
@c_b18 = external hidden global double, align 8

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

21:                                               ; preds = %10
  %22 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #5
  %.not142 = icmp eq i64 %22, 0
  br i1 %.not142, label %.thread151.sink.split, label %23

23:                                               ; preds = %21, %10
  %.not143 = icmp eq i64 %18, 0
  br i1 %.not143, label %24, label %26

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

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

29:                                               ; preds = %26
  %30 = load i64, ptr %4, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %27, i64 1)
  %31 = icmp slt i64 %30, %spec.select
  br i1 %31, label %.thread151.sink.split, label %32

32:                                               ; preds = %29
  %.pr = load i64, ptr %9, align 8, !tbaa !5
  %33 = icmp eq i64 %.pr, 0
  br i1 %33, label %34, label %.thread151

34:                                               ; preds = %32
  %35 = tail call i64 @ilaenv_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.4, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #5
  %36 = add nsw i64 %35, 1
  %37 = load i64, ptr %2, align 8, !tbaa !5
  %38 = mul nsw i64 %37, %36
  %39 = tail call i64 @llvm.smax.i64(i64 %38, i64 1)
  %40 = uitofp nneg i64 %39 to double
  store double %40, ptr %6, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %6, i64 8
  store double 0.000000e+00, ptr %41, align 8, !tbaa !12
  %42 = shl i64 %37, 1
  %43 = add nsw i64 %42, -1
  %44 = load i64, ptr %7, align 8, !tbaa !5
  %45 = icmp slt i64 %42, 3
  %46 = select i1 %45, i64 1, i64 %43
  %47 = icmp sge i64 %44, %46
  %or.cond = select i1 %47, i1 true, i1 %20
  br i1 %or.cond, label %.thread, label %.thread151.sink.split

.thread:                                          ; preds = %34
  %.pr148.pr = load i64, ptr %9, align 8, !tbaa !5
  %.not145 = icmp eq i64 %.pr148.pr, 0
  br i1 %.not145, label %51, label %.thread151

.thread151.sink.split:                            ; preds = %34, %29, %26, %24, %21
  %.sink = phi i64 [ -1, %21 ], [ -2, %24 ], [ -3, %26 ], [ -5, %29 ], [ -8, %34 ]
  store i64 %.sink, ptr %9, align 8, !tbaa !5
  br label %.thread151

.thread151:                                       ; preds = %.thread151.sink.split, %32, %.thread
  %48 = phi i64 [ %.pr148.pr, %.thread ], [ %.pr, %32 ], [ %.sink, %.thread151.sink.split ]
  %49 = sub nsw i64 0, %48
  store i64 %49, ptr %11, align 8, !tbaa !5
  %50 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %11) #5
  br label %97

51:                                               ; preds = %.thread
  br i1 %20, label %97, label %52

52:                                               ; preds = %51
  switch i64 %37, label %56 [
    i64 0, label %97
    i64 1, label %53
  ]

53:                                               ; preds = %52
  %54 = load double, ptr %3, align 8, !tbaa !9
  store double %54, ptr %5, align 8, !tbaa !13
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %6, align 8, !tbaa !13
  br i1 %.not, label %97, label %55

55:                                               ; preds = %53
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %3, align 8, !tbaa !13
  br label %97

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

66:                                               ; preds = %56
  %67 = fcmp ogt double %63, %62
  br i1 %67, label %68, label %70

68:                                               ; preds = %66, %56
  %.pn = phi double [ %61, %56 ], [ %62, %66 ]
  %storemerge159 = fdiv double %.pn, %63
  store double %storemerge159, ptr %14, align 8, !tbaa !13
  %69 = call i32 @zlascl_(ptr noundef %1, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull @c_b18, 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 %70

70:                                               ; preds = %66, %68
  %71 = phi i1 [ true, %68 ], [ false, %66 ]
  %72 = load i64, ptr %2, align 8, !tbaa !5
  %73 = load i64, ptr %7, align 8, !tbaa !5
  %74 = sub i64 %73, %72
  store i64 %74, ptr %16, align 8, !tbaa !5
  %75 = getelementptr %struct.doublecomplex, ptr %6, i64 %72
  %76 = call i32 @zhetrd_(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 %75, ptr noundef nonnull %16, ptr noundef nonnull %15) #5
  br i1 %.not, label %77, label %79

77:                                               ; preds = %70
  %78 = call i32 @dsterf_(ptr noundef nonnull %2, ptr noundef %5, ptr noundef %8, ptr noundef nonnull %9) #5
  br label %84

79:                                               ; preds = %70
  %80 = call i32 @zungtr_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef %75, ptr noundef nonnull %16, ptr noundef nonnull %15) #5
  %81 = load i64, ptr %2, align 8, !tbaa !5
  %82 = getelementptr double, ptr %8, i64 %81
  %83 = call i32 @zsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %8, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %82, ptr noundef nonnull %9) #5
  br label %84

84:                                               ; preds = %79, %77
  br i1 %71, label %85, label %96

85:                                               ; preds = %84
  %86 = load i64, ptr %9, align 8, !tbaa !5
  %87 = icmp eq i64 %86, 0
  br i1 %87, label %88, label %90

88:                                               ; preds = %85
  %89 = load i64, ptr %2, align 8, !tbaa !5
  br label %92

90:                                               ; preds = %85
  %91 = add nsw i64 %86, -1
  br label %92

92:                                               ; preds = %90, %88
  %storemerge = phi i64 [ %91, %90 ], [ %89, %88 ]
  store i64 %storemerge, ptr %13, align 8, !tbaa !5
  %93 = load double, ptr %14, align 8, !tbaa !13
  %94 = fdiv double 1.000000e+00, %93
  store double %94, ptr %12, align 8, !tbaa !13
  %95 = call i32 @f2c_dscal(ptr noundef nonnull %13, ptr noundef nonnull %12, ptr noundef %5, ptr noundef nonnull @c__1) #5
  br label %96

96:                                               ; preds = %92, %84
  store double %40, ptr %6, align 8, !tbaa !9
  store double 0.000000e+00, ptr %41, align 8, !tbaa !12
  br label %97

97:                                               ; preds = %53, %55, %52, %51, %96, %.thread151
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  ret i32 0
}

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

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

declare i64 @ilaenv_(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) 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 i32 @zlascl_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8}
!11 = !{!"double", !7, i64 0}
!12 = !{!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