; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/LAPACKE/src (lapacke_ctrsyl3_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 [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @LAPACKE_ctrsyl3_work(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef %14) #0 {
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  store i32 %0, ptr %17, align 4, !tbaa !5
  store i8 %1, ptr %18, align 1, !tbaa !9
  store i8 %2, ptr %19, align 1, !tbaa !9
  store i32 %3, ptr %20, align 4, !tbaa !5
  store i32 %4, ptr %21, align 4, !tbaa !5
  store i32 %5, ptr %22, align 4, !tbaa !5
  store ptr %6, ptr %23, align 8, !tbaa !10
  store i32 %7, ptr %24, align 4, !tbaa !5
  store ptr %8, ptr %25, align 8, !tbaa !10
  store i32 %9, ptr %26, align 4, !tbaa !5
  store ptr %10, ptr %27, align 8, !tbaa !10
  store i32 %11, ptr %28, align 4, !tbaa !5
  store ptr %12, ptr %29, align 8, !tbaa !10
  store ptr %13, ptr %30, align 8, !tbaa !10
  store i32 %14, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  store i32 0, ptr %32, align 4, !tbaa !5
  %40 = load i32, ptr %17, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 102
  br i1 %41, label %42, label %54

42:                                               ; preds = %15
  %43 = load ptr, ptr %23, align 8, !tbaa !10
  %44 = load ptr, ptr %25, align 8, !tbaa !10
  %45 = load ptr, ptr %27, align 8, !tbaa !10
  %46 = load ptr, ptr %29, align 8, !tbaa !10
  %47 = load ptr, ptr %30, align 8, !tbaa !10
  call void @ctrsyl3_(ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %43, ptr noundef %24, ptr noundef %44, ptr noundef %26, ptr noundef %45, ptr noundef %28, ptr noundef %46, ptr noundef %47, ptr noundef %31, ptr noundef %32, i64 noundef 1, i64 noundef 1)
  %48 = load i32, ptr %32, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %50, label %53

50:                                               ; preds = %42
  %51 = load i32, ptr %32, align 4, !tbaa !5
  %52 = sub nsw i32 %51, 1
  store i32 %52, ptr %32, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %50, %42
  br label %206

54:                                               ; preds = %15
  %55 = load i32, ptr %17, align 4, !tbaa !5
  %56 = icmp eq i32 %55, 101
  br i1 %56, label %57, label %203

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %58 = load i32, ptr %21, align 4, !tbaa !5
  %59 = icmp sgt i32 1, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  br label %63

61:                                               ; preds = %57
  %62 = load i32, ptr %21, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %61, %60
  %64 = phi i32 [ 1, %60 ], [ %62, %61 ]
  store i32 %64, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %65 = load i32, ptr %22, align 4, !tbaa !5
  %66 = icmp sgt i32 1, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %63
  br label %70

68:                                               ; preds = %63
  %69 = load i32, ptr %22, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %68, %67
  %71 = phi i32 [ 1, %67 ], [ %69, %68 ]
  store i32 %71, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %72 = load i32, ptr %21, align 4, !tbaa !5
  %73 = icmp sgt i32 1, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %70
  br label %77

75:                                               ; preds = %70
  %76 = load i32, ptr %21, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %75, %74
  %78 = phi i32 [ 1, %74 ], [ %76, %75 ]
  store i32 %78, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  store ptr null, ptr %36, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  store ptr null, ptr %37, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  store ptr null, ptr %38, align 8, !tbaa !10
  %79 = load i32, ptr %24, align 4, !tbaa !5
  %80 = load i32, ptr %21, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %82, label %85

82:                                               ; preds = %77
  store i32 -8, ptr %32, align 4, !tbaa !5
  %83 = load i32, ptr %32, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %83)
  %84 = load i32, ptr %32, align 4, !tbaa !5
  store i32 %84, ptr %16, align 4
  store i32 1, ptr %39, align 4
  br label %200

85:                                               ; preds = %77
  %86 = load i32, ptr %26, align 4, !tbaa !5
  %87 = load i32, ptr %22, align 4, !tbaa !5
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %89, label %92

89:                                               ; preds = %85
  store i32 -10, ptr %32, align 4, !tbaa !5
  %90 = load i32, ptr %32, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %90)
  %91 = load i32, ptr %32, align 4, !tbaa !5
  store i32 %91, ptr %16, align 4
  store i32 1, ptr %39, align 4
  br label %200

92:                                               ; preds = %85
  %93 = load i32, ptr %28, align 4, !tbaa !5
  %94 = load i32, ptr %22, align 4, !tbaa !5
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %96, label %99

96:                                               ; preds = %92
  store i32 -12, ptr %32, align 4, !tbaa !5
  %97 = load i32, ptr %32, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %97)
  %98 = load i32, ptr %32, align 4, !tbaa !5
  store i32 %98, ptr %16, align 4
  store i32 1, ptr %39, align 4
  br label %200

99:                                               ; preds = %92
  %100 = load i32, ptr %33, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = mul i64 8, %101
  %103 = load i32, ptr %21, align 4, !tbaa !5
  %104 = icmp sgt i32 1, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %99
  br label %108

106:                                              ; preds = %99
  %107 = load i32, ptr %21, align 4, !tbaa !5
  br label %108

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

115:                                              ; preds = %108
  store i32 -1011, ptr %32, align 4, !tbaa !5
  br label %194

116:                                              ; preds = %108
  %117 = load i32, ptr %34, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = mul i64 8, %118
  %120 = load i32, ptr %22, align 4, !tbaa !5
  %121 = icmp sgt i32 1, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %116
  br label %125

123:                                              ; preds = %116
  %124 = load i32, ptr %22, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %123, %122
  %126 = phi i32 [ 1, %122 ], [ %124, %123 ]
  %127 = sext i32 %126 to i64
  %128 = mul i64 %119, %127
  %129 = call noalias ptr @malloc(i64 noundef %128) #6
  store ptr %129, ptr %37, align 8, !tbaa !10
  %130 = load ptr, ptr %37, align 8, !tbaa !10
  %131 = icmp eq ptr %130, null
  br i1 %131, label %132, label %133

132:                                              ; preds = %125
  store i32 -1011, ptr %32, align 4, !tbaa !5
  br label %192

133:                                              ; preds = %125
  %134 = load i32, ptr %35, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = mul i64 8, %135
  %137 = load i32, ptr %22, align 4, !tbaa !5
  %138 = icmp sgt i32 1, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %133
  br label %142

140:                                              ; preds = %133
  %141 = load i32, ptr %22, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %140, %139
  %143 = phi i32 [ 1, %139 ], [ %141, %140 ]
  %144 = sext i32 %143 to i64
  %145 = mul i64 %136, %144
  %146 = call noalias ptr @malloc(i64 noundef %145) #6
  store ptr %146, ptr %38, align 8, !tbaa !10
  %147 = load ptr, ptr %38, align 8, !tbaa !10
  %148 = icmp eq ptr %147, null
  br i1 %148, label %149, label %150

149:                                              ; preds = %142
  store i32 -1011, ptr %32, align 4, !tbaa !5
  br label %190

150:                                              ; preds = %142
  %151 = load i32, ptr %17, align 4, !tbaa !5
  %152 = load i32, ptr %21, align 4, !tbaa !5
  %153 = load i32, ptr %21, align 4, !tbaa !5
  %154 = load ptr, ptr %23, align 8, !tbaa !10
  %155 = load i32, ptr %24, align 4, !tbaa !5
  %156 = load ptr, ptr %36, align 8, !tbaa !10
  %157 = load i32, ptr %33, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef %151, i32 noundef %152, i32 noundef %153, ptr noundef %154, i32 noundef %155, ptr noundef %156, i32 noundef %157)
  %158 = load i32, ptr %17, align 4, !tbaa !5
  %159 = load i32, ptr %22, align 4, !tbaa !5
  %160 = load i32, ptr %22, align 4, !tbaa !5
  %161 = load ptr, ptr %25, align 8, !tbaa !10
  %162 = load i32, ptr %26, align 4, !tbaa !5
  %163 = load ptr, ptr %37, align 8, !tbaa !10
  %164 = load i32, ptr %34, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef %158, i32 noundef %159, i32 noundef %160, ptr noundef %161, i32 noundef %162, ptr noundef %163, i32 noundef %164)
  %165 = load i32, ptr %17, align 4, !tbaa !5
  %166 = load i32, ptr %21, align 4, !tbaa !5
  %167 = load i32, ptr %22, align 4, !tbaa !5
  %168 = load ptr, ptr %27, align 8, !tbaa !10
  %169 = load i32, ptr %28, align 4, !tbaa !5
  %170 = load ptr, ptr %38, align 8, !tbaa !10
  %171 = load i32, ptr %35, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef %165, i32 noundef %166, i32 noundef %167, ptr noundef %168, i32 noundef %169, ptr noundef %170, i32 noundef %171)
  %172 = load ptr, ptr %36, align 8, !tbaa !10
  %173 = load ptr, ptr %37, align 8, !tbaa !10
  %174 = load ptr, ptr %38, align 8, !tbaa !10
  %175 = load ptr, ptr %29, align 8, !tbaa !10
  %176 = load ptr, ptr %30, align 8, !tbaa !10
  call void @ctrsyl3_(ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %172, ptr noundef %33, ptr noundef %173, ptr noundef %34, ptr noundef %174, ptr noundef %35, ptr noundef %175, ptr noundef %176, ptr noundef %31, ptr noundef %32, i64 noundef 1, i64 noundef 1)
  %177 = load i32, ptr %32, align 4, !tbaa !5
  %178 = icmp slt i32 %177, 0
  br i1 %178, label %179, label %182

179:                                              ; preds = %150
  %180 = load i32, ptr %32, align 4, !tbaa !5
  %181 = sub nsw i32 %180, 1
  store i32 %181, ptr %32, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %179, %150
  %183 = load i32, ptr %21, align 4, !tbaa !5
  %184 = load i32, ptr %22, align 4, !tbaa !5
  %185 = load ptr, ptr %38, align 8, !tbaa !10
  %186 = load i32, ptr %35, align 4, !tbaa !5
  %187 = load ptr, ptr %27, align 8, !tbaa !10
  %188 = load i32, ptr %28, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef 102, i32 noundef %183, i32 noundef %184, ptr noundef %185, i32 noundef %186, ptr noundef %187, i32 noundef %188)
  %189 = load ptr, ptr %38, align 8, !tbaa !10
  call void @free(ptr noundef %189) #5
  br label %190

190:                                              ; preds = %182, %149
  %191 = load ptr, ptr %37, align 8, !tbaa !10
  call void @free(ptr noundef %191) #5
  br label %192

192:                                              ; preds = %190, %132
  %193 = load ptr, ptr %36, align 8, !tbaa !10
  call void @free(ptr noundef %193) #5
  br label %194

194:                                              ; preds = %192, %115
  %195 = load i32, ptr %32, align 4, !tbaa !5
  %196 = icmp eq i32 %195, -1011
  br i1 %196, label %197, label %199

197:                                              ; preds = %194
  %198 = load i32, ptr %32, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %198)
  br label %199

199:                                              ; preds = %197, %194
  store i32 0, ptr %39, align 4
  br label %200

200:                                              ; preds = %199, %96, %89, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  %201 = load i32, ptr %39, align 4
  switch i32 %201, label %208 [
    i32 0, label %202
  ]

202:                                              ; preds = %200
  br label %205

203:                                              ; preds = %54
  store i32 -1, ptr %32, align 4, !tbaa !5
  %204 = load i32, ptr %32, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %204)
  br label %205

205:                                              ; preds = %203, %202
  br label %206

206:                                              ; preds = %205, %53
  %207 = load i32, ptr %32, align 4, !tbaa !5
  store i32 %207, ptr %16, align 4
  store i32 1, ptr %39, align 4
  br label %208

208:                                              ; preds = %206, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  %209 = load i32, ptr %16, align 4
  ret i32 %209
}

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

declare void @ctrsyl3_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"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 [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @LAPACKE_ctrsyl3_work(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef %14) local_unnamed_addr #0 {
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i8 %1, ptr %16, align 1, !tbaa !5
  store i8 %2, ptr %17, align 1, !tbaa !5
  store i32 %3, ptr %18, align 4, !tbaa !8
  store i32 %4, ptr %19, align 4, !tbaa !8
  store i32 %5, ptr %20, align 4, !tbaa !8
  store i32 %7, ptr %21, align 4, !tbaa !8
  store i32 %9, ptr %22, align 4, !tbaa !8
  store i32 %11, ptr %23, align 4, !tbaa !8
  store i32 %14, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #6
  store i32 0, ptr %25, align 4, !tbaa !8
  switch i32 %0, label %67 [
    i32 102, label %29
    i32 101, label %31
  ]

29:                                               ; preds = %15
  call void @ctrsyl3_(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef %6, ptr noundef nonnull %21, ptr noundef %8, ptr noundef nonnull %22, ptr noundef %10, ptr noundef nonnull %23, ptr noundef %12, ptr noundef %13, ptr noundef nonnull %24, ptr noundef nonnull %25, i64 noundef 1, i64 noundef 1) #6
  %30 = load i32, ptr %25, align 4, !tbaa !8
  %.lobit = ashr i32 %30, 31
  %spec.select = add nsw i32 %30, %.lobit
  br label %68

31:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  %32 = tail call i32 @llvm.smax.i32(i32 %4, i32 1)
  store i32 %32, ptr %26, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  %33 = tail call i32 @llvm.smax.i32(i32 %5, i32 1)
  store i32 %33, ptr %27, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #6
  store i32 %32, ptr %28, align 4, !tbaa !8
  %34 = icmp slt i32 %7, %4
  br i1 %34, label %.thread42, label %35

35:                                               ; preds = %31
  %36 = icmp slt i32 %9, %5
  br i1 %36, label %.thread42, label %37

37:                                               ; preds = %35
  %38 = icmp slt i32 %11, %5
  br i1 %38, label %.thread42, label %39

39:                                               ; preds = %37
  %40 = zext nneg i32 %32 to i64
  %41 = shl nuw nsw i64 %40, 3
  %42 = mul i64 %41, %40
  %43 = tail call noalias ptr @malloc(i64 noundef %42) #7
  %44 = icmp eq ptr %43, null
  br i1 %44, label %.thread, label %45

.thread:                                          ; preds = %39
  store i32 -1011, ptr %25, align 4, !tbaa !8
  br label %65

45:                                               ; preds = %39
  %46 = zext nneg i32 %33 to i64
  %47 = shl nuw nsw i64 %46, 3
  %48 = mul i64 %47, %46
  %49 = tail call noalias ptr @malloc(i64 noundef %48) #7
  %50 = icmp eq ptr %49, null
  br i1 %50, label %.thread40, label %51

.thread40:                                        ; preds = %45
  store i32 -1011, ptr %25, align 4, !tbaa !8
  tail call void @free(ptr noundef nonnull %43) #6
  br label %65

51:                                               ; preds = %45
  %52 = mul i64 %41, %46
  %53 = tail call noalias ptr @malloc(i64 noundef %52) #7
  %54 = icmp eq ptr %53, null
  br i1 %54, label %.critedge, label %55

.critedge:                                        ; preds = %51
  store i32 -1011, ptr %25, align 4, !tbaa !8
  tail call void @free(ptr noundef nonnull %49) #6
  tail call void @free(ptr noundef nonnull %43) #6
  br label %65

55:                                               ; preds = %51
  tail call void @LAPACKE_cge_trans(i32 noundef 101, i32 noundef %4, i32 noundef %4, ptr noundef %6, i32 noundef %7, ptr noundef nonnull %43, i32 noundef %32) #6
  tail call void @LAPACKE_cge_trans(i32 noundef 101, i32 noundef %5, i32 noundef %5, ptr noundef %8, i32 noundef %9, ptr noundef nonnull %49, i32 noundef %33) #6
  tail call void @LAPACKE_cge_trans(i32 noundef 101, i32 noundef %4, i32 noundef %5, ptr noundef %10, i32 noundef %11, ptr noundef nonnull %53, i32 noundef %32) #6
  call void @ctrsyl3_(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %43, ptr noundef nonnull %26, ptr noundef nonnull %49, ptr noundef nonnull %27, ptr noundef nonnull %53, ptr noundef nonnull %28, ptr noundef %12, ptr noundef %13, ptr noundef nonnull %24, ptr noundef nonnull %25, i64 noundef 1, i64 noundef 1) #6
  %56 = load i32, ptr %25, align 4, !tbaa !8
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = add nsw i32 %56, -1
  store i32 %59, ptr %25, align 4, !tbaa !8
  br label %60

60:                                               ; preds = %58, %55
  %61 = load i32, ptr %19, align 4, !tbaa !8
  %62 = load i32, ptr %20, align 4, !tbaa !8
  %63 = load i32, ptr %28, align 4, !tbaa !8
  call void @LAPACKE_cge_trans(i32 noundef 102, i32 noundef %61, i32 noundef %62, ptr noundef nonnull %53, i32 noundef %63, ptr noundef %10, i32 noundef %11) #6
  call void @free(ptr noundef nonnull %53) #6
  %.pr.pr.pr = load i32, ptr %25, align 4, !tbaa !8
  %64 = icmp eq i32 %.pr.pr.pr, -1011
  call void @free(ptr noundef nonnull %49) #6
  call void @free(ptr noundef nonnull %43) #6
  br i1 %64, label %65, label %66

65:                                               ; preds = %.critedge, %.thread40, %.thread, %60
  call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1011) #6
  %.pre.pre = load i32, ptr %25, align 4, !tbaa !8
  br label %66

.thread42:                                        ; preds = %37, %35, %31
  %.sink = phi i32 [ -8, %31 ], [ -10, %35 ], [ -12, %37 ]
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef %.sink) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  br label %68

66:                                               ; preds = %60, %65
  %.pre = phi i32 [ %.pr.pr.pr, %60 ], [ %.pre.pre, %65 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  br label %68

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

68:                                               ; preds = %29, %67, %66, %.thread42
  %.1 = phi i32 [ %.sink, %.thread42 ], [ %.pre, %66 ], [ -1, %67 ], [ %spec.select, %29 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #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 @ctrsyl3_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 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

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


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