; 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_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_vec2 = type { float, float }
%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] }
%union.nk_handle = type { ptr }
%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_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 }
%struct.nk_memory = type { ptr, i64 }
%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_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%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 }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__.nk_button_push_behavior = external hidden unnamed_addr constant [74 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [93 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @nk_button_push_behavior(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %2
  br label %13

12:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 20082, ptr noundef @__PRETTY_FUNCTION__.nk_button_push_behavior) #4
  unreachable

13:                                               ; preds = %11
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %54

17:                                               ; preds = %13
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.nk_context, ptr %18, i32 0, i32 6
  %20 = getelementptr inbounds %struct.nk_configuration_stacks, ptr %19, i32 0, i32 6
  store ptr %20, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.nk_config_stack_button_behavior, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = icmp slt i32 %23, 8
  br i1 %24, label %25, label %26

25:                                               ; preds = %17
  br label %27

26:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.119, ptr noundef @.str.2, i32 noundef 20086, ptr noundef @__PRETTY_FUNCTION__.nk_button_push_behavior) #4
  unreachable

27:                                               ; preds = %25
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.nk_config_stack_button_behavior, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %31 = icmp sge i32 %30, 8
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %54

33:                                               ; preds = %27
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.nk_config_stack_button_behavior, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.nk_config_stack_button_behavior, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %37, align 8, !tbaa !11
  %40 = sext i32 %38 to i64
  %41 = getelementptr inbounds [8 x %struct.nk_config_stack_button_behavior_element], ptr %35, i64 0, i64 %40
  store ptr %41, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.nk_context, ptr %42, i32 0, i32 5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nk_config_stack_button_behavior_element, ptr %44, i32 0, i32 0
  store ptr %43, ptr %45, align 8, !tbaa !13
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.nk_context, ptr %46, i32 0, i32 5
  %48 = load i32, ptr %47, align 4, !tbaa !15
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.nk_config_stack_button_behavior_element, ptr %49, i32 0, i32 1
  store i32 %48, ptr %50, align 8, !tbaa !61
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.nk_context, ptr %52, i32 0, i32 5
  store i32 %51, ptr %53, align 4, !tbaa !15
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %54

54:                                               ; preds = %33, %32, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %55 = load i32, ptr %3, align 4
  ret i32 %55
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"nk_config_stack_button_behavior", !10, i64 0, !7, i64 8}
!13 = !{!14, !6, i64 0}
!14 = !{!"nk_config_stack_button_behavior_element", !6, i64 0, !10, i64 8}
!15 = !{!16, !10, i64 8052}
!16 = !{!"nk_context", !17, i64 0, !22, i64 360, !39, i64 7904, !43, i64 8024, !10, i64 8048, !10, i64 8052, !44, i64 8056, !21, i64 10800, !51, i64 10808, !55, i64 11048, !59, i64 16432, !10, i64 16496, !10, i64 16500, !60, i64 16504, !6, i64 16576, !6, i64 16584, !6, i64 16592, !6, i64 16600, !6, i64 16608, !10, i64 16616, !10, i64 16620}
!17 = !{!"nk_input", !18, i64 0, !19, i64 260}
!18 = !{!"nk_keyboard", !7, i64 0, !7, i64 240, !10, i64 256}
!19 = !{!"nk_mouse", !7, i64 0, !20, i64 64, !20, i64 72, !20, i64 80, !20, i64 88, !7, i64 96, !7, i64 97, !7, i64 98}
!20 = !{!"nk_vec2", !21, i64 0, !21, i64 4}
!21 = !{!"float", !7, i64 0}
!22 = !{!"nk_style", !6, i64 0, !7, i64 8, !6, i64 64, !6, i64 72, !10, i64 80, !23, i64 84, !25, i64 96, !25, i64 272, !25, i64 448, !27, i64 624, !27, i64 864, !28, i64 1104, !29, i64 1384, !30, i64 2024, !31, i64 2280, !32, i64 3592, !34, i64 4392, !33, i64 4456, !33, i64 5072, !35, i64 5688, !36, i64 6472, !37, i64 6824}
!23 = !{!"nk_style_text", !24, i64 0, !20, i64 4}
!24 = !{!"nk_color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!25 = !{!"nk_style_button", !26, i64 0, !26, i64 32, !26, i64 64, !24, i64 96, !24, i64 100, !24, i64 104, !24, i64 108, !24, i64 112, !10, i64 116, !21, i64 120, !21, i64 124, !20, i64 128, !20, i64 136, !20, i64 144, !7, i64 152, !6, i64 160, !6, i64 168}
!26 = !{!"nk_style_item", !10, i64 0, !7, i64 8}
!27 = !{!"nk_style_toggle", !26, i64 0, !26, i64 32, !26, i64 64, !24, i64 96, !26, i64 104, !26, i64 136, !24, i64 168, !24, i64 172, !24, i64 176, !24, i64 180, !10, i64 184, !20, i64 188, !20, i64 196, !21, i64 204, !21, i64 208, !7, i64 216, !6, i64 224, !6, i64 232}
!28 = !{!"nk_style_selectable", !26, i64 0, !26, i64 32, !26, i64 64, !26, i64 96, !26, i64 128, !26, i64 160, !24, i64 192, !24, i64 196, !24, i64 200, !24, i64 204, !24, i64 208, !24, i64 212, !24, i64 216, !10, i64 220, !21, i64 224, !20, i64 228, !20, i64 236, !20, i64 244, !7, i64 256, !6, i64 264, !6, i64 272}
!29 = !{!"nk_style_slider", !26, i64 0, !26, i64 32, !26, i64 64, !24, i64 96, !24, i64 100, !24, i64 104, !24, i64 108, !24, i64 112, !26, i64 120, !26, i64 152, !26, i64 184, !21, i64 216, !21, i64 220, !21, i64 224, !20, i64 228, !20, i64 236, !20, i64 244, !10, i64 252, !25, i64 256, !25, i64 432, !10, i64 608, !10, i64 612, !7, i64 616, !6, i64 624, !6, i64 632}
!30 = !{!"nk_style_progress", !26, i64 0, !26, i64 32, !26, i64 64, !24, i64 96, !26, i64 104, !26, i64 136, !26, i64 168, !24, i64 200, !21, i64 204, !21, i64 208, !21, i64 212, !21, i64 216, !20, i64 220, !7, i64 232, !6, i64 240, !6, i64 248}
!31 = !{!"nk_style_property", !26, i64 0, !26, i64 32, !26, i64 64, !24, i64 96, !24, i64 100, !24, i64 104, !24, i64 108, !10, i64 112, !10, i64 116, !21, i64 120, !21, i64 124, !20, i64 128, !32, i64 136, !25, i64 936, !25, i64 1112, !7, i64 1288, !6, i64 1296, !6, i64 1304}
!32 = !{!"nk_style_edit", !26, i64 0, !26, i64 32, !26, i64 64, !24, i64 96, !33, i64 104, !24, i64 720, !24, i64 724, !24, i64 728, !24, i64 732, !24, i64 736, !24, i64 740, !24, i64 744, !24, i64 748, !24, i64 752, !24, i64 756, !24, i64 760, !21, i64 764, !21, i64 768, !21, i64 772, !20, i64 776, !20, i64 784, !21, i64 792}
!33 = !{!"nk_style_scrollbar", !26, i64 0, !26, i64 32, !26, i64 64, !24, i64 96, !26, i64 104, !26, i64 136, !26, i64 168, !24, i64 200, !21, i64 204, !21, i64 208, !21, i64 212, !21, i64 216, !20, i64 220, !10, i64 228, !25, i64 232, !25, i64 408, !10, i64 584, !10, i64 588, !7, i64 592, !6, i64 600, !6, i64 608}
!34 = !{!"nk_style_chart", !26, i64 0, !24, i64 32, !24, i64 36, !24, i64 40, !21, i64 44, !21, i64 48, !20, i64 52}
!35 = !{!"nk_style_tab", !26, i64 0, !24, i64 32, !24, i64 36, !25, i64 40, !25, i64 216, !25, i64 392, !25, i64 568, !10, i64 744, !10, i64 748, !21, i64 752, !21, i64 756, !21, i64 760, !20, i64 764, !20, i64 772}
!36 = !{!"nk_style_combo", !26, i64 0, !26, i64 32, !26, i64 64, !24, i64 96, !24, i64 100, !24, i64 104, !24, i64 108, !24, i64 112, !24, i64 116, !24, i64 120, !25, i64 128, !10, i64 304, !10, i64 308, !10, i64 312, !21, i64 316, !21, i64 320, !20, i64 324, !20, i64 332, !20, i64 340}
!37 = !{!"nk_style_window", !38, i64 0, !26, i64 504, !24, i64 536, !24, i64 540, !24, i64 544, !24, i64 548, !24, i64 552, !24, i64 556, !24, i64 560, !24, i64 564, !26, i64 568, !21, i64 600, !21, i64 604, !21, i64 608, !21, i64 612, !21, i64 616, !21, i64 620, !21, i64 624, !21, i64 628, !21, i64 632, !20, i64 636, !20, i64 644, !20, i64 652, !20, i64 660, !20, i64 668, !20, i64 676, !20, i64 684, !20, i64 692, !20, i64 700, !20, i64 708}
!38 = !{!"nk_style_window_header", !26, i64 0, !26, i64 32, !26, i64 64, !25, i64 96, !25, i64 272, !10, i64 448, !10, i64 452, !10, i64 456, !24, i64 460, !24, i64 464, !24, i64 468, !10, i64 472, !20, i64 476, !20, i64 484, !20, i64 492}
!39 = !{!"nk_buffer", !7, i64 0, !40, i64 32, !10, i64 56, !41, i64 64, !21, i64 80, !42, i64 88, !42, i64 96, !42, i64 104, !42, i64 112}
!40 = !{!"nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"nk_memory", !6, i64 0, !42, i64 8}
!42 = !{!"long", !7, i64 0}
!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, !12, i64 2608}
!45 = !{!"nk_config_stack_style_item", !10, i64 0, !7, i64 8}
!46 = !{!"nk_config_stack_float", !10, i64 0, !7, i64 8}
!47 = !{!"nk_config_stack_vec2", !10, i64 0, !7, i64 8}
!48 = !{!"nk_config_stack_flags", !10, i64 0, !7, i64 8}
!49 = !{!"nk_config_stack_color", !10, i64 0, !7, i64 8}
!50 = !{!"nk_config_stack_user_font", !10, i64 0, !7, i64 8}
!51 = !{!"nk_draw_list", !52, i64 0, !7, i64 16, !53, i64 112, !6, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !42, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236}
!52 = !{!"nk_rect", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12}
!53 = !{!"nk_convert_config", !21, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !54, i64 24, !6, i64 40, !42, i64 48, !42, i64 56}
!54 = !{!"nk_draw_null_texture", !7, i64 0, !20, i64 8}
!55 = !{!"nk_text_edit", !43, i64 0, !56, i64 24, !6, i64 152, !20, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !7, i64 184, !7, i64 185, !7, i64 186, !21, i64 188, !57, i64 192}
!56 = !{!"nk_str", !39, i64 0, !10, 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, !52, i64 8, !10, i64 24, !7, i64 32, !42, i64 40, !42, i64 48, !42, i64 56}
!60 = !{!"nk_pool", !40, i64 0, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !10, i64 48, !42, i64 56, !42, i64 64}
!61 = !{!14, !10, i64 8}


; 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_config_stack_button_behavior_element = type { ptr, i32 }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__.nk_button_push_behavior = external hidden unnamed_addr constant [74 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [93 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @nk_button_push_behavior(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.2, i32 noundef 20082, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_button_push_behavior) #2
  unreachable

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 10664
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp slt i32 %6, 8
  br i1 %7, label %9, label %8

8:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.2, i32 noundef 20086, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_button_push_behavior) #2
  unreachable

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 10672
  %11 = add nsw i32 %6, 1
  store i32 %11, ptr %5, align 8, !tbaa !5
  %12 = sext i32 %6 to i64
  %13 = getelementptr inbounds [8 x %struct.nk_config_stack_button_behavior_element], ptr %10, i64 0, i64 %12
  %14 = getelementptr inbounds i8, ptr %0, i64 8052
  store ptr %14, ptr %13, align 8, !tbaa !10
  %15 = load i32, ptr %14, align 4, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %15, ptr %16, align 8, !tbaa !59
  store i32 %1, ptr %14, align 4, !tbaa !13
  ret i32 1
}

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


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