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

; 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 [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @LAPACKE_cunhr_col_work(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8) #0 {
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  store i32 %0, ptr %11, align 4, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !5
  store i32 %2, ptr %13, align 4, !tbaa !5
  store i32 %3, ptr %14, align 4, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  %26 = load i32, ptr %11, align 4, !tbaa !5
  %27 = icmp eq i32 %26, 102
  br i1 %27, label %28, label %38

28:                                               ; preds = %9
  %29 = load ptr, ptr %15, align 8, !tbaa !9
  %30 = load ptr, ptr %17, align 8, !tbaa !9
  %31 = load ptr, ptr %19, align 8, !tbaa !9
  call void @cunhr_col_(ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %29, ptr noundef %16, ptr noundef %30, ptr noundef %18, ptr noundef %31, ptr noundef %20)
  %32 = load i32, ptr %20, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %28
  %35 = load i32, ptr %20, align 4, !tbaa !5
  %36 = sub nsw i32 %35, 1
  store i32 %36, ptr %20, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %34, %28
  br label %163

38:                                               ; preds = %9
  %39 = load i32, ptr %11, align 4, !tbaa !5
  %40 = icmp eq i32 %39, 101
  br i1 %40, label %41, label %160

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %42 = load i32, ptr %12, align 4, !tbaa !5
  %43 = icmp sgt i32 1, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  br label %47

45:                                               ; preds = %41
  %46 = load i32, ptr %12, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %45, %44
  %48 = phi i32 [ 1, %44 ], [ %46, %45 ]
  store i32 %48, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %49 = load i32, ptr %14, align 4, !tbaa !5
  %50 = load i32, ptr %13, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %54

52:                                               ; preds = %47
  %53 = load i32, ptr %14, align 4, !tbaa !5
  br label %56

54:                                               ; preds = %47
  %55 = load i32, ptr %13, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %54, %52
  %57 = phi i32 [ %53, %52 ], [ %55, %54 ]
  %58 = icmp sgt i32 1, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %56
  br label %70

60:                                               ; preds = %56
  %61 = load i32, ptr %14, align 4, !tbaa !5
  %62 = load i32, ptr %13, align 4, !tbaa !5
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = load i32, ptr %14, align 4, !tbaa !5
  br label %68

66:                                               ; preds = %60
  %67 = load i32, ptr %13, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %66, %64
  %69 = phi i32 [ %65, %64 ], [ %67, %66 ]
  br label %70

70:                                               ; preds = %68, %59
  %71 = phi i32 [ 1, %59 ], [ %69, %68 ]
  store i32 %71, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store ptr null, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store ptr null, ptr %24, align 8, !tbaa !9
  %72 = load i32, ptr %16, align 4, !tbaa !5
  %73 = load i32, ptr %13, align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %75, label %78

75:                                               ; preds = %70
  store i32 -6, ptr %20, align 4, !tbaa !5
  %76 = load i32, ptr %20, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %76)
  %77 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %77, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %157

78:                                               ; preds = %70
  %79 = load i32, ptr %18, align 4, !tbaa !5
  %80 = load i32, ptr %13, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %82, label %85

82:                                               ; preds = %78
  store i32 -8, ptr %20, align 4, !tbaa !5
  %83 = load i32, ptr %20, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %83)
  %84 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %84, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %157

85:                                               ; preds = %78
  %86 = load i32, ptr %21, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = mul i64 8, %87
  %89 = load i32, ptr %13, align 4, !tbaa !5
  %90 = icmp sgt i32 1, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %85
  br label %94

92:                                               ; preds = %85
  %93 = load i32, ptr %13, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %92, %91
  %95 = phi i32 [ 1, %91 ], [ %93, %92 ]
  %96 = sext i32 %95 to i64
  %97 = mul i64 %88, %96
  %98 = call noalias ptr @malloc(i64 noundef %97) #6
  store ptr %98, ptr %23, align 8, !tbaa !9
  %99 = load ptr, ptr %23, align 8, !tbaa !9
  %100 = icmp eq ptr %99, null
  br i1 %100, label %101, label %102

101:                                              ; preds = %94
  store i32 -1011, ptr %20, align 4, !tbaa !5
  br label %151

102:                                              ; preds = %94
  %103 = load i32, ptr %22, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = mul i64 8, %104
  %106 = load i32, ptr %13, align 4, !tbaa !5
  %107 = icmp sgt i32 1, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %102
  br label %111

109:                                              ; preds = %102
  %110 = load i32, ptr %13, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %109, %108
  %112 = phi i32 [ 1, %108 ], [ %110, %109 ]
  %113 = sext i32 %112 to i64
  %114 = mul i64 %105, %113
  %115 = call noalias ptr @malloc(i64 noundef %114) #6
  store ptr %115, ptr %24, align 8, !tbaa !9
  %116 = load ptr, ptr %24, align 8, !tbaa !9
  %117 = icmp eq ptr %116, null
  br i1 %117, label %118, label %119

118:                                              ; preds = %111
  store i32 -1011, ptr %20, align 4, !tbaa !5
  br label %149

119:                                              ; preds = %111
  %120 = load i32, ptr %11, align 4, !tbaa !5
  %121 = load i32, ptr %12, align 4, !tbaa !5
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = load ptr, ptr %15, align 8, !tbaa !9
  %124 = load i32, ptr %16, align 4, !tbaa !5
  %125 = load ptr, ptr %23, align 8, !tbaa !9
  %126 = load i32, ptr %21, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef %120, i32 noundef %121, i32 noundef %122, ptr noundef %123, i32 noundef %124, ptr noundef %125, i32 noundef %126)
  %127 = load ptr, ptr %23, align 8, !tbaa !9
  %128 = load ptr, ptr %24, align 8, !tbaa !9
  %129 = load ptr, ptr %19, align 8, !tbaa !9
  call void @cunhr_col_(ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %127, ptr noundef %21, ptr noundef %128, ptr noundef %22, ptr noundef %129, ptr noundef %20)
  %130 = load i32, ptr %20, align 4, !tbaa !5
  %131 = icmp slt i32 %130, 0
  br i1 %131, label %132, label %135

132:                                              ; preds = %119
  %133 = load i32, ptr %20, align 4, !tbaa !5
  %134 = sub nsw i32 %133, 1
  store i32 %134, ptr %20, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %132, %119
  %136 = load i32, ptr %12, align 4, !tbaa !5
  %137 = load i32, ptr %13, align 4, !tbaa !5
  %138 = load ptr, ptr %23, align 8, !tbaa !9
  %139 = load i32, ptr %21, align 4, !tbaa !5
  %140 = load ptr, ptr %15, align 8, !tbaa !9
  %141 = load i32, ptr %16, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef 102, i32 noundef %136, i32 noundef %137, ptr noundef %138, i32 noundef %139, ptr noundef %140, i32 noundef %141)
  %142 = load i32, ptr %18, align 4, !tbaa !5
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = load ptr, ptr %24, align 8, !tbaa !9
  %145 = load i32, ptr %22, align 4, !tbaa !5
  %146 = load ptr, ptr %17, align 8, !tbaa !9
  %147 = load i32, ptr %18, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef 102, i32 noundef %142, i32 noundef %143, ptr noundef %144, i32 noundef %145, ptr noundef %146, i32 noundef %147)
  %148 = load ptr, ptr %24, align 8, !tbaa !9
  call void @free(ptr noundef %148) #5
  br label %149

149:                                              ; preds = %135, %118
  %150 = load ptr, ptr %23, align 8, !tbaa !9
  call void @free(ptr noundef %150) #5
  br label %151

151:                                              ; preds = %149, %101
  %152 = load i32, ptr %20, align 4, !tbaa !5
  %153 = icmp eq i32 %152, -1011
  br i1 %153, label %154, label %156

154:                                              ; preds = %151
  %155 = load i32, ptr %20, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %155)
  br label %156

156:                                              ; preds = %154, %151
  store i32 0, ptr %25, align 4
  br label %157

157:                                              ; preds = %156, %82, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %158 = load i32, ptr %25, align 4
  switch i32 %158, label %165 [
    i32 0, label %159
  ]

159:                                              ; preds = %157
  br label %162

160:                                              ; preds = %38
  store i32 -1, ptr %20, align 4, !tbaa !5
  %161 = load i32, ptr %20, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %161)
  br label %162

162:                                              ; preds = %160, %159
  br label %163

163:                                              ; preds = %162, %37
  %164 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %164, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %165

165:                                              ; preds = %163, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %166 = load i32, ptr %10, align 4
  ret i32 %166
}

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

declare void @cunhr_col_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

; 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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 [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @LAPACKE_cunhr_col_work(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 %1, ptr %10, align 4, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !5
  store i32 %7, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  switch i32 %0, label %54 [
    i32 102, label %18
    i32 101, label %20
  ]

18:                                               ; preds = %9
  call void @cunhr_col_(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %4, ptr noundef nonnull %13, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %8, ptr noundef nonnull %15) #6
  %19 = load i32, ptr %15, align 4, !tbaa !5
  %.lobit = ashr i32 %19, 31
  %spec.select36 = add nsw i32 %19, %.lobit
  br label %55

20:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %21 = tail call i32 @llvm.smax.i32(i32 %1, i32 1)
  store i32 %21, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %22 = tail call i32 @llvm.smin.i32(i32 %3, i32 %2)
  %spec.select = tail call i32 @llvm.smax.i32(i32 %22, i32 1)
  store i32 %spec.select, ptr %17, align 4, !tbaa !5
  %23 = icmp slt i32 %5, %2
  br i1 %23, label %53, label %24

24:                                               ; preds = %20
  %25 = icmp slt i32 %7, %2
  br i1 %25, label %53, label %26

26:                                               ; preds = %24
  %27 = zext nneg i32 %21 to i64
  %28 = shl nuw nsw i64 %27, 3
  %29 = tail call i32 @llvm.smax.i32(i32 %2, i32 1)
  %30 = zext nneg i32 %29 to i64
  %31 = mul i64 %28, %30
  %32 = tail call noalias ptr @malloc(i64 noundef %31) #7
  %33 = icmp eq ptr %32, null
  br i1 %33, label %.thread, label %34

.thread:                                          ; preds = %26
  store i32 -1011, ptr %15, align 4, !tbaa !5
  br label %52

34:                                               ; preds = %26
  %35 = zext nneg i32 %spec.select to i64
  %36 = shl nuw nsw i64 %30, 3
  %37 = mul i64 %36, %35
  %38 = tail call noalias ptr @malloc(i64 noundef %37) #7
  %39 = icmp eq ptr %38, null
  br i1 %39, label %.thread29, label %40

.thread29:                                        ; preds = %34
  store i32 -1011, ptr %15, align 4, !tbaa !5
  tail call void @free(ptr noundef nonnull %32) #6
  br label %52

40:                                               ; preds = %34
  tail call void @LAPACKE_cge_trans(i32 noundef 101, i32 noundef %1, i32 noundef %2, ptr noundef %4, i32 noundef %5, ptr noundef nonnull %32, i32 noundef %21) #6
  call void @cunhr_col_(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %32, ptr noundef nonnull %16, ptr noundef nonnull %38, ptr noundef nonnull %17, ptr noundef %8, ptr noundef nonnull %15) #6
  %41 = load i32, ptr %15, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %40
  %44 = add nsw i32 %41, -1
  store i32 %44, ptr %15, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %40, %43
  %46 = load i32, ptr %10, align 4, !tbaa !5
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = load i32, ptr %16, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef 102, i32 noundef %46, i32 noundef %47, ptr noundef nonnull %32, i32 noundef %48, ptr noundef %4, i32 noundef %5) #6
  %49 = load i32, ptr %11, align 4, !tbaa !5
  %50 = load i32, ptr %17, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef 102, i32 noundef %7, i32 noundef %49, ptr noundef nonnull %38, i32 noundef %50, ptr noundef %6, i32 noundef %7) #6
  call void @free(ptr noundef nonnull %38) #6
  %.pr.pr = load i32, ptr %15, align 4, !tbaa !5
  call void @free(ptr noundef nonnull %32) #6
  %51 = icmp eq i32 %.pr.pr, -1011
  br i1 %51, label %52, label %.thread31

52:                                               ; preds = %.thread29, %.thread, %45
  call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1011) #6
  %.pre.pre = load i32, ptr %15, align 4, !tbaa !5
  br label %.thread31

.thread31:                                        ; preds = %52, %45
  %.pre = phi i32 [ %.pre.pre, %52 ], [ %.pr.pr, %45 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  br label %55

53:                                               ; preds = %24, %20
  %.sink = phi i32 [ -6, %20 ], [ -8, %24 ]
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef %.sink) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  br label %55

54:                                               ; preds = %9
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1) #6
  br label %55

55:                                               ; preds = %18, %54, %.thread31, %53
  %.1 = phi i32 [ %.sink, %53 ], [ %.pre, %.thread31 ], [ -1, %54 ], [ %spec.select36, %18 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  ret i32 %.1
}

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

declare void @cunhr_col_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @LAPACKE_xerbla(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

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

; 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #5

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass