; LLVM IR from JessonYue/LeetCodeLearning :: Array/linchuanxin/homework/elf (anlysic_elf)

; 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.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [34 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: nounwind uwtable
define dso_local void @readHeader(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %5

5:                                                ; preds = %17, %1
  %6 = load i32, ptr %3, align 4, !tbaa !9
  %7 = icmp slt i32 %6, 16
  br i1 %7, label %8, label %20

8:                                                ; preds = %5
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = load i32, ptr %3, align 4, !tbaa !9
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds i8, ptr %9, i64 %11
  %13 = load i8, ptr %12, align 1, !tbaa !11
  %14 = sext i8 %13 to i32
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %14)
  %16 = call i32 @putchar(i32 noundef 32)
  br label %17

17:                                               ; preds = %8
  %18 = load i32, ptr %3, align 4, !tbaa !9
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %3, align 4, !tbaa !9
  br label %5, !llvm.loop !12

20:                                               ; preds = %5
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.10)
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 4
  %25 = load i8, ptr %24, align 1, !tbaa !11
  %26 = sext i8 %25 to i32
  switch i32 %26, label %35 [
    i32 0, label %27
    i32 1, label %29
    i32 2, label %31
    i32 3, label %33
  ]

27:                                               ; preds = %20
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %35

29:                                               ; preds = %20
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  br label %35

31:                                               ; preds = %20
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %35

33:                                               ; preds = %20
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %35

35:                                               ; preds = %33, %31, %29, %27, %20
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.15)
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 5
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = sext i8 %39 to i32
  switch i32 %40, label %47 [
    i32 0, label %41
    i32 1, label %43
    i32 2, label %45
  ]

41:                                               ; preds = %35
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %49

43:                                               ; preds = %35
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %49

45:                                               ; preds = %35
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  br label %49

47:                                               ; preds = %35
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %49

49:                                               ; preds = %47, %45, %43, %41
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.20)
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 6
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %54 = sext i8 %53 to i32
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %54)
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, ptr noundef @.str.23)
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  store ptr %58, ptr %2, align 8, !tbaa !5
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef @.str.25, ptr noundef @.str.26)
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef @.str.27, ptr noundef @.str.28)
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.29)
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = load i16, ptr %62, align 2, !tbaa !14
  %64 = zext i16 %63 to i32
  switch i32 %64, label %75 [
    i32 0, label %65
    i32 1, label %67
    i32 2, label %69
    i32 3, label %71
    i32 4, label %73
  ]

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

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

69:                                               ; preds = %49
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  br label %77

71:                                               ; preds = %49
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  br label %77

73:                                               ; preds = %49
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
  br label %77

75:                                               ; preds = %49
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %77

77:                                               ; preds = %75, %73, %71, %69, %67, %65
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 2
  store ptr %79, ptr %2, align 8, !tbaa !5
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.35)
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = load i16, ptr %81, align 2, !tbaa !14
  %83 = zext i16 %82 to i32
  switch i32 %83, label %92 [
    i32 3, label %84
    i32 40, label %86
    i32 62, label %88
    i32 183, label %90
  ]

84:                                               ; preds = %77
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  br label %94

86:                                               ; preds = %77
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
  br label %94

88:                                               ; preds = %77
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
  br label %94

90:                                               ; preds = %77
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.39)
  br label %94

92:                                               ; preds = %77
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
  br label %94

94:                                               ; preds = %92, %90, %88, %86, %84
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 2
  store ptr %96, ptr %2, align 8, !tbaa !5
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef @.str.41, ptr noundef @.str.42)
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 4
  store ptr %99, ptr %2, align 8, !tbaa !5
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = load i64, ptr %100, align 8, !tbaa !16
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.43, ptr noundef @.str.44, i64 noundef %101)
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  store ptr %104, ptr %2, align 8, !tbaa !5
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !16
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.45, ptr noundef @.str.46, i64 noundef %106)
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  store ptr %109, ptr %2, align 8, !tbaa !5
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !16
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.45, ptr noundef @.str.47, i64 noundef %111)
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %113, i64 8
  store ptr %114, ptr %2, align 8, !tbaa !5
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.48, ptr noundef @.str.49)
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 4
  store ptr %117, ptr %2, align 8, !tbaa !5
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = load i16, ptr %118, align 2, !tbaa !14
  %120 = zext i16 %119 to i32
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, ptr noundef @.str.51, i32 noundef %120)
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 2
  store ptr %123, ptr %2, align 8, !tbaa !5
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = load i16, ptr %124, align 2, !tbaa !14
  %126 = zext i16 %125 to i32
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, ptr noundef @.str.52, i32 noundef %126)
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 2
  store ptr %129, ptr %2, align 8, !tbaa !5
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = load i16, ptr %130, align 2, !tbaa !14
  %132 = zext i16 %131 to i32
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, ptr noundef @.str.54, i32 noundef %132)
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 2
  store ptr %135, ptr %2, align 8, !tbaa !5
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = load i16, ptr %136, align 2, !tbaa !14
  %138 = zext i16 %137 to i32
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, ptr noundef @.str.55, i32 noundef %138)
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 2
  store ptr %141, ptr %2, align 8, !tbaa !5
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = load i16, ptr %142, align 2, !tbaa !14
  %144 = zext i16 %143 to i32
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, ptr noundef @.str.56, i32 noundef %144)
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %146, i64 2
  store ptr %147, ptr %2, align 8, !tbaa !5
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = load i16, ptr %148, align 2, !tbaa !14
  %150 = zext i16 %149 to i32
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, ptr noundef @.str.57, i32 noundef %150)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

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

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 = { 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 #3 = { inlinehint 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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}


; 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.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [34 x i8], align 1
@switch.table.readHeader = private unnamed_addr constant [4 x ptr] [ptr @.str.11, ptr @.str.12, ptr @.str.13, ptr @.str.14], align 8
@switch.table.readHeader.1 = private unnamed_addr constant [3 x ptr] [ptr @.str.16, ptr @.str.17, ptr @.str.18], align 8
@switch.table.readHeader.2 = private unnamed_addr constant [5 x ptr] [ptr @.str.30, ptr @.str.31, ptr @.str.32, ptr @.str.33, ptr @.str.34], align 8

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @readHeader(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %3 = load i8, ptr %0, align 1, !tbaa !5
  %4 = sext i8 %3 to i32
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %4)
  %6 = tail call i32 @putchar(i32 noundef 32)
  %7 = getelementptr inbounds i8, ptr %0, i64 1
  %8 = load i8, ptr %7, align 1, !tbaa !5
  %9 = sext i8 %8 to i32
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %9)
  %11 = tail call i32 @putchar(i32 noundef 32)
  %12 = getelementptr inbounds i8, ptr %0, i64 2
  %13 = load i8, ptr %12, align 1, !tbaa !5
  %14 = sext i8 %13 to i32
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %14)
  %16 = tail call i32 @putchar(i32 noundef 32)
  %17 = getelementptr inbounds i8, ptr %0, i64 3
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %19 = sext i8 %18 to i32
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %19)
  %21 = tail call i32 @putchar(i32 noundef 32)
  %22 = getelementptr inbounds i8, ptr %0, i64 4
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %24 = sext i8 %23 to i32
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %24)
  %26 = tail call i32 @putchar(i32 noundef 32)
  %27 = getelementptr inbounds i8, ptr %0, i64 5
  %28 = load i8, ptr %27, align 1, !tbaa !5
  %29 = sext i8 %28 to i32
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %29)
  %31 = tail call i32 @putchar(i32 noundef 32)
  %32 = getelementptr inbounds i8, ptr %0, i64 6
  %33 = load i8, ptr %32, align 1, !tbaa !5
  %34 = sext i8 %33 to i32
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %34)
  %36 = tail call i32 @putchar(i32 noundef 32)
  %37 = getelementptr inbounds i8, ptr %0, i64 7
  %38 = load i8, ptr %37, align 1, !tbaa !5
  %39 = sext i8 %38 to i32
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %39)
  %41 = tail call i32 @putchar(i32 noundef 32)
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  %43 = load i8, ptr %42, align 1, !tbaa !5
  %44 = sext i8 %43 to i32
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %44)
  %46 = tail call i32 @putchar(i32 noundef 32)
  %47 = getelementptr inbounds i8, ptr %0, i64 9
  %48 = load i8, ptr %47, align 1, !tbaa !5
  %49 = sext i8 %48 to i32
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %49)
  %51 = tail call i32 @putchar(i32 noundef 32)
  %52 = getelementptr inbounds i8, ptr %0, i64 10
  %53 = load i8, ptr %52, align 1, !tbaa !5
  %54 = sext i8 %53 to i32
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %54)
  %56 = tail call i32 @putchar(i32 noundef 32)
  %57 = getelementptr inbounds i8, ptr %0, i64 11
  %58 = load i8, ptr %57, align 1, !tbaa !5
  %59 = sext i8 %58 to i32
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %59)
  %61 = tail call i32 @putchar(i32 noundef 32)
  %62 = getelementptr inbounds i8, ptr %0, i64 12
  %63 = load i8, ptr %62, align 1, !tbaa !5
  %64 = sext i8 %63 to i32
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %64)
  %66 = tail call i32 @putchar(i32 noundef 32)
  %67 = getelementptr inbounds i8, ptr %0, i64 13
  %68 = load i8, ptr %67, align 1, !tbaa !5
  %69 = sext i8 %68 to i32
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %69)
  %71 = tail call i32 @putchar(i32 noundef 32)
  %72 = getelementptr inbounds i8, ptr %0, i64 14
  %73 = load i8, ptr %72, align 1, !tbaa !5
  %74 = sext i8 %73 to i32
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %74)
  %76 = tail call i32 @putchar(i32 noundef 32)
  %77 = getelementptr inbounds i8, ptr %0, i64 15
  %78 = load i8, ptr %77, align 1, !tbaa !5
  %79 = sext i8 %78 to i32
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %79)
  %81 = tail call i32 @putchar(i32 noundef 32)
  %82 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %83 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull @.str.10)
  %84 = load i8, ptr %22, align 1, !tbaa !5
  %85 = icmp ult i8 %84, 4
  br i1 %85, label %switch.lookup, label %88

switch.lookup:                                    ; preds = %1
  %86 = zext nneg i8 %84 to i64
  %switch.gep = getelementptr inbounds [4 x ptr], ptr @switch.table.readHeader, i64 0, i64 %86
  %switch.load = load ptr, ptr %switch.gep, align 8
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load)
  br label %88

88:                                               ; preds = %1, %switch.lookup
  %89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull @.str.15)
  %90 = load i8, ptr %27, align 1, !tbaa !5
  %91 = icmp ult i8 %90, 3
  br i1 %91, label %switch.lookup33, label %93

switch.lookup33:                                  ; preds = %88
  %92 = zext nneg i8 %90 to i64
  %switch.gep34 = getelementptr inbounds [3 x ptr], ptr @switch.table.readHeader.1, i64 0, i64 %92
  %switch.load35 = load ptr, ptr %switch.gep34, align 8
  br label %93

93:                                               ; preds = %88, %switch.lookup33
  %.str.19.sink = phi ptr [ %switch.load35, %switch.lookup33 ], [ @.str.19, %88 ]
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.19.sink)
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull @.str.20)
  %96 = load i8, ptr %32, align 1, !tbaa !5
  %97 = sext i8 %96 to i32
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %97)
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, ptr noundef nonnull @.str.23)
  %100 = getelementptr inbounds i8, ptr %0, i64 16
  %101 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.26)
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.28)
  %103 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull @.str.29)
  %104 = load i16, ptr %100, align 2, !tbaa !8
  %105 = icmp ult i16 %104, 5
  br i1 %105, label %switch.lookup36, label %107

switch.lookup36:                                  ; preds = %93
  %106 = zext nneg i16 %104 to i64
  %switch.gep37 = getelementptr inbounds [5 x ptr], ptr @switch.table.readHeader.2, i64 0, i64 %106
  %switch.load38 = load ptr, ptr %switch.gep37, align 8
  br label %107

107:                                              ; preds = %93, %switch.lookup36
  %.str.19.sink32 = phi ptr [ %switch.load38, %switch.lookup36 ], [ @.str.19, %93 ]
  %108 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.19.sink32)
  %109 = getelementptr inbounds i8, ptr %0, i64 18
  %110 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull @.str.35)
  %111 = load i16, ptr %109, align 2, !tbaa !8
  switch i16 %111, label %115 [
    i16 3, label %116
    i16 40, label %112
    i16 62, label %113
    i16 183, label %114
  ]

112:                                              ; preds = %107
  br label %116

113:                                              ; preds = %107
  br label %116

114:                                              ; preds = %107
  br label %116

115:                                              ; preds = %107
  br label %116

116:                                              ; preds = %107, %115, %114, %113, %112
  %.str.40.sink = phi ptr [ @.str.40, %115 ], [ @.str.39, %114 ], [ @.str.38, %113 ], [ @.str.37, %112 ], [ @.str.36, %107 ]
  %117 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.40.sink)
  %118 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.42)
  %119 = getelementptr inbounds i8, ptr %0, i64 24
  %120 = load i64, ptr %119, align 8, !tbaa !10
  %121 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43, ptr noundef nonnull @.str.44, i64 noundef %120)
  %122 = getelementptr inbounds i8, ptr %0, i64 32
  %123 = load i64, ptr %122, align 8, !tbaa !10
  %124 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45, ptr noundef nonnull @.str.46, i64 noundef %123)
  %125 = getelementptr inbounds i8, ptr %0, i64 40
  %126 = load i64, ptr %125, align 8, !tbaa !10
  %127 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45, ptr noundef nonnull @.str.47, i64 noundef %126)
  %128 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48, ptr noundef nonnull @.str.49)
  %129 = getelementptr inbounds i8, ptr %0, i64 52
  %130 = load i16, ptr %129, align 2, !tbaa !8
  %131 = zext i16 %130 to i32
  %132 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, ptr noundef nonnull @.str.51, i32 noundef %131)
  %133 = getelementptr inbounds i8, ptr %0, i64 54
  %134 = load i16, ptr %133, align 2, !tbaa !8
  %135 = zext i16 %134 to i32
  %136 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, ptr noundef nonnull @.str.52, i32 noundef %135)
  %137 = getelementptr inbounds i8, ptr %0, i64 56
  %138 = load i16, ptr %137, align 2, !tbaa !8
  %139 = zext i16 %138 to i32
  %140 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, ptr noundef nonnull @.str.54, i32 noundef %139)
  %141 = getelementptr inbounds i8, ptr %0, i64 58
  %142 = load i16, ptr %141, align 2, !tbaa !8
  %143 = zext i16 %142 to i32
  %144 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, ptr noundef nonnull @.str.55, i32 noundef %143)
  %145 = getelementptr inbounds i8, ptr %0, i64 60
  %146 = load i16, ptr %145, align 2, !tbaa !8
  %147 = zext i16 %146 to i32
  %148 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, ptr noundef nonnull @.str.56, i32 noundef %147)
  %149 = getelementptr inbounds i8, ptr %0, i64 62
  %150 = load i16, ptr %149, align 2, !tbaa !8
  %151 = zext i16 %150 to i32
  %152 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, ptr noundef nonnull @.str.57, i32 noundef %151)
  ret void
}

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

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 = { 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 = { inlinehint 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" }

!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 = !{!9, !9, i64 0}
!9 = !{!"short", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !6, i64 0}


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass