; LLVM IR from JessonYue/LeetCodeLearning :: Array/luoyida/ELF/ELFTest.ll (Z23section_header_64_parseP10Elf64_Shdri)

; 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.Elf64_Shdr = type { i32, i32, i64, i64, i64, i64, i32, i32, i64, i64 }

@strtable = external dso_local global [9999 x i8], align 16
@.str.57 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [8 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z23section_header_64_parseP10Elf64_Shdri(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %8 = call i32 @puts(ptr noundef @.str.57)
  %9 = call i32 (ptr, ...) @printf(ptr noundef @.str.91)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %152, %2
  %11 = load i32, ptr %5, align 4, !tbaa !9
  %12 = load i32, ptr %4, align 4, !tbaa !9
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %155

15:                                               ; preds = %10
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds %struct.Elf64_Shdr, ptr %17, i64 %19
  %21 = getelementptr inbounds %struct.Elf64_Shdr, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !11
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds [9999 x i8], ptr @strtable, i64 0, i64 %23
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.59, i32 noundef %16, ptr noundef %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %43, %15
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds %struct.Elf64_Shdr, ptr %29, i64 %31
  %33 = getelementptr inbounds %struct.Elf64_Shdr, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds [9999 x i8], ptr @strtable, i64 0, i64 %35
  %37 = call i64 @strlen(ptr noundef %36) #6
  %38 = sub i64 20, %37
  %39 = icmp ult i64 %28, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %26
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %46

41:                                               ; preds = %26
  %42 = call i32 @putchar(i32 noundef 32)
  br label %43

43:                                               ; preds = %41
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %7, align 4, !tbaa !9
  br label %26, !llvm.loop !14

46:                                               ; preds = %40
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = load i32, ptr %5, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.Elf64_Shdr, ptr %47, i64 %49
  %51 = getelementptr inbounds %struct.Elf64_Shdr, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !16
  switch i32 %52, label %95 [
    i32 0, label %53
    i32 1, label %55
    i32 2, label %57
    i32 3, label %59
    i32 4, label %61
    i32 5, label %63
    i32 6, label %65
    i32 7, label %67
    i32 8, label %69
    i32 9, label %71
    i32 10, label %73
    i32 11, label %75
    i32 14, label %77
    i32 15, label %79
    i32 1879048192, label %81
    i32 2147483647, label %83
    i32 -2147483648, label %85
    i32 -1, label %87
    i32 1879048182, label %89
    i32 1879048191, label %91
    i32 1879048190, label %93
  ]

53:                                               ; preds = %46
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.60)
  br label %95

55:                                               ; preds = %46
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.61)
  br label %95

57:                                               ; preds = %46
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.62)
  br label %95

59:                                               ; preds = %46
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.63)
  br label %95

61:                                               ; preds = %46
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.64)
  br label %95

63:                                               ; preds = %46
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.65)
  br label %95

65:                                               ; preds = %46
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.66)
  br label %95

67:                                               ; preds = %46
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.67)
  br label %95

69:                                               ; preds = %46
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.68)
  br label %95

71:                                               ; preds = %46
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.69)
  br label %95

73:                                               ; preds = %46
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.70)
  br label %95

75:                                               ; preds = %46
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.71)
  br label %95

77:                                               ; preds = %46
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.72)
  br label %95

79:                                               ; preds = %46
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.73)
  br label %95

81:                                               ; preds = %46
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.74)
  br label %95

83:                                               ; preds = %46
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.75)
  br label %95

85:                                               ; preds = %46
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.76)
  br label %95

87:                                               ; preds = %46
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.77)
  br label %95

89:                                               ; preds = %46
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.78)
  br label %95

91:                                               ; preds = %46
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.79)
  br label %95

93:                                               ; preds = %46
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.80)
  br label %95

95:                                               ; preds = %93, %91, %89, %87, %85, %83, %81, %79, %77, %75, %73, %71, %69, %67, %65, %63, %61, %59, %57, %55, %53, %46
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = load i32, ptr %5, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.Elf64_Shdr, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.Elf64_Shdr, ptr %99, i32 0, i32 2
  %101 = load i64, ptr %100, align 8, !tbaa !17
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.92, i64 noundef %101)
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = load i32, ptr %5, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %struct.Elf64_Shdr, ptr %103, i64 %105
  %107 = getelementptr inbounds %struct.Elf64_Shdr, ptr %106, i32 0, i32 3
  %108 = load i64, ptr %107, align 8, !tbaa !18
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.84, i64 noundef %108)
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = load i32, ptr %5, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct.Elf64_Shdr, ptr %110, i64 %112
  %114 = getelementptr inbounds %struct.Elf64_Shdr, ptr %113, i32 0, i32 4
  %115 = load i64, ptr %114, align 8, !tbaa !19
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.85, i64 noundef %115)
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = load i32, ptr %5, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.Elf64_Shdr, ptr %117, i64 %119
  %121 = getelementptr inbounds %struct.Elf64_Shdr, ptr %120, i32 0, i32 5
  %122 = load i64, ptr %121, align 8, !tbaa !20
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.86, i64 noundef %122)
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load i32, ptr %5, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds %struct.Elf64_Shdr, ptr %124, i64 %126
  %128 = getelementptr inbounds %struct.Elf64_Shdr, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %128, align 8, !tbaa !21
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.87, i32 noundef %129)
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = load i32, ptr %5, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds %struct.Elf64_Shdr, ptr %131, i64 %133
  %135 = getelementptr inbounds %struct.Elf64_Shdr, ptr %134, i32 0, i32 7
  %136 = load i32, ptr %135, align 4, !tbaa !22
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.88, i32 noundef %136)
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = load i32, ptr %5, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %struct.Elf64_Shdr, ptr %138, i64 %140
  %142 = getelementptr inbounds %struct.Elf64_Shdr, ptr %141, i32 0, i32 8
  %143 = load i64, ptr %142, align 8, !tbaa !23
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.89, i64 noundef %143)
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = load i32, ptr %5, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %struct.Elf64_Shdr, ptr %145, i64 %147
  %149 = getelementptr inbounds %struct.Elf64_Shdr, ptr %148, i32 0, i32 9
  %150 = load i64, ptr %149, align 8, !tbaa !24
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.90, i64 noundef %150)
  br label %152

152:                                              ; preds = %95
  %153 = load i32, ptr %5, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %5, align 4, !tbaa !9
  br label %10, !llvm.loop !25

155:                                              ; preds = %14
  ret void
}

declare i32 @puts(ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @putchar(i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 #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 = { inlinehint mustprogress 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS10Elf64_Shdr", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !10, i64 44, !13, i64 48, !13, i64 56}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !10, i64 4}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !13, i64 16}
!19 = !{!12, !13, i64 24}
!20 = !{!12, !13, i64 32}
!21 = !{!12, !10, i64 40}
!22 = !{!12, !10, i64 44}
!23 = !{!12, !13, i64 48}
!24 = !{!12, !13, i64 56}
!25 = distinct !{!25, !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"

%struct.Elf64_Shdr = type { i32, i32, i64, i64, i64, i64, i32, i32, i64, i64 }

@strtable = external dso_local global [9999 x i8], align 16
@.str.57 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [8 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind uwtable
define dso_local void @_Z23section_header_64_parseP10Elf64_Shdri(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.57)
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.91)
  %5 = icmp sgt i32 %1, 0
  br i1 %5, label %.lr.ph31.preheader, label %._crit_edge32

.lr.ph31.preheader:                               ; preds = %2
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph31

._crit_edge32:                                    ; preds = %46, %2
  ret void

.lr.ph31:                                         ; preds = %.lr.ph31.preheader, %46
  %indvars.iv34 = phi i64 [ 0, %.lr.ph31.preheader ], [ %indvars.iv.next35, %46 ]
  %6 = getelementptr inbounds %struct.Elf64_Shdr, ptr %0, i64 %indvars.iv34
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = zext i32 %7 to i64
  %9 = getelementptr inbounds [9999 x i8], ptr @strtable, i64 0, i64 %8
  %10 = trunc nuw nsw i64 %indvars.iv34 to i32
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.59, i32 noundef %10, ptr noundef nonnull %9)
  %12 = load i32, ptr %6, align 8, !tbaa !5
  %13 = zext i32 %12 to i64
  %14 = getelementptr inbounds [9999 x i8], ptr @strtable, i64 0, i64 %13
  %15 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #4
  %.not = icmp eq i64 %15, 20
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph31
  %16 = getelementptr inbounds i8, ptr %6, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !11
  switch i32 %17, label %46 [
    i32 0, label %.sink.split
    i32 1, label %25
    i32 2, label %26
    i32 3, label %27
    i32 4, label %28
    i32 5, label %29
    i32 6, label %30
    i32 7, label %31
    i32 8, label %32
    i32 9, label %33
    i32 10, label %34
    i32 11, label %35
    i32 14, label %36
    i32 15, label %37
    i32 1879048192, label %38
    i32 2147483647, label %39
    i32 -2147483648, label %40
    i32 -1, label %41
    i32 1879048182, label %42
    i32 1879048191, label %43
    i32 1879048190, label %44
  ]

.lr.ph:                                           ; preds = %.lr.ph31, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph31 ]
  %18 = tail call i32 @putchar(i32 noundef 32)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr %6, align 8, !tbaa !5
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds [9999 x i8], ptr @strtable, i64 0, i64 %20
  %22 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %21) #4
  %23 = sub i64 20, %22
  %24 = icmp ugt i64 %23, %indvars.iv.next
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !12

25:                                               ; preds = %._crit_edge
  br label %.sink.split

26:                                               ; preds = %._crit_edge
  br label %.sink.split

27:                                               ; preds = %._crit_edge
  br label %.sink.split

28:                                               ; preds = %._crit_edge
  br label %.sink.split

29:                                               ; preds = %._crit_edge
  br label %.sink.split

30:                                               ; preds = %._crit_edge
  br label %.sink.split

31:                                               ; preds = %._crit_edge
  br label %.sink.split

32:                                               ; preds = %._crit_edge
  br label %.sink.split

33:                                               ; preds = %._crit_edge
  br label %.sink.split

34:                                               ; preds = %._crit_edge
  br label %.sink.split

35:                                               ; preds = %._crit_edge
  br label %.sink.split

36:                                               ; preds = %._crit_edge
  br label %.sink.split

37:                                               ; preds = %._crit_edge
  br label %.sink.split

38:                                               ; preds = %._crit_edge
  br label %.sink.split

39:                                               ; preds = %._crit_edge
  br label %.sink.split

40:                                               ; preds = %._crit_edge
  br label %.sink.split

41:                                               ; preds = %._crit_edge
  br label %.sink.split

42:                                               ; preds = %._crit_edge
  br label %.sink.split

43:                                               ; preds = %._crit_edge
  br label %.sink.split

44:                                               ; preds = %._crit_edge
  br label %.sink.split

.sink.split:                                      ; preds = %._crit_edge, %25, %26, %27, %28, %29, %30, %31, %32, %33, %34, %35, %36, %37, %38, %39, %40, %41, %42, %43, %44
  %.str.80.sink = phi ptr [ @.str.80, %44 ], [ @.str.79, %43 ], [ @.str.78, %42 ], [ @.str.77, %41 ], [ @.str.76, %40 ], [ @.str.75, %39 ], [ @.str.74, %38 ], [ @.str.73, %37 ], [ @.str.72, %36 ], [ @.str.71, %35 ], [ @.str.70, %34 ], [ @.str.69, %33 ], [ @.str.68, %32 ], [ @.str.67, %31 ], [ @.str.66, %30 ], [ @.str.65, %29 ], [ @.str.64, %28 ], [ @.str.63, %27 ], [ @.str.62, %26 ], [ @.str.61, %25 ], [ @.str.60, %._crit_edge ]
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.80.sink)
  br label %46

46:                                               ; preds = %.sink.split, %._crit_edge
  %47 = getelementptr inbounds i8, ptr %6, i64 8
  %48 = load i64, ptr %47, align 8, !tbaa !14
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.92, i64 noundef %48)
  %50 = getelementptr inbounds i8, ptr %6, i64 16
  %51 = load i64, ptr %50, align 8, !tbaa !15
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.84, i64 noundef %51)
  %53 = getelementptr inbounds i8, ptr %6, i64 24
  %54 = load i64, ptr %53, align 8, !tbaa !16
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.85, i64 noundef %54)
  %56 = getelementptr inbounds i8, ptr %6, i64 32
  %57 = load i64, ptr %56, align 8, !tbaa !17
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.86, i64 noundef %57)
  %59 = getelementptr inbounds i8, ptr %6, i64 40
  %60 = load i32, ptr %59, align 8, !tbaa !18
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.87, i32 noundef %60)
  %62 = getelementptr inbounds i8, ptr %6, i64 44
  %63 = load i32, ptr %62, align 4, !tbaa !19
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88, i32 noundef %63)
  %65 = getelementptr inbounds i8, ptr %6, i64 48
  %66 = load i64, ptr %65, align 8, !tbaa !20
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.89, i64 noundef %66)
  %68 = getelementptr inbounds i8, ptr %6, i64 56
  %69 = load i64, ptr %68, align 8, !tbaa !21
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.90, i64 noundef %69)
  %indvars.iv.next35 = add nuw nsw i64 %indvars.iv34, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next35, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge32, label %.lr.ph31, !llvm.loop !22
}

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nofree 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 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 #3 = { inlinehint mustprogress nofree 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 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, !7, i64 0}
!6 = !{!"_ZTS10Elf64_Shdr", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 44, !10, i64 48, !10, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !10, i64 24}
!17 = !{!6, !10, i64 32}
!18 = !{!6, !7, i64 40}
!19 = !{!6, !7, i64 44}
!20 = !{!6, !10, i64 48}
!21 = !{!6, !10, i64 56}
!22 = distinct !{!22, !13}


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