; LLVM IR from ihucos/plash :: pull:lxc (pull_lxc_main)

; 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.5 = external hidden unnamed_addr constant [54 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@constinit = external hidden constant [6 x ptr], align 8
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @getarch() #0

; 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 i32 @strcmp(ptr noundef, ptr noundef) #2

declare i32 @pl_fatal(ptr noundef, ...) #3

; 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
define dso_local i32 @pull_lxc_main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %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 ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [6 x ptr], align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = icmp slt i32 %17, 2
  br i1 %18, label %19, label %22

19:                                               ; preds = %2
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  %21 = call i32 @fputs(ptr noundef @.str.5, ptr noundef %20)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %110

22:                                               ; preds = %2
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = getelementptr inbounds ptr, ptr %23, i64 1
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  store ptr %25, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 2
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %36

30:                                               ; preds = %22
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 2
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call i32 @strcmp(ptr noundef %33, ptr noundef @.str.6) #8
  %35 = icmp eq i32 %34, 0
  br label %36

36:                                               ; preds = %30, %22
  %37 = phi i1 [ false, %22 ], [ %35, %30 ]
  %38 = zext i1 %37 to i32
  store i32 %38, ptr %15, align 4, !tbaa !5
  %39 = load ptr, ptr %10, align 8, !tbaa !9
  %40 = call ptr @strtok(ptr noundef %39, ptr noundef @.str.7) #7
  store ptr %40, ptr %11, align 8, !tbaa !9
  %41 = call ptr @strtok(ptr noundef null, ptr noundef @.str.7) #7
  store ptr %41, ptr %12, align 8, !tbaa !9
  %42 = load ptr, ptr %12, align 8, !tbaa !9
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %36
  %45 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.8)
  br label %46

46:                                               ; preds = %44, %36
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @constinit, i64 48, i1 false), !tbaa.struct !11
  %47 = getelementptr inbounds [6 x ptr], ptr %16, i64 0, i64 0
  %48 = call ptr @pl_check_output(ptr noundef %47)
  store ptr %48, ptr %9, align 8, !tbaa !9
  %49 = load ptr, ptr %11, align 8, !tbaa !9
  %50 = load ptr, ptr %12, align 8, !tbaa !9
  %51 = call ptr @getarch()
  %52 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %6, ptr noundef @.str.14, ptr noundef %49, ptr noundef %50, ptr noundef %51) #7
  %53 = icmp ne i32 %52, -1
  br i1 %53, label %57, label %54

54:                                               ; preds = %46
  %55 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.15)
  %56 = icmp ne i32 %55, 0
  br label %57

57:                                               ; preds = %54, %46
  %58 = phi i1 [ true, %46 ], [ %56, %54 ]
  %59 = zext i1 %58 to i32
  %60 = load ptr, ptr %9, align 8, !tbaa !9
  %61 = call ptr @strtok(ptr noundef %60, ptr noundef @.str.16) #7
  store ptr %61, ptr %13, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %102, %57
  %63 = load ptr, ptr %13, align 8, !tbaa !9
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %104

65:                                               ; preds = %62
  %66 = load ptr, ptr %13, align 8, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !9
  %69 = call i64 @strlen(ptr noundef %68) #8
  %70 = call i32 @strncmp(ptr noundef %66, ptr noundef %67, i64 noundef %69) #8
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %102

72:                                               ; preds = %65
  %73 = load ptr, ptr %13, align 8, !tbaa !9
  %74 = load ptr, ptr %6, align 8, !tbaa !9
  %75 = call i64 @strlen(ptr noundef %74) #8
  %76 = getelementptr inbounds i8, ptr %73, i64 %75
  store ptr %76, ptr %7, align 8, !tbaa !9
  %77 = load ptr, ptr %7, align 8, !tbaa !9
  %78 = call i64 @strcspn(ptr noundef %77, ptr noundef @.str.17) #8
  %79 = load ptr, ptr %7, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %79, i64 %78
  store ptr %80, ptr %7, align 8, !tbaa !9
  %81 = load ptr, ptr %7, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %81, i64 1
  store ptr %82, ptr %7, align 8, !tbaa !9
  %83 = load ptr, ptr %7, align 8, !tbaa !9
  %84 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %8, ptr noundef @.str.18, ptr noundef %83) #7
  %85 = icmp ne i32 %84, -1
  br i1 %85, label %89, label %86

86:                                               ; preds = %72
  %87 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.15)
  %88 = icmp ne i32 %87, 0
  br label %89

89:                                               ; preds = %86, %72
  %90 = phi i1 [ true, %72 ], [ %88, %86 ]
  %91 = zext i1 %90 to i32
  %92 = load i32, ptr %15, align 4, !tbaa !5
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %97

94:                                               ; preds = %89
  %95 = load ptr, ptr %8, align 8, !tbaa !9
  %96 = call i32 @puts(ptr noundef %95)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %109

97:                                               ; preds = %89
  %98 = load ptr, ptr %8, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @execlp(ptr noundef @.str.19, ptr noundef @.str.20, ptr noundef @.str.21, ptr noundef %98, ptr noundef null) #7
  %100 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.22)
  br label %101

101:                                              ; preds = %97
  br label %102

102:                                              ; preds = %101, %65
  %103 = call ptr @strtok(ptr noundef null, ptr noundef @.str.16) #7
  store ptr %103, ptr %13, align 8, !tbaa !9
  br label %62, !llvm.loop !13

104:                                              ; preds = %62
  %105 = call ptr @__errno_location() #9
  store i32 0, ptr %105, align 4, !tbaa !5
  %106 = load ptr, ptr %11, align 8, !tbaa !9
  %107 = load ptr, ptr %12, align 8, !tbaa !9
  %108 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.23, ptr noundef %106, ptr noundef %107)
  store i32 0, ptr %14, align 4
  br label %109

109:                                              ; preds = %104, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %110

110:                                              ; preds = %109, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %111 = load i32, ptr %14, align 4
  switch i32 %111, label %114 [
    i32 0, label %112
    i32 1, label %112
  ]

112:                                              ; preds = %110, %110
  %113 = load i32, ptr %3, align 4
  ret i32 %113

114:                                              ; preds = %110
  unreachable
}

declare i32 @fputs(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare ptr @strtok(ptr noundef, ptr noundef) #4

declare ptr @pl_check_output(ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) #4

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

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

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

declare i32 @puts(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @execlp(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #6

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 "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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 = !{!"int", !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 = !{i64 0, i64 48, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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.5 = external hidden unnamed_addr constant [54 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@constinit = external hidden local_unnamed_addr constant [6 x ptr], align 8
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @getarch() 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 nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

declare i32 @pl_fatal(ptr noundef, ...) local_unnamed_addr #3

; 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
define dso_local range(i32 0, 2) i32 @pull_lxc_main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [6 x ptr], align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %6 = icmp slt i32 %0, 2
  br i1 %6, label %7, label %10

7:                                                ; preds = %2
  %8 = load ptr, ptr @stderr, align 8, !tbaa !5
  %9 = tail call i32 @fputs(ptr noundef nonnull @.str.5, ptr noundef %8) #10
  br label %68

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %.not = icmp eq ptr %14, null
  br i1 %.not, label %18, label %15

15:                                               ; preds = %10
  %16 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) @.str.6) #11
  %.fr27 = freeze i32 %16
  %17 = icmp eq i32 %.fr27, 0
  br label %18

18:                                               ; preds = %15, %10
  %.fr = phi i1 [ false, %10 ], [ %17, %15 ]
  %19 = tail call ptr @strtok(ptr noundef %12, ptr noundef nonnull @.str.7) #9
  %20 = tail call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.7) #9
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %24

22:                                               ; preds = %18
  %23 = tail call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.8) #9
  br label %24

24:                                               ; preds = %22, %18
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) @constinit, i64 48, i1 false), !tbaa.struct !9
  %25 = call ptr @pl_check_output(ptr noundef nonnull %5) #9
  %26 = call ptr @getarch()
  %27 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %3, ptr noundef nonnull @.str.14, ptr noundef %19, ptr noundef %20, ptr noundef %26) #9
  %.not20 = icmp eq i32 %27, -1
  br i1 %.not20, label %28, label %30

28:                                               ; preds = %24
  %29 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.15) #9
  br label %30

30:                                               ; preds = %28, %24
  %31 = call ptr @strtok(ptr noundef %25, ptr noundef nonnull @.str.16) #9
  %.not2123 = icmp eq ptr %31, null
  br i1 %.not2123, label %._crit_edge, label %.lr.ph

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

.lr.ph.split.us:                                  ; preds = %.lr.ph, %44
  %.01924.us = phi ptr [ %45, %44 ], [ %31, %.lr.ph ]
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %32) #11
  %34 = call i32 @strncmp(ptr noundef nonnull %.01924.us, ptr noundef %32, i64 noundef %33) #11
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %44

36:                                               ; preds = %.lr.ph.split.us
  %37 = getelementptr inbounds i8, ptr %.01924.us, i64 %33
  %38 = call i64 @strcspn(ptr noundef nonnull %37, ptr noundef nonnull @.str.17) #11
  %39 = getelementptr inbounds i8, ptr %37, i64 %38
  %40 = getelementptr inbounds i8, ptr %39, i64 1
  %41 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.18, ptr noundef nonnull %40) #9
  %.not22.us = icmp eq i32 %41, -1
  br i1 %.not22.us, label %42, label %.split.us

42:                                               ; preds = %36
  %43 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.15) #9
  br label %.split.us

44:                                               ; preds = %.lr.ph.split.us
  %45 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.16) #9
  %.not21.us = icmp eq ptr %45, null
  br i1 %.not21.us, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !11

.lr.ph.split:                                     ; preds = %.lr.ph, %64
  %.01924 = phi ptr [ %65, %64 ], [ %31, %.lr.ph ]
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %46) #11
  %48 = call i32 @strncmp(ptr noundef nonnull %.01924, ptr noundef %46, i64 noundef %47) #11
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %64

50:                                               ; preds = %.lr.ph.split
  %51 = getelementptr inbounds i8, ptr %.01924, i64 %47
  %52 = call i64 @strcspn(ptr noundef nonnull %51, ptr noundef nonnull @.str.17) #11
  %53 = getelementptr inbounds i8, ptr %51, i64 %52
  %54 = getelementptr inbounds i8, ptr %53, i64 1
  %55 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.18, ptr noundef nonnull %54) #9
  %.not22 = icmp eq i32 %55, -1
  br i1 %.not22, label %56, label %58

56:                                               ; preds = %50
  %57 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.15) #9
  br label %58

58:                                               ; preds = %56, %50
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @execlp(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.21, ptr noundef %59, ptr noundef null) #9
  %61 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.22) #9
  br label %64

.split.us:                                        ; preds = %42, %36
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %62)
  br label %68

64:                                               ; preds = %58, %.lr.ph.split
  %65 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.16) #9
  %.not21 = icmp eq ptr %65, null
  br i1 %.not21, label %._crit_edge, label %.lr.ph.split, !llvm.loop !11

._crit_edge:                                      ; preds = %64, %44, %30
  %66 = tail call ptr @__errno_location() #12
  store i32 0, ptr %66, align 4, !tbaa !13
  %67 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.23, ptr noundef %19, ptr noundef %20) #9
  br label %68

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

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #4

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

declare ptr @pl_check_output(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #7

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare i32 @execlp(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #8

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 = { "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 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { cold }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 48, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


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