; LLVM IR from JessonYue/LeetCodeLearning :: Array/huangxinyu/homework/readelf.ll (Z12printElfEhdrP10Elf64_Ehdr)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.Elf64_Ehdr = type { [16 x i8], i16, i16, i32, i64, i64, i64, i32, i16, i16, i16, i16, i16, i16 }

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZL8ei_class = external hidden global [3 x ptr], align 16
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZL7ei_data = external hidden global [3 x ptr], align 16
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@_ZL9e_version = external hidden global [2 x ptr], align 16
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12printElfEhdrP10Elf64_Ehdr(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %5 = load ptr, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %5, i32 0, i32 0
  %7 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
  %8 = load i8, ptr %7, align 8, !tbaa !9
  %9 = zext i8 %8 to i32
  %10 = icmp eq i32 %9, 127
  br i1 %10, label %11, label %145

11:                                               ; preds = %1
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %12, i32 0, i32 0
  %14 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 1
  %15 = load i8, ptr %14, align 1, !tbaa !9
  %16 = zext i8 %15 to i32
  %17 = icmp eq i32 %16, 69
  br i1 %17, label %18, label %145

18:                                               ; preds = %11
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds [16 x i8], ptr %20, i64 0, i64 2
  %22 = load i8, ptr %21, align 2, !tbaa !9
  %23 = zext i8 %22 to i32
  %24 = icmp eq i32 %23, 76
  br i1 %24, label %25, label %145

25:                                               ; preds = %18
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds [16 x i8], ptr %27, i64 0, i64 3
  %29 = load i8, ptr %28, align 1, !tbaa !9
  %30 = zext i8 %29 to i32
  %31 = icmp eq i32 %30, 70
  br i1 %31, label %32, label %145

32:                                               ; preds = %25
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 4
  %36 = load i8, ptr %35, align 4, !tbaa !9
  %37 = zext i8 %36 to i64
  %38 = getelementptr inbounds [3 x ptr], ptr @_ZL8ei_class, i64 0, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %39)
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds [16 x i8], ptr %42, i64 0, i64 5
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = zext i8 %44 to i64
  %46 = getelementptr inbounds [3 x ptr], ptr @_ZL7ei_data, i64 0, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %47)
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds [16 x i8], ptr %50, i64 0, i64 6
  %52 = load i8, ptr %51, align 2, !tbaa !9
  %53 = zext i8 %52 to i32
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %53)
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds [16 x i8], ptr %56, i64 0, i64 8
  %58 = load i8, ptr %57, align 8, !tbaa !9
  %59 = zext i8 %58 to i32
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %59)
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds [16 x i8], ptr %62, i64 0, i64 8
  %64 = load i8, ptr %63, align 8, !tbaa !9
  %65 = zext i8 %64 to i32
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %65)
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds [16 x i8], ptr %68, i64 0, i64 9
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %71 = zext i8 %70 to i32
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %71)
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds [16 x i8], ptr %74, i64 0, i64 16
  %76 = load i8, ptr %75, align 8, !tbaa !9
  %77 = zext i8 %76 to i32
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %77)
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %79, i32 0, i32 1
  %81 = load i16, ptr %80, align 8, !tbaa !10
  %82 = zext i16 %81 to i32
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %82)
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %84, i32 0, i32 2
  %86 = load i16, ptr %85, align 2, !tbaa !15
  %87 = zext i16 %86 to i32
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %87)
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %89, i32 0, i32 3
  %91 = load i32, ptr %90, align 4, !tbaa !16
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds [2 x ptr], ptr @_ZL9e_version, i64 0, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %94)
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %96, i32 0, i32 4
  %98 = load i64, ptr %97, align 8, !tbaa !17
  %99 = trunc i64 %98 to i32
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %99)
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %101, i32 0, i32 8
  %103 = load i16, ptr %102, align 4, !tbaa !18
  %104 = zext i16 %103 to i32
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %104)
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %106, i32 0, i32 5
  %108 = load i64, ptr %107, align 8, !tbaa !19
  %109 = trunc i64 %108 to i32
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %109)
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %111, i32 0, i32 6
  %113 = load i64, ptr %112, align 8, !tbaa !20
  %114 = trunc i64 %113 to i32
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %114)
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %116, i32 0, i32 7
  %118 = load i32, ptr %117, align 8, !tbaa !21
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %118)
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %120, i32 0, i32 9
  %122 = load i16, ptr %121, align 2, !tbaa !22
  %123 = zext i16 %122 to i32
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %123)
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %125, i32 0, i32 10
  %127 = load i16, ptr %126, align 8, !tbaa !23
  %128 = zext i16 %127 to i32
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %128)
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %130, i32 0, i32 11
  %132 = load i16, ptr %131, align 2, !tbaa !24
  %133 = zext i16 %132 to i32
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %133)
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %135, i32 0, i32 12
  %137 = load i16, ptr %136, align 4, !tbaa !25
  %138 = zext i16 %137 to i32
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %138)
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.Elf64_Ehdr, ptr %140, i32 0, i32 13
  %142 = load i16, ptr %141, align 2, !tbaa !26
  %143 = zext i16 %142 to i32
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %143)
  br label %148

145:                                              ; preds = %25, %18, %11, %1
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.21)
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 -1, ptr %2, align 4
  br label %149

148:                                              ; preds = %32
  store i32 0, ptr %2, align 4
  br label %149

149:                                              ; preds = %148, %145
  %150 = load i32, ptr %2, align 4
  ret i32 %150
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

attributes #0 = { 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 #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 = { 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" }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 16}
!11 = !{!"_ZTS10Elf64_Ehdr", !7, i64 0, !12, i64 16, !12, i64 18, !13, i64 20, !14, i64 24, !14, i64 32, !14, i64 40, !13, i64 48, !12, i64 52, !12, i64 54, !12, i64 56, !12, i64 58, !12, i64 60, !12, i64 62}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!11, !12, i64 18}
!16 = !{!11, !13, i64 20}
!17 = !{!11, !14, i64 24}
!18 = !{!11, !12, i64 52}
!19 = !{!11, !14, i64 32}
!20 = !{!11, !14, i64 40}
!21 = !{!11, !13, i64 48}
!22 = !{!11, !12, i64 54}
!23 = !{!11, !12, i64 56}
!24 = !{!11, !12, i64 58}
!25 = !{!11, !12, i64 60}
!26 = !{!11, !12, i64 62}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZL8ei_class = external hidden local_unnamed_addr global [3 x ptr], align 16
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZL7ei_data = external hidden local_unnamed_addr global [3 x ptr], align 16
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@_ZL9e_version = external hidden local_unnamed_addr global [2 x ptr], align 16
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -1, 1) i32 @_Z12printElfEhdrP10Elf64_Ehdr(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %3 = load i8, ptr %0, align 8, !tbaa !5
  %4 = icmp eq i8 %3, 127
  br i1 %4, label %5, label %101

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 1
  %7 = load i8, ptr %6, align 1, !tbaa !5
  %8 = icmp eq i8 %7, 69
  br i1 %8, label %9, label %101

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 2
  %11 = load i8, ptr %10, align 2, !tbaa !5
  %12 = icmp eq i8 %11, 76
  br i1 %12, label %13, label %101

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 3
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = icmp eq i8 %15, 70
  br i1 %16, label %17, label %101

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %0, i64 4
  %19 = load i8, ptr %18, align 4, !tbaa !5
  %20 = zext i8 %19 to i64
  %21 = getelementptr inbounds [3 x ptr], ptr @_ZL8ei_class, i64 0, i64 %20
  %22 = load ptr, ptr %21, align 8, !tbaa !8
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %22)
  %24 = getelementptr inbounds i8, ptr %0, i64 5
  %25 = load i8, ptr %24, align 1, !tbaa !5
  %26 = zext i8 %25 to i64
  %27 = getelementptr inbounds [3 x ptr], ptr @_ZL7ei_data, i64 0, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !8
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %28)
  %30 = getelementptr inbounds i8, ptr %0, i64 6
  %31 = load i8, ptr %30, align 2, !tbaa !5
  %32 = zext i8 %31 to i32
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %32)
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load i8, ptr %34, align 8, !tbaa !5
  %36 = zext i8 %35 to i32
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %36)
  %38 = load i8, ptr %34, align 8, !tbaa !5
  %39 = zext i8 %38 to i32
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %39)
  %41 = getelementptr inbounds i8, ptr %0, i64 9
  %42 = load i8, ptr %41, align 1, !tbaa !5
  %43 = zext i8 %42 to i32
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %43)
  %45 = getelementptr inbounds i8, ptr %0, i64 16
  %46 = load i8, ptr %45, align 8, !tbaa !5
  %47 = zext i8 %46 to i32
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %47)
  %49 = load i16, ptr %45, align 8, !tbaa !10
  %50 = zext i16 %49 to i32
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %50)
  %52 = getelementptr inbounds i8, ptr %0, i64 18
  %53 = load i16, ptr %52, align 2, !tbaa !15
  %54 = zext i16 %53 to i32
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %54)
  %56 = getelementptr inbounds i8, ptr %0, i64 20
  %57 = load i32, ptr %56, align 4, !tbaa !16
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [2 x ptr], ptr @_ZL9e_version, i64 0, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !8
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef %60)
  %62 = getelementptr inbounds i8, ptr %0, i64 24
  %63 = load i64, ptr %62, align 8, !tbaa !17
  %64 = trunc i64 %63 to i32
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %64)
  %66 = getelementptr inbounds i8, ptr %0, i64 52
  %67 = load i16, ptr %66, align 4, !tbaa !18
  %68 = zext i16 %67 to i32
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %68)
  %70 = getelementptr inbounds i8, ptr %0, i64 32
  %71 = load i64, ptr %70, align 8, !tbaa !19
  %72 = trunc i64 %71 to i32
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %72)
  %74 = getelementptr inbounds i8, ptr %0, i64 40
  %75 = load i64, ptr %74, align 8, !tbaa !20
  %76 = trunc i64 %75 to i32
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %76)
  %78 = getelementptr inbounds i8, ptr %0, i64 48
  %79 = load i32, ptr %78, align 8, !tbaa !21
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %79)
  %81 = getelementptr inbounds i8, ptr %0, i64 54
  %82 = load i16, ptr %81, align 2, !tbaa !22
  %83 = zext i16 %82 to i32
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %83)
  %85 = getelementptr inbounds i8, ptr %0, i64 56
  %86 = load i16, ptr %85, align 8, !tbaa !23
  %87 = zext i16 %86 to i32
  %88 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %87)
  %89 = getelementptr inbounds i8, ptr %0, i64 58
  %90 = load i16, ptr %89, align 2, !tbaa !24
  %91 = zext i16 %90 to i32
  %92 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %91)
  %93 = getelementptr inbounds i8, ptr %0, i64 60
  %94 = load i16, ptr %93, align 4, !tbaa !25
  %95 = zext i16 %94 to i32
  %96 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %95)
  %97 = getelementptr inbounds i8, ptr %0, i64 62
  %98 = load i16, ptr %97, align 2, !tbaa !26
  %99 = zext i16 %98 to i32
  %100 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %99)
  br label %104

101:                                              ; preds = %13, %9, %5, %1
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.21)
  %103 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %104

104:                                              ; preds = %17, %101
  %.0 = phi i32 [ 0, %17 ], [ -1, %101 ]
  ret i32 %.0
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

attributes #0 = { 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 #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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" }

!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++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !12, i64 16}
!11 = !{!"_ZTS10Elf64_Ehdr", !6, i64 0, !12, i64 16, !12, i64 18, !13, i64 20, !14, i64 24, !14, i64 32, !14, i64 40, !13, i64 48, !12, i64 52, !12, i64 54, !12, i64 56, !12, i64 58, !12, i64 60, !12, i64 62}
!12 = !{!"short", !6, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = !{!"long", !6, i64 0}
!15 = !{!11, !12, i64 18}
!16 = !{!11, !13, i64 20}
!17 = !{!11, !14, i64 24}
!18 = !{!11, !12, i64 52}
!19 = !{!11, !14, i64 32}
!20 = !{!11, !14, i64 40}
!21 = !{!11, !13, i64 48}
!22 = !{!11, !12, i64 54}
!23 = !{!11, !12, i64 56}
!24 = !{!11, !12, i64 58}
!25 = !{!11, !12, i64 60}
!26 = !{!11, !12, i64 62}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass