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

; 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 @zlaqhp_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %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 i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca %struct.doublecomplex, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  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 16, 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 8, 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
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = getelementptr inbounds double, ptr %29, i32 -1
  store ptr %30, ptr %12, align 8, !tbaa !5
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 -1
  store ptr %32, ptr %11, align 8, !tbaa !5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = icmp sle i64 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %7
  %37 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 78, ptr %37, align 1, !tbaa !11
  store i32 0, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %264

38:                                               ; preds = %7
  %39 = call double @dlamch_(ptr noundef @.str)
  %40 = call double @dlamch_(ptr noundef @.str.1)
  %41 = fdiv double %39, %40
  store double %41, ptr %27, align 8, !tbaa !12
  %42 = load double, ptr %27, align 8, !tbaa !12
  %43 = fdiv double 1.000000e+00, %42
  store double %43, ptr %26, align 8, !tbaa !12
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = load double, ptr %44, align 8, !tbaa !12
  %46 = fcmp oge double %45, 1.000000e-01
  br i1 %46, label %47, label %59

47:                                               ; preds = %38
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = load double, ptr %48, align 8, !tbaa !12
  %50 = load double, ptr %27, align 8, !tbaa !12
  %51 = fcmp oge double %49, %50
  br i1 %51, label %52, label %59

52:                                               ; preds = %47
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = load double, ptr %53, align 8, !tbaa !12
  %55 = load double, ptr %26, align 8, !tbaa !12
  %56 = fcmp ole double %54, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %52
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 78, ptr %58, align 1, !tbaa !11
  br label %263

59:                                               ; preds = %52, %47, %38
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = call i64 @lsame_(ptr noundef %60, ptr noundef @.str.2)
  %62 = icmp ne i64 %61, 0
  br i1 %62, label %63, label %161

63:                                               ; preds = %59
  store i64 1, ptr %24, align 8, !tbaa !9
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = load i64, ptr %64, align 8, !tbaa !9
  store i64 %65, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %23, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %157, %63
  %67 = load i64, ptr %23, align 8, !tbaa !9
  %68 = load i64, ptr %16, align 8, !tbaa !9
  %69 = icmp sle i64 %67, %68
  br i1 %69, label %70, label %160

70:                                               ; preds = %66
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = load i64, ptr %23, align 8, !tbaa !9
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !12
  store double %74, ptr %25, align 8, !tbaa !12
  %75 = load i64, ptr %23, align 8, !tbaa !9
  %76 = sub nsw i64 %75, 1
  store i64 %76, ptr %17, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %124, %70
  %78 = load i64, ptr %22, align 8, !tbaa !9
  %79 = load i64, ptr %17, align 8, !tbaa !9
  %80 = icmp sle i64 %78, %79
  br i1 %80, label %81, label %127

81:                                               ; preds = %77
  %82 = load i64, ptr %24, align 8, !tbaa !9
  %83 = load i64, ptr %22, align 8, !tbaa !9
  %84 = add nsw i64 %82, %83
  %85 = sub nsw i64 %84, 1
  store i64 %85, ptr %18, align 8, !tbaa !9
  %86 = load double, ptr %25, align 8, !tbaa !12
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = load i64, ptr %22, align 8, !tbaa !9
  %89 = getelementptr inbounds double, ptr %87, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !12
  %91 = fmul double %86, %90
  store double %91, ptr %20, align 8, !tbaa !12
  %92 = load i64, ptr %24, align 8, !tbaa !9
  %93 = load i64, ptr %22, align 8, !tbaa !9
  %94 = add nsw i64 %92, %93
  %95 = sub nsw i64 %94, 1
  store i64 %95, ptr %19, align 8, !tbaa !9
  %96 = load double, ptr %20, align 8, !tbaa !12
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = load i64, ptr %19, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.doublecomplex, ptr %97, i64 %98
  %100 = getelementptr inbounds %struct.doublecomplex, ptr %99, i32 0, i32 0
  %101 = load double, ptr %100, align 8, !tbaa !14
  %102 = fmul double %96, %101
  %103 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  store double %102, ptr %103, align 8, !tbaa !14
  %104 = load double, ptr %20, align 8, !tbaa !12
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load i64, ptr %19, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.doublecomplex, ptr %105, i64 %106
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %107, i32 0, i32 1
  %109 = load double, ptr %108, align 8, !tbaa !16
  %110 = fmul double %104, %109
  %111 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  store double %110, ptr %111, align 8, !tbaa !16
  %112 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  %113 = load double, ptr %112, align 8, !tbaa !14
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load i64, ptr %18, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %114, i64 %115
  %117 = getelementptr inbounds %struct.doublecomplex, ptr %116, i32 0, i32 0
  store double %113, ptr %117, align 8, !tbaa !14
  %118 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  %119 = load double, ptr %118, align 8, !tbaa !16
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = load i64, ptr %18, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.doublecomplex, ptr %120, i64 %121
  %123 = getelementptr inbounds %struct.doublecomplex, ptr %122, i32 0, i32 1
  store double %119, ptr %123, align 8, !tbaa !16
  br label %124

124:                                              ; preds = %81
  %125 = load i64, ptr %22, align 8, !tbaa !9
  %126 = add nsw i64 %125, 1
  store i64 %126, ptr %22, align 8, !tbaa !9
  br label %77, !llvm.loop !17

127:                                              ; preds = %77
  %128 = load i64, ptr %24, align 8, !tbaa !9
  %129 = load i64, ptr %23, align 8, !tbaa !9
  %130 = add nsw i64 %128, %129
  %131 = sub nsw i64 %130, 1
  store i64 %131, ptr %17, align 8, !tbaa !9
  %132 = load i64, ptr %24, align 8, !tbaa !9
  %133 = load i64, ptr %23, align 8, !tbaa !9
  %134 = add nsw i64 %132, %133
  %135 = sub nsw i64 %134, 1
  store i64 %135, ptr %18, align 8, !tbaa !9
  %136 = load double, ptr %25, align 8, !tbaa !12
  %137 = load double, ptr %25, align 8, !tbaa !12
  %138 = fmul double %136, %137
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = load i64, ptr %18, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %139, i64 %140
  %142 = getelementptr inbounds %struct.doublecomplex, ptr %141, i32 0, i32 0
  %143 = load double, ptr %142, align 8, !tbaa !14
  %144 = fmul double %138, %143
  store double %144, ptr %20, align 8, !tbaa !12
  %145 = load double, ptr %20, align 8, !tbaa !12
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = load i64, ptr %17, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.doublecomplex, ptr %146, i64 %147
  %149 = getelementptr inbounds %struct.doublecomplex, ptr %148, i32 0, i32 0
  store double %145, ptr %149, align 8, !tbaa !14
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = load i64, ptr %17, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct.doublecomplex, ptr %150, i64 %151
  %153 = getelementptr inbounds %struct.doublecomplex, ptr %152, i32 0, i32 1
  store double 0.000000e+00, ptr %153, align 8, !tbaa !16
  %154 = load i64, ptr %23, align 8, !tbaa !9
  %155 = load i64, ptr %24, align 8, !tbaa !9
  %156 = add nsw i64 %155, %154
  store i64 %156, ptr %24, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %127
  %158 = load i64, ptr %23, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %23, align 8, !tbaa !9
  br label %66, !llvm.loop !19

160:                                              ; preds = %66
  br label %261

161:                                              ; preds = %59
  store i64 1, ptr %24, align 8, !tbaa !9
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = load i64, ptr %162, align 8, !tbaa !9
  store i64 %163, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %23, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %257, %161
  %165 = load i64, ptr %23, align 8, !tbaa !9
  %166 = load i64, ptr %16, align 8, !tbaa !9
  %167 = icmp sle i64 %165, %166
  br i1 %167, label %168, label %260

168:                                              ; preds = %164
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = load i64, ptr %23, align 8, !tbaa !9
  %171 = getelementptr inbounds double, ptr %169, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !12
  store double %172, ptr %25, align 8, !tbaa !12
  %173 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %173, ptr %17, align 8, !tbaa !9
  %174 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %174, ptr %18, align 8, !tbaa !9
  %175 = load double, ptr %25, align 8, !tbaa !12
  %176 = load double, ptr %25, align 8, !tbaa !12
  %177 = fmul double %175, %176
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = load i64, ptr %18, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %178, i64 %179
  %181 = getelementptr inbounds %struct.doublecomplex, ptr %180, i32 0, i32 0
  %182 = load double, ptr %181, align 8, !tbaa !14
  %183 = fmul double %177, %182
  store double %183, ptr %20, align 8, !tbaa !12
  %184 = load double, ptr %20, align 8, !tbaa !12
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load i64, ptr %17, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.doublecomplex, ptr %185, i64 %186
  %188 = getelementptr inbounds %struct.doublecomplex, ptr %187, i32 0, i32 0
  store double %184, ptr %188, align 8, !tbaa !14
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = load i64, ptr %17, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct.doublecomplex, ptr %189, i64 %190
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %191, i32 0, i32 1
  store double 0.000000e+00, ptr %192, align 8, !tbaa !16
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = load i64, ptr %193, align 8, !tbaa !9
  store i64 %194, ptr %17, align 8, !tbaa !9
  %195 = load i64, ptr %23, align 8, !tbaa !9
  %196 = add nsw i64 %195, 1
  store i64 %196, ptr %22, align 8, !tbaa !9
  br label %197

197:                                              ; preds = %246, %168
  %198 = load i64, ptr %22, align 8, !tbaa !9
  %199 = load i64, ptr %17, align 8, !tbaa !9
  %200 = icmp sle i64 %198, %199
  br i1 %200, label %201, label %249

201:                                              ; preds = %197
  %202 = load i64, ptr %24, align 8, !tbaa !9
  %203 = load i64, ptr %22, align 8, !tbaa !9
  %204 = add nsw i64 %202, %203
  %205 = load i64, ptr %23, align 8, !tbaa !9
  %206 = sub nsw i64 %204, %205
  store i64 %206, ptr %18, align 8, !tbaa !9
  %207 = load double, ptr %25, align 8, !tbaa !12
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = load i64, ptr %22, align 8, !tbaa !9
  %210 = getelementptr inbounds double, ptr %208, i64 %209
  %211 = load double, ptr %210, align 8, !tbaa !12
  %212 = fmul double %207, %211
  store double %212, ptr %20, align 8, !tbaa !12
  %213 = load i64, ptr %24, align 8, !tbaa !9
  %214 = load i64, ptr %22, align 8, !tbaa !9
  %215 = add nsw i64 %213, %214
  %216 = load i64, ptr %23, align 8, !tbaa !9
  %217 = sub nsw i64 %215, %216
  store i64 %217, ptr %19, align 8, !tbaa !9
  %218 = load double, ptr %20, align 8, !tbaa !12
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = load i64, ptr %19, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.doublecomplex, ptr %219, i64 %220
  %222 = getelementptr inbounds %struct.doublecomplex, ptr %221, i32 0, i32 0
  %223 = load double, ptr %222, align 8, !tbaa !14
  %224 = fmul double %218, %223
  %225 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  store double %224, ptr %225, align 8, !tbaa !14
  %226 = load double, ptr %20, align 8, !tbaa !12
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = load i64, ptr %19, align 8, !tbaa !9
  %229 = getelementptr inbounds %struct.doublecomplex, ptr %227, i64 %228
  %230 = getelementptr inbounds %struct.doublecomplex, ptr %229, i32 0, i32 1
  %231 = load double, ptr %230, align 8, !tbaa !16
  %232 = fmul double %226, %231
  %233 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  store double %232, ptr %233, align 8, !tbaa !16
  %234 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  %235 = load double, ptr %234, align 8, !tbaa !14
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = load i64, ptr %18, align 8, !tbaa !9
  %238 = getelementptr inbounds %struct.doublecomplex, ptr %236, i64 %237
  %239 = getelementptr inbounds %struct.doublecomplex, ptr %238, i32 0, i32 0
  store double %235, ptr %239, align 8, !tbaa !14
  %240 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  %241 = load double, ptr %240, align 8, !tbaa !16
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  %243 = load i64, ptr %18, align 8, !tbaa !9
  %244 = getelementptr inbounds %struct.doublecomplex, ptr %242, i64 %243
  %245 = getelementptr inbounds %struct.doublecomplex, ptr %244, i32 0, i32 1
  store double %241, ptr %245, align 8, !tbaa !16
  br label %246

246:                                              ; preds = %201
  %247 = load i64, ptr %22, align 8, !tbaa !9
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %22, align 8, !tbaa !9
  br label %197, !llvm.loop !20

249:                                              ; preds = %197
  %250 = load i64, ptr %24, align 8, !tbaa !9
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  %252 = load i64, ptr %251, align 8, !tbaa !9
  %253 = add nsw i64 %250, %252
  %254 = load i64, ptr %23, align 8, !tbaa !9
  %255 = sub nsw i64 %253, %254
  %256 = add nsw i64 %255, 1
  store i64 %256, ptr %24, align 8, !tbaa !9
  br label %257

257:                                              ; preds = %249
  %258 = load i64, ptr %23, align 8, !tbaa !9
  %259 = add nsw i64 %258, 1
  store i64 %259, ptr %23, align 8, !tbaa !9
  br label %164, !llvm.loop !21

260:                                              ; preds = %164
  br label %261

261:                                              ; preds = %260, %160
  %262 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 89, ptr %262, align 1, !tbaa !11
  br label %263

263:                                              ; preds = %261, %57
  store i32 0, ptr %8, align 4
  store i32 1, ptr %28, align 4
  br label %264

264:                                              ; preds = %263, %36
  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 8, 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 16, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %265 = load i32, ptr %8, align 4
  ret i32 %265
}

; 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 @zlaqhp_(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 writeonly %6) local_unnamed_addr #0 {
  %8 = getelementptr inbounds i8, ptr %3, i64 -8
  %9 = getelementptr inbounds i8, ptr %2, i64 -16
  %10 = load i64, ptr %1, align 8, !tbaa !5
  %11 = icmp slt i64 %10, 1
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %7
  %13 = tail call double @dlamch_(ptr noundef nonnull @.str) #2
  %14 = tail call double @dlamch_(ptr noundef nonnull @.str.1) #2
  %15 = load double, ptr %4, align 8, !tbaa !9
  %16 = fcmp ult double %15, 1.000000e-01
  br i1 %16, label %23, label %17

17:                                               ; preds = %12
  %18 = fdiv double %13, %14
  %19 = fdiv double 1.000000e+00, %18
  %20 = load double, ptr %5, align 8, !tbaa !9
  %21 = fcmp ult double %20, %18
  %22 = fcmp ugt double %20, %19
  %or.cond = or i1 %21, %22
  br i1 %or.cond, label %23, label %.loopexit

23:                                               ; preds = %17, %12
  %24 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #2
  %.not = icmp eq i64 %24, 0
  %25 = load i64, ptr %1, align 8, !tbaa !5
  %.not106124 = icmp slt i64 %25, 1
  br i1 %.not, label %88, label %26

26:                                               ; preds = %23
  br i1 %.not106124, label %.loopexit, label %.lr.ph118.preheader

.lr.ph118.preheader:                              ; preds = %26
  %scevgep = getelementptr i8, ptr %2, i64 8
  br label %.lr.ph118

.lr.ph118:                                        ; preds = %.lr.ph118.preheader, %._crit_edge
  %scev.check.iv141 = phi ptr [ %2, %.lr.ph118.preheader ], [ %scevgep142, %._crit_edge ]
  %scev.check.iv136 = phi ptr [ %2, %.lr.ph118.preheader ], [ %scevgep137, %._crit_edge ]
  %scev.check.iv = phi ptr [ %scevgep, %.lr.ph118.preheader ], [ %scevgep135, %._crit_edge ]
  %indvar = phi i64 [ 0, %.lr.ph118.preheader ], [ %indvar.next, %._crit_edge ]
  %.0101116 = phi i64 [ 1, %.lr.ph118.preheader ], [ %80, %._crit_edge ]
  %.0102115 = phi i64 [ 1, %.lr.ph118.preheader ], [ %87, %._crit_edge ]
  %27 = shl i64 %indvar, 4
  %28 = add i64 %27, 32
  %29 = shl i64 %indvar, 3
  %scevgep143 = getelementptr i8, ptr %3, i64 %29
  %30 = shl i64 %indvar, 4
  %31 = add i64 %30, 16
  %32 = shl i64 %indvar, 4
  %33 = add i64 %32, 16
  %34 = add i64 %indvar, -1
  %35 = getelementptr inbounds double, ptr %8, i64 %.0102115
  %36 = load double, ptr %35, align 8, !tbaa !9
  %.not109.not112 = icmp ugt i64 %.0102115, 1
  br i1 %.not109.not112, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph118
  %37 = getelementptr %struct.doublecomplex, ptr %9, i64 %.0101116
  %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 %34, 4
  %38 = getelementptr i8, ptr %scev.check.iv, i64 %mul.result
  %39 = icmp ult ptr %38, %scev.check.iv
  %mul.result139 = shl i64 %34, 4
  %mul.overflow140 = icmp ugt i64 %34, 1152921504606846975
  %40 = getelementptr i8, ptr %scev.check.iv136, i64 %mul.result139
  %41 = icmp ult ptr %40, %scev.check.iv136
  %42 = or i1 %41, %mul.overflow140
  %43 = or i1 %39, %42
  br i1 %43, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %bound0 = icmp ult ptr %scev.check.iv136, %scevgep143
  %bound1 = icmp ugt ptr %scev.check.iv141, %3
  %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 %36, 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
  %44 = getelementptr double, ptr %3, i64 %index
  %wide.load = load <2 x double>, ptr %44, align 8, !tbaa !9, !alias.scope !11
  %45 = fmul <2 x double> %broadcast.splat, %wide.load
  %46 = getelementptr %struct.doublecomplex, ptr %37, i64 %offset.idx
  %47 = getelementptr i8, ptr %46, i64 -16
  %wide.vec = load <4 x double>, ptr %47, align 8, !tbaa !9
  %strided.vec = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec144 = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %48 = fmul <2 x double> %45, %strided.vec
  %49 = fmul <2 x double> %45, %strided.vec144
  %50 = getelementptr i8, ptr %46, i64 -16
  %interleaved.vec = shufflevector <2 x double> %48, <2 x double> %49, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec, ptr %50, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 2
  %51 = icmp eq i64 %index.next, %n.vec
  br i1 %51, 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
  %.0104113.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %vector.scevcheck ], [ 1, %.lr.ph ], [ %ind.end, %middle.block ]
  %52 = and i64 %.0102115, 1
  %lcmp.mod.not.not = icmp eq i64 %52, 0
  br i1 %lcmp.mod.not.not, label %scalar.ph.prol, label %scalar.ph.prol.loopexit

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %53 = getelementptr inbounds double, ptr %8, i64 %.0104113.ph
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fmul double %36, %54
  %56 = getelementptr %struct.doublecomplex, ptr %37, i64 %.0104113.ph
  %57 = getelementptr i8, ptr %56, i64 -16
  %58 = load <2 x double>, ptr %57, align 8, !tbaa !9
  %59 = insertelement <2 x double> poison, double %55, i64 0
  %60 = shufflevector <2 x double> %59, <2 x double> poison, <2 x i32> zeroinitializer
  %61 = fmul <2 x double> %60, %58
  store <2 x double> %61, ptr %57, align 8, !tbaa !9
  %62 = add nuw nsw i64 %.0104113.ph, 1
  br label %scalar.ph.prol.loopexit

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

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

scalar.ph:                                        ; preds = %scalar.ph, %scalar.ph.preheader.new
  %.0104113 = phi i64 [ %.0104113.unr, %scalar.ph.preheader.new ], [ %79, %scalar.ph ]
  %64 = getelementptr inbounds double, ptr %8, i64 %.0104113
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = fmul double %36, %65
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %.0104113
  %67 = load <2 x double>, ptr %gep, align 8, !tbaa !9
  %68 = insertelement <2 x double> poison, double %66, i64 0
  %69 = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> zeroinitializer
  %70 = fmul <2 x double> %69, %67
  store <2 x double> %70, ptr %gep, align 8, !tbaa !9
  %71 = getelementptr double, ptr %3, i64 %.0104113
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = fmul double %36, %72
  %74 = getelementptr %struct.doublecomplex, ptr %37, i64 %.0104113
  %75 = load <2 x double>, ptr %74, align 8, !tbaa !9
  %76 = insertelement <2 x double> poison, double %73, i64 0
  %77 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
  %78 = fmul <2 x double> %77, %75
  store <2 x double> %78, ptr %74, align 8, !tbaa !9
  %79 = add nuw nsw i64 %.0104113, 2
  %exitcond.not.1 = icmp eq i64 %79, %.0102115
  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, %.lr.ph118
  %80 = add nuw nsw i64 %.0101116, %.0102115
  %81 = fmul double %36, %36
  %82 = getelementptr %struct.doublecomplex, ptr %9, i64 %80
  %83 = getelementptr i8, ptr %82, i64 -16
  %84 = load double, ptr %83, align 8, !tbaa !19
  %85 = fmul double %81, %84
  store double %85, ptr %83, align 8, !tbaa !19
  %86 = getelementptr i8, ptr %82, i64 -8
  store double 0.000000e+00, ptr %86, align 8, !tbaa !21
  %87 = add nuw i64 %.0102115, 1
  %exitcond131.not = icmp eq i64 %.0102115, %25
  %indvar.next = add i64 %indvar, 1
  %scevgep135 = getelementptr i8, ptr %scev.check.iv, i64 %33
  %scevgep137 = getelementptr i8, ptr %scev.check.iv136, i64 %31
  %scevgep142 = getelementptr i8, ptr %scev.check.iv141, i64 %28
  br i1 %exitcond131.not, label %.loopexit, label %.lr.ph118, !llvm.loop !22

88:                                               ; preds = %23
  br i1 %.not106124, label %.loopexit, label %.lr.ph129

.lr.ph129:                                        ; preds = %88
  %89 = add nuw i64 %25, 1
  %90 = add nsw i64 %25, -2
  %scevgep148 = getelementptr i8, ptr %2, i64 24
  %91 = shl i64 %25, 4
  %scevgep154 = getelementptr i8, ptr %2, i64 16
  %scevgep161 = getelementptr i8, ptr %2, i64 %91
  %92 = add i64 %91, -16
  %93 = shl i64 %25, 3
  %scevgep165 = getelementptr i8, ptr %3, i64 %93
  %invariant.gep190 = getelementptr i8, ptr %3, i64 8
  br label %94

94:                                               ; preds = %.lr.ph129, %._crit_edge123
  %scev.check.iv162 = phi ptr [ %scevgep161, %.lr.ph129 ], [ %scevgep163, %._crit_edge123 ]
  %scev.check.iv155 = phi ptr [ %scevgep154, %.lr.ph129 ], [ %scevgep156, %._crit_edge123 ]
  %scev.check.iv149 = phi ptr [ %scevgep148, %.lr.ph129 ], [ %scevgep150, %._crit_edge123 ]
  %indvar146 = phi i64 [ 0, %.lr.ph129 ], [ %indvar.next147, %._crit_edge123 ]
  %.1103.neg127 = phi i64 [ -1, %.lr.ph129 ], [ %.1103.neg, %._crit_edge123 ]
  %.1126 = phi i64 [ 1, %.lr.ph129 ], [ %136, %._crit_edge123 ]
  %.1103125 = phi i64 [ 1, %.lr.ph129 ], [ %112, %._crit_edge123 ]
  %95 = xor i64 %indvar146, -1
  %96 = add i64 %25, %95
  %97 = shl i64 %indvar146, 4
  %98 = sub i64 %92, %97
  %99 = shl i64 %indvar146, 3
  %gep191 = getelementptr i8, ptr %invariant.gep190, i64 %99
  %100 = sub i64 %25, %indvar146
  %101 = shl i64 %100, 4
  %102 = sub i64 %25, %indvar146
  %103 = shl i64 %102, 4
  %104 = sub i64 %90, %indvar146
  %105 = getelementptr inbounds double, ptr %8, i64 %.1103125
  %106 = load double, ptr %105, align 8, !tbaa !9
  %107 = fmul double %106, %106
  %108 = getelementptr %struct.doublecomplex, ptr %9, i64 %.1126
  %109 = load double, ptr %108, align 8, !tbaa !19
  %110 = fmul double %107, %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 %.1103125, 1
  %.not107119.not = icmp slt i64 %.1103125, %25
  br i1 %.not107119.not, label %.lr.ph122, label %._crit_edge123

.lr.ph122:                                        ; preds = %94
  %113 = getelementptr %struct.doublecomplex, ptr %108, i64 %.1103.neg127
  %min.iters.check171 = icmp ult i64 %96, 10
  br i1 %min.iters.check171, label %scalar.ph170.preheader, label %vector.scevcheck145

vector.scevcheck145:                              ; preds = %.lr.ph122
  %mul.result152 = shl i64 %104, 4
  %114 = getelementptr i8, ptr %scev.check.iv149, i64 %mul.result152
  %115 = icmp ult ptr %114, %scev.check.iv149
  %mul.result158 = shl i64 %104, 4
  %mul.overflow159 = icmp ugt i64 %104, 1152921504606846975
  %116 = getelementptr i8, ptr %scev.check.iv155, i64 %mul.result158
  %117 = icmp ult ptr %116, %scev.check.iv155
  %118 = or i1 %117, %mul.overflow159
  %119 = or i1 %115, %118
  br i1 %119, label %scalar.ph170.preheader, label %vector.memcheck160

vector.memcheck160:                               ; preds = %vector.scevcheck145
  %bound0166 = icmp ult ptr %scev.check.iv155, %scevgep165
  %bound1167 = icmp ult ptr %gep191, %scev.check.iv162
  %found.conflict168 = and i1 %bound0166, %bound1167
  br i1 %found.conflict168, label %scalar.ph170.preheader, label %vector.ph172

vector.ph172:                                     ; preds = %vector.memcheck160
  %n.vec174 = and i64 %96, -2
  %ind.end175 = add i64 %112, %n.vec174
  %broadcast.splatinsert181 = insertelement <2 x double> poison, double %106, i64 0
  %broadcast.splat182 = shufflevector <2 x double> %broadcast.splatinsert181, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body177

vector.body177:                                   ; preds = %vector.body177, %vector.ph172
  %index178 = phi i64 [ 0, %vector.ph172 ], [ %index.next187, %vector.body177 ]
  %offset.idx179 = add i64 %112, %index178
  %120 = getelementptr inbounds double, ptr %8, i64 %offset.idx179
  %wide.load180 = load <2 x double>, ptr %120, align 8, !tbaa !9, !alias.scope !23
  %121 = fmul <2 x double> %broadcast.splat182, %wide.load180
  %122 = getelementptr %struct.doublecomplex, ptr %113, i64 %offset.idx179
  %wide.vec183 = load <4 x double>, ptr %122, align 8, !tbaa !9
  %strided.vec184 = shufflevector <4 x double> %wide.vec183, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec185 = shufflevector <4 x double> %wide.vec183, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %123 = fmul <2 x double> %121, %strided.vec184
  %124 = fmul <2 x double> %121, %strided.vec185
  %interleaved.vec186 = shufflevector <2 x double> %123, <2 x double> %124, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec186, ptr %122, align 8, !tbaa !9
  %index.next187 = add nuw i64 %index178, 2
  %125 = icmp eq i64 %index.next187, %n.vec174
  br i1 %125, label %middle.block169, label %vector.body177, !llvm.loop !26

middle.block169:                                  ; preds = %vector.body177
  %cmp.n188 = icmp eq i64 %96, %n.vec174
  br i1 %cmp.n188, label %._crit_edge123, label %scalar.ph170.preheader

scalar.ph170.preheader:                           ; preds = %middle.block169, %vector.memcheck160, %vector.scevcheck145, %.lr.ph122
  %.1105120.ph = phi i64 [ %112, %vector.memcheck160 ], [ %112, %vector.scevcheck145 ], [ %112, %.lr.ph122 ], [ %ind.end175, %middle.block169 ]
  br label %scalar.ph170

scalar.ph170:                                     ; preds = %scalar.ph170.preheader, %scalar.ph170
  %.1105120 = phi i64 [ %134, %scalar.ph170 ], [ %.1105120.ph, %scalar.ph170.preheader ]
  %126 = getelementptr inbounds double, ptr %8, i64 %.1105120
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = fmul double %106, %127
  %129 = getelementptr %struct.doublecomplex, ptr %113, i64 %.1105120
  %130 = load <2 x double>, ptr %129, align 8, !tbaa !9
  %131 = insertelement <2 x double> poison, double %128, i64 0
  %132 = shufflevector <2 x double> %131, <2 x double> poison, <2 x i32> zeroinitializer
  %133 = fmul <2 x double> %132, %130
  store <2 x double> %133, ptr %129, align 8, !tbaa !9
  %134 = add nuw nsw i64 %.1105120, 1
  %.not107.not = icmp slt i64 %.1105120, %25
  br i1 %.not107.not, label %scalar.ph170, label %._crit_edge123, !llvm.loop !27

._crit_edge123:                                   ; preds = %scalar.ph170, %middle.block169, %94
  %135 = add i64 %89, %.1103.neg127
  %136 = add i64 %135, %.1126
  %.1103.neg = xor i64 %.1103125, -1
  %exitcond132.not = icmp eq i64 %.1103125, %25
  %indvar.next147 = add i64 %indvar146, 1
  %scevgep150 = getelementptr i8, ptr %scev.check.iv149, i64 %103
  %scevgep156 = getelementptr i8, ptr %scev.check.iv155, i64 %101
  %scevgep163 = getelementptr i8, ptr %scev.check.iv162, i64 %98
  br i1 %exitcond132.not, label %.loopexit, label %94, !llvm.loop !28

.loopexit:                                        ; preds = %._crit_edge, %._crit_edge123, %26, %88, %17, %7
  %storemerge110 = phi i8 [ 78, %7 ], [ 78, %17 ], [ 89, %88 ], [ 89, %26 ], [ 89, %._crit_edge123 ], [ 89, %._crit_edge ]
  store i8 %storemerge110, ptr %6, 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 = !{!24}
!24 = distinct !{!24, !25}
!25 = distinct !{!25, !"LVerDomain"}
!26 = distinct !{!26, !15, !16, !17}
!27 = distinct !{!27, !15, !16}
!28 = distinct !{!28, !15}
!29 = !{!7, !7, i64 0}


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