; LLVM IR from drohmer/cgp :: library/cgp/19_camera_controller/camera_controller_first_person_euler/camera_cont_fd5e96da (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"

%"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.5" = type { float, float }
%"struct.cgp::camera_controller_generic_base" = type { i8, ptr, ptr }
%"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.5", %"struct.cgp::numarray_stack.5" }
%"struct.cgp::inputs_mouse_cursor_click_parameters" = type { i8, i8, i32 }
%"struct.cgp::camera_controller_first_person_euler" = type <{ %"struct.cgp::camera_controller_generic_base", %"struct.cgp::camera_first_person_euler", i8, [7 x i8] }>
%"struct.cgp::camera_first_person_euler" = type <{ %"struct.cgp::camera_generic_base", float, float, float, %"struct.cgp::numarray_stack.1", %"struct.cgp::numarray_stack.1", [4 x i8] }>
%"struct.cgp::camera_generic_base" = type { ptr }
%"struct.cgp::numarray_stack.1" = type { float, 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 [156 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@__func__._ZN3cgp36camera_controller_first_person_euler10idle_frameERNS_12matrix_stackIfLi4ELi4EEE = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cgp36camera_controller_first_person_euler6updateERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73), ptr noundef nonnull align 4 dereferenceable(64)) #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 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 #3 align 2

declare void @_ZN3cgp25camera_first_person_euler31manipulator_twist_rotation_axisEf(ptr noundef nonnull align 8 dereferenceable(44), float noundef) #4

declare void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44), float noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp36camera_controller_first_person_euler10idle_frameERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 4 dereferenceable(64) %1) #0 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 %"struct.cgp::numarray_stack.5", align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.cgp::numarray_stack.5", align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca %"struct.cgp::numarray_stack.5", align 4
  %30 = alloca float, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"struct.cgp::numarray_stack.5", align 4
  %33 = alloca i32, align 4
  %34 = alloca %"struct.cgp::numarray_stack.5", align 4
  %35 = alloca i32, align 4
  %36 = alloca %"struct.cgp::numarray_stack.5", align 4
  %37 = alloca i32, align 4
  %38 = alloca float, align 4
  %39 = alloca %"struct.cgp::numarray_stack.5", align 4
  %40 = alloca float, align 4
  %41 = alloca i32, align 4
  %42 = alloca %"struct.cgp::numarray_stack.5", align 4
  %43 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %3, align 8
  %45 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = icmp ne ptr %46, null
  %48 = zext i1 %47 to i32
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %80

50:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  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 %51 unwind label %56

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  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 %52 unwind label %60

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  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 %53 unwind label %64

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @__func__._ZN3cgp36camera_controller_first_person_euler10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %54 unwind label %68

54:                                               ; preds = %53
  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) #6
          to label %55 unwind label %72

55:                                               ; preds = %54
  unreachable

56:                                               ; preds = %50
  %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 %79

60:                                               ; preds = %51
  %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 %78

64:                                               ; preds = %52
  %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
  br label %77

68:                                               ; preds = %53
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %7, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %8, align 4
  br label %76

72:                                               ; preds = %54
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %76

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

77:                                               ; preds = %76, %64
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %78

78:                                               ; preds = %77, %60
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %79

79:                                               ; preds = %78, %56
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  br label %267

80:                                               ; preds = %2
  %81 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !12
  %83 = icmp ne ptr %82, null
  %84 = zext i1 %83 to i32
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %116

86:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  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 %87 unwind label %92

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  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 %88 unwind label %96

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  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 %89 unwind label %100

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @__func__._ZN3cgp36camera_controller_first_person_euler10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %90 unwind label %104

90:                                               ; preds = %89
  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) #6
          to label %91 unwind label %108

91:                                               ; preds = %90
  unreachable

92:                                               ; preds = %86
  %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 %115

96:                                               ; preds = %87
  %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 %114

100:                                              ; preds = %88
  %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
  br label %113

104:                                              ; preds = %89
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %7, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %8, align 4
  br label %112

108:                                              ; preds = %90
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %7, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #5
  br label %112

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

113:                                              ; preds = %112, %100
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %114

114:                                              ; preds = %113, %96
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %115

115:                                              ; preds = %114, %92
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  br label %267

116:                                              ; preds = %80
  %117 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 0
  %118 = load i8, ptr %117, align 8, !tbaa !13, !range !14, !noundef !15
  %119 = trunc i8 %118 to i1
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  br label %266

121:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %122 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  %124 = getelementptr inbounds %"struct.cgp::input_devices", ptr %123, i32 0, i32 2
  %125 = load float, ptr %124, align 8, !tbaa !16
  %126 = fmul float 2.000000e+00, %125
  store float %126, ptr %23, align 4, !tbaa !36
  %127 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds %"struct.cgp::input_devices", ptr %128, i32 0, i32 0
  %130 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %129, i32 noundef 82)
  br i1 %130, label %131, label %133

131:                                              ; preds = %121
  %132 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !37
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %132, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %133

133:                                              ; preds = %131, %121
  %134 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = getelementptr inbounds %"struct.cgp::input_devices", ptr %135, i32 0, i32 0
  %137 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %136, i32 noundef 70)
  br i1 %137, label %138, label %142

138:                                              ; preds = %133
  %139 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %140 = load float, ptr %23, align 4, !tbaa !36
  %141 = fneg float %140
  store float %141, ptr %28, align 4, !tbaa !36
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %139, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %142

142:                                              ; preds = %138, %133
  %143 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds %"struct.cgp::input_devices", ptr %144, i32 0, i32 0
  %146 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %145, i32 noundef 65)
  br i1 %146, label %147, label %151

147:                                              ; preds = %142
  %148 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %149 = load float, ptr %23, align 4, !tbaa !36
  %150 = fneg float %149
  store float %150, ptr %30, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !37
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %31)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %148, ptr noundef nonnull align 4 dereferenceable(8) %29)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %151

151:                                              ; preds = %147, %142
  %152 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, 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 68)
  br i1 %155, label %156, label %158

156:                                              ; preds = %151
  %157 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  store i32 0, ptr %33, align 4, !tbaa !37
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %33)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %157, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %158

158:                                              ; preds = %156, %151
  %159 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !9
  %161 = getelementptr inbounds %"struct.cgp::input_devices", ptr %160, i32 0, i32 0
  %162 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %161, i32 noundef 87)
  br i1 %162, label %163, label %166

163:                                              ; preds = %158
  %164 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  %165 = load float, ptr %23, align 4, !tbaa !36
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %164, float noundef %165)
  br label %166

166:                                              ; preds = %163, %158
  %167 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !9
  %169 = getelementptr inbounds %"struct.cgp::input_devices", ptr %168, i32 0, i32 0
  %170 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %169, i32 noundef 83)
  br i1 %170, label %171, label %175

171:                                              ; preds = %166
  %172 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  %173 = load float, ptr %23, align 4, !tbaa !36
  %174 = fneg float %173
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %172, float noundef %174)
  br label %175

175:                                              ; preds = %171, %166
  %176 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  %178 = getelementptr inbounds %"struct.cgp::input_devices", ptr %177, i32 0, i32 0
  %179 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %178, i32 noundef 81)
  br i1 %179, label %180, label %183

180:                                              ; preds = %175
  %181 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  %182 = load float, ptr %23, align 4, !tbaa !36
  call void @_ZN3cgp25camera_first_person_euler31manipulator_twist_rotation_axisEf(ptr noundef nonnull align 8 dereferenceable(44) %181, float noundef %182)
  br label %183

183:                                              ; preds = %180, %175
  %184 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %185 = load ptr, ptr %184, align 8, !tbaa !9
  %186 = getelementptr inbounds %"struct.cgp::input_devices", ptr %185, i32 0, i32 0
  %187 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %186, i32 noundef 69)
  br i1 %187, label %188, label %192

188:                                              ; preds = %183
  %189 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  %190 = load float, ptr %23, align 4, !tbaa !36
  %191 = fneg float %190
  call void @_ZN3cgp25camera_first_person_euler31manipulator_twist_rotation_axisEf(ptr noundef nonnull align 8 dereferenceable(44) %189, float noundef %191)
  br label %192

192:                                              ; preds = %188, %183
  %193 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  %195 = getelementptr inbounds %"struct.cgp::input_devices", ptr %194, i32 0, i32 0
  %196 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %195, i32 0, i32 1
  %197 = load i8, ptr %196, align 1, !tbaa !38, !range !14, !noundef !15
  %198 = trunc i8 %197 to i1
  %199 = zext i1 %198 to i32
  %200 = icmp eq i32 %199, 0
  br i1 %200, label %201, label %223

201:                                              ; preds = %192
  %202 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %203 = load ptr, ptr %202, align 8, !tbaa !9
  %204 = getelementptr inbounds %"struct.cgp::input_devices", ptr %203, i32 0, i32 0
  %205 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %204, i32 0, i32 2
  %206 = load i8, ptr %205, align 2, !tbaa !39, !range !14, !noundef !15
  %207 = trunc i8 %206 to i1
  br i1 %207, label %208, label %211

208:                                              ; preds = %201
  %209 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  %210 = load float, ptr %23, align 4, !tbaa !36
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %209, float noundef %210)
  br label %211

211:                                              ; preds = %208, %201
  %212 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !9
  %214 = getelementptr inbounds %"struct.cgp::input_devices", ptr %213, i32 0, i32 0
  %215 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %214, i32 0, i32 3
  %216 = load i8, ptr %215, align 1, !tbaa !40, !range !14, !noundef !15
  %217 = trunc i8 %216 to i1
  br i1 %217, label %218, label %222

218:                                              ; preds = %211
  %219 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  %220 = load float, ptr %23, align 4, !tbaa !36
  %221 = fneg float %220
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %219, float noundef %221)
  br label %222

222:                                              ; preds = %218, %211
  br label %244

223:                                              ; preds = %192
  %224 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %225 = load ptr, ptr %224, align 8, !tbaa !9
  %226 = getelementptr inbounds %"struct.cgp::input_devices", ptr %225, i32 0, i32 0
  %227 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %226, i32 0, i32 2
  %228 = load i8, ptr %227, align 2, !tbaa !39, !range !14, !noundef !15
  %229 = trunc i8 %228 to i1
  br i1 %229, label %230, label %232

230:                                              ; preds = %223
  %231 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !37
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %231, ptr noundef nonnull align 4 dereferenceable(8) %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %232

232:                                              ; preds = %230, %223
  %233 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %234 = load ptr, ptr %233, align 8, !tbaa !9
  %235 = getelementptr inbounds %"struct.cgp::input_devices", ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %235, i32 0, i32 3
  %237 = load i8, ptr %236, align 1, !tbaa !40, !range !14, !noundef !15
  %238 = trunc i8 %237 to i1
  br i1 %238, label %239, label %243

239:                                              ; preds = %232
  %240 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  store i32 0, ptr %37, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  %241 = load float, ptr %23, align 4, !tbaa !36
  %242 = fneg float %241
  store float %242, ptr %38, align 4, !tbaa !36
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %38)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %240, ptr noundef nonnull align 4 dereferenceable(8) %36)
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  br label %243

243:                                              ; preds = %239, %232
  br label %244

244:                                              ; preds = %243, %222
  %245 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %246 = load ptr, ptr %245, align 8, !tbaa !9
  %247 = getelementptr inbounds %"struct.cgp::input_devices", ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %247, i32 0, i32 5
  %249 = load i8, ptr %248, align 1, !tbaa !41, !range !14, !noundef !15
  %250 = trunc i8 %249 to i1
  br i1 %250, label %251, label %255

251:                                              ; preds = %244
  %252 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #5
  %253 = load float, ptr %23, align 4, !tbaa !36
  %254 = fneg float %253
  store float %254, ptr %40, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  store i32 0, ptr %41, align 4, !tbaa !37
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %39, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %252, ptr noundef nonnull align 4 dereferenceable(8) %39)
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  br label %255

255:                                              ; preds = %251, %244
  %256 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %44, i32 0, i32 1
  %257 = load ptr, ptr %256, align 8, !tbaa !9
  %258 = getelementptr inbounds %"struct.cgp::input_devices", ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %258, i32 0, i32 4
  %260 = load i8, ptr %259, align 4, !tbaa !42, !range !14, !noundef !15
  %261 = trunc i8 %260 to i1
  br i1 %261, label %262, label %264

262:                                              ; preds = %255
  %263 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %44, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  store i32 0, ptr %43, align 4, !tbaa !37
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %43)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %263, ptr noundef nonnull align 4 dereferenceable(8) %42)
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  br label %264

264:                                              ; preds = %262, %255
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3cgp36camera_controller_first_person_euler6updateERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %44, ptr noundef nonnull align 4 dereferenceable(64) %265)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %266

266:                                              ; preds = %264, %120
  ret void

267:                                              ; preds = %115, %79
  %268 = load ptr, ptr %7, align 8
  %269 = load i32, ptr %8, align 4
  %270 = insertvalue { ptr, i32 } poison, ptr %268, 0
  %271 = insertvalue { ptr, i32 } %270, i32 %269, 1
  resume { ptr, i32 } %271
}

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

declare void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(8)) #4

; 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 #3 align 2

; 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 #3 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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, !33, i64 96}
!17 = !{!"_ZTSN3cgp13input_devicesE", !18, i64 0, !30, i64 64, !33, i64 96}
!18 = !{!"_ZTSN3cgp26inputs_keyboard_parametersE", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !19, i64 8, !21, i64 16}
!19 = !{!"_ZTSN3cgp37inputs_keyboard_last_action_parameterE", !20, i64 0, !20, i64 4}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !24, i64 0, !26, i64 8}
!24 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !25, i64 0}
!25 = !{!"_ZTSSt4lessIiE"}
!26 = !{!"_ZTSSt15_Rb_tree_header", !27, i64 0, !29, i64 32}
!27 = !{!"_ZTSSt18_Rb_tree_node_base", !28, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!29 = !{!"long", !7, i64 0}
!30 = !{!"_ZTSN3cgp23inputs_mouse_parametersE", !31, i64 0, !34, i64 16, !33, i64 24, !11, i64 28}
!31 = !{!"_ZTSN3cgp39inputs_mouse_cursor_position_parametersE", !32, i64 0, !32, i64 8}
!32 = !{!"_ZTSN3cgp14numarray_stackIfLi2EEE", !33, i64 0, !33, i64 4}
!33 = !{!"float", !7, i64 0}
!34 = !{!"_ZTSN3cgp36inputs_mouse_cursor_click_parametersE", !11, i64 0, !11, i64 1, !35, i64 4}
!35 = !{!"_ZTSN3cgp24last_mouse_cursor_actionE", !7, i64 0}
!36 = !{!33, !33, i64 0}
!37 = !{!20, !20, i64 0}
!38 = !{!17, !11, i64 1}
!39 = !{!17, !11, i64 2}
!40 = !{!17, !11, i64 3}
!41 = !{!17, !11, i64 5}
!42 = !{!17, !11, i64 4}


; 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.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.5" = 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 [156 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@__func__._ZN3cgp36camera_controller_first_person_euler10idle_frameERNS_12matrix_stackIfLi4ELi4EEE = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cgp36camera_controller_first_person_euler6updateERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #0 align 2

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 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 #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp36camera_controller_first_person_euler10idle_frameERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 4 dereferenceable(64) %1) local_unnamed_addr #0 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.5", align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.cgp::numarray_stack.5", align 4
  %23 = alloca i32, align 4
  %24 = alloca float, align 4
  %25 = alloca %"struct.cgp::numarray_stack.5", align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.cgp::numarray_stack.5", align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.cgp::numarray_stack.5", align 4
  %31 = alloca i32, align 4
  %32 = alloca %"struct.cgp::numarray_stack.5", align 4
  %33 = alloca i32, align 4
  %34 = alloca float, align 4
  %35 = alloca %"struct.cgp::numarray_stack.5", align 4
  %36 = alloca float, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"struct.cgp::numarray_stack.5", align 4
  %39 = alloca i32, align 4
  %40 = getelementptr inbounds i8, ptr %0, i64 8
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %.not = icmp eq ptr %41, null
  br i1 %.not, label %42, label %62

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  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 %43 unwind label %48

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  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 %44 unwind label %50

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  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 %45 unwind label %52

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @__func__._ZN3cgp36camera_controller_first_person_euler10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %46 unwind label %54

46:                                               ; preds = %45
  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) #6
          to label %47 unwind label %56

47:                                               ; preds = %46
  unreachable

48:                                               ; preds = %42
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %61

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

52:                                               ; preds = %44
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %59

54:                                               ; preds = %45
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %46
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %58

58:                                               ; preds = %56, %54
  %.pn17 = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %59

59:                                               ; preds = %58, %52
  %.pn17.pn = phi { ptr, i32 } [ %.pn17, %58 ], [ %53, %52 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %60

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

61:                                               ; preds = %60, %48
  %.pn17.pn.pn.pn = phi { ptr, i32 } [ %.pn17.pn.pn, %60 ], [ %49, %48 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br label %191

62:                                               ; preds = %2
  %63 = getelementptr inbounds i8, ptr %0, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %.not12 = icmp eq ptr %64, null
  br i1 %.not12, label %65, label %85

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  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 %66 unwind label %71

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  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 %67 unwind label %73

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  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 %68 unwind label %75

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull @__func__._ZN3cgp36camera_controller_first_person_euler10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %69 unwind label %77

69:                                               ; preds = %68
  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) #6
          to label %70 unwind label %79

70:                                               ; preds = %69
  unreachable

71:                                               ; preds = %65
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %84

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

75:                                               ; preds = %67
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %82

77:                                               ; preds = %68
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %69
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %81

81:                                               ; preds = %79, %77
  %.pn = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %82

82:                                               ; preds = %81, %75
  %.pn.pn = phi { ptr, i32 } [ %.pn, %81 ], [ %76, %75 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %83

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

84:                                               ; preds = %83, %71
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %83 ], [ %72, %71 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %191

85:                                               ; preds = %62
  %86 = load i8, ptr %0, align 8, !tbaa !12, !range !13, !noundef !14
  %87 = trunc nuw i8 %86 to i1
  br i1 %87, label %88, label %190

88:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #5
  %89 = getelementptr inbounds i8, ptr %41, i64 96
  %90 = load float, ptr %89, align 8, !tbaa !15
  %91 = fmul float %90, 2.000000e+00
  store float %91, ptr %19, align 4, !tbaa !35
  %92 = tail call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %41, i32 noundef 82)
  br i1 %92, label %93, label %95

93:                                               ; preds = %88
  %94 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #5
  store i32 0, ptr %21, align 4, !tbaa !36
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %19)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %94, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  br label %95

95:                                               ; preds = %93, %88
  %96 = load ptr, ptr %40, align 8, !tbaa !5
  %97 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %96, i32 noundef 70)
  br i1 %97, label %98, label %102

98:                                               ; preds = %95
  %99 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #5
  store i32 0, ptr %23, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #5
  %100 = load float, ptr %19, align 4, !tbaa !35
  %101 = fneg float %100
  store float %101, ptr %24, align 4, !tbaa !35
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_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 @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %99, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  br label %102

102:                                              ; preds = %98, %95
  %103 = load ptr, ptr %40, align 8, !tbaa !5
  %104 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %103, i32 noundef 65)
  br i1 %104, label %105, label %109

105:                                              ; preds = %102
  %106 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #5
  %107 = load float, ptr %19, align 4, !tbaa !35
  %108 = fneg float %107
  store float %108, ptr %26, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #5
  store i32 0, ptr %27, align 4, !tbaa !36
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_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 @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %106, ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #5
  br label %109

109:                                              ; preds = %105, %102
  %110 = load ptr, ptr %40, align 8, !tbaa !5
  %111 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %110, i32 noundef 68)
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  %113 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #5
  store i32 0, ptr %29, align 4, !tbaa !36
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %113, ptr noundef nonnull align 4 dereferenceable(8) %28)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #5
  br label %114

114:                                              ; preds = %112, %109
  %115 = load ptr, ptr %40, align 8, !tbaa !5
  %116 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %115, i32 noundef 87)
  br i1 %116, label %117, label %120

117:                                              ; preds = %114
  %118 = getelementptr inbounds i8, ptr %0, i64 24
  %119 = load float, ptr %19, align 4, !tbaa !35
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %118, float noundef %119)
  br label %120

120:                                              ; preds = %117, %114
  %121 = load ptr, ptr %40, align 8, !tbaa !5
  %122 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %121, i32 noundef 83)
  br i1 %122, label %123, label %127

123:                                              ; preds = %120
  %124 = getelementptr inbounds i8, ptr %0, i64 24
  %125 = load float, ptr %19, align 4, !tbaa !35
  %126 = fneg float %125
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %124, float noundef %126)
  br label %127

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

130:                                              ; preds = %127
  %131 = getelementptr inbounds i8, ptr %0, i64 24
  %132 = load float, ptr %19, align 4, !tbaa !35
  call void @_ZN3cgp25camera_first_person_euler31manipulator_twist_rotation_axisEf(ptr noundef nonnull align 8 dereferenceable(44) %131, float noundef %132)
  br label %133

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

136:                                              ; preds = %133
  %137 = getelementptr inbounds i8, ptr %0, i64 24
  %138 = load float, ptr %19, align 4, !tbaa !35
  %139 = fneg float %138
  call void @_ZN3cgp25camera_first_person_euler31manipulator_twist_rotation_axisEf(ptr noundef nonnull align 8 dereferenceable(44) %137, float noundef %139)
  br label %140

140:                                              ; preds = %136, %133
  %141 = load ptr, ptr %40, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i64 1
  %143 = load i8, ptr %142, align 1, !tbaa !37, !range !13, !noundef !14
  %144 = icmp eq i8 %143, 0
  %145 = getelementptr inbounds i8, ptr %141, i64 2
  %146 = load i8, ptr %145, align 2, !tbaa !38, !range !13, !noundef !14
  %147 = trunc nuw i8 %146 to i1
  br i1 %144, label %148, label %161

148:                                              ; preds = %140
  br i1 %147, label %149, label %152

149:                                              ; preds = %148
  %150 = getelementptr inbounds i8, ptr %0, i64 24
  %151 = load float, ptr %19, align 4, !tbaa !35
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %150, float noundef %151)
  %.pre23 = load ptr, ptr %40, align 8, !tbaa !5
  br label %152

152:                                              ; preds = %149, %148
  %153 = phi ptr [ %.pre23, %149 ], [ %141, %148 ]
  %154 = getelementptr inbounds i8, ptr %153, i64 3
  %155 = load i8, ptr %154, align 1, !tbaa !39, !range !13, !noundef !14
  %156 = trunc nuw i8 %155 to i1
  br i1 %156, label %157, label %173

157:                                              ; preds = %152
  %158 = getelementptr inbounds i8, ptr %0, i64 24
  %159 = load float, ptr %19, align 4, !tbaa !35
  %160 = fneg float %159
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %158, float noundef %160)
  br label %173

161:                                              ; preds = %140
  br i1 %147, label %162, label %164

162:                                              ; preds = %161
  %163 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #5
  store i32 0, ptr %31, align 4, !tbaa !36
  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) %19)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %163, ptr noundef nonnull align 4 dereferenceable(8) %30)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #5
  %.pre = load ptr, ptr %40, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %162, %161
  %165 = phi ptr [ %.pre, %162 ], [ %141, %161 ]
  %166 = getelementptr inbounds i8, ptr %165, i64 3
  %167 = load i8, ptr %166, align 1, !tbaa !39, !range !13, !noundef !14
  %168 = trunc nuw i8 %167 to i1
  br i1 %168, label %169, label %173

169:                                              ; preds = %164
  %170 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #5
  store i32 0, ptr %33, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #5
  %171 = load float, ptr %19, align 4, !tbaa !35
  %172 = fneg float %171
  store float %172, ptr %34, align 4, !tbaa !35
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IifEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %34)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %170, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #5
  br label %173

173:                                              ; preds = %164, %169, %152, %157
  %174 = load ptr, ptr %40, align 8, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %174, i64 5
  %176 = load i8, ptr %175, align 1, !tbaa !40, !range !13, !noundef !14
  %177 = trunc nuw i8 %176 to i1
  br i1 %177, label %178, label %182

178:                                              ; preds = %173
  %179 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #5
  %180 = load float, ptr %19, align 4, !tbaa !35
  %181 = fneg float %180
  store float %181, ptr %36, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #5
  store i32 0, ptr %37, align 4, !tbaa !36
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %179, ptr noundef nonnull align 4 dereferenceable(8) %35)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #5
  %.pre24 = load ptr, ptr %40, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %178, %173
  %183 = phi ptr [ %.pre24, %178 ], [ %174, %173 ]
  %184 = getelementptr inbounds i8, ptr %183, i64 4
  %185 = load i8, ptr %184, align 4, !tbaa !41, !range !13, !noundef !14
  %186 = trunc nuw i8 %185 to i1
  br i1 %186, label %187, label %189

187:                                              ; preds = %182
  %188 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #5
  store i32 0, ptr %39, align 4, !tbaa !36
  call void @_ZN3cgp14numarray_stackIfLi2EEC2IfiEERKT_RKT0_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %39)
  call void @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44) %188, ptr noundef nonnull align 4 dereferenceable(8) %38)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #5
  br label %189

189:                                              ; preds = %187, %182
  call void @_ZN3cgp36camera_controller_first_person_euler6updateERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 4 dereferenceable(64) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  br label %190

190:                                              ; preds = %85, %189
  ret void

191:                                              ; preds = %84, %61
  %.pn17.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn17.pn.pn.pn, %61 ], [ %.pn.pn.pn.pn, %84 ]
  resume { ptr, i32 } %.pn17.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 @_ZN3cgp25camera_first_person_euler30manipulator_translate_in_planeERKNS_14numarray_stackIfLi2EEE(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; 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 #3 align 2

; 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 #3 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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, !32, i64 96}
!16 = !{!"_ZTSN3cgp13input_devicesE", !17, i64 0, !29, i64 64, !32, i64 96}
!17 = !{!"_ZTSN3cgp26inputs_keyboard_parametersE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !18, i64 8, !20, i64 16}
!18 = !{!"_ZTSN3cgp37inputs_keyboard_last_action_parameterE", !19, i64 0, !19, i64 4}
!19 = !{!"int", !8, i64 0}
!20 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessIiE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !28, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!28 = !{!"long", !8, i64 0}
!29 = !{!"_ZTSN3cgp23inputs_mouse_parametersE", !30, i64 0, !33, i64 16, !32, i64 24, !7, i64 28}
!30 = !{!"_ZTSN3cgp39inputs_mouse_cursor_position_parametersE", !31, i64 0, !31, i64 8}
!31 = !{!"_ZTSN3cgp14numarray_stackIfLi2EEE", !32, i64 0, !32, i64 4}
!32 = !{!"float", !8, i64 0}
!33 = !{!"_ZTSN3cgp36inputs_mouse_cursor_click_parametersE", !7, i64 0, !7, i64 1, !34, i64 4}
!34 = !{!"_ZTSN3cgp24last_mouse_cursor_actionE", !8, i64 0}
!35 = !{!32, !32, i64 0}
!36 = !{!19, !19, i64 0}
!37 = !{!16, !7, i64 1}
!38 = !{!16, !7, i64 2}
!39 = !{!16, !7, i64 3}
!40 = !{!16, !7, i64 5}
!41 = !{!16, !7, i64 4}


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