; LLVM IR from shellphish/how2heap :: glibc_2.31 (unsafe_unlink)

; 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 [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [112 x i8], align 1
@chunk0_ptr = external dso_local global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [179 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [142 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [154 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [80 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 i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [8 x i8], align 1
  %6 = load ptr, ptr @stdout, align 8, !tbaa !5
  call void @setbuf(ptr noundef %6, ptr noundef null) #6
  %7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 1056, ptr %1, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 2, ptr %2, align 4, !tbaa !9
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %12 = load i32, ptr %1, align 4, !tbaa !9
  %13 = sext i32 %12 to i64
  %14 = call noalias ptr @malloc(i64 noundef %13) #7
  store ptr %14, ptr @chunk0_ptr, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %15 = load i32, ptr %1, align 4, !tbaa !9
  %16 = sext i32 %15 to i64
  %17 = call noalias ptr @malloc(i64 noundef %16) #7
  store ptr %17, ptr %3, align 8, !tbaa !5
  %18 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @chunk0_ptr, ptr noundef %18)
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %20)
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %24 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %25 = getelementptr inbounds i64, ptr %24, i64 -1
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %27 = sub i64 %26, 16
  %28 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %29 = getelementptr inbounds i64, ptr %28, i64 1
  store i64 %27, ptr %29, align 8, !tbaa !11
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %31 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %32 = getelementptr inbounds i64, ptr %31, i64 2
  store i64 sub (i64 ptrtoint (ptr @chunk0_ptr to i64), i64 24), ptr %32, align 8, !tbaa !11
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %35 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %36 = getelementptr inbounds i64, ptr %35, i64 3
  store i64 sub (i64 ptrtoint (ptr @chunk0_ptr to i64), i64 16), ptr %36, align 8, !tbaa !11
  %37 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %38 = getelementptr inbounds i64, ptr %37, i64 2
  %39 = load i64, ptr %38, align 8, !tbaa !11
  %40 = inttoptr i64 %39 to ptr
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %40)
  %42 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %43 = getelementptr inbounds i64, ptr %42, i64 3
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = inttoptr i64 %44 to ptr
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %45)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = load i32, ptr %2, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = sub i64 0, %50
  %52 = getelementptr inbounds i64, ptr %48, i64 %51
  store ptr %52, ptr %4, align 8, !tbaa !5
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %55 = load i32, ptr %1, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds i64, ptr %57, i64 0
  store i64 %56, ptr %58, align 8, !tbaa !11
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds i64, ptr %59, i64 0
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = inttoptr i64 %61 to ptr
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %62)
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds i64, ptr %65, i64 1
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = and i64 %67, -2
  store i64 %68, ptr %66, align 8, !tbaa !11
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %71) #6
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %73 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %74 = call ptr @strcpy(ptr noundef %73, ptr noundef @.str.22) #6
  %75 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %76 = ptrtoint ptr %75 to i64
  %77 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %78 = getelementptr inbounds i64, ptr %77, i64 3
  store i64 %76, ptr %78, align 8, !tbaa !11
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  %80 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %80)
  %82 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %83 = getelementptr inbounds i64, ptr %82, i64 0
  store i64 4702111234491826754, ptr %83, align 8, !tbaa !11
  %84 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, ptr noundef %84)
  %86 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %87 = load i64, ptr %86, align 1, !tbaa !11
  %88 = icmp eq i64 %87, 4702111234491826754
  br i1 %88, label %89, label %90

89:                                               ; preds = %0
  br label %91

90:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.27, i32 noundef 62, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

91:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  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: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #1

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

; 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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !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"

@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [112 x i8], align 1
@chunk0_ptr = external dso_local global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [179 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [142 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [154 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [8 x i8], align 8
  %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 i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %8 = tail call noalias dereferenceable_or_null(1056) ptr @malloc(i64 noundef 1056) #8
  store ptr %8, ptr @chunk0_ptr, align 8, !tbaa !5
  %9 = tail call noalias dereferenceable_or_null(1056) ptr @malloc(i64 noundef 1056) #8
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef nonnull @chunk0_ptr, ptr noundef %8)
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %9)
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %14 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 -8
  %16 = load i64, ptr %15, align 8, !tbaa !9
  %17 = add i64 %16, -16
  %18 = getelementptr inbounds i8, ptr %14, i64 8
  store i64 %17, ptr %18, align 8, !tbaa !9
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %20 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store i64 sub (i64 ptrtoint (ptr @chunk0_ptr to i64), i64 24), ptr %21, align 8, !tbaa !9
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %24 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 24
  store i64 sub (i64 ptrtoint (ptr @chunk0_ptr to i64), i64 16), ptr %25, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %24, i64 16
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %28 = inttoptr i64 %27 to ptr
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %28)
  %30 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 24
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = inttoptr i64 %32 to ptr
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %33)
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %36 = getelementptr inbounds i8, ptr %9, i64 -16
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  store i64 1056, ptr %36, align 8, !tbaa !9
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef nonnull inttoptr (i64 1056 to ptr))
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  %41 = getelementptr inbounds i8, ptr %9, i64 -8
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = and i64 %42, -2
  store i64 %43, ptr %41, align 8, !tbaa !9
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  tail call void @free(ptr noundef %9) #7
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %47 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.22) #7
  %48 = ptrtoint ptr %1 to i64
  %49 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  store i64 %48, ptr %50, align 8, !tbaa !9
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23)
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull %1)
  %53 = load ptr, ptr @chunk0_ptr, align 8, !tbaa !5
  store i64 4702111234491826754, ptr %53, align 8, !tbaa !9
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull %1)
  %55 = load i64, ptr %1, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 4702111234491826754
  br i1 %56, label %58, label %57

57:                                               ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.27, i32 noundef 62, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

58:                                               ; preds = %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0
}

; 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 nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

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

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

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 = { 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 nofree nounwind willreturn memory(argmem: readwrite) "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 #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,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass