; LLVM IR from shellphish/how2heap :: glibc_2.32 (fastbin_reverse_into_tcache)

; 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"

@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [259 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [248 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [189 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [320 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [827 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [14 x ptr], align 16
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [6 x i64], align 16
  %6 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  %7 = load ptr, ptr @stdout, align 8, !tbaa !5
  call void @setbuf(ptr noundef %7, ptr noundef null) #7
  %8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 112, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %10

10:                                               ; preds = %17, %0
  %11 = load i64, ptr %3, align 8, !tbaa !9
  %12 = icmp ult i64 %11, 14
  br i1 %12, label %13, label %20

13:                                               ; preds = %10
  %14 = call noalias ptr @malloc(i64 noundef 64) #8
  %15 = load i64, ptr %3, align 8, !tbaa !9
  %16 = getelementptr inbounds [14 x ptr], ptr %2, i64 0, i64 %15
  store ptr %14, ptr %16, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %13
  %18 = load i64, ptr %3, align 8, !tbaa !9
  %19 = add i64 %18, 1
  store i64 %19, ptr %3, align 8, !tbaa !9
  br label %10, !llvm.loop !11

20:                                               ; preds = %10
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %22

22:                                               ; preds = %29, %20
  %23 = load i64, ptr %3, align 8, !tbaa !9
  %24 = icmp ult i64 %23, 7
  br i1 %24, label %25, label %32

25:                                               ; preds = %22
  %26 = load i64, ptr %3, align 8, !tbaa !9
  %27 = getelementptr inbounds [14 x ptr], ptr %2, i64 0, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  call void @free(ptr noundef %28) #7
  br label %29

29:                                               ; preds = %25
  %30 = load i64, ptr %3, align 8, !tbaa !9
  %31 = add i64 %30, 1
  store i64 %31, ptr %3, align 8, !tbaa !9
  br label %22, !llvm.loop !13

32:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %33 = getelementptr inbounds [14 x ptr], ptr %2, i64 0, i64 7
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  store ptr %34, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %35)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %37) #7
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i64 8, ptr %3, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %46, %32
  %40 = load i64, ptr %3, align 8, !tbaa !9
  %41 = icmp ult i64 %40, 14
  br i1 %41, label %42, label %49

42:                                               ; preds = %39
  %43 = load i64, ptr %3, align 8, !tbaa !9
  %44 = getelementptr inbounds [14 x ptr], ptr %2, i64 0, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  call void @free(ptr noundef %45) #7
  br label %46

46:                                               ; preds = %42
  %47 = load i64, ptr %3, align 8, !tbaa !9
  %48 = add i64 %47, 1
  store i64 %48, ptr %3, align 8, !tbaa !9
  br label %39, !llvm.loop !14

49:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #7
  %50 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %50, i8 -51, i64 48, i1 false)
  %51 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 2
  %52 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 2
  %53 = load i64, ptr %52, align 16, !tbaa !9
  %54 = inttoptr i64 %53 to ptr
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %51, ptr noundef %54)
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %56)
  %58 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %59 = ptrtoint ptr %58 to i64
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = ptrtoint ptr %60 to i64
  %62 = ashr i64 %61, 12
  %63 = xor i64 %59, %62
  %64 = inttoptr i64 %63 to ptr
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %64, ptr %65, align 8, !tbaa !5
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %74, %49
  %68 = load i64, ptr %3, align 8, !tbaa !9
  %69 = icmp ult i64 %68, 7
  br i1 %69, label %70, label %77

70:                                               ; preds = %67
  %71 = call noalias ptr @malloc(i64 noundef 64) #8
  %72 = load i64, ptr %3, align 8, !tbaa !9
  %73 = getelementptr inbounds [14 x ptr], ptr %2, i64 0, i64 %72
  store ptr %71, ptr %73, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %70
  %75 = load i64, ptr %3, align 8, !tbaa !9
  %76 = add i64 %75, 1
  store i64 %76, ptr %3, align 8, !tbaa !9
  br label %67, !llvm.loop !15

77:                                               ; preds = %67
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %90, %77
  %80 = load i64, ptr %3, align 8, !tbaa !9
  %81 = icmp ult i64 %80, 6
  br i1 %81, label %82, label %93

82:                                               ; preds = %79
  %83 = load i64, ptr %3, align 8, !tbaa !9
  %84 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 %83
  %85 = load i64, ptr %3, align 8, !tbaa !9
  %86 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = inttoptr i64 %87 to ptr
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %84, ptr noundef %88)
  br label %90

90:                                               ; preds = %82
  %91 = load i64, ptr %3, align 8, !tbaa !9
  %92 = add i64 %91, 1
  store i64 %92, ptr %3, align 8, !tbaa !9
  br label %79, !llvm.loop !16

93:                                               ; preds = %79
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %95 = call noalias ptr @malloc(i64 noundef 64) #8
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %107, %93
  %97 = load i64, ptr %3, align 8, !tbaa !9
  %98 = icmp ult i64 %97, 6
  br i1 %98, label %99, label %110

99:                                               ; preds = %96
  %100 = load i64, ptr %3, align 8, !tbaa !9
  %101 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 %100
  %102 = load i64, ptr %3, align 8, !tbaa !9
  %103 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = inttoptr i64 %104 to ptr
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %101, ptr noundef %105)
  br label %107

107:                                              ; preds = %99
  %108 = load i64, ptr %3, align 8, !tbaa !9
  %109 = add i64 %108, 1
  store i64 %109, ptr %3, align 8, !tbaa !9
  br label %96, !llvm.loop !17

110:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %111 = call noalias ptr @malloc(i64 noundef 64) #8
  store ptr %111, ptr %6, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %112)
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 2
  %116 = icmp eq ptr %114, %115
  br i1 %116, label %117, label %118

117:                                              ; preds = %110
  br label %119

118:                                              ; preds = %110
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.13, i32 noundef 101, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 112, ptr %2) #7
  ret i32 0
}

; Function Attrs: nounwind
declare void @setbuf(ptr noundef, ptr noundef) #1

declare i32 @printf(ptr noundef, ...) #2

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { noreturn 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


; 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"

@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [259 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [248 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [189 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [320 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [827 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [6 x i64], align 16
  %2 = load ptr, ptr @stdout, align 8, !tbaa !5
  tail call void @setbuf(ptr noundef %2, ptr noundef null) #7
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %5 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #8
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %5)
  tail call void @free(ptr noundef %5) #7
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %1, i8 -51, i64 48, i1 false)
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef nonnull %9, ptr noundef nonnull inttoptr (i64 -3617008641903833651 to ptr))
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %5)
  %12 = ptrtoint ptr %1 to i64
  %13 = ptrtoint ptr %5 to i64
  %14 = ashr i64 %13, 12
  %15 = xor i64 %14, %12
  %16 = inttoptr i64 %15 to ptr
  store ptr %16, ptr %5, align 8, !tbaa !5
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %19 = load i64, ptr %1, align 16, !tbaa !9
  %20 = inttoptr i64 %19 to ptr
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %1, ptr noundef %20)
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = inttoptr i64 %23 to ptr
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %22, ptr noundef %24)
  %26 = load i64, ptr %9, align 16, !tbaa !9
  %27 = inttoptr i64 %26 to ptr
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %9, ptr noundef %27)
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  %30 = load i64, ptr %29, align 8, !tbaa !9
  %31 = inttoptr i64 %30 to ptr
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %29, ptr noundef %31)
  %33 = getelementptr inbounds i8, ptr %1, i64 32
  %34 = load i64, ptr %33, align 16, !tbaa !9
  %35 = inttoptr i64 %34 to ptr
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %33, ptr noundef %35)
  %37 = getelementptr inbounds i8, ptr %1, i64 40
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = inttoptr i64 %38 to ptr
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %37, ptr noundef %39)
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %42 = load i64, ptr %1, align 16, !tbaa !9
  %43 = inttoptr i64 %42 to ptr
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %1, ptr noundef %43)
  %45 = load i64, ptr %22, align 8, !tbaa !9
  %46 = inttoptr i64 %45 to ptr
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %22, ptr noundef %46)
  %48 = load i64, ptr %9, align 16, !tbaa !9
  %49 = inttoptr i64 %48 to ptr
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %9, ptr noundef %49)
  %51 = load i64, ptr %29, align 8, !tbaa !9
  %52 = inttoptr i64 %51 to ptr
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %29, ptr noundef %52)
  %54 = load i64, ptr %33, align 16, !tbaa !9
  %55 = inttoptr i64 %54 to ptr
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %33, ptr noundef %55)
  %57 = load i64, ptr %37, align 8, !tbaa !9
  %58 = inttoptr i64 %57 to ptr
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %37, ptr noundef %58)
  %60 = call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #8
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %60)
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.13, i32 noundef 101, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable
}

; Function Attrs: nofree nounwind
declare void @setbuf(ptr nocapture noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

attributes #0 = { noreturn 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 = { nofree 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { noreturn 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass