; LLVM IR from AlgoGenesis/C :: Trie/Word Break (WordBreak)

; 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 { i8, [26 x ptr] }

; Function Attrs: nounwind uwtable
declare dso_local ptr @createNode() #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
define dso_local zeroext i1 @wordBreak(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %21 = call ptr @createNode()
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %82, %3
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %85

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds ptr, ptr %28, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %32, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %33, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %76, %27
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i8, ptr %35, i64 %37
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = sext i8 %39 to i32
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %43, label %42

42:                                               ; preds = %34
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %79

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i8, ptr %44, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !11
  store i8 %48, ptr %13, align 1, !tbaa !11
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.TrieNode, ptr %49, i32 0, i32 1
  %51 = load i8, ptr %13, align 1, !tbaa !11
  %52 = sext i8 %51 to i32
  %53 = sub nsw i32 %52, 97
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [26 x ptr], ptr %50, i64 0, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %67

58:                                               ; preds = %43
  %59 = call ptr @createNode()
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.TrieNode, ptr %60, i32 0, i32 1
  %62 = load i8, ptr %13, align 1, !tbaa !11
  %63 = sext i8 %62 to i32
  %64 = sub nsw i32 %63, 97
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [26 x ptr], ptr %61, i64 0, i64 %65
  store ptr %59, ptr %66, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %58, %43
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TrieNode, ptr %68, i32 0, i32 1
  %70 = load i8, ptr %13, align 1, !tbaa !11
  %71 = sext i8 %70 to i32
  %72 = sub nsw i32 %71, 97
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [26 x ptr], ptr %69, i64 0, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  store ptr %75, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %76

76:                                               ; preds = %67
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %12, align 4, !tbaa !9
  br label %34, !llvm.loop !12

79:                                               ; preds = %42
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.TrieNode, ptr %80, i32 0, i32 0
  store i8 1, ptr %81, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %82

82:                                               ; preds = %79
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %8, align 4, !tbaa !9
  br label %22, !llvm.loop !17

85:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = call i64 @strlen(ptr noundef %86) #6
  %88 = trunc i64 %87 to i32
  store i32 %88, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  %91 = zext i32 %90 to i64
  %92 = call ptr @llvm.stacksave.p0()
  store ptr %92, ptr %15, align 8
  %93 = alloca i8, i64 %91, align 16
  store i64 %91, ptr %16, align 8
  call void @llvm.memset.p0.i64(ptr align 16 %93, i8 0, i64 %91, i1 false)
  %94 = getelementptr inbounds i8, ptr %93, i64 0
  store i8 1, ptr %94, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %158, %85
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %161

100:                                              ; preds = %95
  %101 = load i32, ptr %17, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i8, ptr %93, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !18, !range !19, !noundef !20
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %157

106:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %107, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %108 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %108, ptr %19, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %152, %106
  %110 = load i32, ptr %19, align 4, !tbaa !9
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 11, ptr %9, align 4
  br label %155

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load i32, ptr %19, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i8, ptr %115, i64 %117
  %119 = load i8, ptr %118, align 1, !tbaa !11
  store i8 %119, ptr %20, align 1, !tbaa !11
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.TrieNode, ptr %120, i32 0, i32 1
  %122 = load i8, ptr %20, align 1, !tbaa !11
  %123 = sext i8 %122 to i32
  %124 = sub nsw i32 %123, 97
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [26 x ptr], ptr %121, i64 0, i64 %125
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = icmp eq ptr %127, null
  br i1 %128, label %129, label %130

129:                                              ; preds = %114
  store i32 11, ptr %9, align 4
  br label %149

130:                                              ; preds = %114
  %131 = load ptr, ptr %18, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.TrieNode, ptr %131, i32 0, i32 1
  %133 = load i8, ptr %20, align 1, !tbaa !11
  %134 = sext i8 %133 to i32
  %135 = sub nsw i32 %134, 97
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [26 x ptr], ptr %132, i64 0, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  store ptr %138, ptr %18, align 8, !tbaa !5
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.TrieNode, ptr %139, i32 0, i32 0
  %141 = load i8, ptr %140, align 8, !tbaa !14, !range !19, !noundef !20
  %142 = trunc i8 %141 to i1
  br i1 %142, label %143, label %148

143:                                              ; preds = %130
  %144 = load i32, ptr %19, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i8, ptr %93, i64 %146
  store i8 1, ptr %147, align 1, !tbaa !18
  br label %148

148:                                              ; preds = %143, %130
  store i32 0, ptr %9, align 4
  br label %149

149:                                              ; preds = %148, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  %150 = load i32, ptr %9, align 4
  switch i32 %150, label %155 [
    i32 0, label %151
  ]

151:                                              ; preds = %149
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %19, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %19, align 4, !tbaa !9
  br label %109, !llvm.loop !21

155:                                              ; preds = %149, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %156

156:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %157

157:                                              ; preds = %156, %100
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %17, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %17, align 4, !tbaa !9
  br label %95, !llvm.loop !22

161:                                              ; preds = %99
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i8, ptr %93, i64 %163
  %165 = load i8, ptr %164, align 1, !tbaa !18, !range !19, !noundef !20
  %166 = trunc i8 %165 to i1
  store i32 1, ptr %9, align 4
  %167 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %167)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret i1 %166
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 willreturn memory(read) "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 }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !16, i64 0}
!15 = !{!"TrieNode", !16, i64 0, !7, i64 8}
!16 = !{!"_Bool", !7, i64 0}
!17 = distinct !{!17, !13}
!18 = !{!16, !16, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}


; 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 ptr @createNode() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @wordBreak(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = tail call ptr @createNode()
  %5 = icmp sgt i32 %2, 0
  br i1 %5, label %.lr.ph57.preheader, label %._crit_edge58

.lr.ph57.preheader:                               ; preds = %3
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph57

._crit_edge58:                                    ; preds = %._crit_edge, %3
  %6 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #3
  %7 = trunc i64 %6 to i32
  %8 = add i64 %6, 1
  %9 = and i64 %8, 4294967295
  %10 = alloca i8, i64 %9, align 16
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %10, i8 0, i64 %9, i1 false)
  store i8 1, ptr %10, align 16, !tbaa !5
  %11 = icmp sgt i32 %7, 0
  br i1 %11, label %.lr.ph66, label %._crit_edge67

.lr.ph66:                                         ; preds = %._crit_edge58
  %invariant.gep = getelementptr inbounds i8, ptr %10, i64 1
  %wide.trip.count79 = and i64 %6, 2147483647
  br label %32

.lr.ph57:                                         ; preds = %.lr.ph57.preheader, %._crit_edge
  %indvars.iv68 = phi i64 [ 0, %.lr.ph57.preheader ], [ %indvars.iv.next69, %._crit_edge ]
  %12 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv68
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = load i8, ptr %13, align 1, !tbaa !11
  %.not4952 = icmp eq i8 %14, 0
  br i1 %.not4952, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %24, %.lr.ph57
  %.043.lcssa = phi ptr [ %4, %.lr.ph57 ], [ %25, %24 ]
  store i8 1, ptr %.043.lcssa, align 8, !tbaa !12
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge58, label %.lr.ph57, !llvm.loop !14

.lr.ph:                                           ; preds = %.lr.ph57, %24
  %indvars.iv = phi i64 [ %indvars.iv.next, %24 ], [ 0, %.lr.ph57 ]
  %15 = phi i8 [ %27, %24 ], [ %14, %.lr.ph57 ]
  %.04354 = phi ptr [ %25, %24 ], [ %4, %.lr.ph57 ]
  %16 = sext i8 %15 to i64
  %17 = getelementptr inbounds i8, ptr %.04354, i64 8
  %18 = add nsw i64 %16, -97
  %19 = getelementptr inbounds [26 x ptr], ptr %17, i64 0, i64 %18
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %24

22:                                               ; preds = %.lr.ph
  %23 = tail call ptr @createNode()
  store ptr %23, ptr %19, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %22, %.lr.ph
  %25 = phi ptr [ %23, %22 ], [ %20, %.lr.ph ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = getelementptr inbounds i8, ptr %13, i64 %indvars.iv.next
  %27 = load i8, ptr %26, align 1, !tbaa !11
  %.not49 = icmp eq i8 %27, 0
  br i1 %.not49, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge67:                                    ; preds = %.loopexit, %._crit_edge58
  %sext = shl i64 %6, 32
  %28 = ashr exact i64 %sext, 32
  %29 = getelementptr inbounds i8, ptr %10, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !5, !range !17, !noundef !18
  %31 = trunc nuw i8 %30 to i1
  ret i1 %31

32:                                               ; preds = %.lr.ph66, %.loopexit
  %indvars.iv71 = phi i64 [ 0, %.lr.ph66 ], [ %indvars.iv.next72, %.loopexit ]
  %33 = getelementptr inbounds i8, ptr %10, i64 %indvars.iv71
  %34 = load i8, ptr %33, align 1, !tbaa !5, !range !17, !noundef !18
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %.lr.ph61, label %.loopexit

.lr.ph61:                                         ; preds = %32, %47
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %47 ], [ %indvars.iv71, %32 ]
  %.04059 = phi ptr [ %42, %47 ], [ %4, %32 ]
  %36 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv73
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = getelementptr inbounds i8, ptr %.04059, i64 8
  %39 = sext i8 %37 to i64
  %40 = add nsw i64 %39, -97
  %41 = getelementptr inbounds [26 x ptr], ptr %38, i64 0, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %.not = icmp eq ptr %42, null
  br i1 %.not, label %.loopexit, label %43

43:                                               ; preds = %.lr.ph61
  %44 = load i8, ptr %42, align 8, !tbaa !12, !range !17, !noundef !18
  %45 = trunc nuw i8 %44 to i1
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv73
  store i8 1, ptr %gep, align 1, !tbaa !5
  br label %47

47:                                               ; preds = %43, %46
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond77.not = icmp eq i64 %indvars.iv.next74, %wide.trip.count79
  br i1 %exitcond77.not, label %.loopexit, label %.lr.ph61, !llvm.loop !19

.loopexit:                                        ; preds = %47, %.lr.ph61, %32
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count79
  br i1 %exitcond80.not, label %._crit_edge67, label %32, !llvm.loop !20
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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: write) }
attributes #3 = { nounwind willreturn memory(read) }

!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 = !{!"_Bool", !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 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"TrieNode", !6, i64 0, !7, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


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