; LLVM IR from AlgoGenesis/C :: String Algorithms/Commentz-Walter 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], i32, i32 }

@.str = external hidden unnamed_addr constant [32 x i8], align 1

; 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
declare dso_local void @insert(ptr noundef, ptr noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @commentzWalter(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 [256 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  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) #4
  %17 = call ptr @createNode()
  store ptr %17, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %31, %3
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %34

23:                                               ; preds = %18
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds ptr, ptr %25, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = load i32, ptr %9, align 4, !tbaa !9
  call void @insert(ptr noundef %24, ptr noundef %29, i32 noundef %30)
  br label %31

31:                                               ; preds = %23
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %9, align 4, !tbaa !9
  br label %18, !llvm.loop !11

34:                                               ; preds = %22
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = getelementptr inbounds [256 x i32], ptr %8, i64 0, i64 0
  call void @computeShift(ptr noundef %35, i32 noundef %36, ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call i64 @strlen(ptr noundef %38) #5
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %60, %34
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %63

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds ptr, ptr %47, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = call i64 @strlen(ptr noundef %51) #5
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %13, align 4, !tbaa !9
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = icmp sgt i32 %54, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %46
  %58 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %58, ptr %11, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %57, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %12, align 4, !tbaa !9
  br label %41, !llvm.loop !13

63:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = sub nsw i32 %64, 1
  store i32 %65, ptr %14, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %140, %63
  %67 = load i32, ptr %14, align 4, !tbaa !9
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %70, label %144

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %71, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %125, %70
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = sub nsw i32 %73, %74
  %76 = icmp sge i32 %75, 0
  br i1 %76, label %77, label %91

77:                                               ; preds = %72
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.TrieNode, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = load i32, ptr %16, align 4, !tbaa !9
  %83 = sub nsw i32 %81, %82
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds i8, ptr %80, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !14
  %87 = zext i8 %86 to i64
  %88 = getelementptr inbounds [256 x ptr], ptr %79, i64 0, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br label %91

91:                                               ; preds = %77, %72
  %92 = phi i1 [ false, %72 ], [ %90, %77 ]
  br i1 %92, label %93, label %126

93:                                               ; preds = %91
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.TrieNode, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = sub nsw i32 %97, %98
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i8, ptr %96, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !14
  %103 = zext i8 %102 to i64
  %104 = getelementptr inbounds [256 x ptr], ptr %95, i64 0, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  store ptr %105, ptr %15, align 8, !tbaa !5
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %16, align 4, !tbaa !9
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.TrieNode, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 8, !tbaa !15
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %125

112:                                              ; preds = %93
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.TrieNode, ptr %114, i32 0, i32 2
  %116 = load i32, ptr %115, align 4, !tbaa !17
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %113, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = sub nsw i32 %120, %121
  %123 = add nsw i32 %122, 1
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %119, i32 noundef %123)
  br label %125

125:                                              ; preds = %112, %93
  br label %72, !llvm.loop !18

126:                                              ; preds = %91
  %127 = load i32, ptr %16, align 4, !tbaa !9
  %128 = icmp sgt i32 %127, 1
  br i1 %128, label %129, label %131

129:                                              ; preds = %126
  %130 = load i32, ptr %16, align 4, !tbaa !9
  br label %140

131:                                              ; preds = %126
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %132, i64 %134
  %136 = load i8, ptr %135, align 1, !tbaa !14
  %137 = zext i8 %136 to i64
  %138 = getelementptr inbounds [256 x i32], ptr %8, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %131, %129
  %141 = phi i32 [ %130, %129 ], [ %139, %131 ]
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = add nsw i32 %142, %141
  store i32 %143, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %66, !llvm.loop !19

144:                                              ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

declare i32 @printf(ptr 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 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 = { "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 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !10, i64 2048}
!16 = !{!"TrieNode", !7, i64 0, !10, i64 2048, !10, i64 2052}
!17 = !{!16, !10, i64 2052}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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

@.str = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @createNode() local_unnamed_addr #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 void @insert(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @commentzWalter(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca [256 x i32], align 16
  %5 = tail call ptr @createNode()
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #5
  %6 = icmp sgt i32 %2, 0
  br i1 %6, label %.lr.ph.preheader, label %._crit_edge

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

._crit_edge:                                      ; preds = %.lr.ph, %3
  call void @computeShift(ptr noundef %1, i32 noundef %2, ptr noundef nonnull %4)
  %7 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #6
  %8 = trunc i64 %7 to i32
  br i1 %6, label %.lr.ph56.preheader, label %._crit_edge57

.lr.ph56.preheader:                               ; preds = %._crit_edge
  %wide.trip.count71 = zext nneg i32 %2 to i64
  br label %.lr.ph56

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %9 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void @insert(ptr noundef %5, ptr noundef %10, i32 noundef %11)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge57:                                    ; preds = %.lr.ph56, %._crit_edge
  %.046.lcssa = phi i32 [ 0, %._crit_edge ], [ %spec.select, %.lr.ph56 ]
  %.not66 = icmp sgt i32 %.046.lcssa, %8
  br i1 %.not66, label %._crit_edge65, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge57
  %12 = add nsw i32 %.046.lcssa, -1
  br label %.preheader

.lr.ph56:                                         ; preds = %.lr.ph56.preheader, %.lr.ph56
  %indvars.iv68 = phi i64 [ 0, %.lr.ph56.preheader ], [ %indvars.iv.next69, %.lr.ph56 ]
  %.04653 = phi i32 [ 0, %.lr.ph56.preheader ], [ %spec.select, %.lr.ph56 ]
  %13 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv68
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %16 = trunc i64 %15 to i32
  %spec.select = call i32 @llvm.smax.i32(i32 %.04653, i32 %16)
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond72.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count71
  br i1 %exitcond72.not, label %._crit_edge57, label %.lr.ph56, !llvm.loop !11

.preheader:                                       ; preds = %.preheader.preheader, %50
  %.04364 = phi i32 [ %52, %50 ], [ %12, %.preheader.preheader ]
  %17 = icmp sgt i32 %.04364, -1
  br i1 %17, label %.lr.ph60, label %.critedge.thread

.lr.ph60:                                         ; preds = %.preheader
  %18 = add nuw nsw i32 %.04364, 1
  %wide.trip.count76 = zext nneg i32 %18 to i64
  br label %19

19:                                               ; preds = %.lr.ph60, %39
  %indvars.iv73 = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next74, %39 ]
  %20 = phi i32 [ %.04364, %.lr.ph60 ], [ %41, %39 ]
  %.04258 = phi ptr [ %5, %.lr.ph60 ], [ %26, %39 ]
  %21 = zext nneg i32 %20 to i64
  %22 = getelementptr inbounds i8, ptr %0, i64 %21
  %23 = load i8, ptr %22, align 1, !tbaa !12
  %24 = zext i8 %23 to i64
  %25 = getelementptr inbounds [256 x ptr], ptr %.04258, i64 0, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %.not = icmp eq ptr %26, null
  br i1 %.not, label %.critedge.split.loop.exit, label %27

27:                                               ; preds = %19
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %28 = getelementptr inbounds i8, ptr %26, i64 2048
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %.not51 = icmp eq i32 %29, 0
  br i1 %.not51, label %39, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %26, i64 2052
  %32 = load i32, ptr %31, align 4, !tbaa !16
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds ptr, ptr %1, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = trunc i64 %indvars.iv73 to i32
  %37 = sub i32 %.04364, %36
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %35, i32 noundef %37)
  br label %39

39:                                               ; preds = %30, %27
  %40 = trunc nuw i64 %indvars.iv.next74 to i32
  %41 = sub nsw i32 %.04364, %40
  %exitcond77.not = icmp eq i64 %indvars.iv.next74, %wide.trip.count76
  br i1 %exitcond77.not, label %.critedge, label %19, !llvm.loop !17

.critedge.split.loop.exit:                        ; preds = %19
  %42 = trunc nuw nsw i64 %indvars.iv73 to i32
  br label %.critedge

.critedge:                                        ; preds = %39, %.critedge.split.loop.exit
  %.0.lcssa = phi i32 [ %42, %.critedge.split.loop.exit ], [ %18, %39 ]
  %43 = icmp ugt i32 %.0.lcssa, 1
  br i1 %43, label %50, label %.critedge.thread

.critedge.thread:                                 ; preds = %.preheader, %.critedge
  %44 = sext i32 %.04364 to i64
  %45 = getelementptr inbounds i8, ptr %0, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !12
  %47 = zext i8 %46 to i64
  %48 = getelementptr inbounds [256 x i32], ptr %4, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !18
  br label %50

50:                                               ; preds = %.critedge, %.critedge.thread
  %51 = phi i32 [ %49, %.critedge.thread ], [ %.0.lcssa, %.critedge ]
  %52 = add nsw i32 %51, %.04364
  %53 = icmp slt i32 %52, %8
  br i1 %53, label %.preheader, label %._crit_edge65, !llvm.loop !19

._crit_edge65:                                    ; preds = %50, %._crit_edge57
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #5
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 2048}
!14 = !{!"TrieNode", !7, i64 0, !15, i64 2048, !15, i64 2052}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 2052}
!17 = distinct !{!17, !10}
!18 = !{!15, !15, i64 0}
!19 = distinct !{!19, !10}


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