; LLVM IR from ihucos/plash :: run (run_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.1 = external hidden unnamed_addr constant [49 x i8], align 1
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@constinit = external hidden constant [3 x ptr], align 8
@constinit.6 = external hidden constant [3 x ptr], align 8
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@pl_array = external global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [7 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(read)
declare i32 @strcmp(ptr 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 uwtable
define dso_local i32 @run_main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [3 x ptr], align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [3 x ptr], align 8
  %12 = alloca ptr, align 8
  %13 = alloca [6 x ptr], align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 2
  br i1 %19, label %20, label %23

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

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i64 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = call i32 @strcmp(ptr noundef %26, ptr noundef @.str.2) #7
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %40

29:                                               ; preds = %23
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = getelementptr inbounds ptr, ptr %30, i64 2
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  store ptr %32, ptr %6, align 8, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 2
  store ptr %35, ptr %37, align 8, !tbaa !9
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %38, i32 1
  store ptr %39, ptr %5, align 8, !tbaa !9
  br label %44

40:                                               ; preds = %23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @constinit, i64 24, i1 false), !tbaa.struct !11
  %41 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 0
  %42 = call ptr @pl_check_output(ptr noundef %41)
  %43 = call ptr @pl_firstline(ptr noundef %42)
  store ptr %43, ptr %6, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %40, %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 1
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  store ptr %47, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %48 = call ptr @get_current_dir_name() #6
  store ptr %48, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 @constinit.6, i64 24, i1 false), !tbaa.struct !11
  %49 = getelementptr inbounds [3 x ptr], ptr %11, i64 0, i64 0
  %50 = call ptr @pl_check_output(ptr noundef %49)
  %51 = call ptr @pl_firstline(ptr noundef %50)
  store ptr %51, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void (...) @pl_unshare_user()
  call void (...) @pl_unshare_mount()
  %52 = load ptr, ptr %10, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %12, ptr noundef @.str.7, ptr noundef %52) #6
  %54 = load ptr, ptr %12, align 8, !tbaa !9
  %55 = call i32 @mount(ptr noundef @.str.8, ptr noundef %54, ptr noundef @.str.8, i64 noundef 3236757504, ptr noundef null) #6
  %56 = icmp eq i32 %55, -1
  br i1 %56, label %57, label %59

57:                                               ; preds = %44
  %58 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.9)
  br label %59

59:                                               ; preds = %57, %44
  store ptr @.str.3, ptr %13, align 8, !tbaa !9
  %60 = getelementptr inbounds ptr, ptr %13, i64 1
  store ptr @.str.9, ptr %60, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %13, i64 2
  %62 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %62, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds ptr, ptr %13, i64 3
  %64 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %64, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %13, i64 4
  %66 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %66, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %13, i64 5
  store ptr null, ptr %67, align 8, !tbaa !9
  %68 = getelementptr inbounds [6 x ptr], ptr %13, i64 0, i64 0
  %69 = call ptr @pl_check_output(ptr noundef %68)
  %70 = call ptr @pl_firstline(ptr noundef %69)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %71 = load ptr, ptr %12, align 8, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %14, ptr noundef @.str.10, ptr noundef %71) #6
  %73 = load ptr, ptr %14, align 8, !tbaa !9
  %74 = call i32 @unlink(ptr noundef %73) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %75 = load ptr, ptr %14, align 8, !tbaa !9
  %76 = call i32 (ptr, i32, ...) @open(ptr noundef %75, i32 noundef 65, i32 noundef 509)
  store i32 %76, ptr %15, align 4, !tbaa !5
  %77 = icmp slt i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %59
  %79 = load ptr, ptr %14, align 8, !tbaa !9
  %80 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.11, ptr noundef %79)
  br label %81

81:                                               ; preds = %78, %59
  %82 = load i32, ptr %15, align 4, !tbaa !5
  %83 = call i32 @close(i32 noundef %82)
  %84 = call ptr @pl_array_add(ptr noundef @.str.3)
  %85 = call ptr @pl_array_add(ptr noundef @.str.12)
  %86 = load ptr, ptr %12, align 8, !tbaa !9
  %87 = call ptr @pl_array_add(ptr noundef %86)
  %88 = call ptr @pl_array_add(ptr noundef @.str.13)
  %89 = call ptr @pl_array_add(ptr noundef @.str.14)
  %90 = call ptr @pl_array_add(ptr noundef @.str.15)
  %91 = call ptr @pl_array_add(ptr noundef @.str.16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %92, i64 2
  store ptr %93, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %109, %81
  %95 = load ptr, ptr %16, align 8, !tbaa !9
  %96 = load i32, ptr %17, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = icmp ne ptr %99, null
  br i1 %100, label %102, label %101

101:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %112

102:                                              ; preds = %94
  %103 = load ptr, ptr %16, align 8, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds ptr, ptr %103, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = call ptr @pl_array_add(ptr noundef %107)
  br label %109

109:                                              ; preds = %102
  %110 = load i32, ptr %17, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %17, align 4, !tbaa !5
  br label %94, !llvm.loop !13

112:                                              ; preds = %101
  %113 = call ptr @pl_array_add(ptr noundef null)
  %114 = load ptr, ptr @pl_array, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %114, i64 0
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = load ptr, ptr @pl_array, align 8, !tbaa !9
  %118 = call i32 @execvp(ptr noundef %116, ptr noundef %117) #6
  %119 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %120

120:                                              ; preds = %112, %20
  %121 = load i32, ptr %3, align 4
  ret i32 %121
}

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

declare ptr @pl_firstline(ptr noundef) #3

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) #4

; Function Attrs: nounwind
declare ptr @get_current_dir_name() #5

declare void @pl_unshare_user(...) #3

declare void @pl_unshare_mount(...) #3

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

; Function Attrs: nounwind
declare i32 @mount(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #5

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

; Function Attrs: nounwind
declare i32 @unlink(ptr noundef) #5

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

declare i32 @close(i32 noundef) #3

declare ptr @pl_array_add(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @execvp(ptr noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"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 24, !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.1 = external hidden unnamed_addr constant [49 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@constinit = external hidden local_unnamed_addr constant [3 x ptr], align 8
@constinit.6 = external hidden local_unnamed_addr constant [3 x ptr], align 8
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@pl_array = external local_unnamed_addr global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [7 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 nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture 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: nounwind uwtable
define dso_local noundef i32 @run_main(i32 noundef %0, ptr nocapture noundef %1) local_unnamed_addr #2 {
  %3 = alloca [3 x ptr], align 8
  %4 = alloca [3 x ptr], align 8
  %5 = alloca ptr, align 8
  %6 = alloca [6 x ptr], align 8
  %7 = alloca ptr, align 8
  %8 = icmp slt i32 %0, 2
  br i1 %8, label %9, label %12

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

12:                                               ; preds = %2
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.2) #9
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %21

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %20, ptr %17, align 8, !tbaa !5
  br label %24

21:                                               ; preds = %12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) @constinit, i64 24, i1 false), !tbaa.struct !9
  %22 = call ptr @pl_check_output(ptr noundef nonnull %3) #10
  %23 = call ptr @pl_firstline(ptr noundef %22) #10
  br label %24

24:                                               ; preds = %21, %16
  %.018 = phi ptr [ %18, %16 ], [ %23, %21 ]
  %.017 = phi ptr [ %19, %16 ], [ %1, %21 ]
  %25 = getelementptr inbounds i8, ptr %.017, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = call ptr @get_current_dir_name() #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) @constinit.6, i64 24, i1 false), !tbaa.struct !9
  %28 = call ptr @pl_check_output(ptr noundef nonnull %4) #10
  %29 = call ptr @pl_firstline(ptr noundef %28) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  call void (...) @pl_unshare_user() #10
  call void (...) @pl_unshare_mount() #10
  %30 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.7, ptr noundef %29) #10
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call i32 @mount(ptr noundef nonnull @.str.8, ptr noundef %31, ptr noundef nonnull @.str.8, i64 noundef 3236757504, ptr noundef null) #10
  %33 = icmp eq i32 %32, -1
  br i1 %33, label %34, label %36

34:                                               ; preds = %24
  %35 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.9) #10
  br label %36

36:                                               ; preds = %34, %24
  store ptr @.str.3, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr @.str.9, ptr %37, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %26, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %6, i64 24
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %40, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %6, i64 32
  store ptr %.018, ptr %41, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %6, i64 40
  store ptr null, ptr %42, align 8, !tbaa !5
  %43 = call ptr @pl_check_output(ptr noundef nonnull %6) #10
  %44 = call ptr @pl_firstline(ptr noundef %43) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.10, ptr noundef %45) #10
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = call i32 @unlink(ptr noundef %47) #10
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call i32 (ptr, i32, ...) @open(ptr noundef %49, i32 noundef 65, i32 noundef 509) #10
  %51 = icmp slt i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %36
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.11, ptr noundef %53) #10
  br label %55

55:                                               ; preds = %52, %36
  %56 = call i32 @close(i32 noundef %50) #10
  %57 = call ptr @pl_array_add(ptr noundef nonnull @.str.3) #10
  %58 = call ptr @pl_array_add(ptr noundef nonnull @.str.12) #10
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = call ptr @pl_array_add(ptr noundef %59) #10
  %61 = call ptr @pl_array_add(ptr noundef nonnull @.str.13) #10
  %62 = call ptr @pl_array_add(ptr noundef nonnull @.str.14) #10
  %63 = call ptr @pl_array_add(ptr noundef nonnull @.str.15) #10
  %64 = call ptr @pl_array_add(ptr noundef nonnull @.str.16) #10
  %65 = getelementptr inbounds i8, ptr %.017, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %.not20 = icmp eq ptr %66, null
  br i1 %.not20, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %55
  %67 = call ptr @pl_array_add(ptr noundef null) #10
  %68 = load ptr, ptr @pl_array, align 8, !tbaa !5
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = call i32 @execvp(ptr noundef %69, ptr noundef nonnull %68) #10
  %71 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  br label %76

.lr.ph:                                           ; preds = %55, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %55 ]
  %72 = phi ptr [ %75, %.lr.ph ], [ %66, %55 ]
  %73 = call ptr @pl_array_add(ptr noundef nonnull %72) #10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %74 = getelementptr inbounds ptr, ptr %65, i64 %indvars.iv.next
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %.not = icmp eq ptr %75, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

76:                                               ; preds = %._crit_edge, %9
  ret i32 1
}

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

declare ptr @pl_firstline(ptr noundef) local_unnamed_addr #4

declare ptr @pl_check_output(ptr noundef) local_unnamed_addr #4

; 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) #5

; Function Attrs: nounwind
declare ptr @get_current_dir_name() local_unnamed_addr #6

declare void @pl_unshare_user(...) local_unnamed_addr #4

declare void @pl_unshare_mount(...) local_unnamed_addr #4

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

; Function Attrs: nounwind
declare i32 @mount(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #7

declare i32 @close(i32 noundef) local_unnamed_addr #4

declare ptr @pl_array_add(ptr noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nofree "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 = { cold }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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 = !{i64 0, i64 24, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass