; LLVM IR from adventure-db/adventure :: tests/struct (trie_tests)

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

@val1 = external dso_local global ptr, align 8
@val2 = external dso_local global ptr, align 8
@trie = external hidden global ptr, align 8
@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [43 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #1

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @test_add_get() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = load ptr, ptr @trie, align 8, !tbaa !5
  %7 = load ptr, ptr @val1, align 8, !tbaa !5
  %8 = call i32 @trie_add(ptr noundef %6, ptr noundef @.str.12, ptr noundef %7)
  %9 = load ptr, ptr @trie, align 8, !tbaa !5
  %10 = load ptr, ptr @val2, align 8, !tbaa !5
  %11 = call i32 @trie_add(ptr noundef %9, ptr noundef @.str.13, ptr noundef %10)
  %12 = load ptr, ptr @trie, align 8, !tbaa !5
  %13 = call i32 @trie_add(ptr noundef %12, ptr noundef @.str.14, ptr noundef @.str.15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %14 = load ptr, ptr @trie, align 8, !tbaa !5
  %15 = call ptr @trie_get(ptr noundef %14, ptr noundef @.str.14)
  store ptr %15, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = icmp eq ptr %16, @.str.15
  br i1 %17, label %31, label %18

18:                                               ; preds = %0
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call ptr @__errno_location() #7
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  br label %28

24:                                               ; preds = %18
  %25 = call ptr @__errno_location() #7
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = call ptr @strerror(i32 noundef %26) #6
  br label %28

28:                                               ; preds = %24, %23
  %29 = phi ptr [ @.str.10, %23 ], [ %27, %24 ]
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.16, ptr noundef @.str.9, i32 noundef 38, ptr noundef %29) #6
  store ptr @.str.17, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %114

31:                                               ; preds = %0
  %32 = load ptr, ptr @trie, align 8, !tbaa !5
  %33 = call ptr @trie_get(ptr noundef %32, ptr noundef @.str.12)
  store ptr %33, ptr %2, align 8, !tbaa !5
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = load ptr, ptr @val1, align 8, !tbaa !5
  %36 = icmp eq ptr %34, %35
  br i1 %36, label %50, label %37

37:                                               ; preds = %31
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call ptr @__errno_location() #7
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %37
  br label %47

43:                                               ; preds = %37
  %44 = call ptr @__errno_location() #7
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = call ptr @strerror(i32 noundef %45) #6
  br label %47

47:                                               ; preds = %43, %42
  %48 = phi ptr [ @.str.10, %42 ], [ %46, %43 ]
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.18, ptr noundef @.str.9, i32 noundef 41, ptr noundef %48) #6
  store ptr @.str.19, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %114

50:                                               ; preds = %31
  %51 = load ptr, ptr @trie, align 8, !tbaa !5
  %52 = call ptr @trie_get(ptr noundef %51, ptr noundef @.str.13)
  store ptr %52, ptr %2, align 8, !tbaa !5
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = load ptr, ptr @val2, align 8, !tbaa !5
  %55 = icmp eq ptr %53, %54
  br i1 %55, label %69, label %56

56:                                               ; preds = %50
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = call ptr @__errno_location() #7
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %56
  br label %66

62:                                               ; preds = %56
  %63 = call ptr @__errno_location() #7
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = call ptr @strerror(i32 noundef %64) #6
  br label %66

66:                                               ; preds = %62, %61
  %67 = phi ptr [ @.str.10, %61 ], [ %65, %62 ]
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.20, ptr noundef @.str.9, i32 noundef 44, ptr noundef %67) #6
  store ptr @.str.21, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %114

69:                                               ; preds = %50
  %70 = load ptr, ptr @trie, align 8, !tbaa !5
  %71 = call ptr @trie_get(ptr noundef %70, ptr noundef @.str.22)
  store ptr %71, ptr %2, align 8, !tbaa !5
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = icmp eq ptr %72, null
  br i1 %73, label %87, label %74

74:                                               ; preds = %69
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call ptr @__errno_location() #7
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %74
  br label %84

80:                                               ; preds = %74
  %81 = call ptr @__errno_location() #7
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = call ptr @strerror(i32 noundef %82) #6
  br label %84

84:                                               ; preds = %80, %79
  %85 = phi ptr [ @.str.10, %79 ], [ %83, %80 ]
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.23, ptr noundef @.str.9, i32 noundef 47, ptr noundef %85) #6
  store ptr @.str.24, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %114

87:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %88 = call ptr (...) @list_create()
  store ptr %88, ptr %4, align 8, !tbaa !5
  %89 = load ptr, ptr @trie, align 8, !tbaa !5
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  call void @trie_get_keys(ptr noundef %89, ptr noundef @.str.25, ptr noundef %90)
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = call i64 @list_count(ptr noundef %91)
  %93 = icmp eq i64 %92, 2
  br i1 %93, label %107, label %94

94:                                               ; preds = %87
  %95 = load ptr, ptr @stderr, align 8, !tbaa !5
  %96 = call ptr @__errno_location() #7
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %94
  br label %104

100:                                              ; preds = %94
  %101 = call ptr @__errno_location() #7
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = call ptr @strerror(i32 noundef %102) #6
  br label %104

104:                                              ; preds = %100, %99
  %105 = phi ptr [ @.str.10, %99 ], [ %103, %100 ]
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.26, ptr noundef @.str.9, i32 noundef 51, ptr noundef %105) #6
  store ptr @.str.27, ptr %1, align 8
  store i32 1, ptr %3, align 4
  br label %113

107:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = call ptr @list_pop(ptr noundef %108)
  store ptr %109, ptr %5, align 8, !tbaa !5
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = call ptr @list_pop(ptr noundef %110)
  store ptr %111, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  call void @list_destroy(ptr noundef %112)
  store ptr null, ptr %1, align 8
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %113

113:                                              ; preds = %107, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %114

114:                                              ; preds = %113, %84, %66, %47, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %115 = load ptr, ptr %1, align 8
  ret ptr %115
}

declare i32 @trie_add(ptr noundef, ptr noundef, ptr noundef) #3

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

declare ptr @trie_get(ptr noundef, ptr noundef) #3

declare ptr @list_create(...) #3

declare void @trie_get_keys(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @list_count(ptr noundef) #5

declare ptr @list_pop(ptr noundef) #3

declare void @list_destroy(ptr noundef) #3

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

attributes #0 = { 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 #1 = { nounwind willreturn memory(none) "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 = { 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 #3 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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}


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

@val1 = external dso_local local_unnamed_addr global ptr, align 8
@val2 = external dso_local local_unnamed_addr global ptr, align 8
@trie = external hidden local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [43 x i8], align 1

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #1

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @test_add_get() local_unnamed_addr #3 {
  %1 = load ptr, ptr @trie, align 8, !tbaa !5
  %2 = load ptr, ptr @val1, align 8, !tbaa !5
  %3 = tail call i32 @trie_add(ptr noundef %1, ptr noundef nonnull @.str.12, ptr noundef %2) #6
  %4 = load ptr, ptr @trie, align 8, !tbaa !5
  %5 = load ptr, ptr @val2, align 8, !tbaa !5
  %6 = tail call i32 @trie_add(ptr noundef %4, ptr noundef nonnull @.str.13, ptr noundef %5) #6
  %7 = load ptr, ptr @trie, align 8, !tbaa !5
  %8 = tail call i32 @trie_add(ptr noundef %7, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15) #6
  %9 = load ptr, ptr @trie, align 8, !tbaa !5
  %10 = tail call ptr @trie_get(ptr noundef %9, ptr noundef nonnull @.str.14) #6
  %11 = icmp eq ptr %10, @.str.15
  br i1 %11, label %22, label %12

12:                                               ; preds = %0
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call ptr @__errno_location() #7
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %19, label %17

17:                                               ; preds = %12
  %18 = tail call ptr @strerror(i32 noundef %15) #6
  br label %19

19:                                               ; preds = %12, %17
  %20 = phi ptr [ %18, %17 ], [ @.str.10, %12 ]
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.9, i32 noundef 38, ptr noundef %20) #8
  br label %84

22:                                               ; preds = %0
  %23 = load ptr, ptr @trie, align 8, !tbaa !5
  %24 = tail call ptr @trie_get(ptr noundef %23, ptr noundef nonnull @.str.12) #6
  %25 = load ptr, ptr @val1, align 8, !tbaa !5
  %26 = icmp eq ptr %24, %25
  br i1 %26, label %37, label %27

27:                                               ; preds = %22
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = tail call ptr @__errno_location() #7
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %34, label %32

32:                                               ; preds = %27
  %33 = tail call ptr @strerror(i32 noundef %30) #6
  br label %34

34:                                               ; preds = %27, %32
  %35 = phi ptr [ %33, %32 ], [ @.str.10, %27 ]
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.9, i32 noundef 41, ptr noundef %35) #8
  br label %84

37:                                               ; preds = %22
  %38 = load ptr, ptr @trie, align 8, !tbaa !5
  %39 = tail call ptr @trie_get(ptr noundef %38, ptr noundef nonnull @.str.13) #6
  %40 = load ptr, ptr @val2, align 8, !tbaa !5
  %41 = icmp eq ptr %39, %40
  br i1 %41, label %52, label %42

42:                                               ; preds = %37
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = tail call ptr @__errno_location() #7
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %49, label %47

47:                                               ; preds = %42
  %48 = tail call ptr @strerror(i32 noundef %45) #6
  br label %49

49:                                               ; preds = %42, %47
  %50 = phi ptr [ %48, %47 ], [ @.str.10, %42 ]
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.9, i32 noundef 44, ptr noundef %50) #8
  br label %84

52:                                               ; preds = %37
  %53 = load ptr, ptr @trie, align 8, !tbaa !5
  %54 = tail call ptr @trie_get(ptr noundef %53, ptr noundef nonnull @.str.22) #6
  %55 = icmp eq ptr %54, null
  br i1 %55, label %66, label %56

56:                                               ; preds = %52
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = tail call ptr @__errno_location() #7
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %63, label %61

61:                                               ; preds = %56
  %62 = tail call ptr @strerror(i32 noundef %59) #6
  br label %63

63:                                               ; preds = %56, %61
  %64 = phi ptr [ %62, %61 ], [ @.str.10, %56 ]
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.9, i32 noundef 47, ptr noundef %64) #8
  br label %84

66:                                               ; preds = %52
  %67 = tail call ptr (...) @list_create() #6
  %68 = load ptr, ptr @trie, align 8, !tbaa !5
  tail call void @trie_get_keys(ptr noundef %68, ptr noundef nonnull @.str.25, ptr noundef %67) #6
  %69 = tail call i64 @list_count(ptr noundef %67)
  %70 = icmp eq i64 %69, 2
  br i1 %70, label %81, label %71

71:                                               ; preds = %66
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = tail call ptr @__errno_location() #7
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %78, label %76

76:                                               ; preds = %71
  %77 = tail call ptr @strerror(i32 noundef %74) #6
  br label %78

78:                                               ; preds = %71, %76
  %79 = phi ptr [ %77, %76 ], [ @.str.10, %71 ]
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.9, i32 noundef 51, ptr noundef %79) #8
  br label %84

81:                                               ; preds = %66
  %82 = tail call ptr @list_pop(ptr noundef %67) #6
  %83 = tail call ptr @list_pop(ptr noundef %67) #6
  tail call void @list_destroy(ptr noundef %67) #6
  br label %84

84:                                               ; preds = %78, %81, %63, %49, %34, %19
  %.1 = phi ptr [ @.str.24, %63 ], [ @.str.21, %49 ], [ @.str.19, %34 ], [ @.str.17, %19 ], [ null, %81 ], [ @.str.27, %78 ]
  ret ptr %.1
}

declare i32 @trie_add(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @trie_get(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @list_create(...) local_unnamed_addr #4

declare void @trie_get_keys(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @list_count(ptr noundef) local_unnamed_addr #5

declare ptr @list_pop(ptr noundef) local_unnamed_addr #4

declare void @list_destroy(ptr noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { 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 #3 = { 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 #4 = { "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 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }
attributes #8 = { cold 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}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass