; LLVM IR from stivalaa/EstimNetDirected :: src (graph)

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

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@stderr = external global ptr, align 8
@.str.88 = external hidden unnamed_addr constant [2 x i8], align 1
@NA_STRING = external hidden global ptr, align 8
@SET_NONE_STRING = external hidden global ptr, align 8
@.str.89 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.parse_category_set = external hidden unnamed_addr constant [61 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcasecmp(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @parse_category_set(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store ptr @.str.88, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr @NA_STRING, align 8, !tbaa !5
  %18 = call i32 @strcasecmp(ptr noundef %16, ptr noundef %17) #6
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %39

20:                                               ; preds = %4
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %38, label %23

23:                                               ; preds = %20
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %34, %23
  %25 = load i32, ptr %14, align 4, !tbaa !9
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = icmp ult i32 %25, %27
  br i1 %28, label %29, label %37

29:                                               ; preds = %24
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load i32, ptr %14, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds i32, ptr %30, i64 %32
  store i32 -1, ptr %33, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %29
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = add i32 %35, 1
  store i32 %36, ptr %14, align 4, !tbaa !9
  br label %24, !llvm.loop !11

37:                                               ; preds = %24
  br label %38

38:                                               ; preds = %37, %20
  br label %127

39:                                               ; preds = %4
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load ptr, ptr @SET_NONE_STRING, align 8, !tbaa !5
  %42 = call i32 @strcasecmp(ptr noundef %40, ptr noundef %41) #6
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %63

44:                                               ; preds = %39
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %62, label %47

47:                                               ; preds = %44
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %58, %47
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = icmp ult i32 %49, %51
  br i1 %52, label %53, label %61

53:                                               ; preds = %48
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr %54, i64 %56
  store i32 0, ptr %57, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %53
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = add i32 %59, 1
  store i32 %60, ptr %14, align 4, !tbaa !9
  br label %48, !llvm.loop !13

61:                                               ; preds = %48
  br label %62

62:                                               ; preds = %61, %44
  br label %126

63:                                               ; preds = %39
  %64 = load i32, ptr %7, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %81, label %66

66:                                               ; preds = %63
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %77, %66
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = icmp ult i32 %68, %70
  br i1 %71, label %72, label %80

72:                                               ; preds = %67
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds i32, ptr %73, i64 %75
  store i32 0, ptr %76, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %72
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %14, align 4, !tbaa !9
  br label %67, !llvm.loop !14

80:                                               ; preds = %67
  br label %81

81:                                               ; preds = %80, %63
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = call ptr @strtok_r(ptr noundef %82, ptr noundef %83, ptr noundef %11) #5
  store ptr %84, ptr %12, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %122, %81
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %125

88:                                               ; preds = %85
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %89, ptr noundef @.str.89, ptr noundef %13) #5
  %91 = icmp ne i32 %90, 1
  br i1 %91, label %92, label %96

92:                                               ; preds = %88
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.90, ptr noundef %94) #5
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %128

96:                                               ; preds = %88
  %97 = load i32, ptr %7, align 4, !tbaa !9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %110

99:                                               ; preds = %96
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = add i32 %100, 1
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp ugt i32 %101, %103
  br i1 %104, label %105, label %109

105:                                              ; preds = %99
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = add i32 %106, 1
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %107, ptr %108, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %105, %99
  br label %122

110:                                              ; preds = %96
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp ult i32 %111, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %110
  br label %117

116:                                              ; preds = %110
  call void @__assert_fail(ptr noundef @.str.91, ptr noundef @.str.1, i32 noundef 2565, ptr noundef @__PRETTY_FUNCTION__.parse_category_set) #7
  unreachable

117:                                              ; preds = %115
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %118, i64 %120
  store i32 1, ptr %121, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %117, %109
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = call ptr @strtok_r(ptr noundef null, ptr noundef %123, ptr noundef %11) #5
  store ptr %124, ptr %12, align 8, !tbaa !5
  br label %85, !llvm.loop !15

125:                                              ; preds = %85
  br label %126

126:                                              ; preds = %125, %62
  br label %127

127:                                              ; preds = %126, %38
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %128

128:                                              ; preds = %127, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %129 = load i32, ptr %5, align 4
  ret i32 %129
}

; Function Attrs: nounwind
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { noreturn 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, !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 = distinct !{!14, !12}
!15 = distinct !{!15, !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.1 = external hidden unnamed_addr constant [71 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.88 = external hidden unnamed_addr constant [2 x i8], align 1
@NA_STRING = external hidden local_unnamed_addr global ptr, align 8
@SET_NONE_STRING = external hidden local_unnamed_addr global ptr, align 8
@.str.89 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.parse_category_set = external hidden unnamed_addr constant [61 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @strcasecmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @parse_category_set(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  %7 = load ptr, ptr @NA_STRING, align 8, !tbaa !5
  %8 = tail call i32 @strcasecmp(ptr noundef %0, ptr noundef %7) #7
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %16

10:                                               ; preds = %4
  %.not38 = icmp eq i32 %1, 0
  br i1 %.not38, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %10
  %11 = load i32, ptr %2, align 4, !tbaa !9
  %.not58 = icmp eq i32 %11, 0
  br i1 %.not58, label %.loopexit, label %.lr.ph55

.lr.ph55:                                         ; preds = %.preheader, %.lr.ph55
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %.lr.ph55 ], [ 0, %.preheader ]
  %12 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv70
  store i32 -1, ptr %12, align 4, !tbaa !9
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %13 = load i32, ptr %2, align 4, !tbaa !9
  %14 = zext i32 %13 to i64
  %15 = icmp ult i64 %indvars.iv.next71, %14
  br i1 %15, label %.lr.ph55, label %.loopexit, !llvm.loop !11

16:                                               ; preds = %4
  %17 = load ptr, ptr @SET_NONE_STRING, align 8, !tbaa !5
  %18 = tail call i32 @strcasecmp(ptr noundef %0, ptr noundef %17) #7
  %19 = icmp eq i32 %18, 0
  %.not37 = icmp eq i32 %1, 0
  br i1 %19, label %20, label %26

20:                                               ; preds = %16
  br i1 %.not37, label %.preheader39, label %.loopexit

.preheader39:                                     ; preds = %20
  %21 = load i32, ptr %2, align 4, !tbaa !9
  %.not57 = icmp eq i32 %21, 0
  br i1 %.not57, label %.loopexit, label %.lr.ph53

.lr.ph53:                                         ; preds = %.preheader39, %.lr.ph53
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %.lr.ph53 ], [ 0, %.preheader39 ]
  %22 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv67
  store i32 0, ptr %22, align 4, !tbaa !9
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %23 = load i32, ptr %2, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = icmp ult i64 %indvars.iv.next68, %24
  br i1 %25, label %.lr.ph53, label %.loopexit, !llvm.loop !13

26:                                               ; preds = %16
  br i1 %.not37, label %.preheader42, label %.loopexit43.thread

.preheader42:                                     ; preds = %26
  %27 = load i32, ptr %2, align 4, !tbaa !9
  %.not56 = icmp eq i32 %27, 0
  br i1 %.not56, label %.loopexit43.thread74, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader42, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader42 ]
  %28 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  store i32 0, ptr %28, align 4, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = load i32, ptr %2, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = icmp ult i64 %indvars.iv.next, %30
  br i1 %31, label %.lr.ph, label %.loopexit43, !llvm.loop !14

.loopexit43:                                      ; preds = %.lr.ph
  %32 = call ptr @strtok_r(ptr noundef %0, ptr noundef nonnull @.str.88, ptr noundef nonnull %5) #6
  %.not3547 = icmp eq ptr %32, null
  br i1 %.not3547, label %.loopexit, label %.lr.ph49

.loopexit43.thread74:                             ; preds = %.preheader42
  %33 = call ptr @strtok_r(ptr noundef %0, ptr noundef nonnull @.str.88, ptr noundef nonnull %5) #6
  %.not354775 = icmp eq ptr %33, null
  br i1 %.not354775, label %.loopexit, label %.lr.ph49.split.us.preheader

.loopexit43.thread:                               ; preds = %26
  %34 = call ptr @strtok_r(ptr noundef %0, ptr noundef nonnull @.str.88, ptr noundef nonnull %5) #6
  %.not354773 = icmp eq ptr %34, null
  br i1 %.not354773, label %.loopexit, label %.lr.ph49.split.preheader

.lr.ph49:                                         ; preds = %.loopexit43
  br i1 %.not37, label %.lr.ph49.split.us.preheader, label %.lr.ph49.split.preheader

.lr.ph49.split.preheader:                         ; preds = %.loopexit43.thread, %.lr.ph49
  %.03148.ph = phi ptr [ %34, %.loopexit43.thread ], [ %32, %.lr.ph49 ]
  br label %.lr.ph49.split

.lr.ph49.split.us.preheader:                      ; preds = %.loopexit43.thread74, %.lr.ph49
  %.03148.us.ph = phi ptr [ %33, %.loopexit43.thread74 ], [ %32, %.lr.ph49 ]
  br label %.lr.ph49.split.us

.lr.ph49.split.us:                                ; preds = %.lr.ph49.split.us.preheader, %40
  %.03148.us = phi ptr [ %43, %40 ], [ %.03148.us.ph, %.lr.ph49.split.us.preheader ]
  %35 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.03148.us, ptr noundef nonnull @.str.89, ptr noundef nonnull %6) #6
  %.not36.us = icmp eq i32 %35, 1
  br i1 %.not36.us, label %36, label %.split.us

36:                                               ; preds = %.lr.ph49.split.us
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = load i32, ptr %2, align 4, !tbaa !9
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %40, label %.split51.us

40:                                               ; preds = %36
  %41 = zext i32 %37 to i64
  %42 = getelementptr inbounds i32, ptr %3, i64 %41
  store i32 1, ptr %42, align 4, !tbaa !9
  %43 = call ptr @strtok_r(ptr noundef null, ptr noundef nonnull @.str.88, ptr noundef nonnull %5) #6
  %.not35.us = icmp eq ptr %43, null
  br i1 %.not35.us, label %.loopexit, label %.lr.ph49.split.us, !llvm.loop !15

.lr.ph49.split:                                   ; preds = %.lr.ph49.split.preheader, %53
  %.03148 = phi ptr [ %54, %53 ], [ %.03148.ph, %.lr.ph49.split.preheader ]
  %44 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.03148, ptr noundef nonnull @.str.89, ptr noundef nonnull %6) #6
  %.not36 = icmp eq i32 %44, 1
  br i1 %.not36, label %47, label %.split.us

.split.us:                                        ; preds = %.lr.ph49.split, %.lr.ph49.split.us
  %.us-phi = phi ptr [ %.03148.us, %.lr.ph49.split.us ], [ %.03148, %.lr.ph49.split ]
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.90, ptr noundef nonnull %.us-phi) #8
  br label %.loopexit

47:                                               ; preds = %.lr.ph49.split
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = add i32 %48, 1
  %50 = load i32, ptr %2, align 4, !tbaa !9
  %51 = icmp ugt i32 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %47
  store i32 %49, ptr %2, align 4, !tbaa !9
  br label %53

.split51.us:                                      ; preds = %36
  call void @__assert_fail(ptr noundef nonnull @.str.91, ptr noundef nonnull @.str.1, i32 noundef 2565, ptr noundef nonnull @__PRETTY_FUNCTION__.parse_category_set) #9
  unreachable

53:                                               ; preds = %47, %52
  %54 = call ptr @strtok_r(ptr noundef null, ptr noundef nonnull @.str.88, ptr noundef nonnull %5) #6
  %.not35 = icmp eq ptr %54, null
  br i1 %.not35, label %.loopexit, label %.lr.ph49.split, !llvm.loop !15

.loopexit:                                        ; preds = %53, %40, %.lr.ph53, %.lr.ph55, %.loopexit43.thread74, %.loopexit43.thread, %.loopexit43, %.preheader39, %.preheader, %10, %20, %.split.us
  %.032 = phi i32 [ -1, %.split.us ], [ 0, %20 ], [ 0, %10 ], [ 0, %.preheader ], [ 0, %.preheader39 ], [ 0, %.loopexit43 ], [ 0, %.loopexit43.thread ], [ 0, %.loopexit43.thread74 ], [ 0, %.lr.ph55 ], [ 0, %.lr.ph53 ], [ 0, %40 ], [ 0, %53 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  ret i32 %.032
}

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok_r(ptr noundef, ptr nocapture noundef readonly, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { 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 #3 = { mustprogress nofree 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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn 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, !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 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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