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

@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @pl_fatal(ptr noundef, ...) #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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 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
declare i32 @fork() #2

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

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

declare i32 @close(i32 noundef) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local void @pl_pipe(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [2 x i32], align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %12 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
  %13 = call i32 @pipe(ptr noundef %12) #5
  %14 = icmp slt i32 %13, 0
  br i1 %14, label %15, label %17

15:                                               ; preds = %2
  %16 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.38)
  br label %17

17:                                               ; preds = %15, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %18 = call i32 @fork() #5
  store i32 %18, ptr %6, align 4, !tbaa !9
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %17
  %22 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.26)
  br label %23

23:                                               ; preds = %21, %17
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %46

26:                                               ; preds = %23
  %27 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = call i32 @close(i32 noundef %28)
  %30 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = call i32 @dup2(i32 noundef %31, i32 noundef 1) #5
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %26
  %35 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.39)
  br label %36

36:                                               ; preds = %34, %26
  %37 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = call i32 @close(i32 noundef %38)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds ptr, ptr %40, i64 0
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = call i32 @execvp(ptr noundef %42, ptr noundef %43) #5
  %45 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.49)
  br label %46

46:                                               ; preds = %36, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %47 = call i32 @fork() #5
  store i32 %47, ptr %7, align 4, !tbaa !9
  %48 = load i32, ptr %7, align 4, !tbaa !9
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %46
  %51 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.26)
  br label %52

52:                                               ; preds = %50, %46
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %75

55:                                               ; preds = %52
  %56 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = call i32 @close(i32 noundef %57)
  %59 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = call i32 @dup2(i32 noundef %60, i32 noundef 0) #5
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %55
  %64 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.39)
  br label %65

65:                                               ; preds = %63, %55
  %66 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = call i32 @close(i32 noundef %67)
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds ptr, ptr %69, i64 0
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = call i32 @execvp(ptr noundef %71, ptr noundef %72) #5
  %74 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.49)
  br label %75

75:                                               ; preds = %65, %52
  %76 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = call i32 @close(i32 noundef %77)
  %79 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = call i32 @close(i32 noundef %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = call i32 @waitpid(i32 noundef %82, ptr noundef %8, i32 noundef 0)
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %89, label %85

85:                                               ; preds = %75
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = call i32 @waitpid(i32 noundef %86, ptr noundef %9, i32 noundef 0)
  %88 = icmp slt i32 %87, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %85, %75
  %90 = call i32 (ptr, ...) @pl_fatal(ptr noundef @.str.50)
  br label %91

91:                                               ; preds = %89, %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store ptr null, ptr %10, align 8, !tbaa !5
  %92 = load i32, ptr %8, align 4, !tbaa !9
  %93 = and i32 %92, 127
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %100

95:                                               ; preds = %91
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = and i32 %96, 65280
  %98 = ashr i32 %97, 8
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %102

100:                                              ; preds = %95, %91
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %101, ptr %10, align 8, !tbaa !5
  br label %114

102:                                              ; preds = %95
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = and i32 %103, 127
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %111

106:                                              ; preds = %102
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = and i32 %107, 65280
  %109 = ashr i32 %108, 8
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %106, %102
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %112, ptr %10, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %111, %106
  br label %114

114:                                              ; preds = %113, %100
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %142

117:                                              ; preds = %114
  %118 = load ptr, ptr @stderr, align 8, !tbaa !5
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef @.str.51) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %136, %117
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %121, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %128, label %127

127:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %139

128:                                              ; preds = %120
  %129 = load ptr, ptr @stderr, align 8, !tbaa !5
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load i32, ptr %11, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds ptr, ptr %130, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.52, ptr noundef %134) #5
  br label %136

136:                                              ; preds = %128
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %11, align 4, !tbaa !9
  br label %120, !llvm.loop !11

139:                                              ; preds = %127
  %140 = load ptr, ptr @stderr, align 8, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.2) #5
  call void @exit(i32 noundef 1) #6
  unreachable

142:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

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 "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @pl_fatal(ptr noundef, ...) 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 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: nofree nounwind
declare i32 @fork() local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) local_unnamed_addr #4

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

declare i32 @close(i32 noundef) local_unnamed_addr #5

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

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

; Function Attrs: nounwind uwtable
define dso_local void @pl_pipe(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [2 x i32], align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %6 = call i32 @pipe(ptr noundef nonnull %3) #6
  %7 = icmp slt i32 %6, 0
  br i1 %7, label %8, label %10

8:                                                ; preds = %2
  %9 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.38)
  br label %10

10:                                               ; preds = %8, %2
  %11 = call i32 @fork() #6
  %12 = icmp slt i32 %11, 0
  br i1 %12, label %.sink.split, label %13

13:                                               ; preds = %10
  %14 = icmp eq i32 %11, 0
  br i1 %14, label %15, label %30

15:                                               ; preds = %13
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = call i32 @close(i32 noundef %16) #6
  %18 = getelementptr inbounds i8, ptr %3, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = call i32 @dup2(i32 noundef %19, i32 noundef 1) #6
  %21 = icmp slt i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %15
  %23 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.39)
  br label %24

24:                                               ; preds = %22, %15
  %25 = load i32, ptr %18, align 4, !tbaa !5
  %26 = call i32 @close(i32 noundef %25) #6
  %27 = load ptr, ptr %0, align 8, !tbaa !9
  %28 = call i32 @execvp(ptr noundef %27, ptr noundef nonnull %0) #6
  br label %.sink.split

.sink.split:                                      ; preds = %10, %24
  %.str.26.sink = phi ptr [ @.str.49, %24 ], [ @.str.26, %10 ]
  %29 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull %.str.26.sink)
  br label %30

30:                                               ; preds = %.sink.split, %13
  %31 = call i32 @fork() #6
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %.sink.split30, label %33

33:                                               ; preds = %30
  %34 = icmp eq i32 %31, 0
  br i1 %34, label %35, label %50

35:                                               ; preds = %33
  %36 = getelementptr inbounds i8, ptr %3, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = call i32 @close(i32 noundef %37) #6
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = call i32 @dup2(i32 noundef %39, i32 noundef 0) #6
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %35
  %43 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.39)
  br label %44

44:                                               ; preds = %42, %35
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = call i32 @close(i32 noundef %45) #6
  %47 = load ptr, ptr %1, align 8, !tbaa !9
  %48 = call i32 @execvp(ptr noundef %47, ptr noundef nonnull %1) #6
  br label %.sink.split30

.sink.split30:                                    ; preds = %30, %44
  %.str.26.sink31 = phi ptr [ @.str.49, %44 ], [ @.str.26, %30 ]
  %49 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull %.str.26.sink31)
  br label %50

50:                                               ; preds = %.sink.split30, %33
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = call i32 @close(i32 noundef %51) #6
  %53 = getelementptr inbounds i8, ptr %3, i64 4
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = call i32 @close(i32 noundef %54) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %56 = call i32 @waitpid(i32 noundef %11, ptr noundef nonnull %4, i32 noundef 0) #6
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %61, label %58

58:                                               ; preds = %50
  %59 = call i32 @waitpid(i32 noundef %31, ptr noundef nonnull %5, i32 noundef 0) #6
  %60 = icmp slt i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %58, %50
  %62 = call i32 (ptr, ...) @pl_fatal(ptr noundef nonnull @.str.50)
  br label %63

63:                                               ; preds = %61, %58
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = and i32 %64, 65407
  %or.cond = icmp eq i32 %65, 0
  br i1 %or.cond, label %66, label %69

66:                                               ; preds = %63
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = and i32 %67, 65407
  %or.cond22 = icmp eq i32 %68, 0
  br i1 %or.cond22, label %.thread24, label %69

69:                                               ; preds = %66, %63
  %.017 = phi ptr [ %0, %63 ], [ %1, %66 ]
  %.not20 = icmp eq ptr %.017, null
  br i1 %.not20, label %.thread24, label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr @stderr, align 8, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.51) #7
  %73 = load ptr, ptr %.017, align 8, !tbaa !9
  %.not2127 = icmp eq ptr %73, null
  br i1 %.not2127, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %70
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.2) #7
  call void @exit(i32 noundef 1) #8
  unreachable

.lr.ph:                                           ; preds = %70, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %70 ]
  %76 = phi ptr [ %80, %.lr.ph ], [ %73, %70 ]
  %77 = load ptr, ptr @stderr, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.52, ptr noundef nonnull %76) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %79 = getelementptr inbounds ptr, ptr %.017, i64 %indvars.iv.next
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %.not21 = icmp eq ptr %80, null
  br i1 %.not21, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.thread24:                                        ; preds = %66, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret void
}

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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 = { cold nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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