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

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

28:                                               ; preds = %10
  %29 = load ptr, ptr %16, align 8, !tbaa !10
  %30 = load ptr, ptr %18, align 8, !tbaa !10
  %31 = load ptr, ptr %19, align 8, !tbaa !10
  %32 = load ptr, ptr %21, align 8, !tbaa !10
  call void @cheev_(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %29, ptr noundef %17, ptr noundef %30, ptr noundef %31, ptr noundef %20, ptr noundef %32, ptr noundef %22, i64 noundef 1, i64 noundef 1)
  %33 = load i32, ptr %22, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %35, label %38

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

38:                                               ; preds = %35, %28
  br label %143

39:                                               ; preds = %10
  %40 = load i32, ptr %12, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 101
  br i1 %41, label %42, label %140

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

45:                                               ; preds = %42
  br label %48

46:                                               ; preds = %42
  %47 = load i32, ptr %15, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %46, %45
  %49 = phi i32 [ 1, %45 ], [ %47, %46 ]
  store i32 %49, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store ptr null, ptr %24, align 8, !tbaa !10
  %50 = load i32, ptr %17, align 4, !tbaa !5
  %51 = load i32, ptr %15, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %53, label %56

53:                                               ; preds = %48
  store i32 -6, ptr %22, align 4, !tbaa !5
  %54 = load i32, ptr %22, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %54)
  %55 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %55, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %137

56:                                               ; preds = %48
  %57 = load i32, ptr %20, align 4, !tbaa !5
  %58 = icmp eq i32 %57, -1
  br i1 %58, label %59, label %73

59:                                               ; preds = %56
  %60 = load ptr, ptr %16, align 8, !tbaa !10
  %61 = load ptr, ptr %18, align 8, !tbaa !10
  %62 = load ptr, ptr %19, align 8, !tbaa !10
  %63 = load ptr, ptr %21, align 8, !tbaa !10
  call void @cheev_(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %60, ptr noundef %23, ptr noundef %61, ptr noundef %62, ptr noundef %20, ptr noundef %63, ptr noundef %22, i64 noundef 1, i64 noundef 1)
  %64 = load i32, ptr %22, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 0
  br i1 %65, label %66, label %69

66:                                               ; preds = %59
  %67 = load i32, ptr %22, align 4, !tbaa !5
  %68 = sub nsw i32 %67, 1
  br label %71

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

71:                                               ; preds = %69, %66
  %72 = phi i32 [ %68, %66 ], [ %70, %69 ]
  store i32 %72, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %137

73:                                               ; preds = %56
  %74 = load i32, ptr %23, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = mul i64 8, %75
  %77 = load i32, ptr %15, align 4, !tbaa !5
  %78 = icmp sgt i32 1, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %73
  br label %82

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

82:                                               ; preds = %80, %79
  %83 = phi i32 [ 1, %79 ], [ %81, %80 ]
  %84 = sext i32 %83 to i64
  %85 = mul i64 %76, %84
  %86 = call noalias ptr @malloc(i64 noundef %85) #6
  store ptr %86, ptr %24, align 8, !tbaa !10
  %87 = load ptr, ptr %24, align 8, !tbaa !10
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %90

89:                                               ; preds = %82
  store i32 -1011, ptr %22, align 4, !tbaa !5
  br label %131

90:                                               ; preds = %82
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = load i8, ptr %14, align 1, !tbaa !9
  %93 = load i32, ptr %15, align 4, !tbaa !5
  %94 = load ptr, ptr %16, align 8, !tbaa !10
  %95 = load i32, ptr %17, align 4, !tbaa !5
  %96 = load ptr, ptr %24, align 8, !tbaa !10
  %97 = load i32, ptr %23, align 4, !tbaa !5
  call void @LAPACKE_che_trans(i32 noundef %91, i8 noundef signext %92, i32 noundef %93, ptr noundef %94, i32 noundef %95, ptr noundef %96, i32 noundef %97)
  %98 = load ptr, ptr %24, align 8, !tbaa !10
  %99 = load ptr, ptr %18, align 8, !tbaa !10
  %100 = load ptr, ptr %19, align 8, !tbaa !10
  %101 = load ptr, ptr %21, align 8, !tbaa !10
  call void @cheev_(ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %98, ptr noundef %23, ptr noundef %99, ptr noundef %100, ptr noundef %20, ptr noundef %101, ptr noundef %22, i64 noundef 1, i64 noundef 1)
  %102 = load i32, ptr %22, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 0
  br i1 %103, label %104, label %107

104:                                              ; preds = %90
  %105 = load i32, ptr %22, align 4, !tbaa !5
  %106 = sub nsw i32 %105, 1
  store i32 %106, ptr %22, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %104, %90
  %108 = load i8, ptr %13, align 1, !tbaa !9
  %109 = sext i8 %108 to i32
  %110 = icmp eq i32 %109, 86
  br i1 %110, label %115, label %111

111:                                              ; preds = %107
  %112 = load i8, ptr %13, align 1, !tbaa !9
  %113 = sext i8 %112 to i32
  %114 = icmp eq i32 %113, 118
  br i1 %114, label %115, label %122

115:                                              ; preds = %111, %107
  %116 = load i32, ptr %15, align 4, !tbaa !5
  %117 = load i32, ptr %15, align 4, !tbaa !5
  %118 = load ptr, ptr %24, align 8, !tbaa !10
  %119 = load i32, ptr %23, align 4, !tbaa !5
  %120 = load ptr, ptr %16, align 8, !tbaa !10
  %121 = load i32, ptr %17, align 4, !tbaa !5
  call void @LAPACKE_cge_trans(i32 noundef 102, i32 noundef %116, i32 noundef %117, ptr noundef %118, i32 noundef %119, ptr noundef %120, i32 noundef %121)
  br label %129

122:                                              ; preds = %111
  %123 = load i8, ptr %14, align 1, !tbaa !9
  %124 = load i32, ptr %15, align 4, !tbaa !5
  %125 = load ptr, ptr %24, align 8, !tbaa !10
  %126 = load i32, ptr %23, align 4, !tbaa !5
  %127 = load ptr, ptr %16, align 8, !tbaa !10
  %128 = load i32, ptr %17, align 4, !tbaa !5
  call void @LAPACKE_che_trans(i32 noundef 102, i8 noundef signext %123, i32 noundef %124, ptr noundef %125, i32 noundef %126, ptr noundef %127, i32 noundef %128)
  br label %129

129:                                              ; preds = %122, %115
  %130 = load ptr, ptr %24, align 8, !tbaa !10
  call void @free(ptr noundef %130) #5
  br label %131

131:                                              ; preds = %129, %89
  %132 = load i32, ptr %22, align 4, !tbaa !5
  %133 = icmp eq i32 %132, -1011
  br i1 %133, label %134, label %136

134:                                              ; preds = %131
  %135 = load i32, ptr %22, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %135)
  br label %136

136:                                              ; preds = %134, %131
  store i32 0, ptr %25, align 4
  br label %137

137:                                              ; preds = %136, %71, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  %138 = load i32, ptr %25, align 4
  switch i32 %138, label %145 [
    i32 0, label %139
  ]

139:                                              ; preds = %137
  br label %142

140:                                              ; preds = %39
  store i32 -1, ptr %22, align 4, !tbaa !5
  %141 = load i32, ptr %22, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %141)
  br label %142

142:                                              ; preds = %140, %139
  br label %143

143:                                              ; preds = %142, %38
  %144 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %144, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %145

145:                                              ; preds = %143, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %146 = load i32, ptr %11, align 4
  ret i32 %146
}

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

declare void @cheev_(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_che_trans(i32 noundef, i8 noundef signext, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

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

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

18:                                               ; preds = %10
  call void @cheev_(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %4, ptr noundef nonnull %14, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %9, ptr noundef nonnull %16, i64 noundef 1, i64 noundef 1) #6
  %19 = load i32, ptr %16, align 4, !tbaa !8
  %.lobit37 = ashr i32 %19, 31
  %spec.select = add nsw i32 %19, %.lobit37
  br label %55

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

23:                                               ; preds = %20
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -6) #6
  br label %53

24:                                               ; preds = %20
  %25 = icmp eq i32 %8, -1
  br i1 %25, label %26, label %29

26:                                               ; preds = %24
  call void @cheev_(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %4, ptr noundef nonnull %17, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %9, ptr noundef nonnull %16, i64 noundef 1, i64 noundef 1) #6
  %27 = load i32, ptr %16, align 4
  %.lobit = ashr i32 %27, 31
  %28 = add nsw i32 %.lobit, %27
  br label %53

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

.thread:                                          ; preds = %29
  store i32 -1011, ptr %16, align 4, !tbaa !8
  br label %52

35:                                               ; preds = %29
  tail call void @LAPACKE_che_trans(i32 noundef 101, i8 noundef signext %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef nonnull %33, i32 noundef %21) #6
  call void @cheev_(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %33, ptr noundef nonnull %17, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %9, ptr noundef nonnull %16, i64 noundef 1, i64 noundef 1) #6
  %36 = load i32, ptr %16, align 4, !tbaa !8
  %37 = icmp slt i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = add nsw i32 %36, -1
  store i32 %39, ptr %16, align 4, !tbaa !8
  br label %40

40:                                               ; preds = %38, %35
  %41 = load i8, ptr %11, align 1
  %42 = and i8 %41, -33
  %or.cond = icmp eq i8 %42, 86
  br i1 %or.cond, label %43, label %46

43:                                               ; preds = %40
  %44 = load i32, ptr %13, align 4, !tbaa !8
  %45 = load i32, ptr %17, align 4, !tbaa !8
  call void @LAPACKE_cge_trans(i32 noundef 102, i32 noundef %44, i32 noundef %44, ptr noundef nonnull %33, i32 noundef %45, ptr noundef %4, i32 noundef %5) #6
  br label %50

46:                                               ; preds = %40
  %47 = load i8, ptr %12, align 1, !tbaa !5
  %48 = load i32, ptr %13, align 4, !tbaa !8
  %49 = load i32, ptr %17, align 4, !tbaa !8
  call void @LAPACKE_che_trans(i32 noundef 102, i8 noundef signext %47, i32 noundef %48, ptr noundef nonnull %33, i32 noundef %49, ptr noundef %4, i32 noundef %5) #6
  br label %50

50:                                               ; preds = %43, %46
  call void @free(ptr noundef nonnull %33) #6
  %.pr = load i32, ptr %16, align 4, !tbaa !8
  %51 = icmp eq i32 %.pr, -1011
  br i1 %51, label %52, label %.thread33

52:                                               ; preds = %.thread, %50
  call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1011) #6
  %.pre.pre = load i32, ptr %16, align 4, !tbaa !8
  br label %.thread33

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

53:                                               ; preds = %26, %23
  %.026 = phi i32 [ -6, %23 ], [ %28, %26 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  br label %55

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

55:                                               ; preds = %18, %54, %.thread33, %53
  %.1 = phi i32 [ %.026, %53 ], [ %.pre, %.thread33 ], [ -1, %54 ], [ %spec.select, %18 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #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 @cheev_(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_che_trans(i32 noundef, i8 noundef signext, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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