; LLVM IR from Simple-XX/SimpleKernel :: src/drv/dtb/dtb.ll (ZN3DTB8dtb_iterEhPFbPKNS_11iter_data_tEPvES3_m)

; 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.DTB::dtb_info_t" = type { ptr, ptr, i64, i64 }
%"struct.DTB::iter_data_t" = type { %"struct.DTB::path_t", ptr, i32, ptr, i32, ptr, i8 }
%"struct.DTB::path_t" = type { [16 x ptr], i64 }

@_ZN3DTB8dtb_infoE = external dso_local global %"struct.DTB::dtb_info_t", align 8
@.str.13 = external hidden unnamed_addr constant [25 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

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

; Function Attrs: nounwind
declare i64 @strlen(ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL9__bswap32j(i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3DTB8dtb_iterEhPFbPKNS_11iter_data_tEPvES3_m(ptr noundef nonnull align 1 dereferenceable(1) %0, i8 noundef zeroext %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.DTB::iter_data_t", align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i8 %1, ptr %7, align 1, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i64 %4, ptr %10, align 8, !tbaa !10
  %14 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 184, ptr %11) #5
  %15 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 0
  %16 = getelementptr inbounds %"struct.DTB::path_t", ptr %15, i32 0, i32 1
  store i64 0, ptr %16, align 8, !tbaa !12
  %17 = load i64, ptr %10, align 8, !tbaa !10
  %18 = inttoptr i64 %17 to ptr
  %19 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  store ptr %18, ptr %19, align 8, !tbaa !16
  %20 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 6
  store i8 0, ptr %20, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  store i8 1, ptr %12, align 1, !tbaa !18
  br label %21

21:                                               ; preds = %160, %5
  br label %22

22:                                               ; preds = %21
  %23 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = getelementptr inbounds i32, ptr %24, i64 0
  %26 = load i32, ptr %25, align 4, !tbaa !20
  %27 = call noundef i32 @_ZL9__bswap32j(i32 noundef %26)
  %28 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 2
  store i32 %27, ptr %28, align 8, !tbaa !21
  %29 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !21
  switch i32 %30, label %156 [
    i32 4, label %31
    i32 1, label %35
    i32 2, label %84
    i32 3, label %103
    i32 9, label %155
  ]

31:                                               ; preds = %22
  %32 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %34 = getelementptr inbounds i32, ptr %33, i32 1
  store ptr %34, ptr %32, align 8, !tbaa !16
  br label %160

35:                                               ; preds = %22
  %36 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds i32, ptr %37, i64 1
  %39 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 0
  %40 = getelementptr inbounds %"struct.DTB::path_t", ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 0
  %42 = getelementptr inbounds %"struct.DTB::path_t", ptr %41, i32 0, i32 1
  %43 = load i64, ptr %42, align 8, !tbaa !12
  %44 = getelementptr inbounds [16 x ptr], ptr %40, i64 0, i64 %43
  store ptr %38, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.DTB::path_t", ptr %45, i32 0, i32 1
  %47 = load i64, ptr %46, align 8, !tbaa !12
  %48 = add i64 %47, 1
  store i64 %48, ptr %46, align 8, !tbaa !12
  %49 = load i8, ptr %12, align 1, !tbaa !18, !range !22, !noundef !23
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %52

51:                                               ; preds = %35
  br label %57

52:                                               ; preds = %35
  %53 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 6
  %54 = load i8, ptr %53, align 8, !tbaa !17
  %55 = zext i8 %54 to i32
  %56 = add nsw i32 %55, 1
  br label %57

57:                                               ; preds = %52, %51
  %58 = phi i32 [ 0, %51 ], [ %56, %52 ]
  %59 = trunc i32 %58 to i8
  %60 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 6
  store i8 %59, ptr %60, align 8, !tbaa !17
  store i8 0, ptr %12, align 1, !tbaa !18
  %61 = load i8, ptr %7, align 1, !tbaa !9
  %62 = zext i8 %61 to i32
  %63 = and i32 %62, 1
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %57
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = call noundef zeroext i1 %66(ptr noundef %11, ptr noundef %67)
  br i1 %68, label %69, label %70

69:                                               ; preds = %65
  store i32 1, ptr %13, align 4
  br label %161

70:                                               ; preds = %65
  br label %71

71:                                               ; preds = %70, %57
  %72 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = getelementptr inbounds i32, ptr %73, i32 1
  store ptr %74, ptr %72, align 8, !tbaa !16
  %75 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = call i64 @strlen(ptr noundef %76) #5
  %78 = add i64 %77, 1
  %79 = call noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef %78, i64 noundef 4)
  %80 = udiv i64 %79, 4
  %81 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !16
  %83 = getelementptr inbounds i32, ptr %82, i64 %80
  store ptr %83, ptr %81, align 8, !tbaa !16
  br label %160

84:                                               ; preds = %22
  %85 = load i8, ptr %7, align 1, !tbaa !9
  %86 = zext i8 %85 to i32
  %87 = and i32 %86, 2
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %95

89:                                               ; preds = %84
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = call noundef zeroext i1 %90(ptr noundef %11, ptr noundef %91)
  br i1 %92, label %93, label %94

93:                                               ; preds = %89
  store i32 1, ptr %13, align 4
  br label %161

94:                                               ; preds = %89
  br label %95

95:                                               ; preds = %94, %84
  %96 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 0
  %97 = getelementptr inbounds %"struct.DTB::path_t", ptr %96, i32 0, i32 1
  %98 = load i64, ptr %97, align 8, !tbaa !12
  %99 = add i64 %98, -1
  store i64 %99, ptr %97, align 8, !tbaa !12
  %100 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !16
  %102 = getelementptr inbounds i32, ptr %101, i32 1
  store ptr %102, ptr %100, align 8, !tbaa !16
  br label %160

103:                                              ; preds = %22
  %104 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = getelementptr inbounds i32, ptr %105, i64 1
  %107 = load i32, ptr %106, align 4, !tbaa !20
  %108 = call noundef i32 @_ZL9__bswap32j(i32 noundef %107)
  %109 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 4
  store i32 %108, ptr %109, align 8, !tbaa !24
  %110 = load i64, ptr getelementptr inbounds (%"struct.DTB::dtb_info_t", ptr @_ZN3DTB8dtb_infoE, i32 0, i32 3), align 8, !tbaa !25
  %111 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8, !tbaa !16
  %113 = getelementptr inbounds i32, ptr %112, i64 2
  %114 = load i32, ptr %113, align 4, !tbaa !20
  %115 = call noundef i32 @_ZL9__bswap32j(i32 noundef %114)
  %116 = zext i32 %115 to i64
  %117 = add i64 %110, %116
  %118 = inttoptr i64 %117 to ptr
  %119 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 3
  store ptr %118, ptr %119, align 8, !tbaa !27
  %120 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !16
  %122 = getelementptr inbounds i32, ptr %121, i64 3
  %123 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 5
  store ptr %122, ptr %123, align 8, !tbaa !28
  %124 = load i8, ptr %7, align 1, !tbaa !9
  %125 = zext i8 %124 to i32
  %126 = and i32 %125, 4
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %134

128:                                              ; preds = %103
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = call noundef zeroext i1 %129(ptr noundef %11, ptr noundef %130)
  br i1 %131, label %132, label %133

132:                                              ; preds = %128
  store i32 1, ptr %13, align 4
  br label %161

133:                                              ; preds = %128
  br label %134

134:                                              ; preds = %133, %103
  %135 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 3
  store ptr null, ptr %135, align 8, !tbaa !27
  %136 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 5
  store ptr null, ptr %136, align 8, !tbaa !28
  %137 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !16
  %139 = getelementptr inbounds i32, ptr %138, i32 1
  store ptr %139, ptr %137, align 8, !tbaa !16
  %140 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !16
  %142 = getelementptr inbounds i32, ptr %141, i32 1
  store ptr %142, ptr %140, align 8, !tbaa !16
  %143 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !16
  %145 = getelementptr inbounds i32, ptr %144, i32 1
  store ptr %145, ptr %143, align 8, !tbaa !16
  %146 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 4
  %147 = load i32, ptr %146, align 8, !tbaa !24
  %148 = call noundef i32 @_ZN6COMMON5ALIGNIjEET_S1_m(i32 noundef %147, i64 noundef 4)
  %149 = udiv i32 %148, 4
  %150 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !16
  %152 = zext i32 %149 to i64
  %153 = getelementptr inbounds i32, ptr %151, i64 %152
  store ptr %153, ptr %150, align 8, !tbaa !16
  %154 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 4
  store i32 0, ptr %154, align 8, !tbaa !24
  br label %160

155:                                              ; preds = %22
  store i32 1, ptr %13, align 4
  br label %161

156:                                              ; preds = %22
  %157 = getelementptr inbounds %"struct.DTB::iter_data_t", ptr %11, i32 0, i32 2
  %158 = load i32, ptr %157, align 8, !tbaa !21
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %158)
  store i32 1, ptr %13, align 4
  br label %161

160:                                              ; preds = %134, %95, %71, %31
  br label %21, !llvm.loop !29

161:                                              ; preds = %156, %155, %132, %93, %69
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 184, ptr %11) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef, i64 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6COMMON5ALIGNIjEET_S1_m(i32 noundef, i64 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint 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 #4 = { 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 #5 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !11, i64 128}
!13 = !{!"_ZTSN3DTB11iter_data_tE", !14, i64 0, !6, i64 136, !15, i64 144, !6, i64 152, !15, i64 160, !6, i64 168, !7, i64 176}
!14 = !{!"_ZTSN3DTB6path_tE", !7, i64 0, !11, i64 128}
!15 = !{!"int", !7, i64 0}
!16 = !{!13, !6, i64 136}
!17 = !{!13, !7, i64 176}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!15, !15, i64 0}
!21 = !{!13, !15, i64 144}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!13, !15, i64 160}
!25 = !{!26, !11, i64 24}
!26 = !{!"_ZTSN3DTB10dtb_info_tE", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 24}
!27 = !{!13, !6, i64 152}
!28 = !{!13, !6, i64 168}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; 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.DTB::dtb_info_t" = type { ptr, ptr, i64, i64 }
%"struct.DTB::iter_data_t" = type { %"struct.DTB::path_t", ptr, i32, ptr, i32, ptr, i8 }
%"struct.DTB::path_t" = type { [16 x ptr], i64 }

@_ZN3DTB8dtb_infoE = external dso_local local_unnamed_addr global %"struct.DTB::dtb_info_t", align 8
@.str.13 = external hidden unnamed_addr constant [25 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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL9__bswap32j(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3DTB8dtb_iterEhPFbPKNS_11iter_data_tEPvES3_m(ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %0, i8 noundef zeroext %1, ptr nocapture noundef readonly %2, ptr noundef %3, i64 noundef %4) local_unnamed_addr #4 align 2 {
  %6 = alloca %"struct.DTB::iter_data_t", align 8
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %6) #5
  %7 = getelementptr inbounds i8, ptr %6, i64 128
  store i64 0, ptr %7, align 8, !tbaa !5
  %8 = inttoptr i64 %4 to ptr
  %9 = getelementptr inbounds i8, ptr %6, i64 136
  store ptr %8, ptr %9, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %6, i64 176
  store i8 0, ptr %10, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %6, i64 144
  %12 = getelementptr inbounds i8, ptr %6, i64 160
  %13 = getelementptr inbounds i8, ptr %6, i64 152
  %14 = getelementptr inbounds i8, ptr %6, i64 168
  %15 = and i8 %1, 4
  %.not = icmp eq i8 %15, 0
  %16 = and i8 %1, 2
  %.not11 = icmp eq i8 %16, 0
  %17 = and i8 %1, 1
  %.not12 = icmp eq i8 %17, 0
  br label %.outer

.outer:                                           ; preds = %36, %5
  %.ph = phi ptr [ %44, %36 ], [ %8, %5 ]
  %.0.ph = phi i1 [ false, %36 ], [ true, %5 ]
  br label %18

18:                                               ; preds = %.backedge, %.outer
  %19 = phi ptr [ %.ph, %.outer ], [ %.be, %.backedge ]
  %20 = load i32, ptr %19, align 4, !tbaa !15
  %21 = call noundef i32 @_ZL9__bswap32j(i32 noundef %20)
  store i32 %21, ptr %11, align 8, !tbaa !16
  switch i32 %21, label %79 [
    i32 4, label %22
    i32 1, label %25
    i32 2, label %45
    i32 3, label %53
    i32 9, label %.loopexit
  ]

22:                                               ; preds = %18
  %23 = load ptr, ptr %9, align 8, !tbaa !13
  %24 = getelementptr inbounds i8, ptr %23, i64 4
  store ptr %24, ptr %9, align 8, !tbaa !13
  br label %.backedge

25:                                               ; preds = %18
  %26 = load ptr, ptr %9, align 8, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %26, i64 4
  %28 = load i64, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds [16 x ptr], ptr %6, i64 0, i64 %28
  store ptr %27, ptr %29, align 8, !tbaa !17
  %30 = add i64 %28, 1
  store i64 %30, ptr %7, align 8, !tbaa !5
  %31 = load i8, ptr %10, align 8
  %32 = add i8 %31, 1
  %33 = select i1 %.0.ph, i8 0, i8 %32
  store i8 %33, ptr %10, align 8, !tbaa !14
  br i1 %.not12, label %36, label %34

34:                                               ; preds = %25
  %35 = call noundef zeroext i1 %2(ptr noundef nonnull %6, ptr noundef %3)
  br i1 %35, label %.loopexit, label %36

36:                                               ; preds = %34, %25
  %37 = load ptr, ptr %9, align 8, !tbaa !13
  %38 = getelementptr inbounds i8, ptr %37, i64 4
  store ptr %38, ptr %9, align 8, !tbaa !13
  %39 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %38) #5
  %40 = add i64 %39, 1
  %41 = call noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef %40, i64 noundef 4)
  %42 = lshr i64 %41, 2
  %43 = load ptr, ptr %9, align 8, !tbaa !13
  %44 = getelementptr inbounds i32, ptr %43, i64 %42
  store ptr %44, ptr %9, align 8, !tbaa !13
  br label %.outer, !llvm.loop !18

45:                                               ; preds = %18
  br i1 %.not11, label %48, label %46

46:                                               ; preds = %45
  %47 = call noundef zeroext i1 %2(ptr noundef nonnull %6, ptr noundef %3)
  br i1 %47, label %.loopexit, label %48

48:                                               ; preds = %46, %45
  %49 = load i64, ptr %7, align 8, !tbaa !5
  %50 = add i64 %49, -1
  store i64 %50, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %9, align 8, !tbaa !13
  %52 = getelementptr inbounds i8, ptr %51, i64 4
  store ptr %52, ptr %9, align 8, !tbaa !13
  br label %.backedge

53:                                               ; preds = %18
  %54 = load ptr, ptr %9, align 8, !tbaa !13
  %55 = getelementptr inbounds i8, ptr %54, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !15
  %57 = call noundef i32 @_ZL9__bswap32j(i32 noundef %56)
  store i32 %57, ptr %12, align 8, !tbaa !20
  %58 = load i64, ptr getelementptr inbounds (i8, ptr @_ZN3DTB8dtb_infoE, i64 24), align 8, !tbaa !21
  %59 = load ptr, ptr %9, align 8, !tbaa !13
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = load i32, ptr %60, align 4, !tbaa !15
  %62 = call noundef i32 @_ZL9__bswap32j(i32 noundef %61)
  %63 = zext i32 %62 to i64
  %64 = add i64 %58, %63
  %65 = inttoptr i64 %64 to ptr
  store ptr %65, ptr %13, align 8, !tbaa !23
  %66 = load ptr, ptr %9, align 8, !tbaa !13
  %67 = getelementptr inbounds i8, ptr %66, i64 12
  store ptr %67, ptr %14, align 8, !tbaa !24
  br i1 %.not, label %70, label %68

68:                                               ; preds = %53
  %69 = call noundef zeroext i1 %2(ptr noundef nonnull %6, ptr noundef %3)
  br i1 %69, label %.loopexit, label %._crit_edge

._crit_edge:                                      ; preds = %68
  %.pre = load ptr, ptr %9, align 8, !tbaa !13
  br label %70

70:                                               ; preds = %._crit_edge, %53
  %71 = phi ptr [ %.pre, %._crit_edge ], [ %66, %53 ]
  store ptr null, ptr %13, align 8, !tbaa !23
  store ptr null, ptr %14, align 8, !tbaa !24
  %72 = getelementptr inbounds i8, ptr %71, i64 12
  store ptr %72, ptr %9, align 8, !tbaa !13
  %73 = load i32, ptr %12, align 8, !tbaa !20
  %74 = call noundef i32 @_ZN6COMMON5ALIGNIjEET_S1_m(i32 noundef %73, i64 noundef 4)
  %75 = lshr i32 %74, 2
  %76 = load ptr, ptr %9, align 8, !tbaa !13
  %77 = zext nneg i32 %75 to i64
  %78 = getelementptr inbounds i32, ptr %76, i64 %77
  store ptr %78, ptr %9, align 8, !tbaa !13
  store i32 0, ptr %12, align 8, !tbaa !20
  br label %.backedge

.backedge:                                        ; preds = %70, %48, %22
  %.be = phi ptr [ %78, %70 ], [ %52, %48 ], [ %24, %22 ]
  br label %18, !llvm.loop !18

79:                                               ; preds = %18
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %21)
  br label %.loopexit

.loopexit:                                        ; preds = %18, %68, %46, %34, %79
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %6) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6COMMON5ALIGNImEET_S1_m(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6COMMON5ALIGNIjEET_S1_m(i32 noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 = { inlinehint 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 #4 = { 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 #5 = { 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 128}
!6 = !{!"_ZTSN3DTB11iter_data_tE", !7, i64 0, !11, i64 136, !12, i64 144, !11, i64 152, !12, i64 160, !11, i64 168, !8, i64 176}
!7 = !{!"_ZTSN3DTB6path_tE", !8, i64 0, !10, i64 128}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!6, !11, i64 136}
!14 = !{!6, !8, i64 176}
!15 = !{!12, !12, i64 0}
!16 = !{!6, !12, i64 144}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !12, i64 160}
!21 = !{!22, !10, i64 24}
!22 = !{!"_ZTSN3DTB10dtb_info_tE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 24}
!23 = !{!6, !11, i64 152}
!24 = !{!6, !11, i64 168}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass