; LLVM IR from Eukky/TRender :: lib/imgui/imgui.ll (ZN7ImGuiIOC2Ev)

; 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.ImVec2 = type { float, float }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [21 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i8, [512 x i8], [17 x i16], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x float], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float] }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ImGuiIOC2Ev(ptr noundef nonnull align 8 dereferenceable(5400) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  %13 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 2
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13)
  %14 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 18
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %15 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 19
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %16 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 20
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %17 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 29
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %17)
  %18 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 52
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %19 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 53
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %19)
  %20 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 54
  %21 = getelementptr inbounds [5 x %struct.ImVec2], ptr %20, i32 0, i32 0
  %22 = getelementptr inbounds %struct.ImVec2, ptr %21, i64 5
  br label %23

23:                                               ; preds = %23, %1
  %24 = phi ptr [ %21, %1 ], [ %25, %23 ]
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %24)
  %25 = getelementptr inbounds %struct.ImVec2, ptr %24, i64 1
  %26 = icmp eq ptr %25, %22
  br i1 %26, label %27, label %23

27:                                               ; preds = %23
  %28 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 62
  %29 = getelementptr inbounds [5 x %struct.ImVec2], ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds %struct.ImVec2, ptr %29, i64 5
  br label %31

31:                                               ; preds = %31, %27
  %32 = phi ptr [ %29, %27 ], [ %33, %31 ]
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %32)
  %33 = getelementptr inbounds %struct.ImVec2, ptr %32, i64 1
  %34 = icmp eq ptr %33, %30
  br i1 %34, label %35, label %31

35:                                               ; preds = %31
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 5400, i1 false)
  %36 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 0
  store i32 0, ptr %36, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 1
  store i32 0, ptr %37, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef -1.000000e+00, float noundef -1.000000e+00)
  %38 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %39 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 3
  store float 0x3F91111120000000, ptr %39, align 8, !tbaa !18
  %40 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 4
  store float 5.000000e+00, ptr %40, align 4, !tbaa !19
  %41 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 5
  store ptr @.str, ptr %41, align 8, !tbaa !20
  %42 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 6
  store ptr @.str.1, ptr %42, align 8, !tbaa !21
  %43 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 7
  store float 0x3FD3333340000000, ptr %43, align 8, !tbaa !22
  %44 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 8
  store float 6.000000e+00, ptr %44, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !24
  br label %45

45:                                               ; preds = %54, %35
  %46 = load i32, ptr %4, align 4, !tbaa !24
  %47 = icmp slt i32 %46, 21
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %57

49:                                               ; preds = %45
  %50 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 10
  %51 = load i32, ptr %4, align 4, !tbaa !24
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [21 x i32], ptr %50, i64 0, i64 %52
  store i32 -1, ptr %53, align 4, !tbaa !24
  br label %54

54:                                               ; preds = %49
  %55 = load i32, ptr %4, align 4, !tbaa !24
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %4, align 4, !tbaa !24
  br label %45, !llvm.loop !25

57:                                               ; preds = %48
  %58 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 11
  store float 2.500000e-01, ptr %58, align 8, !tbaa !27
  %59 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 12
  store float 0x3FA99999A0000000, ptr %59, align 4, !tbaa !28
  %60 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 13
  store ptr null, ptr %60, align 8, !tbaa !29
  %61 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 14
  store ptr null, ptr %61, align 8, !tbaa !30
  %62 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 15
  store float 1.000000e+00, ptr %62, align 8, !tbaa !31
  %63 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 17
  store ptr null, ptr %63, align 8, !tbaa !32
  %64 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 16
  store i8 0, ptr %64, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %65 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %65, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %66 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %66, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !16
  %67 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 4 %66, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %68 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 21
  store i8 0, ptr %68, align 8, !tbaa !34
  %69 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 22
  store i8 1, ptr %69, align 1, !tbaa !35
  %70 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 23
  store ptr @_ZL30GetClipboardTextFn_DefaultImplPv, ptr %70, align 8, !tbaa !36
  %71 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 24
  store ptr @_ZL30SetClipboardTextFn_DefaultImplPvPKc, ptr %71, align 8, !tbaa !37
  %72 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 25
  store ptr null, ptr %72, align 8, !tbaa !38
  %73 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 26
  store ptr @_ZL34ImeSetInputScreenPosFn_DefaultImplii, ptr %73, align 8, !tbaa !39
  %74 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 27
  store ptr null, ptr %74, align 8, !tbaa !40
  %75 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 28
  store ptr null, ptr %75, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  %76 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 29
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %76, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  %77 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 53
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %78 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 9
  store float 6.000000e+00, ptr %78, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !24
  br label %79

79:                                               ; preds = %92, %57
  %80 = load i32, ptr %9, align 4, !tbaa !24
  %81 = icmp slt i32 %80, 5
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %95

83:                                               ; preds = %79
  %84 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 61
  %85 = load i32, ptr %9, align 4, !tbaa !24
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [5 x float], ptr %84, i64 0, i64 %86
  store float -1.000000e+00, ptr %87, align 4, !tbaa !17
  %88 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 60
  %89 = load i32, ptr %9, align 4, !tbaa !24
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [5 x float], ptr %88, i64 0, i64 %90
  store float -1.000000e+00, ptr %91, align 4, !tbaa !17
  br label %92

92:                                               ; preds = %83
  %93 = load i32, ptr %9, align 4, !tbaa !24
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %9, align 4, !tbaa !24
  br label %79, !llvm.loop !43

95:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !24
  br label %96

96:                                               ; preds = %109, %95
  %97 = load i32, ptr %10, align 4, !tbaa !24
  %98 = icmp slt i32 %97, 512
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %112

100:                                              ; preds = %96
  %101 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 65
  %102 = load i32, ptr %10, align 4, !tbaa !24
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [512 x float], ptr %101, i64 0, i64 %103
  store float -1.000000e+00, ptr %104, align 4, !tbaa !17
  %105 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 64
  %106 = load i32, ptr %10, align 4, !tbaa !24
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [512 x float], ptr %105, i64 0, i64 %107
  store float -1.000000e+00, ptr %108, align 4, !tbaa !17
  br label %109

109:                                              ; preds = %100
  %110 = load i32, ptr %10, align 4, !tbaa !24
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %10, align 4, !tbaa !24
  br label %96, !llvm.loop !44

112:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !24
  br label %113

113:                                              ; preds = %122, %112
  %114 = load i32, ptr %11, align 4, !tbaa !24
  %115 = icmp slt i32 %114, 21
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %125

117:                                              ; preds = %113
  %118 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 66
  %119 = load i32, ptr %11, align 4, !tbaa !24
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [21 x float], ptr %118, i64 0, i64 %120
  store float -1.000000e+00, ptr %121, align 4, !tbaa !17
  br label %122

122:                                              ; preds = %117
  %123 = load i32, ptr %11, align 4, !tbaa !24
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %11, align 4, !tbaa !24
  br label %113, !llvm.loop !45

125:                                              ; preds = %116
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL30GetClipboardTextFn_DefaultImplPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL30SetClipboardTextFn_DefaultImplPvPKc(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL34ImeSetInputScreenPosFn_DefaultImplii(i32 noundef, i32 noundef) #0

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !7, i64 52, !13, i64 136, !13, i64 140, !6, i64 144, !6, i64 152, !13, i64 160, !14, i64 164, !6, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !14, i64 200, !14, i64 201, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !12, i64 256, !7, i64 264, !13, i64 272, !13, i64 276, !14, i64 280, !14, i64 281, !14, i64 282, !14, i64 283, !14, i64 284, !7, i64 285, !7, i64 798, !7, i64 832, !14, i64 916, !14, i64 917, !14, i64 918, !14, i64 919, !14, i64 920, !14, i64 921, !14, i64 922, !13, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !12, i64 940, !12, i64 948, !7, i64 956, !7, i64 996, !7, i64 1016, !7, i64 1021, !7, i64 1026, !7, i64 1031, !7, i64 1036, !7, i64 1056, !7, i64 1076, !7, i64 1116, !7, i64 1136, !7, i64 3184, !7, i64 5232, !7, i64 5316}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!10, !11, i64 4}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !17}
!17 = !{!13, !13, i64 0}
!18 = !{!10, !13, i64 16}
!19 = !{!10, !13, i64 20}
!20 = !{!10, !6, i64 24}
!21 = !{!10, !6, i64 32}
!22 = !{!10, !13, i64 40}
!23 = !{!10, !13, i64 44}
!24 = !{!11, !11, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!10, !13, i64 136}
!28 = !{!10, !13, i64 140}
!29 = !{!10, !6, i64 144}
!30 = !{!10, !6, i64 152}
!31 = !{!10, !13, i64 160}
!32 = !{!10, !6, i64 168}
!33 = !{!10, !14, i64 164}
!34 = !{!10, !14, i64 200}
!35 = !{!10, !14, i64 201}
!36 = !{!10, !6, i64 208}
!37 = !{!10, !6, i64 216}
!38 = !{!10, !6, i64 224}
!39 = !{!10, !6, i64 232}
!40 = !{!10, !6, i64 240}
!41 = !{!10, !6, i64 248}
!42 = !{!10, !13, i64 48}
!43 = distinct !{!43, !26}
!44 = distinct !{!44, !26}
!45 = distinct !{!45, !26}


; 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.ImVec2 = type { float, float }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7ImGuiIOC2Ev(ptr noundef nonnull align 8 dereferenceable(5400) %0) unnamed_addr #0 align 2 {
.preheader25.preheader:
  %1 = alloca %struct.ImVec2, align 8
  %2 = alloca %struct.ImVec2, align 8
  %3 = alloca %struct.ImVec2, align 8
  %4 = alloca %struct.ImVec2, align 8
  %5 = alloca %struct.ImVec2, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 940
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %12 = getelementptr inbounds i8, ptr %0, i64 948
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12)
  %.ptr = getelementptr inbounds i8, ptr %0, i64 956
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 964
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 972
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 980
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %0, i64 988
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.4)
  %.ptr21 = getelementptr inbounds i8, ptr %0, i64 1076
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr21)
  %.ptr21.1 = getelementptr inbounds i8, ptr %0, i64 1084
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr21.1)
  %.ptr21.2 = getelementptr inbounds i8, ptr %0, i64 1092
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr21.2)
  %.ptr21.3 = getelementptr inbounds i8, ptr %0, i64 1100
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr21.3)
  %.ptr21.4 = getelementptr inbounds i8, ptr %0, i64 1108
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr21.4)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(5400) %0, i8 0, i64 5400, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef -1.000000e+00, float noundef -1.000000e+00)
  %13 = load i64, ptr %1, align 8
  store i64 %13, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  store <2 x float> <float 0x3F91111120000000, float 5.000000e+00>, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr @.str, ptr %15, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr @.str.1, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  store <2 x float> <float 0x3FD3333340000000, float 6.000000e+00>, ptr %17, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 52
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(84) %18, i8 -1, i64 84, i1 false), !tbaa !16
  %19 = getelementptr inbounds i8, ptr %0, i64 136
  store <2 x float> <float 2.500000e-01, float 0x3FA99999A0000000>, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  %21 = getelementptr inbounds i8, ptr %0, i64 160
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %20, i8 0, i64 16, i1 false)
  store float 1.000000e+00, ptr %21, align 8, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %0, i64 168
  store ptr null, ptr %22, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %0, i64 164
  store i8 0, ptr %23, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %24 = load i64, ptr %2, align 8
  store i64 %24, ptr %7, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %25 = load i64, ptr %3, align 8
  store i64 %25, ptr %9, align 8
  store i64 %25, ptr %8, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %26 = getelementptr inbounds i8, ptr %0, i64 200
  store i8 0, ptr %26, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %0, i64 201
  store i8 1, ptr %27, align 1, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %0, i64 208
  store ptr @_ZL30GetClipboardTextFn_DefaultImplPv, ptr %28, align 8, !tbaa !22
  %29 = getelementptr inbounds i8, ptr %0, i64 216
  store ptr @_ZL30SetClipboardTextFn_DefaultImplPvPKc, ptr %29, align 8, !tbaa !23
  %30 = getelementptr inbounds i8, ptr %0, i64 224
  store ptr null, ptr %30, align 8, !tbaa !24
  %31 = getelementptr inbounds i8, ptr %0, i64 232
  store ptr @_ZL34ImeSetInputScreenPosFn_DefaultImplii, ptr %31, align 8, !tbaa !25
  %32 = getelementptr inbounds i8, ptr %0, i64 240
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %32, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  %33 = load i64, ptr %4, align 8
  store i64 %33, ptr %10, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  %34 = load i64, ptr %5, align 8
  store i64 %34, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %35 = getelementptr inbounds i8, ptr %0, i64 48
  store float 6.000000e+00, ptr %35, align 8, !tbaa !26
  %36 = getelementptr inbounds i8, ptr %0, i64 1036
  %37 = getelementptr inbounds i8, ptr %0, i64 1068
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %36, align 4, !tbaa !5
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %0, i64 1052
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %0, i64 3184
  %40 = getelementptr inbounds i8, ptr %0, i64 1136
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %.preheader25.preheader
  %index = phi i64 [ 0, %.preheader25.preheader ], [ %index.next.1, %vector.body ]
  %41 = getelementptr inbounds [512 x float], ptr %39, i64 0, i64 %index
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %41, align 8, !tbaa !5
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %42, align 8, !tbaa !5
  %43 = getelementptr inbounds [512 x float], ptr %40, i64 0, i64 %index
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %43, align 8, !tbaa !5
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %44, align 8, !tbaa !5
  %index.next = or disjoint i64 %index, 8
  %45 = getelementptr inbounds [512 x float], ptr %39, i64 0, i64 %index.next
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %45, align 8, !tbaa !5
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %46, align 8, !tbaa !5
  %47 = getelementptr inbounds [512 x float], ptr %40, i64 0, i64 %index.next
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %47, align 8, !tbaa !5
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %48, align 8, !tbaa !5
  %index.next.1 = add nuw nsw i64 %index, 16
  %49 = icmp eq i64 %index.next.1, 512
  br i1 %49, label %.preheader, label %vector.body, !llvm.loop !27

.preheader:                                       ; preds = %vector.body
  %50 = getelementptr inbounds i8, ptr %0, i64 5232
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %50, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %0, i64 5248
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %51, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %0, i64 5264
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %52, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %0, i64 5280
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %53, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %0, i64 5296
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %54, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %0, i64 5312
  store float -1.000000e+00, ptr %55, align 8, !tbaa !5
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL30GetClipboardTextFn_DefaultImplPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL30SetClipboardTextFn_DefaultImplPvPKc(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL34ImeSetInputScreenPosFn_DefaultImplii(i32 noundef, i32 noundef) #0

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 24}
!10 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !6, i64 16, !6, i64 20, !13, i64 24, !13, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !7, i64 52, !6, i64 136, !6, i64 140, !13, i64 144, !13, i64 152, !6, i64 160, !14, i64 164, !13, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !14, i64 200, !14, i64 201, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !12, i64 256, !7, i64 264, !6, i64 272, !6, i64 276, !14, i64 280, !14, i64 281, !14, i64 282, !14, i64 283, !14, i64 284, !7, i64 285, !7, i64 798, !7, i64 832, !14, i64 916, !14, i64 917, !14, i64 918, !14, i64 919, !14, i64 920, !14, i64 921, !14, i64 922, !6, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !12, i64 940, !12, i64 948, !7, i64 956, !7, i64 996, !7, i64 1016, !7, i64 1021, !7, i64 1026, !7, i64 1031, !7, i64 1036, !7, i64 1056, !7, i64 1076, !7, i64 1116, !7, i64 1136, !7, i64 3184, !7, i64 5232, !7, i64 5316}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!10, !13, i64 32}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !6, i64 160}
!18 = !{!10, !13, i64 168}
!19 = !{!10, !14, i64 164}
!20 = !{!10, !14, i64 200}
!21 = !{!10, !14, i64 201}
!22 = !{!10, !13, i64 208}
!23 = !{!10, !13, i64 216}
!24 = !{!10, !13, i64 224}
!25 = !{!10, !13, i64 232}
!26 = !{!10, !6, i64 48}
!27 = distinct !{!27, !28, !29, !30}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!"llvm.loop.isvectorized", i32 1}
!30 = !{!"llvm.loop.unroll.runtime.disable"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass