; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/LAPACKE/src (lapacke_zgedmd)

; 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"

@.str = external hidden unnamed_addr constant [15 x i8], align 1

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

69:                                               ; preds = %27
  %70 = load i32, ptr %29, align 4, !tbaa !5
  %71 = icmp ne i32 %70, 101
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef -1)
  store i32 -1, ptr %28, align 4
  store i32 1, ptr %66, align 4
  br label %238

73:                                               ; preds = %69, %27
  %74 = call i32 @LAPACKE_get_nancheck()
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %131

76:                                               ; preds = %73
  %77 = load i32, ptr %29, align 4, !tbaa !5
  %78 = load i32, ptr %35, align 4, !tbaa !5
  %79 = load i32, ptr %36, align 4, !tbaa !5
  %80 = load ptr, ptr %37, align 8, !tbaa !10
  %81 = load i32, ptr %38, align 4, !tbaa !5
  %82 = call i32 @LAPACKE_zge_nancheck(i32 noundef %77, i32 noundef %78, i32 noundef %79, ptr noundef %80, i32 noundef %81)
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %76
  store i32 -8, ptr %28, align 4
  store i32 1, ptr %66, align 4
  br label %238

85:                                               ; preds = %76
  %86 = load i32, ptr %29, align 4, !tbaa !5
  %87 = load i32, ptr %35, align 4, !tbaa !5
  %88 = load i32, ptr %36, align 4, !tbaa !5
  %89 = load ptr, ptr %39, align 8, !tbaa !10
  %90 = load i32, ptr %40, align 4, !tbaa !5
  %91 = call i32 @LAPACKE_zge_nancheck(i32 noundef %86, i32 noundef %87, i32 noundef %88, ptr noundef %89, i32 noundef %90)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %85
  store i32 -10, ptr %28, align 4
  store i32 1, ptr %66, align 4
  br label %238

94:                                               ; preds = %85
  %95 = load i32, ptr %29, align 4, !tbaa !5
  %96 = load i32, ptr %35, align 4, !tbaa !5
  %97 = load i32, ptr %36, align 4, !tbaa !5
  %98 = load ptr, ptr %45, align 8, !tbaa !10
  %99 = load i32, ptr %46, align 4, !tbaa !5
  %100 = call i32 @LAPACKE_zge_nancheck(i32 noundef %95, i32 noundef %96, i32 noundef %97, ptr noundef %98, i32 noundef %99)
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %94
  store i32 -15, ptr %28, align 4
  store i32 1, ptr %66, align 4
  br label %238

103:                                              ; preds = %94
  %104 = load i32, ptr %29, align 4, !tbaa !5
  %105 = load i32, ptr %35, align 4, !tbaa !5
  %106 = load i32, ptr %36, align 4, !tbaa !5
  %107 = load ptr, ptr %48, align 8, !tbaa !10
  %108 = load i32, ptr %49, align 4, !tbaa !5
  %109 = call i32 @LAPACKE_zge_nancheck(i32 noundef %104, i32 noundef %105, i32 noundef %106, ptr noundef %107, i32 noundef %108)
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %112

111:                                              ; preds = %103
  store i32 -18, ptr %28, align 4
  store i32 1, ptr %66, align 4
  br label %238

112:                                              ; preds = %103
  %113 = load i32, ptr %29, align 4, !tbaa !5
  %114 = load i32, ptr %35, align 4, !tbaa !5
  %115 = load i32, ptr %36, align 4, !tbaa !5
  %116 = load ptr, ptr %54, align 8, !tbaa !10
  %117 = load i32, ptr %55, align 4, !tbaa !5
  %118 = call i32 @LAPACKE_zge_nancheck(i32 noundef %113, i32 noundef %114, i32 noundef %115, ptr noundef %116, i32 noundef %117)
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %112
  store i32 -20, ptr %28, align 4
  store i32 1, ptr %66, align 4
  br label %238

121:                                              ; preds = %112
  %122 = load i32, ptr %29, align 4, !tbaa !5
  %123 = load i32, ptr %35, align 4, !tbaa !5
  %124 = load i32, ptr %36, align 4, !tbaa !5
  %125 = load ptr, ptr %52, align 8, !tbaa !10
  %126 = load i32, ptr %53, align 4, !tbaa !5
  %127 = call i32 @LAPACKE_zge_nancheck(i32 noundef %122, i32 noundef %123, i32 noundef %124, ptr noundef %125, i32 noundef %126)
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %121
  store i32 -22, ptr %28, align 4
  store i32 1, ptr %66, align 4
  br label %238

130:                                              ; preds = %121
  br label %131

131:                                              ; preds = %130, %73
  %132 = load i32, ptr %29, align 4, !tbaa !5
  %133 = load i8, ptr %30, align 1, !tbaa !9
  %134 = load i8, ptr %31, align 1, !tbaa !9
  %135 = load i8, ptr %32, align 1, !tbaa !9
  %136 = load i8, ptr %33, align 1, !tbaa !9
  %137 = load i32, ptr %34, align 4, !tbaa !5
  %138 = load i32, ptr %35, align 4, !tbaa !5
  %139 = load i32, ptr %36, align 4, !tbaa !5
  %140 = load ptr, ptr %37, align 8, !tbaa !10
  %141 = load i32, ptr %38, align 4, !tbaa !5
  %142 = load ptr, ptr %39, align 8, !tbaa !10
  %143 = load i32, ptr %40, align 4, !tbaa !5
  %144 = load i32, ptr %41, align 4, !tbaa !5
  %145 = load ptr, ptr %42, align 8, !tbaa !10
  %146 = load i32, ptr %43, align 4, !tbaa !5
  %147 = load ptr, ptr %44, align 8, !tbaa !10
  %148 = load ptr, ptr %45, align 8, !tbaa !10
  %149 = load i32, ptr %46, align 4, !tbaa !5
  %150 = load ptr, ptr %47, align 8, !tbaa !10
  %151 = load ptr, ptr %48, align 8, !tbaa !10
  %152 = load i32, ptr %49, align 4, !tbaa !5
  %153 = load ptr, ptr %52, align 8, !tbaa !10
  %154 = load i32, ptr %53, align 4, !tbaa !5
  %155 = load ptr, ptr %54, align 8, !tbaa !10
  %156 = load i32, ptr %55, align 4, !tbaa !5
  %157 = load i32, ptr %59, align 4, !tbaa !5
  %158 = load i32, ptr %57, align 4, !tbaa !5
  %159 = load i32, ptr %58, align 4, !tbaa !5
  %160 = call i32 @LAPACKE_zgedmd_work(i32 noundef %132, i8 noundef signext %133, i8 noundef signext %134, i8 noundef signext %135, i8 noundef signext %136, i32 noundef %137, i32 noundef %138, i32 noundef %139, ptr noundef %140, i32 noundef %141, ptr noundef %142, i32 noundef %143, i32 noundef %144, ptr noundef %145, i32 noundef %146, ptr noundef %147, ptr noundef %148, i32 noundef %149, ptr noundef %150, ptr noundef %151, i32 noundef %152, ptr noundef %153, i32 noundef %154, ptr noundef %155, i32 noundef %156, ptr noundef %65, i32 noundef %157, ptr noundef %63, i32 noundef %158, ptr noundef %64, i32 noundef %159)
  store i32 %160, ptr %56, align 4, !tbaa !5
  %161 = load i32, ptr %56, align 4, !tbaa !5
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %131
  br label %231

164:                                              ; preds = %131
  %165 = load double, ptr %63, align 8, !tbaa !12
  %166 = fptosi double %165 to i32
  store i32 %166, ptr %57, align 4, !tbaa !5
  %167 = load i32, ptr %64, align 4, !tbaa !5
  store i32 %167, ptr %58, align 4, !tbaa !5
  %168 = load double, ptr %65, align 8, !tbaa !12
  %169 = fptosi double %168 to i32
  store i32 %169, ptr %59, align 4, !tbaa !5
  %170 = load i32, ptr %59, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = mul i64 16, %171
  %173 = call noalias ptr @malloc(i64 noundef %172) #6
  store ptr %173, ptr %60, align 8, !tbaa !10
  %174 = load ptr, ptr %60, align 8, !tbaa !10
  %175 = icmp eq ptr %174, null
  br i1 %175, label %176, label %177

176:                                              ; preds = %164
  store i32 -1010, ptr %56, align 4, !tbaa !5
  br label %231

177:                                              ; preds = %164
  %178 = load i32, ptr %57, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = mul i64 8, %179
  %181 = call noalias ptr @malloc(i64 noundef %180) #6
  store ptr %181, ptr %61, align 8, !tbaa !10
  %182 = load ptr, ptr %61, align 8, !tbaa !10
  %183 = icmp eq ptr %182, null
  br i1 %183, label %184, label %185

184:                                              ; preds = %177
  store i32 -1010, ptr %56, align 4, !tbaa !5
  br label %229

185:                                              ; preds = %177
  %186 = load i32, ptr %58, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = mul i64 4, %187
  %189 = call noalias ptr @malloc(i64 noundef %188) #6
  store ptr %189, ptr %62, align 8, !tbaa !10
  %190 = load ptr, ptr %62, align 8, !tbaa !10
  %191 = icmp eq ptr %190, null
  br i1 %191, label %192, label %193

192:                                              ; preds = %185
  store i32 -1010, ptr %56, align 4, !tbaa !5
  br label %227

193:                                              ; preds = %185
  %194 = load i32, ptr %29, align 4, !tbaa !5
  %195 = load i8, ptr %30, align 1, !tbaa !9
  %196 = load i8, ptr %31, align 1, !tbaa !9
  %197 = load i8, ptr %32, align 1, !tbaa !9
  %198 = load i8, ptr %33, align 1, !tbaa !9
  %199 = load i32, ptr %34, align 4, !tbaa !5
  %200 = load i32, ptr %35, align 4, !tbaa !5
  %201 = load i32, ptr %36, align 4, !tbaa !5
  %202 = load ptr, ptr %37, align 8, !tbaa !10
  %203 = load i32, ptr %38, align 4, !tbaa !5
  %204 = load ptr, ptr %39, align 8, !tbaa !10
  %205 = load i32, ptr %40, align 4, !tbaa !5
  %206 = load i32, ptr %41, align 4, !tbaa !5
  %207 = load ptr, ptr %42, align 8, !tbaa !10
  %208 = load i32, ptr %43, align 4, !tbaa !5
  %209 = load ptr, ptr %44, align 8, !tbaa !10
  %210 = load ptr, ptr %45, align 8, !tbaa !10
  %211 = load i32, ptr %46, align 4, !tbaa !5
  %212 = load ptr, ptr %47, align 8, !tbaa !10
  %213 = load ptr, ptr %48, align 8, !tbaa !10
  %214 = load i32, ptr %49, align 4, !tbaa !5
  %215 = load ptr, ptr %52, align 8, !tbaa !10
  %216 = load i32, ptr %53, align 4, !tbaa !5
  %217 = load ptr, ptr %54, align 8, !tbaa !10
  %218 = load i32, ptr %55, align 4, !tbaa !5
  %219 = load ptr, ptr %60, align 8, !tbaa !10
  %220 = load i32, ptr %59, align 4, !tbaa !5
  %221 = load ptr, ptr %61, align 8, !tbaa !10
  %222 = load i32, ptr %57, align 4, !tbaa !5
  %223 = load ptr, ptr %62, align 8, !tbaa !10
  %224 = load i32, ptr %58, align 4, !tbaa !5
  %225 = call i32 @LAPACKE_zgedmd_work(i32 noundef %194, i8 noundef signext %195, i8 noundef signext %196, i8 noundef signext %197, i8 noundef signext %198, i32 noundef %199, i32 noundef %200, i32 noundef %201, ptr noundef %202, i32 noundef %203, ptr noundef %204, i32 noundef %205, i32 noundef %206, ptr noundef %207, i32 noundef %208, ptr noundef %209, ptr noundef %210, i32 noundef %211, ptr noundef %212, ptr noundef %213, i32 noundef %214, ptr noundef %215, i32 noundef %216, ptr noundef %217, i32 noundef %218, ptr noundef %219, i32 noundef %220, ptr noundef %221, i32 noundef %222, ptr noundef %223, i32 noundef %224)
  store i32 %225, ptr %56, align 4, !tbaa !5
  %226 = load ptr, ptr %62, align 8, !tbaa !10
  call void @free(ptr noundef %226) #5
  br label %227

227:                                              ; preds = %193, %192
  %228 = load ptr, ptr %61, align 8, !tbaa !10
  call void @free(ptr noundef %228) #5
  br label %229

229:                                              ; preds = %227, %184
  %230 = load ptr, ptr %60, align 8, !tbaa !10
  call void @free(ptr noundef %230) #5
  br label %231

231:                                              ; preds = %229, %176, %163
  %232 = load i32, ptr %56, align 4, !tbaa !5
  %233 = icmp eq i32 %232, -1010
  br i1 %233, label %234, label %236

234:                                              ; preds = %231
  %235 = load i32, ptr %56, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %235)
  br label %236

236:                                              ; preds = %234, %231
  %237 = load i32, ptr %56, align 4, !tbaa !5
  store i32 %237, ptr %28, align 4
  store i32 1, ptr %66, align 4
  br label %238

238:                                              ; preds = %236, %129, %120, %111, %102, %93, %84, %72
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #5
  %239 = load i32, ptr %28, align 4
  ret i32 %239
}

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

declare void @LAPACKE_xerbla(ptr noundef, i32 noundef) #2

declare i32 @LAPACKE_get_nancheck() #2

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

declare i32 @LAPACKE_zgedmd_work(i32 noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; 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 allocsize(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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, 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"

@.str = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @LAPACKE_zgedmd(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef %16, i32 noundef %17, ptr noundef %18, ptr noundef %19, i32 noundef %20, ptr nocapture noundef readnone %21, i32 noundef %22, ptr noundef %23, i32 noundef %24, ptr noundef %25, i32 noundef %26) local_unnamed_addr #0 {
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca { double, double }, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #5
  %31 = add i32 %0, -103
  %or.cond = icmp ult i32 %31, -2
  br i1 %or.cond, label %32, label %33

32:                                               ; preds = %27
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1) #5
  br label %75

33:                                               ; preds = %27
  %34 = tail call i32 @LAPACKE_get_nancheck() #5
  %.not = icmp eq i32 %34, 0
  br i1 %.not, label %47, label %35

35:                                               ; preds = %33
  %36 = tail call i32 @LAPACKE_zge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9) #5
  %.not110 = icmp eq i32 %36, 0
  br i1 %.not110, label %37, label %75

37:                                               ; preds = %35
  %38 = tail call i32 @LAPACKE_zge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %10, i32 noundef %11) #5
  %.not111 = icmp eq i32 %38, 0
  br i1 %.not111, label %39, label %75

39:                                               ; preds = %37
  %40 = tail call i32 @LAPACKE_zge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %16, i32 noundef %17) #5
  %.not112 = icmp eq i32 %40, 0
  br i1 %.not112, label %41, label %75

41:                                               ; preds = %39
  %42 = tail call i32 @LAPACKE_zge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %19, i32 noundef %20) #5
  %.not113 = icmp eq i32 %42, 0
  br i1 %.not113, label %43, label %75

43:                                               ; preds = %41
  %44 = tail call i32 @LAPACKE_zge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %25, i32 noundef %26) #5
  %.not114 = icmp eq i32 %44, 0
  br i1 %.not114, label %45, label %75

45:                                               ; preds = %43
  %46 = tail call i32 @LAPACKE_zge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %23, i32 noundef %24) #5
  %.not115 = icmp eq i32 %46, 0
  br i1 %.not115, label %47, label %75

47:                                               ; preds = %45, %33
  %48 = call i32 @LAPACKE_zgedmd_work(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef %16, i32 noundef %17, ptr noundef %18, ptr noundef %19, i32 noundef %20, ptr noundef %23, i32 noundef %24, ptr noundef %25, i32 noundef %26, ptr noundef nonnull %30, i32 noundef -1, ptr noundef nonnull %28, i32 noundef -1, ptr noundef nonnull %29, i32 noundef -1) #5
  %.not116 = icmp eq i32 %48, 0
  br i1 %.not116, label %49, label %73

49:                                               ; preds = %47
  %50 = load double, ptr %28, align 8, !tbaa !5
  %51 = fptosi double %50 to i32
  %52 = load i32, ptr %29, align 4, !tbaa !9
  %53 = load double, ptr %30, align 8, !tbaa !5
  %54 = fptosi double %53 to i32
  %55 = sext i32 %54 to i64
  %56 = shl nsw i64 %55, 4
  %57 = call noalias ptr @malloc(i64 noundef %56) #6
  %58 = icmp eq ptr %57, null
  br i1 %58, label %.thread, label %59

59:                                               ; preds = %49
  %60 = sext i32 %51 to i64
  %61 = shl nsw i64 %60, 3
  %62 = call noalias ptr @malloc(i64 noundef %61) #6
  %63 = icmp eq ptr %62, null
  br i1 %63, label %72, label %64

64:                                               ; preds = %59
  %65 = sext i32 %52 to i64
  %66 = shl nsw i64 %65, 2
  %67 = call noalias ptr @malloc(i64 noundef %66) #6
  %68 = icmp eq ptr %67, null
  br i1 %68, label %71, label %69

69:                                               ; preds = %64
  %70 = call i32 @LAPACKE_zgedmd_work(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef %16, i32 noundef %17, ptr noundef %18, ptr noundef %19, i32 noundef %20, ptr noundef %23, i32 noundef %24, ptr noundef %25, i32 noundef %26, ptr noundef nonnull %57, i32 noundef %54, ptr noundef nonnull %62, i32 noundef %51, ptr noundef nonnull %67, i32 noundef %52) #5
  call void @free(ptr noundef nonnull %67) #5
  br label %71

71:                                               ; preds = %64, %69
  %.0 = phi i32 [ %70, %69 ], [ -1010, %64 ]
  call void @free(ptr noundef nonnull %62) #5
  br label %72

72:                                               ; preds = %59, %71
  %.1 = phi i32 [ %.0, %71 ], [ -1010, %59 ]
  call void @free(ptr noundef nonnull %57) #5
  br label %73

73:                                               ; preds = %47, %72
  %.2 = phi i32 [ %48, %47 ], [ %.1, %72 ]
  %74 = icmp eq i32 %.2, -1010
  br i1 %74, label %.thread, label %75

.thread:                                          ; preds = %49, %73
  call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1010) #5
  br label %75

75:                                               ; preds = %73, %.thread, %45, %43, %41, %39, %37, %35, %32
  %.0105 = phi i32 [ -1, %32 ], [ -8, %35 ], [ -10, %37 ], [ -15, %39 ], [ -18, %41 ], [ -20, %43 ], [ -22, %45 ], [ -1010, %.thread ], [ %.2, %73 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #5
  ret i32 %.0105
}

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

declare void @LAPACKE_xerbla(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @LAPACKE_get_nancheck() local_unnamed_addr #2

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

declare i32 @LAPACKE_zgedmd_work(i32 noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress 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 = { 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 allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass