; LLVM IR from drohmer/cgp :: library/cgp/19_camera_controller/camera_controller_first_person/camera_controller_44457031 (stackIfLi4ELi4EEE)

; 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.cgp::matrix_stack" = type { %"struct.cgp::numarray_stack.5" }
%"struct.cgp::numarray_stack.5" = type { %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.cgp::numarray_stack.4" = type { float, float }
%"struct.cgp::camera_controller_generic_base" = type { i8, ptr, ptr }
%"struct.cgp::camera_controller_first_person" = type <{ %"struct.cgp::camera_controller_generic_base", %"struct.cgp::camera_first_person", float, float, i8, [7 x i8] }>
%"struct.cgp::camera_first_person" = type <{ %"struct.cgp::camera_generic_base", %"struct.cgp::rotation_transform", %"struct.cgp::numarray_stack.0", [4 x i8] }>
%"struct.cgp::camera_generic_base" = type { ptr }
%"struct.cgp::rotation_transform" = type { %"struct.cgp::quaternion" }
%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack.0" = type { float, float, float }
%"struct.cgp::input_devices" = type <{ %"struct.cgp::inputs_keyboard_parameters", %"struct.cgp::inputs_mouse_parameters", float, [4 x i8] }>
%"struct.cgp::inputs_keyboard_parameters" = type { i8, i8, i8, i8, i8, i8, %"struct.cgp::inputs_keyboard_last_action_parameter", %"class.std::set" }
%"struct.cgp::inputs_keyboard_last_action_parameter" = type { i32, i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.cgp::inputs_mouse_parameters" = type <{ %"struct.cgp::inputs_mouse_cursor_position_parameters", %"struct.cgp::inputs_mouse_cursor_click_parameters", float, i8, [3 x i8] }>
%"struct.cgp::inputs_mouse_cursor_position_parameters" = type { %"struct.cgp::numarray_stack.4", %"struct.cgp::numarray_stack.4" }
%"struct.cgp::inputs_mouse_cursor_click_parameters" = type { i8, i8, i32 }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [144 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@__func__._ZN3cgp30camera_controller_first_person10idle_frameERNS_12matrix_stackIfLi4ELi4EEE = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

declare void @_ZN3cgp19camera_first_person33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(36), float noundef, float noundef, float noundef) #4

declare void @_ZN3cgp19camera_first_person27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(36), float noundef) #4

declare void @_ZNK3cgp19camera_generic_base11matrix_viewEv(ptr dead_on_unwind writable sret(%"struct.cgp::matrix_stack") align 4, ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp30camera_controller_first_person10idle_frameERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 4 dereferenceable(64) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca %"struct.cgp::numarray_stack.4", align 4
  %26 = alloca i32, align 4
  %27 = alloca %"struct.cgp::numarray_stack.4", align 4
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.cgp::numarray_stack.4", align 4
  %31 = alloca i32, align 4
  %32 = alloca float, align 4
  %33 = alloca %"struct.cgp::numarray_stack.4", align 4
  %34 = alloca i32, align 4
  %35 = alloca %"struct.cgp::matrix_stack", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %36 = load ptr, ptr %3, align 8
  %37 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = icmp ne ptr %38, null
  %40 = zext i1 %39 to i32
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %72

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %43 unwind label %48

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %44 unwind label %52

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %45 unwind label %56

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @__func__._ZN3cgp30camera_controller_first_person10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %46 unwind label %60

46:                                               ; preds = %45
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 63) #7
          to label %47 unwind label %64

47:                                               ; preds = %46
  unreachable

48:                                               ; preds = %42
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  br label %71

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %8, align 4
  br label %70

56:                                               ; preds = %44
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %7, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %8, align 4
  br label %69

60:                                               ; preds = %45
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %7, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %8, align 4
  br label %68

64:                                               ; preds = %46
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %68

68:                                               ; preds = %64, %60
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %69

69:                                               ; preds = %68, %56
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %70

70:                                               ; preds = %69, %52
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %71

71:                                               ; preds = %70, %48
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %227

72:                                               ; preds = %2
  %73 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !12
  %75 = icmp ne ptr %74, null
  %76 = zext i1 %75 to i32
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %108

78:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %79 unwind label %84

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %80 unwind label %88

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %81 unwind label %92

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @__func__._ZN3cgp30camera_controller_first_person10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %82 unwind label %96

82:                                               ; preds = %81
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %21, i32 noundef 64) #7
          to label %83 unwind label %100

83:                                               ; preds = %82
  unreachable

84:                                               ; preds = %78
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  br label %107

88:                                               ; preds = %79
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %7, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %8, align 4
  br label %106

92:                                               ; preds = %80
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %7, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %8, align 4
  br label %105

96:                                               ; preds = %81
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  br label %104

100:                                              ; preds = %82
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %7, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %104

104:                                              ; preds = %100, %96
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %105

105:                                              ; preds = %104, %92
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %106

106:                                              ; preds = %105, %88
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %107

107:                                              ; preds = %106, %84
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %227

108:                                              ; preds = %72
  %109 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 0
  %110 = load i8, ptr %109, align 8, !tbaa !13, !range !14, !noundef !15
  %111 = trunc i8 %110 to i1
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  br label %226

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %114 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 2
  %115 = load float, ptr %114, align 8, !tbaa !16
  %116 = fmul float 2.000000e+00, %115
  %117 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds %"struct.cgp::input_devices", ptr %118, i32 0, i32 2
  %120 = load float, ptr %119, align 8, !tbaa !25
  %121 = fmul float %116, %120
  store float %121, ptr %23, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %122 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 3
  %123 = load float, ptr %122, align 4, !tbaa !45
  %124 = fmul float 2.000000e+00, %123
  %125 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !9
  %127 = getelementptr inbounds %"struct.cgp::input_devices", ptr %126, i32 0, i32 2
  %128 = load float, ptr %127, align 8, !tbaa !25
  %129 = fmul float %124, %128
  store float %129, ptr %24, align 4, !tbaa !44
  %130 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds %"struct.cgp::input_devices", ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %132, i32 0, i32 2
  %134 = load i8, ptr %133, align 2, !tbaa !46, !range !14, !noundef !15
  %135 = trunc i8 %134 to i1
  br i1 %135, label %141, label %136

136:                                              ; preds = %113
  %137 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  %139 = getelementptr inbounds %"struct.cgp::input_devices", ptr %138, i32 0, i32 0
  %140 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %139, i32 noundef 87)
  br i1 %140, label %141, label %144

141:                                              ; preds = %136, %113
  %142 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  %143 = load float, ptr %23, align 4, !tbaa !44
  call void @_ZN3cgp19camera_first_person27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(36) %142, float noundef %143)
  br label %144

144:                                              ; preds = %141, %136
  %145 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds %"struct.cgp::input_devices", ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %147, i32 0, i32 3
  %149 = load i8, ptr %148, align 1, !tbaa !47, !range !14, !noundef !15
  %150 = trunc i8 %149 to i1
  br i1 %150, label %156, label %151

151:                                              ; preds = %144
  %152 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %153 = load ptr, ptr %152, align 8, !tbaa !9
  %154 = getelementptr inbounds %"struct.cgp::input_devices", ptr %153, i32 0, i32 0
  %155 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %154, i32 noundef 83)
  br i1 %155, label %156, label %160

156:                                              ; preds = %151, %144
  %157 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  %158 = load float, ptr %23, align 4, !tbaa !44
  %159 = fneg float %158
  call void @_ZN3cgp19camera_first_person27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(36) %157, float noundef %159)
  br label %160

160:                                              ; preds = %156, %151
  %161 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !9
  %163 = getelementptr inbounds %"struct.cgp::input_devices", ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %163, i32 0, i32 5
  %165 = load i8, ptr %164, align 1, !tbaa !48, !range !14, !noundef !15
  %166 = trunc i8 %165 to i1
  br i1 %166, label %172, label %167

167:                                              ; preds = %160
  %168 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !9
  %170 = getelementptr inbounds %"struct.cgp::input_devices", ptr %169, i32 0, i32 0
  %171 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %170, i32 noundef 65)
  br i1 %171, label %172, label %174

172:                                              ; preds = %167, %160
  %173 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !49
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %26)
  call void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36) %173, ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %174

174:                                              ; preds = %172, %167
  %175 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !9
  %177 = getelementptr inbounds %"struct.cgp::input_devices", ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %177, i32 0, i32 4
  %179 = load i8, ptr %178, align 4, !tbaa !50, !range !14, !noundef !15
  %180 = trunc i8 %179 to i1
  br i1 %180, label %186, label %181

181:                                              ; preds = %174
  %182 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !9
  %184 = getelementptr inbounds %"struct.cgp::input_devices", ptr %183, i32 0, i32 0
  %185 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %184, i32 noundef 68)
  br i1 %185, label %186, label %190

186:                                              ; preds = %181, %174
  %187 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %188 = load float, ptr %23, align 4, !tbaa !44
  %189 = fneg float %188
  store float %189, ptr %28, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !49
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36) %187, ptr noundef nonnull align 4 dereferenceable(8) %27)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %190

190:                                              ; preds = %186, %181
  %191 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %192 = load ptr, ptr %191, align 8, !tbaa !9
  %193 = getelementptr inbounds %"struct.cgp::input_devices", ptr %192, i32 0, i32 0
  %194 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %193, i32 noundef 82)
  br i1 %194, label %195, label %199

195:                                              ; preds = %190
  %196 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %197 = load float, ptr %23, align 4, !tbaa !44
  %198 = fneg float %197
  store float %198, ptr %32, align 4, !tbaa !44
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %32)
  call void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36) %196, ptr noundef nonnull align 4 dereferenceable(8) %30)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %199

199:                                              ; preds = %195, %190
  %200 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %201 = load ptr, ptr %200, align 8, !tbaa !9
  %202 = getelementptr inbounds %"struct.cgp::input_devices", ptr %201, i32 0, i32 0
  %203 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %202, i32 noundef 70)
  br i1 %203, label %204, label %206

204:                                              ; preds = %199
  %205 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !49
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36) %205, ptr noundef nonnull align 4 dereferenceable(8) %33)
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %206

206:                                              ; preds = %204, %199
  %207 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %208 = load ptr, ptr %207, align 8, !tbaa !9
  %209 = getelementptr inbounds %"struct.cgp::input_devices", ptr %208, i32 0, i32 0
  %210 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %209, i32 noundef 81)
  br i1 %210, label %211, label %214

211:                                              ; preds = %206
  %212 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  %213 = load float, ptr %24, align 4, !tbaa !44
  call void @_ZN3cgp19camera_first_person33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(36) %212, float noundef %213, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %214

214:                                              ; preds = %211, %206
  %215 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %36, i32 0, i32 1
  %216 = load ptr, ptr %215, align 8, !tbaa !9
  %217 = getelementptr inbounds %"struct.cgp::input_devices", ptr %216, i32 0, i32 0
  %218 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %217, i32 noundef 69)
  br i1 %218, label %219, label %223

219:                                              ; preds = %214
  %220 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  %221 = load float, ptr %24, align 4, !tbaa !44
  %222 = fneg float %221
  call void @_ZN3cgp19camera_first_person33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(36) %220, float noundef %222, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %223

223:                                              ; preds = %219, %214
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #6
  %224 = getelementptr inbounds %"struct.cgp::camera_controller_first_person", ptr %36, i32 0, i32 1
  call void @_ZNK3cgp19camera_generic_base11matrix_viewEv(ptr dead_on_unwind writable sret(%"struct.cgp::matrix_stack") align 4 %35, ptr noundef nonnull align 8 dereferenceable(8) %224)
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %225, ptr align 4 %35, i64 64, i1 false), !tbaa.struct !51
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %226

226:                                              ; preds = %223, %112
  ret void

227:                                              ; preds = %107, %71
  %228 = load ptr, ptr %7, align 8
  %229 = load i32, ptr %8, align 4
  %230 = insertvalue { ptr, i32 } poison, ptr %228, 0
  %231 = insertvalue { ptr, i32 } %230, i32 %229, 1
  resume { ptr, i32 } %231
}

declare noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #4

declare void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(8)) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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, !6, i64 8}
!10 = !{!"_ZTSN3cgp30camera_controller_generic_baseE", !11, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!"bool", !7, i64 0}
!12 = !{!10, !6, i64 16}
!13 = !{!10, !11, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !23, i64 64}
!17 = !{!"_ZTSN3cgp30camera_controller_first_personE", !10, i64 0, !18, i64 24, !23, i64 64, !23, i64 68, !11, i64 72}
!18 = !{!"_ZTSN3cgp19camera_first_personE", !19, i64 0, !20, i64 8, !24, i64 24}
!19 = !{!"_ZTSN3cgp19camera_generic_baseE"}
!20 = !{!"_ZTSN3cgp18rotation_transformE", !21, i64 0}
!21 = !{!"_ZTSN3cgp10quaternionE", !22, i64 0}
!22 = !{!"_ZTSN3cgp14numarray_stackIfLi4EEE", !23, i64 0, !23, i64 4, !23, i64 8, !23, i64 12}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTSN3cgp14numarray_stackIfLi3EEE", !23, i64 0, !23, i64 4, !23, i64 8}
!25 = !{!26, !23, i64 96}
!26 = !{!"_ZTSN3cgp13input_devicesE", !27, i64 0, !39, i64 64, !23, i64 96}
!27 = !{!"_ZTSN3cgp26inputs_keyboard_parametersE", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !28, i64 8, !30, i64 16}
!28 = !{!"_ZTSN3cgp37inputs_keyboard_last_action_parameterE", !29, i64 0, !29, i64 4}
!29 = !{!"int", !7, i64 0}
!30 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessIiE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !38, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!38 = !{!"long", !7, i64 0}
!39 = !{!"_ZTSN3cgp23inputs_mouse_parametersE", !40, i64 0, !42, i64 16, !23, i64 24, !11, i64 28}
!40 = !{!"_ZTSN3cgp39inputs_mouse_cursor_position_parametersE", !41, i64 0, !41, i64 8}
!41 = !{!"_ZTSN3cgp14numarray_stackIfLi2EEE", !23, i64 0, !23, i64 4}
!42 = !{!"_ZTSN3cgp36inputs_mouse_cursor_click_parametersE", !11, i64 0, !11, i64 1, !43, i64 4}
!43 = !{!"_ZTSN3cgp24last_mouse_cursor_actionE", !7, i64 0}
!44 = !{!23, !23, i64 0}
!45 = !{!17, !23, i64 68}
!46 = !{!26, !11, i64 2}
!47 = !{!26, !11, i64 3}
!48 = !{!26, !11, i64 5}
!49 = !{!29, !29, i64 0}
!50 = !{!26, !11, i64 4}
!51 = !{i64 0, i64 4, !44, i64 4, i64 4, !44, i64 8, i64 4, !44, i64 12, i64 4, !44, i64 16, i64 4, !44, i64 20, i64 4, !44, i64 24, i64 4, !44, i64 28, i64 4, !44, i64 32, i64 4, !44, i64 36, i64 4, !44, i64 40, i64 4, !44, i64 44, i64 4, !44, i64 48, i64 4, !44, i64 52, i64 4, !44, i64 56, i64 4, !44, i64 60, i64 4, !44}


; 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.cgp::matrix_stack" = type { %"struct.cgp::numarray_stack.5" }
%"struct.cgp::numarray_stack.5" = type { %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.cgp::numarray_stack.4" = type { float, float }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [144 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@__func__._ZN3cgp30camera_controller_first_person10idle_frameERNS_12matrix_stackIfLi4ELi4EEE = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

declare void @_ZN3cgp19camera_first_person33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(36), float noundef, float noundef, float noundef) local_unnamed_addr #4

declare void @_ZN3cgp19camera_first_person27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(36), float noundef) local_unnamed_addr #4

declare void @_ZNK3cgp19camera_generic_base11matrix_viewEv(ptr dead_on_unwind writable sret(%"struct.cgp::matrix_stack") align 4, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp30camera_controller_first_person10idle_frameERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(64) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca float, align 4
  %20 = alloca %"struct.cgp::numarray_stack.4", align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.cgp::numarray_stack.4", align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.cgp::numarray_stack.4", align 4
  %26 = alloca i32, align 4
  %27 = alloca float, align 4
  %28 = alloca %"struct.cgp::numarray_stack.4", align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.cgp::matrix_stack", align 4
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %.not = icmp eq ptr %32, null
  br i1 %.not, label %33, label %53

33:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %34 unwind label %39

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %35 unwind label %41

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %36 unwind label %43

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @__func__._ZN3cgp30camera_controller_first_person10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %37 unwind label %45

37:                                               ; preds = %36
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 63) #7
          to label %38 unwind label %47

38:                                               ; preds = %37
  unreachable

39:                                               ; preds = %33
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %52

41:                                               ; preds = %34
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %51

43:                                               ; preds = %35
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %50

45:                                               ; preds = %36
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %37
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %49

49:                                               ; preds = %47, %45
  %.pn19 = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %50

50:                                               ; preds = %49, %43
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %49 ], [ %44, %43 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %51

51:                                               ; preds = %50, %41
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %50 ], [ %42, %41 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %52

52:                                               ; preds = %51, %39
  %.pn19.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn, %51 ], [ %40, %39 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %153

53:                                               ; preds = %2
  %54 = getelementptr inbounds i8, ptr %0, i64 16
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %.not14 = icmp eq ptr %55, null
  br i1 %.not14, label %56, label %76

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %57 unwind label %62

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %58 unwind label %64

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %59 unwind label %66

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull @__func__._ZN3cgp30camera_controller_first_person10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %60 unwind label %68

60:                                               ; preds = %59
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef 64) #7
          to label %61 unwind label %70

61:                                               ; preds = %60
  unreachable

62:                                               ; preds = %56
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %75

64:                                               ; preds = %57
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %74

66:                                               ; preds = %58
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %73

68:                                               ; preds = %59
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %72

70:                                               ; preds = %60
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %72

72:                                               ; preds = %70, %68
  %.pn = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %73

73:                                               ; preds = %72, %66
  %.pn.pn = phi { ptr, i32 } [ %.pn, %72 ], [ %67, %66 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %74

74:                                               ; preds = %73, %64
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %73 ], [ %65, %64 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %75

75:                                               ; preds = %74, %62
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %74 ], [ %63, %62 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %153

76:                                               ; preds = %53
  %77 = load i8, ptr %0, align 8, !tbaa !12, !range !13, !noundef !14
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %79, label %152

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  %80 = getelementptr inbounds i8, ptr %0, i64 64
  %81 = load float, ptr %80, align 8, !tbaa !15
  %82 = fmul float %81, 2.000000e+00
  %83 = getelementptr inbounds i8, ptr %32, i64 96
  %84 = load float, ptr %83, align 8, !tbaa !24
  %85 = fmul float %82, %84
  store float %85, ptr %19, align 4, !tbaa !43
  %86 = getelementptr inbounds i8, ptr %0, i64 68
  %87 = load float, ptr %86, align 4, !tbaa !44
  %88 = fmul float %87, 2.000000e+00
  %89 = fmul float %84, %88
  %90 = getelementptr inbounds i8, ptr %32, i64 2
  %91 = load i8, ptr %90, align 2, !tbaa !45, !range !13, !noundef !14
  %92 = trunc nuw i8 %91 to i1
  br i1 %92, label %95, label %93

93:                                               ; preds = %79
  %94 = tail call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %32, i32 noundef 87)
  br i1 %94, label %95, label %97

95:                                               ; preds = %93, %79
  %96 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN3cgp19camera_first_person27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(36) %96, float noundef %85)
  br label %97

97:                                               ; preds = %95, %93
  %98 = load ptr, ptr %31, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 3
  %100 = load i8, ptr %99, align 1, !tbaa !46, !range !13, !noundef !14
  %101 = trunc nuw i8 %100 to i1
  br i1 %101, label %104, label %102

102:                                              ; preds = %97
  %103 = tail call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %98, i32 noundef 83)
  br i1 %103, label %104, label %107

104:                                              ; preds = %102, %97
  %105 = getelementptr inbounds i8, ptr %0, i64 24
  %106 = fneg float %85
  tail call void @_ZN3cgp19camera_first_person27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(36) %105, float noundef %106)
  br label %107

107:                                              ; preds = %104, %102
  %108 = load ptr, ptr %31, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 5
  %110 = load i8, ptr %109, align 1, !tbaa !47, !range !13, !noundef !14
  %111 = trunc nuw i8 %110 to i1
  br i1 %111, label %114, label %112

112:                                              ; preds = %107
  %113 = tail call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %108, i32 noundef 65)
  br i1 %113, label %114, label %116

114:                                              ; preds = %112, %107
  %115 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  store i32 0, ptr %21, align 4, !tbaa !48
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36) %115, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %116

116:                                              ; preds = %114, %112
  %117 = load ptr, ptr %31, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 4
  %119 = load i8, ptr %118, align 4, !tbaa !49, !range !13, !noundef !14
  %120 = trunc nuw i8 %119 to i1
  br i1 %120, label %123, label %121

121:                                              ; preds = %116
  %122 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %117, i32 noundef 68)
  br i1 %122, label %123, label %127

123:                                              ; preds = %121, %116
  %124 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  %125 = load float, ptr %19, align 4, !tbaa !43
  %126 = fneg float %125
  store float %126, ptr %23, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #6
  store i32 0, ptr %24, align 4, !tbaa !48
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36) %124, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  br label %127

127:                                              ; preds = %123, %121
  %128 = load ptr, ptr %31, align 8, !tbaa !5
  %129 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %128, i32 noundef 82)
  br i1 %129, label %130, label %134

130:                                              ; preds = %127
  %131 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  store i32 0, ptr %26, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  %132 = load float, ptr %19, align 4, !tbaa !43
  %133 = fneg float %132
  store float %133, ptr %27, align 4, !tbaa !43
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36) %131, ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  br label %134

134:                                              ; preds = %130, %127
  %135 = load ptr, ptr %31, align 8, !tbaa !5
  %136 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %135, i32 noundef 70)
  br i1 %136, label %137, label %139

137:                                              ; preds = %134
  %138 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #6
  store i32 0, ptr %29, align 4, !tbaa !48
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %19)
  call void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36) %138, ptr noundef nonnull align 4 dereferenceable(8) %28)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #6
  br label %139

139:                                              ; preds = %137, %134
  %140 = load ptr, ptr %31, align 8, !tbaa !5
  %141 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %140, i32 noundef 81)
  br i1 %141, label %142, label %144

142:                                              ; preds = %139
  %143 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN3cgp19camera_first_person33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(36) %143, float noundef %89, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %144

144:                                              ; preds = %142, %139
  %145 = load ptr, ptr %31, align 8, !tbaa !5
  %146 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %145, i32 noundef 69)
  br i1 %146, label %147, label %150

147:                                              ; preds = %144
  %148 = getelementptr inbounds i8, ptr %0, i64 24
  %149 = fneg float %89
  call void @_ZN3cgp19camera_first_person33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(36) %148, float noundef %149, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %150

150:                                              ; preds = %147, %144
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %30) #6
  %151 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNK3cgp19camera_generic_base11matrix_viewEv(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::matrix_stack") align 4 %30, ptr noundef nonnull align 8 dereferenceable(8) %151)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %1, ptr noundef nonnull align 4 dereferenceable(64) %30, i64 64, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  br label %152

152:                                              ; preds = %76, %150
  ret void

153:                                              ; preds = %75, %52
  %.pn19.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn.pn, %52 ], [ %.pn.pn.pn.pn, %75 ]
  resume { ptr, i32 } %.pn19.pn.pn.pn.pn
}

declare noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #4

declare void @_ZN3cgp19camera_first_person30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { 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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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, !10, i64 8}
!6 = !{!"_ZTSN3cgp30camera_controller_generic_baseE", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !22, i64 64}
!16 = !{!"_ZTSN3cgp30camera_controller_first_personE", !6, i64 0, !17, i64 24, !22, i64 64, !22, i64 68, !7, i64 72}
!17 = !{!"_ZTSN3cgp19camera_first_personE", !18, i64 0, !19, i64 8, !23, i64 24}
!18 = !{!"_ZTSN3cgp19camera_generic_baseE"}
!19 = !{!"_ZTSN3cgp18rotation_transformE", !20, i64 0}
!20 = !{!"_ZTSN3cgp10quaternionE", !21, i64 0}
!21 = !{!"_ZTSN3cgp14numarray_stackIfLi4EEE", !22, i64 0, !22, i64 4, !22, i64 8, !22, i64 12}
!22 = !{!"float", !8, i64 0}
!23 = !{!"_ZTSN3cgp14numarray_stackIfLi3EEE", !22, i64 0, !22, i64 4, !22, i64 8}
!24 = !{!25, !22, i64 96}
!25 = !{!"_ZTSN3cgp13input_devicesE", !26, i64 0, !38, i64 64, !22, i64 96}
!26 = !{!"_ZTSN3cgp26inputs_keyboard_parametersE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !27, i64 8, !29, i64 16}
!27 = !{!"_ZTSN3cgp37inputs_keyboard_last_action_parameterE", !28, i64 0, !28, i64 4}
!28 = !{!"int", !8, i64 0}
!29 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessIiE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !37, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!37 = !{!"long", !8, i64 0}
!38 = !{!"_ZTSN3cgp23inputs_mouse_parametersE", !39, i64 0, !41, i64 16, !22, i64 24, !7, i64 28}
!39 = !{!"_ZTSN3cgp39inputs_mouse_cursor_position_parametersE", !40, i64 0, !40, i64 8}
!40 = !{!"_ZTSN3cgp14numarray_stackIfLi2EEE", !22, i64 0, !22, i64 4}
!41 = !{!"_ZTSN3cgp36inputs_mouse_cursor_click_parametersE", !7, i64 0, !7, i64 1, !42, i64 4}
!42 = !{!"_ZTSN3cgp24last_mouse_cursor_actionE", !8, i64 0}
!43 = !{!22, !22, i64 0}
!44 = !{!16, !22, i64 68}
!45 = !{!25, !7, i64 2}
!46 = !{!25, !7, i64 3}
!47 = !{!25, !7, i64 5}
!48 = !{!28, !28, i64 0}
!49 = !{!25, !7, i64 4}
!50 = !{i64 0, i64 4, !43, i64 4, i64 4, !43, i64 8, i64 4, !43, i64 12, i64 4, !43, i64 16, i64 4, !43, i64 20, i64 4, !43, i64 24, i64 4, !43, i64 28, i64 4, !43, i64 32, i64 4, !43, i64 36, i64 4, !43, i64 40, i64 4, !43, i64 44, i64 4, !43, i64 48, i64 4, !43, i64 52, i64 4, !43, i64 56, i64 4, !43, i64 60, i64 4, !43}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass