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

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

74:                                               ; preds = %10
  %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 = %74
  %79 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %79, align 4, !tbaa !9
  br label %113

80:                                               ; preds = %74, %10
  %81 = load i32, ptr %33, 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 %165

117:                                              ; preds = %113
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = call i32 @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, i32 noundef 6, i32 noundef 1)
  store i32 %120, ptr %35, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %121 = load i32, ptr %35, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = mul nsw i32 %122, %124
  store i32 %125, ptr %24, align 4, !tbaa !9
  %126 = load i32, ptr %23, align 4, !tbaa !9
  %127 = load i32, ptr %24, align 4, !tbaa !9
  %128 = icmp sge i32 %126, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %117
  %130 = load i32, ptr %23, align 4, !tbaa !9
  br label %133

131:                                              ; preds = %117
  %132 = load i32, ptr %24, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %131, %129
  %134 = phi i32 [ %130, %129 ], [ %132, %131 ]
  store i32 %134, ptr %43, align 4, !tbaa !9
  %135 = load i32, ptr %43, align 4, !tbaa !9
  %136 = sitofp i32 %135 to double
  %137 = load ptr, ptr %17, 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 %17, 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 i32 1, ptr %23, align 4, !tbaa !9
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = shl i32 %144, 1
  %146 = sub nsw i32 %145, 1
  store i32 %146, ptr %24, align 4, !tbaa !9
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = load i32, ptr %23, align 4, !tbaa !9
  %150 = load i32, ptr %24, align 4, !tbaa !9
  %151 = icmp sge i32 %149, %150
  br i1 %151, label %152, label %154

152:                                              ; preds = %133
  %153 = load i32, ptr %23, align 4, !tbaa !9
  br label %156

154:                                              ; preds = %133
  %155 = load i32, ptr %24, align 4, !tbaa !9
  br label %156

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

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

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

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

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

169:                                              ; preds = %165
  %170 = load ptr, ptr %20, align 8, !tbaa !5
  %171 = load i32, ptr %170, align 4, !tbaa !9
  %172 = sub nsw i32 0, %171
  store i32 %172, ptr %23, align 4, !tbaa !9
  %173 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %23, i32 noundef 6)
  store i32 1, ptr %46, align 4
  br label %383

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

177:                                              ; preds = %174
  store i32 1, ptr %46, align 4
  br label %383

178:                                              ; preds = %174
  br label %179

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

183:                                              ; preds = %179
  store i32 1, ptr %46, align 4
  br label %383

184:                                              ; preds = %179
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 1
  br i1 %187, label %188, label %221

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

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

220:                                              ; preds = %207, %188
  store i32 1, ptr %46, align 4
  br label %383

221:                                              ; preds = %184
  %222 = call double @dlamch_(ptr noundef @.str.6)
  store double %222, ptr %37, align 8, !tbaa !15
  %223 = call double @dlamch_(ptr noundef @.str.7)
  store double %223, ptr %45, align 8, !tbaa !15
  %224 = load double, ptr %37, align 8, !tbaa !15
  %225 = load double, ptr %45, align 8, !tbaa !15
  %226 = fdiv double %224, %225
  store double %226, ptr %42, align 8, !tbaa !15
  %227 = load double, ptr %42, align 8, !tbaa !15
  %228 = fdiv double 1.000000e+00, %227
  store double %228, ptr %38, align 8, !tbaa !15
  %229 = load double, ptr %42, align 8, !tbaa !15
  %230 = call double @sqrt(double noundef %229) #4
  store double %230, ptr %29, align 8, !tbaa !15
  %231 = load double, ptr %38, align 8, !tbaa !15
  %232 = call double @sqrt(double noundef %231) #4
  store double %232, ptr %30, align 8, !tbaa !15
  %233 = load ptr, ptr %12, align 8, !tbaa !5
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  %236 = load i32, ptr %22, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds %struct.doublecomplex, ptr %235, i64 %237
  %239 = load ptr, ptr %15, align 8, !tbaa !5
  %240 = load ptr, ptr %19, align 8, !tbaa !5
  %241 = getelementptr inbounds double, ptr %240, i64 1
  %242 = call double @zlanhe_(ptr noundef @.str.8, ptr noundef %233, ptr noundef %234, ptr noundef %238, ptr noundef %239, ptr noundef %241)
  store double %242, ptr %27, align 8, !tbaa !15
  store i32 0, ptr %36, align 4, !tbaa !9
  %243 = load double, ptr %27, align 8, !tbaa !15
  %244 = fcmp ogt double %243, 0.000000e+00
  br i1 %244, label %245, label %253

245:                                              ; preds = %221
  %246 = load double, ptr %27, align 8, !tbaa !15
  %247 = load double, ptr %29, align 8, !tbaa !15
  %248 = fcmp olt double %246, %247
  br i1 %248, label %249, label %253

249:                                              ; preds = %245
  store i32 1, ptr %36, align 4, !tbaa !9
  %250 = load double, ptr %29, align 8, !tbaa !15
  %251 = load double, ptr %27, align 8, !tbaa !15
  %252 = fdiv double %250, %251
  store double %252, ptr %31, align 8, !tbaa !15
  br label %262

253:                                              ; preds = %245, %221
  %254 = load double, ptr %27, align 8, !tbaa !15
  %255 = load double, ptr %30, align 8, !tbaa !15
  %256 = fcmp ogt double %254, %255
  br i1 %256, label %257, label %261

257:                                              ; preds = %253
  store i32 1, ptr %36, align 4, !tbaa !9
  %258 = load double, ptr %30, align 8, !tbaa !15
  %259 = load double, ptr %27, align 8, !tbaa !15
  %260 = fdiv double %258, %259
  store double %260, ptr %31, align 8, !tbaa !15
  br label %261

261:                                              ; preds = %257, %253
  br label %262

262:                                              ; preds = %261, %249
  %263 = load i32, ptr %36, align 4, !tbaa !9
  %264 = icmp eq i32 %263, 1
  br i1 %264, label %265, label %275

265:                                              ; preds = %262
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  %267 = load ptr, ptr %13, align 8, !tbaa !5
  %268 = load ptr, ptr %13, align 8, !tbaa !5
  %269 = load ptr, ptr %14, align 8, !tbaa !5
  %270 = load i32, ptr %22, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds %struct.doublecomplex, ptr %269, i64 %271
  %273 = load ptr, ptr %15, align 8, !tbaa !5
  %274 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zlascl_(ptr noundef %266, ptr noundef @c__0, ptr noundef @c__0, ptr noundef @c_b18, ptr noundef %31, ptr noundef %267, ptr noundef %268, ptr noundef %272, ptr noundef %273, ptr noundef %274)
  br label %275

275:                                              ; preds = %265, %262
  store i32 1, ptr %26, align 4, !tbaa !9
  store i32 1, ptr %39, align 4, !tbaa !9
  %276 = load i32, ptr %39, align 4, !tbaa !9
  %277 = load ptr, ptr %13, align 8, !tbaa !5
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = add nsw i32 %276, %278
  store i32 %279, ptr %40, align 4, !tbaa !9
  %280 = load ptr, ptr %18, align 8, !tbaa !5
  %281 = load i32, ptr %280, align 4, !tbaa !9
  %282 = load i32, ptr %40, align 4, !tbaa !9
  %283 = sub nsw i32 %281, %282
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %41, align 4, !tbaa !9
  %285 = load ptr, ptr %12, align 8, !tbaa !5
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = load ptr, ptr %14, align 8, !tbaa !5
  %288 = load i32, ptr %22, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds %struct.doublecomplex, ptr %287, i64 %289
  %291 = load ptr, ptr %15, align 8, !tbaa !5
  %292 = load ptr, ptr %16, align 8, !tbaa !5
  %293 = getelementptr inbounds double, ptr %292, i64 1
  %294 = load ptr, ptr %19, align 8, !tbaa !5
  %295 = load i32, ptr %26, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds double, ptr %294, i64 %296
  %298 = load ptr, ptr %17, align 8, !tbaa !5
  %299 = load i32, ptr %39, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds %struct.doublecomplex, ptr %298, i64 %300
  %302 = load ptr, ptr %17, align 8, !tbaa !5
  %303 = load i32, ptr %40, align 4, !tbaa !9
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds %struct.doublecomplex, ptr %302, i64 %304
  call void @zhetrd_(ptr noundef %285, ptr noundef %286, ptr noundef %290, ptr noundef %291, ptr noundef %293, ptr noundef %297, ptr noundef %301, ptr noundef %305, ptr noundef %41, ptr noundef %32)
  %306 = load i32, ptr %34, align 4, !tbaa !9
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %317, label %308

308:                                              ; preds = %275
  %309 = load ptr, ptr %13, align 8, !tbaa !5
  %310 = load ptr, ptr %16, align 8, !tbaa !5
  %311 = getelementptr inbounds double, ptr %310, i64 1
  %312 = load ptr, ptr %19, align 8, !tbaa !5
  %313 = load i32, ptr %26, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds double, ptr %312, i64 %314
  %316 = load ptr, ptr %20, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %309, ptr noundef %311, ptr noundef %315, ptr noundef %316)
  br label %355

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

355:                                              ; preds = %317, %308
  %356 = load i32, ptr %36, align 4, !tbaa !9
  %357 = icmp eq i32 %356, 1
  br i1 %357, label %358, label %374

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

362:                                              ; preds = %358
  %363 = load ptr, ptr %13, align 8, !tbaa !5
  %364 = load i32, ptr %363, align 4, !tbaa !9
  store i32 %364, ptr %28, align 4, !tbaa !9
  br label %369

365:                                              ; preds = %358
  %366 = load ptr, ptr %20, align 8, !tbaa !5
  %367 = load i32, ptr %366, align 4, !tbaa !9
  %368 = sub nsw i32 %367, 1
  store i32 %368, ptr %28, align 4, !tbaa !9
  br label %369

369:                                              ; preds = %365, %362
  %370 = load double, ptr %31, align 8, !tbaa !15
  %371 = fdiv double 1.000000e+00, %370
  store double %371, ptr %25, align 8, !tbaa !15
  %372 = load ptr, ptr %16, align 8, !tbaa !5
  %373 = getelementptr inbounds double, ptr %372, i64 1
  call void @dscal_(ptr noundef %28, ptr noundef %25, ptr noundef %373, ptr noundef @c__1)
  br label %374

374:                                              ; preds = %369, %355
  %375 = load i32, ptr %43, align 4, !tbaa !9
  %376 = sitofp i32 %375 to double
  %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 0
  store double %376, ptr %379, align 8, !tbaa !11
  %380 = load ptr, ptr %17, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.doublecomplex, ptr %380, i64 1
  %382 = getelementptr inbounds %struct.doublecomplex, ptr %381, i32 0, i32 1
  store double 0.000000e+00, ptr %382, align 8, !tbaa !14
  store i32 1, ptr %46, align 4
  br label %383

383:                                              ; preds = %374, %220, %183, %177, %169
  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 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 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 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 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 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_(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 [7 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.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 i32, align 4
@c_b18 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local void @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 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
  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
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  %narrow = xor i32 %17, -1
  %19 = sext i32 %narrow to i64
  %20 = getelementptr inbounds %struct.doublecomplex, ptr %3, i64 %19
  %21 = getelementptr inbounds i8, ptr %6, i64 -16
  %22 = getelementptr inbounds i8, ptr %8, i64 -8
  %23 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #5
  %24 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #5
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = icmp eq i32 %25, -1
  store i32 0, ptr %9, align 4, !tbaa !5
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %27, label %29

27:                                               ; preds = %10
  %28 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #5
  %.not141 = icmp eq i32 %28, 0
  br i1 %.not141, label %.thread150.sink.split, label %29

29:                                               ; preds = %27, %10
  %.not142 = icmp eq i32 %24, 0
  br i1 %.not142, label %30, label %32

30:                                               ; preds = %29
  %31 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #5
  %.not143 = icmp eq i32 %31, 0
  br i1 %.not143, label %.thread150.sink.split, label %32

32:                                               ; preds = %30, %29
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %.thread150.sink.split, label %35

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

38:                                               ; preds = %35
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %39 = icmp eq i32 %.pr, 0
  br i1 %39, label %40, label %.thread150

40:                                               ; preds = %38
  %41 = tail call i32 @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, i32 noundef 6, i32 noundef 1) #5
  %42 = add nsw i32 %41, 1
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = mul nsw i32 %43, %42
  %45 = tail call i32 @llvm.smax.i32(i32 %44, i32 1)
  %46 = uitofp nneg i32 %45 to double
  store double %46, ptr %6, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %6, i64 8
  store double 0.000000e+00, ptr %47, align 8, !tbaa !12
  %48 = shl i32 %43, 1
  %49 = add nsw i32 %48, -1
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = icmp slt i32 %48, 3
  %52 = select i1 %51, i32 1, i32 %49
  %53 = icmp sge i32 %50, %52
  %or.cond = select i1 %53, i1 true, i1 %26
  br i1 %or.cond, label %.thread, label %.thread150.sink.split

.thread:                                          ; preds = %40
  %.pr147.pr = load i32, ptr %9, align 4, !tbaa !5
  %.not144 = icmp eq i32 %.pr147.pr, 0
  br i1 %.not144, label %57, label %.thread150

.thread150.sink.split:                            ; preds = %40, %35, %32, %30, %27
  %.sink = phi i32 [ -1, %27 ], [ -2, %30 ], [ -3, %32 ], [ -5, %35 ], [ -8, %40 ]
  store i32 %.sink, ptr %9, align 4, !tbaa !5
  br label %.thread150

.thread150:                                       ; preds = %.thread150.sink.split, %38, %.thread
  %54 = phi i32 [ %.pr147.pr, %.thread ], [ %.pr, %38 ], [ %.sink, %.thread150.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 6) #5
  br label %103

57:                                               ; preds = %.thread
  br i1 %26, label %103, label %58

58:                                               ; preds = %57
  switch i32 %43, label %64 [
    i32 0, label %103
    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
  br i1 %.not, label %103, label %61

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

64:                                               ; preds = %58
  %65 = tail call double @dlamch_(ptr noundef nonnull @.str.6) #5
  %66 = tail call double @dlamch_(ptr noundef nonnull @.str.7) #5
  %67 = fdiv double %65, %66
  %68 = fdiv double 1.000000e+00, %67
  %69 = tail call double @sqrt(double noundef %67) #5
  %70 = tail call double @sqrt(double noundef %68) #5
  %71 = 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
  %72 = fcmp ogt double %71, 0.000000e+00
  %73 = fcmp olt double %71, %69
  %or.cond145 = select i1 %72, i1 %73, i1 false
  br i1 %or.cond145, 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 ]
  %storemerge158 = fdiv double %.pn, %71
  store double %storemerge158, 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_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 %77

77:                                               ; preds = %74, %76
  %78 = phi i1 [ true, %76 ], [ false, %74 ]
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = sub i32 %80, %79
  store i32 %81, ptr %16, align 4, !tbaa !5
  %82 = sext i32 %79 to i64
  %83 = getelementptr %struct.doublecomplex, ptr %21, i64 %82
  %84 = getelementptr i8, ptr %83, i64 16
  call void @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 nonnull %84, ptr noundef nonnull %16, ptr noundef nonnull %15) #5
  br i1 %.not, label %85, label %86

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

86:                                               ; 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 %84, ptr noundef nonnull %16, ptr noundef nonnull %15) #5
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr double, ptr %22, i64 %88
  %90 = getelementptr i8, ptr %89, 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 %90, ptr noundef nonnull %9) #5
  br label %91

91:                                               ; preds = %86, %85
  br i1 %78, label %92, label %102

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

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

97:                                               ; preds = %92
  %98 = add nsw i32 %93, -1
  br label %99

99:                                               ; preds = %97, %95
  %storemerge = phi i32 [ %98, %97 ], [ %96, %95 ]
  store i32 %storemerge, ptr %13, align 4, !tbaa !5
  %100 = load double, ptr %14, align 8, !tbaa !13
  %101 = fdiv double 1.000000e+00, %100
  store double %101, 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 %102

102:                                              ; preds = %99, %91
  store double %46, ptr %6, align 8, !tbaa !9
  store double 0.000000e+00, ptr %47, align 8, !tbaa !12
  br label %103

103:                                              ; preds = %59, %61, %58, %57, %102, %.thread150
  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 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 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_(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.smax.i32(i32, i32) #4

; 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