; LLVM IR from drohmer/cgp :: library/cgp/19_camera_controller/camera_controller_first_person_euler/camera_cont_dc00fb06 (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
@__func__._ZN3cgp36camera_controller_first_person_euler17action_mouse_moveERNS_12matrix_stackIfLi4ELi4EEE = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 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: mustprogress uwtable
define dso_local void @_ZN3cgp36camera_controller_first_person_euler17action_mouse_moveERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 4 dereferenceable(64) %1) #2 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 ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.cgp::numarray_stack.5", align 4
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca %"struct.cgp::numarray_stack.5", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %3, align 8
  %32 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = icmp ne ptr %33, null
  %35 = zext i1 %34 to i32
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %67

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

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

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

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @__func__._ZN3cgp36camera_controller_first_person_euler17action_mouse_moveERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %41 unwind label %55

41:                                               ; preds = %40
  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 13) #7
          to label %42 unwind label %59

42:                                               ; preds = %41
  unreachable

43:                                               ; preds = %37
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  br label %66

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

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

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

59:                                               ; preds = %41
  %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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %63

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

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

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

66:                                               ; preds = %65, %43
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %195

67:                                               ; preds = %2
  %68 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !12
  %70 = icmp ne ptr %69, null
  %71 = zext i1 %70 to i32
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %103

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

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

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

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @__func__._ZN3cgp36camera_controller_first_person_euler17action_mouse_moveERNS_12matrix_stackIfLi4ELi4EEE, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %77 unwind label %91

77:                                               ; preds = %76
  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 14) #7
          to label %78 unwind label %95

78:                                               ; preds = %77
  unreachable

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  br label %102

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

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

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

95:                                               ; preds = %77
  %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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %99

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

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

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

102:                                              ; preds = %101, %79
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %195

103:                                              ; preds = %67
  %104 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, i32 0, i32 0
  %105 = load i8, ptr %104, align 8, !tbaa !13, !range !14, !noundef !15
  %106 = trunc i8 %105 to i1
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  br label %194

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %109 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = getelementptr inbounds %"struct.cgp::input_devices", ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds %"struct.cgp::inputs_mouse_parameters", ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %"struct.cgp::inputs_mouse_cursor_position_parameters", ptr %112, i32 0, i32 0
  store ptr %113, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %114 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = getelementptr inbounds %"struct.cgp::input_devices", ptr %115, i32 0, i32 1
  %117 = getelementptr inbounds %"struct.cgp::inputs_mouse_parameters", ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %"struct.cgp::inputs_mouse_cursor_position_parameters", ptr %117, i32 0, i32 1
  store ptr %118, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %119 = load ptr, ptr %23, align 8, !tbaa !5
  %120 = load ptr, ptr %24, align 8, !tbaa !5
  %121 = call <2 x float> @_ZN3cgpmiIfLi2EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(8) %119, ptr noundef nonnull align 4 dereferenceable(8) %120)
  store <2 x float> %121, ptr %25, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  %122 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, 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 1
  %125 = getelementptr inbounds %"struct.cgp::inputs_mouse_parameters", ptr %124, i32 0, i32 3
  %126 = load i8, ptr %125, align 4, !tbaa !16, !range !14, !noundef !15
  %127 = trunc i8 %126 to i1
  %128 = xor i1 %127, true
  %129 = zext i1 %128 to i8
  store i8 %129, ptr %26, align 1, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  %130 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds %"struct.cgp::input_devices", ptr %131, i32 0, i32 1
  %133 = getelementptr inbounds %"struct.cgp::inputs_mouse_parameters", ptr %132, i32 0, i32 1
  %134 = getelementptr inbounds %"struct.cgp::inputs_mouse_cursor_click_parameters", ptr %133, i32 0, i32 0
  %135 = load i8, ptr %134, align 8, !tbaa !37, !range !14, !noundef !15
  %136 = trunc i8 %135 to i1
  %137 = zext i1 %136 to i8
  store i8 %137, ptr %27, align 1, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  %138 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8, !tbaa !9
  %140 = getelementptr inbounds %"struct.cgp::input_devices", ptr %139, i32 0, i32 1
  %141 = getelementptr inbounds %"struct.cgp::inputs_mouse_parameters", ptr %140, i32 0, i32 1
  %142 = getelementptr inbounds %"struct.cgp::inputs_mouse_cursor_click_parameters", ptr %141, i32 0, i32 1
  %143 = load i8, ptr %142, align 1, !tbaa !38, !range !14, !noundef !15
  %144 = trunc i8 %143 to i1
  %145 = zext i1 %144 to i8
  store i8 %145, ptr %28, align 1, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  %146 = getelementptr inbounds %"struct.cgp::camera_controller_generic_base", ptr %31, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = getelementptr inbounds %"struct.cgp::input_devices", ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %"struct.cgp::inputs_keyboard_parameters", ptr %148, i32 0, i32 1
  %150 = load i8, ptr %149, align 1, !tbaa !39, !range !14, !noundef !15
  %151 = trunc i8 %150 to i1
  %152 = zext i1 %151 to i8
  store i8 %152, ptr %29, align 1, !tbaa !36
  %153 = load i8, ptr %26, align 1, !tbaa !36, !range !14, !noundef !15
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %192

155:                                              ; preds = %108
  %156 = load i8, ptr %27, align 1, !tbaa !36, !range !14, !noundef !15
  %157 = trunc i8 %156 to i1
  br i1 %157, label %165, label %158

158:                                              ; preds = %155
  %159 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %31, i32 0, i32 2
  %160 = load i8, ptr %159, align 8, !tbaa !40, !range !14, !noundef !15
  %161 = trunc i8 %160 to i1
  br i1 %161, label %162, label %180

162:                                              ; preds = %158
  %163 = load i8, ptr %28, align 1, !tbaa !36, !range !14, !noundef !15
  %164 = trunc i8 %163 to i1
  br i1 %164, label %180, label %165

165:                                              ; preds = %162, %155
  %166 = load i8, ptr %29, align 1, !tbaa !36, !range !14, !noundef !15
  %167 = trunc i8 %166 to i1
  br i1 %167, label %175, label %168

168:                                              ; preds = %165
  %169 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %31, i32 0, i32 1
  %170 = getelementptr inbounds %"struct.cgp::numarray_stack.5", ptr %25, i32 0, i32 1
  %171 = load float, ptr %170, align 4, !tbaa !45
  %172 = getelementptr inbounds %"struct.cgp::numarray_stack.5", ptr %25, i32 0, i32 0
  %173 = load float, ptr %172, align 4, !tbaa !46
  %174 = fneg float %173
  call void @_ZN3cgp25camera_first_person_euler33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(44) %169, float noundef 0.000000e+00, float noundef %171, float noundef %174)
  br label %179

175:                                              ; preds = %165
  %176 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %31, i32 0, i32 1
  %177 = getelementptr inbounds %"struct.cgp::numarray_stack.5", ptr %25, i32 0, i32 0
  %178 = load float, ptr %177, align 4, !tbaa !46
  call void @_ZN3cgp25camera_first_person_euler31manipulator_twist_rotation_axisEf(ptr noundef nonnull align 8 dereferenceable(44) %176, float noundef %178)
  br label %179

179:                                              ; preds = %175, %168
  br label %191

180:                                              ; preds = %162, %158
  %181 = load i8, ptr %28, align 1, !tbaa !36, !range !14, !noundef !15
  %182 = trunc i8 %181 to i1
  br i1 %182, label %183, label %190

183:                                              ; preds = %180
  %184 = getelementptr inbounds %"struct.cgp::camera_controller_first_person_euler", ptr %31, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = load ptr, ptr %24, align 8, !tbaa !5
  %187 = call <2 x float> @_ZN3cgpmiIfLi2EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(8) %185, ptr noundef nonnull align 4 dereferenceable(8) %186)
  store <2 x float> %187, ptr %30, align 4
  %188 = getelementptr inbounds %"struct.cgp::numarray_stack.5", ptr %30, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !45
  call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %184, float noundef %189)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %190

190:                                              ; preds = %183, %180
  br label %191

191:                                              ; preds = %190, %179
  br label %192

192:                                              ; preds = %191, %108
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3cgp36camera_controller_first_person_euler6updateERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %31, ptr noundef nonnull align 4 dereferenceable(64) %193)
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %194

194:                                              ; preds = %192, %107
  ret void

195:                                              ; preds = %102, %66
  %196 = load ptr, ptr %7, align 8
  %197 = load i32, ptr %8, align 4
  %198 = insertvalue { ptr, i32 } poison, ptr %196, 0
  %199 = insertvalue { ptr, i32 } %198, i32 %197, 1
  resume { ptr, i32 } %199
}

; 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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN3cgpmiIfLi2EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

declare void @_ZN3cgp25camera_first_person_euler33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(44), float noundef, float noundef, float noundef) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { "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 = { nounwind }
attributes #7 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN3cgp30camera_controller_generic_baseE", !11, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!"bool", !7, i64 0}
!12 = !{!10, !6, i64 16}
!13 = !{!10, !11, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !11, i64 92}
!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 = !{!11, !11, i64 0}
!37 = !{!17, !11, i64 80}
!38 = !{!17, !11, i64 81}
!39 = !{!17, !11, i64 1}
!40 = !{!41, !11, i64 72}
!41 = !{!"_ZTSN3cgp36camera_controller_first_person_eulerE", !10, i64 0, !42, i64 24, !11, i64 72}
!42 = !{!"_ZTSN3cgp25camera_first_person_eulerE", !43, i64 0, !33, i64 8, !33, i64 12, !33, i64 16, !44, i64 20, !44, i64 32}
!43 = !{!"_ZTSN3cgp19camera_generic_baseE"}
!44 = !{!"_ZTSN3cgp14numarray_stackIfLi3EEE", !33, i64 0, !33, i64 4, !33, i64 8}
!45 = !{!32, !33, i64 4}
!46 = !{!32, !33, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.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 }

@.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
@__func__._ZN3cgp36camera_controller_first_person_euler17action_mouse_moveERNS_12matrix_stackIfLi4ELi4EEE = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 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: mustprogress uwtable
define dso_local void @_ZN3cgp36camera_controller_first_person_euler17action_mouse_moveERNS_12matrix_stackIfLi4ELi4EEE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 4 dereferenceable(64) %1) local_unnamed_addr #2 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 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %.not = icmp eq ptr %20, null
  br i1 %.not, label %21, label %41

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

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

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

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

25:                                               ; preds = %24
  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 13) #7
          to label %26 unwind label %35

26:                                               ; preds = %25
  unreachable

27:                                               ; preds = %21
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %40

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %39

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

33:                                               ; preds = %24
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

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

37:                                               ; preds = %35, %33
  %.pn29 = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %38

38:                                               ; preds = %37, %31
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %37 ], [ %32, %31 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %39

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

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

41:                                               ; preds = %2
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %.not24 = icmp eq ptr %43, null
  br i1 %.not24, label %44, label %64

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

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

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

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

48:                                               ; preds = %47
  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 14) #7
          to label %49 unwind label %58

49:                                               ; preds = %48
  unreachable

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

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

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

56:                                               ; preds = %47
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

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

60:                                               ; preds = %58, %56
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %61

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

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

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

64:                                               ; preds = %41
  %65 = load i8, ptr %0, align 8, !tbaa !12, !range !13, !noundef !14
  %66 = trunc nuw i8 %65 to i1
  br i1 %66, label %67, label %99

67:                                               ; preds = %64
  %68 = getelementptr inbounds i8, ptr %20, i64 64
  %69 = getelementptr inbounds i8, ptr %20, i64 72
  %70 = tail call <2 x float> @_ZN3cgpmiIfLi2EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %69)
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 92
  %73 = load i8, ptr %72, align 4, !tbaa !15, !range !13, !noundef !14
  %74 = trunc nuw i8 %73 to i1
  %75 = getelementptr inbounds i8, ptr %71, i64 81
  %76 = load i8, ptr %75, align 1, !tbaa !35, !range !13, !noundef !14
  %77 = trunc nuw i8 %76 to i1
  %78 = getelementptr inbounds i8, ptr %71, i64 1
  %79 = load i8, ptr %78, align 1, !tbaa !36, !range !13, !noundef !14
  %80 = trunc nuw i8 %79 to i1
  br i1 %74, label %98, label %81

81:                                               ; preds = %67
  %82 = getelementptr inbounds i8, ptr %71, i64 80
  %83 = load i8, ptr %82, align 8, !tbaa !37, !range !13, !noundef !14
  %84 = trunc nuw i8 %83 to i1
  br i1 %84, label %89, label %85

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %0, i64 72
  %87 = load i8, ptr %86, align 8, !tbaa !38, !range !13, !noundef !14
  %88 = trunc nuw i8 %87 to i1
  %.not35 = xor i1 %88, true
  %brmerge = select i1 %.not35, i1 true, i1 %77
  br i1 %brmerge, label %94, label %89

89:                                               ; preds = %85, %81
  %90 = getelementptr inbounds i8, ptr %0, i64 24
  br i1 %80, label %93, label %91

91:                                               ; preds = %89
  %.sroa.05.4.vec.extract = extractelement <2 x float> %70, i64 1
  %.sroa.05.0.vec.extract = extractelement <2 x float> %70, i64 0
  %92 = fneg float %.sroa.05.0.vec.extract
  tail call void @_ZN3cgp25camera_first_person_euler33manipulator_rotate_roll_pitch_yawEfff(ptr noundef nonnull align 8 dereferenceable(44) %90, float noundef 0.000000e+00, float noundef %.sroa.05.4.vec.extract, float noundef %92)
  br label %98

93:                                               ; preds = %89
  %.sroa.05.0.vec.extract7 = extractelement <2 x float> %70, i64 0
  tail call void @_ZN3cgp25camera_first_person_euler31manipulator_twist_rotation_axisEf(ptr noundef nonnull align 8 dereferenceable(44) %90, float noundef %.sroa.05.0.vec.extract7)
  br label %98

94:                                               ; preds = %85
  br i1 %77, label %95, label %98

95:                                               ; preds = %94
  %96 = getelementptr inbounds i8, ptr %0, i64 24
  %97 = tail call <2 x float> @_ZN3cgpmiIfLi2EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %69)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %97, i64 1
  tail call void @_ZN3cgp25camera_first_person_euler27manipulator_translate_frontEf(ptr noundef nonnull align 8 dereferenceable(44) %96, float noundef %.sroa.0.4.vec.extract)
  br label %98

98:                                               ; preds = %93, %91, %95, %94, %67
  tail 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)
  br label %99

99:                                               ; preds = %64, %98
  ret void

100:                                              ; preds = %63, %40
  %.pn29.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn.pn, %40 ], [ %.pn.pn.pn.pn, %63 ]
  resume { ptr, i32 } %.pn29.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN3cgpmiIfLi2EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { "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 = { nounwind }
attributes #7 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"_ZTSN3cgp30camera_controller_generic_baseE", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !7, i64 92}
!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 81}
!36 = !{!16, !7, i64 1}
!37 = !{!16, !7, i64 80}
!38 = !{!39, !7, i64 72}
!39 = !{!"_ZTSN3cgp36camera_controller_first_person_eulerE", !6, i64 0, !40, i64 24, !7, i64 72}
!40 = !{!"_ZTSN3cgp25camera_first_person_eulerE", !41, i64 0, !32, i64 8, !32, i64 12, !32, i64 16, !42, i64 20, !42, i64 32}
!41 = !{!"_ZTSN3cgp19camera_generic_baseE"}
!42 = !{!"_ZTSN3cgp14numarray_stackIfLi3EEE", !32, i64 0, !32, i64 4, !32, i64 8}


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