; LLVM IR from JessonYue/LeetCodeLearning :: Array/luoyida/ELF/ELFTest.ll (Z23section_header_32_parseP10Elf32_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.Elf32_Shdr = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@strtable = external dso_local global [9999 x i8], align 16
@.str.57 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [125 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.81 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [11 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

; 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_32_parseP10Elf32_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.58)
  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 = %155, %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 %158

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.Elf32_Shdr, ptr %17, i64 %19
  %21 = getelementptr inbounds %struct.Elf32_Shdr, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 4, !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.Elf32_Shdr, ptr %29, i64 %31
  %33 = getelementptr inbounds %struct.Elf32_Shdr, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 4, !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 25, %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 !13

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.Elf32_Shdr, ptr %47, i64 %49
  %51 = getelementptr inbounds %struct.Elf32_Shdr, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !15
  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 %97

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

155:                                              ; preds = %97
  %156 = load i32, ptr %5, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %5, align 4, !tbaa !9
  br label %10, !llvm.loop !24

158:                                              ; 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 = !{!"_ZTS10Elf32_Shdr", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !10, i64 4}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 12}
!18 = !{!12, !10, i64 16}
!19 = !{!12, !10, i64 20}
!20 = !{!12, !10, i64 24}
!21 = !{!12, !10, i64 28}
!22 = !{!12, !10, i64 32}
!23 = !{!12, !10, i64 36}
!24 = distinct !{!24, !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"

%struct.Elf32_Shdr = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@strtable = external dso_local global [9999 x i8], align 16
@.str.57 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [125 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.81 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [11 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

; 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_32_parseP10Elf32_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.58)
  %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.Elf32_Shdr, ptr %0, i64 %indvars.iv34
  %7 = load i32, ptr %6, align 4, !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 4, !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, 25
  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 !10
  switch i32 %17, label %45 [
    i32 0, label %46
    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 4, !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 25, %22
  %24 = icmp ugt i64 %23, %indvars.iv.next
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !11

25:                                               ; preds = %._crit_edge
  br label %46

26:                                               ; preds = %._crit_edge
  br label %46

27:                                               ; preds = %._crit_edge
  br label %46

28:                                               ; preds = %._crit_edge
  br label %46

29:                                               ; preds = %._crit_edge
  br label %46

30:                                               ; preds = %._crit_edge
  br label %46

31:                                               ; preds = %._crit_edge
  br label %46

32:                                               ; preds = %._crit_edge
  br label %46

33:                                               ; preds = %._crit_edge
  br label %46

34:                                               ; preds = %._crit_edge
  br label %46

35:                                               ; preds = %._crit_edge
  br label %46

36:                                               ; preds = %._crit_edge
  br label %46

37:                                               ; preds = %._crit_edge
  br label %46

38:                                               ; preds = %._crit_edge
  br label %46

39:                                               ; preds = %._crit_edge
  br label %46

40:                                               ; preds = %._crit_edge
  br label %46

41:                                               ; preds = %._crit_edge
  br label %46

42:                                               ; preds = %._crit_edge
  br label %46

43:                                               ; preds = %._crit_edge
  br label %46

44:                                               ; preds = %._crit_edge
  br label %46

45:                                               ; preds = %._crit_edge
  br label %46

46:                                               ; preds = %._crit_edge, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25
  %.str.81.sink = phi ptr [ @.str.81, %45 ], [ @.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 ]
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.81.sink)
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.82)
  %49 = getelementptr inbounds i8, ptr %6, i64 8
  %50 = load i32, ptr %49, align 4, !tbaa !13
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.83, i32 noundef %50)
  %52 = getelementptr inbounds i8, ptr %6, i64 12
  %53 = load i32, ptr %52, align 4, !tbaa !14
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.84, i32 noundef %53)
  %55 = getelementptr inbounds i8, ptr %6, i64 16
  %56 = load i32, ptr %55, align 4, !tbaa !15
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.85, i32 noundef %56)
  %58 = getelementptr inbounds i8, ptr %6, i64 20
  %59 = load i32, ptr %58, align 4, !tbaa !16
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.86, i32 noundef %59)
  %61 = getelementptr inbounds i8, ptr %6, i64 24
  %62 = load i32, ptr %61, align 4, !tbaa !17
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.87, i32 noundef %62)
  %64 = getelementptr inbounds i8, ptr %6, i64 28
  %65 = load i32, ptr %64, align 4, !tbaa !18
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88, i32 noundef %65)
  %67 = getelementptr inbounds i8, ptr %6, i64 32
  %68 = load i32, ptr %67, align 4, !tbaa !19
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.89, i32 noundef %68)
  %70 = getelementptr inbounds i8, ptr %6, i64 36
  %71 = load i32, ptr %70, align 4, !tbaa !20
  %72 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.90, i32 noundef %71)
  %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 !21
}

; 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 = !{!"_ZTS10Elf32_Shdr", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 12}
!15 = !{!6, !7, i64 16}
!16 = !{!6, !7, i64 20}
!17 = !{!6, !7, i64 24}
!18 = !{!6, !7, i64 28}
!19 = !{!6, !7, i64 32}
!20 = !{!6, !7, i64 36}
!21 = distinct !{!21, !12}


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