; LLVM IR from xhub/reshop :: gui/external/imguial/imguial_term.ll/ZN7ImGuiAl3Crt7vprintfEPKcP13 (va_list_tag)

; 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.__va_list_tag = type { i32, i32, ptr, ptr }
%"struct.ImGuiAl::Crt::Info" = type { i32, i32, i32 }
%"class.ImGuiAl::Crt" = type <{ %"class.ImGuiAl::Fifo", i32, i32, i8, [7 x i8] }>
%"class.ImGuiAl::Fifo" = type { ptr, i64, i64, i64, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ImGuiAl4Fifo4readEPvm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef) #0 align 2

; 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 nounwind uwtable
declare dso_local void @_ZN7ImGuiAl4Fifo5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ImGuiAl4Fifo4skipEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ImGuiAl3Crt7vprintfEPKcP13__va_list_tag(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef %1, ptr noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [256 x i8], align 16
  %8 = alloca ptr, align 8
  %9 = alloca [1 x %struct.__va_list_tag], align 16
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.ImGuiAl::Crt::Info", align 4
  %14 = alloca %"struct.ImGuiAl::Crt::Info", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %16 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  store ptr %16, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  %17 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %9, i64 0, i64 0
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.va_copy.p0(ptr %17, ptr %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %19 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call i32 @vsnprintf(ptr noundef %19, i64 noundef 256, ptr noundef %20, ptr noundef %21) #8
  %23 = sext i32 %22 to i64
  store i64 %23, ptr %10, align 8, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.va_end.p0(ptr %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %25 = getelementptr inbounds %"class.ImGuiAl::Crt", ptr %15, i32 0, i32 0
  %26 = call noundef i64 @_ZNK7ImGuiAl4Fifo4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %25)
  %27 = sub i64 %26, 12
  store i64 %27, ptr %12, align 8, !tbaa !9
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %29 = load i64, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  store i64 %29, ptr %11, align 8, !tbaa !9
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = icmp uge i64 %30, 256
  br i1 %31, label %32, label %42

32:                                               ; preds = %3
  %33 = load i64, ptr %11, align 8, !tbaa !9
  %34 = add i64 %33, 1
  %35 = call noalias noundef nonnull ptr @_Znam(i64 noundef %34) #9
  store ptr %35, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = add i64 %37, 1
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %9, i64 0, i64 0
  %41 = call i32 @vsnprintf(ptr noundef %36, i64 noundef %38, ptr noundef %39, ptr noundef %40) #8
  br label %42

42:                                               ; preds = %32, %3
  %43 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %9, i64 0, i64 0
  call void @llvm.va_end.p0(ptr %43)
  br label %44

44:                                               ; preds = %50, %42
  %45 = load i64, ptr %11, align 8, !tbaa !9
  %46 = add i64 %45, 12
  %47 = getelementptr inbounds %"class.ImGuiAl::Crt", ptr %15, i32 0, i32 0
  %48 = call noundef i64 @_ZNK7ImGuiAl4Fifo9availableEv(ptr noundef nonnull align 8 dereferenceable(40) %47)
  %49 = icmp ugt i64 %46, %48
  br i1 %49, label %50, label %56

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  %51 = getelementptr inbounds %"class.ImGuiAl::Crt", ptr %15, i32 0, i32 0
  call void @_ZN7ImGuiAl4Fifo4readEPvm(ptr noundef nonnull align 8 dereferenceable(40) %51, ptr noundef %13, i64 noundef 12)
  %52 = getelementptr inbounds %"class.ImGuiAl::Crt", ptr %15, i32 0, i32 0
  %53 = getelementptr inbounds %"struct.ImGuiAl::Crt::Info", ptr %13, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = zext i32 %54 to i64
  call void @_ZN7ImGuiAl4Fifo4skipEm(ptr noundef nonnull align 8 dereferenceable(40) %52, i64 noundef %55)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  br label %44, !llvm.loop !14

56:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #8
  %57 = getelementptr inbounds %"class.ImGuiAl::Crt", ptr %15, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !16
  %59 = getelementptr inbounds %"struct.ImGuiAl::Crt::Info", ptr %14, i32 0, i32 0
  store i32 %58, ptr %59, align 4, !tbaa !20
  %60 = load i64, ptr %11, align 8, !tbaa !9
  %61 = trunc i64 %60 to i32
  %62 = getelementptr inbounds %"struct.ImGuiAl::Crt::Info", ptr %14, i32 0, i32 1
  store i32 %61, ptr %62, align 4, !tbaa !11
  %63 = getelementptr inbounds %"class.ImGuiAl::Crt", ptr %15, i32 0, i32 2
  %64 = load i32, ptr %63, align 4, !tbaa !21
  %65 = getelementptr inbounds %"struct.ImGuiAl::Crt::Info", ptr %14, i32 0, i32 2
  store i32 %64, ptr %65, align 4, !tbaa !22
  %66 = getelementptr inbounds %"class.ImGuiAl::Crt", ptr %15, i32 0, i32 0
  call void @_ZN7ImGuiAl4Fifo5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(40) %66, ptr noundef %14, i64 noundef 12)
  %67 = getelementptr inbounds %"class.ImGuiAl::Crt", ptr %15, i32 0, i32 0
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load i64, ptr %11, align 8, !tbaa !9
  call void @_ZN7ImGuiAl4Fifo5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(40) %67, ptr noundef %68, i64 noundef %69)
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %72 = icmp ne ptr %70, %71
  br i1 %72, label %73, label %78

73:                                               ; preds = %56
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = icmp eq ptr %74, null
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  call void @_ZdaPv(ptr noundef %74) #10
  br label %77

77:                                               ; preds = %76, %73
  br label %78

78:                                               ; preds = %77, %56
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #8
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.va_end.p0(ptr) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.va_copy.p0(ptr, ptr) #3

; Function Attrs: nounwind
declare i32 @vsnprintf(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7ImGuiAl4Fifo4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7ImGuiAl4Fifo9availableEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 #5 = { 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 #6 = { nobuiltin allocsize(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 #7 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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, !13, i64 4}
!12 = !{!"_ZTSN7ImGuiAl3Crt4InfoE", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !13, i64 40}
!17 = !{!"_ZTSN7ImGuiAl3CrtE", !18, i64 0, !13, i64 40, !13, i64 44, !19, i64 48}
!18 = !{!"_ZTSN7ImGuiAl4FifoE", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!19 = !{!"bool", !7, i64 0}
!20 = !{!12, !13, i64 0}
!21 = !{!17, !13, i64 44}
!22 = !{!12, !13, i64 8}


; 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.__va_list_tag = type { i32, i32, ptr, ptr }
%"struct.ImGuiAl::Crt::Info" = type { i32, i32, i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ImGuiAl4Fifo4readEPvm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ImGuiAl4Fifo5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ImGuiAl4Fifo4skipEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ImGuiAl3Crt7vprintfEPKcP13__va_list_tag(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca [256 x i8], align 16
  %5 = alloca [1 x %struct.__va_list_tag], align 16
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"struct.ImGuiAl::Crt::Info", align 4
  %9 = alloca %"struct.ImGuiAl::Crt::Info", align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.va_copy.p0(ptr nonnull %5, ptr %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %10 = call i32 @vsnprintf(ptr noundef nonnull %4, i64 noundef 256, ptr noundef %1, ptr noundef %2) #8
  %11 = sext i32 %10 to i64
  store i64 %11, ptr %6, align 8, !tbaa !5
  call void @llvm.va_end.p0(ptr %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %12 = call noundef i64 @_ZNK7ImGuiAl4Fifo4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %13 = add i64 %12, -12
  store i64 %13, ptr %7, align 8, !tbaa !5
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %15 = load i64, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %16 = icmp ugt i64 %15, 255
  br i1 %16, label %17, label %21

17:                                               ; preds = %3
  %18 = add i64 %15, 1
  %19 = call noalias noundef nonnull ptr @_Znam(i64 noundef %18) #9
  %20 = call i32 @vsnprintf(ptr noundef nonnull %19, i64 noundef %18, ptr noundef %1, ptr noundef nonnull %5) #8
  br label %21

21:                                               ; preds = %17, %3
  %.0 = phi ptr [ %19, %17 ], [ %4, %3 ]
  call void @llvm.va_end.p0(ptr nonnull %5)
  %22 = add i64 %15, 12
  %23 = call noundef i64 @_ZNK7ImGuiAl4Fifo9availableEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %24 = icmp ugt i64 %22, %23
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21
  %25 = getelementptr inbounds i8, ptr %8, i64 4
  br label %26

26:                                               ; preds = %.lr.ph, %26
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #8
  call void @_ZN7ImGuiAl4Fifo4readEPvm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %8, i64 noundef 12)
  %27 = load i32, ptr %25, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  call void @_ZN7ImGuiAl4Fifo4skipEm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  %29 = call noundef i64 @_ZNK7ImGuiAl4Fifo9availableEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %30 = icmp ugt i64 %22, %29
  br i1 %30, label %26, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %26, %21
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = load i32, ptr %31, align 8, !tbaa !14
  store i32 %32, ptr %9, align 4, !tbaa !19
  %33 = trunc i64 %15 to i32
  %34 = getelementptr inbounds i8, ptr %9, i64 4
  store i32 %33, ptr %34, align 4, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %0, i64 44
  %36 = load i32, ptr %35, align 4, !tbaa !20
  %37 = getelementptr inbounds i8, ptr %9, i64 8
  store i32 %36, ptr %37, align 4, !tbaa !21
  call void @_ZN7ImGuiAl4Fifo5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %9, i64 noundef 12)
  call void @_ZN7ImGuiAl4Fifo5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %.0, i64 noundef %15)
  %.not = icmp eq ptr %.0, %4
  br i1 %.not, label %39, label %38

38:                                               ; preds = %._crit_edge
  call void @_ZdaPv(ptr noundef nonnull %.0) #10
  br label %39

39:                                               ; preds = %38, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #8
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.va_end.p0(ptr) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.va_copy.p0(ptr, ptr) #3

; Function Attrs: nofree nounwind
declare noundef i32 @vsnprintf(ptr nocapture noundef, i64 noundef, ptr nocapture noundef readonly, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7ImGuiAl4Fifo4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7ImGuiAl4Fifo9availableEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #7

attributes #0 = { 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 #1 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 #5 = { 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 #6 = { nobuiltin allocsize(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 #7 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTSN7ImGuiAl3Crt4InfoE", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !11, i64 40}
!15 = !{!"_ZTSN7ImGuiAl3CrtE", !16, i64 0, !11, i64 40, !11, i64 44, !18, i64 48}
!16 = !{!"_ZTSN7ImGuiAl4FifoE", !17, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!10, !11, i64 0}
!20 = !{!15, !11, i64 44}
!21 = !{!10, !11, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass