; LLVM IR from kala13x/libxutils :: src/data (str)

; 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.XArray_ = type { ptr, ptr, i32, ptr, i8, i8, i8, i64, i64 }

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

; 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 uwtable
declare dso_local zeroext i8 @xstrncmp(ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @xstrused(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @xstrncpy(ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @xstrntok(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @xstrsplita(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef zeroext %3, i8 noundef zeroext %4) #1 {
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [8192 x i8], align 16
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i8 %3, ptr %10, align 1, !tbaa !9
  store i8 %4, ptr %11, align 1, !tbaa !9
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = call zeroext i8 @xstrused(ptr noundef %18)
  %20 = icmp ne i8 %19, 0
  br i1 %20, label %21, label %28

21:                                               ; preds = %5
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = call zeroext i8 @xstrused(ptr noundef %22)
  %24 = icmp ne i8 %23, 0
  br i1 %24, label %25, label %28

25:                                               ; preds = %21
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %25, %21, %5
  store i64 0, ptr %6, align 8
  br label %114

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 2048, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8192, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !12
  %30 = load i8, ptr %10, align 1, !tbaa !9
  %31 = icmp ne i8 %30, 0
  br i1 %31, label %32, label %48

32:                                               ; preds = %29
  %33 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call i64 @xstrncpy(ptr noundef %33, i64 noundef 2048, ptr noundef %34)
  store i64 %35, ptr %14, align 8, !tbaa !10
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %38 = load i64, ptr %14, align 8, !tbaa !10
  %39 = call zeroext i8 @xstrncmp(ptr noundef %36, ptr noundef %37, i64 noundef %38)
  %40 = icmp ne i8 %39, 0
  br i1 %40, label %41, label %47

41:                                               ; preds = %32
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %44 = load i64, ptr %14, align 8, !tbaa !10
  %45 = add i64 %44, 1
  %46 = call i32 @XArray_AddData(ptr noundef %42, ptr noundef %43, i64 noundef %45)
  br label %47

47:                                               ; preds = %41, %32
  br label %48

48:                                               ; preds = %47, %29
  br label %49

49:                                               ; preds = %109, %107, %48
  %50 = getelementptr inbounds [8192 x i8], ptr %13, i64 0, i64 0
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load i32, ptr %15, align 4, !tbaa !12
  %53 = sext i32 %52 to i64
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = call i32 @xstrntok(ptr noundef %50, i64 noundef 8192, ptr noundef %51, i64 noundef %53, ptr noundef %54)
  store i32 %55, ptr %15, align 4, !tbaa !12
  %56 = icmp sge i32 %55, 0
  br i1 %56, label %57, label %110

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %58 = getelementptr inbounds [8192 x i8], ptr %13, i64 0, i64 0
  %59 = call i64 @strlen(ptr noundef %58) #5
  store i64 %59, ptr %16, align 8, !tbaa !10
  %60 = load i64, ptr %16, align 8, !tbaa !10
  %61 = icmp ne i64 %60, 0
  br i1 %61, label %69, label %62

62:                                               ; preds = %57
  %63 = load i8, ptr %11, align 1, !tbaa !9
  %64 = icmp ne i8 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %62
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = call i32 @XArray_AddData(ptr noundef %66, ptr noundef @.str.39, i64 noundef 1)
  br label %68

68:                                               ; preds = %65, %62
  store i32 2, ptr %17, align 4
  br label %107, !llvm.loop !14

69:                                               ; preds = %57
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds [8192 x i8], ptr %13, i64 0, i64 0
  %72 = load i64, ptr %16, align 8, !tbaa !10
  %73 = add i64 %72, 1
  %74 = call i32 @XArray_AddData(ptr noundef %70, ptr noundef %71, i64 noundef %73)
  %75 = load i32, ptr %15, align 4, !tbaa !12
  %76 = icmp sle i32 %75, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %69
  store i32 3, ptr %17, align 4
  br label %107

78:                                               ; preds = %69
  %79 = load i8, ptr %10, align 1, !tbaa !9
  %80 = zext i8 %79 to i32
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %106

82:                                               ; preds = %78
  %83 = load i32, ptr %15, align 4, !tbaa !12
  %84 = sext i32 %83 to i64
  %85 = load i64, ptr %14, align 8, !tbaa !10
  %86 = sub i64 %84, %85
  %87 = icmp uge i64 %86, 0
  br i1 %87, label %88, label %106

88:                                               ; preds = %82
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load i32, ptr %15, align 4, !tbaa !12
  %91 = sext i32 %90 to i64
  %92 = load i64, ptr %14, align 8, !tbaa !10
  %93 = sub i64 %91, %92
  %94 = getelementptr inbounds i8, ptr %89, i64 %93
  %95 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %96 = load i64, ptr %14, align 8, !tbaa !10
  %97 = call zeroext i8 @xstrncmp(ptr noundef %94, ptr noundef %95, i64 noundef %96)
  %98 = icmp ne i8 %97, 0
  br i1 %98, label %99, label %105

99:                                               ; preds = %88
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %102 = load i64, ptr %14, align 8, !tbaa !10
  %103 = add i64 %102, 1
  %104 = call i32 @XArray_AddData(ptr noundef %100, ptr noundef %101, i64 noundef %103)
  br label %105

105:                                              ; preds = %99, %88
  br label %106

106:                                              ; preds = %105, %82, %78
  store i32 0, ptr %17, align 4
  br label %107

107:                                              ; preds = %106, %77, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %108 = load i32, ptr %17, align 4
  switch i32 %108, label %116 [
    i32 0, label %109
    i32 2, label %49
    i32 3, label %110
  ]

109:                                              ; preds = %107
  br label %49, !llvm.loop !14

110:                                              ; preds = %107, %49
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.XArray_, ptr %111, i32 0, i32 8
  %113 = load i64, ptr %112, align 8, !tbaa !16
  store i64 %113, ptr %6, align 8
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8192, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %12) #4
  br label %114

114:                                              ; preds = %110, %28
  %115 = load i64, ptr %6, align 8
  ret i64 %115

116:                                              ; preds = %107
  unreachable
}

declare i32 @XArray_AddData(ptr noundef, ptr noundef, i64 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !11, i64 48}
!17 = !{!"XArray_", !6, i64 0, !6, i64 8, !13, i64 16, !6, i64 24, !7, i64 32, !7, i64 33, !7, i64 34, !11, i64 40, !11, i64 48}


; 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.39 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @xstrncmp(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

; 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 i64 @xstrncpy(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i64 @xstrsplita(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef zeroext %3, i8 noundef zeroext %4) local_unnamed_addr #1 {
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [8192 x i8], align 16
  %8 = tail call zeroext i8 @xstrused(ptr noundef %0)
  %.not = icmp eq i8 %8, 0
  br i1 %.not, label %82, label %9

9:                                                ; preds = %5
  %10 = tail call zeroext i8 @xstrused(ptr noundef %1)
  %11 = icmp eq i8 %10, 0
  %12 = icmp eq ptr %2, null
  %or.cond = or i1 %12, %11
  br i1 %or.cond, label %82, label %13

13:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %7) #4
  %.not36 = icmp eq i8 %3, 0
  br i1 %.not36, label %20, label %14

14:                                               ; preds = %13
  %15 = call i64 @xstrncpy(ptr noundef nonnull %6, i64 noundef 2048, ptr noundef %1)
  %16 = call zeroext i8 @xstrncmp(ptr noundef %0, ptr noundef nonnull %6, i64 noundef %15)
  %.not37 = icmp eq i8 %16, 0
  br i1 %.not37, label %20, label %17

17:                                               ; preds = %14
  %18 = add i64 %15, 1
  %19 = call i32 @XArray_AddData(ptr noundef nonnull %2, ptr noundef nonnull %6, i64 noundef %18) #4
  br label %20

20:                                               ; preds = %14, %17, %13
  %.032 = phi i64 [ %15, %17 ], [ %15, %14 ], [ 0, %13 ]
  %21 = call i32 @xstrntok(ptr noundef nonnull %7, i64 noundef 8192, ptr noundef %0, i64 noundef 0, ptr noundef %1)
  %22 = icmp sgt i32 %21, -1
  br i1 %22, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %20
  %23 = add i64 %.032, 1
  %.not39 = icmp eq i8 %4, 0
  br i1 %.not36, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  br i1 %.not39, label %.lr.ph.split.us.split.us, label %.lr.ph.split.us.split, !llvm.loop !5

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us, %30
  %24 = phi i32 [ %32, %30 ], [ %21, %.lr.ph.split.us ]
  %25 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #5
  %.not38.us.us = icmp eq i64 %25, 0
  br i1 %.not38.us.us, label %30, label %26

26:                                               ; preds = %.lr.ph.split.us.split.us
  %27 = add i64 %25, 1
  %28 = call i32 @XArray_AddData(ptr noundef %2, ptr noundef nonnull %7, i64 noundef %27) #4
  %29 = icmp eq i32 %24, 0
  br i1 %29, label %.thread, label %30

30:                                               ; preds = %.lr.ph.split.us.split.us, %26
  %31 = zext nneg i32 %24 to i64
  %32 = call i32 @xstrntok(ptr noundef nonnull %7, i64 noundef 8192, ptr noundef %0, i64 noundef %31, ptr noundef %1)
  %33 = icmp sgt i32 %32, -1
  br i1 %33, label %.lr.ph.split.us.split.us, label %.thread

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us, %42
  %34 = phi i32 [ %44, %42 ], [ %21, %.lr.ph.split.us ]
  %35 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #5
  %.not38.us = icmp eq i64 %35, 0
  br i1 %.not38.us, label %40, label %36

36:                                               ; preds = %.lr.ph.split.us.split
  %37 = add i64 %35, 1
  %38 = call i32 @XArray_AddData(ptr noundef %2, ptr noundef nonnull %7, i64 noundef %37) #4
  %39 = icmp eq i32 %34, 0
  br i1 %39, label %.thread, label %42

40:                                               ; preds = %.lr.ph.split.us.split
  %41 = call i32 @XArray_AddData(ptr noundef %2, ptr noundef nonnull @.str.39, i64 noundef 1) #4
  br label %42, !llvm.loop !5

42:                                               ; preds = %36, %40
  %43 = zext nneg i32 %34 to i64
  %44 = call i32 @xstrntok(ptr noundef nonnull %7, i64 noundef 8192, ptr noundef %0, i64 noundef %43, ptr noundef %1)
  %45 = icmp sgt i32 %44, -1
  br i1 %45, label %.lr.ph.split.us.split, label %.thread

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %.not39, label %.lr.ph.split.split.us, label %.lr.ph.split.split, !llvm.loop !5

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %59
  %46 = phi i32 [ %60, %59 ], [ %21, %.lr.ph.split ]
  %47 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #5
  %.not38.us46 = icmp eq i64 %47, 0
  br i1 %.not38.us46, label %.lr.ph.split.split.us._crit_edge, label %48

.lr.ph.split.split.us._crit_edge:                 ; preds = %.lr.ph.split.split.us
  %.pre50 = zext nneg i32 %46 to i64
  br label %59

48:                                               ; preds = %.lr.ph.split.split.us
  %49 = add i64 %47, 1
  %50 = call i32 @XArray_AddData(ptr noundef %2, ptr noundef nonnull %7, i64 noundef %49) #4
  %51 = icmp eq i32 %46, 0
  br i1 %51, label %.thread, label %52

52:                                               ; preds = %48
  %53 = zext nneg i32 %46 to i64
  %54 = sub i64 %53, %.032
  %55 = getelementptr inbounds i8, ptr %0, i64 %54
  %56 = call zeroext i8 @xstrncmp(ptr noundef %55, ptr noundef nonnull %6, i64 noundef %.032)
  %.not41.us = icmp eq i8 %56, 0
  br i1 %.not41.us, label %59, label %57

57:                                               ; preds = %52
  %58 = call i32 @XArray_AddData(ptr noundef %2, ptr noundef nonnull %6, i64 noundef %23) #4
  br label %59

59:                                               ; preds = %.lr.ph.split.split.us._crit_edge, %57, %52
  %.pre-phi51 = phi i64 [ %.pre50, %.lr.ph.split.split.us._crit_edge ], [ %53, %57 ], [ %53, %52 ]
  %60 = call i32 @xstrntok(ptr noundef nonnull %7, i64 noundef 8192, ptr noundef %0, i64 noundef %.pre-phi51, ptr noundef %1)
  %61 = icmp sgt i32 %60, -1
  br i1 %61, label %.lr.ph.split.split.us, label %.thread

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %77
  %62 = phi i32 [ %78, %77 ], [ %21, %.lr.ph.split ]
  %63 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #5
  %.not38 = icmp eq i64 %63, 0
  br i1 %.not38, label %64, label %66

64:                                               ; preds = %.lr.ph.split.split
  %65 = call i32 @XArray_AddData(ptr noundef %2, ptr noundef nonnull @.str.39, i64 noundef 1) #4
  %.pre = zext nneg i32 %62 to i64
  br label %77, !llvm.loop !5

66:                                               ; preds = %.lr.ph.split.split
  %67 = add i64 %63, 1
  %68 = call i32 @XArray_AddData(ptr noundef %2, ptr noundef nonnull %7, i64 noundef %67) #4
  %69 = icmp eq i32 %62, 0
  br i1 %69, label %.thread, label %70

70:                                               ; preds = %66
  %71 = zext nneg i32 %62 to i64
  %72 = sub i64 %71, %.032
  %73 = getelementptr inbounds i8, ptr %0, i64 %72
  %74 = call zeroext i8 @xstrncmp(ptr noundef %73, ptr noundef nonnull %6, i64 noundef %.032)
  %.not41 = icmp eq i8 %74, 0
  br i1 %.not41, label %77, label %75

75:                                               ; preds = %70
  %76 = call i32 @XArray_AddData(ptr noundef %2, ptr noundef nonnull %6, i64 noundef %23) #4
  br label %77

77:                                               ; preds = %75, %70, %64
  %.pre-phi = phi i64 [ %71, %75 ], [ %71, %70 ], [ %.pre, %64 ]
  %78 = call i32 @xstrntok(ptr noundef nonnull %7, i64 noundef 8192, ptr noundef %0, i64 noundef %.pre-phi, ptr noundef %1)
  %79 = icmp sgt i32 %78, -1
  br i1 %79, label %.lr.ph.split.split, label %.thread

.thread:                                          ; preds = %77, %66, %59, %48, %42, %36, %30, %26, %20
  %80 = getelementptr inbounds i8, ptr %2, i64 48
  %81 = load i64, ptr %80, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #4
  br label %82

82:                                               ; preds = %5, %9, %.thread
  %.030 = phi i64 [ %81, %.thread ], [ 0, %9 ], [ 0, %5 ]
  ret i64 %.030
}

declare i32 @XArray_AddData(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !13, i64 48}
!8 = !{!"XArray_", !9, i64 0, !9, i64 8, !12, i64 16, !9, i64 24, !10, i64 32, !10, i64 33, !10, i64 34, !13, i64 40, !13, i64 48}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"long", !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass