; LLVM IR from paroj/gltut :: Tut 17 Spotlight on Textures/CubePointLight.ll (Z8keyboardhii)

; 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.TexDef = type { ptr, ptr }
%"class.glutil::ViewPole" = type <{ %"class.glutil::ViewProvider", %"struct.glutil::ViewData", %"struct.glutil::ViewScale", %"struct.glutil::ViewData", i32, i8, i8, [2 x i8], i32, float, %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat", [4 x i8] }>
%"class.glutil::ViewProvider" = type { ptr }
%"struct.glutil::ViewScale" = type { float, float, float, float, float, float, float }
%"struct.glutil::ViewData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat", float, float }
%"struct.glm::detail::tvec3" = type { %union.anon.2 }
%union.anon.2 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::detail::tvec2" = type { %union.anon.5 }
%union.anon.5 = type { %struct.anon.6 }
%struct.anon.6 = type { i32, i32 }
%"struct.glm::detail::tquat" = type { float, float, float, float }
%"class.glutil::ObjectPole" = type { ptr, %"struct.glutil::ObjectData", %"struct.glutil::ObjectData", float, i32, i32, i8, %"struct.glm::detail::tvec2", %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat" }
%"struct.glutil::ObjectData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat" }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }

@g_texDefs = external dso_local global [2 x %struct.TexDef], align 16
@g_currTextureIndex = external dso_local global i32, align 4
@_ZTISt9exception = external constant ptr
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@g_viewPole = external dso_local global %"class.glutil::ViewPole", align 8
@g_lightPole = external dso_local global %"class.glutil::ObjectPole", align 8
@g_pScene = external dso_local global ptr, align 8
@g_timer = external dso_local global %"class.Framework::Timer", align 4
@g_bDrawCameraPos = external dso_local global i8, align 1
@g_bShowOtherLights = external dso_local global i8, align 1
@.str.32 = external hidden unnamed_addr constant [30 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

declare ptr @__cxa_begin_catch(ptr)

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

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17LoadAndSetupScenev() #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8keyboardhii(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) #6 personality ptr @__gxx_personality_v0 {
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store i8 %0, ptr %4, align 1, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !8
  store i32 %2, ptr %6, align 4, !tbaa !8
  %11 = load i8, ptr %4, align 1, !tbaa !5
  %12 = zext i8 %11 to i32
  switch i32 %12, label %57 [
    i32 27, label %13
    i32 32, label %18
    i32 116, label %19
    i32 103, label %24
    i32 112, label %29
    i32 13, label %31
  ]

13:                                               ; preds = %3
  %14 = load ptr, ptr @g_pScene, align 8, !tbaa !10
  %15 = icmp eq ptr %14, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @_ZN9Framework5SceneD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @_ZdlPvm(ptr noundef %14, i64 noundef 8) #9
  br label %17

17:                                               ; preds = %16, %13
  store ptr null, ptr @g_pScene, align 8, !tbaa !10
  call void @glutLeaveMainLoop()
  br label %79

18:                                               ; preds = %3
  call void @_ZN6glutil10ObjectPole5ResetEv(ptr noundef nonnull align 8 dereferenceable(112) @g_lightPole)
  br label %57

19:                                               ; preds = %3
  %20 = load i8, ptr @g_bDrawCameraPos, align 1, !tbaa !12, !range !14, !noundef !15
  %21 = trunc i8 %20 to i1
  %22 = xor i1 %21, true
  %23 = zext i1 %22 to i8
  store i8 %23, ptr @g_bDrawCameraPos, align 1, !tbaa !12
  br label %57

24:                                               ; preds = %3
  %25 = load i8, ptr @g_bShowOtherLights, align 1, !tbaa !12, !range !14, !noundef !15
  %26 = trunc i8 %25 to i1
  %27 = xor i1 %26, true
  %28 = zext i1 %27 to i8
  store i8 %28, ptr @g_bShowOtherLights, align 1, !tbaa !12
  br label %57

29:                                               ; preds = %3
  %30 = call noundef zeroext i1 @_ZN9Framework5Timer11TogglePauseEv(ptr noundef nonnull align 4 dereferenceable(20) @g_timer)
  br label %57

31:                                               ; preds = %3
  invoke void @_Z17LoadAndSetupScenev()
          to label %32 unwind label %33

32:                                               ; preds = %31
  br label %56

33:                                               ; preds = %31
  %34 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %7, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %8, align 4
  br label %37

37:                                               ; preds = %33
  %38 = load i32, ptr %8, align 4
  %39 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %40 = icmp eq i32 %38, %39
  br i1 %40, label %41, label %80

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %42 = load ptr, ptr %7, align 8
  %43 = call ptr @__cxa_begin_catch(ptr %42) #8
  store ptr %43, ptr %9, align 8
  %44 = load ptr, ptr %9, align 8, !tbaa !10
  %45 = load ptr, ptr %44, align 8, !tbaa !16
  %46 = getelementptr inbounds ptr, ptr %45, i64 2
  %47 = load ptr, ptr %46, align 8
  %48 = call noundef ptr %47(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  %49 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %48)
          to label %50 unwind label %51

50:                                               ; preds = %41
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %79

51:                                               ; preds = %41
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  invoke void @__cxa_end_catch()
          to label %55 unwind label %85

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %80

56:                                               ; preds = %32
  br label %57

57:                                               ; preds = %56, %29, %24, %19, %18, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %58 = load i8, ptr %4, align 1, !tbaa !5
  %59 = zext i8 %58 to i32
  %60 = sub nsw i32 %59, 49
  store i32 %60, ptr %10, align 4, !tbaa !8
  %61 = load i32, ptr %10, align 4, !tbaa !8
  %62 = icmp sle i32 0, %61
  br i1 %62, label %63, label %76

63:                                               ; preds = %57
  %64 = load i32, ptr %10, align 4, !tbaa !8
  %65 = icmp slt i32 %64, 2
  br i1 %65, label %66, label %76

66:                                               ; preds = %63
  %67 = load i8, ptr %4, align 1, !tbaa !5
  %68 = zext i8 %67 to i32
  %69 = sub nsw i32 %68, 49
  store i32 %69, ptr @g_currTextureIndex, align 4, !tbaa !8
  %70 = load i32, ptr @g_currTextureIndex, align 4, !tbaa !8
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [2 x %struct.TexDef], ptr @g_texDefs, i64 0, i64 %71
  %73 = getelementptr inbounds %struct.TexDef, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %74)
  br label %76

76:                                               ; preds = %66, %63, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %77 = load i8, ptr %4, align 1, !tbaa !5
  call void @_ZN6glutil8ViewPole9CharPressEc(ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole, i8 noundef signext %77)
  %78 = load i8, ptr %4, align 1, !tbaa !5
  call void @_ZN6glutil10ObjectPole9CharPressEc(ptr noundef nonnull align 8 dereferenceable(112) @g_lightPole, i8 noundef signext %78)
  br label %79

79:                                               ; preds = %76, %50, %17
  ret void

80:                                               ; preds = %55, %37
  %81 = load ptr, ptr %7, align 8
  %82 = load i32, ptr %8, align 4
  %83 = insertvalue { ptr, i32 } poison, ptr %81, 0
  %84 = insertvalue { ptr, i32 } %83, i32 %82, 1
  resume { ptr, i32 } %84

85:                                               ; preds = %51
  %86 = landingpad { ptr, i32 }
          catch ptr null
  %87 = extractvalue { ptr, i32 } %86, 0
  call void @__clang_call_terminate(ptr %87) #10
  unreachable
}

; Function Attrs: nounwind
declare void @_ZN9Framework5SceneD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

declare void @glutLeaveMainLoop() #2

declare void @_ZN6glutil10ObjectPole5ResetEv(ptr noundef nonnull align 8 dereferenceable(112)) #2

declare noundef zeroext i1 @_ZN9Framework5Timer11TogglePauseEv(ptr noundef nonnull align 4 dereferenceable(20)) #2

declare void @_ZN6glutil8ViewPole9CharPressEc(ptr noundef nonnull align 8 dereferenceable(148), i8 noundef signext) #2

declare void @_ZN6glutil10ObjectPole9CharPressEc(ptr noundef nonnull align 8 dereferenceable(112), i8 noundef signext) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind memory(none) }
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 = { noinline noreturn nounwind uwtable "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"="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 #5 = { 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 #6 = { 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 #7 = { 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 nounwind }
attributes #10 = { noreturn 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, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !6, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !7, i64 0}
!18 = !{!19, !11, i64 8}
!19 = !{!"_ZTS6TexDef", !11, i64 0, !11, 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.TexDef = type { ptr, ptr }
%"class.glutil::ViewPole" = type <{ %"class.glutil::ViewProvider", %"struct.glutil::ViewData", %"struct.glutil::ViewScale", %"struct.glutil::ViewData", i32, i8, i8, [2 x i8], i32, float, %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat", [4 x i8] }>
%"class.glutil::ViewProvider" = type { ptr }
%"struct.glutil::ViewScale" = type { float, float, float, float, float, float, float }
%"struct.glutil::ViewData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat", float, float }
%"struct.glm::detail::tvec3" = type { %union.anon.2 }
%union.anon.2 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::detail::tvec2" = type { %union.anon.5 }
%union.anon.5 = type { %struct.anon.6 }
%struct.anon.6 = type { i32, i32 }
%"struct.glm::detail::tquat" = type { float, float, float, float }
%"class.glutil::ObjectPole" = type { ptr, %"struct.glutil::ObjectData", %"struct.glutil::ObjectData", float, i32, i32, i8, %"struct.glm::detail::tvec2", %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat" }
%"struct.glutil::ObjectData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat" }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }

@g_texDefs = external dso_local local_unnamed_addr global [2 x %struct.TexDef], align 16
@g_currTextureIndex = external dso_local local_unnamed_addr global i32, align 4
@_ZTISt9exception = external constant ptr
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@g_viewPole = external dso_local global %"class.glutil::ViewPole", align 8
@g_lightPole = external dso_local global %"class.glutil::ObjectPole", align 8
@g_pScene = external dso_local local_unnamed_addr global ptr, align 8
@g_timer = external dso_local global %"class.Framework::Timer", align 4
@g_bDrawCameraPos = external dso_local local_unnamed_addr global i8, align 1
@g_bShowOtherLights = external dso_local local_unnamed_addr global i8, align 1
@.str.32 = external hidden unnamed_addr constant [30 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #0

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17LoadAndSetupScenev() local_unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8keyboardhii(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %4 = zext i8 %0 to i32
  switch i8 %0, label %33 [
    i8 27, label %5
    i8 32, label %10
    i8 116, label %11
    i8 103, label %14
    i8 112, label %17
    i8 13, label %19
  ]

5:                                                ; preds = %3
  %6 = load ptr, ptr @g_pScene, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %9, label %8

8:                                                ; preds = %5
  tail call void @_ZN9Framework5SceneD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %6, i64 noundef 8) #8
  br label %9

9:                                                ; preds = %8, %5
  store ptr null, ptr @g_pScene, align 8, !tbaa !5
  tail call void @glutLeaveMainLoop()
  br label %41

10:                                               ; preds = %3
  tail call void @_ZN6glutil10ObjectPole5ResetEv(ptr noundef nonnull align 8 dereferenceable(112) @g_lightPole)
  br label %.thread

11:                                               ; preds = %3
  %12 = load i8, ptr @g_bDrawCameraPos, align 1, !tbaa !9, !range !11, !noundef !12
  %13 = xor i8 %12, 1
  store i8 %13, ptr @g_bDrawCameraPos, align 1, !tbaa !9
  br label %.thread

14:                                               ; preds = %3
  %15 = load i8, ptr @g_bShowOtherLights, align 1, !tbaa !9, !range !11, !noundef !12
  %16 = xor i8 %15, 1
  store i8 %16, ptr @g_bShowOtherLights, align 1, !tbaa !9
  br label %.thread

17:                                               ; preds = %3
  %18 = tail call noundef zeroext i1 @_ZN9Framework5Timer11TogglePauseEv(ptr noundef nonnull align 4 dereferenceable(20) @g_timer)
  br label %.thread

19:                                               ; preds = %3
  invoke void @_Z17LoadAndSetupScenev()
          to label %.thread unwind label %20

20:                                               ; preds = %19
  %21 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
  %22 = extractvalue { ptr, i32 } %21, 1
  %23 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %24 = icmp eq i32 %22, %23
  br i1 %24, label %25, label %42

25:                                               ; preds = %20
  %26 = extractvalue { ptr, i32 } %21, 0
  %27 = tail call ptr @__cxa_begin_catch(ptr %26) #7
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %30 = load ptr, ptr %29, align 8
  %31 = tail call noundef ptr %30(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef %31)
  tail call void @__cxa_end_catch()
  br label %41

33:                                               ; preds = %3
  %34 = add i8 %0, -49
  %or.cond = icmp ult i8 %34, 2
  br i1 %or.cond, label %35, label %.thread

35:                                               ; preds = %33
  %36 = add nsw i32 %4, -49
  store i32 %36, ptr @g_currTextureIndex, align 4, !tbaa !15
  %37 = zext nneg i32 %36 to i64
  %38 = getelementptr inbounds [2 x %struct.TexDef], ptr @g_texDefs, i64 0, i64 %37, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %39)
  br label %.thread

.thread:                                          ; preds = %10, %11, %14, %17, %19, %35, %33
  tail call void @_ZN6glutil8ViewPole9CharPressEc(ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole, i8 noundef signext %0)
  tail call void @_ZN6glutil10ObjectPole9CharPressEc(ptr noundef nonnull align 8 dereferenceable(112) @g_lightPole, i8 noundef signext %0)
  br label %41

41:                                               ; preds = %.thread, %25, %9
  ret void

42:                                               ; preds = %20
  resume { ptr, i32 } %21
}

; Function Attrs: nounwind
declare void @_ZN9Framework5SceneD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare void @glutLeaveMainLoop() local_unnamed_addr #6

declare void @_ZN6glutil10ObjectPole5ResetEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #6

declare noundef zeroext i1 @_ZN9Framework5Timer11TogglePauseEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #6

declare void @_ZN6glutil8ViewPole9CharPressEc(ptr noundef nonnull align 8 dereferenceable(148), i8 noundef signext) local_unnamed_addr #6

declare void @_ZN6glutil10ObjectPole9CharPressEc(ptr noundef nonnull align 8 dereferenceable(112), i8 noundef signext) local_unnamed_addr #6

attributes #0 = { nofree nosync nounwind memory(none) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 "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 = { "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 = { nounwind }
attributes #8 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTS6TexDef", !6, i64 0, !6, i64 8}


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