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

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

65:                                               ; preds = %25
  %66 = load i32, ptr %27, align 4, !tbaa !5
  %67 = icmp ne i32 %66, 101
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef -1)
  store i32 -1, ptr %26, align 4
  store i32 1, ptr %62, align 4
  br label %234

69:                                               ; preds = %65, %25
  %70 = call i32 @LAPACKE_get_nancheck()
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %127

72:                                               ; preds = %69
  %73 = load i32, ptr %27, align 4, !tbaa !5
  %74 = load i32, ptr %33, align 4, !tbaa !5
  %75 = load i32, ptr %34, align 4, !tbaa !5
  %76 = load ptr, ptr %35, align 8, !tbaa !10
  %77 = load i32, ptr %36, align 4, !tbaa !5
  %78 = call i32 @LAPACKE_cge_nancheck(i32 noundef %73, i32 noundef %74, i32 noundef %75, ptr noundef %76, i32 noundef %77)
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %72
  store i32 -8, ptr %26, align 4
  store i32 1, ptr %62, align 4
  br label %234

81:                                               ; preds = %72
  %82 = load i32, ptr %27, align 4, !tbaa !5
  %83 = load i32, ptr %33, align 4, !tbaa !5
  %84 = load i32, ptr %34, align 4, !tbaa !5
  %85 = load ptr, ptr %37, align 8, !tbaa !10
  %86 = load i32, ptr %38, align 4, !tbaa !5
  %87 = call i32 @LAPACKE_cge_nancheck(i32 noundef %82, i32 noundef %83, i32 noundef %84, ptr noundef %85, i32 noundef %86)
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %81
  store i32 -10, ptr %26, align 4
  store i32 1, ptr %62, align 4
  br label %234

90:                                               ; preds = %81
  %91 = load i32, ptr %27, align 4, !tbaa !5
  %92 = load i32, ptr %33, align 4, !tbaa !5
  %93 = load i32, ptr %34, align 4, !tbaa !5
  %94 = load ptr, ptr %43, align 8, !tbaa !10
  %95 = load i32, ptr %44, align 4, !tbaa !5
  %96 = call i32 @LAPACKE_cge_nancheck(i32 noundef %91, i32 noundef %92, i32 noundef %93, ptr noundef %94, i32 noundef %95)
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %90
  store i32 -15, ptr %26, align 4
  store i32 1, ptr %62, align 4
  br label %234

99:                                               ; preds = %90
  %100 = load i32, ptr %27, align 4, !tbaa !5
  %101 = load i32, ptr %33, align 4, !tbaa !5
  %102 = load i32, ptr %34, align 4, !tbaa !5
  %103 = load ptr, ptr %46, align 8, !tbaa !10
  %104 = load i32, ptr %47, align 4, !tbaa !5
  %105 = call i32 @LAPACKE_cge_nancheck(i32 noundef %100, i32 noundef %101, i32 noundef %102, ptr noundef %103, i32 noundef %104)
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %99
  store i32 -18, ptr %26, align 4
  store i32 1, ptr %62, align 4
  br label %234

108:                                              ; preds = %99
  %109 = load i32, ptr %27, align 4, !tbaa !5
  %110 = load i32, ptr %33, align 4, !tbaa !5
  %111 = load i32, ptr %34, align 4, !tbaa !5
  %112 = load ptr, ptr %48, align 8, !tbaa !10
  %113 = load i32, ptr %49, align 4, !tbaa !5
  %114 = call i32 @LAPACKE_cge_nancheck(i32 noundef %109, i32 noundef %110, i32 noundef %111, ptr noundef %112, i32 noundef %113)
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %108
  store i32 -20, ptr %26, align 4
  store i32 1, ptr %62, align 4
  br label %234

117:                                              ; preds = %108
  %118 = load i32, ptr %27, align 4, !tbaa !5
  %119 = load i32, ptr %33, align 4, !tbaa !5
  %120 = load i32, ptr %34, align 4, !tbaa !5
  %121 = load ptr, ptr %50, align 8, !tbaa !10
  %122 = load i32, ptr %51, align 4, !tbaa !5
  %123 = call i32 @LAPACKE_cge_nancheck(i32 noundef %118, i32 noundef %119, i32 noundef %120, ptr noundef %121, i32 noundef %122)
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %126

125:                                              ; preds = %117
  store i32 -22, ptr %26, align 4
  store i32 1, ptr %62, align 4
  br label %234

126:                                              ; preds = %117
  br label %127

127:                                              ; preds = %126, %69
  %128 = load i32, ptr %27, align 4, !tbaa !5
  %129 = load i8, ptr %28, align 1, !tbaa !9
  %130 = load i8, ptr %29, align 1, !tbaa !9
  %131 = load i8, ptr %30, align 1, !tbaa !9
  %132 = load i8, ptr %31, align 1, !tbaa !9
  %133 = load i32, ptr %32, align 4, !tbaa !5
  %134 = load i32, ptr %33, align 4, !tbaa !5
  %135 = load i32, ptr %34, align 4, !tbaa !5
  %136 = load ptr, ptr %35, align 8, !tbaa !10
  %137 = load i32, ptr %36, align 4, !tbaa !5
  %138 = load ptr, ptr %37, align 8, !tbaa !10
  %139 = load i32, ptr %38, align 4, !tbaa !5
  %140 = load i32, ptr %39, align 4, !tbaa !5
  %141 = load ptr, ptr %40, align 8, !tbaa !10
  %142 = load i32, ptr %41, align 4, !tbaa !5
  %143 = load ptr, ptr %42, align 8, !tbaa !10
  %144 = load ptr, ptr %43, align 8, !tbaa !10
  %145 = load i32, ptr %44, align 4, !tbaa !5
  %146 = load ptr, ptr %45, align 8, !tbaa !10
  %147 = load ptr, ptr %46, align 8, !tbaa !10
  %148 = load i32, ptr %47, align 4, !tbaa !5
  %149 = load ptr, ptr %48, align 8, !tbaa !10
  %150 = load i32, ptr %49, align 4, !tbaa !5
  %151 = load ptr, ptr %50, align 8, !tbaa !10
  %152 = load i32, ptr %51, align 4, !tbaa !5
  %153 = load i32, ptr %55, align 4, !tbaa !5
  %154 = load i32, ptr %53, align 4, !tbaa !5
  %155 = load i32, ptr %54, align 4, !tbaa !5
  %156 = call i32 @LAPACKE_cgedmd_work(i32 noundef %128, i8 noundef signext %129, i8 noundef signext %130, i8 noundef signext %131, i8 noundef signext %132, i32 noundef %133, i32 noundef %134, i32 noundef %135, ptr noundef %136, i32 noundef %137, ptr noundef %138, i32 noundef %139, i32 noundef %140, ptr noundef %141, i32 noundef %142, ptr noundef %143, ptr noundef %144, i32 noundef %145, ptr noundef %146, ptr noundef %147, i32 noundef %148, ptr noundef %149, i32 noundef %150, ptr noundef %151, i32 noundef %152, ptr noundef %59, i32 noundef %153, ptr noundef %60, i32 noundef %154, ptr noundef %61, i32 noundef %155)
  store i32 %156, ptr %52, align 4, !tbaa !5
  %157 = load i32, ptr %52, align 4, !tbaa !5
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %127
  br label %227

160:                                              ; preds = %127
  %161 = load float, ptr %59, align 4, !tbaa !12
  %162 = fptosi float %161 to i32
  store i32 %162, ptr %55, align 4, !tbaa !5
  %163 = load float, ptr %60, align 4, !tbaa !12
  %164 = fptosi float %163 to i32
  store i32 %164, ptr %53, align 4, !tbaa !5
  %165 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %165, ptr %54, align 4, !tbaa !5
  %166 = load i32, ptr %55, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = mul i64 8, %167
  %169 = call noalias ptr @malloc(i64 noundef %168) #6
  store ptr %169, ptr %56, align 8, !tbaa !10
  %170 = load ptr, ptr %56, align 8, !tbaa !10
  %171 = icmp eq ptr %170, null
  br i1 %171, label %172, label %173

172:                                              ; preds = %160
  store i32 -1010, ptr %52, align 4, !tbaa !5
  br label %227

173:                                              ; preds = %160
  %174 = load i32, ptr %53, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = mul i64 4, %175
  %177 = call noalias ptr @malloc(i64 noundef %176) #6
  store ptr %177, ptr %57, align 8, !tbaa !10
  %178 = load ptr, ptr %57, align 8, !tbaa !10
  %179 = icmp eq ptr %178, null
  br i1 %179, label %180, label %181

180:                                              ; preds = %173
  store i32 -1010, ptr %52, align 4, !tbaa !5
  br label %225

181:                                              ; preds = %173
  %182 = load i32, ptr %54, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = mul i64 4, %183
  %185 = call noalias ptr @malloc(i64 noundef %184) #6
  store ptr %185, ptr %58, align 8, !tbaa !10
  %186 = load ptr, ptr %58, align 8, !tbaa !10
  %187 = icmp eq ptr %186, null
  br i1 %187, label %188, label %189

188:                                              ; preds = %181
  store i32 -1010, ptr %52, align 4, !tbaa !5
  br label %223

189:                                              ; preds = %181
  %190 = load i32, ptr %27, align 4, !tbaa !5
  %191 = load i8, ptr %28, align 1, !tbaa !9
  %192 = load i8, ptr %29, align 1, !tbaa !9
  %193 = load i8, ptr %30, align 1, !tbaa !9
  %194 = load i8, ptr %31, align 1, !tbaa !9
  %195 = load i32, ptr %32, align 4, !tbaa !5
  %196 = load i32, ptr %33, align 4, !tbaa !5
  %197 = load i32, ptr %34, align 4, !tbaa !5
  %198 = load ptr, ptr %35, align 8, !tbaa !10
  %199 = load i32, ptr %36, align 4, !tbaa !5
  %200 = load ptr, ptr %37, align 8, !tbaa !10
  %201 = load i32, ptr %38, align 4, !tbaa !5
  %202 = load i32, ptr %39, align 4, !tbaa !5
  %203 = load ptr, ptr %40, align 8, !tbaa !10
  %204 = load i32, ptr %41, align 4, !tbaa !5
  %205 = load ptr, ptr %42, align 8, !tbaa !10
  %206 = load ptr, ptr %43, align 8, !tbaa !10
  %207 = load i32, ptr %44, align 4, !tbaa !5
  %208 = load ptr, ptr %45, align 8, !tbaa !10
  %209 = load ptr, ptr %46, align 8, !tbaa !10
  %210 = load i32, ptr %47, align 4, !tbaa !5
  %211 = load ptr, ptr %48, align 8, !tbaa !10
  %212 = load i32, ptr %49, align 4, !tbaa !5
  %213 = load ptr, ptr %50, align 8, !tbaa !10
  %214 = load i32, ptr %51, align 4, !tbaa !5
  %215 = load ptr, ptr %56, align 8, !tbaa !10
  %216 = load i32, ptr %55, align 4, !tbaa !5
  %217 = load ptr, ptr %57, align 8, !tbaa !10
  %218 = load i32, ptr %53, align 4, !tbaa !5
  %219 = load ptr, ptr %58, align 8, !tbaa !10
  %220 = load i32, ptr %54, align 4, !tbaa !5
  %221 = call i32 @LAPACKE_cgedmd_work(i32 noundef %190, i8 noundef signext %191, i8 noundef signext %192, i8 noundef signext %193, i8 noundef signext %194, i32 noundef %195, i32 noundef %196, i32 noundef %197, ptr noundef %198, i32 noundef %199, ptr noundef %200, i32 noundef %201, i32 noundef %202, ptr noundef %203, i32 noundef %204, ptr noundef %205, ptr noundef %206, i32 noundef %207, ptr noundef %208, ptr noundef %209, i32 noundef %210, ptr noundef %211, i32 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)
  store i32 %221, ptr %52, align 4, !tbaa !5
  %222 = load ptr, ptr %58, align 8, !tbaa !10
  call void @free(ptr noundef %222) #5
  br label %223

223:                                              ; preds = %189, %188
  %224 = load ptr, ptr %57, align 8, !tbaa !10
  call void @free(ptr noundef %224) #5
  br label %225

225:                                              ; preds = %223, %180
  %226 = load ptr, ptr %56, align 8, !tbaa !10
  call void @free(ptr noundef %226) #5
  br label %227

227:                                              ; preds = %225, %172, %159
  %228 = load i32, ptr %52, align 4, !tbaa !5
  %229 = icmp eq i32 %228, -1010
  br i1 %229, label %230, label %232

230:                                              ; preds = %227
  %231 = load i32, ptr %52, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %231)
  br label %232

232:                                              ; preds = %230, %227
  %233 = load i32, ptr %52, align 4, !tbaa !5
  store i32 %233, ptr %26, align 4
  store i32 1, ptr %62, align 4
  br label %234

234:                                              ; preds = %232, %125, %116, %107, %98, %89, %80, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #5
  %235 = load i32, ptr %26, align 4
  ret i32 %235
}

; 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_cge_nancheck(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2

declare i32 @LAPACKE_cgedmd_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 = !{!"float", !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_cgedmd(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) local_unnamed_addr #0 {
  %26 = alloca { float, float }, align 4
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #5
  %29 = add i32 %0, -103
  %or.cond = icmp ult i32 %29, -2
  br i1 %or.cond, label %30, label %31

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

31:                                               ; preds = %25
  %32 = tail call i32 @LAPACKE_get_nancheck() #5
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %45, label %33

33:                                               ; preds = %31
  %34 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9) #5
  %.not110 = icmp eq i32 %34, 0
  br i1 %.not110, label %35, label %73

35:                                               ; preds = %33
  %36 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %10, i32 noundef %11) #5
  %.not111 = icmp eq i32 %36, 0
  br i1 %.not111, label %37, label %73

37:                                               ; preds = %35
  %38 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %16, i32 noundef %17) #5
  %.not112 = icmp eq i32 %38, 0
  br i1 %.not112, label %39, label %73

39:                                               ; preds = %37
  %40 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %19, i32 noundef %20) #5
  %.not113 = icmp eq i32 %40, 0
  br i1 %.not113, label %41, label %73

41:                                               ; preds = %39
  %42 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %21, i32 noundef %22) #5
  %.not114 = icmp eq i32 %42, 0
  br i1 %.not114, label %43, label %73

43:                                               ; preds = %41
  %44 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %23, i32 noundef %24) #5
  %.not115 = icmp eq i32 %44, 0
  br i1 %.not115, label %45, label %73

45:                                               ; preds = %43, %31
  %46 = call i32 @LAPACKE_cgedmd_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 %21, i32 noundef %22, ptr noundef %23, i32 noundef %24, ptr noundef nonnull %26, i32 noundef -1, ptr noundef nonnull %27, i32 noundef -1, ptr noundef nonnull %28, i32 noundef -1) #5
  %.not116 = icmp eq i32 %46, 0
  br i1 %.not116, label %47, label %71

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

57:                                               ; preds = %47
  %58 = sext i32 %51 to i64
  %59 = shl nsw i64 %58, 2
  %60 = call noalias ptr @malloc(i64 noundef %59) #6
  %61 = icmp eq ptr %60, null
  br i1 %61, label %70, label %62

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

67:                                               ; preds = %62
  %68 = call i32 @LAPACKE_cgedmd_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 %21, i32 noundef %22, ptr noundef %23, i32 noundef %24, ptr noundef nonnull %55, i32 noundef %49, ptr noundef nonnull %60, i32 noundef %51, ptr noundef nonnull %65, i32 noundef %52) #5
  call void @free(ptr noundef nonnull %65) #5
  br label %69

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

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

71:                                               ; preds = %45, %70
  %.2 = phi i32 [ %46, %45 ], [ %.1, %70 ]
  %72 = icmp eq i32 %.2, -1010
  br i1 %72, label %.thread, label %73

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

73:                                               ; preds = %71, %.thread, %43, %41, %39, %37, %35, %33, %30
  %.0105 = phi i32 [ -1, %30 ], [ -8, %33 ], [ -10, %35 ], [ -15, %37 ], [ -18, %39 ], [ -20, %41 ], [ -22, %43 ], [ -1010, %.thread ], [ %.2, %71 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #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_cge_nancheck(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @LAPACKE_cgedmd_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 = !{!"float", !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,SROAPass,SimplifyCFGPass,TailCallElimPass