; LLVM IR from MostafaTwfiq/C-DataStructures-And-Algorithms :: DataStructure/Graphs/Sources (DirectedGraph)

; 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.DirectedGraph = type { ptr, ptr, ptr }
%struct.DirGraphNode = type { ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @freeDGraphNode(ptr noundef) #0

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

declare i32 @arrayListGetLength(ptr noundef) #2

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

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

declare ptr @hashMapGet(ptr noundef, ptr noundef) #2

declare ptr @arrayListGet(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @freeUintptr_t(ptr noundef) #0

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

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

declare ptr @hashSetInitialization(ptr noundef, ptr noundef, ptr noundef) #2

declare void @hashSetInsert(ptr noundef, ptr noundef) #2

declare i32 @hashSetContains(ptr noundef, ptr noundef) #2

declare void @destroyHashSet(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @dirGraphBreadthFirstTraversal(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %21

18:                                               ; preds = %3
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.2) #6
  call void @exit(i32 noundef -83386157) #7
  unreachable

21:                                               ; preds = %3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str, ptr noundef @.str.17, ptr noundef @.str.2) #6
  call void @exit(i32 noundef -83384987) #7
  unreachable

27:                                               ; preds = %21
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str, ptr noundef @.str.12, ptr noundef @.str.2) #6
  call void @exit(i32 noundef -83384987) #7
  unreachable

33:                                               ; preds = %27
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.DirectedGraph, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call ptr @hashMapGet(ptr noundef %38, ptr noundef %39)
  store ptr %40, ptr %7, align 8, !tbaa !5
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %44

43:                                               ; preds = %35
  store i32 1, ptr %8, align 4
  br label %108

44:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %45 = call ptr @hashSetInitialization(ptr noundef @freeUintptr_t, ptr noundef @compUintptr_t, ptr noundef @uintptr_tHashFunDirG)
  store ptr %45, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %46 = call ptr @queueInitialization(ptr noundef @freeDGraphNode)
  store ptr %46, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  call void @queueEnqueue(ptr noundef %47, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %49 = call noalias ptr @malloc(i64 noundef 8) #8
  store ptr %49, ptr %11, align 8, !tbaa !5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.DirGraphNode, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = ptrtoint ptr %52 to i64
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %53, ptr %54, align 8, !tbaa !13
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  call void @hashSetInsert(ptr noundef %55, ptr noundef %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  br label %57

57:                                               ; preds = %104, %44
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = call i32 @queueIsEmpty(ptr noundef %58)
  %60 = icmp ne i32 %59, 0
  %61 = xor i1 %60, true
  br i1 %61, label %62, label %105

62:                                               ; preds = %57
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call ptr @queueDequeue(ptr noundef %63)
  store ptr %64, ptr %12, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.DirGraphNode, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  call void %65(ptr noundef %68)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !15
  br label %69

69:                                               ; preds = %101, %62
  %70 = load i32, ptr %13, align 4, !tbaa !15
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.DirGraphNode, ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !17
  %74 = call i32 @arrayListGetLength(ptr noundef %73)
  %75 = icmp slt i32 %70, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %69
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %104

77:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.DirGraphNode, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !17
  %81 = load i32, ptr %13, align 4, !tbaa !15
  %82 = call ptr @arrayListGet(ptr noundef %80, i32 noundef %81)
  store ptr %82, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %83 = call noalias ptr @malloc(i64 noundef 8) #8
  store ptr %83, ptr %15, align 8, !tbaa !5
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.DirGraphNode, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = ptrtoint ptr %86 to i64
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %87, ptr %88, align 8, !tbaa !13
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = call i32 @hashSetContains(ptr noundef %89, ptr noundef %90)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %98, label %93

93:                                               ; preds = %77
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  call void @queueEnqueue(ptr noundef %94, ptr noundef %95)
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  call void @hashSetInsert(ptr noundef %96, ptr noundef %97)
  br label %100

98:                                               ; preds = %77
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %99) #6
  br label %100

100:                                              ; preds = %98, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %13, align 4, !tbaa !15
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %13, align 4, !tbaa !15
  br label %69, !llvm.loop !18

104:                                              ; preds = %76
  br label %57, !llvm.loop !20

105:                                              ; preds = %57
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  call void @destroyHashSet(ptr noundef %106)
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  call void @destroyQueue(ptr noundef %107)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  store i32 0, ptr %8, align 4
  br label %108

108:                                              ; preds = %105, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %109 = load i32, ptr %8, align 4
  switch i32 %109, label %111 [
    i32 0, label %110
    i32 1, label %110
  ]

110:                                              ; preds = %108, %108
  ret void

111:                                              ; preds = %108
  unreachable
}

declare ptr @queueInitialization(ptr noundef) #2

declare void @queueEnqueue(ptr noundef, ptr noundef) #2

declare i32 @queueIsEmpty(ptr noundef) #2

declare ptr @queueDequeue(ptr noundef) #2

declare void @destroyQueue(ptr noundef) #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 = { 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 "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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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, !6, i64 0}
!10 = !{!"DirectedGraph", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!12, !6, i64 0}
!12 = !{!"DirGraphNode", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!12, !6, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @freeDGraphNode(ptr noundef) #0

declare i32 @arrayListGetLength(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

declare ptr @hashMapGet(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @arrayListGet(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @freeUintptr_t(ptr noundef) #0

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

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

declare ptr @hashSetInitialization(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @hashSetInsert(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @hashSetContains(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @destroyHashSet(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @dirGraphBreadthFirstTraversal(ptr noundef readonly %0, ptr noundef %1, ptr noundef readonly %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %5, label %8

5:                                                ; preds = %3
  %6 = load ptr, ptr @stderr, align 8, !tbaa !5
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2) #6
  tail call void @exit(i32 noundef -83386157) #7
  unreachable

8:                                                ; preds = %3
  %9 = icmp eq ptr %1, null
  br i1 %9, label %10, label %13

10:                                               ; preds = %8
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.2) #6
  tail call void @exit(i32 noundef -83384987) #7
  unreachable

13:                                               ; preds = %8
  %14 = icmp eq ptr %2, null
  br i1 %14, label %15, label %18

15:                                               ; preds = %13
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2) #6
  tail call void @exit(i32 noundef -83384987) #7
  unreachable

18:                                               ; preds = %13
  %19 = load ptr, ptr %0, align 8, !tbaa !9
  %20 = tail call ptr @hashMapGet(ptr noundef %19, ptr noundef nonnull %1) #8
  %21 = icmp eq ptr %20, null
  br i1 %21, label %49, label %22

22:                                               ; preds = %18
  %23 = tail call ptr @hashSetInitialization(ptr noundef nonnull @freeUintptr_t, ptr noundef nonnull @compUintptr_t, ptr noundef nonnull @uintptr_tHashFunDirG) #8
  %24 = tail call ptr @queueInitialization(ptr noundef nonnull @freeDGraphNode) #8
  tail call void @queueEnqueue(ptr noundef %24, ptr noundef nonnull %20) #8
  %25 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #9
  %26 = load ptr, ptr %20, align 8, !tbaa !11
  %27 = ptrtoint ptr %26 to i64
  store i64 %27, ptr %25, align 8, !tbaa !13
  tail call void @hashSetInsert(ptr noundef %23, ptr noundef nonnull %25) #8
  %28 = tail call i32 @queueIsEmpty(ptr noundef %24) #8
  %.not37 = icmp eq i32 %28, 0
  br i1 %.not37, label %.lr.ph38, label %._crit_edge

.loopexit:                                        ; preds = %44, %.lr.ph38
  %29 = tail call i32 @queueIsEmpty(ptr noundef %24) #8
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %.lr.ph38, label %._crit_edge, !llvm.loop !15

.lr.ph38:                                         ; preds = %22, %.loopexit
  %30 = tail call ptr @queueDequeue(ptr noundef %24) #8
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  tail call void %2(ptr noundef %31) #8
  %32 = getelementptr inbounds i8, ptr %30, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = tail call i32 @arrayListGetLength(ptr noundef %33) #8
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph38, %44
  %.036 = phi i32 [ %45, %44 ], [ 0, %.lr.ph38 ]
  %36 = load ptr, ptr %32, align 8, !tbaa !17
  %37 = tail call ptr @arrayListGet(ptr noundef %36, i32 noundef %.036) #8
  %38 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #9
  %39 = load ptr, ptr %37, align 8, !tbaa !11
  %40 = ptrtoint ptr %39 to i64
  store i64 %40, ptr %38, align 8, !tbaa !13
  %41 = tail call i32 @hashSetContains(ptr noundef %23, ptr noundef nonnull %38) #8
  %.not35 = icmp eq i32 %41, 0
  br i1 %.not35, label %42, label %43

42:                                               ; preds = %.lr.ph
  tail call void @queueEnqueue(ptr noundef %24, ptr noundef nonnull %37) #8
  tail call void @hashSetInsert(ptr noundef %23, ptr noundef nonnull %38) #8
  br label %44

43:                                               ; preds = %.lr.ph
  tail call void @free(ptr noundef nonnull %38) #8
  br label %44

44:                                               ; preds = %43, %42
  %45 = add nuw nsw i32 %.036, 1
  %46 = load ptr, ptr %32, align 8, !tbaa !17
  %47 = tail call i32 @arrayListGetLength(ptr noundef %46) #8
  %48 = icmp slt i32 %45, %47
  br i1 %48, label %.lr.ph, label %.loopexit, !llvm.loop !18

._crit_edge:                                      ; preds = %.loopexit, %22
  tail call void @destroyHashSet(ptr noundef %23) #8
  tail call void @destroyQueue(ptr noundef %24) #8
  br label %49

49:                                               ; preds = %18, %._crit_edge
  ret void
}

declare ptr @queueInitialization(ptr noundef) local_unnamed_addr #1

declare void @queueEnqueue(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @queueIsEmpty(ptr noundef) local_unnamed_addr #1

declare ptr @queueDequeue(ptr noundef) local_unnamed_addr #1

declare void @destroyQueue(ptr noundef) local_unnamed_addr #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 = { "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 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { cold nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind }
attributes #9 = { 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, !6, i64 0}
!10 = !{!"DirectedGraph", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!12, !6, i64 0}
!12 = !{!"DirGraphNode", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !6, i64 8}
!18 = distinct !{!18, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass