; LLVM IR from Razakhel/RaZ :: src/RaZ/Render (Window)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::array" = type { [8 x %"struct.std::pair"] }
%"struct.std::pair" = type { i32, i32 }
%class.anon = type { i8 }
%"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.anon.165 = type { i8 }
%"class.Raz::Window" = type <{ %"class.Raz::OwnerValue", ptr, i32, i32, i32, i32, %"class.std::tuple", %"class.std::function.42", %"class.Raz::Overlay", i8, [7 x i8] }>
%"class.Raz::OwnerValue" = type { ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.41" }
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Tuple_impl.4", %"struct.std::_Head_base.37" }
%"struct.std::_Tuple_impl.4" = type { %"struct.std::_Tuple_impl.5", %"struct.std::_Head_base.31" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Tuple_impl.6", %"struct.std::_Head_base.26" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.7" }
%"class.std::_Hashtable.7" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::_Head_base.26" = type { %"class.std::tuple.27" }
%"class.std::tuple.27" = type { %"struct.std::_Tuple_impl.28" }
%"struct.std::_Tuple_impl.28" = type { %"struct.std::_Tuple_impl.29", %"struct.std::_Head_base.36" }
%"struct.std::_Tuple_impl.29" = type { %"struct.std::_Tuple_impl.30", %"struct.std::_Head_base.35" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base.31" }
%"struct.std::_Head_base.35" = type { double }
%"struct.std::_Head_base.36" = type { double }
%"struct.std::_Head_base.31" = type { %"class.std::function.32" }
%"class.std::function.32" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.std::_Head_base.37" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, std::function<void (float)>, Raz::Input::ActionTrigger, std::function<void ()>>, std::allocator<std::tuple<int, std::function<void (float)>, Raz::Input::ActionTrigger, std::function<void ()>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, std::function<void (float)>, Raz::Input::ActionTrigger, std::function<void ()>>, std::allocator<std::tuple<int, std::function<void (float)>, Raz::Input::ActionTrigger, std::function<void ()>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, std::function<void (float)>, Raz::Input::ActionTrigger, std::function<void ()>>, std::allocator<std::tuple<int, std::function<void (float)>, Raz::Input::ActionTrigger, std::function<void ()>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, std::function<void (float)>, Raz::Input::ActionTrigger, std::function<void ()>>, std::allocator<std::tuple<int, std::function<void (float)>, Raz::Input::ActionTrigger, std::function<void ()>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Head_base.41" = type { %"class.std::vector" }
%"class.std::function.42" = type { %"class.std::_Function_base", ptr }
%"class.Raz::Overlay" = type { %"class.std::vector.44" }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<std::unique_ptr<Raz::OverlayWindow>, std::allocator<std::unique_ptr<Raz::OverlayWindow>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Raz::OverlayWindow>, std::allocator<std::unique_ptr<Raz::OverlayWindow>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Raz::OverlayWindow>, std::allocator<std::unique_ptr<Raz::OverlayWindow>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Raz::OverlayWindow>, std::allocator<std::unique_ptr<Raz::OverlayWindow>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhE10glVersions = external hidden constant %"struct.std::array", align 4
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@_ZN3Raz6Window12s_refCounterE = external dso_local global i32, align 4
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz6WindowC2ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEh(ptr noundef nonnull align 8 dereferenceable(273) %0, ptr noundef nonnull align 8 dereferenceable(776) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %5, i8 noundef zeroext %6) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %class.anon, align 1
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::pair", align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %class.anon.165, align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !11
  store i8 %6, ptr %14, align 1, !tbaa !13
  %33 = load ptr, ptr %8, align 8
  %34 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 8, i1 false)
  call void @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #9
  %35 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 1
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %36, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 2
  store i32 0, ptr %37, align 8, !tbaa !54
  %38 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 3
  store i32 0, ptr %38, align 4, !tbaa !55
  %39 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 4
  store i32 0, ptr %39, align 8, !tbaa !56
  %40 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 5
  store i32 0, ptr %40, align 4, !tbaa !57
  %41 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 6
  call void @_ZNSt5tupleIJSt6vectorIS_IJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EESB_S1_IFvddEES_IJddSD_EESt13unordered_mapIiSt4pairIS3_S6_ESt4hashIiESt8equal_toIiESaISG_IKiSH_EEEEEC2IvTnNSt9enable_ifIXclsr4_TCCIXsr7is_voidIT_EE5valueEEE37__is_implicitly_default_constructibleEEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(184) %41) #9
  %42 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 7
  call void @_ZNSt8functionIFvvEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  %43 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 8
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 24, i1 false)
  call void @_ZN3Raz7OverlayC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  %44 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 9
  store i8 1, ptr %44, align 8, !tbaa !58
  invoke void @_ZN3Raz6Logger5debugEPKc(ptr noundef @.str)
          to label %45 unwind label %55

45:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  %46 = call noundef ptr @"_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhENK3$_0cvPFviPKcEEv"(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  %47 = invoke ptr @glfwSetErrorCallback(ptr noundef %46)
          to label %48 unwind label %59

48:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  %49 = invoke i32 @glfwInit()
          to label %50 unwind label %55

50:                                               ; preds = %48
  %51 = icmp ne i32 %49, 0
  br i1 %51, label %67, label %52

52:                                               ; preds = %50
  %53 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef @.str.2)
          to label %54 unwind label %63

54:                                               ; preds = %52
  invoke void @__cxa_throw(ptr %53, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %254 unwind label %55

55:                                               ; preds = %240, %238, %235, %228, %227, %226, %223, %220, %216, %212, %209, %205, %202, %200, %197, %99, %96, %93, %90, %87, %84, %81, %78, %75, %72, %69, %68, %67, %54, %48, %7
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %15, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %16, align 4
  br label %248

59:                                               ; preds = %45
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %15, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  br label %248

63:                                               ; preds = %52
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %15, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %16, align 4
  call void @__cxa_free_exception(ptr %53) #9
  br label %248

67:                                               ; preds = %50
  invoke void @glfwWindowHint(i32 noundef 139265, i32 noundef 196609)
          to label %68 unwind label %55

68:                                               ; preds = %67
  invoke void @glfwWindowHint(i32 noundef 139272, i32 noundef 204801)
          to label %69 unwind label %55

69:                                               ; preds = %68
  %70 = load i32, ptr %13, align 4, !tbaa !11
  %71 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %70, i32 noundef 1) #9
  invoke void @glfwWindowHint(i32 noundef 131073, i32 noundef %71)
          to label %72 unwind label %55

72:                                               ; preds = %69
  %73 = load i32, ptr %13, align 4, !tbaa !11
  %74 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %73, i32 noundef 2) #9
  invoke void @glfwWindowHint(i32 noundef 131075, i32 noundef %74)
          to label %75 unwind label %55

75:                                               ; preds = %72
  %76 = load i32, ptr %13, align 4, !tbaa !11
  %77 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %76, i32 noundef 4) #9
  invoke void @glfwWindowHint(i32 noundef 131076, i32 noundef %77)
          to label %78 unwind label %55

78:                                               ; preds = %75
  %79 = load i32, ptr %13, align 4, !tbaa !11
  %80 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %79, i32 noundef 8) #9
  invoke void @glfwWindowHint(i32 noundef 131077, i32 noundef %80)
          to label %81 unwind label %55

81:                                               ; preds = %78
  %82 = load i32, ptr %13, align 4, !tbaa !11
  %83 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %82, i32 noundef 16) #9
  invoke void @glfwWindowHint(i32 noundef 131078, i32 noundef %83)
          to label %84 unwind label %55

84:                                               ; preds = %81
  %85 = load i32, ptr %13, align 4, !tbaa !11
  %86 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %85, i32 noundef 32) #9
  invoke void @glfwWindowHint(i32 noundef 131079, i32 noundef %86)
          to label %87 unwind label %55

87:                                               ; preds = %84
  %88 = load i32, ptr %13, align 4, !tbaa !11
  %89 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %88, i32 noundef 64) #9
  invoke void @glfwWindowHint(i32 noundef 131080, i32 noundef %89)
          to label %90 unwind label %55

90:                                               ; preds = %87
  %91 = load i32, ptr %13, align 4, !tbaa !11
  %92 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %91, i32 noundef 128) #9
  invoke void @glfwWindowHint(i32 noundef 131081, i32 noundef %92)
          to label %93 unwind label %55

93:                                               ; preds = %90
  %94 = load i32, ptr %13, align 4, !tbaa !11
  %95 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %94, i32 noundef 256) #9
  invoke void @glfwWindowHint(i32 noundef 131082, i32 noundef %95)
          to label %96 unwind label %55

96:                                               ; preds = %93
  %97 = load i32, ptr %13, align 4, !tbaa !11
  %98 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %97, i32 noundef 512) #9
  invoke void @glfwWindowHint(i32 noundef 131084, i32 noundef %98)
          to label %99 unwind label %55

99:                                               ; preds = %96
  %100 = load i8, ptr %14, align 1, !tbaa !13
  %101 = zext i8 %100 to i32
  invoke void @glfwWindowHint(i32 noundef 135181, i32 noundef %101)
          to label %102 unwind label %55

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  store ptr @_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhE10glVersions, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %103 = call noundef ptr @_ZNKSt5arrayISt4pairIiiELm8EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64) @_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhE10glVersions) #9
  store ptr %103, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %104 = call noundef ptr @_ZNKSt5arrayISt4pairIiiELm8EE3endEv(ptr noundef nonnull align 4 dereferenceable(64) @_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhE10glVersions) #9
  store ptr %104, ptr %20, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %193, %102
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  %107 = load ptr, ptr %20, align 8, !tbaa !5
  %108 = icmp ne ptr %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 2, ptr %21, align 4
  br label %196

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %111, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %22) #9
  store ptr %112, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %22) #9
  store ptr %113, ptr %24, align 8, !tbaa !5
  %114 = load ptr, ptr %23, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  invoke void @glfwWindowHint(i32 noundef 139266, i32 noundef %115)
          to label %116 unwind label %136

116:                                              ; preds = %110
  %117 = load ptr, ptr %24, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  invoke void @glfwWindowHint(i32 noundef 139267, i32 noundef %118)
          to label %119 unwind label %136

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %122) #9
  %124 = invoke ptr @glfwGetCurrentContext()
          to label %125 unwind label %140

125:                                              ; preds = %119
  %126 = invoke ptr @glfwCreateWindow(i32 noundef %120, i32 noundef %121, ptr noundef %123, ptr noundef null, ptr noundef %124)
          to label %127 unwind label %140

127:                                              ; preds = %125
  store ptr %126, ptr %25, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  %130 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %130)
          to label %132 unwind label %136

132:                                              ; preds = %127
  %133 = load ptr, ptr %131, align 8, !tbaa !5
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %144

135:                                              ; preds = %132
  store i32 2, ptr %21, align 4
  br label %190

136:                                              ; preds = %185, %182, %144, %127, %116, %110
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %15, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %16, align 4
  br label %192

140:                                              ; preds = %125, %119
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %15, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %192

144:                                              ; preds = %132
  %145 = invoke i32 @glfwGetError(ptr noundef null)
          to label %146 unwind label %136

146:                                              ; preds = %144
  %147 = icmp eq i32 %145, 65543
  br i1 %147, label %148, label %182

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #9
  %149 = load ptr, ptr %23, align 8, !tbaa !5
  %150 = load i32, ptr %149, align 4, !tbaa !9
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30, i32 noundef %150) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %151 unwind label %158

151:                                              ; preds = %148
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(32) %29, i8 noundef signext 46)
          to label %152 unwind label %162

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #9
  %153 = load ptr, ptr %24, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %31, i32 noundef %154) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %155 unwind label %166

155:                                              ; preds = %152
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.4)
          to label %156 unwind label %170

156:                                              ; preds = %155
  invoke void @_ZN3Raz6Logger5errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %157 unwind label %174

157:                                              ; preds = %156
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  store i32 3, ptr %21, align 4
  br label %190

158:                                              ; preds = %148
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %15, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %16, align 4
  br label %181

162:                                              ; preds = %151
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %15, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %16, align 4
  br label %180

166:                                              ; preds = %152
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %15, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %16, align 4
  br label %179

170:                                              ; preds = %155
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %15, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %16, align 4
  br label %178

174:                                              ; preds = %156
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %15, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %178

178:                                              ; preds = %174, %170
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  br label %179

179:                                              ; preds = %178, %166
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  br label %180

180:                                              ; preds = %179, %162
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  br label %181

181:                                              ; preds = %180, %158
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  br label %192

182:                                              ; preds = %146
  invoke void @_ZN3Raz6Window5closeEv(ptr noundef nonnull align 8 dereferenceable(273) %33)
          to label %183 unwind label %136

183:                                              ; preds = %182
  %184 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %184, ptr noundef @.str.5)
          to label %185 unwind label %186

185:                                              ; preds = %183
  invoke void @__cxa_throw(ptr %184, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %254 unwind label %136

186:                                              ; preds = %183
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %15, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %16, align 4
  call void @__cxa_free_exception(ptr %184) #9
  br label %192

190:                                              ; preds = %157, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  %191 = load i32, ptr %21, align 4
  switch i32 %191, label %196 [
    i32 3, label %193
  ]

192:                                              ; preds = %186, %181, %140, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %248

193:                                              ; preds = %190
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.std::pair", ptr %194, i32 1
  store ptr %195, ptr %19, align 8, !tbaa !5
  br label %105

196:                                              ; preds = %190, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %197

197:                                              ; preds = %196
  %198 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %198)
          to label %200 unwind label %55

200:                                              ; preds = %197
  %201 = load ptr, ptr %199, align 8, !tbaa !5
  invoke void @glfwSetWindowUserPointer(ptr noundef %201, ptr noundef %33)
          to label %202 unwind label %55

202:                                              ; preds = %200
  %203 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %203)
          to label %205 unwind label %55

205:                                              ; preds = %202
  %206 = load ptr, ptr %204, align 8, !tbaa !5
  %207 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 2
  %208 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 3
  invoke void @glfwGetWindowSize(ptr noundef %206, ptr noundef %207, ptr noundef %208)
          to label %209 unwind label %55

209:                                              ; preds = %205
  %210 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %210)
          to label %212 unwind label %55

212:                                              ; preds = %209
  %213 = load ptr, ptr %211, align 8, !tbaa !5
  %214 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 4
  %215 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 5
  invoke void @glfwGetWindowPos(ptr noundef %213, ptr noundef %214, ptr noundef %215)
          to label %216 unwind label %55

216:                                              ; preds = %212
  %217 = invoke ptr @glfwGetCurrentContext()
          to label %218 unwind label %55

218:                                              ; preds = %216
  %219 = icmp eq ptr %217, null
  br i1 %219, label %220, label %226

220:                                              ; preds = %218
  %221 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  %222 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %221)
          to label %223 unwind label %55

223:                                              ; preds = %220
  %224 = load ptr, ptr %222, align 8, !tbaa !5
  invoke void @glfwMakeContextCurrent(ptr noundef %224)
          to label %225 unwind label %55

225:                                              ; preds = %223
  br label %226

226:                                              ; preds = %225, %218
  invoke void @_ZN3Raz8Renderer10initializeEv()
          to label %227 unwind label %55

227:                                              ; preds = %226
  invoke void @_ZNK3Raz6Window13setClearColorEffff(ptr noundef nonnull align 8 dereferenceable(273) %33, float noundef 0x3FC3333340000000, float noundef 0x3FC3333340000000, float noundef 0x3FC3333340000000, float noundef 1.000000e+00)
          to label %228 unwind label %55

228:                                              ; preds = %227
  %229 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %229)
          to label %231 unwind label %55

231:                                              ; preds = %228
  %232 = load ptr, ptr %230, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #9
  %233 = call noundef ptr @"_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhENK3$_1cvPFvP10GLFWwindowiiEEv"(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  %234 = invoke ptr @glfwSetFramebufferSizeCallback(ptr noundef %232, ptr noundef %233)
          to label %235 unwind label %244

235:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #9
  %236 = getelementptr inbounds %"class.Raz::Window", ptr %33, i32 0, i32 0
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %236)
          to label %238 unwind label %55

238:                                              ; preds = %235
  %239 = load ptr, ptr %237, align 8, !tbaa !5
  invoke void @_ZN3Raz7Overlay10initializeEP10GLFWwindow(ptr noundef %239)
          to label %240 unwind label %55

240:                                              ; preds = %238
  %241 = load i32, ptr @_ZN3Raz6Window12s_refCounterE, align 4, !tbaa !9
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr @_ZN3Raz6Window12s_refCounterE, align 4, !tbaa !9
  invoke void @_ZN3Raz6Logger5debugEPKc(ptr noundef @.str.6)
          to label %243 unwind label %55

243:                                              ; preds = %240
  ret void

244:                                              ; preds = %231
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %15, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #9
  br label %248

248:                                              ; preds = %244, %192, %63, %59, %55
  call void @_ZN3Raz7OverlayD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  call void @_ZNSt11_Tuple_implILm0EJSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EESC_S2_IFvddEES1_IJddSE_EESt13unordered_mapIiSt4pairIS4_S7_ESt4hashIiESt8equal_toIiESaISH_IKiSI_EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %41) #9
  br label %249

249:                                              ; preds = %248
  %250 = load ptr, ptr %15, align 8
  %251 = load i32, ptr %16, align 4
  %252 = insertvalue { ptr, i32 } poison, ptr %250, 0
  %253 = insertvalue { ptr, i32 } %252, i32 %251, 1
  resume { ptr, i32 } %253

254:                                              ; preds = %185, %54
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz6Logger5debugEPKc(ptr noundef) #1 align 2

declare i32 @__gxx_personality_v0(...)

declare ptr @glfwSetErrorCallback(ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhENK3$_0cvPFviPKcEEv"(ptr noundef nonnull align 1 dereferenceable(1)) #5 align 2

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

declare i32 @glfwInit() #3

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @glfwWindowHint(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayISt4pairIiiELm8EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayISt4pairIiiELm8EE3endEv(ptr noundef nonnull align 4 dereferenceable(64)) #2 align 2

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

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

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

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

declare ptr @glfwGetCurrentContext() #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare i32 @glfwGetError(ptr noundef) #3

declare void @_ZN3Raz6Logger5errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #5

; 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 uwtable
declare dso_local void @_ZN3Raz6Window5closeEv(ptr noundef nonnull align 8 dereferenceable(273)) #1 align 2

declare void @glfwSetWindowUserPointer(ptr noundef, ptr noundef) #3

declare void @glfwGetWindowSize(ptr noundef, ptr noundef, ptr noundef) #3

declare void @glfwGetWindowPos(ptr noundef, ptr noundef, ptr noundef) #3

declare void @glfwMakeContextCurrent(ptr noundef) #3

declare void @_ZN3Raz8Renderer10initializeEv() #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Raz6Window13setClearColorEffff(ptr noundef nonnull align 8 dereferenceable(273), float noundef, float noundef, float noundef, float noundef) #1 align 2

declare ptr @glfwSetFramebufferSizeCallback(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhENK3$_1cvPFvP10GLFWwindowiiEEv"(ptr noundef nonnull align 1 dereferenceable(1)) #5 align 2

declare void @_ZN3Raz7Overlay10initializeEP10GLFWwindow(ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz7OverlayD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt11_Tuple_implILm0EJSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EESC_S2_IFvddEES1_IJddSE_EESt13unordered_mapIiSt4pairIS4_S7_ESt4hashIiESt8equal_toIiESaISH_IKiSI_EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(184)) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3Raz13WindowSettingE", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTSN3Raz6WindowE", !16, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !17, i64 32, !47, i64 216, !48, i64 248, !53, i64 272}
!16 = !{!"_ZTSN3Raz10OwnerValueIP10GLFWwindowLS2_0EEE", !6, i64 0}
!17 = !{!"_ZTSSt5tupleIJSt6vectorIS_IJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EESB_S1_IFvddEES_IJddSD_EESt13unordered_mapIiSt4pairIS3_S6_ESt4hashIiESt8equal_toIiESaISG_IKiSH_EEEEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EESC_S2_IFvddEES1_IJddSE_EESt13unordered_mapIiSt4pairIS4_S7_ESt4hashIiESt8equal_toIiESaISH_IKiSI_EEEEE", !19, i64 0, !46, i64 160}
!19 = !{!"_ZTSSt11_Tuple_implILm1EJSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EES2_IFvddEES1_IJddSE_EESt13unordered_mapIiSt4pairIS4_S7_ESt4hashIiESt8equal_toIiESaISH_IKiSI_EEEEE", !20, i64 0, !41, i64 136}
!20 = !{!"_ZTSSt11_Tuple_implILm2EJSt8functionIFvddEESt5tupleIJddS2_EESt13unordered_mapIiSt4pairIS0_IFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS6_IKiSC_EEEEE", !21, i64 0, !35, i64 104}
!21 = !{!"_ZTSSt11_Tuple_implILm3EJSt5tupleIJddSt8functionIFvddEEEESt13unordered_mapIiSt4pairIS1_IFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS6_IKiSC_EEEEE", !22, i64 0, !30, i64 56}
!22 = !{!"_ZTSSt11_Tuple_implILm4EJSt13unordered_mapIiSt4pairISt8functionIFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS1_IKiS8_EEEEE", !23, i64 0}
!23 = !{!"_ZTSSt10_Head_baseILm4ESt13unordered_mapIiSt4pairISt8functionIFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS1_IKiS8_EEELb0EE", !24, i64 0}
!24 = !{!"_ZTSSt13unordered_mapIiSt4pairISt8functionIFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS0_IKiS7_EEE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableIiSt4pairIKiS0_ISt8functionIFvfEEN3Raz5Input13ActionTriggerEEESaIS9_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !26, i64 8, !27, i64 16, !26, i64 24, !28, i64 32, !6, i64 48}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!28 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !29, i64 0, !26, i64 8}
!29 = !{!"float", !7, i64 0}
!30 = !{!"_ZTSSt10_Head_baseILm3ESt5tupleIJddSt8functionIFvddEEEELb0EE", !31, i64 0}
!31 = !{!"_ZTSSt5tupleIJddSt8functionIFvddEEEE", !32, i64 0}
!32 = !{!"_ZTSSt11_Tuple_implILm0EJddSt8functionIFvddEEEE", !33, i64 0, !40, i64 40}
!33 = !{!"_ZTSSt11_Tuple_implILm1EJdSt8functionIFvddEEEE", !34, i64 0, !38, i64 32}
!34 = !{!"_ZTSSt11_Tuple_implILm2EJSt8functionIFvddEEEE", !35, i64 0}
!35 = !{!"_ZTSSt10_Head_baseILm2ESt8functionIFvddEELb0EE", !36, i64 0}
!36 = !{!"_ZTSSt8functionIFvddEE", !37, i64 0, !6, i64 24}
!37 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!38 = !{!"_ZTSSt10_Head_baseILm1EdLb0EE", !39, i64 0}
!39 = !{!"double", !7, i64 0}
!40 = !{!"_ZTSSt10_Head_baseILm0EdLb0EE", !39, i64 0}
!41 = !{!"_ZTSSt10_Head_baseILm1ESt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EELb0EE", !42, i64 0}
!42 = !{!"_ZTSSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSSt10_Head_baseILm0ESt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EELb0EE", !42, i64 0}
!47 = !{!"_ZTSSt8functionIFvvEE", !37, i64 0, !6, i64 24}
!48 = !{!"_ZTSN3Raz7OverlayE", !49, i64 0}
!49 = !{!"_ZTSSt6vectorISt10unique_ptrIN3Raz13OverlayWindowESt14default_deleteIS2_EESaIS5_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3Raz13OverlayWindowESt14default_deleteIS2_EESaIS5_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3Raz13OverlayWindowESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3Raz13OverlayWindowESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"bool", !7, i64 0}
!54 = !{!15, !10, i64 16}
!55 = !{!15, !10, i64 20}
!56 = !{!15, !10, i64 24}
!57 = !{!15, !10, i64 28}
!58 = !{!15, !53, i64 272}


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

%"struct.std::array" = type { [8 x %"struct.std::pair"] }
%"struct.std::pair" = type { i32, i32 }
%class.anon = type { i8 }
%"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.anon.165 = type { i8 }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhE10glVersions = external hidden constant %"struct.std::array", align 4
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@_ZN3Raz6Window12s_refCounterE = external dso_local local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz6WindowC2ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEh(ptr noundef nonnull align 8 dereferenceable(273) %0, ptr noundef nonnull align 8 dereferenceable(776) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %5, i8 noundef zeroext %6) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.anon, align 1
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %class.anon.165, align 1
  store i64 0, ptr %0, align 8
  tail call void @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = getelementptr inbounds i8, ptr %0, i64 20
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = getelementptr inbounds i8, ptr %0, i64 28
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, i8 0, i64 16, i1 false)
  tail call void @_ZNSt5tupleIJSt6vectorIS_IJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EESB_S1_IFvddEES_IJddSD_EESt13unordered_mapIiSt4pairIS3_S6_ESt4hashIiESt8equal_toIiESaISG_IKiSH_EEEEEC2IvTnNSt9enable_ifIXclsr4_TCCIXsr7is_voidIT_EE5valueEEE37__is_implicitly_default_constructibleEEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(184) %23) #8
  %24 = getelementptr inbounds i8, ptr %0, i64 216
  tail call void @_ZNSt8functionIFvvEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  %25 = getelementptr inbounds i8, ptr %0, i64 248
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %25, i8 0, i64 24, i1 false)
  tail call void @_ZN3Raz7OverlayC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %26 = getelementptr inbounds i8, ptr %0, i64 272
  store i8 1, ptr %26, align 8, !tbaa !49
  invoke void @_ZN3Raz6Logger5debugEPKc(ptr noundef nonnull @.str)
          to label %27 unwind label %36

27:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  %28 = call noundef ptr @"_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhENK3$_0cvPFviPKcEEv"(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  %29 = invoke ptr @glfwSetErrorCallback(ptr noundef %28)
          to label %30 unwind label %38

30:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  %31 = invoke i32 @glfwInit()
          to label %32 unwind label %36

32:                                               ; preds = %30
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %33, label %42

33:                                               ; preds = %32
  %34 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull @.str.2)
          to label %35 unwind label %40

35:                                               ; preds = %33
  invoke void @__cxa_throw(ptr nonnull %34, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %152 unwind label %36

36:                                               ; preds = %145, %142, %136, %135, %132, %128, %125, %122, %.loopexit, %64, %62, %60, %58, %56, %54, %52, %50, %48, %46, %44, %43, %42, %35, %30, %7
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %151

38:                                               ; preds = %27
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  br label %151

40:                                               ; preds = %33
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %34) #8
  br label %151

42:                                               ; preds = %32
  invoke void @glfwWindowHint(i32 noundef 139265, i32 noundef 196609)
          to label %43 unwind label %36

43:                                               ; preds = %42
  invoke void @glfwWindowHint(i32 noundef 139272, i32 noundef 204801)
          to label %44 unwind label %36

44:                                               ; preds = %43
  %45 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 1) #8
  invoke void @glfwWindowHint(i32 noundef 131073, i32 noundef %45)
          to label %46 unwind label %36

46:                                               ; preds = %44
  %47 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 2) #8
  invoke void @glfwWindowHint(i32 noundef 131075, i32 noundef %47)
          to label %48 unwind label %36

48:                                               ; preds = %46
  %49 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 4) #8
  invoke void @glfwWindowHint(i32 noundef 131076, i32 noundef %49)
          to label %50 unwind label %36

50:                                               ; preds = %48
  %51 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 8) #8
  invoke void @glfwWindowHint(i32 noundef 131077, i32 noundef %51)
          to label %52 unwind label %36

52:                                               ; preds = %50
  %53 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 16) #8
  invoke void @glfwWindowHint(i32 noundef 131078, i32 noundef %53)
          to label %54 unwind label %36

54:                                               ; preds = %52
  %55 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 32) #8
  invoke void @glfwWindowHint(i32 noundef 131079, i32 noundef %55)
          to label %56 unwind label %36

56:                                               ; preds = %54
  %57 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 64) #8
  invoke void @glfwWindowHint(i32 noundef 131080, i32 noundef %57)
          to label %58 unwind label %36

58:                                               ; preds = %56
  %59 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 128) #8
  invoke void @glfwWindowHint(i32 noundef 131081, i32 noundef %59)
          to label %60 unwind label %36

60:                                               ; preds = %58
  %61 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 256) #8
  invoke void @glfwWindowHint(i32 noundef 131082, i32 noundef %61)
          to label %62 unwind label %36

62:                                               ; preds = %60
  %63 = call noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef %5, i32 noundef 512) #8
  invoke void @glfwWindowHint(i32 noundef 131084, i32 noundef %63)
          to label %64 unwind label %36

64:                                               ; preds = %62
  %65 = zext i8 %6 to i32
  invoke void @glfwWindowHint(i32 noundef 135181, i32 noundef %65)
          to label %66 unwind label %36

66:                                               ; preds = %64
  %67 = call noundef ptr @_ZNKSt5arrayISt4pairIiiELm8EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64) @_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhE10glVersions) #8
  %68 = call noundef ptr @_ZNKSt5arrayISt4pairIiiELm8EE3endEv(ptr noundef nonnull align 4 dereferenceable(64) @_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhE10glVersions) #8
  %.not3444 = icmp eq ptr %67, %68
  br i1 %.not3444, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %66, %118
  %.03345 = phi ptr [ %119, %118 ], [ %67, %66 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %69 = load i64, ptr %.03345, align 4
  store i64 %69, ptr %9, align 8
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %9) #8
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %9) #8
  %72 = load i32, ptr %70, align 4, !tbaa !50
  invoke void @glfwWindowHint(i32 noundef 139266, i32 noundef %72)
          to label %73 unwind label %.loopexit43

73:                                               ; preds = %.lr.ph
  %74 = load i32, ptr %71, align 4, !tbaa !50
  invoke void @glfwWindowHint(i32 noundef 139267, i32 noundef %74)
          to label %75 unwind label %.loopexit43

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %76 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  %77 = invoke ptr @glfwGetCurrentContext()
          to label %78 unwind label %84

78:                                               ; preds = %75
  %79 = invoke ptr @glfwCreateWindow(i32 noundef %2, i32 noundef %3, ptr noundef %76, ptr noundef null, ptr noundef %77)
          to label %80 unwind label %84

80:                                               ; preds = %78
  store ptr %79, ptr %10, align 8, !tbaa !51
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %83 = load ptr, ptr %82, align 8, !tbaa !51
  %.not35 = icmp eq ptr %83, null
  br i1 %.not35, label %86, label %.critedge

.loopexit43:                                      ; preds = %.lr.ph, %73, %86
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit.split-lp:                               ; preds = %111, %114
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %117

84:                                               ; preds = %78, %75
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %117

86:                                               ; preds = %80
  %87 = invoke i32 @glfwGetError(ptr noundef null)
          to label %88 unwind label %.loopexit43

88:                                               ; preds = %86
  %89 = icmp eq i32 %87, 65543
  br i1 %89, label %90, label %111

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  %91 = load i32, ptr %70, align 4, !tbaa !50
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, i32 noundef %91) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %92 unwind label %97

92:                                               ; preds = %90
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %14, i8 noundef signext 46)
          to label %93 unwind label %99

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #8
  %94 = load i32, ptr %71, align 4, !tbaa !50
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, i32 noundef %94) #8
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %95 unwind label %101

95:                                               ; preds = %93
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.4)
          to label %96 unwind label %103

96:                                               ; preds = %95
  invoke void @_ZN3Raz6Logger5errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %118 unwind label %105

97:                                               ; preds = %90
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %110

99:                                               ; preds = %92
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %109

101:                                              ; preds = %93
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %108

103:                                              ; preds = %95
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %96
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  br label %107

107:                                              ; preds = %105, %103
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %108

108:                                              ; preds = %107, %101
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %102, %101 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  br label %109

109:                                              ; preds = %108, %99
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %108 ], [ %100, %99 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %110

110:                                              ; preds = %109, %97
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %109 ], [ %98, %97 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br label %117

111:                                              ; preds = %88
  invoke void @_ZN3Raz6Window5closeEv(ptr noundef nonnull align 8 dereferenceable(273) %0)
          to label %112 unwind label %.loopexit.split-lp

112:                                              ; preds = %111
  %113 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef nonnull @.str.5)
          to label %114 unwind label %115

114:                                              ; preds = %112
  invoke void @__cxa_throw(ptr nonnull %113, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %152 unwind label %.loopexit.split-lp

115:                                              ; preds = %112
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %113) #8
  br label %117

117:                                              ; preds = %.loopexit43, %.loopexit.split-lp, %115, %110, %84
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %110 ], [ %116, %115 ], [ %85, %84 ], [ %lpad.loopexit, %.loopexit43 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %151

118:                                              ; preds = %96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %119 = getelementptr inbounds i8, ptr %.03345, i64 8
  %.not34 = icmp eq ptr %119, %68
  br i1 %.not34, label %.loopexit, label %.lr.ph

.critedge:                                        ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %.loopexit

.loopexit:                                        ; preds = %118, %66, %.critedge
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %121 = load ptr, ptr %120, align 8, !tbaa !51
  invoke void @glfwSetWindowUserPointer(ptr noundef %121, ptr noundef nonnull %0)
          to label %122 unwind label %36

122:                                              ; preds = %.loopexit
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %124 = load ptr, ptr %123, align 8, !tbaa !51
  invoke void @glfwGetWindowSize(ptr noundef %124, ptr noundef nonnull %19, ptr noundef nonnull %20)
          to label %125 unwind label %36

125:                                              ; preds = %122
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %127 = load ptr, ptr %126, align 8, !tbaa !51
  invoke void @glfwGetWindowPos(ptr noundef %127, ptr noundef nonnull %21, ptr noundef nonnull %22)
          to label %128 unwind label %36

128:                                              ; preds = %125
  %129 = invoke ptr @glfwGetCurrentContext()
          to label %130 unwind label %36

130:                                              ; preds = %128
  %131 = icmp eq ptr %129, null
  br i1 %131, label %132, label %135

132:                                              ; preds = %130
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %134 = load ptr, ptr %133, align 8, !tbaa !51
  invoke void @glfwMakeContextCurrent(ptr noundef %134)
          to label %135 unwind label %36

135:                                              ; preds = %132, %130
  invoke void @_ZN3Raz8Renderer10initializeEv()
          to label %136 unwind label %36

136:                                              ; preds = %135
  invoke void @_ZNK3Raz6Window13setClearColorEffff(ptr noundef nonnull align 8 dereferenceable(273) %0, float noundef 0x3FC3333340000000, float noundef 0x3FC3333340000000, float noundef 0x3FC3333340000000, float noundef 1.000000e+00)
          to label %137 unwind label %36

137:                                              ; preds = %136
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %139 = load ptr, ptr %138, align 8, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #8
  %140 = call noundef ptr @"_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhENK3$_1cvPFvP10GLFWwindowiiEEv"(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  %141 = invoke ptr @glfwSetFramebufferSizeCallback(ptr noundef %139, ptr noundef %140)
          to label %142 unwind label %149

142:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %144 = load ptr, ptr %143, align 8, !tbaa !51
  invoke void @_ZN3Raz7Overlay10initializeEP10GLFWwindow(ptr noundef %144)
          to label %145 unwind label %36

145:                                              ; preds = %142
  %146 = load i32, ptr @_ZN3Raz6Window12s_refCounterE, align 4, !tbaa !50
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr @_ZN3Raz6Window12s_refCounterE, align 4, !tbaa !50
  invoke void @_ZN3Raz6Logger5debugEPKc(ptr noundef nonnull @.str.6)
          to label %148 unwind label %36

148:                                              ; preds = %145
  ret void

149:                                              ; preds = %137
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  br label %151

151:                                              ; preds = %149, %117, %40, %38, %36
  %.pn41 = phi { ptr, i32 } [ %37, %36 ], [ %150, %149 ], [ %.pn.pn.pn.pn.pn, %117 ], [ %41, %40 ], [ %39, %38 ]
  call void @_ZN3Raz7OverlayD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  call void @_ZNSt11_Tuple_implILm0EJSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EESC_S2_IFvddEES1_IJddSE_EESt13unordered_mapIiSt4pairIS4_S7_ESt4hashIiESt8equal_toIiESaISH_IKiSI_EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %23) #8
  resume { ptr, i32 } %.pn41

152:                                              ; preds = %114, %35
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz6Logger5debugEPKc(ptr noundef) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

declare ptr @glfwSetErrorCallback(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhENK3$_0cvPFviPKcEEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5 align 2

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

declare i32 @glfwInit() local_unnamed_addr #3

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @glfwWindowHint(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3RazanENS_13WindowSettingES0_(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayISt4pairIiiELm8EE5beginEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayISt4pairIiiELm8EE3endEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EiiEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare ptr @glfwGetCurrentContext() local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3Raz10OwnerValueIP10GLFWwindowLS2_0EEcvRS2_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare i32 @glfwGetError(ptr noundef) local_unnamed_addr #3

declare void @_ZN3Raz6Logger5errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #5

; 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 uwtable
declare dso_local void @_ZN3Raz6Window5closeEv(ptr noundef nonnull align 8 dereferenceable(273)) local_unnamed_addr #1 align 2

declare void @glfwSetWindowUserPointer(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @glfwGetWindowSize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @glfwGetWindowPos(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #3

declare void @_ZN3Raz8Renderer10initializeEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Raz6Window13setClearColorEffff(ptr noundef nonnull align 8 dereferenceable(273), float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1 align 2

declare ptr @glfwSetFramebufferSizeCallback(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN3Raz6WindowC1ERNS_12RenderSystemEjjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_13WindowSettingEhENK3$_1cvPFvP10GLFWwindowiiEEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5 align 2

declare void @_ZN3Raz7Overlay10initializeEP10GLFWwindow(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz7OverlayD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt11_Tuple_implILm0EJSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EESC_S2_IFvddEES1_IJddSE_EESt13unordered_mapIiSt4pairIS4_S7_ESt4hashIiESt8equal_toIiESaISH_IKiSI_EEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(184)) unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #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 = { "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #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, !8, i64 8}
!6 = !{!"_ZTSN3Raz6WindowE", !7, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !12, i64 32, !42, i64 216, !43, i64 248, !48, i64 272}
!7 = !{!"_ZTSN3Raz10OwnerValueIP10GLFWwindowLS2_0EEE", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSSt5tupleIJSt6vectorIS_IJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EESB_S1_IFvddEES_IJddSD_EESt13unordered_mapIiSt4pairIS3_S6_ESt4hashIiESt8equal_toIiESaISG_IKiSH_EEEEE", !13, i64 0}
!13 = !{!"_ZTSSt11_Tuple_implILm0EJSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EESC_S2_IFvddEES1_IJddSE_EESt13unordered_mapIiSt4pairIS4_S7_ESt4hashIiESt8equal_toIiESaISH_IKiSI_EEEEE", !14, i64 0, !41, i64 160}
!14 = !{!"_ZTSSt11_Tuple_implILm1EJSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EES2_IFvddEES1_IJddSE_EESt13unordered_mapIiSt4pairIS4_S7_ESt4hashIiESt8equal_toIiESaISH_IKiSI_EEEEE", !15, i64 0, !36, i64 136}
!15 = !{!"_ZTSSt11_Tuple_implILm2EJSt8functionIFvddEESt5tupleIJddS2_EESt13unordered_mapIiSt4pairIS0_IFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS6_IKiSC_EEEEE", !16, i64 0, !30, i64 104}
!16 = !{!"_ZTSSt11_Tuple_implILm3EJSt5tupleIJddSt8functionIFvddEEEESt13unordered_mapIiSt4pairIS1_IFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS6_IKiSC_EEEEE", !17, i64 0, !25, i64 56}
!17 = !{!"_ZTSSt11_Tuple_implILm4EJSt13unordered_mapIiSt4pairISt8functionIFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS1_IKiS8_EEEEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm4ESt13unordered_mapIiSt4pairISt8functionIFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS1_IKiS8_EEELb0EE", !19, i64 0}
!19 = !{!"_ZTSSt13unordered_mapIiSt4pairISt8functionIFvfEEN3Raz5Input13ActionTriggerEESt4hashIiESt8equal_toIiESaIS0_IKiS7_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_HashtableIiSt4pairIKiS0_ISt8functionIFvfEEN3Raz5Input13ActionTriggerEEESaIS9_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb0ELb0ELb1EEEE", !8, i64 0, !21, i64 8, !22, i64 16, !21, i64 24, !23, i64 32, !8, i64 48}
!21 = !{!"long", !9, i64 0}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !24, i64 0, !21, i64 8}
!24 = !{!"float", !9, i64 0}
!25 = !{!"_ZTSSt10_Head_baseILm3ESt5tupleIJddSt8functionIFvddEEEELb0EE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJddSt8functionIFvddEEEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJddSt8functionIFvddEEEE", !28, i64 0, !35, i64 40}
!28 = !{!"_ZTSSt11_Tuple_implILm1EJdSt8functionIFvddEEEE", !29, i64 0, !33, i64 32}
!29 = !{!"_ZTSSt11_Tuple_implILm2EJSt8functionIFvddEEEE", !30, i64 0}
!30 = !{!"_ZTSSt10_Head_baseILm2ESt8functionIFvddEELb0EE", !31, i64 0}
!31 = !{!"_ZTSSt8functionIFvddEE", !32, i64 0, !8, i64 24}
!32 = !{!"_ZTSSt14_Function_base", !9, i64 0, !8, i64 16}
!33 = !{!"_ZTSSt10_Head_baseILm1EdLb0EE", !34, i64 0}
!34 = !{!"double", !9, i64 0}
!35 = !{!"_ZTSSt10_Head_baseILm0EdLb0EE", !34, i64 0}
!36 = !{!"_ZTSSt10_Head_baseILm1ESt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EELb0EE", !37, i64 0}
!37 = !{!"_ZTSSt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES1_IFvvEEEESaIS9_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!41 = !{!"_ZTSSt10_Head_baseILm0ESt6vectorISt5tupleIJiSt8functionIFvfEEN3Raz5Input13ActionTriggerES2_IFvvEEEESaISA_EELb0EE", !37, i64 0}
!42 = !{!"_ZTSSt8functionIFvvEE", !32, i64 0, !8, i64 24}
!43 = !{!"_ZTSN3Raz7OverlayE", !44, i64 0}
!44 = !{!"_ZTSSt6vectorISt10unique_ptrIN3Raz13OverlayWindowESt14default_deleteIS2_EESaIS5_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN3Raz13OverlayWindowESt14default_deleteIS2_EESaIS5_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3Raz13OverlayWindowESt14default_deleteIS2_EESaIS5_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN3Raz13OverlayWindowESt14default_deleteIS2_EESaIS5_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!48 = !{!"bool", !9, i64 0}
!49 = !{!6, !48, i64 272}
!50 = !{!11, !11, i64 0}
!51 = !{!8, !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass