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

; 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 [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @zlaqhe_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %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 i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca double, align 8
  %25 = alloca %struct.doublecomplex, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = load i64, ptr %32, align 8, !tbaa !9
  store i64 %33, ptr %18, align 8, !tbaa !9
  %34 = load i64, ptr %18, align 8, !tbaa !9
  %35 = add nsw i64 1, %34
  store i64 %35, ptr %19, align 8, !tbaa !9
  %36 = load i64, ptr %19, align 8, !tbaa !9
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = sub i64 0, %36
  %39 = getelementptr inbounds %struct.doublecomplex, ptr %37, i64 %38
  store ptr %39, ptr %12, align 8, !tbaa !5
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i32 -1
  store ptr %41, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = icmp sle i64 %43, 0
  br i1 %44, label %45, label %47

45:                                               ; preds = %8
  %46 = load ptr, ptr %17, align 8, !tbaa !5
  store i8 78, ptr %46, align 1, !tbaa !11
  store i32 0, ptr %9, align 4
  store i32 1, ptr %31, align 4
  br label %275

47:                                               ; preds = %8
  %48 = call double @dlamch_(ptr noundef @.str)
  %49 = call double @dlamch_(ptr noundef @.str.1)
  %50 = fdiv double %48, %49
  store double %50, ptr %30, align 8, !tbaa !12
  %51 = load double, ptr %30, align 8, !tbaa !12
  %52 = fdiv double 1.000000e+00, %51
  store double %52, ptr %29, align 8, !tbaa !12
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = load double, ptr %53, align 8, !tbaa !12
  %55 = fcmp oge double %54, 1.000000e-01
  br i1 %55, label %56, label %68

56:                                               ; preds = %47
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  %58 = load double, ptr %57, align 8, !tbaa !12
  %59 = load double, ptr %30, align 8, !tbaa !12
  %60 = fcmp oge double %58, %59
  br i1 %60, label %61, label %68

61:                                               ; preds = %56
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = load double, ptr %62, align 8, !tbaa !12
  %64 = load double, ptr %29, align 8, !tbaa !12
  %65 = fcmp ole double %63, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %61
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  store i8 78, ptr %67, align 1, !tbaa !11
  br label %274

68:                                               ; preds = %61, %56, %47
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call i64 @lsame_(ptr noundef %69, ptr noundef @.str.2)
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %171

72:                                               ; preds = %68
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  store i64 %74, ptr %20, align 8, !tbaa !9
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %167, %72
  %76 = load i64, ptr %27, align 8, !tbaa !9
  %77 = load i64, ptr %20, align 8, !tbaa !9
  %78 = icmp sle i64 %76, %77
  br i1 %78, label %79, label %170

79:                                               ; preds = %75
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = load i64, ptr %27, align 8, !tbaa !9
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !12
  store double %83, ptr %28, align 8, !tbaa !12
  %84 = load i64, ptr %27, align 8, !tbaa !9
  %85 = sub nsw i64 %84, 1
  store i64 %85, ptr %21, align 8, !tbaa !9
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %135, %79
  %87 = load i64, ptr %26, align 8, !tbaa !9
  %88 = load i64, ptr %21, align 8, !tbaa !9
  %89 = icmp sle i64 %87, %88
  br i1 %89, label %90, label %138

90:                                               ; preds = %86
  %91 = load i64, ptr %26, align 8, !tbaa !9
  %92 = load i64, ptr %27, align 8, !tbaa !9
  %93 = load i64, ptr %18, align 8, !tbaa !9
  %94 = mul nsw i64 %92, %93
  %95 = add nsw i64 %91, %94
  store i64 %95, ptr %22, align 8, !tbaa !9
  %96 = load double, ptr %28, align 8, !tbaa !12
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = load i64, ptr %26, align 8, !tbaa !9
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !12
  %101 = fmul double %96, %100
  store double %101, ptr %24, align 8, !tbaa !12
  %102 = load i64, ptr %26, align 8, !tbaa !9
  %103 = load i64, ptr %27, align 8, !tbaa !9
  %104 = load i64, ptr %18, align 8, !tbaa !9
  %105 = mul nsw i64 %103, %104
  %106 = add nsw i64 %102, %105
  store i64 %106, ptr %23, align 8, !tbaa !9
  %107 = load double, ptr %24, align 8, !tbaa !12
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = load i64, ptr %23, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.doublecomplex, ptr %108, i64 %109
  %111 = getelementptr inbounds %struct.doublecomplex, ptr %110, i32 0, i32 0
  %112 = load double, ptr %111, align 8, !tbaa !14
  %113 = fmul double %107, %112
  %114 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %113, ptr %114, align 8, !tbaa !14
  %115 = load double, ptr %24, align 8, !tbaa !12
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = load i64, ptr %23, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.doublecomplex, ptr %116, i64 %117
  %119 = getelementptr inbounds %struct.doublecomplex, ptr %118, i32 0, i32 1
  %120 = load double, ptr %119, align 8, !tbaa !16
  %121 = fmul double %115, %120
  %122 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %121, ptr %122, align 8, !tbaa !16
  %123 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %124 = load double, ptr %123, align 8, !tbaa !14
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load i64, ptr %22, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %125, i64 %126
  %128 = getelementptr inbounds %struct.doublecomplex, ptr %127, i32 0, i32 0
  store double %124, ptr %128, align 8, !tbaa !14
  %129 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %130 = load double, ptr %129, align 8, !tbaa !16
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load i64, ptr %22, align 8, !tbaa !9
  %133 = getelementptr inbounds %struct.doublecomplex, ptr %131, i64 %132
  %134 = getelementptr inbounds %struct.doublecomplex, ptr %133, i32 0, i32 1
  store double %130, ptr %134, align 8, !tbaa !16
  br label %135

135:                                              ; preds = %90
  %136 = load i64, ptr %26, align 8, !tbaa !9
  %137 = add nsw i64 %136, 1
  store i64 %137, ptr %26, align 8, !tbaa !9
  br label %86, !llvm.loop !17

138:                                              ; preds = %86
  %139 = load i64, ptr %27, align 8, !tbaa !9
  %140 = load i64, ptr %27, align 8, !tbaa !9
  %141 = load i64, ptr %18, align 8, !tbaa !9
  %142 = mul nsw i64 %140, %141
  %143 = add nsw i64 %139, %142
  store i64 %143, ptr %21, align 8, !tbaa !9
  %144 = load i64, ptr %27, align 8, !tbaa !9
  %145 = load i64, ptr %27, align 8, !tbaa !9
  %146 = load i64, ptr %18, align 8, !tbaa !9
  %147 = mul nsw i64 %145, %146
  %148 = add nsw i64 %144, %147
  store i64 %148, ptr %22, align 8, !tbaa !9
  %149 = load double, ptr %28, align 8, !tbaa !12
  %150 = load double, ptr %28, align 8, !tbaa !12
  %151 = fmul double %149, %150
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = load i64, ptr %22, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.doublecomplex, ptr %152, i64 %153
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %154, i32 0, i32 0
  %156 = load double, ptr %155, align 8, !tbaa !14
  %157 = fmul double %151, %156
  store double %157, ptr %24, align 8, !tbaa !12
  %158 = load double, ptr %24, align 8, !tbaa !12
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = load i64, ptr %21, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.doublecomplex, ptr %159, i64 %160
  %162 = getelementptr inbounds %struct.doublecomplex, ptr %161, i32 0, i32 0
  store double %158, ptr %162, align 8, !tbaa !14
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = load i64, ptr %21, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.doublecomplex, ptr %163, i64 %164
  %166 = getelementptr inbounds %struct.doublecomplex, ptr %165, i32 0, i32 1
  store double 0.000000e+00, ptr %166, align 8, !tbaa !16
  br label %167

167:                                              ; preds = %138
  %168 = load i64, ptr %27, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %27, align 8, !tbaa !9
  br label %75, !llvm.loop !19

170:                                              ; preds = %75
  br label %272

171:                                              ; preds = %68
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = load i64, ptr %172, align 8, !tbaa !9
  store i64 %173, ptr %20, align 8, !tbaa !9
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %268, %171
  %175 = load i64, ptr %27, align 8, !tbaa !9
  %176 = load i64, ptr %20, align 8, !tbaa !9
  %177 = icmp sle i64 %175, %176
  br i1 %177, label %178, label %271

178:                                              ; preds = %174
  %179 = load ptr, ptr %14, align 8, !tbaa !5
  %180 = load i64, ptr %27, align 8, !tbaa !9
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !12
  store double %182, ptr %28, align 8, !tbaa !12
  %183 = load i64, ptr %27, align 8, !tbaa !9
  %184 = load i64, ptr %27, align 8, !tbaa !9
  %185 = load i64, ptr %18, align 8, !tbaa !9
  %186 = mul nsw i64 %184, %185
  %187 = add nsw i64 %183, %186
  store i64 %187, ptr %21, align 8, !tbaa !9
  %188 = load i64, ptr %27, align 8, !tbaa !9
  %189 = load i64, ptr %27, align 8, !tbaa !9
  %190 = load i64, ptr %18, align 8, !tbaa !9
  %191 = mul nsw i64 %189, %190
  %192 = add nsw i64 %188, %191
  store i64 %192, ptr %22, align 8, !tbaa !9
  %193 = load double, ptr %28, align 8, !tbaa !12
  %194 = load double, ptr %28, align 8, !tbaa !12
  %195 = fmul double %193, %194
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load i64, ptr %22, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.doublecomplex, ptr %196, i64 %197
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %198, i32 0, i32 0
  %200 = load double, ptr %199, align 8, !tbaa !14
  %201 = fmul double %195, %200
  store double %201, ptr %24, align 8, !tbaa !12
  %202 = load double, ptr %24, align 8, !tbaa !12
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  %204 = load i64, ptr %21, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct.doublecomplex, ptr %203, i64 %204
  %206 = getelementptr inbounds %struct.doublecomplex, ptr %205, i32 0, i32 0
  store double %202, ptr %206, align 8, !tbaa !14
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = load i64, ptr %21, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.doublecomplex, ptr %207, i64 %208
  %210 = getelementptr inbounds %struct.doublecomplex, ptr %209, i32 0, i32 1
  store double 0.000000e+00, ptr %210, align 8, !tbaa !16
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = load i64, ptr %211, align 8, !tbaa !9
  store i64 %212, ptr %21, align 8, !tbaa !9
  %213 = load i64, ptr %27, align 8, !tbaa !9
  %214 = add nsw i64 %213, 1
  store i64 %214, ptr %26, align 8, !tbaa !9
  br label %215

215:                                              ; preds = %264, %178
  %216 = load i64, ptr %26, align 8, !tbaa !9
  %217 = load i64, ptr %21, align 8, !tbaa !9
  %218 = icmp sle i64 %216, %217
  br i1 %218, label %219, label %267

219:                                              ; preds = %215
  %220 = load i64, ptr %26, align 8, !tbaa !9
  %221 = load i64, ptr %27, align 8, !tbaa !9
  %222 = load i64, ptr %18, align 8, !tbaa !9
  %223 = mul nsw i64 %221, %222
  %224 = add nsw i64 %220, %223
  store i64 %224, ptr %22, align 8, !tbaa !9
  %225 = load double, ptr %28, align 8, !tbaa !12
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = load i64, ptr %26, align 8, !tbaa !9
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !12
  %230 = fmul double %225, %229
  store double %230, ptr %24, align 8, !tbaa !12
  %231 = load i64, ptr %26, align 8, !tbaa !9
  %232 = load i64, ptr %27, align 8, !tbaa !9
  %233 = load i64, ptr %18, align 8, !tbaa !9
  %234 = mul nsw i64 %232, %233
  %235 = add nsw i64 %231, %234
  store i64 %235, ptr %23, align 8, !tbaa !9
  %236 = load double, ptr %24, align 8, !tbaa !12
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = load i64, ptr %23, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.doublecomplex, ptr %237, i64 %238
  %240 = getelementptr inbounds %struct.doublecomplex, ptr %239, i32 0, i32 0
  %241 = load double, ptr %240, align 8, !tbaa !14
  %242 = fmul double %236, %241
  %243 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %242, ptr %243, align 8, !tbaa !14
  %244 = load double, ptr %24, align 8, !tbaa !12
  %245 = load ptr, ptr %12, align 8, !tbaa !5
  %246 = load i64, ptr %23, align 8, !tbaa !9
  %247 = getelementptr inbounds %struct.doublecomplex, ptr %245, i64 %246
  %248 = getelementptr inbounds %struct.doublecomplex, ptr %247, i32 0, i32 1
  %249 = load double, ptr %248, align 8, !tbaa !16
  %250 = fmul double %244, %249
  %251 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %250, ptr %251, align 8, !tbaa !16
  %252 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %253 = load double, ptr %252, align 8, !tbaa !14
  %254 = load ptr, ptr %12, align 8, !tbaa !5
  %255 = load i64, ptr %22, align 8, !tbaa !9
  %256 = getelementptr inbounds %struct.doublecomplex, ptr %254, i64 %255
  %257 = getelementptr inbounds %struct.doublecomplex, ptr %256, i32 0, i32 0
  store double %253, ptr %257, align 8, !tbaa !14
  %258 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %259 = load double, ptr %258, align 8, !tbaa !16
  %260 = load ptr, ptr %12, align 8, !tbaa !5
  %261 = load i64, ptr %22, align 8, !tbaa !9
  %262 = getelementptr inbounds %struct.doublecomplex, ptr %260, i64 %261
  %263 = getelementptr inbounds %struct.doublecomplex, ptr %262, i32 0, i32 1
  store double %259, ptr %263, align 8, !tbaa !16
  br label %264

264:                                              ; preds = %219
  %265 = load i64, ptr %26, align 8, !tbaa !9
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %26, align 8, !tbaa !9
  br label %215, !llvm.loop !20

267:                                              ; preds = %215
  br label %268

268:                                              ; preds = %267
  %269 = load i64, ptr %27, align 8, !tbaa !9
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %27, align 8, !tbaa !9
  br label %174, !llvm.loop !21

271:                                              ; preds = %174
  br label %272

272:                                              ; preds = %271, %170
  %273 = load ptr, ptr %17, align 8, !tbaa !5
  store i8 89, ptr %273, align 1, !tbaa !11
  br label %274

274:                                              ; preds = %272, %66
  store i32 0, ptr %9, align 4
  store i32 1, ptr %31, align 4
  br label %275

275:                                              ; preds = %274, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  %276 = load i32, ptr %9, align 4
  ret i32 %276
}

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

declare double @dlamch_(ptr noundef) #2

declare i64 @lsame_(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 }

!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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 8}
!16 = !{!15, !13, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; 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 [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @zlaqhe_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef writeonly %7) local_unnamed_addr #0 {
  %9 = load i64, ptr %3, align 8, !tbaa !5
  %10 = xor i64 %9, -1
  %11 = getelementptr inbounds %struct.doublecomplex, ptr %2, i64 %10
  %12 = getelementptr inbounds i8, ptr %4, i64 -8
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = icmp slt i64 %13, 1
  br i1 %14, label %.loopexit115, label %15

15:                                               ; preds = %8
  %16 = tail call double @dlamch_(ptr noundef nonnull @.str) #2
  %17 = tail call double @dlamch_(ptr noundef nonnull @.str.1) #2
  %18 = load double, ptr %5, align 8, !tbaa !9
  %19 = fcmp ult double %18, 1.000000e-01
  br i1 %19, label %26, label %20

20:                                               ; preds = %15
  %21 = fdiv double %16, %17
  %22 = fdiv double 1.000000e+00, %21
  %23 = load double, ptr %6, align 8, !tbaa !9
  %24 = fcmp ult double %23, %21
  %25 = fcmp ugt double %23, %22
  %or.cond = or i1 %24, %25
  br i1 %or.cond, label %26, label %.loopexit115

26:                                               ; preds = %20, %15
  %27 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #2
  %.not = icmp eq i64 %27, 0
  %28 = load i64, ptr %1, align 8, !tbaa !5
  %.not110129 = icmp slt i64 %28, 1
  br i1 %.not, label %88, label %29

29:                                               ; preds = %26
  br i1 %.not110129, label %.loopexit115, label %.lr.ph122

.lr.ph122:                                        ; preds = %29
  %30 = add i64 %9, 1
  %31 = shl i64 %9, 4
  %32 = shl i64 %9, 4
  %33 = add i64 %32, 16
  br label %34

34:                                               ; preds = %.lr.ph122, %._crit_edge
  %indvar = phi i64 [ 0, %.lr.ph122 ], [ %indvar.next, %._crit_edge ]
  %.0107120 = phi i64 [ 1, %.lr.ph122 ], [ %87, %._crit_edge ]
  %35 = mul i64 %32, %indvar
  %scevgep142 = getelementptr i8, ptr %2, i64 %35
  %36 = mul i64 %33, %indvar
  %scevgep143 = getelementptr i8, ptr %2, i64 %36
  %37 = shl i64 %indvar, 3
  %scevgep144 = getelementptr i8, ptr %4, i64 %37
  %38 = add i64 %indvar, -1
  %39 = mul i64 %31, %indvar
  %40 = or disjoint i64 %39, 8
  %scevgep = getelementptr i8, ptr %2, i64 %40
  %scevgep138 = getelementptr i8, ptr %2, i64 %39
  %41 = getelementptr inbounds double, ptr %12, i64 %.0107120
  %42 = load double, ptr %41, align 8, !tbaa !9
  %.not113.not117 = icmp ugt i64 %.0107120, 1
  br i1 %.not113.not117, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %34
  %43 = mul nsw i64 %.0107120, %9
  %invariant.gep = getelementptr %struct.doublecomplex, ptr %11, i64 %43
  %min.iters.check = icmp ult i64 %indvar, 10
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph
  %mul.result = shl i64 %38, 4
  %44 = getelementptr i8, ptr %scevgep, i64 %mul.result
  %45 = icmp ult ptr %44, %scevgep
  %mul.result140 = shl i64 %38, 4
  %mul.overflow141 = icmp ugt i64 %38, 1152921504606846975
  %46 = getelementptr i8, ptr %scevgep138, i64 %mul.result140
  %47 = icmp ult ptr %46, %scevgep138
  %48 = or i1 %47, %mul.overflow141
  %49 = or i1 %45, %48
  br i1 %49, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %bound0 = icmp ult ptr %scevgep142, %scevgep144
  %bound1 = icmp ugt ptr %scevgep143, %4
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %indvar, 2305843009213693950
  %ind.end = or i64 %indvar, 1
  %broadcast.splatinsert = insertelement <2 x double> poison, double %42, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %50 = getelementptr double, ptr %4, i64 %index
  %wide.load = load <2 x double>, ptr %50, align 8, !tbaa !9, !alias.scope !11
  %51 = fmul <2 x double> %broadcast.splat, %wide.load
  %52 = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %offset.idx
  %wide.vec = load <4 x double>, ptr %52, align 8, !tbaa !9
  %strided.vec = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec145 = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %53 = fmul <2 x double> %51, %strided.vec
  %54 = fmul <2 x double> %51, %strided.vec145
  %interleaved.vec = shufflevector <2 x double> %53, <2 x double> %54, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec, ptr %52, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 2
  %55 = icmp eq i64 %index.next, %n.vec
  br i1 %55, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %indvar, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.lr.ph
  %.0108118.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %vector.scevcheck ], [ 1, %.lr.ph ], [ %ind.end, %middle.block ]
  %56 = and i64 %.0107120, 1
  %lcmp.mod.not.not = icmp eq i64 %56, 0
  br i1 %lcmp.mod.not.not, label %scalar.ph.prol, label %scalar.ph.prol.loopexit

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %57 = getelementptr inbounds double, ptr %12, i64 %.0108118.ph
  %58 = load double, ptr %57, align 8, !tbaa !9
  %59 = fmul double %42, %58
  %gep.prol = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %.0108118.ph
  %60 = load <2 x double>, ptr %gep.prol, align 8, !tbaa !9
  %61 = insertelement <2 x double> poison, double %59, i64 0
  %62 = shufflevector <2 x double> %61, <2 x double> poison, <2 x i32> zeroinitializer
  %63 = fmul <2 x double> %62, %60
  store <2 x double> %63, ptr %gep.prol, align 8, !tbaa !9
  %64 = add nuw nsw i64 %.0108118.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.0108118.unr = phi i64 [ %.0108118.ph, %scalar.ph.preheader ], [ %64, %scalar.ph.prol ]
  %65 = icmp eq i64 %indvar, %.0108118.ph
  br i1 %65, label %._crit_edge, label %scalar.ph.preheader.new

scalar.ph.preheader.new:                          ; preds = %scalar.ph.prol.loopexit
  %invariant.gep187 = getelementptr i8, ptr %invariant.gep, i64 16
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph, %scalar.ph.preheader.new
  %.0108118 = phi i64 [ %.0108118.unr, %scalar.ph.preheader.new ], [ %80, %scalar.ph ]
  %66 = getelementptr inbounds double, ptr %12, i64 %.0108118
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = fmul double %42, %67
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %.0108118
  %69 = load <2 x double>, ptr %gep, align 8, !tbaa !9
  %70 = insertelement <2 x double> poison, double %68, i64 0
  %71 = shufflevector <2 x double> %70, <2 x double> poison, <2 x i32> zeroinitializer
  %72 = fmul <2 x double> %71, %69
  store <2 x double> %72, ptr %gep, align 8, !tbaa !9
  %73 = getelementptr double, ptr %4, i64 %.0108118
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = fmul double %42, %74
  %gep188 = getelementptr %struct.doublecomplex, ptr %invariant.gep187, i64 %.0108118
  %76 = load <2 x double>, ptr %gep188, align 8, !tbaa !9
  %77 = insertelement <2 x double> poison, double %75, i64 0
  %78 = shufflevector <2 x double> %77, <2 x double> poison, <2 x i32> zeroinitializer
  %79 = fmul <2 x double> %78, %76
  store <2 x double> %79, ptr %gep188, align 8, !tbaa !9
  %80 = add nuw nsw i64 %.0108118, 2
  %exitcond.not.1 = icmp eq i64 %80, %.0107120
  br i1 %exitcond.not.1, label %._crit_edge, label %scalar.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %34
  %81 = mul i64 %.0107120, %30
  %82 = fmul double %42, %42
  %83 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %81
  %84 = load double, ptr %83, align 8, !tbaa !19
  %85 = fmul double %82, %84
  store double %85, ptr %83, align 8, !tbaa !19
  %86 = getelementptr inbounds i8, ptr %83, i64 8
  store double 0.000000e+00, ptr %86, align 8, !tbaa !21
  %87 = add nuw i64 %.0107120, 1
  %exitcond134.not = icmp eq i64 %.0107120, %28
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond134.not, label %.loopexit115, label %34, !llvm.loop !22

88:                                               ; preds = %26
  br i1 %.not110129, label %.loopexit115, label %.lr.ph132.preheader

.lr.ph132.preheader:                              ; preds = %88
  %89 = add nsw i64 %28, -2
  %90 = shl i64 %9, 4
  %91 = add i64 %90, 16
  %92 = shl i64 %28, 4
  %93 = shl i64 %9, 4
  %94 = shl i64 %28, 3
  %scevgep161 = getelementptr i8, ptr %4, i64 %94
  %invariant.gep189 = getelementptr i8, ptr %2, i64 16
  %95 = getelementptr i8, ptr %2, i64 %92
  %invariant.gep191 = getelementptr i8, ptr %4, i64 8
  %invariant.gep193 = getelementptr i8, ptr %2, i64 24
  %invariant.gep195 = getelementptr i8, ptr %2, i64 16
  br label %.lr.ph132

.loopexit:                                        ; preds = %.lr.ph128, %middle.block165, %.lr.ph132
  %exitcond135.not = icmp eq i64 %.1130, %28
  %indvar.next148 = add i64 %indvar147, 1
  br i1 %exitcond135.not, label %.loopexit115, label %.lr.ph132, !llvm.loop !23

.lr.ph132:                                        ; preds = %.lr.ph132.preheader, %.loopexit
  %indvar147 = phi i64 [ 0, %.lr.ph132.preheader ], [ %indvar.next148, %.loopexit ]
  %.1130 = phi i64 [ 1, %.lr.ph132.preheader ], [ %112, %.loopexit ]
  %96 = xor i64 %indvar147, -1
  %97 = add i64 %28, %96
  %98 = mul i64 %91, %indvar147
  %gep190 = getelementptr i8, ptr %invariant.gep189, i64 %98
  %99 = mul i64 %93, %indvar147
  %scevgep159 = getelementptr i8, ptr %95, i64 %99
  %100 = shl i64 %indvar147, 3
  %gep192 = getelementptr i8, ptr %invariant.gep191, i64 %100
  %101 = sub i64 %89, %indvar147
  %102 = mul i64 %91, %indvar147
  %gep194 = getelementptr i8, ptr %invariant.gep193, i64 %102
  %gep196 = getelementptr i8, ptr %invariant.gep195, i64 %102
  %103 = getelementptr inbounds double, ptr %12, i64 %.1130
  %104 = load double, ptr %103, align 8, !tbaa !9
  %105 = mul nsw i64 %.1130, %9
  %106 = fmul double %104, %104
  %107 = getelementptr %struct.doublecomplex, ptr %11, i64 %.1130
  %108 = getelementptr %struct.doublecomplex, ptr %107, i64 %105
  %109 = load double, ptr %108, align 8, !tbaa !19
  %110 = fmul double %106, %109
  store double %110, ptr %108, align 8, !tbaa !19
  %111 = getelementptr inbounds i8, ptr %108, i64 8
  store double 0.000000e+00, ptr %111, align 8, !tbaa !21
  %112 = add nuw i64 %.1130, 1
  %invariant.gep123 = getelementptr %struct.doublecomplex, ptr %11, i64 %105
  %.not111125.not = icmp slt i64 %.1130, %28
  br i1 %.not111125.not, label %.lr.ph128.preheader, label %.loopexit

.lr.ph128.preheader:                              ; preds = %.lr.ph132
  %min.iters.check167 = icmp ult i64 %97, 10
  br i1 %min.iters.check167, label %.lr.ph128.preheader185, label %vector.scevcheck146

vector.scevcheck146:                              ; preds = %.lr.ph128.preheader
  %mul.result151 = shl i64 %101, 4
  %113 = getelementptr i8, ptr %gep194, i64 %mul.result151
  %114 = icmp ult ptr %113, %gep194
  %mul.result155 = shl i64 %101, 4
  %mul.overflow156 = icmp ugt i64 %101, 1152921504606846975
  %115 = getelementptr i8, ptr %gep196, i64 %mul.result155
  %116 = icmp ult ptr %115, %gep196
  %117 = or i1 %116, %mul.overflow156
  %118 = or i1 %114, %117
  br i1 %118, label %.lr.ph128.preheader185, label %vector.memcheck157

vector.memcheck157:                               ; preds = %vector.scevcheck146
  %bound0162 = icmp ult ptr %gep190, %scevgep161
  %bound1163 = icmp ult ptr %gep192, %scevgep159
  %found.conflict164 = and i1 %bound0162, %bound1163
  br i1 %found.conflict164, label %.lr.ph128.preheader185, label %vector.ph168

vector.ph168:                                     ; preds = %vector.memcheck157
  %n.vec170 = and i64 %97, -2
  %ind.end171 = add i64 %112, %n.vec170
  %broadcast.splatinsert177 = insertelement <2 x double> poison, double %104, i64 0
  %broadcast.splat178 = shufflevector <2 x double> %broadcast.splatinsert177, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body173

vector.body173:                                   ; preds = %vector.body173, %vector.ph168
  %index174 = phi i64 [ 0, %vector.ph168 ], [ %index.next183, %vector.body173 ]
  %offset.idx175 = add i64 %112, %index174
  %119 = getelementptr inbounds double, ptr %12, i64 %offset.idx175
  %wide.load176 = load <2 x double>, ptr %119, align 8, !tbaa !9, !alias.scope !24
  %120 = fmul <2 x double> %broadcast.splat178, %wide.load176
  %121 = getelementptr %struct.doublecomplex, ptr %invariant.gep123, i64 %offset.idx175
  %wide.vec179 = load <4 x double>, ptr %121, align 8, !tbaa !9
  %strided.vec180 = shufflevector <4 x double> %wide.vec179, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec181 = shufflevector <4 x double> %wide.vec179, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %122 = fmul <2 x double> %120, %strided.vec180
  %123 = fmul <2 x double> %120, %strided.vec181
  %interleaved.vec182 = shufflevector <2 x double> %122, <2 x double> %123, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec182, ptr %121, align 8, !tbaa !9
  %index.next183 = add nuw i64 %index174, 2
  %124 = icmp eq i64 %index.next183, %n.vec170
  br i1 %124, label %middle.block165, label %vector.body173, !llvm.loop !27

middle.block165:                                  ; preds = %vector.body173
  %cmp.n184 = icmp eq i64 %97, %n.vec170
  br i1 %cmp.n184, label %.loopexit, label %.lr.ph128.preheader185

.lr.ph128.preheader185:                           ; preds = %middle.block165, %vector.memcheck157, %vector.scevcheck146, %.lr.ph128.preheader
  %.1109126.ph = phi i64 [ %112, %vector.memcheck157 ], [ %112, %vector.scevcheck146 ], [ %112, %.lr.ph128.preheader ], [ %ind.end171, %middle.block165 ]
  br label %.lr.ph128

.lr.ph128:                                        ; preds = %.lr.ph128.preheader185, %.lr.ph128
  %.1109126 = phi i64 [ %132, %.lr.ph128 ], [ %.1109126.ph, %.lr.ph128.preheader185 ]
  %125 = getelementptr inbounds double, ptr %12, i64 %.1109126
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = fmul double %104, %126
  %gep124 = getelementptr %struct.doublecomplex, ptr %invariant.gep123, i64 %.1109126
  %128 = load <2 x double>, ptr %gep124, align 8, !tbaa !9
  %129 = insertelement <2 x double> poison, double %127, i64 0
  %130 = shufflevector <2 x double> %129, <2 x double> poison, <2 x i32> zeroinitializer
  %131 = fmul <2 x double> %130, %128
  store <2 x double> %131, ptr %gep124, align 8, !tbaa !9
  %132 = add nuw nsw i64 %.1109126, 1
  %.not111.not = icmp slt i64 %.1109126, %28
  br i1 %.not111.not, label %.lr.ph128, label %.loopexit, !llvm.loop !28

.loopexit115:                                     ; preds = %._crit_edge, %.loopexit, %29, %88, %20, %8
  %storemerge114 = phi i8 [ 78, %8 ], [ 78, %20 ], [ 89, %88 ], [ 89, %29 ], [ 89, %.loopexit ], [ 89, %._crit_edge ]
  store i8 %storemerge114, ptr %7, align 1, !tbaa !29
  ret i32 0
}

declare double @dlamch_(ptr noundef) local_unnamed_addr #1

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #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 = { "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 #2 = { 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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15, !16}
!19 = !{!20, !10, i64 0}
!20 = !{!"", !10, i64 0, !10, i64 8}
!21 = !{!20, !10, i64 8}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = distinct !{!27, !15, !16, !17}
!28 = distinct !{!28, !15, !16}
!29 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass