; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/tests (gamma)

; 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.nk_glfw = type { ptr, i32, i32, i32, i32, %struct.nk_glfw_device, %struct.nk_context, %struct.nk_font_atlas, %struct.nk_vec2, [256 x i32], i32, %struct.nk_vec2, double, i32, %struct.nk_vec2 }
%struct.nk_glfw_device = type { %struct.nk_buffer, %struct.nk_draw_null_texture, i32 }
%struct.nk_buffer = type { [2 x %struct.nk_buffer_marker], %struct.nk_allocator, i32, %struct.nk_memory, float, i64, i64, i64, i64 }
%struct.nk_buffer_marker = type { i32, i64 }
%struct.nk_allocator = type { %union.nk_handle, ptr, ptr }
%union.nk_handle = type { ptr }
%struct.nk_memory = type { ptr, i64 }
%struct.nk_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%struct.nk_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_image }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%struct.nk_style_toggle = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, float, float, %union.nk_handle, ptr, ptr }
%struct.nk_style_selectable = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_slider = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_progress = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_property = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, i32, float, float, %struct.nk_vec2, %struct.nk_style_edit, %struct.nk_style_button, %struct.nk_style_button, %union.nk_handle, ptr, ptr }
%struct.nk_style_edit = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_scrollbar, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, float, %struct.nk_vec2, %struct.nk_vec2, float }
%struct.nk_style_chart = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, %struct.nk_vec2 }
%struct.nk_style_scrollbar = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_tab = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, i32, i32, float, float, float, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_combo = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, i32, i32, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window = type { %struct.nk_style_window_header, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, float, float, float, float, float, float, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window_header = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_button, %struct.nk_style_button, i32, i32, i32, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_clipboard = type { %union.nk_handle, ptr, ptr }
%struct.nk_configuration_stacks = type { %struct.nk_config_stack_style_item, %struct.nk_config_stack_float, %struct.nk_config_stack_vec2, %struct.nk_config_stack_flags, %struct.nk_config_stack_color, %struct.nk_config_stack_user_font, %struct.nk_config_stack_button_behavior }
%struct.nk_config_stack_style_item = type { i32, [16 x %struct.nk_config_stack_style_item_element] }
%struct.nk_config_stack_style_item_element = type { ptr, %struct.nk_style_item }
%struct.nk_config_stack_float = type { i32, [32 x %struct.nk_config_stack_float_element] }
%struct.nk_config_stack_float_element = type { ptr, float }
%struct.nk_config_stack_vec2 = type { i32, [16 x %struct.nk_config_stack_vec2_element] }
%struct.nk_config_stack_vec2_element = type { ptr, %struct.nk_vec2 }
%struct.nk_config_stack_flags = type { i32, [32 x %struct.nk_config_stack_flags_element] }
%struct.nk_config_stack_flags_element = type { ptr, i32 }
%struct.nk_config_stack_color = type { i32, [32 x %struct.nk_config_stack_color_element] }
%struct.nk_config_stack_color_element = type { ptr, %struct.nk_color }
%struct.nk_config_stack_user_font = type { i32, [8 x %struct.nk_config_stack_user_font_element] }
%struct.nk_config_stack_user_font_element = type { ptr, ptr }
%struct.nk_config_stack_button_behavior = type { i32, [8 x %struct.nk_config_stack_button_behavior_element] }
%struct.nk_config_stack_button_behavior_element = type { ptr, i32 }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_text_edit = type { %struct.nk_clipboard, %struct.nk_str, ptr, %struct.nk_vec2, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, float, %struct.nk_text_undo_state }
%struct.nk_str = type { %struct.nk_buffer, i32 }
%struct.nk_text_undo_state = type { [99 x %struct.nk_text_undo_record], [999 x i32], i16, i16, i16, i16 }
%struct.nk_text_undo_record = type { i32, i16, i16, i16 }
%struct.nk_command_buffer = type { ptr, %struct.nk_rect, i32, %union.nk_handle, i64, i64, i64 }
%struct.nk_pool = type { %struct.nk_allocator, i32, i32, ptr, ptr, i32, i64, i64 }
%struct.nk_font_atlas = type { ptr, i32, i32, %struct.nk_allocator, %struct.nk_allocator, %struct.nk_recti, [7 x %struct.nk_cursor], i32, ptr, ptr, ptr, ptr, i32 }
%struct.nk_recti = type { i16, i16, i16, i16 }
%struct.nk_cursor = type { %struct.nk_image, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_vec2 = type { float, float }

@glfw = external hidden global %struct.nk_glfw, align 8

; Function Attrs: nounwind uwtable
define dso_local void @nk_gflw3_scroll_callback(ptr noundef %0, double noundef %1, double noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  store double %2, ptr %6, align 8, !tbaa !9
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = load double, ptr %5, align 8, !tbaa !9
  %9 = load double, ptr %5, align 8, !tbaa !9
  %10 = fptrunc double %9 to float
  %11 = load float, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 11), align 4, !tbaa !11
  %12 = fadd float %11, %10
  store float %12, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 11), align 4, !tbaa !11
  %13 = load double, ptr %6, align 8, !tbaa !9
  %14 = fptrunc double %13 to float
  %15 = load float, ptr getelementptr inbounds (%struct.nk_vec2, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 11), i32 0, i32 1), align 4, !tbaa !63
  %16 = fadd float %15, %14
  store float %16, ptr getelementptr inbounds (%struct.nk_vec2, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 11), i32 0, i32 1), align 4, !tbaa !63
  ret void
}

attributes #0 = { 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" }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !19, i64 18228}
!12 = !{!"nk_glfw", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !14, i64 24, !22, i64 168, !61, i64 16792, !21, i64 17192, !7, i64 17200, !13, i64 18224, !21, i64 18228, !10, i64 18240, !13, i64 18248, !21, i64 18252}
!13 = !{!"int", !7, i64 0}
!14 = !{!"nk_glfw_device", !15, i64 0, !20, i64 120, !13, i64 136}
!15 = !{!"nk_buffer", !7, i64 0, !16, i64 32, !13, i64 56, !17, i64 64, !19, i64 80, !18, i64 88, !18, i64 96, !18, i64 104, !18, i64 112}
!16 = !{!"nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"nk_memory", !6, i64 0, !18, i64 8}
!18 = !{!"long", !7, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"nk_draw_null_texture", !7, i64 0, !21, i64 8}
!21 = !{!"nk_vec2", !19, i64 0, !19, i64 4}
!22 = !{!"nk_context", !23, i64 0, !26, i64 360, !15, i64 7904, !43, i64 8024, !13, i64 8048, !13, i64 8052, !44, i64 8056, !19, i64 10800, !52, i64 10808, !55, i64 11048, !59, i64 16432, !13, i64 16496, !13, i64 16500, !60, i64 16504, !6, i64 16576, !6, i64 16584, !6, i64 16592, !6, i64 16600, !6, i64 16608, !13, i64 16616, !13, i64 16620}
!23 = !{!"nk_input", !24, i64 0, !25, i64 260}
!24 = !{!"nk_keyboard", !7, i64 0, !7, i64 240, !13, i64 256}
!25 = !{!"nk_mouse", !7, i64 0, !21, i64 64, !21, i64 72, !21, i64 80, !21, i64 88, !7, i64 96, !7, i64 97, !7, i64 98}
!26 = !{!"nk_style", !6, i64 0, !7, i64 8, !6, i64 64, !6, i64 72, !13, i64 80, !27, i64 84, !29, i64 96, !29, i64 272, !29, i64 448, !31, i64 624, !31, i64 864, !32, i64 1104, !33, i64 1384, !34, i64 2024, !35, i64 2280, !36, i64 3592, !38, i64 4392, !37, i64 4456, !37, i64 5072, !39, i64 5688, !40, i64 6472, !41, i64 6824}
!27 = !{!"nk_style_text", !28, i64 0, !21, i64 4}
!28 = !{!"nk_color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!29 = !{!"nk_style_button", !30, i64 0, !30, i64 32, !30, i64 64, !28, i64 96, !28, i64 100, !28, i64 104, !28, i64 108, !28, i64 112, !13, i64 116, !19, i64 120, !19, i64 124, !21, i64 128, !21, i64 136, !21, i64 144, !7, i64 152, !6, i64 160, !6, i64 168}
!30 = !{!"nk_style_item", !13, i64 0, !7, i64 8}
!31 = !{!"nk_style_toggle", !30, i64 0, !30, i64 32, !30, i64 64, !28, i64 96, !30, i64 104, !30, i64 136, !28, i64 168, !28, i64 172, !28, i64 176, !28, i64 180, !13, i64 184, !21, i64 188, !21, i64 196, !19, i64 204, !19, i64 208, !7, i64 216, !6, i64 224, !6, i64 232}
!32 = !{!"nk_style_selectable", !30, i64 0, !30, i64 32, !30, i64 64, !30, i64 96, !30, i64 128, !30, i64 160, !28, i64 192, !28, i64 196, !28, i64 200, !28, i64 204, !28, i64 208, !28, i64 212, !28, i64 216, !13, i64 220, !19, i64 224, !21, i64 228, !21, i64 236, !21, i64 244, !7, i64 256, !6, i64 264, !6, i64 272}
!33 = !{!"nk_style_slider", !30, i64 0, !30, i64 32, !30, i64 64, !28, i64 96, !28, i64 100, !28, i64 104, !28, i64 108, !28, i64 112, !30, i64 120, !30, i64 152, !30, i64 184, !19, i64 216, !19, i64 220, !19, i64 224, !21, i64 228, !21, i64 236, !21, i64 244, !13, i64 252, !29, i64 256, !29, i64 432, !13, i64 608, !13, i64 612, !7, i64 616, !6, i64 624, !6, i64 632}
!34 = !{!"nk_style_progress", !30, i64 0, !30, i64 32, !30, i64 64, !28, i64 96, !30, i64 104, !30, i64 136, !30, i64 168, !28, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !21, i64 220, !7, i64 232, !6, i64 240, !6, i64 248}
!35 = !{!"nk_style_property", !30, i64 0, !30, i64 32, !30, i64 64, !28, i64 96, !28, i64 100, !28, i64 104, !28, i64 108, !13, i64 112, !13, i64 116, !19, i64 120, !19, i64 124, !21, i64 128, !36, i64 136, !29, i64 936, !29, i64 1112, !7, i64 1288, !6, i64 1296, !6, i64 1304}
!36 = !{!"nk_style_edit", !30, i64 0, !30, i64 32, !30, i64 64, !28, i64 96, !37, i64 104, !28, i64 720, !28, i64 724, !28, i64 728, !28, i64 732, !28, i64 736, !28, i64 740, !28, i64 744, !28, i64 748, !28, i64 752, !28, i64 756, !28, i64 760, !19, i64 764, !19, i64 768, !19, i64 772, !21, i64 776, !21, i64 784, !19, i64 792}
!37 = !{!"nk_style_scrollbar", !30, i64 0, !30, i64 32, !30, i64 64, !28, i64 96, !30, i64 104, !30, i64 136, !30, i64 168, !28, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !21, i64 220, !13, i64 228, !29, i64 232, !29, i64 408, !13, i64 584, !13, i64 588, !7, i64 592, !6, i64 600, !6, i64 608}
!38 = !{!"nk_style_chart", !30, i64 0, !28, i64 32, !28, i64 36, !28, i64 40, !19, i64 44, !19, i64 48, !21, i64 52}
!39 = !{!"nk_style_tab", !30, i64 0, !28, i64 32, !28, i64 36, !29, i64 40, !29, i64 216, !29, i64 392, !29, i64 568, !13, i64 744, !13, i64 748, !19, i64 752, !19, i64 756, !19, i64 760, !21, i64 764, !21, i64 772}
!40 = !{!"nk_style_combo", !30, i64 0, !30, i64 32, !30, i64 64, !28, i64 96, !28, i64 100, !28, i64 104, !28, i64 108, !28, i64 112, !28, i64 116, !28, i64 120, !29, i64 128, !13, i64 304, !13, i64 308, !13, i64 312, !19, i64 316, !19, i64 320, !21, i64 324, !21, i64 332, !21, i64 340}
!41 = !{!"nk_style_window", !42, i64 0, !30, i64 504, !28, i64 536, !28, i64 540, !28, i64 544, !28, i64 548, !28, i64 552, !28, i64 556, !28, i64 560, !28, i64 564, !30, i64 568, !19, i64 600, !19, i64 604, !19, i64 608, !19, i64 612, !19, i64 616, !19, i64 620, !19, i64 624, !19, i64 628, !19, i64 632, !21, i64 636, !21, i64 644, !21, i64 652, !21, i64 660, !21, i64 668, !21, i64 676, !21, i64 684, !21, i64 692, !21, i64 700, !21, i64 708}
!42 = !{!"nk_style_window_header", !30, i64 0, !30, i64 32, !30, i64 64, !29, i64 96, !29, i64 272, !13, i64 448, !13, i64 452, !13, i64 456, !28, i64 460, !28, i64 464, !28, i64 468, !13, i64 472, !21, i64 476, !21, i64 484, !21, i64 492}
!43 = !{!"nk_clipboard", !7, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"nk_configuration_stacks", !45, i64 0, !46, i64 648, !47, i64 1168, !48, i64 1432, !49, i64 1952, !50, i64 2472, !51, i64 2608}
!45 = !{!"nk_config_stack_style_item", !13, i64 0, !7, i64 8}
!46 = !{!"nk_config_stack_float", !13, i64 0, !7, i64 8}
!47 = !{!"nk_config_stack_vec2", !13, i64 0, !7, i64 8}
!48 = !{!"nk_config_stack_flags", !13, i64 0, !7, i64 8}
!49 = !{!"nk_config_stack_color", !13, i64 0, !7, i64 8}
!50 = !{!"nk_config_stack_user_font", !13, i64 0, !7, i64 8}
!51 = !{!"nk_config_stack_button_behavior", !13, i64 0, !7, i64 8}
!52 = !{!"nk_draw_list", !53, i64 0, !7, i64 16, !54, i64 112, !6, i64 176, !6, i64 184, !6, i64 192, !13, i64 200, !13, i64 204, !13, i64 208, !18, i64 216, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236}
!53 = !{!"nk_rect", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12}
!54 = !{!"nk_convert_config", !19, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !20, i64 24, !6, i64 40, !18, i64 48, !18, i64 56}
!55 = !{!"nk_text_edit", !43, i64 0, !56, i64 24, !6, i64 152, !21, i64 160, !13, i64 168, !13, i64 172, !13, i64 176, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !7, i64 184, !7, i64 185, !7, i64 186, !19, i64 188, !57, i64 192}
!56 = !{!"nk_str", !15, i64 0, !13, i64 120}
!57 = !{!"nk_text_undo_state", !7, i64 0, !7, i64 1188, !58, i64 5184, !58, i64 5186, !58, i64 5188, !58, i64 5190}
!58 = !{!"short", !7, i64 0}
!59 = !{!"nk_command_buffer", !6, i64 0, !53, i64 8, !13, i64 24, !7, i64 32, !18, i64 40, !18, i64 48, !18, i64 56}
!60 = !{!"nk_pool", !16, i64 0, !13, i64 24, !13, i64 28, !6, i64 32, !6, i64 40, !13, i64 48, !18, i64 56, !18, i64 64}
!61 = !{!"nk_font_atlas", !6, i64 0, !13, i64 8, !13, i64 12, !16, i64 16, !16, i64 40, !62, i64 64, !7, i64 72, !13, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !13, i64 392}
!62 = !{!"nk_recti", !58, i64 0, !58, i64 2, !58, i64 4, !58, i64 6}
!63 = !{!12, !19, i64 18232}


; 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.nk_glfw = type { ptr, i32, i32, i32, i32, %struct.nk_glfw_device, %struct.nk_context, %struct.nk_font_atlas, %struct.nk_vec2, [256 x i32], i32, %struct.nk_vec2, double, i32, %struct.nk_vec2 }
%struct.nk_glfw_device = type { %struct.nk_buffer, %struct.nk_draw_null_texture, i32 }
%struct.nk_buffer = type { [2 x %struct.nk_buffer_marker], %struct.nk_allocator, i32, %struct.nk_memory, float, i64, i64, i64, i64 }
%struct.nk_buffer_marker = type { i32, i64 }
%struct.nk_allocator = type { %union.nk_handle, ptr, ptr }
%union.nk_handle = type { ptr }
%struct.nk_memory = type { ptr, i64 }
%struct.nk_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%struct.nk_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_image }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%struct.nk_style_toggle = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, float, float, %union.nk_handle, ptr, ptr }
%struct.nk_style_selectable = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_slider = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_progress = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_property = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, i32, float, float, %struct.nk_vec2, %struct.nk_style_edit, %struct.nk_style_button, %struct.nk_style_button, %union.nk_handle, ptr, ptr }
%struct.nk_style_edit = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_scrollbar, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, float, %struct.nk_vec2, %struct.nk_vec2, float }
%struct.nk_style_chart = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, %struct.nk_vec2 }
%struct.nk_style_scrollbar = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_tab = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, i32, i32, float, float, float, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_combo = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, i32, i32, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window = type { %struct.nk_style_window_header, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, float, float, float, float, float, float, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window_header = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_button, %struct.nk_style_button, i32, i32, i32, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_clipboard = type { %union.nk_handle, ptr, ptr }
%struct.nk_configuration_stacks = type { %struct.nk_config_stack_style_item, %struct.nk_config_stack_float, %struct.nk_config_stack_vec2, %struct.nk_config_stack_flags, %struct.nk_config_stack_color, %struct.nk_config_stack_user_font, %struct.nk_config_stack_button_behavior }
%struct.nk_config_stack_style_item = type { i32, [16 x %struct.nk_config_stack_style_item_element] }
%struct.nk_config_stack_style_item_element = type { ptr, %struct.nk_style_item }
%struct.nk_config_stack_float = type { i32, [32 x %struct.nk_config_stack_float_element] }
%struct.nk_config_stack_float_element = type { ptr, float }
%struct.nk_config_stack_vec2 = type { i32, [16 x %struct.nk_config_stack_vec2_element] }
%struct.nk_config_stack_vec2_element = type { ptr, %struct.nk_vec2 }
%struct.nk_config_stack_flags = type { i32, [32 x %struct.nk_config_stack_flags_element] }
%struct.nk_config_stack_flags_element = type { ptr, i32 }
%struct.nk_config_stack_color = type { i32, [32 x %struct.nk_config_stack_color_element] }
%struct.nk_config_stack_color_element = type { ptr, %struct.nk_color }
%struct.nk_config_stack_user_font = type { i32, [8 x %struct.nk_config_stack_user_font_element] }
%struct.nk_config_stack_user_font_element = type { ptr, ptr }
%struct.nk_config_stack_button_behavior = type { i32, [8 x %struct.nk_config_stack_button_behavior_element] }
%struct.nk_config_stack_button_behavior_element = type { ptr, i32 }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_text_edit = type { %struct.nk_clipboard, %struct.nk_str, ptr, %struct.nk_vec2, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, float, %struct.nk_text_undo_state }
%struct.nk_str = type { %struct.nk_buffer, i32 }
%struct.nk_text_undo_state = type { [99 x %struct.nk_text_undo_record], [999 x i32], i16, i16, i16, i16 }
%struct.nk_text_undo_record = type { i32, i16, i16, i16 }
%struct.nk_command_buffer = type { ptr, %struct.nk_rect, i32, %union.nk_handle, i64, i64, i64 }
%struct.nk_pool = type { %struct.nk_allocator, i32, i32, ptr, ptr, i32, i64, i64 }
%struct.nk_font_atlas = type { ptr, i32, i32, %struct.nk_allocator, %struct.nk_allocator, %struct.nk_recti, [7 x %struct.nk_cursor], i32, ptr, ptr, ptr, ptr, i32 }
%struct.nk_recti = type { i16, i16, i16, i16 }
%struct.nk_cursor = type { %struct.nk_image, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_vec2 = type { float, float }

@glfw = external hidden local_unnamed_addr global %struct.nk_glfw, align 8

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @nk_gflw3_scroll_callback(ptr nocapture noundef readnone %0, double noundef %1, double noundef %2) local_unnamed_addr #0 {
  %4 = insertelement <2 x double> poison, double %1, i64 0
  %5 = insertelement <2 x double> %4, double %2, i64 1
  %6 = fptrunc <2 x double> %5 to <2 x float>
  %7 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @glfw, i64 18228), align 4, !tbaa !5
  %8 = fadd <2 x float> %7, %6
  store <2 x float> %8, ptr getelementptr inbounds (i8, ptr @glfw, i64 18228), align 4, !tbaa !5
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) 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" }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: GlobalOptPass,InferAlignmentPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass