; LLVM IR from paroj/gltut :: Tut 10 Plane Lights/FragmentAttenuation.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"

%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }

@g_pCylinderMesh = external dso_local global ptr, align 8
@g_pPlaneMesh = external dso_local global ptr, align 8
@g_pCubeMesh = external dso_local global ptr, align 8
@g_LightTimer = external dso_local global %"class.Framework::Timer", align 4
@_ZL14g_fLightHeight = external hidden global float, align 4
@_ZL14g_fLightRadius = external hidden global float, align 4
@_ZL19g_fLightAttenuation = external hidden global float, align 4
@_ZL13g_bUseRSquare = external hidden global i8, align 1
@_ZL11g_bScaleCyl = external hidden global i8, align 1
@_ZL17g_bDrawColoredCyl = external hidden global i8, align 1
@_ZL12g_bDrawLight = external hidden global i8, align 1
@.str.27 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [11 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8keyboardhii(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) #3 {
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = 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
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 0, ptr %7, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  store i8 0, ptr %8, align 1, !tbaa !10
  %10 = load i8, ptr %4, align 1, !tbaa !5
  %11 = zext i8 %10 to i32
  switch i32 %11, label %90 [
    i32 27, label %12
    i32 32, label %25
    i32 105, label %30
    i32 107, label %33
    i32 108, label %36
    i32 106, label %39
    i32 73, label %42
    i32 75, label %45
    i32 76, label %48
    i32 74, label %51
    i32 111, label %54
    i32 117, label %57
    i32 79, label %60
    i32 85, label %63
    i32 121, label %66
    i32 116, label %71
    i32 98, label %76
    i32 104, label %78
  ]

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

15:                                               ; preds = %12
  call void @_ZN9Framework4MeshD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @_ZdlPvm(ptr noundef %13, i64 noundef 8) #6
  br label %16

16:                                               ; preds = %15, %12
  %17 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !12
  %18 = icmp eq ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @_ZN9Framework4MeshD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @_ZdlPvm(ptr noundef %17, i64 noundef 8) #6
  br label %20

20:                                               ; preds = %19, %16
  %21 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !12
  %22 = icmp eq ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @_ZN9Framework4MeshD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @_ZdlPvm(ptr noundef %21, i64 noundef 8) #6
  br label %24

24:                                               ; preds = %23, %20
  call void @glutLeaveMainLoop()
  store i32 1, ptr %9, align 4
  br label %106

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

30:                                               ; preds = %3
  %31 = load float, ptr @_ZL14g_fLightHeight, align 4, !tbaa !16
  %32 = fadd float %31, 0x3FC99999A0000000
  store float %32, ptr @_ZL14g_fLightHeight, align 4, !tbaa !16
  br label %90

33:                                               ; preds = %3
  %34 = load float, ptr @_ZL14g_fLightHeight, align 4, !tbaa !16
  %35 = fsub float %34, 0x3FC99999A0000000
  store float %35, ptr @_ZL14g_fLightHeight, align 4, !tbaa !16
  br label %90

36:                                               ; preds = %3
  %37 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  %38 = fadd float %37, 0x3FC99999A0000000
  store float %38, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  br label %90

39:                                               ; preds = %3
  %40 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  %41 = fsub float %40, 0x3FC99999A0000000
  store float %41, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  br label %90

42:                                               ; preds = %3
  %43 = load float, ptr @_ZL14g_fLightHeight, align 4, !tbaa !16
  %44 = fadd float %43, 0x3FA99999A0000000
  store float %44, ptr @_ZL14g_fLightHeight, align 4, !tbaa !16
  br label %90

45:                                               ; preds = %3
  %46 = load float, ptr @_ZL14g_fLightHeight, align 4, !tbaa !16
  %47 = fsub float %46, 0x3FA99999A0000000
  store float %47, ptr @_ZL14g_fLightHeight, align 4, !tbaa !16
  br label %90

48:                                               ; preds = %3
  %49 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  %50 = fadd float %49, 0x3FA99999A0000000
  store float %50, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  br label %90

51:                                               ; preds = %3
  %52 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  %53 = fsub float %52, 0x3FA99999A0000000
  store float %53, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  br label %90

54:                                               ; preds = %3
  %55 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  %56 = fmul float %55, 1.500000e+00
  store float %56, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  store i8 1, ptr %7, align 1, !tbaa !10
  br label %90

57:                                               ; preds = %3
  %58 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  %59 = fdiv float %58, 1.500000e+00
  store float %59, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  store i8 1, ptr %7, align 1, !tbaa !10
  br label %90

60:                                               ; preds = %3
  %61 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  %62 = fmul float %61, 0x3FF19999A0000000
  store float %62, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  store i8 1, ptr %7, align 1, !tbaa !10
  br label %90

63:                                               ; preds = %3
  %64 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  %65 = fdiv float %64, 0x3FF19999A0000000
  store float %65, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  store i8 1, ptr %7, align 1, !tbaa !10
  br label %90

66:                                               ; preds = %3
  %67 = load i8, ptr @_ZL12g_bDrawLight, align 1, !tbaa !10, !range !14, !noundef !15
  %68 = trunc i8 %67 to i1
  %69 = xor i1 %68, true
  %70 = zext i1 %69 to i8
  store i8 %70, ptr @_ZL12g_bDrawLight, align 1, !tbaa !10
  br label %90

71:                                               ; preds = %3
  %72 = load i8, ptr @_ZL11g_bScaleCyl, align 1, !tbaa !10, !range !14, !noundef !15
  %73 = trunc i8 %72 to i1
  %74 = xor i1 %73, true
  %75 = zext i1 %74 to i8
  store i8 %75, ptr @_ZL11g_bScaleCyl, align 1, !tbaa !10
  br label %90

76:                                               ; preds = %3
  %77 = call noundef zeroext i1 @_ZN9Framework5Timer11TogglePauseEv(ptr noundef nonnull align 4 dereferenceable(20) @g_LightTimer)
  br label %90

78:                                               ; preds = %3
  %79 = load i8, ptr @_ZL13g_bUseRSquare, align 1, !tbaa !10, !range !14, !noundef !15
  %80 = trunc i8 %79 to i1
  %81 = xor i1 %80, true
  %82 = zext i1 %81 to i8
  store i8 %82, ptr @_ZL13g_bUseRSquare, align 1, !tbaa !10
  %83 = load i8, ptr @_ZL13g_bUseRSquare, align 1, !tbaa !10, !range !14, !noundef !15
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %87

85:                                               ; preds = %78
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  br label %89

87:                                               ; preds = %78
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  br label %89

89:                                               ; preds = %87, %85
  br label %90

90:                                               ; preds = %89, %76, %71, %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %25, %3
  %91 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  %92 = fcmp olt float %91, 0x3FC99999A0000000
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  store float 0x3FC99999A0000000, ptr @_ZL14g_fLightRadius, align 4, !tbaa !16
  br label %94

94:                                               ; preds = %93, %90
  %95 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  %96 = fcmp olt float %95, 0x3FB99999A0000000
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  store float 0x3FB99999A0000000, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  br label %98

98:                                               ; preds = %97, %94
  %99 = load i8, ptr %7, align 1, !tbaa !10, !range !14, !noundef !15
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %105

101:                                              ; preds = %98
  %102 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !16
  %103 = fpext float %102 to double
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, double noundef %103)
  br label %105

105:                                              ; preds = %101, %98
  store i32 0, ptr %9, align 4
  br label %106

106:                                              ; preds = %105, %24
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  %107 = load i32, ptr %9, align 4
  switch i32 %107, label %109 [
    i32 0, label %108
    i32 1, label %108
  ]

108:                                              ; preds = %106, %106
  ret void

109:                                              ; preds = %106
  unreachable
}

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

declare void @glutLeaveMainLoop() #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = { nounwind }
attributes #6 = { 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 = !{!"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 = !{!"bool", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !6, i64 0}


; 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.Framework::Timer" = type { i32, float, i8, i8, float, float }

@g_pCylinderMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pPlaneMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pCubeMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_LightTimer = external dso_local global %"class.Framework::Timer", align 4
@_ZL14g_fLightHeight = external hidden local_unnamed_addr global float, align 4
@_ZL14g_fLightRadius = external hidden local_unnamed_addr global float, align 4
@_ZL19g_fLightAttenuation = external hidden local_unnamed_addr global float, align 4
@_ZL13g_bUseRSquare = external hidden local_unnamed_addr global i8, align 1
@_ZL11g_bScaleCyl = external hidden local_unnamed_addr global i8, align 1
@_ZL17g_bDrawColoredCyl = external hidden local_unnamed_addr global i8, align 1
@_ZL12g_bDrawLight = external hidden local_unnamed_addr global i8, align 1
@.str.27 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [11 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8keyboardhii(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  switch i8 %0, label %thread-pre-split [
    i8 27, label %4
    i8 32, label %17
    i8 105, label %20
    i8 107, label %23
    i8 108, label %26
    i8 106, label %29
    i8 73, label %32
    i8 75, label %35
    i8 76, label %38
    i8 74, label %41
    i8 111, label %44
    i8 117, label %47
    i8 79, label %50
    i8 85, label %53
    i8 121, label %56
    i8 116, label %59
    i8 98, label %62
    i8 104, label %64
  ]

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

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

8:                                                ; preds = %7, %4
  %9 = load ptr, ptr @g_pCylinderMesh, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %12, label %11

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

12:                                               ; preds = %11, %8
  %13 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  tail call void @_ZN9Framework4MeshD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  tail call void @_ZdlPvm(ptr noundef nonnull %13, i64 noundef 8) #6
  br label %16

16:                                               ; preds = %15, %12
  tail call void @glutLeaveMainLoop()
  br label %85

17:                                               ; preds = %3
  %18 = load i8, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !9, !range !11, !noundef !12
  %19 = xor i8 %18, 1
  store i8 %19, ptr @_ZL17g_bDrawColoredCyl, align 1, !tbaa !9
  br label %thread-pre-split

20:                                               ; preds = %3
  %21 = load float, ptr @_ZL14g_fLightHeight, align 4, !tbaa !13
  %22 = fadd float %21, 0x3FC99999A0000000
  store float %22, ptr @_ZL14g_fLightHeight, align 4, !tbaa !13
  br label %thread-pre-split

23:                                               ; preds = %3
  %24 = load float, ptr @_ZL14g_fLightHeight, align 4, !tbaa !13
  %25 = fadd float %24, 0xBFC99999A0000000
  store float %25, ptr @_ZL14g_fLightHeight, align 4, !tbaa !13
  br label %thread-pre-split

26:                                               ; preds = %3
  %27 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  %28 = fadd float %27, 0x3FC99999A0000000
  store float %28, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  br label %72

29:                                               ; preds = %3
  %30 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  %31 = fadd float %30, 0xBFC99999A0000000
  store float %31, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  br label %72

32:                                               ; preds = %3
  %33 = load float, ptr @_ZL14g_fLightHeight, align 4, !tbaa !13
  %34 = fadd float %33, 0x3FA99999A0000000
  store float %34, ptr @_ZL14g_fLightHeight, align 4, !tbaa !13
  br label %thread-pre-split

35:                                               ; preds = %3
  %36 = load float, ptr @_ZL14g_fLightHeight, align 4, !tbaa !13
  %37 = fadd float %36, 0xBFA99999A0000000
  store float %37, ptr @_ZL14g_fLightHeight, align 4, !tbaa !13
  br label %thread-pre-split

38:                                               ; preds = %3
  %39 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  %40 = fadd float %39, 0x3FA99999A0000000
  store float %40, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  br label %72

41:                                               ; preds = %3
  %42 = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  %43 = fadd float %42, 0xBFA99999A0000000
  store float %43, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  br label %72

44:                                               ; preds = %3
  %45 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  %46 = fmul float %45, 1.500000e+00
  store float %46, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  br label %thread-pre-split

47:                                               ; preds = %3
  %48 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  %49 = fdiv float %48, 1.500000e+00
  store float %49, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  br label %thread-pre-split

50:                                               ; preds = %3
  %51 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  %52 = fmul float %51, 0x3FF19999A0000000
  store float %52, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  br label %thread-pre-split

53:                                               ; preds = %3
  %54 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  %55 = fdiv float %54, 0x3FF19999A0000000
  store float %55, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  br label %thread-pre-split

56:                                               ; preds = %3
  %57 = load i8, ptr @_ZL12g_bDrawLight, align 1, !tbaa !9, !range !11, !noundef !12
  %58 = xor i8 %57, 1
  store i8 %58, ptr @_ZL12g_bDrawLight, align 1, !tbaa !9
  br label %thread-pre-split

59:                                               ; preds = %3
  %60 = load i8, ptr @_ZL11g_bScaleCyl, align 1, !tbaa !9, !range !11, !noundef !12
  %61 = xor i8 %60, 1
  store i8 %61, ptr @_ZL11g_bScaleCyl, align 1, !tbaa !9
  br label %thread-pre-split

62:                                               ; preds = %3
  %63 = tail call noundef zeroext i1 @_ZN9Framework5Timer11TogglePauseEv(ptr noundef nonnull align 4 dereferenceable(20) @g_LightTimer)
  br label %thread-pre-split

64:                                               ; preds = %3
  %65 = load i8, ptr @_ZL13g_bUseRSquare, align 1, !tbaa !9, !range !11, !noundef !12
  %66 = trunc nuw i8 %65 to i1
  %67 = xor i8 %65, 1
  store i8 %67, ptr @_ZL13g_bUseRSquare, align 1, !tbaa !9
  br i1 %66, label %70, label %68

68:                                               ; preds = %64
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  br label %thread-pre-split

70:                                               ; preds = %64
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %3, %17, %20, %23, %32, %35, %44, %47, %50, %53, %56, %59, %62, %70, %68
  %.0.ph = phi i1 [ false, %17 ], [ false, %20 ], [ false, %23 ], [ false, %32 ], [ false, %35 ], [ true, %44 ], [ true, %47 ], [ true, %50 ], [ true, %53 ], [ false, %56 ], [ false, %59 ], [ false, %62 ], [ false, %70 ], [ false, %68 ], [ false, %3 ]
  %.pr = load float, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  br label %72

72:                                               ; preds = %thread-pre-split, %41, %38, %29, %26
  %73 = phi float [ %.pr, %thread-pre-split ], [ %43, %41 ], [ %40, %38 ], [ %31, %29 ], [ %28, %26 ]
  %.0 = phi i1 [ %.0.ph, %thread-pre-split ], [ false, %41 ], [ false, %38 ], [ false, %29 ], [ false, %26 ]
  %74 = fcmp olt float %73, 0x3FC99999A0000000
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  store float 0x3FC99999A0000000, ptr @_ZL14g_fLightRadius, align 4, !tbaa !13
  br label %76

76:                                               ; preds = %75, %72
  %77 = load float, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  %78 = fcmp olt float %77, 0x3FB99999A0000000
  br i1 %78, label %79, label %80

79:                                               ; preds = %76
  store float 0x3FB99999A0000000, ptr @_ZL19g_fLightAttenuation, align 4, !tbaa !13
  br label %80

80:                                               ; preds = %79, %76
  %81 = phi float [ 0x3FB99999A0000000, %79 ], [ %77, %76 ]
  br i1 %.0, label %82, label %85

82:                                               ; preds = %80
  %83 = fpext float %81 to double
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29, double noundef %83)
  br label %85

85:                                               ; preds = %80, %82, %16
  ret void
}

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

declare void @glutLeaveMainLoop() local_unnamed_addr #4

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

attributes #0 = { 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 #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"="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 "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 = { "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 }
attributes #6 = { 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 = !{!"float", !7, i64 0}


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