; LLVM IR from achilles288/robot-monitor-graphics :: src/base/context_container.ll (ZN3rmg7Context14getContextByIDEj)

; 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.rmg::ContextList::iterator" = type { ptr, ptr }
%"class.rmg::Context" = type { ptr, i32, i16, i16, %"struct.rmg::ColorRGBA", %"class.rmg::Camera", %"struct.rmg::Vec3", %"struct.rmg::Vec3", %"struct.rmg::ColorRGBA", %"class.rmg::ObjectList", %"class.rmg::ObjectList", %"class.rmg::ObjectList", %"class.rmg::ObjectList", %"class.rmg::ObjectList", %"class.rmg::MaterialList", %"class.rmg::FontList", %"class.rmg::internal::GeneralShader", %"class.rmg::internal::ShadowMapShader", %"class.rmg::internal::Object2DShader", %"class.rmg::internal::ParticleShader", %"class.rmg::internal::Line3DShader", %"class.rmg::internal::ContextLoader", %"class.rmg::internal::GLContext", i8, float, i8, i32 }
%"class.rmg::Camera" = type { %"struct.rmg::Vec3", %"struct.rmg::Mat3", %"struct.rmg::Mat4", %"struct.rmg::Mat4", %"struct.rmg::Mat4", float, float, float, float, float, i32 }
%"struct.rmg::Mat3" = type { %union.anon.0 }
%union.anon.0 = type { [3 x [3 x float]] }
%"struct.rmg::Mat4" = type { %union.anon.1 }
%union.anon.1 = type { [4 x [4 x float]] }
%"struct.rmg::Vec3" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.rmg::ColorRGBA" = type { float, float, float, float }
%"class.rmg::ObjectList" = type { %"class.rmg::LinkedList.base.3", [4 x i8] }
%"class.rmg::LinkedList.base.3" = type <{ ptr, ptr, i32 }>
%"class.rmg::MaterialList" = type { %"class.rmg::LinkedList.base.5", [4 x i8] }
%"class.rmg::LinkedList.base.5" = type <{ ptr, ptr, i32 }>
%"class.rmg::FontList" = type { %"class.rmg::LinkedList.base.7", [4 x i8] }
%"class.rmg::LinkedList.base.7" = type <{ ptr, ptr, i32 }>
%"class.rmg::internal::GeneralShader" = type { %"class.rmg::internal::Shader.base", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }
%"class.rmg::internal::Shader.base" = type <{ ptr, i32 }>
%"class.rmg::internal::ShadowMapShader" = type { %"class.rmg::internal::Shader.base", %"class.rmg::Camera", %"struct.rmg::Vec3", %"struct.rmg::Vec3", %"struct.rmg::Vec3", float, float, float, i32, i32, i32 }
%"class.rmg::internal::Object2DShader" = type { %"class.rmg::internal::SpriteShader", %"class.rmg::internal::Text2DShader", %"struct.rmg::Mat3", i16, i16 }
%"class.rmg::internal::SpriteShader" = type { %"class.rmg::internal::Shader.base", i32, i32, i32, i32, i32 }
%"class.rmg::internal::Text2DShader" = type { %"class.rmg::internal::Shader.base", i32, i32, i32, i32, i32, i32, i32 }
%"class.rmg::internal::ParticleShader" = type { %"class.rmg::internal::Shader.base", i32, i32, i32, i32, i32, i32, i32 }
%"class.rmg::internal::Line3DShader" = type { %"class.rmg::internal::Shader.base", i32, i32, i32, i32, i32 }
%"class.rmg::internal::ContextLoader" = type { %"class.rmg::internal::PendingStack" }
%"class.rmg::internal::PendingStack" = type <{ ptr, %"class.rmg::internal::Pending", i32, [4 x i8] }>
%"class.rmg::internal::Pending" = type { ptr, ptr }
%"class.rmg::internal::GLContext" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@_ZN3rmg7Context11contextListE = external dso_local global { ptr, ptr, i32 }, align 8

; 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 noundef ptr @_ZN3rmg7Context14getContextByIDEj(i32 noundef %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.rmg::ContextList::iterator", align 8
  %5 = alloca %"class.rmg::ContextList::iterator", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.rmg::ContextList::iterator", align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #3
  %8 = call { ptr, ptr } @_ZNK3rmg11ContextList5beginEv(ptr noundef nonnull align 8 dereferenceable(20) @_ZN3rmg7Context11contextListE)
  %9 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 0
  %10 = extractvalue { ptr, ptr } %8, 0
  store ptr %10, ptr %9, align 8
  %11 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 1
  %12 = extractvalue { ptr, ptr } %8, 1
  store ptr %12, ptr %11, align 8
  br label %13

13:                                               ; preds = %30, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #3
  %14 = call { ptr, ptr } @_ZNK3rmg11ContextList3endEv(ptr noundef nonnull align 8 dereferenceable(20) @_ZN3rmg7Context11contextListE)
  %15 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
  %16 = extractvalue { ptr, ptr } %14, 0
  store ptr %16, ptr %15, align 8
  %17 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
  %18 = extractvalue { ptr, ptr } %14, 1
  store ptr %18, ptr %17, align 8
  %19 = call noundef zeroext i1 @_ZN3rmg11ContextList8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #3
  br i1 %19, label %21, label %20

20:                                               ; preds = %13
  store i32 2, ptr %6, align 4
  br label %36

21:                                               ; preds = %13
  %22 = call noundef ptr @_ZN3rmg11ContextList8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %23 = getelementptr inbounds %"class.rmg::Context", ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = icmp eq i32 %24, %25
  br i1 %26, label %27, label %29

27:                                               ; preds = %21
  %28 = call noundef nonnull align 8 dereferenceable(1440) ptr @_ZN3rmg11ContextList8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  store ptr %28, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %36

29:                                               ; preds = %21
  br label %30

30:                                               ; preds = %29
  %31 = call { ptr, ptr } @_ZN3rmg11ContextList8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef 0)
  %32 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 0
  %33 = extractvalue { ptr, ptr } %31, 0
  store ptr %33, ptr %32, align 8
  %34 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 1
  %35 = extractvalue { ptr, ptr } %31, 1
  store ptr %35, ptr %34, align 8
  br label %13, !llvm.loop !39

36:                                               ; preds = %27, %20
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #3
  %37 = load i32, ptr %6, align 4
  switch i32 %37, label %41 [
    i32 2, label %38
    i32 1, label %39
  ]

38:                                               ; preds = %36
  store ptr null, ptr %2, align 8
  br label %39

39:                                               ; preds = %38, %36
  %40 = load ptr, ptr %2, align 8
  ret ptr %40

41:                                               ; preds = %36
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK3rmg11ContextList5beginEv(ptr noundef nonnull align 8 dereferenceable(20)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3rmg11ContextList8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK3rmg11ContextList3endEv(ptr noundef nonnull align 8 dereferenceable(20)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN3rmg11ContextList8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN3rmg7ContextE", !6, i64 8, !11, i64 12, !11, i64 14, !12, i64 16, !14, i64 32, !15, i64 296, !15, i64 308, !12, i64 320, !19, i64 336, !19, i64 360, !19, i64 384, !19, i64 408, !19, i64 432, !22, i64 456, !24, i64 480, !26, i64 504, !28, i64 568, !29, i64 904, !32, i64 1016, !33, i64 1056, !34, i64 1088, !37, i64 1120, !38, i64 1424, !13, i64 1428, !38, i64 1432, !6, i64 1436}
!11 = !{!"short", !7, i64 0}
!12 = !{!"_ZTSN3rmg9ColorRGBAE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTSN3rmg6CameraE", !15, i64 0, !16, i64 12, !17, i64 48, !17, i64 112, !17, i64 176, !13, i64 240, !13, i64 244, !13, i64 248, !13, i64 252, !13, i64 256, !18, i64 260}
!15 = !{!"_ZTSN3rmg4Vec3E", !7, i64 0}
!16 = !{!"_ZTSN3rmg4Mat3E", !7, i64 0}
!17 = !{!"_ZTSN3rmg4Mat4E", !7, i64 0}
!18 = !{!"_ZTSN3rmg14ProjectionModeE", !7, i64 0}
!19 = !{!"_ZTSN3rmg10ObjectListE", !20, i64 0}
!20 = !{!"_ZTSN3rmg10LinkedListINS_6ObjectEEE", !21, i64 0, !21, i64 8, !6, i64 16}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!"_ZTSN3rmg12MaterialListE", !23, i64 0}
!23 = !{!"_ZTSN3rmg10LinkedListINS_8MaterialEEE", !21, i64 0, !21, i64 8, !6, i64 16}
!24 = !{!"_ZTSN3rmg8FontListE", !25, i64 0}
!25 = !{!"_ZTSN3rmg10LinkedListINS_4FontEEE", !21, i64 0, !21, i64 8, !6, i64 16}
!26 = !{!"_ZTSN3rmg8internal13GeneralShaderE", !27, i64 0, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56}
!27 = !{!"_ZTSN3rmg8internal6ShaderE", !6, i64 8}
!28 = !{!"_ZTSN3rmg8internal15ShadowMapShaderE", !27, i64 0, !14, i64 12, !15, i64 276, !15, i64 288, !15, i64 300, !13, i64 312, !13, i64 316, !13, i64 320, !6, i64 324, !6, i64 328, !6, i64 332}
!29 = !{!"_ZTSN3rmg8internal14Object2DShaderE", !30, i64 0, !31, i64 32, !16, i64 72, !11, i64 108, !11, i64 110}
!30 = !{!"_ZTSN3rmg8internal12SpriteShaderE", !27, i64 0, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!31 = !{!"_ZTSN3rmg8internal12Text2DShaderE", !27, i64 0, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36}
!32 = !{!"_ZTSN3rmg8internal14ParticleShaderE", !27, i64 0, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36}
!33 = !{!"_ZTSN3rmg8internal12Line3DShaderE", !27, i64 0, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!34 = !{!"_ZTSN3rmg8internal13ContextLoaderE", !35, i64 0}
!35 = !{!"_ZTSN3rmg8internal12PendingStackE", !21, i64 0, !36, i64 8, !6, i64 24}
!36 = !{!"_ZTSN3rmg8internal7PendingE", !21, i64 0, !21, i64 8}
!37 = !{!"_ZTSN3rmg8internal9GLContextE", !21, i64 0, !21, i64 8, !21, i64 16, !21, i64 24, !21, i64 32, !21, i64 40, !21, i64 48, !21, i64 56, !21, i64 64, !21, i64 72, !21, i64 80, !21, i64 88, !21, i64 96, !21, i64 104, !21, i64 112, !21, i64 120, !21, i64 128, !21, i64 136, !21, i64 144, !21, i64 152, !21, i64 160, !21, i64 168, !21, i64 176, !21, i64 184, !21, i64 192, !21, i64 200, !21, i64 208, !21, i64 216, !21, i64 224, !21, i64 232, !21, i64 240, !21, i64 248, !21, i64 256, !21, i64 264, !21, i64 272, !21, i64 280, !21, i64 288, !21, i64 296}
!38 = !{!"bool", !7, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"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.rmg::ContextList::iterator" = type { ptr, ptr }

@_ZN3rmg7Context11contextListE = external dso_local global { ptr, ptr, i32 }, align 8

; 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 uwtable
define dso_local noundef ptr @_ZN3rmg7Context14getContextByIDEj(i32 noundef %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.rmg::ContextList::iterator", align 8
  %3 = alloca %"class.rmg::ContextList::iterator", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
  %4 = tail call { ptr, ptr } @_ZNK3rmg11ContextList5beginEv(ptr noundef nonnull align 8 dereferenceable(20) @_ZN3rmg7Context11contextListE)
  %5 = extractvalue { ptr, ptr } %4, 0
  store ptr %5, ptr %2, align 8
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  %7 = extractvalue { ptr, ptr } %4, 1
  store ptr %7, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  %8 = tail call { ptr, ptr } @_ZNK3rmg11ContextList3endEv(ptr noundef nonnull align 8 dereferenceable(20) @_ZN3rmg7Context11contextListE)
  %9 = extractvalue { ptr, ptr } %8, 0
  store ptr %9, ptr %3, align 8
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  %11 = extractvalue { ptr, ptr } %8, 1
  store ptr %11, ptr %10, align 8
  %12 = call noundef zeroext i1 @_ZN3rmg11ContextList8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  br i1 %12, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %1, %19
  %13 = call noundef ptr @_ZN3rmg11ContextList8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = icmp eq i32 %15, %0
  br i1 %16, label %17, label %19

17:                                               ; preds = %.lr.ph
  %18 = call noundef nonnull align 8 dereferenceable(1440) ptr @_ZN3rmg11ContextList8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br label %.loopexit

19:                                               ; preds = %.lr.ph
  %20 = call { ptr, ptr } @_ZN3rmg11ContextList8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  %21 = call { ptr, ptr } @_ZNK3rmg11ContextList3endEv(ptr noundef nonnull align 8 dereferenceable(20) @_ZN3rmg7Context11contextListE)
  %22 = extractvalue { ptr, ptr } %21, 0
  store ptr %22, ptr %3, align 8
  %23 = extractvalue { ptr, ptr } %21, 1
  store ptr %23, ptr %10, align 8
  %24 = call noundef zeroext i1 @_ZN3rmg11ContextList8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  br i1 %24, label %.lr.ph, label %.loopexit, !llvm.loop !38

.loopexit:                                        ; preds = %19, %1, %17
  %spec.select = phi ptr [ %18, %17 ], [ null, %1 ], [ null, %19 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
  ret ptr %spec.select
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK3rmg11ContextList5beginEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3rmg11ContextList8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK3rmg11ContextList3endEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN3rmg11ContextList8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
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 = { 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, !7, i64 8}
!6 = !{!"_ZTSN3rmg7ContextE", !7, i64 8, !10, i64 12, !10, i64 14, !11, i64 16, !13, i64 32, !14, i64 296, !14, i64 308, !11, i64 320, !18, i64 336, !18, i64 360, !18, i64 384, !18, i64 408, !18, i64 432, !21, i64 456, !23, i64 480, !25, i64 504, !27, i64 568, !28, i64 904, !31, i64 1016, !32, i64 1056, !33, i64 1088, !36, i64 1120, !37, i64 1424, !12, i64 1428, !37, i64 1432, !7, i64 1436}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"_ZTSN3rmg9ColorRGBAE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTSN3rmg6CameraE", !14, i64 0, !15, i64 12, !16, i64 48, !16, i64 112, !16, i64 176, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !17, i64 260}
!14 = !{!"_ZTSN3rmg4Vec3E", !8, i64 0}
!15 = !{!"_ZTSN3rmg4Mat3E", !8, i64 0}
!16 = !{!"_ZTSN3rmg4Mat4E", !8, i64 0}
!17 = !{!"_ZTSN3rmg14ProjectionModeE", !8, i64 0}
!18 = !{!"_ZTSN3rmg10ObjectListE", !19, i64 0}
!19 = !{!"_ZTSN3rmg10LinkedListINS_6ObjectEEE", !20, i64 0, !20, i64 8, !7, i64 16}
!20 = !{!"any pointer", !8, i64 0}
!21 = !{!"_ZTSN3rmg12MaterialListE", !22, i64 0}
!22 = !{!"_ZTSN3rmg10LinkedListINS_8MaterialEEE", !20, i64 0, !20, i64 8, !7, i64 16}
!23 = !{!"_ZTSN3rmg8FontListE", !24, i64 0}
!24 = !{!"_ZTSN3rmg10LinkedListINS_4FontEEE", !20, i64 0, !20, i64 8, !7, i64 16}
!25 = !{!"_ZTSN3rmg8internal13GeneralShaderE", !26, i64 0, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56}
!26 = !{!"_ZTSN3rmg8internal6ShaderE", !7, i64 8}
!27 = !{!"_ZTSN3rmg8internal15ShadowMapShaderE", !26, i64 0, !13, i64 12, !14, i64 276, !14, i64 288, !14, i64 300, !12, i64 312, !12, i64 316, !12, i64 320, !7, i64 324, !7, i64 328, !7, i64 332}
!28 = !{!"_ZTSN3rmg8internal14Object2DShaderE", !29, i64 0, !30, i64 32, !15, i64 72, !10, i64 108, !10, i64 110}
!29 = !{!"_ZTSN3rmg8internal12SpriteShaderE", !26, i64 0, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!30 = !{!"_ZTSN3rmg8internal12Text2DShaderE", !26, i64 0, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36}
!31 = !{!"_ZTSN3rmg8internal14ParticleShaderE", !26, i64 0, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36}
!32 = !{!"_ZTSN3rmg8internal12Line3DShaderE", !26, i64 0, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!33 = !{!"_ZTSN3rmg8internal13ContextLoaderE", !34, i64 0}
!34 = !{!"_ZTSN3rmg8internal12PendingStackE", !20, i64 0, !35, i64 8, !7, i64 24}
!35 = !{!"_ZTSN3rmg8internal7PendingE", !20, i64 0, !20, i64 8}
!36 = !{!"_ZTSN3rmg8internal9GLContextE", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !20, i64 32, !20, i64 40, !20, i64 48, !20, i64 56, !20, i64 64, !20, i64 72, !20, i64 80, !20, i64 88, !20, i64 96, !20, i64 104, !20, i64 112, !20, i64 120, !20, i64 128, !20, i64 136, !20, i64 144, !20, i64 152, !20, i64 160, !20, i64 168, !20, i64 176, !20, i64 184, !20, i64 192, !20, i64 200, !20, i64 208, !20, i64 216, !20, i64 224, !20, i64 232, !20, i64 240, !20, i64 248, !20, i64 256, !20, i64 264, !20, i64 272, !20, i64 280, !20, i64 288, !20, i64 296}
!37 = !{!"bool", !8, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}


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