; LLVM IR from ejoy/ejoy2d :: lib (dfont)

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

%struct.dfont = type { i32, i32, i32, i32, %struct.list_head, ptr, ptr, [4096 x ptr] }
%struct.list_head = type { ptr, ptr }
%struct.hash_rect = type { ptr, %struct.list_head, %struct.list_head, i32, i32, i32, i32, i32, %struct.dfont_rect }
%struct.dfont_rect = type { i32, i32, i32, i32 }
%struct.font_line = type { i32, i32, i32, %struct.list_head }

@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @dfont_dump(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.dfont, ptr %8, i32 0, i32 3
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 -1, ptr %4, align 4, !tbaa !13
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.dfont, ptr %13, i32 0, i32 4
  %15 = getelementptr inbounds %struct.list_head, ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %16, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.hash_rect, ptr null, i32 0, i32 2) to i64))
  store ptr %17, ptr %3, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %38, %1
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.hash_rect, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.dfont, ptr %21, i32 0, i32 4
  %23 = icmp ne ptr %20, %22
  br i1 %23, label %24, label %44

24:                                               ; preds = %18
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.hash_rect, ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 8, !tbaa !15
  %28 = load i32, ptr %4, align 4, !tbaa !13
  %29 = icmp ne i32 %27, %28
  br i1 %29, label %30, label %36

30:                                               ; preds = %24
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.hash_rect, ptr %31, i32 0, i32 3
  %33 = load i32, ptr %32, align 8, !tbaa !15
  store i32 %33, ptr %4, align 4, !tbaa !13
  %34 = load i32, ptr %4, align 4, !tbaa !13
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %34)
  br label %36

36:                                               ; preds = %30, %24
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  call void @dump_node(ptr noundef %37)
  br label %38

38:                                               ; preds = %36
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.hash_rect, ptr %39, i32 0, i32 2
  %41 = getelementptr inbounds %struct.list_head, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !18
  %43 = getelementptr inbounds i8, ptr %42, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.hash_rect, ptr null, i32 0, i32 2) to i64))
  store ptr %43, ptr %3, align 8, !tbaa !5
  br label %18, !llvm.loop !19

44:                                               ; preds = %18
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %47

47:                                               ; preds = %108, %44
  %48 = load i32, ptr %5, align 4, !tbaa !13
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.dfont, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 8, !tbaa !21
  %52 = icmp slt i32 %48, %51
  br i1 %52, label %53, label %111

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.dfont, ptr %54, i32 0, i32 6
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  %57 = load i32, ptr %5, align 4, !tbaa !13
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %struct.font_line, ptr %56, i64 %58
  store ptr %59, ptr %6, align 8, !tbaa !5
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.font_line, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !23
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.font_line, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !25
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.font_line, ptr %66, i32 0, i32 2
  %68 = load i32, ptr %67, align 8, !tbaa !26
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %62, i32 noundef %65, i32 noundef %68)
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.font_line, ptr %70, i32 0, i32 3
  %72 = getelementptr inbounds %struct.list_head, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !27
  %74 = getelementptr inbounds i8, ptr %73, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.hash_rect, ptr null, i32 0, i32 1) to i64))
  store ptr %74, ptr %3, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %100, %53
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.hash_rect, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.font_line, ptr %78, i32 0, i32 3
  %80 = icmp ne ptr %77, %79
  br i1 %80, label %81, label %106

81:                                               ; preds = %75
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.hash_rect, ptr %82, i32 0, i32 4
  %84 = load i32, ptr %83, align 4, !tbaa !28
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.hash_rect, ptr %85, i32 0, i32 8
  %87 = getelementptr inbounds %struct.dfont_rect, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 4, !tbaa !29
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.hash_rect, ptr %89, i32 0, i32 8
  %91 = getelementptr inbounds %struct.dfont_rect, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 4, !tbaa !29
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.hash_rect, ptr %93, i32 0, i32 8
  %95 = getelementptr inbounds %struct.dfont_rect, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 4, !tbaa !30
  %97 = add nsw i32 %92, %96
  %98 = sub nsw i32 %97, 1
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %84, i32 noundef %88, i32 noundef %98)
  br label %100

100:                                              ; preds = %81
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.hash_rect, ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds %struct.list_head, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !31
  %105 = getelementptr inbounds i8, ptr %104, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.hash_rect, ptr null, i32 0, i32 1) to i64))
  store ptr %105, ptr %3, align 8, !tbaa !5
  br label %75, !llvm.loop !32

106:                                              ; preds = %75
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %108

108:                                              ; preds = %106
  %109 = load i32, ptr %5, align 4, !tbaa !13
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %5, align 4, !tbaa !13
  br label %47, !llvm.loop !33

111:                                              ; preds = %47
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %113

113:                                              ; preds = %139, %111
  %114 = load i32, ptr %5, align 4, !tbaa !13
  %115 = icmp slt i32 %114, 4096
  br i1 %115, label %116, label %142

116:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.dfont, ptr %117, i32 0, i32 7
  %119 = load i32, ptr %5, align 4, !tbaa !13
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [4096 x ptr], ptr %118, i64 0, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  store ptr %122, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %138

125:                                              ; preds = %116
  %126 = load i32, ptr %5, align 4, !tbaa !13
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %126)
  br label %128

128:                                              ; preds = %131, %125
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = icmp ne ptr %129, null
  br i1 %130, label %131, label %136

131:                                              ; preds = %128
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  call void @dump_node(ptr noundef %132)
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.hash_rect, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !34
  store ptr %135, ptr %7, align 8, !tbaa !5
  br label %128, !llvm.loop !35

136:                                              ; preds = %128
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %138

138:                                              ; preds = %136, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %5, align 4, !tbaa !13
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %5, align 4, !tbaa !13
  br label %113, !llvm.loop !36

142:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @dump_node(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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, !11, i64 12}
!10 = !{!"dfont", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !6, i64 32, !6, i64 40, !7, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!"list_head", !6, i64 0, !6, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 16}
!15 = !{!16, !11, i64 40}
!16 = !{!"hash_rect", !6, i64 0, !12, i64 8, !12, i64 24, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !17, i64 60}
!17 = !{!"dfont_rect", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!18 = !{!16, !6, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !11, i64 8}
!22 = !{!10, !6, i64 40}
!23 = !{!24, !11, i64 0}
!24 = !{!"font_line", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16}
!25 = !{!24, !11, i64 4}
!26 = !{!24, !11, i64 8}
!27 = !{!24, !6, i64 16}
!28 = !{!16, !11, i64 44}
!29 = !{!16, !11, i64 60}
!30 = !{!16, !11, i64 68}
!31 = !{!16, !6, i64 8}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = !{!16, !6, i64 0}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !20}


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

%struct.font_line = type { i32, i32, i32, %struct.list_head }
%struct.list_head = type { ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dfont_dump(ptr noundef readonly %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 12
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %3)
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %.pn48 = load ptr, ptr %6, align 8, !tbaa !12
  %.not50 = icmp eq ptr %.pn48, %6
  br i1 %.not50, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1, %11
  %.pn52 = phi ptr [ %.pn, %11 ], [ %.pn48, %1 ]
  %.03751 = phi i32 [ %.138, %11 ], [ -1, %1 ]
  %.03453 = getelementptr inbounds i8, ptr %.pn52, i64 -24
  %7 = getelementptr inbounds i8, ptr %.pn52, i64 16
  %8 = load i32, ptr %7, align 8, !tbaa !13
  %.not47 = icmp eq i32 %8, %.03751
  br i1 %.not47, label %11, label %9

9:                                                ; preds = %.lr.ph
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %8)
  br label %11

11:                                               ; preds = %9, %.lr.ph
  %.138 = phi i32 [ %8, %9 ], [ %.03751, %.lr.ph ]
  tail call void @dump_node(ptr noundef nonnull %.03453)
  %.pn = load ptr, ptr %.pn52, align 8, !tbaa !12
  %.not = icmp eq ptr %.pn, %6
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %11, %1
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !18
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph62, label %._crit_edge63

.lr.ph62:                                         ; preds = %._crit_edge
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  br label %18

18:                                               ; preds = %.lr.ph62, %._crit_edge59
  %indvars.iv = phi i64 [ 0, %.lr.ph62 ], [ %indvars.iv.next, %._crit_edge59 ]
  %19 = load ptr, ptr %17, align 8, !tbaa !19
  %20 = getelementptr inbounds %struct.font_line, ptr %19, i64 %indvars.iv
  %21 = load i32, ptr %20, align 8, !tbaa !20
  %22 = getelementptr inbounds i8, ptr %20, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %20, i64 8
  %25 = load i32, ptr %24, align 8, !tbaa !23
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %21, i32 noundef %23, i32 noundef %25)
  %27 = getelementptr inbounds i8, ptr %20, i64 16
  %.pn4554 = load ptr, ptr %27, align 8, !tbaa !12
  %.not4655 = icmp eq ptr %.pn4554, %27
  br i1 %.not4655, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %18, %.lr.ph58
  %.pn4556 = phi ptr [ %.pn45, %.lr.ph58 ], [ %.pn4554, %18 ]
  %28 = getelementptr inbounds i8, ptr %.pn4556, i64 36
  %29 = load i32, ptr %28, align 4, !tbaa !24
  %30 = getelementptr inbounds i8, ptr %.pn4556, i64 52
  %31 = load i32, ptr %30, align 4, !tbaa !25
  %32 = getelementptr inbounds i8, ptr %.pn4556, i64 60
  %33 = load i32, ptr %32, align 4, !tbaa !26
  %34 = add i32 %31, -1
  %35 = add i32 %34, %33
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %29, i32 noundef %31, i32 noundef %35)
  %.pn45 = load ptr, ptr %.pn4556, align 8, !tbaa !12
  %.not46 = icmp eq ptr %.pn45, %27
  br i1 %.not46, label %._crit_edge59, label %.lr.ph58, !llvm.loop !27

._crit_edge59:                                    ; preds = %.lr.ph58, %18
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr %14, align 8, !tbaa !18
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %18, label %._crit_edge63, !llvm.loop !28

._crit_edge63:                                    ; preds = %._crit_edge59, %._crit_edge
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %42 = getelementptr inbounds i8, ptr %0, i64 48
  br label %43

43:                                               ; preds = %._crit_edge63, %53
  %indvars.iv67 = phi i64 [ 0, %._crit_edge63 ], [ %indvars.iv.next68, %53 ]
  %44 = getelementptr inbounds [4096 x ptr], ptr %42, i64 0, i64 %indvars.iv67
  %45 = load ptr, ptr %44, align 8, !tbaa !12
  %.not43 = icmp eq ptr %45, null
  br i1 %.not43, label %53, label %46

46:                                               ; preds = %43
  %47 = trunc nuw nsw i64 %indvars.iv67 to i32
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %47)
  br label %49

49:                                               ; preds = %46, %49
  %.064 = phi ptr [ %45, %46 ], [ %50, %49 ]
  tail call void @dump_node(ptr noundef nonnull %.064)
  %50 = load ptr, ptr %.064, align 8, !tbaa !29
  %.not44 = icmp eq ptr %50, null
  br i1 %.not44, label %51, label %49, !llvm.loop !30

51:                                               ; preds = %49
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %53

53:                                               ; preds = %51, %43
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next68, 4096
  br i1 %exitcond.not, label %54, label %43, !llvm.loop !31

54:                                               ; preds = %53
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @dump_node(ptr noundef) local_unnamed_addr #0

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

!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, !7, i64 12}
!6 = !{!"dfont", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 32, !11, i64 40, !8, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"list_head", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !7, i64 40}
!14 = !{!"hash_rect", !11, i64 0, !10, i64 8, !10, i64 24, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !15, i64 60}
!15 = !{!"dfont_rect", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !7, i64 8}
!19 = !{!6, !11, i64 40}
!20 = !{!21, !7, i64 0}
!21 = !{!"font_line", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!22 = !{!21, !7, i64 4}
!23 = !{!21, !7, i64 8}
!24 = !{!14, !7, i64 44}
!25 = !{!14, !7, i64 60}
!26 = !{!14, !7, i64 68}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = !{!14, !11, i64 0}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}


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