; LLVM IR from facebook/redex :: tools/redexdump/DumpTables.ll (Z14dump_callsitesP10ddump_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_callsite_id = type { i32 }

@.str.19 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [23 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 @_Z14dump_callsitesP10ddump_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 ptr, align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %16 = zext i1 %1 to i8
  store i8 %16, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ddump_data, ptr %17, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ddump_data, ptr %20, i32 0, i32 4
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  %23 = getelementptr inbounds %struct.dex_header, ptr %22, i32 0, i32 8
  %24 = load i32, ptr %23, align 1, !tbaa !15
  %25 = zext i32 %24 to i64
  %26 = getelementptr inbounds i8, ptr %19, i64 %25
  store ptr %26, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %27, 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 %28

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

34:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %62

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

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

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

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

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

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

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

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %101

72:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ddump_data, ptr %73, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load i32, ptr %11, align 4, !tbaa !18
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %struct.dex_callsite_id, ptr %76, i64 %78
  %80 = getelementptr inbounds %struct.dex_callsite_id, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 1, !tbaa !28
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds i8, ptr %75, i64 %82
  store ptr %83, ptr %12, align 8, !tbaa !5
  %84 = load i32, ptr %11, align 4, !tbaa !18
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i32, ptr %11, align 4, !tbaa !18
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %struct.dex_callsite_id, ptr %85, i64 %87
  %89 = getelementptr inbounds %struct.dex_callsite_id, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_Z15format_callsiteB5cxx11P10ddump_dataPPKh(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef %91, ptr noundef %12)
  %92 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  invoke void (ptr, ...) @_Z6redumpPKcz(ptr noundef @.str.20, i32 noundef %84, i32 noundef %90, ptr noundef %92)
          to label %93 unwind label %97

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

94:                                               ; preds = %93
  %95 = load i32, ptr %11, align 4, !tbaa !18
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %11, align 4, !tbaa !18
  br label %67, !llvm.loop !30

97:                                               ; preds = %72
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %14, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 %103

101:                                              ; preds = %71
  br label %102

102:                                              ; preds = %101, %62
  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

103:                                              ; preds = %97
  %104 = load ptr, ptr %14, align 8
  %105 = load i32, ptr %15, align 4
  %106 = insertvalue { ptr, i32 } poison, ptr %104, 0
  %107 = insertvalue { ptr, i32 } %106, i32 %105, 1
  resume { ptr, i32 } %107
}

declare void @_Z15format_callsiteB5cxx11P10ddump_dataPPKh(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr 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, !17, i64 0}
!29 = !{!"_ZTS15dex_callsite_id", !17, i64 0}
!30 = distinct !{!30, !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_callsite_id = type { i32 }

@.str.19 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [23 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 @_Z14dump_callsitesP10ddump_datab(ptr noundef %0, i1 noundef zeroext %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %8, i64 52
  %10 = load i32, ptr %9, align 1, !tbaa !12
  %11 = zext i32 %10 to i64
  %12 = getelementptr inbounds i8, ptr %6, i64 %11
  %13 = load i32, ptr %12, align 1, !tbaa !15
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %14 = getelementptr inbounds i8, ptr %12, i64 4
  %wide.trip.count = zext i32 %13 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %15 = icmp eq i32 %13, 1
  br i1 %15, 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 %26

._crit_edge.unr-lcssa:                            ; preds = %48, %.lr.ph
  %.126.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %.126.1, %48 ]
  %.1.lcssa.ph = phi ptr [ poison, %.lr.ph ], [ %.1.1, %48 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %48 ]
  %.031.unr = phi ptr [ null, %.lr.ph ], [ %.1.1, %48 ]
  %.02530.unr = phi i32 [ 0, %.lr.ph ], [ %.126.1, %48 ]
  %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
  %16 = getelementptr inbounds [0 x %struct.dex_map_item], ptr %14, i64 0, i64 %indvars.iv.unr
  %17 = load i16, ptr %16, align 1, !tbaa !16
  %18 = icmp eq i16 %17, 7
  br i1 %18, label %19, label %._crit_edge

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

._crit_edge:                                      ; preds = %.epil.preheader, %19, %._crit_edge.unr-lcssa
  %.126.lcssa = phi i32 [ %.126.lcssa.ph, %._crit_edge.unr-lcssa ], [ %21, %19 ], [ %.02530.unr, %.epil.preheader ]
  %.1.lcssa = phi ptr [ %.1.lcssa.ph, %._crit_edge.unr-lcssa ], [ %25, %19 ], [ %.031.unr, %.epil.preheader ]
  br i1 %1, label %49, 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.19, i32 noundef 0)
  br label %.loopexit

26:                                               ; preds = %48, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %48 ]
  %.031 = phi ptr [ null, %.lr.ph.new ], [ %.1.1, %48 ]
  %.02530 = phi i32 [ 0, %.lr.ph.new ], [ %.126.1, %48 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %48 ]
  %27 = getelementptr inbounds [0 x %struct.dex_map_item], ptr %14, i64 0, i64 %indvars.iv
  %28 = load i16, ptr %27, align 1, !tbaa !16
  %29 = icmp eq i16 %28, 7
  br i1 %29, label %30, label %37

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

37:                                               ; preds = %30, %26
  %.126 = phi i32 [ %32, %30 ], [ %.02530, %26 ]
  %.1 = phi ptr [ %36, %30 ], [ %.031, %26 ]
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %38 = getelementptr inbounds [0 x %struct.dex_map_item], ptr %14, i64 0, i64 %indvars.iv.next
  %39 = load i16, ptr %38, align 1, !tbaa !16
  %40 = icmp eq i16 %39, 7
  br i1 %40, label %41, label %48

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

48:                                               ; preds = %41, %37
  %.126.1 = phi i32 [ %43, %41 ], [ %.126, %37 ]
  %.1.1 = phi ptr [ %47, %41 ], [ %.1, %37 ]
  %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 %26, !llvm.loop !21

49:                                               ; preds = %._crit_edge
  tail call void (ptr, ...) @_Z6redumpPKcz(ptr noundef nonnull @.str.19, i32 noundef %.126.lcssa)
  %50 = icmp sgt i32 %.126.lcssa, 0
  br i1 %50, label %.lr.ph35.preheader, label %.loopexit

.lr.ph35.preheader:                               ; preds = %49
  %wide.trip.count40 = zext nneg i32 %.126.lcssa to i64
  br label %.lr.ph35

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

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

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

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

declare void @_Z15format_callsiteB5cxx11P10ddump_dataPPKh(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr 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, !14, i64 0}
!24 = !{!"_ZTS15dex_callsite_id", !14, i64 0}
!25 = !{!10, !10, i64 0}
!26 = distinct !{!26, !22}


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