; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/LAPACKE/src (lapacke_dtrsyl3_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_dtrsyl3_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, ptr noundef %15, i32 noundef %16) #0 {
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %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 i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  store i32 %0, ptr %19, align 4, !tbaa !5
  store i8 %1, ptr %20, align 1, !tbaa !9
  store i8 %2, ptr %21, align 1, !tbaa !9
  store i32 %3, ptr %22, align 4, !tbaa !5
  store i32 %4, ptr %23, align 4, !tbaa !5
  store i32 %5, ptr %24, align 4, !tbaa !5
  store ptr %6, ptr %25, align 8, !tbaa !10
  store i32 %7, ptr %26, align 4, !tbaa !5
  store ptr %8, ptr %27, align 8, !tbaa !10
  store i32 %9, ptr %28, align 4, !tbaa !5
  store ptr %10, ptr %29, align 8, !tbaa !10
  store i32 %11, ptr %30, align 4, !tbaa !5
  store ptr %12, ptr %31, align 8, !tbaa !10
  store ptr %13, ptr %32, align 8, !tbaa !10
  store i32 %14, ptr %33, align 4, !tbaa !5
  store ptr %15, ptr %34, align 8, !tbaa !10
  store i32 %16, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !5
  %44 = load i32, ptr %19, align 4, !tbaa !5
  %45 = icmp eq i32 %44, 102
  br i1 %45, label %46, label %59

46:                                               ; preds = %17
  %47 = load ptr, ptr %25, align 8, !tbaa !10
  %48 = load ptr, ptr %27, align 8, !tbaa !10
  %49 = load ptr, ptr %29, align 8, !tbaa !10
  %50 = load ptr, ptr %31, align 8, !tbaa !10
  %51 = load ptr, ptr %32, align 8, !tbaa !10
  %52 = load ptr, ptr %34, align 8, !tbaa !10
  call void @dtrsyl3_(ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %47, ptr noundef %26, ptr noundef %48, ptr noundef %28, ptr noundef %49, ptr noundef %30, ptr noundef %50, ptr noundef %51, ptr noundef %33, ptr noundef %52, ptr noundef %35, ptr noundef %36, i64 noundef 1, i64 noundef 1)
  %53 = load i32, ptr %36, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %46
  %56 = load i32, ptr %36, align 4, !tbaa !5
  %57 = sub nsw i32 %56, 1
  store i32 %57, ptr %36, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %55, %46
  br label %212

59:                                               ; preds = %17
  %60 = load i32, ptr %19, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 101
  br i1 %61, label %62, label %209

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %63 = load i32, ptr %23, align 4, !tbaa !5
  %64 = icmp sgt i32 1, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  br label %68

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

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

72:                                               ; preds = %68
  br label %75

73:                                               ; preds = %68
  %74 = load i32, ptr %24, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %73, %72
  %76 = phi i32 [ 1, %72 ], [ %74, %73 ]
  store i32 %76, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %77 = load i32, ptr %23, align 4, !tbaa !5
  %78 = icmp sgt i32 1, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  br label %82

80:                                               ; preds = %75
  %81 = load i32, ptr %23, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %80, %79
  %83 = phi i32 [ 1, %79 ], [ %81, %80 ]
  store i32 %83, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  store ptr null, ptr %40, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  store ptr null, ptr %41, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  store ptr null, ptr %42, align 8, !tbaa !10
  %84 = load i32, ptr %26, align 4, !tbaa !5
  %85 = load i32, ptr %23, align 4, !tbaa !5
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %87, label %90

87:                                               ; preds = %82
  store i32 -8, ptr %36, align 4, !tbaa !5
  %88 = load i32, ptr %36, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %88)
  %89 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %89, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %206

90:                                               ; preds = %82
  %91 = load i32, ptr %28, align 4, !tbaa !5
  %92 = load i32, ptr %24, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %94, label %97

94:                                               ; preds = %90
  store i32 -10, ptr %36, align 4, !tbaa !5
  %95 = load i32, ptr %36, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %95)
  %96 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %96, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %206

97:                                               ; preds = %90
  %98 = load i32, ptr %30, align 4, !tbaa !5
  %99 = load i32, ptr %24, align 4, !tbaa !5
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %101, label %104

101:                                              ; preds = %97
  store i32 -12, ptr %36, align 4, !tbaa !5
  %102 = load i32, ptr %36, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %102)
  %103 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %103, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %206

104:                                              ; preds = %97
  %105 = load i32, ptr %37, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = mul i64 8, %106
  %108 = load i32, ptr %23, align 4, !tbaa !5
  %109 = icmp sgt i32 1, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %104
  br label %113

111:                                              ; preds = %104
  %112 = load i32, ptr %23, align 4, !tbaa !5
  br label %113

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

120:                                              ; preds = %113
  store i32 -1011, ptr %36, align 4, !tbaa !5
  br label %200

121:                                              ; preds = %113
  %122 = load i32, ptr %38, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = mul i64 8, %123
  %125 = load i32, ptr %24, align 4, !tbaa !5
  %126 = icmp sgt i32 1, %125
  br i1 %126, label %127, label %128

127:                                              ; preds = %121
  br label %130

128:                                              ; preds = %121
  %129 = load i32, ptr %24, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %128, %127
  %131 = phi i32 [ 1, %127 ], [ %129, %128 ]
  %132 = sext i32 %131 to i64
  %133 = mul i64 %124, %132
  %134 = call noalias ptr @malloc(i64 noundef %133) #6
  store ptr %134, ptr %41, align 8, !tbaa !10
  %135 = load ptr, ptr %41, align 8, !tbaa !10
  %136 = icmp eq ptr %135, null
  br i1 %136, label %137, label %138

137:                                              ; preds = %130
  store i32 -1011, ptr %36, align 4, !tbaa !5
  br label %198

138:                                              ; preds = %130
  %139 = load i32, ptr %39, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = mul i64 8, %140
  %142 = load i32, ptr %24, align 4, !tbaa !5
  %143 = icmp sgt i32 1, %142
  br i1 %143, label %144, label %145

144:                                              ; preds = %138
  br label %147

145:                                              ; preds = %138
  %146 = load i32, ptr %24, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %145, %144
  %148 = phi i32 [ 1, %144 ], [ %146, %145 ]
  %149 = sext i32 %148 to i64
  %150 = mul i64 %141, %149
  %151 = call noalias ptr @malloc(i64 noundef %150) #6
  store ptr %151, ptr %42, align 8, !tbaa !10
  %152 = load ptr, ptr %42, align 8, !tbaa !10
  %153 = icmp eq ptr %152, null
  br i1 %153, label %154, label %155

154:                                              ; preds = %147
  store i32 -1011, ptr %36, align 4, !tbaa !5
  br label %196

155:                                              ; preds = %147
  %156 = load i32, ptr %19, align 4, !tbaa !5
  %157 = load i32, ptr %23, align 4, !tbaa !5
  %158 = load i32, ptr %23, align 4, !tbaa !5
  %159 = load ptr, ptr %25, align 8, !tbaa !10
  %160 = load i32, ptr %26, align 4, !tbaa !5
  %161 = load ptr, ptr %40, align 8, !tbaa !10
  %162 = load i32, ptr %37, align 4, !tbaa !5
  call void @LAPACKE_dge_trans(i32 noundef %156, i32 noundef %157, i32 noundef %158, ptr noundef %159, i32 noundef %160, ptr noundef %161, i32 noundef %162)
  %163 = load i32, ptr %19, align 4, !tbaa !5
  %164 = load i32, ptr %24, align 4, !tbaa !5
  %165 = load i32, ptr %24, align 4, !tbaa !5
  %166 = load ptr, ptr %27, align 8, !tbaa !10
  %167 = load i32, ptr %28, align 4, !tbaa !5
  %168 = load ptr, ptr %41, align 8, !tbaa !10
  %169 = load i32, ptr %38, align 4, !tbaa !5
  call void @LAPACKE_dge_trans(i32 noundef %163, i32 noundef %164, i32 noundef %165, ptr noundef %166, i32 noundef %167, ptr noundef %168, i32 noundef %169)
  %170 = load i32, ptr %19, align 4, !tbaa !5
  %171 = load i32, ptr %23, align 4, !tbaa !5
  %172 = load i32, ptr %24, align 4, !tbaa !5
  %173 = load ptr, ptr %29, align 8, !tbaa !10
  %174 = load i32, ptr %30, align 4, !tbaa !5
  %175 = load ptr, ptr %42, align 8, !tbaa !10
  %176 = load i32, ptr %39, align 4, !tbaa !5
  call void @LAPACKE_dge_trans(i32 noundef %170, i32 noundef %171, i32 noundef %172, ptr noundef %173, i32 noundef %174, ptr noundef %175, i32 noundef %176)
  %177 = load ptr, ptr %40, align 8, !tbaa !10
  %178 = load ptr, ptr %41, align 8, !tbaa !10
  %179 = load ptr, ptr %42, align 8, !tbaa !10
  %180 = load ptr, ptr %31, align 8, !tbaa !10
  %181 = load ptr, ptr %32, align 8, !tbaa !10
  %182 = load ptr, ptr %34, align 8, !tbaa !10
  call void @dtrsyl3_(ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %177, ptr noundef %37, ptr noundef %178, ptr noundef %38, ptr noundef %179, ptr noundef %39, ptr noundef %180, ptr noundef %181, ptr noundef %33, ptr noundef %182, ptr noundef %35, ptr noundef %36, i64 noundef 1, i64 noundef 1)
  %183 = load i32, ptr %36, align 4, !tbaa !5
  %184 = icmp slt i32 %183, 0
  br i1 %184, label %185, label %188

185:                                              ; preds = %155
  %186 = load i32, ptr %36, align 4, !tbaa !5
  %187 = sub nsw i32 %186, 1
  store i32 %187, ptr %36, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %185, %155
  %189 = load i32, ptr %23, align 4, !tbaa !5
  %190 = load i32, ptr %24, align 4, !tbaa !5
  %191 = load ptr, ptr %42, align 8, !tbaa !10
  %192 = load i32, ptr %39, align 4, !tbaa !5
  %193 = load ptr, ptr %29, align 8, !tbaa !10
  %194 = load i32, ptr %30, align 4, !tbaa !5
  call void @LAPACKE_dge_trans(i32 noundef 102, i32 noundef %189, i32 noundef %190, ptr noundef %191, i32 noundef %192, ptr noundef %193, i32 noundef %194)
  %195 = load ptr, ptr %42, align 8, !tbaa !10
  call void @free(ptr noundef %195) #5
  br label %196

196:                                              ; preds = %188, %154
  %197 = load ptr, ptr %41, align 8, !tbaa !10
  call void @free(ptr noundef %197) #5
  br label %198

198:                                              ; preds = %196, %137
  %199 = load ptr, ptr %40, align 8, !tbaa !10
  call void @free(ptr noundef %199) #5
  br label %200

200:                                              ; preds = %198, %120
  %201 = load i32, ptr %36, align 4, !tbaa !5
  %202 = icmp eq i32 %201, -1011
  br i1 %202, label %203, label %205

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

205:                                              ; preds = %203, %200
  store i32 0, ptr %43, align 4
  br label %206

206:                                              ; preds = %205, %101, %94, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  %207 = load i32, ptr %43, align 4
  switch i32 %207, label %214 [
    i32 0, label %208
  ]

208:                                              ; preds = %206
  br label %211

209:                                              ; preds = %59
  store i32 -1, ptr %36, align 4, !tbaa !5
  %210 = load i32, ptr %36, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %210)
  br label %211

211:                                              ; preds = %209, %208
  br label %212

212:                                              ; preds = %211, %58
  %213 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %213, ptr %18, align 4
  store i32 1, ptr %43, align 4
  br label %214

214:                                              ; preds = %212, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  %215 = load i32, ptr %18, align 4
  ret i32 %215
}

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

declare void @dtrsyl3_(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, 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_dge_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_dtrsyl3_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, ptr noundef %15, i32 noundef %16) local_unnamed_addr #0 {
  %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 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
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store i8 %1, ptr %18, align 1, !tbaa !5
  store i8 %2, ptr %19, align 1, !tbaa !5
  store i32 %3, ptr %20, align 4, !tbaa !8
  store i32 %4, ptr %21, align 4, !tbaa !8
  store i32 %5, ptr %22, align 4, !tbaa !8
  store i32 %7, ptr %23, align 4, !tbaa !8
  store i32 %9, ptr %24, align 4, !tbaa !8
  store i32 %11, ptr %25, align 4, !tbaa !8
  store i32 %14, ptr %26, align 4, !tbaa !8
  store i32 %16, ptr %27, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #6
  store i32 0, ptr %28, align 4, !tbaa !8
  switch i32 %0, label %70 [
    i32 102, label %32
    i32 101, label %34
  ]

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

34:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #6
  %35 = tail call i32 @llvm.smax.i32(i32 %4, i32 1)
  store i32 %35, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #6
  %36 = tail call i32 @llvm.smax.i32(i32 %5, i32 1)
  store i32 %36, ptr %30, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #6
  store i32 %35, ptr %31, align 4, !tbaa !8
  %37 = icmp slt i32 %7, %4
  br i1 %37, label %.thread44, label %38

38:                                               ; preds = %34
  %39 = icmp slt i32 %9, %5
  br i1 %39, label %.thread44, label %40

40:                                               ; preds = %38
  %41 = icmp slt i32 %11, %5
  br i1 %41, label %.thread44, label %42

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

.thread:                                          ; preds = %42
  store i32 -1011, ptr %28, align 4, !tbaa !8
  br label %68

48:                                               ; preds = %42
  %49 = zext nneg i32 %36 to i64
  %50 = shl nuw nsw i64 %49, 3
  %51 = mul i64 %50, %49
  %52 = tail call noalias ptr @malloc(i64 noundef %51) #7
  %53 = icmp eq ptr %52, null
  br i1 %53, label %.thread42, label %54

.thread42:                                        ; preds = %48
  store i32 -1011, ptr %28, align 4, !tbaa !8
  tail call void @free(ptr noundef nonnull %46) #6
  br label %68

54:                                               ; preds = %48
  %55 = mul i64 %44, %49
  %56 = tail call noalias ptr @malloc(i64 noundef %55) #7
  %57 = icmp eq ptr %56, null
  br i1 %57, label %.critedge, label %58

.critedge:                                        ; preds = %54
  store i32 -1011, ptr %28, align 4, !tbaa !8
  tail call void @free(ptr noundef nonnull %52) #6
  tail call void @free(ptr noundef nonnull %46) #6
  br label %68

58:                                               ; preds = %54
  tail call void @LAPACKE_dge_trans(i32 noundef 101, i32 noundef %4, i32 noundef %4, ptr noundef %6, i32 noundef %7, ptr noundef nonnull %46, i32 noundef %35) #6
  tail call void @LAPACKE_dge_trans(i32 noundef 101, i32 noundef %5, i32 noundef %5, ptr noundef %8, i32 noundef %9, ptr noundef nonnull %52, i32 noundef %36) #6
  tail call void @LAPACKE_dge_trans(i32 noundef 101, i32 noundef %4, i32 noundef %5, ptr noundef %10, i32 noundef %11, ptr noundef nonnull %56, i32 noundef %35) #6
  call void @dtrsyl3_(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %46, ptr noundef nonnull %29, ptr noundef nonnull %52, ptr noundef nonnull %30, ptr noundef nonnull %56, ptr noundef nonnull %31, ptr noundef %12, ptr noundef %13, ptr noundef nonnull %26, ptr noundef %15, ptr noundef nonnull %27, ptr noundef nonnull %28, i64 noundef 1, i64 noundef 1) #6
  %59 = load i32, ptr %28, align 4, !tbaa !8
  %60 = icmp slt i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %58
  %62 = add nsw i32 %59, -1
  store i32 %62, ptr %28, align 4, !tbaa !8
  br label %63

63:                                               ; preds = %61, %58
  %64 = load i32, ptr %21, align 4, !tbaa !8
  %65 = load i32, ptr %22, align 4, !tbaa !8
  %66 = load i32, ptr %31, align 4, !tbaa !8
  call void @LAPACKE_dge_trans(i32 noundef 102, i32 noundef %64, i32 noundef %65, ptr noundef nonnull %56, i32 noundef %66, ptr noundef %10, i32 noundef %11) #6
  call void @free(ptr noundef nonnull %56) #6
  %.pr.pr.pr = load i32, ptr %28, align 4, !tbaa !8
  %67 = icmp eq i32 %.pr.pr.pr, -1011
  call void @free(ptr noundef nonnull %52) #6
  call void @free(ptr noundef nonnull %46) #6
  br i1 %67, label %68, label %69

68:                                               ; preds = %.critedge, %.thread42, %.thread, %63
  call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1011) #6
  %.pre.pre = load i32, ptr %28, align 4, !tbaa !8
  br label %69

.thread44:                                        ; preds = %40, %38, %34
  %.sink = phi i32 [ -8, %34 ], [ -10, %38 ], [ -12, %40 ]
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef %.sink) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #6
  br label %71

69:                                               ; preds = %63, %68
  %.pre = phi i32 [ %.pr.pr.pr, %63 ], [ %.pre.pre, %68 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #6
  br label %71

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

71:                                               ; preds = %32, %70, %69, %.thread44
  %.1 = phi i32 [ %.sink, %.thread44 ], [ %.pre, %69 ], [ -1, %70 ], [ %spec.select, %32 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #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 @dtrsyl3_(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, 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_dge_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