; LLVM IR from JessonYue/LeetCodeLearning :: BaseDataStructure/elf (soparse)

; 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.DataOffest = type { i32, i16, i32, i16, i32, i32, i32, i32, i32, i32, i32, i32, i16, i32, i32 }
%struct.Elf32_Ehdr = type { [16 x i8], i16, i16, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16 }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @parseSoHeader(ptr dead_on_unwind noalias writable sret(%struct.DataOffest) align 4 %0, ptr noundef %1, ptr noundef byval(%struct.DataOffest) align 8 %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca %struct.Elf32_Ehdr, align 4
  %6 = alloca i32, align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 52, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = call i32 @fseek(ptr noundef %7, i64 noundef 0, i32 noundef 0)
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = call i64 @fread(ptr noundef %5, i64 noundef 1, i64 noundef 52, ptr noundef %9)
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %24, %3
  %14 = load i32, ptr %6, align 4, !tbaa !9
  %15 = icmp slt i32 %14, 16
  br i1 %15, label %16, label %27

16:                                               ; preds = %13
  %17 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 0
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [16 x i8], ptr %17, i64 0, i64 %19
  %21 = load i8, ptr %20, align 1, !tbaa !11
  %22 = zext i8 %21 to i32
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %22)
  br label %24

24:                                               ; preds = %16
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %6, align 4, !tbaa !9
  br label %13, !llvm.loop !12

27:                                               ; preds = %13
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %29 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 1
  %30 = load i16, ptr %29, align 4, !tbaa !14
  %31 = zext i16 %30 to i32
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %31)
  %33 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 1
  %34 = load i16, ptr %33, align 4, !tbaa !14
  %35 = zext i16 %34 to i32
  switch i32 %35, label %50 [
    i32 0, label %36
    i32 1, label %38
    i32 2, label %40
    i32 3, label %42
    i32 4, label %44
    i32 65280, label %46
    i32 65535, label %48
  ]

36:                                               ; preds = %27
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %52

38:                                               ; preds = %27
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %52

40:                                               ; preds = %27
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %52

42:                                               ; preds = %27
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %52

44:                                               ; preds = %27
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %52

46:                                               ; preds = %27
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %52

48:                                               ; preds = %27
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %52

50:                                               ; preds = %27
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %52

52:                                               ; preds = %50, %48, %46, %44, %42, %40, %38, %36
  %53 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 2
  %54 = load i16, ptr %53, align 2, !tbaa !17
  %55 = zext i16 %54 to i32
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %55)
  %57 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 2
  %58 = load i16, ptr %57, align 2, !tbaa !17
  %59 = zext i16 %58 to i32
  %60 = icmp eq i32 %59, 40
  br i1 %60, label %61, label %63

61:                                               ; preds = %52
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %65

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

65:                                               ; preds = %63, %61
  %66 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 3
  %67 = load i32, ptr %66, align 4, !tbaa !18
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %67)
  %69 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 4
  %70 = load i32, ptr %69, align 4, !tbaa !19
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %70)
  %72 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 5
  %73 = load i32, ptr %72, align 4, !tbaa !20
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %73)
  %75 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 5
  %76 = load i32, ptr %75, align 4, !tbaa !20
  %77 = getelementptr inbounds %struct.DataOffest, ptr %2, i32 0, i32 0
  store i32 %76, ptr %77, align 8, !tbaa !21
  %78 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 6
  %79 = load i32, ptr %78, align 4, !tbaa !23
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %79)
  %81 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 6
  %82 = load i32, ptr %81, align 4, !tbaa !23
  %83 = getelementptr inbounds %struct.DataOffest, ptr %2, i32 0, i32 2
  store i32 %82, ptr %83, align 8, !tbaa !24
  %84 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 7
  %85 = load i32, ptr %84, align 4, !tbaa !25
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %85)
  %87 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 8
  %88 = load i16, ptr %87, align 4, !tbaa !26
  %89 = zext i16 %88 to i32
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %89)
  %91 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 9
  %92 = load i16, ptr %91, align 2, !tbaa !27
  %93 = zext i16 %92 to i32
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %93)
  %95 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 10
  %96 = load i16, ptr %95, align 4, !tbaa !28
  %97 = zext i16 %96 to i32
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %97)
  %99 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 10
  %100 = load i16, ptr %99, align 4, !tbaa !28
  %101 = getelementptr inbounds %struct.DataOffest, ptr %2, i32 0, i32 1
  store i16 %100, ptr %101, align 4, !tbaa !29
  %102 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 11
  %103 = load i16, ptr %102, align 2, !tbaa !30
  %104 = zext i16 %103 to i32
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %104)
  %106 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 12
  %107 = load i16, ptr %106, align 4, !tbaa !31
  %108 = zext i16 %107 to i32
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %108)
  %110 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 12
  %111 = load i16, ptr %110, align 4, !tbaa !31
  %112 = getelementptr inbounds %struct.DataOffest, ptr %2, i32 0, i32 3
  store i16 %111, ptr %112, align 4, !tbaa !32
  %113 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 13
  %114 = load i16, ptr %113, align 2, !tbaa !33
  %115 = zext i16 %114 to i32
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i32 noundef %115)
  %117 = getelementptr inbounds %struct.Elf32_Ehdr, ptr %5, i32 0, i32 13
  %118 = load i16, ptr %117, align 2, !tbaa !33
  %119 = getelementptr inbounds %struct.DataOffest, ptr %2, i32 0, i32 12
  store i16 %118, ptr %119, align 8, !tbaa !34
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 8 %2, i64 60, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 52, ptr %5) #4
  ret void
}

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

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #2

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !16, i64 16}
!15 = !{!"", !7, i64 0, !16, i64 16, !16, i64 18, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !16, i64 40, !16, i64 42, !16, i64 44, !16, i64 46, !16, i64 48, !16, i64 50}
!16 = !{!"short", !7, i64 0}
!17 = !{!15, !16, i64 18}
!18 = !{!15, !10, i64 20}
!19 = !{!15, !10, i64 24}
!20 = !{!15, !10, i64 28}
!21 = !{!22, !10, i64 0}
!22 = !{!"DataOffest", !10, i64 0, !16, i64 4, !10, i64 8, !16, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !16, i64 48, !10, i64 52, !10, i64 56}
!23 = !{!15, !10, i64 32}
!24 = !{!22, !10, i64 8}
!25 = !{!15, !10, i64 36}
!26 = !{!15, !16, i64 40}
!27 = !{!15, !16, i64 42}
!28 = !{!15, !16, i64 44}
!29 = !{!22, !16, i64 4}
!30 = !{!15, !16, i64 46}
!31 = !{!15, !16, i64 48}
!32 = !{!22, !16, i64 12}
!33 = !{!15, !16, i64 50}
!34 = !{!22, !16, i64 48}
!35 = !{i64 0, i64 4, !9, i64 4, i64 2, !36, i64 8, i64 4, !9, i64 12, i64 2, !36, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 4, !9, i64 36, i64 4, !9, i64 40, i64 4, !9, i64 44, i64 4, !9, i64 48, i64 2, !36, i64 52, i64 4, !9, i64 56, i64 4, !9}
!36 = !{!16, !16, 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"

%struct.DataOffest = type { i32, i16, i32, i16, i32, i32, i32, i32, i32, i32, i32, i32, i16, i32, i32 }
%struct.Elf32_Ehdr = type { [16 x i8], i16, i16, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16 }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local void @parseSoHeader(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.DataOffest) align 4 %0, ptr nocapture noundef %1, ptr nocapture noundef byval(%struct.DataOffest) align 8 %2) local_unnamed_addr #0 {
  %4 = alloca %struct.Elf32_Ehdr, align 4
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %4) #4
  %5 = tail call i32 @fseek(ptr noundef %1, i64 noundef 0, i32 noundef 0)
  %6 = call i64 @fread(ptr noundef nonnull %4, i64 noundef 1, i64 noundef 52, ptr noundef %1)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %9 = load i8, ptr %4, align 4, !tbaa !5
  %10 = zext i8 %9 to i32
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %10)
  %12 = getelementptr inbounds i8, ptr %4, i64 1
  %13 = load i8, ptr %12, align 1, !tbaa !5
  %14 = zext i8 %13 to i32
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %14)
  %16 = getelementptr inbounds i8, ptr %4, i64 2
  %17 = load i8, ptr %16, align 2, !tbaa !5
  %18 = zext i8 %17 to i32
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %18)
  %20 = getelementptr inbounds i8, ptr %4, i64 3
  %21 = load i8, ptr %20, align 1, !tbaa !5
  %22 = zext i8 %21 to i32
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %22)
  %24 = getelementptr inbounds i8, ptr %4, i64 4
  %25 = load i8, ptr %24, align 4, !tbaa !5
  %26 = zext i8 %25 to i32
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %26)
  %28 = getelementptr inbounds i8, ptr %4, i64 5
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %30 = zext i8 %29 to i32
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %30)
  %32 = getelementptr inbounds i8, ptr %4, i64 6
  %33 = load i8, ptr %32, align 2, !tbaa !5
  %34 = zext i8 %33 to i32
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %34)
  %36 = getelementptr inbounds i8, ptr %4, i64 7
  %37 = load i8, ptr %36, align 1, !tbaa !5
  %38 = zext i8 %37 to i32
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %38)
  %40 = getelementptr inbounds i8, ptr %4, i64 8
  %41 = load i8, ptr %40, align 4, !tbaa !5
  %42 = zext i8 %41 to i32
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %42)
  %44 = getelementptr inbounds i8, ptr %4, i64 9
  %45 = load i8, ptr %44, align 1, !tbaa !5
  %46 = zext i8 %45 to i32
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %46)
  %48 = getelementptr inbounds i8, ptr %4, i64 10
  %49 = load i8, ptr %48, align 2, !tbaa !5
  %50 = zext i8 %49 to i32
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %50)
  %52 = getelementptr inbounds i8, ptr %4, i64 11
  %53 = load i8, ptr %52, align 1, !tbaa !5
  %54 = zext i8 %53 to i32
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %54)
  %56 = getelementptr inbounds i8, ptr %4, i64 12
  %57 = load i8, ptr %56, align 4, !tbaa !5
  %58 = zext i8 %57 to i32
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %58)
  %60 = getelementptr inbounds i8, ptr %4, i64 13
  %61 = load i8, ptr %60, align 1, !tbaa !5
  %62 = zext i8 %61 to i32
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %62)
  %64 = getelementptr inbounds i8, ptr %4, i64 14
  %65 = load i8, ptr %64, align 2, !tbaa !5
  %66 = zext i8 %65 to i32
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %66)
  %68 = getelementptr inbounds i8, ptr %4, i64 15
  %69 = load i8, ptr %68, align 1, !tbaa !5
  %70 = zext i8 %69 to i32
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %70)
  %72 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %73 = getelementptr inbounds i8, ptr %4, i64 16
  %74 = load i16, ptr %73, align 4, !tbaa !8
  %75 = zext i16 %74 to i32
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %75)
  switch i16 %74, label %83 [
    i16 0, label %84
    i16 1, label %77
    i16 2, label %78
    i16 3, label %79
    i16 4, label %80
    i16 -256, label %81
    i16 -1, label %82
  ]

77:                                               ; preds = %3
  br label %84

78:                                               ; preds = %3
  br label %84

79:                                               ; preds = %3
  br label %84

80:                                               ; preds = %3
  br label %84

81:                                               ; preds = %3
  br label %84

82:                                               ; preds = %3
  br label %84

83:                                               ; preds = %3
  br label %84

84:                                               ; preds = %3, %83, %82, %81, %80, %79, %78, %77
  %.str.3.sink = phi ptr [ @.str.3, %83 ], [ @.str.11, %82 ], [ @.str.10, %81 ], [ @.str.9, %80 ], [ @.str.8, %79 ], [ @.str.7, %78 ], [ @.str.6, %77 ], [ @.str.5, %3 ]
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink)
  %86 = getelementptr inbounds i8, ptr %4, i64 18
  %87 = load i16, ptr %86, align 2, !tbaa !12
  %88 = zext i16 %87 to i32
  %89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %88)
  %90 = icmp eq i16 %87, 40
  %.str.13..str.3 = select i1 %90, ptr @.str.13, ptr @.str.3
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.13..str.3)
  %92 = getelementptr inbounds i8, ptr %4, i64 20
  %93 = load i32, ptr %92, align 4, !tbaa !13
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %93)
  %95 = getelementptr inbounds i8, ptr %4, i64 24
  %96 = load i32, ptr %95, align 4, !tbaa !14
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %96)
  %98 = getelementptr inbounds i8, ptr %4, i64 28
  %99 = load i32, ptr %98, align 4, !tbaa !15
  %100 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %99)
  store i32 %99, ptr %2, align 8, !tbaa !16
  %101 = getelementptr inbounds i8, ptr %4, i64 32
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %102)
  %104 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 %102, ptr %104, align 8, !tbaa !19
  %105 = getelementptr inbounds i8, ptr %4, i64 36
  %106 = load i32, ptr %105, align 4, !tbaa !20
  %107 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %106)
  %108 = getelementptr inbounds i8, ptr %4, i64 40
  %109 = load i16, ptr %108, align 4, !tbaa !21
  %110 = zext i16 %109 to i32
  %111 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %110)
  %112 = getelementptr inbounds i8, ptr %4, i64 42
  %113 = load i16, ptr %112, align 2, !tbaa !22
  %114 = zext i16 %113 to i32
  %115 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %114)
  %116 = getelementptr inbounds i8, ptr %4, i64 44
  %117 = load i16, ptr %116, align 4, !tbaa !23
  %118 = zext i16 %117 to i32
  %119 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %118)
  %120 = getelementptr inbounds i8, ptr %2, i64 4
  store i16 %117, ptr %120, align 4, !tbaa !24
  %121 = getelementptr inbounds i8, ptr %4, i64 46
  %122 = load i16, ptr %121, align 2, !tbaa !25
  %123 = zext i16 %122 to i32
  %124 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %123)
  %125 = getelementptr inbounds i8, ptr %4, i64 48
  %126 = load i16, ptr %125, align 4, !tbaa !26
  %127 = zext i16 %126 to i32
  %128 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %127)
  %129 = getelementptr inbounds i8, ptr %2, i64 12
  store i16 %126, ptr %129, align 4, !tbaa !27
  %130 = getelementptr inbounds i8, ptr %4, i64 50
  %131 = load i16, ptr %130, align 2, !tbaa !28
  %132 = zext i16 %131 to i32
  %133 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, i32 noundef %132)
  %134 = getelementptr inbounds i8, ptr %2, i64 48
  store i16 %131, ptr %134, align 8, !tbaa !29
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(60) %0, ptr noundef nonnull align 8 dereferenceable(60) %2, i64 60, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %4) #4
  ret void
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 16}
!9 = !{!"", !6, i64 0, !10, i64 16, !10, i64 18, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !10, i64 40, !10, i64 42, !10, i64 44, !10, i64 46, !10, i64 48, !10, i64 50}
!10 = !{!"short", !6, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = !{!9, !10, i64 18}
!13 = !{!9, !11, i64 20}
!14 = !{!9, !11, i64 24}
!15 = !{!9, !11, i64 28}
!16 = !{!17, !11, i64 0}
!17 = !{!"DataOffest", !11, i64 0, !10, i64 4, !11, i64 8, !10, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !10, i64 48, !11, i64 52, !11, i64 56}
!18 = !{!9, !11, i64 32}
!19 = !{!17, !11, i64 8}
!20 = !{!9, !11, i64 36}
!21 = !{!9, !10, i64 40}
!22 = !{!9, !10, i64 42}
!23 = !{!9, !10, i64 44}
!24 = !{!17, !10, i64 4}
!25 = !{!9, !10, i64 46}
!26 = !{!9, !10, i64 48}
!27 = !{!17, !10, i64 12}
!28 = !{!9, !10, i64 50}
!29 = !{!17, !10, i64 48}
!30 = !{i64 0, i64 4, !31, i64 4, i64 2, !32, i64 8, i64 4, !31, i64 12, i64 2, !32, i64 16, i64 4, !31, i64 20, i64 4, !31, i64 24, i64 4, !31, i64 28, i64 4, !31, i64 32, i64 4, !31, i64 36, i64 4, !31, i64 40, i64 4, !31, i64 44, i64 4, !31, i64 48, i64 2, !32, i64 52, i64 4, !31, i64 56, i64 4, !31}
!31 = !{!11, !11, i64 0}
!32 = !{!10, !10, i64 0}


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