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

; 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.30 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [4 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 i64 @strlen(ptr noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_html_response(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_file(ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @render_page(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #3 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = call ptr @generate_html_response(i32 noundef %22, ptr noundef @.str.30)
  store ptr %23, ptr %11, align 8, !tbaa !9
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !9
  %26 = load ptr, ptr %11, align 8, !tbaa !9
  %27 = call i64 @strlen(ptr noundef %26) #7
  %28 = call i64 @send(i32 noundef %24, ptr noundef %25, i64 noundef %27, i32 noundef 0)
  %29 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  %31 = call ptr @read_file(ptr noundef %30)
  store ptr %31, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %32 = load ptr, ptr %12, align 8, !tbaa !9
  %33 = call i64 @strlen(ptr noundef %32) #7
  store i64 %33, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 50, ptr %14, align 8, !tbaa !11
  %34 = call ptr @llvm.stacksave.p0()
  store ptr %34, ptr %15, align 8
  %35 = alloca i8, i64 50, align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %36

36:                                               ; preds = %142, %5
  %37 = load i64, ptr %18, align 8, !tbaa !11
  %38 = load i64, ptr %13, align 8, !tbaa !11
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %40, label %145

40:                                               ; preds = %36
  %41 = load ptr, ptr %12, align 8, !tbaa !9
  %42 = load i64, ptr %18, align 8, !tbaa !11
  %43 = getelementptr inbounds i8, ptr %41, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !13
  %45 = sext i8 %44 to i32
  %46 = icmp eq i32 %45, 36
  br i1 %46, label %47, label %141

47:                                               ; preds = %40
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = load ptr, ptr %12, align 8, !tbaa !9
  %50 = load i64, ptr %17, align 8, !tbaa !11
  %51 = getelementptr inbounds i8, ptr %49, i64 %50
  %52 = load i64, ptr %18, align 8, !tbaa !11
  %53 = load i64, ptr %17, align 8, !tbaa !11
  %54 = sub i64 %52, %53
  %55 = call i64 @send(i32 noundef %48, ptr noundef %51, i64 noundef %54, i32 noundef 0)
  store i64 0, ptr %16, align 8, !tbaa !11
  %56 = load i64, ptr %18, align 8, !tbaa !11
  %57 = add i64 %56, 1
  store i64 %57, ptr %18, align 8, !tbaa !11
  br label %58

58:                                               ; preds = %74, %47
  %59 = load i64, ptr %16, align 8, !tbaa !11
  %60 = icmp ult i64 %59, 49
  br i1 %60, label %61, label %72

61:                                               ; preds = %58
  %62 = load i64, ptr %18, align 8, !tbaa !11
  %63 = load i64, ptr %13, align 8, !tbaa !11
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %65, label %72

65:                                               ; preds = %61
  %66 = load ptr, ptr %12, align 8, !tbaa !9
  %67 = load i64, ptr %18, align 8, !tbaa !11
  %68 = getelementptr inbounds i8, ptr %66, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !13
  %70 = sext i8 %69 to i32
  %71 = icmp ne i32 %70, 36
  br label %72

72:                                               ; preds = %65, %61, %58
  %73 = phi i1 [ false, %61 ], [ false, %58 ], [ %71, %65 ]
  br i1 %73, label %74, label %85

74:                                               ; preds = %72
  %75 = load ptr, ptr %12, align 8, !tbaa !9
  %76 = load i64, ptr %18, align 8, !tbaa !11
  %77 = getelementptr inbounds i8, ptr %75, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !13
  %79 = load i64, ptr %16, align 8, !tbaa !11
  %80 = getelementptr inbounds i8, ptr %35, i64 %79
  store i8 %78, ptr %80, align 1, !tbaa !13
  %81 = load i64, ptr %18, align 8, !tbaa !11
  %82 = add i64 %81, 1
  store i64 %82, ptr %18, align 8, !tbaa !11
  %83 = load i64, ptr %16, align 8, !tbaa !11
  %84 = add i64 %83, 1
  store i64 %84, ptr %16, align 8, !tbaa !11
  br label %58, !llvm.loop !14

85:                                               ; preds = %72
  %86 = load i64, ptr %16, align 8, !tbaa !11
  %87 = getelementptr inbounds i8, ptr %35, i64 %86
  store i8 0, ptr %87, align 1, !tbaa !13
  %88 = load ptr, ptr %12, align 8, !tbaa !9
  %89 = load i64, ptr %18, align 8, !tbaa !11
  %90 = getelementptr inbounds i8, ptr %88, i64 %89
  %91 = load i8, ptr %90, align 1, !tbaa !13
  %92 = sext i8 %91 to i32
  %93 = icmp eq i32 %92, 36
  br i1 %93, label %94, label %139

94:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %126, %94
  %96 = load i32, ptr %20, align 4, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 7, ptr %21, align 4
  br label %129

100:                                              ; preds = %95
  %101 = load ptr, ptr %9, align 8, !tbaa !9
  %102 = load i32, ptr %20, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [2 x ptr], ptr %101, i64 %103
  %105 = getelementptr inbounds [2 x ptr], ptr %104, i64 0, i64 0
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = call i32 @strcmp(ptr noundef %106, ptr noundef %35) #7
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %125

109:                                              ; preds = %100
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = load ptr, ptr %9, align 8, !tbaa !9
  %112 = load i32, ptr %20, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [2 x ptr], ptr %111, i64 %113
  %115 = getelementptr inbounds [2 x ptr], ptr %114, i64 0, i64 1
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = load ptr, ptr %9, align 8, !tbaa !9
  %118 = load i32, ptr %20, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [2 x ptr], ptr %117, i64 %119
  %121 = getelementptr inbounds [2 x ptr], ptr %120, i64 0, i64 1
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = call i64 @strlen(ptr noundef %122) #7
  %124 = call i64 @send(i32 noundef %110, ptr noundef %116, i64 noundef %123, i32 noundef 0)
  store i32 1, ptr %19, align 4, !tbaa !5
  store i32 7, ptr %21, align 4
  br label %129

125:                                              ; preds = %100
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %20, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %20, align 4, !tbaa !5
  br label %95, !llvm.loop !16

129:                                              ; preds = %109, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %19, align 4, !tbaa !5
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %136, label %133

133:                                              ; preds = %130
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = call i64 @send(i32 noundef %134, ptr noundef @.str.31, i64 noundef 3, i32 noundef 0)
  br label %136

136:                                              ; preds = %133, %130
  %137 = load i64, ptr %18, align 8, !tbaa !11
  %138 = add i64 %137, 1
  store i64 %138, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %140

139:                                              ; preds = %85
  br label %155

140:                                              ; preds = %136
  br label %141

141:                                              ; preds = %140, %40
  br label %142

142:                                              ; preds = %141
  %143 = load i64, ptr %18, align 8, !tbaa !11
  %144 = add i64 %143, 1
  store i64 %144, ptr %18, align 8, !tbaa !11
  br label %36, !llvm.loop !17

145:                                              ; preds = %36
  %146 = load i32, ptr %6, align 4, !tbaa !5
  %147 = load i64, ptr %17, align 8, !tbaa !11
  %148 = load ptr, ptr %12, align 8, !tbaa !9
  %149 = getelementptr inbounds i8, ptr %148, i64 %147
  %150 = load i64, ptr %18, align 8, !tbaa !11
  %151 = load i64, ptr %17, align 8, !tbaa !11
  %152 = sub i64 %150, %151
  %153 = sub i64 %152, 1
  %154 = call i64 @send(i32 noundef %146, ptr noundef %149, i64 noundef %153, i32 noundef 0)
  br label %155

155:                                              ; preds = %145, %139
  %156 = load i32, ptr %6, align 4, !tbaa !5
  %157 = call i32 @close(i32 noundef %156)
  %158 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %158) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %159 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %159)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret void
}

declare i64 @send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

declare i32 @close(i32 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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { 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 #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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


; 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.30 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @generate_html_response(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_file(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @render_page(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = tail call ptr @generate_html_response(i32 noundef %1, ptr noundef nonnull @.str.30)
  %7 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #4
  %8 = tail call i64 @send(i32 noundef %0, ptr noundef %6, i64 noundef %7, i32 noundef 0) #5
  tail call void @free(ptr noundef %6) #5
  %9 = tail call ptr @read_file(ptr noundef %2)
  %10 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %9) #4
  %11 = alloca [50 x i8], align 16
  %.not89 = icmp eq i64 %10, 0
  br i1 %.not89, label %._crit_edge, label %.lr.ph78

.lr.ph78:                                         ; preds = %5
  %.not5873 = icmp sgt i32 %4, 0
  br i1 %.not5873, label %.lr.ph78.split.us.preheader, label %.lr.ph78.split

.lr.ph78.split.us.preheader:                      ; preds = %.lr.ph78
  %wide.trip.count = zext nneg i32 %4 to i64
  br label %.lr.ph78.split.us

.lr.ph78.split.us:                                ; preds = %.lr.ph78.split.us.preheader, %44
  %.05277.us = phi i64 [ %45, %44 ], [ 0, %.lr.ph78.split.us.preheader ]
  %.05376.us = phi i64 [ %.154.us, %44 ], [ 0, %.lr.ph78.split.us.preheader ]
  %12 = getelementptr inbounds i8, ptr %9, i64 %.05277.us
  %13 = load i8, ptr %12, align 1, !tbaa !5
  %14 = icmp eq i8 %13, 36
  br i1 %14, label %15, label %44

15:                                               ; preds = %.lr.ph78.split.us
  %16 = getelementptr inbounds i8, ptr %9, i64 %.05376.us
  %17 = sub i64 %.05277.us, %.05376.us
  %18 = tail call i64 @send(i32 noundef %0, ptr noundef %16, i64 noundef %17, i32 noundef 0) #5
  %.163.us = add nuw i64 %.05277.us, 1
  %19 = icmp ult i64 %.163.us, %10
  br i1 %19, label %.lr.ph.us, label %.critedge.us

20:                                               ; preds = %.lr.ph85
  %21 = getelementptr inbounds i8, ptr %9, i64 %.1.us
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %.not.us = icmp eq i8 %22, 36
  br i1 %.not.us, label %.critedge.us, label %.lr.ph85, !llvm.loop !8

.lr.ph85:                                         ; preds = %.lr.ph.us, %20
  %23 = phi i8 [ %22, %20 ], [ %48, %.lr.ph.us ]
  %.05564.us84 = phi i64 [ %25, %20 ], [ 0, %.lr.ph.us ]
  %.166.us83 = phi i64 [ %.1.us, %20 ], [ %.163.us, %.lr.ph.us ]
  %24 = getelementptr inbounds i8, ptr %11, i64 %.05564.us84
  store i8 %23, ptr %24, align 1, !tbaa !5
  %25 = add nuw nsw i64 %.05564.us84, 1
  %.1.us = add nuw i64 %.166.us83, 1
  %26 = icmp ult i64 %.05564.us84, 48
  %27 = icmp ult i64 %.1.us, %10
  %or.cond.us = select i1 %26, i1 %27, i1 false
  br i1 %or.cond.us, label %20, label %.critedge.us, !llvm.loop !8

.critedge.us:                                     ; preds = %20, %.lr.ph85, %.lr.ph.us, %15
  %.055.lcssa.us = phi i64 [ 0, %15 ], [ 0, %.lr.ph.us ], [ %25, %.lr.ph85 ], [ %25, %20 ]
  %.1.in.lcssa.us = phi i64 [ %.05277.us, %15 ], [ %.05277.us, %.lr.ph.us ], [ %.166.us83, %.lr.ph85 ], [ %.166.us83, %20 ]
  %.1.lcssa.us = phi i64 [ %.163.us, %15 ], [ %.163.us, %.lr.ph.us ], [ %.1.us, %.lr.ph85 ], [ %.1.us, %20 ]
  %28 = getelementptr inbounds i8, ptr %11, i64 %.055.lcssa.us
  store i8 0, ptr %28, align 1, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %9, i64 %.1.lcssa.us
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %31 = icmp eq i8 %30, 36
  br i1 %31, label %.preheader.us, label %.loopexit

32:                                               ; preds = %.preheader.us
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %..critedge60_crit_edge.us, label %.preheader.us, !llvm.loop !10

.preheader.us:                                    ; preds = %.critedge.us, %32
  %indvars.iv = phi i64 [ %indvars.iv.next, %32 ], [ 0, %.critedge.us ]
  %33 = getelementptr inbounds [2 x ptr], ptr %3, i64 %indvars.iv
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) %11) #4
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %32

37:                                               ; preds = %.preheader.us
  %38 = getelementptr inbounds i8, ptr %33, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %39) #4
  %41 = tail call i64 @send(i32 noundef %0, ptr noundef %39, i64 noundef %40, i32 noundef 0) #5
  br label %42

42:                                               ; preds = %37, %..critedge60_crit_edge.us
  %43 = add i64 %.1.in.lcssa.us, 2
  br label %44

44:                                               ; preds = %42, %.lr.ph78.split.us
  %.154.us = phi i64 [ %43, %42 ], [ %.05376.us, %.lr.ph78.split.us ]
  %.2.us = phi i64 [ %.1.lcssa.us, %42 ], [ %.05277.us, %.lr.ph78.split.us ]
  %45 = add i64 %.2.us, 1
  %46 = icmp ult i64 %45, %10
  br i1 %46, label %.lr.ph78.split.us, label %._crit_edge, !llvm.loop !13

.lr.ph.us:                                        ; preds = %15
  %47 = getelementptr inbounds i8, ptr %9, i64 %.163.us
  %48 = load i8, ptr %47, align 1, !tbaa !5
  %.not.us82 = icmp eq i8 %48, 36
  br i1 %.not.us82, label %.critedge.us, label %.lr.ph85

..critedge60_crit_edge.us:                        ; preds = %32
  %49 = tail call i64 @send(i32 noundef %0, ptr noundef nonnull @.str.31, i64 noundef 3, i32 noundef 0) #5
  br label %42

.lr.ph78.split:                                   ; preds = %.lr.ph78, %73
  %.05277 = phi i64 [ %74, %73 ], [ 0, %.lr.ph78 ]
  %.05376 = phi i64 [ %.154, %73 ], [ 0, %.lr.ph78 ]
  %50 = getelementptr inbounds i8, ptr %9, i64 %.05277
  %51 = load i8, ptr %50, align 1, !tbaa !5
  %52 = icmp eq i8 %51, 36
  br i1 %52, label %53, label %73

53:                                               ; preds = %.lr.ph78.split
  %54 = getelementptr inbounds i8, ptr %9, i64 %.05376
  %55 = sub i64 %.05277, %.05376
  %56 = tail call i64 @send(i32 noundef %0, ptr noundef %54, i64 noundef %55, i32 noundef 0) #5
  %.163 = add nuw i64 %.05277, 1
  %57 = icmp ult i64 %.163, %10
  br i1 %57, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %53
  %58 = getelementptr inbounds i8, ptr %9, i64 %.163
  %59 = load i8, ptr %58, align 1, !tbaa !5
  %.not109 = icmp eq i8 %59, 36
  br i1 %.not109, label %.critedge, label %.lr.ph112

.lr.ph:                                           ; preds = %.lr.ph112
  %60 = getelementptr inbounds i8, ptr %9, i64 %.1
  %61 = load i8, ptr %60, align 1, !tbaa !5
  %.not = icmp eq i8 %61, 36
  br i1 %.not, label %.critedge, label %.lr.ph112, !llvm.loop !8

.lr.ph112:                                        ; preds = %.lr.ph.preheader, %.lr.ph
  %62 = phi i8 [ %61, %.lr.ph ], [ %59, %.lr.ph.preheader ]
  %.05564111 = phi i64 [ %64, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.166110 = phi i64 [ %.1, %.lr.ph ], [ %.163, %.lr.ph.preheader ]
  %63 = getelementptr inbounds i8, ptr %11, i64 %.05564111
  store i8 %62, ptr %63, align 1, !tbaa !5
  %64 = add nuw nsw i64 %.05564111, 1
  %.1 = add nuw i64 %.166110, 1
  %65 = icmp ult i64 %.05564111, 48
  %66 = icmp ult i64 %.1, %10
  %or.cond = select i1 %65, i1 %66, i1 false
  br i1 %or.cond, label %.lr.ph, label %.critedge, !llvm.loop !8

.critedge:                                        ; preds = %.lr.ph112, %.lr.ph, %.lr.ph.preheader, %53
  %.055.lcssa = phi i64 [ 0, %53 ], [ 0, %.lr.ph.preheader ], [ %64, %.lr.ph ], [ %64, %.lr.ph112 ]
  %.1.in.lcssa = phi i64 [ %.05277, %53 ], [ %.05277, %.lr.ph.preheader ], [ %.166110, %.lr.ph ], [ %.166110, %.lr.ph112 ]
  %.1.lcssa = phi i64 [ %.163, %53 ], [ %.163, %.lr.ph.preheader ], [ %.1, %.lr.ph ], [ %.1, %.lr.ph112 ]
  %67 = getelementptr inbounds i8, ptr %11, i64 %.055.lcssa
  store i8 0, ptr %67, align 1, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %9, i64 %.1.lcssa
  %69 = load i8, ptr %68, align 1, !tbaa !5
  %70 = icmp eq i8 %69, 36
  br i1 %70, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.critedge
  %71 = tail call i64 @send(i32 noundef %0, ptr noundef nonnull @.str.31, i64 noundef 3, i32 noundef 0) #5
  %72 = add i64 %.1.in.lcssa, 2
  br label %73

73:                                               ; preds = %.lr.ph78.split, %.preheader
  %.154 = phi i64 [ %72, %.preheader ], [ %.05376, %.lr.ph78.split ]
  %.2 = phi i64 [ %.1.lcssa, %.preheader ], [ %.05277, %.lr.ph78.split ]
  %74 = add i64 %.2, 1
  %75 = icmp ult i64 %74, %10
  br i1 %75, label %.lr.ph78.split, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %73, %44, %5
  %.053.lcssa = phi i64 [ 0, %5 ], [ %.154.us, %44 ], [ %.154, %73 ]
  %.052.lcssa = phi i64 [ 0, %5 ], [ %45, %44 ], [ %74, %73 ]
  %76 = getelementptr inbounds i8, ptr %9, i64 %.053.lcssa
  %77 = xor i64 %.053.lcssa, -1
  %78 = add i64 %.052.lcssa, %77
  %79 = tail call i64 @send(i32 noundef %0, ptr noundef %76, i64 noundef %78, i32 noundef 0) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.critedge, %.critedge.us, %._crit_edge
  %80 = tail call i32 @close(i32 noundef %0) #5
  tail call void @free(ptr noundef %9) #5
  ret void
}

declare i64 @send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @close(i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(read) }
attributes #5 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = distinct !{!13, !9}


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