; LLVM IR from buzz-lang/Buzz :: src/buzz (buzzoutmsg)

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

%struct.buzzvm_s = type { ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, ptr, ptr, ptr, ptr, i32, i32, ptr, i16, ptr, i32 }
%struct.buzzoutmsg_queue_s = type { [6 x ptr], ptr }
%struct.buzzoutmsg_vstig_s = type { i32, i16, ptr, ptr }
%struct.buzzvstig_elem_s = type { ptr, i16, i16 }
%struct.buzzdarray_s = type { ptr, i64, i32, i32, ptr }

; Function Attrs: nounwind uwtable
declare dso_local i32 @buzzoutmsg_obj_hash(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @buzzoutmsg_obj_cmp(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @buzzoutmsg_vstig_cmp(ptr noundef, ptr noundef) #0

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

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

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

declare void @buzzdarray_insert(ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @buzzoutmsg_queue_append_vstig(ptr noundef %0, i32 noundef %1, i16 noundef zeroext %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i16, align 2
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i16 %2, ptr %8, align 2, !tbaa !11
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.buzzvm_s, ptr %18, i32 0, i32 17
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = getelementptr inbounds %struct.buzzoutmsg_queue_s, ptr %20, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = call ptr @buzzdict_rawget(ptr noundef %22, ptr noundef %8)
  store ptr %23, ptr %13, align 8, !tbaa !5
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %31

26:                                               ; preds = %5
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %28, ptr %12, align 8, !tbaa !5
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = call ptr @buzzdict_rawget(ptr noundef %29, ptr noundef %9)
  store ptr %30, ptr %11, align 8, !tbaa !5
  br label %38

31:                                               ; preds = %5
  %32 = call ptr @buzzdict_new(i32 noundef 10, i32 noundef 8, i32 noundef 8, ptr noundef @buzzoutmsg_obj_hash, ptr noundef @buzzoutmsg_obj_cmp, ptr noundef null)
  store ptr %32, ptr %12, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.buzzvm_s, ptr %33, i32 0, i32 17
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = getelementptr inbounds %struct.buzzoutmsg_queue_s, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  call void @buzzdict_set(ptr noundef %37, ptr noundef %8, ptr noundef %12)
  br label %38

38:                                               ; preds = %31, %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 -1, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 -1, ptr %15, align 4, !tbaa !9
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %70

41:                                               ; preds = %38
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.buzzoutmsg_vstig_s, ptr %43, i32 0, i32 3
  %45 = load ptr, ptr %44, align 8, !tbaa !17
  %46 = getelementptr inbounds %struct.buzzvstig_elem_s, ptr %45, i32 0, i32 1
  %47 = load i16, ptr %46, align 8, !tbaa !19
  %48 = zext i16 %47 to i32
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.buzzvstig_elem_s, ptr %49, i32 0, i32 1
  %51 = load i16, ptr %50, align 8, !tbaa !19
  %52 = zext i16 %51 to i32
  %53 = icmp sge i32 %48, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %41
  store i32 1, ptr %16, align 4
  br label %123

55:                                               ; preds = %41
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.buzzoutmsg_vstig_s, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 8, !tbaa !21
  store i32 %59, ptr %14, align 4, !tbaa !9
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.buzzvm_s, ptr %60, i32 0, i32 17
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = getelementptr inbounds %struct.buzzoutmsg_queue_s, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [6 x ptr], ptr %63, i64 0, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = call i32 @buzzdarray_find(ptr noundef %67, ptr noundef @buzzoutmsg_vstig_cmp, ptr noundef %68)
  store i32 %69, ptr %15, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %55, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %71 = call noalias ptr @malloc(i64 noundef 24) #5
  store ptr %71, ptr %17, align 8, !tbaa !5
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.buzzoutmsg_vstig_s, ptr %73, i32 0, i32 0
  store i32 %72, ptr %74, align 8, !tbaa !22
  %75 = load i16, ptr %8, align 2, !tbaa !11
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.buzzoutmsg_vstig_s, ptr %76, i32 0, i32 1
  store i16 %75, ptr %77, align 4, !tbaa !22
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = call ptr @buzzheap_clone(ptr noundef %78, ptr noundef %79)
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.buzzoutmsg_vstig_s, ptr %81, i32 0, i32 2
  store ptr %80, ptr %82, align 8, !tbaa !22
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = call ptr @buzzvstig_elem_clone(ptr noundef %83, ptr noundef %84)
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.buzzoutmsg_vstig_s, ptr %86, i32 0, i32 3
  store ptr %85, ptr %87, align 8, !tbaa !22
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.buzzoutmsg_vstig_s, ptr %89, i32 0, i32 2
  call void @buzzdict_set(ptr noundef %88, ptr noundef %90, ptr noundef %17)
  %91 = load i32, ptr %14, align 4, !tbaa !9
  %92 = icmp sgt i32 %91, -1
  br i1 %92, label %93, label %103

93:                                               ; preds = %70
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.buzzvm_s, ptr %94, i32 0, i32 17
  %96 = load ptr, ptr %95, align 8, !tbaa !13
  %97 = getelementptr inbounds %struct.buzzoutmsg_queue_s, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [6 x ptr], ptr %97, i64 0, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = load i32, ptr %15, align 4, !tbaa !9
  call void @buzzdarray_remove(ptr noundef %101, i32 noundef %102)
  br label %103

103:                                              ; preds = %93, %70
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.buzzvm_s, ptr %104, i32 0, i32 17
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = getelementptr inbounds %struct.buzzoutmsg_queue_s, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [6 x ptr], ptr %107, i64 0, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.buzzvm_s, ptr %112, i32 0, i32 17
  %114 = load ptr, ptr %113, align 8, !tbaa !13
  %115 = getelementptr inbounds %struct.buzzoutmsg_queue_s, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %7, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [6 x ptr], ptr %115, i64 0, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.buzzdarray_s, ptr %119, i32 0, i32 1
  %121 = load i64, ptr %120, align 8, !tbaa !23
  %122 = trunc i64 %121 to i32
  call void @buzzdarray_insert(ptr noundef %111, i32 noundef %122, ptr noundef %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  store i32 0, ptr %16, align 4
  br label %123

123:                                              ; preds = %103, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %124 = load i32, ptr %16, align 4
  switch i32 %124, label %126 [
    i32 0, label %125
    i32 1, label %125
  ]

125:                                              ; preds = %123, %123
  ret void

126:                                              ; preds = %123
  unreachable
}

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

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

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

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

declare void @buzzdarray_remove(ptr noundef, i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { nounwind }
attributes #5 = { 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 = !{!"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 = !{!"short", !7, i64 0}
!13 = !{!14, !6, i64 128}
!14 = !{!"buzzvm_s", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !12, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !10, i64 152, !10, i64 156, !6, i64 160, !12, i64 168, !6, i64 176, !10, i64 184}
!15 = !{!16, !6, i64 48}
!16 = !{!"buzzoutmsg_queue_s", !7, i64 0, !6, i64 48}
!17 = !{!18, !6, i64 16}
!18 = !{!"buzzoutmsg_vstig_s", !10, i64 0, !12, i64 4, !6, i64 8, !6, i64 16}
!19 = !{!20, !12, i64 8}
!20 = !{!"buzzvstig_elem_s", !6, i64 0, !12, i64 8, !12, i64 10}
!21 = !{!18, !10, i64 0}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !25, i64 8}
!24 = !{!"buzzdarray_s", !6, i64 0, !25, i64 8, !10, i64 16, !10, i64 20, !6, i64 24}
!25 = !{!"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"

; Function Attrs: nounwind uwtable
declare dso_local i32 @buzzoutmsg_obj_hash(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @buzzoutmsg_obj_cmp(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @buzzoutmsg_vstig_cmp(ptr noundef, ptr noundef) #0

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

declare ptr @buzzdict_new(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @buzzheap_clone(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @buzzdarray_insert(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @buzzoutmsg_queue_append_vstig(ptr noundef %0, i32 noundef %1, i16 noundef zeroext %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i16, align 2
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store i16 %2, ptr %6, align 2, !tbaa !5
  store ptr %3, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %10 = getelementptr inbounds i8, ptr %0, i64 128
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %11, i64 48
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %14 = call ptr @buzzdict_rawget(ptr noundef %13, ptr noundef nonnull %6) #4
  %.not = icmp eq ptr %14, null
  br i1 %.not, label %.thread, label %19

.thread:                                          ; preds = %5
  %15 = call ptr @buzzdict_new(i32 noundef 10, i32 noundef 8, i32 noundef 8, ptr noundef nonnull @buzzoutmsg_obj_hash, ptr noundef nonnull @buzzoutmsg_obj_cmp, ptr noundef null) #4
  store ptr %15, ptr %8, align 8, !tbaa !9
  %16 = load ptr, ptr %10, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %16, i64 48
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  call void @buzzdict_set(ptr noundef %18, ptr noundef nonnull %6, ptr noundef nonnull %8) #4
  br label %37

19:                                               ; preds = %5
  %20 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %20, ptr %8, align 8, !tbaa !9
  %21 = call ptr @buzzdict_rawget(ptr noundef %20, ptr noundef nonnull %7) #4
  %.not25 = icmp eq ptr %21, null
  br i1 %.not25, label %37, label %22

22:                                               ; preds = %19
  %23 = load ptr, ptr %21, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load i16, ptr %26, align 8, !tbaa !18
  %28 = getelementptr inbounds i8, ptr %4, i64 8
  %29 = load i16, ptr %28, align 8, !tbaa !18
  %.not26 = icmp ult i16 %27, %29
  br i1 %.not26, label %30, label %61

30:                                               ; preds = %22
  %31 = load i32, ptr %23, align 8, !tbaa !20
  %32 = load ptr, ptr %10, align 8, !tbaa !11
  %33 = sext i32 %31 to i64
  %34 = getelementptr inbounds [6 x ptr], ptr %32, i64 0, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call i32 @buzzdarray_find(ptr noundef %35, ptr noundef nonnull @buzzoutmsg_vstig_cmp, ptr noundef nonnull %21) #4
  br label %37

37:                                               ; preds = %.thread, %30, %19
  %.022 = phi i32 [ %31, %30 ], [ -1, %19 ], [ -1, %.thread ]
  %.0 = phi i32 [ %36, %30 ], [ -1, %19 ], [ -1, %.thread ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %38 = call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #5
  store ptr %38, ptr %9, align 8, !tbaa !9
  store i32 %1, ptr %38, align 8, !tbaa !21
  %39 = load i16, ptr %6, align 2, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %38, i64 4
  store i16 %39, ptr %40, align 4, !tbaa !21
  %41 = load ptr, ptr %7, align 8, !tbaa !9
  %42 = call ptr @buzzheap_clone(ptr noundef nonnull %0, ptr noundef %41) #4
  %43 = getelementptr inbounds i8, ptr %38, i64 8
  store ptr %42, ptr %43, align 8, !tbaa !21
  %44 = call ptr @buzzvstig_elem_clone(ptr noundef nonnull %0, ptr noundef %4) #4
  %45 = getelementptr inbounds i8, ptr %38, i64 16
  store ptr %44, ptr %45, align 8, !tbaa !21
  %46 = load ptr, ptr %8, align 8, !tbaa !9
  call void @buzzdict_set(ptr noundef %46, ptr noundef nonnull %43, ptr noundef nonnull %9) #4
  %47 = icmp sgt i32 %.022, -1
  br i1 %47, label %48, label %53

48:                                               ; preds = %37
  %49 = load ptr, ptr %10, align 8, !tbaa !11
  %50 = zext nneg i32 %.022 to i64
  %51 = getelementptr inbounds [6 x ptr], ptr %49, i64 0, i64 %50
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  call void @buzzdarray_remove(ptr noundef %52, i32 noundef %.0) #4
  br label %53

53:                                               ; preds = %48, %37
  %54 = load ptr, ptr %10, align 8, !tbaa !11
  %55 = sext i32 %1 to i64
  %56 = getelementptr inbounds [6 x ptr], ptr %54, i64 0, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load i64, ptr %58, align 8, !tbaa !22
  %60 = trunc i64 %59 to i32
  call void @buzzdarray_insert(ptr noundef %57, i32 noundef %60, ptr noundef nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %61

61:                                               ; preds = %22, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret void
}

declare ptr @buzzdict_rawget(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @buzzdict_set(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @buzzdarray_find(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @buzzvstig_elem_clone(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @buzzdarray_remove(ptr noundef, i32 noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { nounwind }
attributes #5 = { 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 128}
!12 = !{!"buzzvm_s", !10, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !6, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !13, i64 152, !13, i64 156, !10, i64 160, !6, i64 168, !10, i64 176, !13, i64 184}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !10, i64 48}
!15 = !{!"buzzoutmsg_queue_s", !7, i64 0, !10, i64 48}
!16 = !{!17, !10, i64 16}
!17 = !{!"buzzoutmsg_vstig_s", !13, i64 0, !6, i64 4, !10, i64 8, !10, i64 16}
!18 = !{!19, !6, i64 8}
!19 = !{!"buzzvstig_elem_s", !10, i64 0, !6, i64 8, !6, i64 10}
!20 = !{!17, !13, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !24, i64 8}
!23 = !{!"buzzdarray_s", !10, i64 0, !24, i64 8, !13, i64 16, !13, i64 20, !10, i64 24}
!24 = !{!"long", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass