; LLVM IR from ihucos/plash :: tests/C (pl_parse_subid)

; 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.11 = external hidden unnamed_addr constant [2 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: nounwind willreturn memory(none)
declare ptr @__errno_location() #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

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

22:                                               ; preds = %5
  %23 = call ptr @__errno_location() #7
  store i32 0, ptr %23, align 4, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %88

24:                                               ; preds = %5
  br label %25

25:                                               ; preds = %81, %24
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = call i64 @getdelim(ptr noundef %17, ptr noundef %14, i32 noundef 58, ptr noundef %26)
  store i64 %27, ptr %13, align 8, !tbaa !9
  %28 = icmp eq i64 %27, -1
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  br label %82

30:                                               ; preds = %25
  %31 = load ptr, ptr %17, align 8, !tbaa !5
  %32 = load i64, ptr %13, align 8, !tbaa !9
  %33 = sub i64 %32, 1
  %34 = getelementptr inbounds i8, ptr %31, i64 %33
  store i8 0, ptr %34, align 1, !tbaa !13
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = call i64 @getdelim(ptr noundef %35, ptr noundef %15, i32 noundef 58, ptr noundef %36)
  store i64 %37, ptr %13, align 8, !tbaa !9
  %38 = icmp eq i64 %37, -1
  br i1 %38, label %39, label %40

39:                                               ; preds = %30
  br label %82

40:                                               ; preds = %30
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load i64, ptr %13, align 8, !tbaa !9
  %44 = sub i64 %43, 1
  %45 = getelementptr inbounds i8, ptr %42, i64 %44
  store i8 0, ptr %45, align 1, !tbaa !13
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = call i64 @getdelim(ptr noundef %46, ptr noundef %16, i32 noundef 10, ptr noundef %47)
  store i64 %48, ptr %13, align 8, !tbaa !9
  %49 = icmp eq i64 %48, -1
  br i1 %49, label %50, label %51

50:                                               ; preds = %40
  br label %82

51:                                               ; preds = %40
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = call i32 @feof(ptr noundef %52) #6
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %51
  %56 = load i64, ptr %13, align 8, !tbaa !9
  %57 = add i64 %56, 1
  store i64 %57, ptr %13, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %55, %51
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = load i64, ptr %13, align 8, !tbaa !9
  %62 = sub i64 %61, 1
  %63 = getelementptr inbounds i8, ptr %60, i64 %62
  store i8 0, ptr %63, align 1, !tbaa !13
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %71

66:                                               ; preds = %58
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = call i32 @strcmp(ptr noundef %67, ptr noundef %68) #8
  %70 = icmp eq i32 0, %69
  br i1 %70, label %79, label %71

71:                                               ; preds = %66, %58
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %81

74:                                               ; preds = %71
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = call i32 @strcmp(ptr noundef %75, ptr noundef %76) #8
  %78 = icmp eq i32 0, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %74, %66
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %80) #6
  store i32 1, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %88

81:                                               ; preds = %74, %71
  br label %25

82:                                               ; preds = %50, %39, %29
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %87

85:                                               ; preds = %82
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %86) #6
  br label %87

87:                                               ; preds = %85, %82
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %88

88:                                               ; preds = %87, %79, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %89 = load i32, ptr %6, align 4
  ret i32 %89
}

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

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind willreturn memory(none) "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 = { "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 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}


; 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.11 = external hidden unnamed_addr constant [2 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 nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; 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 noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @pl_parse_subid(ptr nocapture noundef readonly %0, ptr noundef readonly %1, ptr noundef readonly %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #4 {
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store i64 0, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store ptr null, ptr %9, align 8, !tbaa !9
  %10 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.11)
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %84, label %.preheader

.preheader:                                       ; preds = %5
  %11 = call i64 @getdelim(ptr noundef nonnull %9, ptr noundef nonnull %6, i32 noundef 58, ptr noundef nonnull %10) #7
  %12 = icmp eq i64 %11, -1
  br i1 %12, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %.not25 = icmp eq ptr %1, null
  %.not26 = icmp eq ptr %2, null
  br i1 %.not25, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  br i1 %.not26, label %.lr.ph.split.us.split.us, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us, %25
  %13 = phi i64 [ %32, %25 ], [ %11, %.lr.ph.split.us ]
  %14 = load ptr, ptr %9, align 8, !tbaa !9
  %15 = getelementptr i8, ptr %14, i64 %13
  %16 = getelementptr i8, ptr %15, i64 -1
  store i8 0, ptr %16, align 1, !tbaa !11
  %17 = call i64 @getdelim(ptr noundef %3, ptr noundef nonnull %7, i32 noundef 58, ptr noundef nonnull %10) #7
  %18 = icmp eq i64 %17, -1
  br i1 %18, label %._crit_edge, label %19

19:                                               ; preds = %.lr.ph.split.us.split.us
  %20 = load ptr, ptr %3, align 8, !tbaa !9
  %21 = getelementptr i8, ptr %20, i64 %17
  %22 = getelementptr i8, ptr %21, i64 -1
  store i8 0, ptr %22, align 1, !tbaa !11
  %23 = call i64 @getdelim(ptr noundef %4, ptr noundef nonnull %8, i32 noundef 10, ptr noundef nonnull %10) #7
  %24 = icmp eq i64 %23, -1
  br i1 %24, label %._crit_edge, label %25

25:                                               ; preds = %19
  %26 = call i32 @feof(ptr noundef nonnull %10) #7
  %.not24.us.us = icmp ne i32 %26, 0
  %27 = zext i1 %.not24.us.us to i64
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  %29 = getelementptr i8, ptr %28, i64 %23
  %30 = getelementptr i8, ptr %29, i64 %27
  %31 = getelementptr i8, ptr %30, i64 -1
  store i8 0, ptr %31, align 1, !tbaa !11
  %32 = call i64 @getdelim(ptr noundef nonnull %9, ptr noundef nonnull %6, i32 noundef 58, ptr noundef nonnull %10) #7
  %33 = icmp eq i64 %32, -1
  br i1 %33, label %._crit_edge, label %.lr.ph.split.us.split.us

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us, %56
  %34 = phi i64 [ %57, %56 ], [ %11, %.lr.ph.split.us ]
  %35 = load ptr, ptr %9, align 8, !tbaa !9
  %36 = getelementptr i8, ptr %35, i64 %34
  %37 = getelementptr i8, ptr %36, i64 -1
  store i8 0, ptr %37, align 1, !tbaa !11
  %38 = call i64 @getdelim(ptr noundef %3, ptr noundef nonnull %7, i32 noundef 58, ptr noundef nonnull %10) #7
  %39 = icmp eq i64 %38, -1
  br i1 %39, label %._crit_edge, label %40

40:                                               ; preds = %.lr.ph.split.us.split
  %41 = load ptr, ptr %3, align 8, !tbaa !9
  %42 = getelementptr i8, ptr %41, i64 %38
  %43 = getelementptr i8, ptr %42, i64 -1
  store i8 0, ptr %43, align 1, !tbaa !11
  %44 = call i64 @getdelim(ptr noundef %4, ptr noundef nonnull %8, i32 noundef 10, ptr noundef nonnull %10) #7
  %45 = icmp eq i64 %44, -1
  br i1 %45, label %._crit_edge, label %46

46:                                               ; preds = %40
  %47 = call i32 @feof(ptr noundef nonnull %10) #7
  %.not24.us = icmp ne i32 %47, 0
  %48 = zext i1 %.not24.us to i64
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  %50 = getelementptr i8, ptr %49, i64 %44
  %51 = getelementptr i8, ptr %50, i64 %48
  %52 = getelementptr i8, ptr %51, i64 -1
  store i8 0, ptr %52, align 1, !tbaa !11
  %53 = load ptr, ptr %9, align 8, !tbaa !9
  %54 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %53) #8
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %.split.us, label %56

56:                                               ; preds = %46
  %57 = call i64 @getdelim(ptr noundef nonnull %9, ptr noundef nonnull %6, i32 noundef 58, ptr noundef nonnull %10) #7
  %58 = icmp eq i64 %57, -1
  br i1 %58, label %._crit_edge, label %.lr.ph.split.us.split

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %.not26, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %81
  %59 = phi i64 [ %82, %81 ], [ %11, %.lr.ph.split ]
  %60 = load ptr, ptr %9, align 8, !tbaa !9
  %61 = getelementptr i8, ptr %60, i64 %59
  %62 = getelementptr i8, ptr %61, i64 -1
  store i8 0, ptr %62, align 1, !tbaa !11
  %63 = call i64 @getdelim(ptr noundef %3, ptr noundef nonnull %7, i32 noundef 58, ptr noundef nonnull %10) #7
  %64 = icmp eq i64 %63, -1
  br i1 %64, label %._crit_edge, label %65

65:                                               ; preds = %.lr.ph.split.split.us
  %66 = load ptr, ptr %3, align 8, !tbaa !9
  %67 = getelementptr i8, ptr %66, i64 %63
  %68 = getelementptr i8, ptr %67, i64 -1
  store i8 0, ptr %68, align 1, !tbaa !11
  %69 = call i64 @getdelim(ptr noundef %4, ptr noundef nonnull %8, i32 noundef 10, ptr noundef nonnull %10) #7
  %70 = icmp eq i64 %69, -1
  br i1 %70, label %._crit_edge, label %71

71:                                               ; preds = %65
  %72 = call i32 @feof(ptr noundef nonnull %10) #7
  %.not24.us30 = icmp ne i32 %72, 0
  %73 = zext i1 %.not24.us30 to i64
  %74 = load ptr, ptr %4, align 8, !tbaa !9
  %75 = getelementptr i8, ptr %74, i64 %69
  %76 = getelementptr i8, ptr %75, i64 %73
  %77 = getelementptr i8, ptr %76, i64 -1
  store i8 0, ptr %77, align 1, !tbaa !11
  %78 = load ptr, ptr %9, align 8, !tbaa !9
  %79 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %78) #8
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %.split.us, label %81

81:                                               ; preds = %71
  %82 = call i64 @getdelim(ptr noundef nonnull %9, ptr noundef nonnull %6, i32 noundef 58, ptr noundef nonnull %10) #7
  %83 = icmp eq i64 %82, -1
  br i1 %83, label %._crit_edge, label %.lr.ph.split.split.us

84:                                               ; preds = %5
  %85 = tail call ptr @__errno_location() #9
  store i32 0, ptr %85, align 4, !tbaa !12
  br label %117

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %112
  %86 = phi i64 [ %113, %112 ], [ %11, %.lr.ph.split ]
  %87 = load ptr, ptr %9, align 8, !tbaa !9
  %88 = getelementptr i8, ptr %87, i64 %86
  %89 = getelementptr i8, ptr %88, i64 -1
  store i8 0, ptr %89, align 1, !tbaa !11
  %90 = call i64 @getdelim(ptr noundef %3, ptr noundef nonnull %7, i32 noundef 58, ptr noundef nonnull %10) #7
  %91 = icmp eq i64 %90, -1
  br i1 %91, label %._crit_edge, label %92

92:                                               ; preds = %.lr.ph.split.split
  %93 = load ptr, ptr %3, align 8, !tbaa !9
  %94 = getelementptr i8, ptr %93, i64 %90
  %95 = getelementptr i8, ptr %94, i64 -1
  store i8 0, ptr %95, align 1, !tbaa !11
  %96 = call i64 @getdelim(ptr noundef %4, ptr noundef nonnull %8, i32 noundef 10, ptr noundef nonnull %10) #7
  %97 = icmp eq i64 %96, -1
  br i1 %97, label %._crit_edge, label %98

98:                                               ; preds = %92
  %99 = call i32 @feof(ptr noundef nonnull %10) #7
  %.not24 = icmp ne i32 %99, 0
  %100 = zext i1 %.not24 to i64
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = getelementptr i8, ptr %101, i64 %96
  %103 = getelementptr i8, ptr %102, i64 %100
  %104 = getelementptr i8, ptr %103, i64 -1
  store i8 0, ptr %104, align 1, !tbaa !11
  %105 = load ptr, ptr %9, align 8, !tbaa !9
  %106 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %105) #8
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %.split.us, label %108

108:                                              ; preds = %98
  %109 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %105) #8
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %.split.us, label %112

.split.us:                                        ; preds = %108, %98, %71, %46
  %111 = phi ptr [ %53, %46 ], [ %78, %71 ], [ %105, %98 ], [ %105, %108 ]
  call void @free(ptr noundef %111) #7
  br label %117

112:                                              ; preds = %108
  %113 = call i64 @getdelim(ptr noundef nonnull %9, ptr noundef nonnull %6, i32 noundef 58, ptr noundef nonnull %10) #7
  %114 = icmp eq i64 %113, -1
  br i1 %114, label %._crit_edge, label %.lr.ph.split.split

._crit_edge:                                      ; preds = %112, %.lr.ph.split.split, %92, %81, %.lr.ph.split.split.us, %65, %56, %.lr.ph.split.us.split, %40, %25, %.lr.ph.split.us.split.us, %19, %.preheader
  %115 = load ptr, ptr %9, align 8, !tbaa !9
  %.not27 = icmp eq ptr %115, null
  br i1 %.not27, label %117, label %116

116:                                              ; preds = %._crit_edge
  call void @free(ptr noundef nonnull %115) #7
  br label %117

117:                                              ; preds = %._crit_edge, %116, %.split.us, %84
  %.017 = phi i32 [ 1, %.split.us ], [ 0, %84 ], [ 0, %116 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret i32 %.017
}

declare i64 @getdelim(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @feof(ptr nocapture noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 nounwind willreturn allockind("free") memory(argmem: readwrite, 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 "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 = { "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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind willreturn memory(none) }

!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 = !{!"long", !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, !13, i64 0}
!13 = !{!"int", !7, i64 0}


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