; LLVM IR from zeux/meshoptimizer :: gltf (write)

; 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.ExtensionInfo = type { ptr, i8, i8 }

@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [23 x i8], align 1

declare void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #0

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15writeExtensionsRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK13ExtensionInfom(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, i64 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  store i8 0, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  store i8 0, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %12

12:                                               ; preds = %53, %3
  %13 = load i64, ptr %9, align 8, !tbaa !9
  %14 = load i64, ptr %6, align 8, !tbaa !9
  %15 = icmp ult i64 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %56

17:                                               ; preds = %12
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load i64, ptr %9, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.ExtensionInfo, ptr %18, i64 %19
  %21 = getelementptr inbounds %struct.ExtensionInfo, ptr %20, i32 0, i32 1
  %22 = load i8, ptr %21, align 8, !tbaa !13, !range !15, !noundef !16
  %23 = trunc i8 %22 to i1
  %24 = zext i1 %23 to i32
  %25 = load i8, ptr %7, align 1, !tbaa !11, !range !15, !noundef !16
  %26 = trunc i8 %25 to i1
  %27 = zext i1 %26 to i32
  %28 = or i32 %27, %24
  %29 = icmp ne i32 %28, 0
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %7, align 1, !tbaa !11
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.ExtensionInfo, ptr %31, i64 %32
  %34 = getelementptr inbounds %struct.ExtensionInfo, ptr %33, i32 0, i32 1
  %35 = load i8, ptr %34, align 8, !tbaa !13, !range !15, !noundef !16
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %44

37:                                               ; preds = %17
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load i64, ptr %9, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.ExtensionInfo, ptr %38, i64 %39
  %41 = getelementptr inbounds %struct.ExtensionInfo, ptr %40, i32 0, i32 2
  %42 = load i8, ptr %41, align 1, !tbaa !17, !range !15, !noundef !16
  %43 = trunc i8 %42 to i1
  br label %44

44:                                               ; preds = %37, %17
  %45 = phi i1 [ false, %17 ], [ %43, %37 ]
  %46 = zext i1 %45 to i32
  %47 = load i8, ptr %8, align 1, !tbaa !11, !range !15, !noundef !16
  %48 = trunc i8 %47 to i1
  %49 = zext i1 %48 to i32
  %50 = or i32 %49, %46
  %51 = icmp ne i32 %50, 0
  %52 = zext i1 %51 to i8
  store i8 %52, ptr %8, align 1, !tbaa !11
  br label %53

53:                                               ; preds = %44
  %54 = load i64, ptr %9, align 8, !tbaa !9
  %55 = add i64 %54, 1
  store i64 %55, ptr %9, align 8, !tbaa !9
  br label %12, !llvm.loop !18

56:                                               ; preds = %16
  %57 = load i8, ptr %7, align 1, !tbaa !11, !range !15, !noundef !16
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %90

59:                                               ; preds = %56
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %60)
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef @.str.119)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %85, %59
  %63 = load i64, ptr %10, align 8, !tbaa !9
  %64 = load i64, ptr %6, align 8, !tbaa !9
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %88

67:                                               ; preds = %62
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = load i64, ptr %10, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.ExtensionInfo, ptr %68, i64 %69
  %71 = getelementptr inbounds %struct.ExtensionInfo, ptr %70, i32 0, i32 1
  %72 = load i8, ptr %71, align 8, !tbaa !13, !range !15, !noundef !16
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %84

74:                                               ; preds = %67
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %75)
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %76, ptr noundef @.str.15)
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i64, ptr %10, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.ExtensionInfo, ptr %78, i64 %79
  %81 = getelementptr inbounds %struct.ExtensionInfo, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !20
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef %82)
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %83, ptr noundef @.str.15)
  br label %84

84:                                               ; preds = %74, %67
  br label %85

85:                                               ; preds = %84
  %86 = load i64, ptr %10, align 8, !tbaa !9
  %87 = add i64 %86, 1
  store i64 %87, ptr %10, align 8, !tbaa !9
  br label %62, !llvm.loop !21

88:                                               ; preds = %66
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %89, ptr noundef @.str.64)
  br label %90

90:                                               ; preds = %88, %56
  %91 = load i8, ptr %8, align 1, !tbaa !11, !range !15, !noundef !16
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %131

93:                                               ; preds = %90
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %94)
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %95, ptr noundef @.str.120)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %126, %93
  %97 = load i64, ptr %11, align 8, !tbaa !9
  %98 = load i64, ptr %6, align 8, !tbaa !9
  %99 = icmp ult i64 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %129

101:                                              ; preds = %96
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = load i64, ptr %11, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.ExtensionInfo, ptr %102, i64 %103
  %105 = getelementptr inbounds %struct.ExtensionInfo, ptr %104, i32 0, i32 1
  %106 = load i8, ptr %105, align 8, !tbaa !13, !range !15, !noundef !16
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %125

108:                                              ; preds = %101
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load i64, ptr %11, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.ExtensionInfo, ptr %109, i64 %110
  %112 = getelementptr inbounds %struct.ExtensionInfo, ptr %111, i32 0, i32 2
  %113 = load i8, ptr %112, align 1, !tbaa !17, !range !15, !noundef !16
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %125

115:                                              ; preds = %108
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %116)
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %117, ptr noundef @.str.15)
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = load i64, ptr %11, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.ExtensionInfo, ptr %119, i64 %120
  %122 = getelementptr inbounds %struct.ExtensionInfo, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !20
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %118, ptr noundef %123)
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %124, ptr noundef @.str.15)
  br label %125

125:                                              ; preds = %115, %108, %101
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %11, align 8, !tbaa !9
  %128 = add i64 %127, 1
  store i64 %128, ptr %11, align 8, !tbaa !9
  br label %96, !llvm.loop !22

129:                                              ; preds = %100
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %130, ptr noundef @.str.64)
  br label %131

131:                                              ; preds = %129, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  ret void
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTS13ExtensionInfo", !6, i64 0, !12, i64 8, !12, i64 9}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!14, !12, i64 9}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!14, !6, i64 0}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


; 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.ExtensionInfo = type { ptr, i8, i8 }

@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [23 x i8], align 1

declare void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15writeExtensionsRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK13ExtensionInfom(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #1 {
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %3
  %xtraiter = and i64 %2, 1
  %4 = icmp eq i64 %2, 1
  br i1 %4, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %2, -2
  br label %.lr.ph

._crit_edge.unr-lcssa.loopexit:                   ; preds = %44
  %5 = zext i1 %48 to i32
  br label %._crit_edge.unr-lcssa

._crit_edge.unr-lcssa:                            ; preds = %._crit_edge.unr-lcssa.loopexit, %.lr.ph.preheader
  %.lcssa70.ph = phi i1 [ poison, %.lr.ph.preheader ], [ %48, %._crit_edge.unr-lcssa.loopexit ]
  %.lcssa.ph = phi i1 [ poison, %.lr.ph.preheader ], [ %39, %._crit_edge.unr-lcssa.loopexit ]
  %.04349.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %49, %._crit_edge.unr-lcssa.loopexit ]
  %.04448.unr = phi i32 [ 0, %.lr.ph.preheader ], [ %5, %._crit_edge.unr-lcssa.loopexit ]
  %.04547.unr = phi i8 [ 0, %.lr.ph.preheader ], [ %38, %._crit_edge.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa
  %6 = getelementptr inbounds %struct.ExtensionInfo, ptr %1, i64 %.04349.unr
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  %8 = load i8, ptr %7, align 8, !tbaa !5, !range !11, !noundef !12
  %9 = trunc nuw i8 %8 to i1
  %10 = or i8 %8, %.04547.unr
  %11 = icmp ne i8 %10, 0
  br i1 %9, label %12, label %._crit_edge.epilog-lcssa

12:                                               ; preds = %.lr.ph.epil
  %13 = getelementptr inbounds i8, ptr %6, i64 9
  %14 = load i8, ptr %13, align 1, !tbaa !13, !range !11, !noundef !12
  %15 = zext nneg i8 %14 to i32
  br label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %12, %.lr.ph.epil
  %16 = phi i32 [ 0, %.lr.ph.epil ], [ %15, %12 ]
  %17 = or i32 %16, %.04448.unr
  %18 = icmp ne i32 %17, 0
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.lcssa70 = phi i1 [ %.lcssa70.ph, %._crit_edge.unr-lcssa ], [ %18, %._crit_edge.epilog-lcssa ]
  %.lcssa = phi i1 [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %11, %._crit_edge.epilog-lcssa ]
  br i1 %.lcssa, label %.lr.ph53.preheader, label %58

.lr.ph:                                           ; preds = %44, %.lr.ph.preheader.new
  %.04349 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %49, %44 ]
  %.04448 = phi i1 [ false, %.lr.ph.preheader.new ], [ %48, %44 ]
  %.04547 = phi i1 [ false, %.lr.ph.preheader.new ], [ %39, %44 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %44 ]
  %19 = getelementptr inbounds %struct.ExtensionInfo, ptr %1, i64 %.04349
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load i8, ptr %20, align 8, !tbaa !5, !range !11, !noundef !12
  %22 = trunc nuw i8 %21 to i1
  %23 = zext i1 %.04547 to i8
  %24 = or i8 %21, %23
  br i1 %22, label %25, label %.lr.ph.1

25:                                               ; preds = %.lr.ph
  %26 = getelementptr inbounds i8, ptr %19, i64 9
  %27 = load i8, ptr %26, align 1, !tbaa !13, !range !11, !noundef !12
  %28 = zext nneg i8 %27 to i32
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %25, %.lr.ph
  %29 = phi i32 [ 0, %.lr.ph ], [ %28, %25 ]
  %30 = zext i1 %.04448 to i32
  %31 = or i32 %29, %30
  %32 = icmp ne i32 %31, 0
  %33 = or disjoint i64 %.04349, 1
  %34 = getelementptr inbounds %struct.ExtensionInfo, ptr %1, i64 %33
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  %36 = load i8, ptr %35, align 8, !tbaa !5, !range !11, !noundef !12
  %37 = trunc nuw i8 %36 to i1
  %38 = or i8 %36, %24
  %39 = icmp ne i8 %38, 0
  br i1 %37, label %40, label %44

40:                                               ; preds = %.lr.ph.1
  %41 = getelementptr inbounds i8, ptr %34, i64 9
  %42 = load i8, ptr %41, align 1, !tbaa !13, !range !11, !noundef !12
  %43 = zext nneg i8 %42 to i32
  br label %44

44:                                               ; preds = %40, %.lr.ph.1
  %45 = phi i32 [ 0, %.lr.ph.1 ], [ %43, %40 ]
  %46 = zext i1 %32 to i32
  %47 = or i32 %45, %46
  %48 = icmp ne i32 %47, 0
  %49 = add nuw i64 %.04349, 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.loopexit, label %.lr.ph, !llvm.loop !14

.lr.ph53.preheader:                               ; preds = %._crit_edge
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.119)
  br label %.lr.ph53

._crit_edge54:                                    ; preds = %56
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.64)
  br i1 %.lcssa70, label %.lr.ph57.preheader, label %.thread

.lr.ph53:                                         ; preds = %.lr.ph53.preheader, %56
  %.04251 = phi i64 [ %57, %56 ], [ 0, %.lr.ph53.preheader ]
  %50 = getelementptr inbounds %struct.ExtensionInfo, ptr %1, i64 %.04251
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load i8, ptr %51, align 8, !tbaa !5, !range !11, !noundef !12
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %54, label %56

54:                                               ; preds = %.lr.ph53
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.15)
  %55 = load ptr, ptr %50, align 8, !tbaa !16
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %55)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.15)
  br label %56

56:                                               ; preds = %.lr.ph53, %54
  %57 = add nuw i64 %.04251, 1
  %exitcond62.not = icmp eq i64 %57, %2
  br i1 %exitcond62.not, label %._crit_edge54, label %.lr.ph53, !llvm.loop !17

58:                                               ; preds = %._crit_edge
  br i1 %.lcssa70, label %.lr.ph57.preheader, label %.thread

.lr.ph57.preheader:                               ; preds = %58, %._crit_edge54
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.120)
  br label %.lr.ph57

._crit_edge58:                                    ; preds = %69
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.64)
  br label %.thread

.lr.ph57:                                         ; preds = %.lr.ph57.preheader, %69
  %.055 = phi i64 [ %70, %69 ], [ 0, %.lr.ph57.preheader ]
  %59 = getelementptr inbounds %struct.ExtensionInfo, ptr %1, i64 %.055
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = load i8, ptr %60, align 8, !tbaa !5, !range !11, !noundef !12
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %63, label %69

63:                                               ; preds = %.lr.ph57
  %64 = getelementptr inbounds i8, ptr %59, i64 9
  %65 = load i8, ptr %64, align 1, !tbaa !13, !range !11, !noundef !12
  %66 = trunc nuw i8 %65 to i1
  br i1 %66, label %67, label %69

67:                                               ; preds = %63
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.15)
  %68 = load ptr, ptr %59, align 8, !tbaa !16
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %68)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.15)
  br label %69

69:                                               ; preds = %.lr.ph57, %63, %67
  %70 = add nuw i64 %.055, 1
  %exitcond63.not = icmp eq i64 %70, %2
  br i1 %exitcond63.not, label %._crit_edge58, label %.lr.ph57, !llvm.loop !18

.thread:                                          ; preds = %3, %._crit_edge54, %._crit_edge58, %58
  ret void
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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, !10, i64 8}
!6 = !{!"_ZTS13ExtensionInfo", !7, i64 0, !10, i64 8, !10, i64 9}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!6, !10, i64 9}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!6, !7, i64 0}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


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