; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer (Font)

; 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.JPH::Float2" = type { float, float }
%class.Font = type { %"class.JPH::RefTarget", %"class.std::__cxx11::basic_string", i32, i32, i32, [224 x i16], [224 x i16], [224 x i8], [224 x [224 x i8]], ptr, %"class.JPH::Ref", %"class.std::unique_ptr" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.JPH::Ref" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }

; 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: mustprogress uwtable
define dso_local <2 x float> @_ZNK4Font11MeasureTextERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(51376) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #1 align 2 {
  %3 = alloca %"class.JPH::Float2", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %14

14:                                               ; preds = %107, %2
  %15 = load i32, ptr %7, align 4, !tbaa !11
  %16 = zext i32 %15 to i64
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  %19 = icmp ult i64 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %110

21:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load i32, ptr %7, align 4, !tbaa !11
  %24 = zext i32 %23 to i64
  %25 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef %24) #4
  %26 = load i8, ptr %25, align 1, !tbaa !13
  %27 = sext i8 %26 to i32
  store i32 %27, ptr %8, align 4, !tbaa !11
  %28 = load i32, ptr %8, align 4, !tbaa !11
  %29 = icmp sgt i32 %28, 32
  br i1 %29, label %30, label %52

30:                                               ; preds = %21
  %31 = load i32, ptr %8, align 4, !tbaa !11
  %32 = icmp slt i32 %31, 256
  br i1 %32, label %33, label %52

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %34 = load i32, ptr %8, align 4, !tbaa !11
  %35 = sub nsw i32 %34, 32
  store i32 %35, ptr %9, align 4, !tbaa !11
  %36 = getelementptr inbounds %"class.JPH::Float2", ptr %3, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %37 = load float, ptr %6, align 4, !tbaa !9
  %38 = getelementptr inbounds %class.Font, ptr %13, i32 0, i32 7
  %39 = load i32, ptr %9, align 4, !tbaa !11
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [224 x i8], ptr %38, i64 0, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !13
  %43 = uitofp i8 %42 to float
  %44 = getelementptr inbounds %class.Font, ptr %13, i32 0, i32 2
  %45 = load i32, ptr %44, align 8, !tbaa !14
  %46 = sitofp i32 %45 to float
  %47 = fdiv float %43, %46
  %48 = fadd float %37, %47
  store float %48, ptr %10, align 4, !tbaa !9
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %50 = load float, ptr %49, align 4, !tbaa !9
  %51 = getelementptr inbounds %"class.JPH::Float2", ptr %3, i32 0, i32 0
  store float %50, ptr %51, align 4, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %52

52:                                               ; preds = %33, %30, %21
  %53 = load i32, ptr %8, align 4, !tbaa !11
  %54 = icmp eq i32 %53, 10
  br i1 %54, label %55, label %59

55:                                               ; preds = %52
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  %56 = getelementptr inbounds %"class.JPH::Float2", ptr %3, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !31
  %58 = fadd float %57, 1.000000e+00
  store float %58, ptr %56, align 4, !tbaa !31
  br label %106

59:                                               ; preds = %52
  %60 = load i32, ptr %7, align 4, !tbaa !11
  %61 = add i32 %60, 1
  %62 = zext i32 %61 to i64
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %63) #4
  %65 = icmp ult i64 %62, %64
  br i1 %65, label %66, label %105

66:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %67 = load i32, ptr %8, align 4, !tbaa !11
  %68 = sub nsw i32 %67, 32
  store i32 %68, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = load i32, ptr %7, align 4, !tbaa !11
  %71 = add i32 %70, 1
  %72 = zext i32 %71 to i64
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %69, i64 noundef %72) #4
  %74 = load i8, ptr %73, align 1, !tbaa !13
  %75 = sext i8 %74 to i32
  %76 = sub nsw i32 %75, 32
  store i32 %76, ptr %12, align 4, !tbaa !11
  %77 = load i32, ptr %11, align 4, !tbaa !11
  %78 = icmp sge i32 %77, 0
  br i1 %78, label %79, label %104

79:                                               ; preds = %66
  %80 = load i32, ptr %11, align 4, !tbaa !11
  %81 = icmp slt i32 %80, 224
  br i1 %81, label %82, label %104

82:                                               ; preds = %79
  %83 = load i32, ptr %12, align 4, !tbaa !11
  %84 = icmp sge i32 %83, 0
  br i1 %84, label %85, label %104

85:                                               ; preds = %82
  %86 = load i32, ptr %12, align 4, !tbaa !11
  %87 = icmp slt i32 %86, 224
  br i1 %87, label %88, label %104

88:                                               ; preds = %85
  %89 = getelementptr inbounds %class.Font, ptr %13, i32 0, i32 8
  %90 = load i32, ptr %11, align 4, !tbaa !11
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [224 x [224 x i8]], ptr %89, i64 0, i64 %91
  %93 = load i32, ptr %12, align 4, !tbaa !11
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [224 x i8], ptr %92, i64 0, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %97 = uitofp i8 %96 to float
  %98 = getelementptr inbounds %class.Font, ptr %13, i32 0, i32 2
  %99 = load i32, ptr %98, align 8, !tbaa !14
  %100 = sitofp i32 %99 to float
  %101 = fdiv float %97, %100
  %102 = load float, ptr %6, align 4, !tbaa !9
  %103 = fadd float %102, %101
  store float %103, ptr %6, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %88, %85, %82, %79, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %105

105:                                              ; preds = %104, %59
  br label %106

106:                                              ; preds = %105, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %7, align 4, !tbaa !11
  %109 = add i32 %108, 1
  store i32 %109, ptr %7, align 4, !tbaa !11
  br label %14, !llvm.loop !32

110:                                              ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %111 = load <2 x float>, ptr %3, align 4
  ret <2 x float> %111
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !12, i64 40}
!15 = !{!"_ZTS4Font", !16, i64 0, !19, i64 8, !12, i64 40, !12, i64 44, !12, i64 48, !7, i64 52, !7, i64 500, !7, i64 948, !7, i64 1172, !6, i64 51352, !22, i64 51360, !23, i64 51368}
!16 = !{!"_ZTSN3JPH9RefTargetI4FontEE", !17, i64 0}
!17 = !{!"_ZTSSt6atomicIjE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !20, i64 0, !21, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN3JPH3RefI7TextureEE", !6, i64 0}
!23 = !{!"_ZTSSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataI13PipelineStateSt14default_deleteIS0_ELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implI13PipelineStateSt14default_deleteIS0_EE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJP13PipelineStateSt14default_deleteIS0_EEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJP13PipelineStateSt14default_deleteIS0_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EP13PipelineStateLb0EE", !6, i64 0}
!29 = !{!30, !10, i64 0}
!30 = !{!"_ZTSN3JPH6Float2E", !10, i64 0, !10, i64 4}
!31 = !{!30, !10, i64 4}
!32 = distinct !{!32, !33}
!33 = !{!"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"

%"class.JPH::Float2" = type { float, float }

; 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 nounwind uwtable
define dso_local <2 x float> @_ZNK4Font11MeasureTextERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(51376) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.JPH::Float2", align 8
  %4 = alloca float, align 4
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %5 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %6 = getelementptr inbounds i8, ptr %3, i64 4
  %7 = getelementptr inbounds i8, ptr %0, i64 948
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = getelementptr inbounds i8, ptr %0, i64 1172
  br label %11

._crit_edge:                                      ; preds = %56, %2
  %10 = load <2 x float>, ptr %3, align 8
  ret <2 x float> %10

11:                                               ; preds = %.lr.ph, %56
  %12 = phi i64 [ 0, %.lr.ph ], [ %.pre-phi40, %56 ]
  %.038 = phi float [ 0.000000e+00, %.lr.ph ], [ %.2, %56 ]
  %.03037 = phi i32 [ 0, %.lr.ph ], [ %.pre-phi, %56 ]
  %13 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %12) #4
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %15 = sext i8 %14 to i32
  %16 = icmp sgt i8 %14, 32
  br i1 %16, label %.thread, label %28

.thread:                                          ; preds = %11
  %17 = add nsw i32 %15, -32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %18 = zext nneg i32 %17 to i64
  %19 = getelementptr inbounds [224 x i8], ptr %7, i64 0, i64 %18
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = uitofp i8 %20 to float
  %22 = load i32, ptr %8, align 8, !tbaa !8
  %23 = sitofp i32 %22 to float
  %24 = fdiv float %21, %23
  %25 = fadd float %.038, %24
  store float %25, ptr %4, align 4, !tbaa !25
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %27 = load float, ptr %26, align 4, !tbaa !25
  store float %27, ptr %3, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %33

28:                                               ; preds = %11
  %29 = icmp eq i8 %14, 10
  br i1 %29, label %30, label %33

30:                                               ; preds = %28
  %31 = load float, ptr %6, align 4, !tbaa !29
  %32 = fadd float %31, 1.000000e+00
  store float %32, ptr %6, align 4, !tbaa !29
  %.pre = add i32 %.03037, 1
  %.pre39 = zext i32 %.pre to i64
  br label %56

33:                                               ; preds = %.thread, %28
  %34 = add i32 %.03037, 1
  %35 = zext i32 %34 to i64
  %36 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %37 = icmp ugt i64 %36, %35
  br i1 %37, label %38, label %56

38:                                               ; preds = %33
  %39 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %35) #4
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = icmp sgt i8 %14, 31
  %42 = icmp sgt i8 %40, 31
  %or.cond5 = select i1 %41, i1 %42, i1 false
  br i1 %or.cond5, label %43, label %56

43:                                               ; preds = %38
  %44 = zext nneg i8 %40 to i64
  %45 = add nuw nsw i64 %44, 4294967264
  %46 = add nsw i32 %15, -32
  %47 = zext nneg i32 %46 to i64
  %48 = and i64 %45, 4294967295
  %49 = getelementptr inbounds [224 x [224 x i8]], ptr %9, i64 0, i64 %47, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !5
  %51 = uitofp i8 %50 to float
  %52 = load i32, ptr %8, align 8, !tbaa !8
  %53 = sitofp i32 %52 to float
  %54 = fdiv float %51, %53
  %55 = fadd float %.038, %54
  br label %56

56:                                               ; preds = %38, %43, %33, %30
  %.pre-phi40 = phi i64 [ %35, %38 ], [ %35, %43 ], [ %35, %33 ], [ %.pre39, %30 ]
  %.pre-phi = phi i32 [ %34, %38 ], [ %34, %43 ], [ %34, %33 ], [ %.pre, %30 ]
  %.2 = phi float [ %.038, %38 ], [ %55, %43 ], [ %.038, %33 ], [ 0.000000e+00, %30 ]
  %57 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %58 = icmp ugt i64 %57, %.pre-phi40
  br i1 %58, label %11, label %._crit_edge, !llvm.loop !30
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 = { 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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 40}
!9 = !{!"_ZTS4Font", !10, i64 0, !14, i64 8, !13, i64 40, !13, i64 44, !13, i64 48, !6, i64 52, !6, i64 500, !6, i64 948, !6, i64 1172, !16, i64 51352, !18, i64 51360, !19, i64 51368}
!10 = !{!"_ZTSN3JPH9RefTargetI4FontEE", !11, i64 0}
!11 = !{!"_ZTSSt6atomicIjE", !12, i64 0}
!12 = !{!"_ZTSSt13__atomic_baseIjE", !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !15, i64 0, !17, i64 8, !6, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !16, i64 0}
!16 = !{!"any pointer", !6, i64 0}
!17 = !{!"long", !6, i64 0}
!18 = !{!"_ZTSN3JPH3RefI7TextureEE", !16, i64 0}
!19 = !{!"_ZTSSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataI13PipelineStateSt14default_deleteIS0_ELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implI13PipelineStateSt14default_deleteIS0_EE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJP13PipelineStateSt14default_deleteIS0_EEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJP13PipelineStateSt14default_deleteIS0_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EP13PipelineStateLb0EE", !16, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"float", !6, i64 0}
!27 = !{!28, !26, i64 0}
!28 = !{!"_ZTSN3JPH6Float2E", !26, i64 0, !26, i64 4}
!29 = !{!28, !26, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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