; LLVM IR from AlgoGenesis/C :: String Algorithms/Aho-Corasick Algorithm (Program)

; 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.TrieNode = type { [256 x ptr], ptr, ptr, i32, i32 }
%struct.Queue = type { ptr, i32, i32, i32, i32 }

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

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

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @createQueue(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @isEmpty(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @enqueue(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @dequeue(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @buildLinks(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %9 = call ptr @createQueue(i32 noundef 1000)
  store ptr %9, ptr %3, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.TrieNode, ptr %11, i32 0, i32 1
  store ptr %10, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !12
  br label %13

13:                                               ; preds = %42, %1
  %14 = load i32, ptr %4, align 4, !tbaa !12
  %15 = icmp slt i32 %14, 256
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %45

17:                                               ; preds = %13
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.TrieNode, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %4, align 4, !tbaa !12
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [256 x ptr], ptr %19, i64 0, i64 %21
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %41

25:                                               ; preds = %17
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.TrieNode, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %4, align 4, !tbaa !12
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [256 x ptr], ptr %28, i64 0, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.TrieNode, ptr %32, i32 0, i32 1
  store ptr %26, ptr %33, align 8, !tbaa !9
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.TrieNode, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %4, align 4, !tbaa !12
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [256 x ptr], ptr %36, i64 0, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  call void @enqueue(ptr noundef %34, ptr noundef %40)
  br label %41

41:                                               ; preds = %25, %17
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %4, align 4, !tbaa !12
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %4, align 4, !tbaa !12
  br label %13, !llvm.loop !13

45:                                               ; preds = %16
  br label %46

46:                                               ; preds = %154, %45
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = call i32 @isEmpty(ptr noundef %47)
  %49 = icmp ne i32 %48, 0
  %50 = xor i1 %49, true
  br i1 %50, label %51, label %155

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = call ptr @dequeue(ptr noundef %52)
  store ptr %53, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !12
  br label %54

54:                                               ; preds = %151, %51
  %55 = load i32, ptr %6, align 4, !tbaa !12
  %56 = icmp slt i32 %55, 256
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %154

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.TrieNode, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %6, align 4, !tbaa !12
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [256 x ptr], ptr %60, i64 0, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  store ptr %64, ptr %7, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %150

67:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TrieNode, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  store ptr %70, ptr %8, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %85, %67
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = icmp ne ptr %72, %73
  br i1 %74, label %75, label %83

75:                                               ; preds = %71
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.TrieNode, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %6, align 4, !tbaa !12
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [256 x ptr], ptr %77, i64 0, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = icmp eq ptr %81, null
  br label %83

83:                                               ; preds = %75, %71
  %84 = phi i1 [ false, %71 ], [ %82, %75 ]
  br i1 %84, label %85, label %89

85:                                               ; preds = %83
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.TrieNode, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  store ptr %88, ptr %8, align 8, !tbaa !5
  br label %71, !llvm.loop !15

89:                                               ; preds = %83
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.TrieNode, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %6, align 4, !tbaa !12
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [256 x ptr], ptr %91, i64 0, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %104

97:                                               ; preds = %89
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.TrieNode, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %6, align 4, !tbaa !12
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [256 x ptr], ptr %99, i64 0, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  store ptr %103, ptr %8, align 8, !tbaa !5
  br label %106

104:                                              ; preds = %89
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %105, ptr %8, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %104, %97
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.TrieNode, ptr %108, i32 0, i32 1
  store ptr %107, ptr %109, align 8, !tbaa !9
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.TrieNode, ptr %110, i32 0, i32 2
  %112 = load ptr, ptr %111, align 8, !tbaa !16
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.TrieNode, ptr %113, i32 0, i32 3
  %115 = load i32, ptr %114, align 8, !tbaa !17
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.TrieNode, ptr %116, i32 0, i32 3
  %118 = load i32, ptr %117, align 8, !tbaa !17
  %119 = add nsw i32 %115, %118
  %120 = sext i32 %119 to i64
  %121 = mul i64 %120, 4
  %122 = call ptr @realloc(ptr noundef %112, i64 noundef %121) #6
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.TrieNode, ptr %123, i32 0, i32 2
  store ptr %122, ptr %124, align 8, !tbaa !16
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.TrieNode, ptr %125, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !16
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.TrieNode, ptr %128, i32 0, i32 3
  %130 = load i32, ptr %129, align 8, !tbaa !17
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i32, ptr %127, i64 %131
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.TrieNode, ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !16
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.TrieNode, ptr %136, i32 0, i32 3
  %138 = load i32, ptr %137, align 8, !tbaa !17
  %139 = sext i32 %138 to i64
  %140 = mul i64 %139, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %132, ptr align 4 %135, i64 %140, i1 false)
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.TrieNode, ptr %141, i32 0, i32 3
  %143 = load i32, ptr %142, align 8, !tbaa !17
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.TrieNode, ptr %144, i32 0, i32 3
  %146 = load i32, ptr %145, align 8, !tbaa !17
  %147 = add nsw i32 %146, %143
  store i32 %147, ptr %145, align 8, !tbaa !17
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  call void @enqueue(ptr noundef %148, ptr noundef %149)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %150

150:                                              ; preds = %106, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %6, align 4, !tbaa !12
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %6, align 4, !tbaa !12
  br label %54, !llvm.loop !18

154:                                              ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %46, !llvm.loop !19

155:                                              ; preds = %46
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.Queue, ptr %156, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8, !tbaa !20
  call void @free(ptr noundef %158) #5
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %159) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

!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 2048}
!10 = !{!"TrieNode", !7, i64 0, !6, i64 2048, !6, i64 2056, !11, i64 2064, !11, i64 2068}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!10, !6, i64 2056}
!17 = !{!10, !11, i64 2064}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!21, !6, i64 0}
!21 = !{!"Queue", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}


; 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: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @createQueue(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @isEmpty(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @enqueue(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @dequeue(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @buildLinks(ptr noundef %0) local_unnamed_addr #1 {
  %2 = tail call ptr @createQueue(i32 noundef 1000)
  %3 = getelementptr inbounds i8, ptr %0, i64 2048
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %5

.preheader54:                                     ; preds = %11
  %4 = tail call i32 @isEmpty(ptr noundef %2)
  %.not57 = icmp eq i32 %4, 0
  br i1 %.not57, label %.lr.ph, label %._crit_edge

5:                                                ; preds = %1, %11
  %indvars.iv = phi i64 [ 0, %1 ], [ %indvars.iv.next, %11 ]
  %6 = getelementptr inbounds [256 x ptr], ptr %0, i64 0, i64 %indvars.iv
  %7 = load ptr, ptr %6, align 8, !tbaa !11
  %.not53 = icmp eq ptr %7, null
  br i1 %.not53, label %11, label %8

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %7, i64 2048
  store ptr %0, ptr %9, align 8, !tbaa !5
  %10 = load ptr, ptr %6, align 8, !tbaa !11
  tail call void @enqueue(ptr noundef %2, ptr noundef %10)
  br label %11

11:                                               ; preds = %5, %8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %.preheader54, label %5, !llvm.loop !12

.loopexit:                                        ; preds = %40
  %12 = tail call i32 @isEmpty(ptr noundef %2)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %.lr.ph, label %._crit_edge, !llvm.loop !14

.lr.ph:                                           ; preds = %.preheader54, %.loopexit
  %13 = tail call ptr @dequeue(ptr noundef %2)
  br label %14

14:                                               ; preds = %.lr.ph, %40
  %indvars.iv59 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next60, %40 ]
  %15 = getelementptr inbounds [256 x ptr], ptr %13, i64 0, i64 %indvars.iv59
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %.not50 = icmp eq ptr %16, null
  br i1 %.not50, label %40, label %.preheader

.preheader:                                       ; preds = %14, %.preheader
  %.pn = phi ptr [ %.0, %.preheader ], [ %13, %14 ]
  %.0.in = getelementptr inbounds i8, ptr %.pn, i64 2048
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !5
  %.not51 = icmp ne ptr %.0, %0
  %.phi.trans.insert = getelementptr inbounds [256 x ptr], ptr %.0, i64 0, i64 %indvars.iv59
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !11
  %17 = icmp eq ptr %.pre, null
  %or.cond = select i1 %.not51, i1 %17, i1 false
  br i1 %or.cond, label %.preheader, label %.critedge, !llvm.loop !15

.critedge:                                        ; preds = %.preheader
  %.not52 = icmp eq ptr %.pre, null
  %. = select i1 %.not52, ptr %0, ptr %.pre
  %18 = getelementptr inbounds i8, ptr %16, i64 2048
  store ptr %., ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %16, i64 2056
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %16, i64 2064
  %22 = load i32, ptr %21, align 8, !tbaa !17
  %23 = getelementptr inbounds i8, ptr %., i64 2064
  %24 = load i32, ptr %23, align 8, !tbaa !17
  %25 = add nsw i32 %24, %22
  %26 = sext i32 %25 to i64
  %27 = shl nsw i64 %26, 2
  %28 = tail call ptr @realloc(ptr noundef %20, i64 noundef %27) #4
  store ptr %28, ptr %19, align 8, !tbaa !16
  %29 = load i32, ptr %21, align 8, !tbaa !17
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds i32, ptr %28, i64 %30
  %32 = getelementptr inbounds i8, ptr %., i64 2056
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %34 = load i32, ptr %23, align 8, !tbaa !17
  %35 = sext i32 %34 to i64
  %36 = shl nsw i64 %35, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %33, i64 %36, i1 false)
  %37 = load i32, ptr %23, align 8, !tbaa !17
  %38 = load i32, ptr %21, align 8, !tbaa !17
  %39 = add nsw i32 %38, %37
  store i32 %39, ptr %21, align 8, !tbaa !17
  tail call void @enqueue(ptr noundef %2, ptr noundef nonnull %16)
  br label %40

40:                                               ; preds = %.critedge, %14
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next60, 256
  br i1 %exitcond62.not, label %.loopexit, label %14, !llvm.loop !18

._crit_edge:                                      ; preds = %.loopexit, %.preheader54
  %41 = load ptr, ptr %2, align 8, !tbaa !19
  tail call void @free(ptr noundef %41) #5
  tail call void @free(ptr noundef %2) #5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

attributes #0 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind allocsize(1) }
attributes #5 = { 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, !9, i64 2048}
!6 = !{!"TrieNode", !7, i64 0, !9, i64 2048, !9, i64 2056, !10, i64 2064, !10, i64 2068}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!9, !9, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!6, !9, i64 2056}
!17 = !{!6, !10, i64 2064}
!18 = distinct !{!18, !13}
!19 = !{!20, !9, i64 0}
!20 = !{!"Queue", !9, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass