; LLVM IR from russellsayshi/CeeBeeServer :: main (generate_raw_response)

; 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 [9 x i8], align 1
@stderr = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_code_str(i32 noundef) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @generate_raw_response(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [4 x i8], align 1
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !11
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = call ptr @get_code_str(i32 noundef %21)
  store ptr %22, ptr %9, align 8, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 0
  br i1 %24, label %28, label %25

25:                                               ; preds = %4
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = icmp sge i32 %26, 600
  br i1 %27, label %28, label %32

28:                                               ; preds = %25, %4
  %29 = load ptr, ptr @stderr, align 8, !tbaa !9
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.14, i32 noundef %30) #8
  br label %32

32:                                               ; preds = %28, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %33 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %33, i64 noundef 4, ptr noundef @.str.15, i32 noundef %34) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !11
  %36 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
  %37 = call i64 @strlen(ptr noundef %36) #9
  %38 = add i64 9, %37
  %39 = add i64 %38, 1
  %40 = load ptr, ptr %9, align 8, !tbaa !9
  %41 = call i64 @strlen(ptr noundef %40) #9
  %42 = add i64 %39, %41
  %43 = add i64 %42, 1
  %44 = load i64, ptr %11, align 8, !tbaa !11
  %45 = add i64 %44, %43
  store i64 %45, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %46 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %46, ptr %12, align 8, !tbaa !11
  %47 = load i64, ptr %7, align 8, !tbaa !11
  %48 = call ptr @llvm.stacksave.p0()
  store ptr %48, ptr %13, align 8
  %49 = alloca i64, i64 %47, align 16
  store i64 %47, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %81, %32
  %51 = load i32, ptr %15, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = load i64, ptr %7, align 8, !tbaa !11
  %54 = icmp ult i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %84

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %57 = load ptr, ptr %6, align 8, !tbaa !9
  %58 = load i32, ptr %15, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [2 x ptr], ptr %57, i64 %59
  %61 = getelementptr inbounds [2 x ptr], ptr %60, i64 0, i64 0
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = call i64 @strlen(ptr noundef %62) #9
  %64 = add i64 %63, 2
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = load i32, ptr %15, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [2 x ptr], ptr %65, i64 %67
  %69 = getelementptr inbounds [2 x ptr], ptr %68, i64 0, i64 1
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = call i64 @strlen(ptr noundef %70) #9
  %72 = add i64 %64, %71
  %73 = add i64 %72, 1
  store i64 %73, ptr %16, align 8, !tbaa !11
  %74 = load i64, ptr %16, align 8, !tbaa !11
  %75 = load i32, ptr %15, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i64, ptr %49, i64 %76
  store i64 %74, ptr %77, align 8, !tbaa !11
  %78 = load i64, ptr %16, align 8, !tbaa !11
  %79 = load i64, ptr %11, align 8, !tbaa !11
  %80 = add i64 %79, %78
  store i64 %80, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %81

81:                                               ; preds = %56
  %82 = load i32, ptr %15, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %15, align 4, !tbaa !5
  br label %50, !llvm.loop !13

84:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %85 = load ptr, ptr %8, align 8, !tbaa !9
  %86 = call i64 @strlen(ptr noundef %85) #9
  store i64 %86, ptr %17, align 8, !tbaa !11
  %87 = load i64, ptr %17, align 8, !tbaa !11
  %88 = add i64 1, %87
  %89 = add i64 %88, 1
  %90 = load i64, ptr %11, align 8, !tbaa !11
  %91 = add i64 %90, %89
  store i64 %91, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %92 = load i64, ptr %11, align 8, !tbaa !11
  %93 = mul i64 %92, 1
  %94 = call noalias ptr @malloc(i64 noundef %93) #10
  store ptr %94, ptr %18, align 8, !tbaa !9
  %95 = load ptr, ptr %18, align 8, !tbaa !9
  %96 = icmp eq ptr %95, null
  br i1 %96, label %97, label %98

97:                                               ; preds = %84
  call void @perror(ptr noundef @.str.16)
  call void @exit(i32 noundef 1) #11
  unreachable

98:                                               ; preds = %84
  %99 = load ptr, ptr %18, align 8, !tbaa !9
  %100 = load i64, ptr %12, align 8, !tbaa !11
  %101 = add i64 %100, 1
  %102 = mul i64 %101, 1
  %103 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
  %104 = load ptr, ptr %9, align 8, !tbaa !9
  %105 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %99, i64 noundef %102, ptr noundef @.str.17, ptr noundef @.str, ptr noundef %103, ptr noundef %104) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %106 = load i64, ptr %12, align 8, !tbaa !11
  %107 = mul i64 %106, 1
  store i64 %107, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %144, %98
  %109 = load i32, ptr %20, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = load i64, ptr %7, align 8, !tbaa !11
  %112 = icmp ult i64 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %147

114:                                              ; preds = %108
  %115 = load ptr, ptr %18, align 8, !tbaa !9
  %116 = load i64, ptr %19, align 8, !tbaa !11
  %117 = getelementptr inbounds i8, ptr %115, i64 %116
  %118 = load i32, ptr %20, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i64, ptr %49, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !11
  %122 = add i64 %121, 1
  %123 = mul i64 %122, 1
  %124 = load ptr, ptr %6, align 8, !tbaa !9
  %125 = load i32, ptr %20, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [2 x ptr], ptr %124, i64 %126
  %128 = getelementptr inbounds [2 x ptr], ptr %127, i64 0, i64 0
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = load ptr, ptr %6, align 8, !tbaa !9
  %131 = load i32, ptr %20, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [2 x ptr], ptr %130, i64 %132
  %134 = getelementptr inbounds [2 x ptr], ptr %133, i64 0, i64 1
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %117, i64 noundef %123, ptr noundef @.str.18, ptr noundef %129, ptr noundef %135) #8
  %137 = load i32, ptr %20, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i64, ptr %49, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !11
  %141 = mul i64 %140, 1
  %142 = load i64, ptr %19, align 8, !tbaa !11
  %143 = add i64 %142, %141
  store i64 %143, ptr %19, align 8, !tbaa !11
  br label %144

144:                                              ; preds = %114
  %145 = load i32, ptr %20, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %20, align 4, !tbaa !5
  br label %108, !llvm.loop !15

147:                                              ; preds = %113
  %148 = load ptr, ptr %18, align 8, !tbaa !9
  %149 = load i64, ptr %19, align 8, !tbaa !11
  %150 = getelementptr inbounds i8, ptr %148, i64 %149
  %151 = load i64, ptr %17, align 8, !tbaa !11
  %152 = add i64 1, %151
  %153 = add i64 %152, 1
  %154 = load ptr, ptr %8, align 8, !tbaa !9
  %155 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %150, i64 noundef %153, ptr noundef @.str.19, ptr noundef %154) #8
  %156 = load ptr, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %157 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %157)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  ret ptr %156
}

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

declare void @perror(ptr noundef) #6

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #7

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind allocsize(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 #6 = { "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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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 [9 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_code_str(i32 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @generate_raw_response(i32 noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = alloca [4 x i8], align 1
  %6 = tail call ptr @get_code_str(i32 noundef %0)
  %or.cond = icmp ugt i32 %0, 599
  br i1 %or.cond, label %7, label %10

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

10:                                               ; preds = %4, %7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %11 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 4, ptr noundef nonnull @.str.15, i32 noundef %0) #8
  %12 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #9
  %13 = add i64 %12, 10
  %14 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #9
  %15 = add i64 %13, %14
  %16 = add i64 %15, 1
  %17 = tail call ptr @llvm.stacksave.p0()
  %18 = alloca i64, i64 %2, align 16
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %10
  %.048.lcssa = phi i64 [ %16, %10 ], [ %33, %.lr.ph ]
  %19 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #9
  %20 = add i64 %19, 2
  %21 = add i64 %20, %.048.lcssa
  %22 = tail call noalias ptr @malloc(i64 noundef %21) #10
  %23 = icmp eq ptr %22, null
  br i1 %23, label %34, label %35

.lr.ph:                                           ; preds = %10, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %10 ]
  %.04855 = phi i64 [ %33, %.lr.ph ], [ %16, %10 ]
  %24 = getelementptr inbounds [2 x ptr], ptr %1, i64 %indvars.iv
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %25) #9
  %27 = getelementptr inbounds i8, ptr %24, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %28) #9
  %30 = add i64 %26, 3
  %31 = add i64 %30, %29
  %32 = getelementptr inbounds i64, ptr %18, i64 %indvars.iv
  store i64 %31, ptr %32, align 8, !tbaa !9
  %33 = add i64 %31, %.04855
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %2
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

34:                                               ; preds = %._crit_edge
  tail call void @perror(ptr noundef nonnull @.str.16) #11
  tail call void @exit(i32 noundef 1) #12
  unreachable

35:                                               ; preds = %._crit_edge
  %36 = add i64 %15, 2
  %37 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull %22, i64 noundef %36, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str, ptr noundef nonnull %5, ptr noundef %6) #8
  br i1 %.not, label %._crit_edge60, label %.lr.ph59

._crit_edge60:                                    ; preds = %.lr.ph59, %35
  %.047.lcssa = phi i64 [ %16, %35 ], [ %49, %.lr.ph59 ]
  %38 = getelementptr inbounds i8, ptr %22, i64 %.047.lcssa
  %39 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull %38, i64 noundef %20, ptr noundef nonnull @.str.19, ptr noundef %3) #8
  call void @llvm.stackrestore.p0(ptr %17)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  ret ptr %22

.lr.ph59:                                         ; preds = %35, %.lr.ph59
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %.lr.ph59 ], [ 0, %35 ]
  %.04756 = phi i64 [ %49, %.lr.ph59 ], [ %16, %35 ]
  %40 = getelementptr inbounds i8, ptr %22, i64 %.04756
  %41 = getelementptr inbounds i64, ptr %18, i64 %indvars.iv65
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = add i64 %42, 1
  %44 = getelementptr inbounds [2 x ptr], ptr %1, i64 %indvars.iv65
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %44, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull %40, i64 noundef %43, ptr noundef nonnull @.str.18, ptr noundef %45, ptr noundef %47) #8
  %49 = add i64 %42, %.04756
  %indvars.iv.next66 = add nuw i64 %indvars.iv65, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next66, %2
  br i1 %exitcond68.not, label %._crit_edge60, label %.lr.ph59, !llvm.loop !13
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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


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