; LLVM IR from begeekmyfriend/leetcode :: 0140_word_break_ii (word_break)

; 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.solution = type { i32, [0 x %struct.list_head] }
%struct.list_head = type { ptr, ptr }
%struct.word_node = type { ptr, %struct.list_head }

; Function Attrs: nounwind uwtable
define dso_local ptr @wordBreak(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
  %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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %4
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %23, align 4, !tbaa !9
  store ptr null, ptr %5, align 8
  br label %150

24:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call i64 @strlen(ptr noundef %25) #6
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = mul i64 %29, 4
  %31 = call noalias ptr @malloc(i64 noundef %30) #7
  store ptr %31, ptr %13, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %55, %24
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %36, label %58

36:                                               ; preds = %32
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds ptr, ptr %37, i64 %39
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = call i64 @strlen(ptr noundef %41) #6
  %43 = trunc i64 %42 to i32
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr %44, i64 %46
  store i32 %43, ptr %47, align 4, !tbaa !9
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %48, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = add nsw i32 %53, %52
  store i32 %54, ptr %11, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %36
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %10, align 4, !tbaa !9
  br label %32, !llvm.loop !11

58:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = mul i64 %60, 8
  %62 = call noalias ptr @malloc(i64 noundef %61) #7
  store ptr %62, ptr %14, align 8, !tbaa !5
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = mul i64 %65, 8
  call void @llvm.memset.p0.i64(ptr align 8 %63, i8 0, i64 %66, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = call ptr @dfs(ptr noundef %67, ptr noundef %68, ptr noundef %69, i32 noundef %70, ptr noundef %71, i32 noundef 0)
  store ptr %72, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.solution, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = mul i64 %76, 8
  %78 = call noalias ptr @malloc(i64 noundef %77) #7
  store ptr %78, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %141, %58
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.solution, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !9
  %84 = icmp slt i32 %80, %83
  br i1 %84, label %85, label %144

85:                                               ; preds = %79
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = add nsw i32 %86, 100
  %88 = sext i32 %87 to i64
  %89 = call noalias ptr @malloc(i64 noundef %88) #7
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  store ptr %89, ptr %93, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds ptr, ptr %94, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  store ptr %98, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.solution, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [0 x %struct.list_head], ptr %100, i64 0, i64 %102
  %104 = getelementptr inbounds %struct.list_head, ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !13
  %106 = getelementptr inbounds i8, ptr %105, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.word_node, ptr null, i32 0, i32 1) to i64))
  store ptr %106, ptr %18, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %132, %85
  %108 = load ptr, ptr %18, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.word_node, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.solution, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [0 x %struct.list_head], ptr %111, i64 0, i64 %113
  %115 = icmp ne ptr %109, %114
  br i1 %115, label %116, label %138

116:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.word_node, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !15
  store ptr %119, ptr %19, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %128, %116
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i32 1
  store ptr %122, ptr %19, align 8, !tbaa !5
  %123 = load i8, ptr %121, align 1, !tbaa !17
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i32 1
  store ptr %125, ptr %17, align 8, !tbaa !5
  store i8 %123, ptr %124, align 1, !tbaa !17
  %126 = sext i8 %123 to i32
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %120
  br label %120, !llvm.loop !18

129:                                              ; preds = %120
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 -1
  store i8 32, ptr %131, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %132

132:                                              ; preds = %129
  %133 = load ptr, ptr %18, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.word_node, ptr %133, i32 0, i32 1
  %135 = getelementptr inbounds %struct.list_head, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !19
  %137 = getelementptr inbounds i8, ptr %136, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.word_node, ptr null, i32 0, i32 1) to i64))
  store ptr %137, ptr %18, align 8, !tbaa !5
  br label %107, !llvm.loop !20

138:                                              ; preds = %107
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 -1
  store i8 0, ptr %140, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %141

141:                                              ; preds = %138
  %142 = load i32, ptr %10, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %10, align 4, !tbaa !9
  br label %79, !llvm.loop !21

144:                                              ; preds = %79
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.solution, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !9
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %147, ptr %148, align 4, !tbaa !9
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %149, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %150

150:                                              ; preds = %144, %22
  %151 = load ptr, ptr %5, align 8
  ret ptr %151
}

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #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: nounwind uwtable
declare hidden ptr @dfs(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 0}
!14 = !{!"list_head", !6, i64 0, !6, i64 8}
!15 = !{!16, !6, i64 0}
!16 = !{!"word_node", !6, i64 0, !14, i64 8}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !12}
!19 = !{!16, !6, i64 8}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !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"

%struct.list_head = type { ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @wordBreak(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
  %5 = icmp eq i32 %2, 0
  br i1 %5, label %.loopexit, label %6

6:                                                ; preds = %4
  %7 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #4
  %8 = sext i32 %2 to i64
  %9 = shl nsw i64 %8, 2
  %10 = tail call noalias ptr @malloc(i64 noundef %9) #5
  %11 = icmp sgt i32 %2, 0
  br i1 %11, label %.lr.ph.preheader, label %._crit_edge

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.05056 = phi i32 [ 0, %.lr.ph.preheader ], [ %17, %.lr.ph ]
  %12 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %13) #4
  %15 = trunc i64 %14 to i32
  %16 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  store i32 %15, ptr %16, align 4, !tbaa !9
  %17 = add nsw i32 %.05056, %15
  %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.loopexit, label %.lr.ph, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %18 = add nsw i32 %17, 100
  %19 = sext i32 %18 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %6
  %.050.lcssa = phi i64 [ 100, %6 ], [ %19, %._crit_edge.loopexit ]
  %sext = shl i64 %7, 32
  %20 = ashr exact i64 %sext, 29
  %calloc = tail call ptr @calloc(i64 1, i64 %20)
  %21 = tail call ptr @dfs(ptr noundef %0, ptr noundef %1, ptr noundef %10, i32 noundef %2, ptr noundef %calloc, i32 noundef 0)
  %22 = load i32, ptr %21, align 8, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = shl nsw i64 %23, 3
  %25 = tail call noalias ptr @malloc(i64 noundef %24) #5
  %26 = icmp sgt i32 %22, 0
  br i1 %26, label %.lr.ph68, label %.loopexit

.lr.ph68:                                         ; preds = %._crit_edge
  %27 = getelementptr inbounds i8, ptr %21, i64 8
  br label %28

28:                                               ; preds = %.lr.ph68, %._crit_edge64
  %indvars.iv73 = phi i64 [ 0, %.lr.ph68 ], [ %indvars.iv.next74, %._crit_edge64 ]
  %29 = tail call noalias ptr @malloc(i64 noundef %.050.lcssa) #5
  %30 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv73
  store ptr %29, ptr %30, align 8, !tbaa !5
  %31 = getelementptr inbounds [0 x %struct.list_head], ptr %27, i64 0, i64 %indvars.iv73
  %.pn58 = load ptr, ptr %31, align 8, !tbaa !13
  %.not59 = icmp eq ptr %.pn58, %31
  br i1 %.not59, label %._crit_edge64, label %.lr.ph63

.lr.ph63:                                         ; preds = %28, %37
  %.pn61 = phi ptr [ %.pn, %37 ], [ %.pn58, %28 ]
  %.04660 = phi ptr [ %36, %37 ], [ %29, %28 ]
  %.045 = getelementptr inbounds i8, ptr %.pn61, i64 -8
  %32 = load ptr, ptr %.045, align 8, !tbaa !15
  br label %33

33:                                               ; preds = %33, %.lr.ph63
  %.1 = phi ptr [ %.04660, %.lr.ph63 ], [ %36, %33 ]
  %.0 = phi ptr [ %32, %.lr.ph63 ], [ %34, %33 ]
  %34 = getelementptr inbounds i8, ptr %.0, i64 1
  %35 = load i8, ptr %.0, align 1, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %.1, i64 1
  store i8 %35, ptr %.1, align 1, !tbaa !17
  %.not54 = icmp eq i8 %35, 0
  br i1 %.not54, label %37, label %33, !llvm.loop !18

37:                                               ; preds = %33
  store i8 32, ptr %.1, align 1, !tbaa !17
  %.pn = load ptr, ptr %.pn61, align 8, !tbaa !13
  %.not = icmp eq ptr %.pn, %31
  br i1 %.not, label %._crit_edge64, label %.lr.ph63, !llvm.loop !19

._crit_edge64:                                    ; preds = %37, %28
  %.046.lcssa = phi ptr [ %29, %28 ], [ %36, %37 ]
  %38 = getelementptr inbounds i8, ptr %.046.lcssa, i64 -1
  store i8 0, ptr %38, align 1, !tbaa !17
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %39 = load i32, ptr %21, align 8, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next74, %40
  br i1 %41, label %28, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %._crit_edge64, %._crit_edge, %4
  %storemerge = phi i32 [ 0, %4 ], [ %22, %._crit_edge ], [ %39, %._crit_edge64 ]
  %.047 = phi ptr [ null, %4 ], [ %25, %._crit_edge ], [ %25, %._crit_edge64 ]
  store i32 %storemerge, ptr %3, align 4, !tbaa !9
  ret ptr %.047
}

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

; 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

; Function Attrs: nounwind uwtable
declare hidden ptr @dfs(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 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 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 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 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #4 = { nounwind willreturn memory(read) }
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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 0}
!14 = !{!"list_head", !6, i64 0, !6, i64 8}
!15 = !{!16, !6, i64 0}
!16 = !{!"word_node", !6, i64 0, !14, i64 8}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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