; LLVM IR from ihucos/plash :: build (build_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 = external hidden unnamed_addr constant [15 x i8], align 1
@constinit = external hidden constant [3 x ptr], align 8
@.str.2 = external hidden unnamed_addr constant [52 x i8], align 1
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@constinit.5 = external hidden constant [3 x ptr], align 8
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@pl_array = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @build_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 [3 x ptr], align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca [4 x ptr], align 8
  %11 = alloca ptr, align 8
  %12 = alloca [3 x ptr], align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca 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) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @constinit, i64 24, i1 false), !tbaa.struct !11
  %17 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 0
  %18 = call ptr @pl_check_output(ptr noundef %17)
  %19 = call ptr @pl_firstline(ptr noundef %18)
  store ptr %19, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 1
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  store ptr %22, ptr %8, align 8, !tbaa !9
  %23 = load ptr, ptr %8, align 8, !tbaa !9
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %2
  %26 = load ptr, ptr @stderr, align 8, !tbaa !9
  %27 = call i32 @fputs(ptr noundef @.str.2, ptr noundef %26)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %119

28:                                               ; preds = %2
  store ptr @.str, ptr %10, align 8, !tbaa !9
  %29 = getelementptr inbounds ptr, ptr %10, i64 1
  store ptr @.str.3, ptr %29, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %10, i64 2
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %31, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %10, i64 3
  store ptr null, ptr %32, align 8, !tbaa !9
  %33 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 0
  %34 = call ptr @pl_check_output(ptr noundef %33)
  %35 = call ptr @pl_firstline(ptr noundef %34)
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i32 1
  store ptr %37, ptr %5, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 @constinit.5, i64 24, i1 false), !tbaa.struct !11
  %40 = getelementptr inbounds [3 x ptr], ptr %12, i64 0, i64 0
  %41 = call ptr @pl_check_output(ptr noundef %40)
  %42 = call ptr @pl_firstline(ptr noundef %41)
  store ptr %42, ptr %11, align 8, !tbaa !9
  %43 = call ptr @pl_array_add(ptr noundef @.str)
  %44 = call ptr @pl_array_add(ptr noundef @.str.6)
  %45 = load ptr, ptr %8, align 8, !tbaa !9
  %46 = call ptr @pl_array_add(ptr noundef %45)
  %47 = load ptr, ptr %11, align 8, !tbaa !9
  %48 = call ptr @pl_array_add(ptr noundef %47)
  %49 = load ptr, ptr %5, align 8, !tbaa !9
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %64

52:                                               ; preds = %28
  br label %53

53:                                               ; preds = %57, %52
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %63

57:                                               ; preds = %53
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = call ptr @pl_array_add(ptr noundef %59)
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i32 1
  store ptr %62, ptr %5, align 8, !tbaa !9
  br label %53, !llvm.loop !13

63:                                               ; preds = %53
  br label %66

64:                                               ; preds = %28
  %65 = call ptr @pl_array_add(ptr noundef @.str.7)
  br label %66

66:                                               ; preds = %64, %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %67 = call i32 @fork() #6
  store i32 %67, ptr %13, align 4, !tbaa !5
  %68 = load i32, ptr %13, align 4, !tbaa !5
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %83

70:                                               ; preds = %66
  %71 = call i32 @dup2(i32 noundef 2, i32 noundef 1) #6
  %72 = icmp eq i32 %71, -1
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.8)
  br label %75

75:                                               ; preds = %73, %70
  %76 = call ptr @pl_array_add(ptr noundef null)
  %77 = load ptr, ptr @pl_array, align 8, !tbaa !9
  %78 = getelementptr inbounds ptr, ptr %77, i64 0
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = load ptr, ptr @pl_array, align 8, !tbaa !9
  %81 = call i32 @execvp(ptr noundef %79, ptr noundef %80) #6
  %82 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.9)
  br label %83

83:                                               ; preds = %75, %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %84 = load i32, ptr %13, align 4, !tbaa !5
  %85 = call i32 @waitpid(i32 noundef %84, ptr noundef %14, i32 noundef 0)
  %86 = icmp slt i32 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.10)
  br label %89

89:                                               ; preds = %87, %83
  %90 = load i32, ptr %14, align 4, !tbaa !5
  %91 = and i32 %90, 127
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %95, label %93

93:                                               ; preds = %89
  %94 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.11)
  br label %95

95:                                               ; preds = %93, %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %96 = load i32, ptr %14, align 4, !tbaa !5
  %97 = and i32 %96, 65280
  %98 = ashr i32 %97, 8
  store i32 %98, ptr %15, align 4, !tbaa !5
  %99 = load i32, ptr %15, align 4, !tbaa !5
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %105

101:                                              ; preds = %95
  %102 = call ptr @__errno_location() #7
  store i32 0, ptr %102, align 4, !tbaa !5
  %103 = load i32, ptr %15, align 4, !tbaa !5
  %104 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.12, i32 noundef %103)
  br label %105

105:                                              ; preds = %101, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr null, ptr %16, align 8, !tbaa !9
  %106 = load ptr, ptr %11, align 8, !tbaa !9
  %107 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %16, ptr noundef @.str.13, ptr noundef %106) #6
  %108 = icmp ne i32 %107, -1
  br i1 %108, label %112, label %109

109:                                              ; preds = %105
  %110 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.14)
  %111 = icmp ne i32 %110, 0
  br label %112

112:                                              ; preds = %109, %105
  %113 = phi i1 [ true, %105 ], [ %111, %109 ]
  %114 = zext i1 %113 to i32
  %115 = load ptr, ptr %8, align 8, !tbaa !9
  %116 = load ptr, ptr %16, align 8, !tbaa !9
  %117 = call i32 (ptr, ptr, ...) @execlp(ptr noundef @.str, ptr noundef @.str.15, ptr noundef @.str.16, ptr noundef %115, ptr noundef %116, ptr noundef null) #6
  %118 = 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 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  store i32 0, ptr %9, align 4
  br label %119

119:                                              ; preds = %112, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %120 = load i32, ptr %9, align 4
  switch i32 %120, label %123 [
    i32 0, label %121
    i32 1, label %121
  ]

121:                                              ; preds = %119, %119
  %122 = load i32, ptr %3, align 4
  ret i32 %122

123:                                              ; preds = %119
  unreachable
}

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

declare ptr @pl_firstline(ptr noundef) #2

declare ptr @pl_check_output(ptr noundef) #2

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

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

declare ptr @pl_array_add(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fork() #4

; Function Attrs: nounwind
declare i32 @dup2(i32 noundef, i32 noundef) #4

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

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

declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #2

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

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

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

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

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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #6 = { nounwind }
attributes #7 = { 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 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 = external hidden unnamed_addr constant [15 x i8], align 1
@constinit = external hidden local_unnamed_addr constant [3 x ptr], align 8
@.str.2 = external hidden unnamed_addr constant [52 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@constinit.5 = external hidden local_unnamed_addr constant [3 x ptr], align 8
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@pl_array = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @build_main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [3 x ptr], align 8
  %4 = alloca [4 x ptr], align 8
  %5 = alloca [3 x ptr], align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  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 !5
  %8 = call ptr @pl_check_output(ptr noundef nonnull %3) #7
  %9 = call ptr @pl_firstline(ptr noundef %8) #7
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %16

13:                                               ; preds = %2
  %14 = load ptr, ptr @stderr, align 8, !tbaa !9
  %15 = call i32 @fputs(ptr noundef nonnull @.str.2, ptr noundef %14) #8
  br label %74

16:                                               ; preds = %2
  store ptr @.str, ptr %4, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr @.str.3, ptr %17, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %11, ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %4, i64 24
  store ptr null, ptr %19, align 8, !tbaa !9
  %20 = call ptr @pl_check_output(ptr noundef nonnull %4) #7
  %21 = call ptr @pl_firstline(ptr noundef %20) #7
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) @constinit.5, i64 24, i1 false), !tbaa.struct !5
  %23 = call ptr @pl_check_output(ptr noundef nonnull %5) #7
  %24 = call ptr @pl_firstline(ptr noundef %23) #7
  %25 = call ptr @pl_array_add(ptr noundef nonnull @.str) #7
  %26 = call ptr @pl_array_add(ptr noundef nonnull @.str.6) #7
  %27 = call ptr @pl_array_add(ptr noundef nonnull %11) #7
  %28 = call ptr @pl_array_add(ptr noundef %24) #7
  %29 = load ptr, ptr %22, align 8, !tbaa !9
  %.not = icmp eq ptr %29, null
  br i1 %.not, label %33, label %.preheader

.preheader:                                       ; preds = %16, %.preheader
  %.023 = phi ptr [ %32, %.preheader ], [ %22, %16 ]
  %30 = phi ptr [ %.pr, %.preheader ], [ %29, %16 ]
  %31 = call ptr @pl_array_add(ptr noundef nonnull %30) #7
  %32 = getelementptr inbounds i8, ptr %.023, i64 8
  %.pr = load ptr, ptr %32, align 8, !tbaa !9
  %.not20 = icmp eq ptr %.pr, null
  br i1 %.not20, label %.loopexit, label %.preheader, !llvm.loop !11

33:                                               ; preds = %16
  %34 = call ptr @pl_array_add(ptr noundef nonnull @.str.7) #7
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %33
  %35 = call i32 @fork() #7
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %48

37:                                               ; preds = %.loopexit
  %38 = call i32 @dup2(i32 noundef 2, i32 noundef 1) #7
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %40, label %42

40:                                               ; preds = %37
  %41 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.8) #7
  br label %42

42:                                               ; preds = %40, %37
  %43 = call ptr @pl_array_add(ptr noundef null) #7
  %44 = load ptr, ptr @pl_array, align 8, !tbaa !9
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = call i32 @execvp(ptr noundef %45, ptr noundef nonnull %44) #7
  %47 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.9) #7
  br label %48

48:                                               ; preds = %42, %.loopexit
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %49 = call i32 @waitpid(i32 noundef %35, ptr noundef nonnull %6, i32 noundef 0) #7
  %50 = icmp slt i32 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %48
  %52 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.10) #7
  br label %53

53:                                               ; preds = %51, %48
  %54 = load i32, ptr %6, align 4, !tbaa !13
  %55 = and i32 %54, 127
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %59, label %57

57:                                               ; preds = %53
  %58 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.11) #7
  %.pre = load i32, ptr %6, align 4, !tbaa !13
  br label %59

59:                                               ; preds = %57, %53
  %60 = phi i32 [ %.pre, %57 ], [ %54, %53 ]
  %61 = lshr i32 %60, 8
  %62 = and i32 %61, 255
  %.not21 = icmp eq i32 %62, 0
  br i1 %.not21, label %66, label %63

63:                                               ; preds = %59
  %64 = tail call ptr @__errno_location() #9
  store i32 0, ptr %64, align 4, !tbaa !13
  %65 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.12, i32 noundef %62) #7
  br label %66

66:                                               ; preds = %63, %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store ptr null, ptr %7, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.13, ptr noundef %24) #7
  %.not22 = icmp eq i32 %67, -1
  br i1 %.not22, label %68, label %70

68:                                               ; preds = %66
  %69 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.14) #7
  br label %70

70:                                               ; preds = %68, %66
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @execlp(ptr noundef nonnull @.str, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16, ptr noundef nonnull %11, ptr noundef %71, ptr noundef null) #7
  %73 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %74

74:                                               ; preds = %70, %13
  ret i32 1
}

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

declare ptr @pl_firstline(ptr noundef) local_unnamed_addr #2

declare ptr @pl_check_output(ptr noundef) local_unnamed_addr #2

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

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

declare ptr @pl_array_add(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare i32 @fork() local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @dup2(i32 noundef, i32 noundef) local_unnamed_addr #5

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

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

declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #7 = { nounwind }
attributes #8 = { cold }
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 = !{i64 0, i64 24, !6}
!6 = !{!7, !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 = 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,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass