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

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

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

67:                                               ; preds = %64
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef -1)
  store i32 -1, ptr %27, align 4
  store i32 1, ptr %61, align 4
  br label %220

68:                                               ; preds = %64, %26
  %69 = call i32 @LAPACKE_get_nancheck()
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %126

71:                                               ; preds = %68
  %72 = load i32, ptr %28, align 4, !tbaa !5
  %73 = load i32, ptr %34, align 4, !tbaa !5
  %74 = load i32, ptr %35, align 4, !tbaa !5
  %75 = load ptr, ptr %36, align 8, !tbaa !10
  %76 = load i32, ptr %37, align 4, !tbaa !5
  %77 = call i32 @LAPACKE_dge_nancheck(i32 noundef %72, i32 noundef %73, i32 noundef %74, ptr noundef %75, i32 noundef %76)
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %71
  store i32 -8, ptr %27, align 4
  store i32 1, ptr %61, align 4
  br label %220

80:                                               ; preds = %71
  %81 = load i32, ptr %28, align 4, !tbaa !5
  %82 = load i32, ptr %34, align 4, !tbaa !5
  %83 = load i32, ptr %35, align 4, !tbaa !5
  %84 = load ptr, ptr %38, align 8, !tbaa !10
  %85 = load i32, ptr %39, align 4, !tbaa !5
  %86 = call i32 @LAPACKE_dge_nancheck(i32 noundef %81, i32 noundef %82, i32 noundef %83, ptr noundef %84, i32 noundef %85)
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %80
  store i32 -10, ptr %27, align 4
  store i32 1, ptr %61, align 4
  br label %220

89:                                               ; preds = %80
  %90 = load i32, ptr %28, align 4, !tbaa !5
  %91 = load i32, ptr %34, align 4, !tbaa !5
  %92 = load i32, ptr %35, align 4, !tbaa !5
  %93 = load ptr, ptr %45, align 8, !tbaa !10
  %94 = load i32, ptr %46, align 4, !tbaa !5
  %95 = call i32 @LAPACKE_dge_nancheck(i32 noundef %90, i32 noundef %91, i32 noundef %92, ptr noundef %93, i32 noundef %94)
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %89
  store i32 -15, ptr %27, align 4
  store i32 1, ptr %61, align 4
  br label %220

98:                                               ; preds = %89
  %99 = load i32, ptr %28, align 4, !tbaa !5
  %100 = load i32, ptr %34, align 4, !tbaa !5
  %101 = load i32, ptr %35, align 4, !tbaa !5
  %102 = load ptr, ptr %48, align 8, !tbaa !10
  %103 = load i32, ptr %49, align 4, !tbaa !5
  %104 = call i32 @LAPACKE_dge_nancheck(i32 noundef %99, i32 noundef %100, i32 noundef %101, ptr noundef %102, i32 noundef %103)
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %98
  store i32 -18, ptr %27, align 4
  store i32 1, ptr %61, align 4
  br label %220

107:                                              ; preds = %98
  %108 = load i32, ptr %28, align 4, !tbaa !5
  %109 = load i32, ptr %34, align 4, !tbaa !5
  %110 = load i32, ptr %35, align 4, !tbaa !5
  %111 = load ptr, ptr %52, align 8, !tbaa !10
  %112 = load i32, ptr %53, align 4, !tbaa !5
  %113 = call i32 @LAPACKE_dge_nancheck(i32 noundef %108, i32 noundef %109, i32 noundef %110, ptr noundef %111, i32 noundef %112)
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %107
  store i32 -20, ptr %27, align 4
  store i32 1, ptr %61, align 4
  br label %220

116:                                              ; preds = %107
  %117 = load i32, ptr %28, align 4, !tbaa !5
  %118 = load i32, ptr %34, align 4, !tbaa !5
  %119 = load i32, ptr %35, align 4, !tbaa !5
  %120 = load ptr, ptr %50, align 8, !tbaa !10
  %121 = load i32, ptr %51, align 4, !tbaa !5
  %122 = call i32 @LAPACKE_dge_nancheck(i32 noundef %117, i32 noundef %118, i32 noundef %119, ptr noundef %120, i32 noundef %121)
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %116
  store i32 -22, ptr %27, align 4
  store i32 1, ptr %61, align 4
  br label %220

125:                                              ; preds = %116
  br label %126

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

158:                                              ; preds = %126
  br label %213

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

169:                                              ; preds = %159
  store i32 -1010, ptr %54, align 4, !tbaa !5
  br label %213

170:                                              ; preds = %159
  %171 = load i32, ptr %56, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = mul i64 4, %172
  %174 = call noalias ptr @malloc(i64 noundef %173) #6
  store ptr %174, ptr %58, align 8, !tbaa !10
  %175 = load ptr, ptr %58, align 8, !tbaa !10
  %176 = icmp eq ptr %175, null
  br i1 %176, label %177, label %178

177:                                              ; preds = %170
  store i32 -1010, ptr %54, align 4, !tbaa !5
  br label %211

178:                                              ; preds = %170
  %179 = load i32, ptr %28, align 4, !tbaa !5
  %180 = load i8, ptr %29, align 1, !tbaa !9
  %181 = load i8, ptr %30, align 1, !tbaa !9
  %182 = load i8, ptr %31, align 1, !tbaa !9
  %183 = load i8, ptr %32, align 1, !tbaa !9
  %184 = load i32, ptr %33, align 4, !tbaa !5
  %185 = load i32, ptr %34, align 4, !tbaa !5
  %186 = load i32, ptr %35, align 4, !tbaa !5
  %187 = load ptr, ptr %36, align 8, !tbaa !10
  %188 = load i32, ptr %37, align 4, !tbaa !5
  %189 = load ptr, ptr %38, align 8, !tbaa !10
  %190 = load i32, ptr %39, align 4, !tbaa !5
  %191 = load i32, ptr %40, align 4, !tbaa !5
  %192 = load ptr, ptr %41, align 8, !tbaa !10
  %193 = load i32, ptr %42, align 4, !tbaa !5
  %194 = load ptr, ptr %43, align 8, !tbaa !10
  %195 = load ptr, ptr %44, align 8, !tbaa !10
  %196 = load ptr, ptr %45, align 8, !tbaa !10
  %197 = load i32, ptr %46, align 4, !tbaa !5
  %198 = load ptr, ptr %47, align 8, !tbaa !10
  %199 = load ptr, ptr %48, align 8, !tbaa !10
  %200 = load i32, ptr %49, align 4, !tbaa !5
  %201 = load ptr, ptr %50, align 8, !tbaa !10
  %202 = load i32, ptr %51, align 4, !tbaa !5
  %203 = load ptr, ptr %52, align 8, !tbaa !10
  %204 = load i32, ptr %53, align 4, !tbaa !5
  %205 = load ptr, ptr %57, align 8, !tbaa !10
  %206 = load i32, ptr %55, align 4, !tbaa !5
  %207 = load ptr, ptr %58, align 8, !tbaa !10
  %208 = load i32, ptr %56, align 4, !tbaa !5
  %209 = call i32 @LAPACKE_dgedmd_work(i32 noundef %179, i8 noundef signext %180, i8 noundef signext %181, i8 noundef signext %182, i8 noundef signext %183, i32 noundef %184, i32 noundef %185, i32 noundef %186, ptr noundef %187, i32 noundef %188, ptr noundef %189, i32 noundef %190, i32 noundef %191, ptr noundef %192, i32 noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %196, i32 noundef %197, ptr noundef %198, ptr noundef %199, i32 noundef %200, ptr noundef %201, i32 noundef %202, ptr noundef %203, i32 noundef %204, ptr noundef %205, i32 noundef %206, ptr noundef %207, i32 noundef %208)
  store i32 %209, ptr %54, align 4, !tbaa !5
  %210 = load ptr, ptr %58, align 8, !tbaa !10
  call void @free(ptr noundef %210) #5
  br label %211

211:                                              ; preds = %178, %177
  %212 = load ptr, ptr %57, align 8, !tbaa !10
  call void @free(ptr noundef %212) #5
  br label %213

213:                                              ; preds = %211, %169, %158
  %214 = load i32, ptr %54, align 4, !tbaa !5
  %215 = icmp eq i32 %214, -1010
  br i1 %215, label %216, label %218

216:                                              ; preds = %213
  %217 = load i32, ptr %54, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %217)
  br label %218

218:                                              ; preds = %216, %213
  %219 = load i32, ptr %54, align 4, !tbaa !5
  store i32 %219, ptr %27, align 4
  store i32 1, ptr %61, align 4
  br label %220

220:                                              ; preds = %218, %124, %115, %106, %97, %88, %79, %67
  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 4, 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
  %221 = load i32, ptr %27, align 4
  ret i32 %221
}

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

declare i32 @LAPACKE_dgedmd_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, 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) #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_dgedmd(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, ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20, i32 noundef %21, ptr noundef %22, i32 noundef %23, ptr noundef %24, i32 noundef %25) local_unnamed_addr #0 {
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, 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 = %26
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1) #5
  br label %65

31:                                               ; preds = %26
  %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_dge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9) #5
  %.not105 = icmp eq i32 %34, 0
  br i1 %.not105, label %35, label %65

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

37:                                               ; preds = %35
  %38 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %17, i32 noundef %18) #5
  %.not107 = icmp eq i32 %38, 0
  br i1 %.not107, label %39, label %65

39:                                               ; preds = %37
  %40 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %20, i32 noundef %21) #5
  %.not108 = icmp eq i32 %40, 0
  br i1 %.not108, label %41, label %65

41:                                               ; preds = %39
  %42 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %24, i32 noundef %25) #5
  %.not109 = icmp eq i32 %42, 0
  br i1 %.not109, label %43, label %65

43:                                               ; preds = %41
  %44 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %6, i32 noundef %7, ptr noundef %22, i32 noundef %23) #5
  %.not110 = icmp eq i32 %44, 0
  br i1 %.not110, label %45, label %65

45:                                               ; preds = %43, %31
  %46 = call i32 @LAPACKE_dgedmd_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, ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20, i32 noundef %21, ptr noundef %22, i32 noundef %23, ptr noundef %24, i32 noundef %25, ptr noundef nonnull %27, i32 noundef -1, ptr noundef nonnull %28, i32 noundef -1) #5
  %.not111 = icmp eq i32 %46, 0
  br i1 %.not111, label %47, label %63

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

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

60:                                               ; preds = %55
  %61 = call i32 @LAPACKE_dgedmd_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, ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20, i32 noundef %21, ptr noundef %22, i32 noundef %23, ptr noundef %24, i32 noundef %25, ptr noundef nonnull %53, i32 noundef %49, ptr noundef nonnull %58, i32 noundef %50) #5
  call void @free(ptr noundef nonnull %58) #5
  br label %62

62:                                               ; preds = %55, %60
  %.0 = phi i32 [ %61, %60 ], [ -1010, %55 ]
  call void @free(ptr noundef nonnull %53) #5
  br label %63

63:                                               ; preds = %45, %62
  %.1 = phi i32 [ %46, %45 ], [ %.0, %62 ]
  %64 = icmp eq i32 %.1, -1010
  br i1 %64, label %.thread, label %65

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

65:                                               ; preds = %63, %.thread, %43, %41, %39, %37, %35, %33, %30
  %.0101 = phi i32 [ -1, %30 ], [ -8, %33 ], [ -10, %35 ], [ -15, %37 ], [ -18, %39 ], [ -20, %41 ], [ -22, %43 ], [ -1010, %.thread ], [ %.1, %63 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #5
  ret i32 %.0101
}

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

declare i32 @LAPACKE_dgedmd_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, 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) 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,SROAPass,SimplifyCFGPass,TailCallElimPass