; LLVM IR from facebook/redex :: tools/redexdump/DumpTables.ll (Z18dump_methodhandlesP10ddump_datab)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.ddump_data = type { i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.dex_header = type { [8 x i8], i32, [20 x i8], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.dex_map_list = type { i32, [0 x %struct.dex_map_item] }
%struct.dex_map_item = type { i16, i16, i32, i32 }
%struct.dex_methodhandle_id = type { i16, i16, i16, i16 }

@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [40 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 @__gxx_personality_v0(...)

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

declare void @_Z6redumpPKcz(ptr noundef, ...) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18dump_methodhandlesP10ddump_datab(ptr noundef %0, i1 noundef zeroext %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %15 = zext i1 %1 to i8
  store i8 %15, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ddump_data, ptr %16, i32 0, i32 2
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ddump_data, ptr %19, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = getelementptr inbounds %struct.dex_header, ptr %21, i32 0, i32 8
  %23 = load i32, ptr %22, align 1, !tbaa !15
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds i8, ptr %18, i64 %24
  store ptr %25, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %26, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !18
  br label %27

27:                                               ; preds = %58, %2
  %28 = load i32, ptr %9, align 4, !tbaa !18
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.dex_map_list, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 1, !tbaa !18
  %32 = icmp ult i32 %28, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %61

34:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.dex_map_list, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %9, align 4, !tbaa !18
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds [0 x %struct.dex_map_item], ptr %36, i64 0, i64 %38
  store ptr %39, ptr %10, align 8, !tbaa !5
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.dex_map_item, ptr %40, i32 0, i32 0
  %42 = load i16, ptr %41, align 1, !tbaa !19
  %43 = zext i16 %42 to i32
  %44 = icmp eq i32 %43, 8
  br i1 %44, label %45, label %57

45:                                               ; preds = %34
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.dex_map_item, ptr %46, i32 0, i32 2
  %48 = load i32, ptr %47, align 1, !tbaa !22
  store i32 %48, ptr %8, align 4, !tbaa !18
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ddump_data, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.dex_map_item, ptr %52, i32 0, i32 3
  %54 = load i32, ptr %53, align 1, !tbaa !23
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %51, i64 %55
  store ptr %56, ptr %7, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %45, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %9, align 4, !tbaa !18
  %60 = add i32 %59, 1
  store i32 %60, ptr %9, align 4, !tbaa !18
  br label %27, !llvm.loop !24

61:                                               ; preds = %33
  %62 = load i8, ptr %4, align 1, !tbaa !9, !range !26, !noundef !27
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %97

64:                                               ; preds = %61
  %65 = load i32, ptr %8, align 4, !tbaa !18
  call void (ptr, ...) @_Z6redumpPKcz(ptr noundef @.str.21, i32 noundef %65)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !18
  br label %66

66:                                               ; preds = %89, %64
  %67 = load i32, ptr %11, align 4, !tbaa !18
  %68 = load i32, ptr %8, align 4, !tbaa !18
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %96

71:                                               ; preds = %66
  %72 = load i32, ptr %11, align 4, !tbaa !18
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load i32, ptr %11, align 4, !tbaa !18
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %struct.dex_methodhandle_id, ptr %73, i64 %75
  %77 = getelementptr inbounds %struct.dex_methodhandle_id, ptr %76, i32 0, i32 2
  %78 = load i16, ptr %77, align 1, !tbaa !28
  %79 = zext i16 %78 to i32
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !18
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.dex_methodhandle_id, ptr %80, i64 %82
  %84 = getelementptr inbounds %struct.dex_methodhandle_id, ptr %83, i32 0, i32 0
  %85 = load i16, ptr %84, align 1, !tbaa !30
  %86 = zext i16 %85 to i32
  call void @_Z25format_method_handle_typeB5cxx1116MethodHandleType(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, i32 noundef %86)
  %87 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  invoke void (ptr, ...) @_Z6redumpPKcz(ptr noundef @.str.22, i32 noundef %72, i32 noundef %79, ptr noundef %87)
          to label %88 unwind label %92

88:                                               ; preds = %71
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %11, align 4, !tbaa !18
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %11, align 4, !tbaa !18
  br label %66, !llvm.loop !31

92:                                               ; preds = %71
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %13, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %98

96:                                               ; preds = %70
  br label %97

97:                                               ; preds = %96, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

98:                                               ; preds = %92
  %99 = load ptr, ptr %13, align 8
  %100 = load i32, ptr %14, align 4
  %101 = insertvalue { ptr, i32 } poison, ptr %99, 0
  %102 = insertvalue { ptr, i32 } %101, i32 %100, 1
  resume { ptr, i32 } %102
}

declare void @_Z25format_method_handle_typeB5cxx1116MethodHandleType(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #1

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 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 = { 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTS10ddump_data", !13, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 32}
!15 = !{!16, !17, i64 52}
!16 = !{!"_ZTS10dex_header", !7, i64 0, !17, i64 8, !7, i64 12, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60, !17, i64 64, !17, i64 68, !17, i64 72, !17, i64 76, !17, i64 80, !17, i64 84, !17, i64 88, !17, i64 92, !17, i64 96, !17, i64 100, !17, i64 104, !17, i64 108}
!17 = !{!"int", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTS12dex_map_item", !21, i64 0, !21, i64 2, !17, i64 4, !17, i64 8}
!21 = !{!"short", !7, i64 0}
!22 = !{!20, !17, i64 4}
!23 = !{!20, !17, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!29, !21, i64 4}
!29 = !{!"_ZTS19dex_methodhandle_id", !21, i64 0, !21, i64 2, !21, i64 4, !21, i64 6}
!30 = !{!29, !21, i64 0}
!31 = distinct !{!31, !25}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.dex_map_item = type { i16, i16, i32, i32 }
%struct.dex_methodhandle_id = type { i16, i16, i16, i16 }

@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_Z6redumpPKcz(ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18dump_methodhandlesP10ddump_datab(ptr nocapture noundef readonly %0, i1 noundef zeroext %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  %7 = load ptr, ptr %6, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %7, i64 52
  %9 = load i32, ptr %8, align 1, !tbaa !12
  %10 = zext i32 %9 to i64
  %11 = getelementptr inbounds i8, ptr %5, i64 %10
  %12 = load i32, ptr %11, align 1, !tbaa !15
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %13 = getelementptr inbounds i8, ptr %11, i64 4
  %wide.trip.count = zext i32 %12 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %14 = icmp eq i32 %12, 1
  br i1 %14, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %25

._crit_edge.unr-lcssa:                            ; preds = %47, %.lr.ph
  %.124.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %.124.1, %47 ]
  %.1.lcssa.ph = phi ptr [ poison, %.lr.ph ], [ %.1.1, %47 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %47 ]
  %.029.unr = phi ptr [ null, %.lr.ph ], [ %.1.1, %47 ]
  %.02328.unr = phi i32 [ 0, %.lr.ph ], [ %.124.1, %47 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa
  %15 = getelementptr inbounds [0 x %struct.dex_map_item], ptr %13, i64 0, i64 %indvars.iv.unr
  %16 = load i16, ptr %15, align 1, !tbaa !16
  %17 = icmp eq i16 %16, 8
  br i1 %17, label %18, label %._crit_edge

18:                                               ; preds = %.epil.preheader
  %19 = getelementptr inbounds i8, ptr %15, i64 4
  %20 = load i32, ptr %19, align 1, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %15, i64 8
  %22 = load i32, ptr %21, align 1, !tbaa !20
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds i8, ptr %5, i64 %23
  br label %._crit_edge

._crit_edge:                                      ; preds = %.epil.preheader, %18, %._crit_edge.unr-lcssa
  %.124.lcssa = phi i32 [ %.124.lcssa.ph, %._crit_edge.unr-lcssa ], [ %20, %18 ], [ %.02328.unr, %.epil.preheader ]
  %.1.lcssa = phi ptr [ %.1.lcssa.ph, %._crit_edge.unr-lcssa ], [ %24, %18 ], [ %.029.unr, %.epil.preheader ]
  br i1 %1, label %48, label %.loopexit

._crit_edge.thread:                               ; preds = %2
  br i1 %1, label %.thread, label %.loopexit

.thread:                                          ; preds = %._crit_edge.thread
  tail call void (ptr, ...) @_Z6redumpPKcz(ptr noundef nonnull @.str.21, i32 noundef 0)
  br label %.loopexit

25:                                               ; preds = %47, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %47 ]
  %.029 = phi ptr [ null, %.lr.ph.new ], [ %.1.1, %47 ]
  %.02328 = phi i32 [ 0, %.lr.ph.new ], [ %.124.1, %47 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %47 ]
  %26 = getelementptr inbounds [0 x %struct.dex_map_item], ptr %13, i64 0, i64 %indvars.iv
  %27 = load i16, ptr %26, align 1, !tbaa !16
  %28 = icmp eq i16 %27, 8
  br i1 %28, label %29, label %36

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %26, i64 4
  %31 = load i32, ptr %30, align 1, !tbaa !19
  %32 = getelementptr inbounds i8, ptr %26, i64 8
  %33 = load i32, ptr %32, align 1, !tbaa !20
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr %5, i64 %34
  br label %36

36:                                               ; preds = %29, %25
  %.124 = phi i32 [ %31, %29 ], [ %.02328, %25 ]
  %.1 = phi ptr [ %35, %29 ], [ %.029, %25 ]
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %37 = getelementptr inbounds [0 x %struct.dex_map_item], ptr %13, i64 0, i64 %indvars.iv.next
  %38 = load i16, ptr %37, align 1, !tbaa !16
  %39 = icmp eq i16 %38, 8
  br i1 %39, label %40, label %47

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %37, i64 4
  %42 = load i32, ptr %41, align 1, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %37, i64 8
  %44 = load i32, ptr %43, align 1, !tbaa !20
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %5, i64 %45
  br label %47

47:                                               ; preds = %40, %36
  %.124.1 = phi i32 [ %42, %40 ], [ %.124, %36 ]
  %.1.1 = phi ptr [ %46, %40 ], [ %.1, %36 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %25, !llvm.loop !21

48:                                               ; preds = %._crit_edge
  tail call void (ptr, ...) @_Z6redumpPKcz(ptr noundef nonnull @.str.21, i32 noundef %.124.lcssa)
  %49 = icmp sgt i32 %.124.lcssa, 0
  br i1 %49, label %.lr.ph33.preheader, label %.loopexit

.lr.ph33.preheader:                               ; preds = %48
  %wide.trip.count38 = zext nneg i32 %.124.lcssa to i64
  br label %.lr.ph33

.lr.ph33:                                         ; preds = %.lr.ph33.preheader, %58
  %indvars.iv35 = phi i64 [ 0, %.lr.ph33.preheader ], [ %indvars.iv.next36, %58 ]
  %50 = getelementptr inbounds %struct.dex_methodhandle_id, ptr %.1.lcssa, i64 %indvars.iv35
  %51 = getelementptr inbounds i8, ptr %50, i64 4
  %52 = load i16, ptr %51, align 1, !tbaa !23
  %53 = zext i16 %52 to i32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  %54 = load i16, ptr %50, align 1, !tbaa !25
  %55 = zext i16 %54 to i32
  call void @_Z25format_method_handle_typeB5cxx1116MethodHandleType(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %55)
  %56 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  %57 = trunc nuw nsw i64 %indvars.iv35 to i32
  invoke void (ptr, ...) @_Z6redumpPKcz(ptr noundef nonnull @.str.22, i32 noundef %57, i32 noundef %53, ptr noundef %56)
          to label %58 unwind label %59

58:                                               ; preds = %.lr.ph33
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %exitcond39.not = icmp eq i64 %indvars.iv.next36, %wide.trip.count38
  br i1 %exitcond39.not, label %.loopexit, label %.lr.ph33, !llvm.loop !26

59:                                               ; preds = %.lr.ph33
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  resume { ptr, i32 } %60

.loopexit:                                        ; preds = %58, %.thread, %._crit_edge.thread, %48, %._crit_edge
  ret void
}

declare void @_Z25format_method_handle_typeB5cxx1116MethodHandleType(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 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 = { 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 #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, !10, i64 16}
!6 = !{!"_ZTS10ddump_data", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 32}
!12 = !{!13, !14, i64 52}
!13 = !{!"_ZTS10dex_header", !8, i64 0, !14, i64 8, !8, i64 12, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108}
!14 = !{!"int", !8, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTS12dex_map_item", !18, i64 0, !18, i64 2, !14, i64 4, !14, i64 8}
!18 = !{!"short", !8, i64 0}
!19 = !{!17, !14, i64 4}
!20 = !{!17, !14, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !18, i64 4}
!24 = !{!"_ZTS19dex_methodhandle_id", !18, i64 0, !18, i64 2, !18, i64 4, !18, i64 6}
!25 = !{!24, !18, i64 0}
!26 = distinct !{!26, !22}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass