; LLVM IR from drohmer/cgp :: library/cgp/19_camera_controller/camera_controller_2d_displacement/camera_control_70a605bb (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" = type { float, 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.3", %"struct.cgp::numarray_stack.3" }
%"struct.cgp::numarray_stack.3" = type { float, float }
%"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", %"struct.cgp::numarray_stack", [4 x i8] }>
%"struct.cgp::camera_generic_base" = type { ptr }

@.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 [150 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@__func__._ZN3cgp33camera_controller_2d_displacement10idle_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 { <2 x float>, float } @_ZNK3cgp19camera_generic_base5frontEv(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: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpmiERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3cgp3dotERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgppLERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #7

declare void @_ZN3cgp36camera_controller_first_person_euler6updateERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73), ptr noundef nonnull align 4 dereferenceable(64)) #4

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

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

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

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  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 %56 unwind label %67

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

57:                                               ; preds = %56
  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 44) #10
          to label %58 unwind label %75

58:                                               ; preds = %57
  unreachable

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

63:                                               ; preds = %54
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %81

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

71:                                               ; preds = %56
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  br label %79

75:                                               ; preds = %57
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %79

79:                                               ; preds = %75, %71
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  br label %80

80:                                               ; preds = %79, %67
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %81

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

82:                                               ; preds = %81, %59
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #9
  br label %236

83:                                               ; preds = %2
  %84 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !12
  %86 = icmp ne ptr %85, null
  %87 = zext i1 %86 to i32
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %119

89:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  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 %90 unwind label %95

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #9
  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 %91 unwind label %99

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #9
  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 %92 unwind label %103

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @__func__._ZN3cgp33camera_controller_2d_displacement10idle_frameERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %93 unwind label %107

93:                                               ; preds = %92
  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 45) #10
          to label %94 unwind label %111

94:                                               ; preds = %93
  unreachable

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

99:                                               ; preds = %90
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %8, align 4
  br label %117

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

107:                                              ; preds = %92
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %7, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %8, align 4
  br label %115

111:                                              ; preds = %93
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  br label %115

115:                                              ; preds = %111, %107
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %116

116:                                              ; preds = %115, %103
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  br label %117

117:                                              ; preds = %116, %99
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  br label %118

118:                                              ; preds = %117, %95
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #9
  br label %236

119:                                              ; preds = %83
  %120 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 0
  %121 = load i8, ptr %120, align 8, !tbaa !13, !range !14, !noundef !15
  %122 = trunc i8 %121 to i1
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  br label %235

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %125 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, 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 !16
  %129 = fmul float 1.500000e+00, %128
  store float %129, ptr %23, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %130 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %47, i32 0, i32 1
  %131 = getelementptr inbounds %"struct.cgp::camera_first_person_euler", ptr %130, i32 0, i32 4
  store ptr %131, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #9
  %132 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %47, i32 0, i32 1
  %133 = call { <2 x float>, float } @_ZNK3cgp19camera_generic_base5frontEv(ptr noundef nonnull align 8 dereferenceable(8) %132)
  store { <2 x float>, float } %133, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %27, i64 12, i1 false)
  store ptr %26, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #9
  %134 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %47, i32 0, i32 1
  %135 = call { <2 x float>, float } @_ZNK3cgp19camera_generic_base5rightEv(ptr noundef nonnull align 8 dereferenceable(8) %134)
  store { <2 x float>, float } %135, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %30, i64 12, i1 false)
  store ptr %29, ptr %28, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = getelementptr inbounds %"struct.cgp::input_devices", ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %138, i32 0, i32 0
  %140 = load i8, ptr %139, align 8, !tbaa !37, !range !14, !noundef !15
  %141 = trunc i8 %140 to i1
  br i1 %141, label %142, label %145

142:                                              ; preds = %124
  %143 = load float, ptr %23, align 4, !tbaa !36
  %144 = fmul float 3.000000e+00, %143
  store float %144, ptr %23, align 4, !tbaa !36
  br label %145

145:                                              ; preds = %142, %124
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #9
  %146 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #9
  %147 = load ptr, ptr %25, align 8, !tbaa !5
  %148 = load ptr, ptr %24, align 8, !tbaa !5
  %149 = call noundef float @_ZN3cgp3dotERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %147, ptr noundef nonnull align 4 dereferenceable(12) %148)
  %150 = load ptr, ptr %24, align 8, !tbaa !5
  %151 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %149, ptr noundef nonnull align 4 dereferenceable(12) %150)
  store { <2 x float>, float } %151, ptr %33, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %33, i64 12, i1 false)
  %152 = call { <2 x float>, float } @_ZN3cgpmiERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %146, ptr noundef nonnull align 4 dereferenceable(12) %32)
  store { <2 x float>, float } %152, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %34, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #9
  %153 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #9
  %154 = load ptr, ptr %28, align 8, !tbaa !5
  %155 = load ptr, ptr %24, align 8, !tbaa !5
  %156 = call noundef float @_ZN3cgp3dotERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %154, ptr noundef nonnull align 4 dereferenceable(12) %155)
  %157 = load ptr, ptr %24, align 8, !tbaa !5
  %158 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %156, ptr noundef nonnull align 4 dereferenceable(12) %157)
  store { <2 x float>, float } %158, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %37, i64 12, i1 false)
  %159 = call { <2 x float>, float } @_ZN3cgpmiERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %153, ptr noundef nonnull align 4 dereferenceable(12) %36)
  store { <2 x float>, float } %159, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %38, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #9
  %160 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = getelementptr inbounds %"struct.cgp::input_devices", ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %162, i32 0, i32 2
  %164 = load i8, ptr %163, align 2, !tbaa !38, !range !14, !noundef !15
  %165 = trunc i8 %164 to i1
  br i1 %165, label %171, label %166

166:                                              ; preds = %145
  %167 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, 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 87)
  br i1 %170, label %171, label %177

171:                                              ; preds = %166, %145
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #9
  %172 = load float, ptr %23, align 4, !tbaa !36
  %173 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %172, ptr noundef nonnull align 4 dereferenceable(12) %31)
  store { <2 x float>, float } %173, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %40, i64 12, i1 false)
  %174 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %47, i32 0, i32 1
  %175 = getelementptr inbounds %"struct.cgp::camera_first_person_euler", ptr %174, i32 0, i32 5
  %176 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgppLERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %175, ptr noundef nonnull align 4 dereferenceable(12) %39)
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #9
  br label %177

177:                                              ; preds = %171, %166
  %178 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8, !tbaa !9
  %180 = getelementptr inbounds %"struct.cgp::input_devices", ptr %179, i32 0, i32 0
  %181 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %180, i32 0, i32 3
  %182 = load i8, ptr %181, align 1, !tbaa !39, !range !14, !noundef !15
  %183 = trunc i8 %182 to i1
  br i1 %183, label %189, label %184

184:                                              ; preds = %177
  %185 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 1
  %186 = load ptr, ptr %185, align 8, !tbaa !9
  %187 = getelementptr inbounds %"struct.cgp::input_devices", ptr %186, i32 0, i32 0
  %188 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %187, i32 noundef 83)
  br i1 %188, label %189, label %195

189:                                              ; preds = %184, %177
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #9
  %190 = load float, ptr %23, align 4, !tbaa !36
  %191 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %190, ptr noundef nonnull align 4 dereferenceable(12) %31)
  store { <2 x float>, float } %191, ptr %42, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 8 %42, i64 12, i1 false)
  %192 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %47, i32 0, i32 1
  %193 = getelementptr inbounds %"struct.cgp::camera_first_person_euler", ptr %192, i32 0, i32 5
  %194 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgpmIERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %193, ptr noundef nonnull align 4 dereferenceable(12) %41)
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #9
  br label %195

195:                                              ; preds = %189, %184
  %196 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 1
  %197 = load ptr, ptr %196, align 8, !tbaa !9
  %198 = getelementptr inbounds %"struct.cgp::input_devices", ptr %197, i32 0, i32 0
  %199 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %198, i32 0, i32 5
  %200 = load i8, ptr %199, align 1, !tbaa !40, !range !14, !noundef !15
  %201 = trunc i8 %200 to i1
  br i1 %201, label %207, label %202

202:                                              ; preds = %195
  %203 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 1
  %204 = load ptr, ptr %203, align 8, !tbaa !9
  %205 = getelementptr inbounds %"struct.cgp::input_devices", ptr %204, i32 0, i32 0
  %206 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %205, i32 noundef 65)
  br i1 %206, label %207, label %214

207:                                              ; preds = %202, %195
  call void @llvm.lifetime.start.p0(i64 12, ptr %43) #9
  %208 = load float, ptr %23, align 4, !tbaa !36
  %209 = fmul float 5.000000e-01, %208
  %210 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %209, ptr noundef nonnull align 4 dereferenceable(12) %35)
  store { <2 x float>, float } %210, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 8 %44, i64 12, i1 false)
  %211 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %47, i32 0, i32 1
  %212 = getelementptr inbounds %"struct.cgp::camera_first_person_euler", ptr %211, i32 0, i32 5
  %213 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgpmIERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %212, ptr noundef nonnull align 4 dereferenceable(12) %43)
  call void @llvm.lifetime.end.p0(i64 12, ptr %43) #9
  br label %214

214:                                              ; preds = %207, %202
  %215 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, 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 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %217, i32 0, i32 4
  %219 = load i8, ptr %218, align 4, !tbaa !41, !range !14, !noundef !15
  %220 = trunc i8 %219 to i1
  br i1 %220, label %226, label %221

221:                                              ; preds = %214
  %222 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %47, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8, !tbaa !9
  %224 = getelementptr inbounds %"struct.cgp::input_devices", ptr %223, i32 0, i32 0
  %225 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %224, i32 noundef 68)
  br i1 %225, label %226, label %233

226:                                              ; preds = %221, %214
  call void @llvm.lifetime.start.p0(i64 12, ptr %45) #9
  %227 = load float, ptr %23, align 4, !tbaa !36
  %228 = fmul float 5.000000e-01, %227
  %229 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %228, ptr noundef nonnull align 4 dereferenceable(12) %35)
  store { <2 x float>, float } %229, ptr %46, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 8 %46, i64 12, i1 false)
  %230 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %47, i32 0, i32 1
  %231 = getelementptr inbounds %"struct.cgp::camera_first_person_euler", ptr %230, i32 0, i32 5
  %232 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgppLERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %231, ptr noundef nonnull align 4 dereferenceable(12) %45)
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #9
  br label %233

233:                                              ; preds = %226, %221
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3cgp36camera_controller_first_person_euler6updateERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %47, ptr noundef nonnull align 4 dereferenceable(64) %234)
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %235

235:                                              ; preds = %233, %123
  ret void

236:                                              ; preds = %118, %82
  %237 = load ptr, ptr %7, align 8
  %238 = load i32, ptr %8, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

declare { <2 x float>, float } @_ZNK3cgp19camera_generic_base5rightEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgpmIERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #7

; 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint 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 #8 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { 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 = !{!17, !11, i64 0}
!38 = !{!17, !11, i64 2}
!39 = !{!17, !11, i64 3}
!40 = !{!17, !11, i64 5}
!41 = !{!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" = 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 [150 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@__func__._ZN3cgp33camera_controller_2d_displacement10idle_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 { <2 x float>, float } @_ZNK3cgp19camera_generic_base5frontEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpmiERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3cgp3dotERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgppLERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

declare 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 #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp33camera_controller_2d_displacement10idle_frameERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 4 dereferenceable(64) %1) local_unnamed_addr #7 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 %"struct.cgp::numarray_stack", align 8
  %20 = alloca %"struct.cgp::numarray_stack", align 8
  %21 = alloca %"struct.cgp::numarray_stack", align 8
  %22 = alloca %"struct.cgp::numarray_stack", align 8
  %23 = alloca %"struct.cgp::numarray_stack", align 8
  %24 = alloca %"struct.cgp::numarray_stack", align 8
  %25 = alloca %"struct.cgp::numarray_stack", align 8
  %26 = alloca %"struct.cgp::numarray_stack", align 8
  %27 = alloca %"struct.cgp::numarray_stack", align 8
  %28 = alloca %"struct.cgp::numarray_stack", align 8
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %31, label %51

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

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

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

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

35:                                               ; preds = %34
  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 44) #9
          to label %36 unwind label %45

36:                                               ; preds = %35
  unreachable

37:                                               ; preds = %31
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %50

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

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

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

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

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

48:                                               ; preds = %47, %41
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %47 ], [ %42, %41 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  br label %49

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

50:                                               ; preds = %49, %37
  %.pn67.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn, %49 ], [ %38, %37 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  br label %142

51:                                               ; preds = %2
  %52 = getelementptr inbounds i8, ptr %0, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %.not62 = icmp eq ptr %53, null
  br i1 %.not62, label %54, label %74

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

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  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 %56 unwind label %62

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  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 %57 unwind label %64

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

58:                                               ; preds = %57
  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 45) #9
          to label %59 unwind label %68

59:                                               ; preds = %58
  unreachable

60:                                               ; preds = %54
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %73

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

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

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

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

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

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

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

73:                                               ; preds = %72, %60
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %72 ], [ %61, %60 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br label %142

74:                                               ; preds = %51
  %75 = load i8, ptr %0, align 8, !tbaa !12, !range !13, !noundef !14
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %77, label %141

77:                                               ; preds = %74
  %78 = getelementptr inbounds i8, ptr %30, i64 96
  %79 = load float, ptr %78, align 8, !tbaa !15
  %80 = fmul float %79, 1.500000e+00
  %81 = getelementptr inbounds i8, ptr %0, i64 24
  %82 = getelementptr inbounds i8, ptr %0, i64 44
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #8
  %83 = tail call { <2 x float>, float } @_ZNK3cgp19camera_generic_base5frontEv(ptr noundef nonnull align 8 dereferenceable(8) %81)
  %.fca.0.extract34 = extractvalue { <2 x float>, float } %83, 0
  %.fca.1.extract35 = extractvalue { <2 x float>, float } %83, 1
  store <2 x float> %.fca.0.extract34, ptr %19, align 8
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store float %.fca.1.extract35, ptr %.sroa.237.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #8
  %84 = tail call { <2 x float>, float } @_ZNK3cgp19camera_generic_base5rightEv(ptr noundef nonnull align 8 dereferenceable(8) %81)
  %.fca.0.extract29 = extractvalue { <2 x float>, float } %84, 0
  %.fca.1.extract30 = extractvalue { <2 x float>, float } %84, 1
  store <2 x float> %.fca.0.extract29, ptr %20, align 8
  %.sroa.232.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  store float %.fca.1.extract30, ptr %.sroa.232.0..sroa_idx, align 8
  %85 = load ptr, ptr %29, align 8, !tbaa !5
  %86 = load i8, ptr %85, align 8, !tbaa !35, !range !13, !noundef !14
  %87 = trunc nuw i8 %86 to i1
  %88 = fmul float %80, 3.000000e+00
  %.061 = select i1 %87, float %88, float %80
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #8
  %89 = call noundef float @_ZN3cgp3dotERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %82)
  %90 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %89, ptr noundef nonnull align 4 dereferenceable(12) %82)
  %.fca.0.extract25 = extractvalue { <2 x float>, float } %90, 0
  %.fca.1.extract26 = extractvalue { <2 x float>, float } %90, 1
  store <2 x float> %.fca.0.extract25, ptr %22, align 8
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  store float %.fca.1.extract26, ptr %.sroa.228.0..sroa_idx, align 8
  %91 = call { <2 x float>, float } @_ZN3cgpmiERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %22)
  %.fca.0.extract21 = extractvalue { <2 x float>, float } %91, 0
  %.fca.1.extract22 = extractvalue { <2 x float>, float } %91, 1
  store <2 x float> %.fca.0.extract21, ptr %21, align 8
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  store float %.fca.1.extract22, ptr %.sroa.224.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #8
  %92 = call noundef float @_ZN3cgp3dotERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %82)
  %93 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %92, ptr noundef nonnull align 4 dereferenceable(12) %82)
  %.fca.0.extract17 = extractvalue { <2 x float>, float } %93, 0
  %.fca.1.extract18 = extractvalue { <2 x float>, float } %93, 1
  store <2 x float> %.fca.0.extract17, ptr %24, align 8
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  store float %.fca.1.extract18, ptr %.sroa.220.0..sroa_idx, align 8
  %94 = call { <2 x float>, float } @_ZN3cgpmiERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %24)
  %.fca.0.extract13 = extractvalue { <2 x float>, float } %94, 0
  %.fca.1.extract14 = extractvalue { <2 x float>, float } %94, 1
  store <2 x float> %.fca.0.extract13, ptr %23, align 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  store float %.fca.1.extract14, ptr %.sroa.216.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #8
  %95 = load ptr, ptr %29, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 2
  %97 = load i8, ptr %96, align 2, !tbaa !36, !range !13, !noundef !14
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %101, label %99

99:                                               ; preds = %77
  %100 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %95, i32 noundef 87)
  br i1 %100, label %101, label %105

101:                                              ; preds = %99, %77
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #8
  %102 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %.061, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %102, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %102, 1
  store <2 x float> %.fca.0.extract9, ptr %25, align 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  %103 = getelementptr inbounds i8, ptr %0, i64 56
  %104 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgppLERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %103, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #8
  br label %105

105:                                              ; preds = %101, %99
  %106 = load ptr, ptr %29, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 3
  %108 = load i8, ptr %107, align 1, !tbaa !37, !range !13, !noundef !14
  %109 = trunc nuw i8 %108 to i1
  br i1 %109, label %112, label %110

110:                                              ; preds = %105
  %111 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %106, i32 noundef 83)
  br i1 %111, label %112, label %116

112:                                              ; preds = %110, %105
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %26) #8
  %113 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %.061, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %113, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %113, 1
  store <2 x float> %.fca.0.extract5, ptr %26, align 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %26, i64 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %114 = getelementptr inbounds i8, ptr %0, i64 56
  %115 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgpmIERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %114, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #8
  br label %116

116:                                              ; preds = %112, %110
  %117 = load ptr, ptr %29, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 5
  %119 = load i8, ptr %118, align 1, !tbaa !38, !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 65)
  br i1 %122, label %123, label %128

123:                                              ; preds = %121, %116
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #8
  %124 = fmul float %.061, 5.000000e-01
  %125 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %124, ptr noundef nonnull align 4 dereferenceable(12) %23)
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %125, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %125, 1
  store <2 x float> %.fca.0.extract1, ptr %27, align 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %27, i64 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %126 = getelementptr inbounds i8, ptr %0, i64 56
  %127 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgpmIERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %126, ptr noundef nonnull align 4 dereferenceable(12) %27)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #8
  br label %128

128:                                              ; preds = %123, %121
  %129 = load ptr, ptr %29, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 4
  %131 = load i8, ptr %130, align 4, !tbaa !39, !range !13, !noundef !14
  %132 = trunc nuw i8 %131 to i1
  br i1 %132, label %135, label %133

133:                                              ; preds = %128
  %134 = call noundef zeroext i1 @_ZNK3cgp26inputs_keyboard_parameters10is_pressedEi(ptr noundef nonnull align 8 dereferenceable(64) %129, i32 noundef 68)
  br i1 %134, label %135, label %140

135:                                              ; preds = %133, %128
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #8
  %136 = fmul float %.061, 5.000000e-01
  %137 = call { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %136, ptr noundef nonnull align 4 dereferenceable(12) %23)
  %.fca.0.extract = extractvalue { <2 x float>, float } %137, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %137, 1
  store <2 x float> %.fca.0.extract, ptr %28, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %138 = getelementptr inbounds i8, ptr %0, i64 56
  %139 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgppLERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %138, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #8
  br label %140

140:                                              ; preds = %135, %133
  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 12, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  br label %141

141:                                              ; preds = %74, %140
  ret void

142:                                              ; preds = %73, %50
  %.pn67.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn67.pn.pn.pn, %50 ], [ %.pn.pn.pn.pn, %73 ]
  resume { ptr, i32 } %.pn67.pn.pn.pn.pn
}

declare { <2 x float>, float } @_ZNK3cgp19camera_generic_base5rightEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3cgpmIERNS_14numarray_stackIfLi3EEERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; 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 = { inlinehint 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 #6 = { inlinehint 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 #7 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { 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 = !{!16, !7, i64 0}
!36 = !{!16, !7, i64 2}
!37 = !{!16, !7, i64 3}
!38 = !{!16, !7, i64 5}
!39 = !{!16, !7, i64 4}


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