; LLVM IR from DanEngelbrecht/longtail :: cmd/lib/minifb/ext/minifb/tests (input_events_cpp)

; 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::_Placeholder" = type { i8 }
%"struct.std::_Placeholder.4" = type { i8 }
%"struct.std::_Placeholder.16" = type { i8 }
%"struct.std::_Placeholder.37" = type { i8 }
%class.Events = type { i8 }
%"class.std::function" = 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 } }
%"class.std::_Bind" = type { { i64, i64 }, %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.3" }
%"struct.std::_Head_base.3" = type { ptr }
%"class.std::function.5" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.7" = type { { i64, i64 }, %"class.std::tuple.10" }
%"class.std::tuple.10" = type { %"struct.std::_Tuple_impl.11" }
%"struct.std::_Tuple_impl.11" = type { %"struct.std::_Head_base.3" }
%"class.std::function.17" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.19" = type { { i64, i64 }, %"class.std::tuple.22" }
%"class.std::tuple.22" = type { %"struct.std::_Tuple_impl.23" }
%"struct.std::_Tuple_impl.23" = type { %"struct.std::_Head_base.3" }
%"class.std::function.25" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.27" = type { { i64, i64 }, %"class.std::tuple.30" }
%"class.std::tuple.30" = type { %"struct.std::_Tuple_impl.31" }
%"struct.std::_Tuple_impl.31" = type { %"struct.std::_Head_base.3" }
%"class.std::function.38" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.41" = type { { i64, i64 }, %"class.std::tuple" }
%"class.std::function.44" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.46" = type { { i64, i64 }, %"class.std::tuple.30" }
%"class.std::function.49" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.51" = type { { i64, i64 }, %"class.std::tuple.30" }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@_ZNSt12placeholders2_1E = external global %"struct.std::_Placeholder", align 1
@_ZNSt12placeholders2_2E = external global %"struct.std::_Placeholder.4", align 1
@_ZNSt12placeholders2_3E = external global %"struct.std::_Placeholder.16", align 1
@_ZNSt12placeholders2_4E = external global %"struct.std::_Placeholder.37", align 1
@_ZL8g_buffer = external hidden global [480000 x i32], align 16

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.Events, align 1
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %"class.std::_Bind", align 8
  %10 = alloca { i64, i64 }, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::function.5", align 8
  %15 = alloca %"class.std::_Bind.7", align 8
  %16 = alloca { i64, i64 }, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::function.17", align 8
  %19 = alloca %"class.std::_Bind.19", align 8
  %20 = alloca { i64, i64 }, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::function.25", align 8
  %23 = alloca %"class.std::_Bind.27", align 8
  %24 = alloca { i64, i64 }, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::function.38", align 8
  %27 = alloca %"class.std::_Bind.41", align 8
  %28 = alloca { i64, i64 }, align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.std::function.44", align 8
  %31 = alloca %"class.std::_Bind.46", align 8
  %32 = alloca { i64, i64 }, align 8
  %33 = alloca ptr, align 8
  %34 = alloca %"class.std::function.5", align 8
  %35 = alloca %"class.std::_Bind.7", align 8
  %36 = alloca { i64, i64 }, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %"class.std::function.49", align 8
  %39 = alloca %"class.std::_Bind.51", align 8
  %40 = alloca { i64, i64 }, align 8
  %41 = alloca ptr, align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 48879, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %44 = call ptr @mfb_open_ex(ptr noundef @.str, i32 noundef 800, i32 noundef 600, i32 noundef 1)
  store ptr %44, ptr %5, align 8, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = icmp ne ptr %45, null
  br i1 %46, label %48, label %47

47:                                               ; preds = %0
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %150

48:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN6Events6activeEP10mfb_windowb to i64), i64 0 }, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr %7, ptr %11, align 8, !tbaa !9
  call void @_ZSt4bindIM6EventsFvP10mfb_windowbEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESE_JDpT0_EE4typeEOSE_DpOSF_(ptr dead_on_unwind writable sret(%"class.std::_Bind") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E)
  call void @_ZNSt8functionIFvP10mfb_windowbEEC2ISt5_BindIFM6EventsFvS1_bEPS6_St12_PlaceholderILi1EESA_ILi2EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  %49 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_Z23mfb_set_active_callbackSt8functionIFvP10mfb_windowbEES1_(ptr noundef %8, ptr noundef %49)
          to label %50 unwind label %103

50:                                               ; preds = %48
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN6Events6resizeEP10mfb_windowii to i64), i64 0 }, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr %7, ptr %17, align 8, !tbaa !9
  call void @_ZSt4bindIM6EventsFvP10mfb_windowiiEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EERKS6_ILi3EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESH_JDpT0_EE4typeEOSH_DpOSI_(ptr dead_on_unwind writable sret(%"class.std::_Bind.7") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E)
  call void @_ZNSt8functionIFvP10mfb_windowiiEEC2ISt5_BindIFM6EventsFvS1_iiEPS6_St12_PlaceholderILi1EESA_ILi2EESA_ILi3EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_Z23mfb_set_resize_callbackSt8functionIFvP10mfb_windowiiEES1_(ptr noundef %14, ptr noundef %51)
          to label %52 unwind label %107

52:                                               ; preds = %50
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN6Events5closeEP10mfb_window to i64), i64 0 }, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store ptr %7, ptr %21, align 8, !tbaa !9
  call void @_ZSt4bindIM6EventsFbP10mfb_windowEJPS0_RKSt12_PlaceholderILi1EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESB_JDpT0_EE4typeEOSB_DpOSC_(ptr dead_on_unwind writable sret(%"class.std::_Bind.19") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E)
  call void @_ZNSt8functionIFbP10mfb_windowEEC2ISt5_BindIFM6EventsFbS1_EPS6_St12_PlaceholderILi1EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_Z22mfb_set_close_callbackSt8functionIFbP10mfb_windowEES1_(ptr noundef %18, ptr noundef %53)
          to label %54 unwind label %111

54:                                               ; preds = %52
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN6Events8keyboardEP10mfb_window7mfb_key11mfb_key_modb to i64), i64 0 }, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store ptr %7, ptr %25, align 8, !tbaa !9
  call void @_ZSt4bindIM6EventsFvP10mfb_window7mfb_key11mfb_key_modbEJPS0_RKSt12_PlaceholderILi1EERKS8_ILi2EERKS8_ILi3EERKS8_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESM_JDpT0_EE4typeEOSM_DpOSN_(ptr dead_on_unwind writable sret(%"class.std::_Bind.27") align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_4E)
  call void @_ZNSt8functionIFvP10mfb_window7mfb_key11mfb_key_modbEEC2ISt5_BindIFM6EventsFvS1_S2_S3_bEPS8_St12_PlaceholderILi1EESC_ILi2EESC_ILi3EESC_ILi4EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_Z25mfb_set_keyboard_callbackSt8functionIFvP10mfb_window7mfb_key11mfb_key_modbEES1_(ptr noundef %22, ptr noundef %55)
          to label %56 unwind label %115

56:                                               ; preds = %54
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN6Events10char_inputEP10mfb_windowj to i64), i64 0 }, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  store ptr %7, ptr %29, align 8, !tbaa !9
  call void @_ZSt4bindIM6EventsFvP10mfb_windowjEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESE_JDpT0_EE4typeEOSE_DpOSF_(ptr dead_on_unwind writable sret(%"class.std::_Bind.41") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E)
  call void @_ZNSt8functionIFvP10mfb_windowjEEC2ISt5_BindIFM6EventsFvS1_jEPS6_St12_PlaceholderILi1EESA_ILi2EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_Z27mfb_set_char_input_callbackSt8functionIFvP10mfb_windowjEES1_(ptr noundef %26, ptr noundef %57)
          to label %58 unwind label %119

58:                                               ; preds = %56
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN6Events12mouse_buttonEP10mfb_window16mfb_mouse_button11mfb_key_modb to i64), i64 0 }, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  store ptr %7, ptr %33, align 8, !tbaa !9
  call void @_ZSt4bindIM6EventsFvP10mfb_window16mfb_mouse_button11mfb_key_modbEJPS0_RKSt12_PlaceholderILi1EERKS8_ILi2EERKS8_ILi3EERKS8_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESM_JDpT0_EE4typeEOSM_DpOSN_(ptr dead_on_unwind writable sret(%"class.std::_Bind.46") align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_4E)
  call void @_ZNSt8functionIFvP10mfb_window16mfb_mouse_button11mfb_key_modbEEC2ISt5_BindIFM6EventsFvS1_S2_S3_bEPS8_St12_PlaceholderILi1EESC_ILi2EESC_ILi3EESC_ILi4EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(24) %31)
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_Z29mfb_set_mouse_button_callbackSt8functionIFvP10mfb_window16mfb_mouse_button11mfb_key_modbEES1_(ptr noundef %30, ptr noundef %59)
          to label %60 unwind label %123

60:                                               ; preds = %58
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN6Events10mouse_moveEP10mfb_windowii to i64), i64 0 }, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  store ptr %7, ptr %37, align 8, !tbaa !9
  call void @_ZSt4bindIM6EventsFvP10mfb_windowiiEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EERKS6_ILi3EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESH_JDpT0_EE4typeEOSH_DpOSI_(ptr dead_on_unwind writable sret(%"class.std::_Bind.7") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E)
  call void @_ZNSt8functionIFvP10mfb_windowiiEEC2ISt5_BindIFM6EventsFvS1_iiEPS6_St12_PlaceholderILi1EESA_ILi2EESA_ILi3EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(24) %35)
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_Z27mfb_set_mouse_move_callbackSt8functionIFvP10mfb_windowiiEES1_(ptr noundef %34, ptr noundef %61)
          to label %62 unwind label %127

62:                                               ; preds = %60
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN6Events12mouse_scrollEP10mfb_window11mfb_key_modff to i64), i64 0 }, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  store ptr %7, ptr %41, align 8, !tbaa !9
  call void @_ZSt4bindIM6EventsFvP10mfb_window11mfb_key_modffEJPS0_RKSt12_PlaceholderILi1EERKS7_ILi2EERKS7_ILi3EERKS7_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESL_JDpT0_EE4typeEOSL_DpOSM_(ptr dead_on_unwind writable sret(%"class.std::_Bind.51") align 8 %39, ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_4E)
  call void @_ZNSt8functionIFvP10mfb_window11mfb_key_modffEEC2ISt5_BindIFM6EventsFvS1_S2_ffEPS7_St12_PlaceholderILi1EESB_ILi2EESB_ILi3EESB_ILi4EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(24) %39)
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_Z29mfb_set_mouse_scroll_callbackSt8functionIFvP10mfb_window11mfb_key_modffEES1_(ptr noundef %38, ptr noundef %63)
          to label %64 unwind label %131

64:                                               ; preds = %62
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #6
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  call void @mfb_set_user_data(ptr noundef %65, ptr noundef @.str)
  br label %66

66:                                               ; preds = %145, %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %100, %66
  %68 = load i32, ptr %42, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 480000
  br i1 %69, label %70, label %135

70:                                               ; preds = %67
  %71 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %71, ptr %2, align 4, !tbaa !5
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = ashr i32 %72, 3
  store i32 %73, ptr %2, align 4, !tbaa !5
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = xor i32 %75, %74
  store i32 %76, ptr %2, align 4, !tbaa !5
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = and i32 %77, 1
  store i32 %78, ptr %3, align 4, !tbaa !5
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = ashr i32 %79, 1
  store i32 %80, ptr %2, align 4, !tbaa !5
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = ashr i32 %81, 1
  store i32 %82, ptr %4, align 4, !tbaa !5
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = shl i32 %83, 30
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = or i32 %85, %84
  store i32 %86, ptr %4, align 4, !tbaa !5
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = and i32 %87, 255
  store i32 %88, ptr %2, align 4, !tbaa !5
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = shl i32 %89, 16
  %91 = or i32 -16777216, %90
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = shl i32 %92, 8
  %94 = or i32 %91, %93
  %95 = load i32, ptr %2, align 4, !tbaa !5
  %96 = or i32 %94, %95
  %97 = load i32, ptr %42, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [480000 x i32], ptr @_ZL8g_buffer, i64 0, i64 %98
  store i32 %96, ptr %99, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %70
  %101 = load i32, ptr %42, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %42, align 4, !tbaa !5
  br label %67, !llvm.loop !12

103:                                              ; preds = %48
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %149

107:                                              ; preds = %50
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %149

111:                                              ; preds = %52
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %12, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  br label %149

115:                                              ; preds = %54
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  br label %149

119:                                              ; preds = %56
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #6
  br label %149

123:                                              ; preds = %58
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %12, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %149

127:                                              ; preds = %60
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %12, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #6
  br label %149

131:                                              ; preds = %62
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %12, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #6
  br label %149

135:                                              ; preds = %67
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  %137 = call i32 @mfb_update(ptr noundef %136, ptr noundef @_ZL8g_buffer)
  store i32 %137, ptr %43, align 4, !tbaa !14
  %138 = load i32, ptr %43, align 4, !tbaa !14
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %135
  store ptr null, ptr %5, align 8, !tbaa !9
  store i32 2, ptr %6, align 4
  br label %142

141:                                              ; preds = %135
  store i32 0, ptr %6, align 4
  br label %142

142:                                              ; preds = %141, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  %143 = load i32, ptr %6, align 4
  switch i32 %143, label %157 [
    i32 0, label %144
    i32 2, label %148
  ]

144:                                              ; preds = %142
  br label %145

145:                                              ; preds = %144
  %146 = load ptr, ptr %5, align 8, !tbaa !9
  %147 = call zeroext i1 @mfb_wait_sync(ptr noundef %146)
  br i1 %147, label %66, label %148, !llvm.loop !16

148:                                              ; preds = %145, %142
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  br label %150

149:                                              ; preds = %131, %127, %123, %119, %115, %111, %107, %103
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %152

150:                                              ; preds = %148, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %151 = load i32, ptr %1, align 4
  ret i32 %151

152:                                              ; preds = %149
  %153 = load ptr, ptr %12, align 8
  %154 = load i32, ptr %13, align 4
  %155 = insertvalue { ptr, i32 } poison, ptr %153, 0
  %156 = insertvalue { ptr, i32 } %155, i32 %154, 1
  resume { ptr, i32 } %156

157:                                              ; preds = %142
  unreachable
}

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

declare ptr @mfb_open_ex(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @_Z23mfb_set_active_callbackSt8functionIFvP10mfb_windowbEES1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_windowbEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESE_JDpT0_EE4typeEOSE_DpOSF_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events6activeEP10mfb_windowb(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i1 noundef zeroext) #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_Z23mfb_set_resize_callbackSt8functionIFvP10mfb_windowiiEES1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_windowiiEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EERKS6_ILi3EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESH_JDpT0_EE4typeEOSH_DpOSI_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.7") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events6resizeEP10mfb_windowii(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef) #4 align 2

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

declare void @_Z22mfb_set_close_callbackSt8functionIFbP10mfb_windowEES1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFbP10mfb_windowEJPS0_RKSt12_PlaceholderILi1EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESB_JDpT0_EE4typeEOSB_DpOSC_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.19") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Events5closeEP10mfb_window(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) #4 align 2

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

declare void @_Z25mfb_set_keyboard_callbackSt8functionIFvP10mfb_window7mfb_key11mfb_key_modbEES1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_window7mfb_key11mfb_key_modbEJPS0_RKSt12_PlaceholderILi1EERKS8_ILi2EERKS8_ILi3EERKS8_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESM_JDpT0_EE4typeEOSM_DpOSN_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.27") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events8keyboardEP10mfb_window7mfb_key11mfb_key_modb(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #4 align 2

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

declare void @_Z27mfb_set_char_input_callbackSt8functionIFvP10mfb_windowjEES1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_windowjEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESE_JDpT0_EE4typeEOSE_DpOSF_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.41") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events10char_inputEP10mfb_windowj(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef) #4 align 2

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

declare void @_Z29mfb_set_mouse_button_callbackSt8functionIFvP10mfb_window16mfb_mouse_button11mfb_key_modbEES1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_window16mfb_mouse_button11mfb_key_modbEJPS0_RKSt12_PlaceholderILi1EERKS8_ILi2EERKS8_ILi3EERKS8_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESM_JDpT0_EE4typeEOSM_DpOSN_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.46") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events12mouse_buttonEP10mfb_window16mfb_mouse_button11mfb_key_modb(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #4 align 2

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

declare void @_Z27mfb_set_mouse_move_callbackSt8functionIFvP10mfb_windowiiEES1_(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Events10mouse_moveEP10mfb_windowii(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef) #5 align 2

declare void @_Z29mfb_set_mouse_scroll_callbackSt8functionIFvP10mfb_window11mfb_key_modffEES1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_window11mfb_key_modffEJPS0_RKSt12_PlaceholderILi1EERKS7_ILi2EERKS7_ILi3EERKS7_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESL_JDpT0_EE4typeEOSL_DpOSM_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.51") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events12mouse_scrollEP10mfb_window11mfb_key_modff(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, float noundef, float noundef) #4 align 2

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

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

declare void @mfb_set_user_data(ptr noundef, ptr noundef) #2

declare i32 @mfb_update(ptr noundef, ptr noundef) #2

declare zeroext i1 @mfb_wait_sync(ptr noundef) #2

attributes #0 = { mustprogress norecurse 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 = { "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 = { 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 #4 = { 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 #5 = { 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 }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTS16mfb_update_state", !7, i64 0}
!16 = distinct !{!16, !13}


; 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::_Placeholder" = type { i8 }
%"struct.std::_Placeholder.4" = type { i8 }
%"struct.std::_Placeholder.16" = type { i8 }
%"struct.std::_Placeholder.37" = type { i8 }
%class.Events = type { i8 }
%"class.std::function" = 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 } }
%"class.std::_Bind" = type { { i64, i64 }, %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.3" }
%"struct.std::_Head_base.3" = type { ptr }
%"class.std::function.5" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.7" = type { { i64, i64 }, %"class.std::tuple.10" }
%"class.std::tuple.10" = type { %"struct.std::_Tuple_impl.11" }
%"struct.std::_Tuple_impl.11" = type { %"struct.std::_Head_base.3" }
%"class.std::function.17" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.19" = type { { i64, i64 }, %"class.std::tuple.22" }
%"class.std::tuple.22" = type { %"struct.std::_Tuple_impl.23" }
%"struct.std::_Tuple_impl.23" = type { %"struct.std::_Head_base.3" }
%"class.std::function.25" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.27" = type { { i64, i64 }, %"class.std::tuple.30" }
%"class.std::tuple.30" = type { %"struct.std::_Tuple_impl.31" }
%"struct.std::_Tuple_impl.31" = type { %"struct.std::_Head_base.3" }
%"class.std::function.38" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.41" = type { { i64, i64 }, %"class.std::tuple" }
%"class.std::function.44" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.46" = type { { i64, i64 }, %"class.std::tuple.30" }
%"class.std::function.49" = type { %"class.std::_Function_base", ptr }
%"class.std::_Bind.51" = type { { i64, i64 }, %"class.std::tuple.30" }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@_ZNSt12placeholders2_1E = external global %"struct.std::_Placeholder", align 1
@_ZNSt12placeholders2_2E = external global %"struct.std::_Placeholder.4", align 1
@_ZNSt12placeholders2_3E = external global %"struct.std::_Placeholder.16", align 1
@_ZNSt12placeholders2_4E = external global %"struct.std::_Placeholder.37", align 1
@_ZL8g_buffer = external hidden global [480000 x i32], align 16

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.Events, align 1
  %2 = alloca %"class.std::function", align 8
  %3 = alloca %"class.std::_Bind", align 8
  %4 = alloca { i64, i64 }, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::function.5", align 8
  %7 = alloca %"class.std::_Bind.7", align 8
  %8 = alloca { i64, i64 }, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::function.17", align 8
  %11 = alloca %"class.std::_Bind.19", align 8
  %12 = alloca { i64, i64 }, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::function.25", align 8
  %15 = alloca %"class.std::_Bind.27", align 8
  %16 = alloca { i64, i64 }, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::function.38", align 8
  %19 = alloca %"class.std::_Bind.41", align 8
  %20 = alloca { i64, i64 }, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::function.44", align 8
  %23 = alloca %"class.std::_Bind.46", align 8
  %24 = alloca { i64, i64 }, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::function.5", align 8
  %27 = alloca %"class.std::_Bind.7", align 8
  %28 = alloca { i64, i64 }, align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.std::function.49", align 8
  %31 = alloca %"class.std::_Bind.51", align 8
  %32 = alloca { i64, i64 }, align 8
  %33 = alloca ptr, align 8
  %34 = tail call ptr @mfb_open_ex(ptr noundef nonnull @.str, i32 noundef 800, i32 noundef 600, i32 noundef 1)
  %.not = icmp eq ptr %34, null
  br i1 %.not, label %78, label %35

35:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  store i64 ptrtoint (ptr @_ZN6Events6activeEP10mfb_windowb to i64), ptr %4, align 8, !tbaa !5
  %.fca.1.gep18 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 0, ptr %.fca.1.gep18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store ptr %1, ptr %5, align 8, !tbaa !8
  call void @_ZSt4bindIM6EventsFvP10mfb_windowbEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESE_JDpT0_EE4typeEOSE_DpOSF_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind") align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E)
  call void @_ZNSt8functionIFvP10mfb_windowbEEC2ISt5_BindIFM6EventsFvS1_bEPS6_St12_PlaceholderILi1EESA_ILi2EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
  invoke void @_Z23mfb_set_active_callbackSt8functionIFvP10mfb_windowbEES1_(ptr noundef nonnull %2, ptr noundef nonnull %34)
          to label %36 unwind label %56

36:                                               ; preds = %35
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  store i64 ptrtoint (ptr @_ZN6Events6resizeEP10mfb_windowii to i64), ptr %8, align 8, !tbaa !5
  %.fca.1.gep15 = getelementptr inbounds i8, ptr %8, i64 8
  store i64 0, ptr %.fca.1.gep15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  store ptr %1, ptr %9, align 8, !tbaa !8
  call void @_ZSt4bindIM6EventsFvP10mfb_windowiiEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EERKS6_ILi3EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESH_JDpT0_EE4typeEOSH_DpOSI_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.7") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E)
  call void @_ZNSt8functionIFvP10mfb_windowiiEEC2ISt5_BindIFM6EventsFvS1_iiEPS6_St12_PlaceholderILi1EESA_ILi2EESA_ILi3EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
  invoke void @_Z23mfb_set_resize_callbackSt8functionIFvP10mfb_windowiiEES1_(ptr noundef nonnull %6, ptr noundef nonnull %34)
          to label %37 unwind label %58

37:                                               ; preds = %36
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  store i64 ptrtoint (ptr @_ZN6Events5closeEP10mfb_window to i64), ptr %12, align 8, !tbaa !5
  %.fca.1.gep13 = getelementptr inbounds i8, ptr %12, i64 8
  store i64 0, ptr %.fca.1.gep13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  store ptr %1, ptr %13, align 8, !tbaa !8
  call void @_ZSt4bindIM6EventsFbP10mfb_windowEJPS0_RKSt12_PlaceholderILi1EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESB_JDpT0_EE4typeEOSB_DpOSC_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.19") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E)
  call void @_ZNSt8functionIFbP10mfb_windowEEC2ISt5_BindIFM6EventsFbS1_EPS6_St12_PlaceholderILi1EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
  invoke void @_Z22mfb_set_close_callbackSt8functionIFbP10mfb_windowEES1_(ptr noundef nonnull %10, ptr noundef nonnull %34)
          to label %38 unwind label %60

38:                                               ; preds = %37
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  store i64 ptrtoint (ptr @_ZN6Events8keyboardEP10mfb_window7mfb_key11mfb_key_modb to i64), ptr %16, align 8, !tbaa !5
  %.fca.1.gep11 = getelementptr inbounds i8, ptr %16, i64 8
  store i64 0, ptr %.fca.1.gep11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  store ptr %1, ptr %17, align 8, !tbaa !8
  call void @_ZSt4bindIM6EventsFvP10mfb_window7mfb_key11mfb_key_modbEJPS0_RKSt12_PlaceholderILi1EERKS8_ILi2EERKS8_ILi3EERKS8_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESM_JDpT0_EE4typeEOSM_DpOSN_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.27") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_4E)
  call void @_ZNSt8functionIFvP10mfb_window7mfb_key11mfb_key_modbEEC2ISt5_BindIFM6EventsFvS1_S2_S3_bEPS8_St12_PlaceholderILi1EESC_ILi2EESC_ILi3EESC_ILi4EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  invoke void @_Z25mfb_set_keyboard_callbackSt8functionIFvP10mfb_window7mfb_key11mfb_key_modbEES1_(ptr noundef nonnull %14, ptr noundef nonnull %34)
          to label %39 unwind label %62

39:                                               ; preds = %38
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  store i64 ptrtoint (ptr @_ZN6Events10char_inputEP10mfb_windowj to i64), ptr %20, align 8, !tbaa !5
  %.fca.1.gep9 = getelementptr inbounds i8, ptr %20, i64 8
  store i64 0, ptr %.fca.1.gep9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  store ptr %1, ptr %21, align 8, !tbaa !8
  call void @_ZSt4bindIM6EventsFvP10mfb_windowjEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESE_JDpT0_EE4typeEOSE_DpOSF_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.41") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E)
  call void @_ZNSt8functionIFvP10mfb_windowjEEC2ISt5_BindIFM6EventsFvS1_jEPS6_St12_PlaceholderILi1EESA_ILi2EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
  invoke void @_Z27mfb_set_char_input_callbackSt8functionIFvP10mfb_windowjEES1_(ptr noundef nonnull %18, ptr noundef nonnull %34)
          to label %40 unwind label %64

40:                                               ; preds = %39
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  store i64 ptrtoint (ptr @_ZN6Events12mouse_buttonEP10mfb_window16mfb_mouse_button11mfb_key_modb to i64), ptr %24, align 8, !tbaa !5
  %.fca.1.gep7 = getelementptr inbounds i8, ptr %24, i64 8
  store i64 0, ptr %.fca.1.gep7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #6
  store ptr %1, ptr %25, align 8, !tbaa !8
  call void @_ZSt4bindIM6EventsFvP10mfb_window16mfb_mouse_button11mfb_key_modbEJPS0_RKSt12_PlaceholderILi1EERKS8_ILi2EERKS8_ILi3EERKS8_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESM_JDpT0_EE4typeEOSM_DpOSN_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.46") align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_4E)
  call void @_ZNSt8functionIFvP10mfb_window16mfb_mouse_button11mfb_key_modbEEC2ISt5_BindIFM6EventsFvS1_S2_S3_bEPS8_St12_PlaceholderILi1EESC_ILi2EESC_ILi3EESC_ILi4EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
  invoke void @_Z29mfb_set_mouse_button_callbackSt8functionIFvP10mfb_window16mfb_mouse_button11mfb_key_modbEES1_(ptr noundef nonnull %22, ptr noundef nonnull %34)
          to label %41 unwind label %66

41:                                               ; preds = %40
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  store i64 ptrtoint (ptr @_ZN6Events10mouse_moveEP10mfb_windowii to i64), ptr %28, align 8, !tbaa !5
  %.fca.1.gep5 = getelementptr inbounds i8, ptr %28, i64 8
  store i64 0, ptr %.fca.1.gep5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #6
  store ptr %1, ptr %29, align 8, !tbaa !8
  call void @_ZSt4bindIM6EventsFvP10mfb_windowiiEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EERKS6_ILi3EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESH_JDpT0_EE4typeEOSH_DpOSI_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.7") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E)
  call void @_ZNSt8functionIFvP10mfb_windowiiEEC2ISt5_BindIFM6EventsFvS1_iiEPS6_St12_PlaceholderILi1EESA_ILi2EESA_ILi3EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
  invoke void @_Z27mfb_set_mouse_move_callbackSt8functionIFvP10mfb_windowiiEES1_(ptr noundef nonnull %26, ptr noundef nonnull %34)
          to label %42 unwind label %68

42:                                               ; preds = %41
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #6
  store i64 ptrtoint (ptr @_ZN6Events12mouse_scrollEP10mfb_window11mfb_key_modff to i64), ptr %32, align 8, !tbaa !5
  %.fca.1.gep = getelementptr inbounds i8, ptr %32, i64 8
  store i64 0, ptr %.fca.1.gep, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #6
  store ptr %1, ptr %33, align 8, !tbaa !8
  call void @_ZSt4bindIM6EventsFvP10mfb_window11mfb_key_modffEJPS0_RKSt12_PlaceholderILi1EERKS7_ILi2EERKS7_ILi3EERKS7_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESL_JDpT0_EE4typeEOSL_DpOSM_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind.51") align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_2E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_3E, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_4E)
  call void @_ZNSt8functionIFvP10mfb_window11mfb_key_modffEEC2ISt5_BindIFM6EventsFvS1_S2_ffEPS7_St12_PlaceholderILi1EESB_ILi2EESB_ILi3EESB_ILi4EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(24) %31)
  invoke void @_Z29mfb_set_mouse_scroll_callbackSt8functionIFvP10mfb_window11mfb_key_modffEES1_(ptr noundef nonnull %30, ptr noundef nonnull %34)
          to label %43 unwind label %70

43:                                               ; preds = %42
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #6
  call void @mfb_set_user_data(ptr noundef nonnull %34, ptr noundef nonnull @.str)
  br label %44

44:                                               ; preds = %.backedge, %43
  %indvars.iv = phi i64 [ 0, %43 ], [ %indvars.iv.be, %.backedge ]
  %.15255 = phi i32 [ 48879, %43 ], [ %51, %.backedge ]
  %45 = ashr i32 %.15255, 3
  %46 = xor i32 %45, %.15255
  %47 = lshr i32 %46, 1
  %48 = ashr i32 %.15255, 1
  %49 = shl i32 %46, 30
  %50 = and i32 %49, 1073741824
  %51 = or i32 %50, %48
  %52 = and i32 %47, 255
  %53 = mul nuw nsw i32 %52, 65793
  %54 = or disjoint i32 %53, -16777216
  %55 = getelementptr inbounds [480000 x i32], ptr @_ZL8g_buffer, i64 0, i64 %indvars.iv
  store i32 %54, ptr %55, align 4, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 480000
  br i1 %exitcond.not, label %72, label %.backedge

.backedge:                                        ; preds = %44, %74
  %indvars.iv.be = phi i64 [ %indvars.iv.next, %44 ], [ 0, %74 ]
  br label %44, !llvm.loop !12

56:                                               ; preds = %35
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %77

58:                                               ; preds = %36
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %77

60:                                               ; preds = %37
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %77

62:                                               ; preds = %38
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  br label %77

64:                                               ; preds = %39
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #6
  br label %77

66:                                               ; preds = %40
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  br label %77

68:                                               ; preds = %41
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #6
  br label %77

70:                                               ; preds = %42
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #6
  br label %77

72:                                               ; preds = %44
  %73 = call i32 @mfb_update(ptr noundef nonnull %34, ptr noundef nonnull @_ZL8g_buffer)
  %.not54 = icmp eq i32 %73, 0
  br i1 %.not54, label %74, label %76

74:                                               ; preds = %72
  %75 = call zeroext i1 @mfb_wait_sync(ptr noundef nonnull %34)
  br i1 %75, label %.backedge, label %76

76:                                               ; preds = %72, %74
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #6
  br label %78

77:                                               ; preds = %70, %68, %66, %64, %62, %60, %58, %56
  %.pn = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ], [ %67, %66 ], [ %65, %64 ], [ %63, %62 ], [ %61, %60 ], [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn

78:                                               ; preds = %0, %76
  ret i32 0
}

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

declare ptr @mfb_open_ex(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_Z23mfb_set_active_callbackSt8functionIFvP10mfb_windowbEES1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_windowbEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESE_JDpT0_EE4typeEOSE_DpOSF_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events6activeEP10mfb_windowb(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i1 noundef zeroext) #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_Z23mfb_set_resize_callbackSt8functionIFvP10mfb_windowiiEES1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_windowiiEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EERKS6_ILi3EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESH_JDpT0_EE4typeEOSH_DpOSI_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.7") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events6resizeEP10mfb_windowii(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef) #4 align 2

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

declare void @_Z22mfb_set_close_callbackSt8functionIFbP10mfb_windowEES1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFbP10mfb_windowEJPS0_RKSt12_PlaceholderILi1EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESB_JDpT0_EE4typeEOSB_DpOSC_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.19") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Events5closeEP10mfb_window(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) #4 align 2

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

declare void @_Z25mfb_set_keyboard_callbackSt8functionIFvP10mfb_window7mfb_key11mfb_key_modbEES1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_window7mfb_key11mfb_key_modbEJPS0_RKSt12_PlaceholderILi1EERKS8_ILi2EERKS8_ILi3EERKS8_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESM_JDpT0_EE4typeEOSM_DpOSN_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.27") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events8keyboardEP10mfb_window7mfb_key11mfb_key_modb(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #4 align 2

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

declare void @_Z27mfb_set_char_input_callbackSt8functionIFvP10mfb_windowjEES1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_windowjEJPS0_RKSt12_PlaceholderILi1EERKS6_ILi2EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESE_JDpT0_EE4typeEOSE_DpOSF_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.41") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events10char_inputEP10mfb_windowj(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef) #4 align 2

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

declare void @_Z29mfb_set_mouse_button_callbackSt8functionIFvP10mfb_window16mfb_mouse_button11mfb_key_modbEES1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_window16mfb_mouse_button11mfb_key_modbEJPS0_RKSt12_PlaceholderILi1EERKS8_ILi2EERKS8_ILi3EERKS8_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESM_JDpT0_EE4typeEOSM_DpOSN_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.46") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events12mouse_buttonEP10mfb_window16mfb_mouse_button11mfb_key_modb(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #4 align 2

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

declare void @_Z27mfb_set_mouse_move_callbackSt8functionIFvP10mfb_windowiiEES1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Events10mouse_moveEP10mfb_windowii(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef) #5 align 2

declare void @_Z29mfb_set_mouse_scroll_callbackSt8functionIFvP10mfb_window11mfb_key_modffEES1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIM6EventsFvP10mfb_window11mfb_key_modffEJPS0_RKSt12_PlaceholderILi1EERKS7_ILi2EERKS7_ILi3EERKS7_ILi4EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESL_JDpT0_EE4typeEOSL_DpOSM_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind.51") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Events12mouse_scrollEP10mfb_window11mfb_key_modff(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, float noundef, float noundef) #4 align 2

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

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

declare void @mfb_set_user_data(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @mfb_update(ptr noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i1 @mfb_wait_sync(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress norecurse 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 = { "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 = { 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 #4 = { 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 #5 = { 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 }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass