; LLVM IR from hbatagelo/abcg :: abcg/external/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, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, float, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i32, [652 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }

@.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(14280) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, 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 19
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %15 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 54
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %16 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 59
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %17 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 68
  %18 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 70
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %19 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 71
  %20 = getelementptr inbounds [5 x %struct.ImVec2], ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds %struct.ImVec2, ptr %20, i64 5
  br label %22

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

26:                                               ; preds = %22
  %27 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 89
  call void @_ZN8ImVectorItEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 14280, i1 false)
  %28 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 0
  store i32 0, ptr %28, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 1
  store i32 0, ptr %29, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef -1.000000e+00, float noundef -1.000000e+00)
          to label %30 unwind label %42

30:                                               ; preds = %26
  %31 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %32 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 3
  store float 0x3F91111120000000, ptr %32, align 8, !tbaa !20
  %33 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 4
  store float 5.000000e+00, ptr %33, align 4, !tbaa !21
  %34 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 5
  store ptr @.str, ptr %34, align 8, !tbaa !22
  %35 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 6
  store ptr @.str.1, ptr %35, align 8, !tbaa !23
  %36 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 7
  store float 0x3FD3333340000000, ptr %36, align 8, !tbaa !24
  %37 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 8
  store float 6.000000e+00, ptr %37, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !26
  br label %38

38:                                               ; preds = %51, %30
  %39 = load i32, ptr %6, align 4, !tbaa !26
  %40 = icmp slt i32 %39, 652
  br i1 %40, label %46, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %54

42:                                               ; preds = %26
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %4, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %138

46:                                               ; preds = %38
  %47 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 55
  %48 = load i32, ptr %6, align 4, !tbaa !26
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [652 x i32], ptr %47, i64 0, i64 %49
  store i32 -1, ptr %50, align 4, !tbaa !26
  br label %51

51:                                               ; preds = %46
  %52 = load i32, ptr %6, align 4, !tbaa !26
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %6, align 4, !tbaa !26
  br label %38, !llvm.loop !27

54:                                               ; preds = %41
  %55 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 10
  store float 0x3FD19999A0000000, ptr %55, align 4, !tbaa !29
  %56 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 11
  store float 0x3FA99999A0000000, ptr %56, align 8, !tbaa !30
  %57 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 12
  store float 0x3FD3333340000000, ptr %57, align 4, !tbaa !31
  %58 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 13
  store float 0x3FB99999A0000000, ptr %58, align 8, !tbaa !32
  %59 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 14
  store ptr null, ptr %59, align 8, !tbaa !33
  %60 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 15
  store ptr null, ptr %60, align 8, !tbaa !34
  %61 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 16
  store float 1.000000e+00, ptr %61, align 8, !tbaa !35
  %62 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 18
  store ptr null, ptr %62, align 8, !tbaa !36
  %63 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 17
  store i8 0, ptr %63, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %64 unwind label %91

64:                                               ; preds = %54
  %65 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %65, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %66 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 20
  store i8 0, ptr %66, align 8, !tbaa !38
  %67 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 21
  store i8 0, ptr %67, align 1, !tbaa !39
  %68 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 22
  store i8 1, ptr %68, align 2, !tbaa !40
  %69 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 23
  store i8 1, ptr %69, align 1, !tbaa !41
  %70 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 24
  store i8 0, ptr %70, align 4, !tbaa !42
  %71 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 25
  store i8 0, ptr %71, align 1, !tbaa !43
  %72 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 26
  store i8 1, ptr %72, align 2, !tbaa !44
  %73 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 27
  store i8 0, ptr %73, align 1, !tbaa !45
  %74 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 28
  store float 6.000000e+01, ptr %74, align 8, !tbaa !46
  %75 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 29
  store i8 0, ptr %75, align 4, !tbaa !47
  %76 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 30
  store i8 0, ptr %76, align 1, !tbaa !48
  %77 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 32
  store ptr null, ptr %77, align 8, !tbaa !49
  %78 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 31
  store ptr null, ptr %78, align 8, !tbaa !50
  %79 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 35
  store ptr null, ptr %79, align 8, !tbaa !51
  %80 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 34
  store ptr null, ptr %80, align 8, !tbaa !52
  %81 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 33
  store ptr null, ptr %81, align 8, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
          to label %82 unwind label %95

82:                                               ; preds = %64
  %83 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 59
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %83, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
          to label %84 unwind label %99

84:                                               ; preds = %82
  %85 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 70
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %86 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 9
  store float 6.000000e+00, ptr %86, align 8, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !26
  br label %87

87:                                               ; preds = %112, %84
  %88 = load i32, ptr %10, align 4, !tbaa !26
  %89 = icmp slt i32 %88, 5
  br i1 %89, label %103, label %90

90:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %115

91:                                               ; preds = %54
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %4, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %138

95:                                               ; preds = %64
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %4, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %138

99:                                               ; preds = %82
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %4, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %138

103:                                              ; preds = %87
  %104 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 81
  %105 = load i32, ptr %10, align 4, !tbaa !26
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [5 x float], ptr %104, i64 0, i64 %106
  store float -1.000000e+00, ptr %107, align 4, !tbaa !19
  %108 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 80
  %109 = load i32, ptr %10, align 4, !tbaa !26
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [5 x float], ptr %108, i64 0, i64 %110
  store float -1.000000e+00, ptr %111, align 4, !tbaa !19
  br label %112

112:                                              ; preds = %103
  %113 = load i32, ptr %10, align 4, !tbaa !26
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %10, align 4, !tbaa !26
  br label %87, !llvm.loop !55

115:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !26
  br label %116

116:                                              ; preds = %131, %115
  %117 = load i32, ptr %11, align 4, !tbaa !26
  %118 = icmp slt i32 %117, 652
  br i1 %118, label %120, label %119

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

120:                                              ; preds = %116
  %121 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 68
  %122 = load i32, ptr %11, align 4, !tbaa !26
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %121, i64 0, i64 %123
  %125 = getelementptr inbounds %struct.ImGuiKeyData, ptr %124, i32 0, i32 2
  store float -1.000000e+00, ptr %125, align 8, !tbaa !56
  %126 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 68
  %127 = load i32, ptr %11, align 4, !tbaa !26
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %126, i64 0, i64 %128
  %130 = getelementptr inbounds %struct.ImGuiKeyData, ptr %129, i32 0, i32 1
  store float -1.000000e+00, ptr %130, align 4, !tbaa !58
  br label %131

131:                                              ; preds = %120
  %132 = load i32, ptr %11, align 4, !tbaa !26
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %11, align 4, !tbaa !26
  br label %116, !llvm.loop !59

134:                                              ; preds = %119
  %135 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 85
  store i8 1, ptr %135, align 1, !tbaa !60
  %136 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 86
  store i8 -1, ptr %136, align 2, !tbaa !61
  %137 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 87
  store i8 1, ptr %137, align 1, !tbaa !62
  ret void

138:                                              ; preds = %99, %95, %91, %42
  call void @_ZN8ImVectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %4, align 8
  %141 = load i32, ptr %5, align 4
  %142 = insertvalue { ptr, i32 } poison, ptr %140, 0
  %143 = insertvalue { ptr, i32 } %142, i32 %141, 1
  resume { ptr, i32 } %143
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !14, i64 92, !6, i64 96, !12, i64 104, !14, i64 112, !14, i64 113, !14, i64 114, !14, i64 115, !14, i64 116, !14, i64 117, !14, i64 118, !14, i64 119, !13, i64 120, !14, i64 124, !14, i64 125, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !14, i64 208, !14, i64 209, !14, i64 210, !14, i64 211, !14, i64 212, !14, i64 213, !14, i64 214, !13, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !12, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !6, i64 3576, !12, i64 3584, !7, i64 3592, !13, i64 3600, !13, i64 3604, !14, i64 3608, !14, i64 3609, !14, i64 3610, !14, i64 3611, !11, i64 3612, !7, i64 3616, !14, i64 14048, !12, i64 14052, !7, i64 14060, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !7, i64 14192, !7, i64 14212, !7, i64 14232, !13, i64 14252, !14, i64 14256, !14, i64 14257, !7, i64 14258, !14, i64 14259, !15, i64 14260, !16, i64 14264}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!17 = !{!10, !11, i64 4}
!18 = !{i64 0, i64 4, !19, i64 4, i64 4, !19}
!19 = !{!13, !13, i64 0}
!20 = !{!10, !13, i64 16}
!21 = !{!10, !13, i64 20}
!22 = !{!10, !6, i64 24}
!23 = !{!10, !6, i64 32}
!24 = !{!10, !13, i64 40}
!25 = !{!10, !13, i64 44}
!26 = !{!11, !11, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!10, !13, i64 52}
!30 = !{!10, !13, i64 56}
!31 = !{!10, !13, i64 60}
!32 = !{!10, !13, i64 64}
!33 = !{!10, !6, i64 72}
!34 = !{!10, !6, i64 80}
!35 = !{!10, !13, i64 88}
!36 = !{!10, !6, i64 96}
!37 = !{!10, !14, i64 92}
!38 = !{!10, !14, i64 112}
!39 = !{!10, !14, i64 113}
!40 = !{!10, !14, i64 114}
!41 = !{!10, !14, i64 115}
!42 = !{!10, !14, i64 116}
!43 = !{!10, !14, i64 117}
!44 = !{!10, !14, i64 118}
!45 = !{!10, !14, i64 119}
!46 = !{!10, !13, i64 120}
!47 = !{!10, !14, i64 124}
!48 = !{!10, !14, i64 125}
!49 = !{!10, !6, i64 136}
!50 = !{!10, !6, i64 128}
!51 = !{!10, !6, i64 160}
!52 = !{!10, !6, i64 152}
!53 = !{!10, !6, i64 144}
!54 = !{!10, !13, i64 48}
!55 = distinct !{!55, !28}
!56 = !{!57, !13, i64 8}
!57 = !{!"_ZTS12ImGuiKeyData", !14, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!58 = !{!57, !13, i64 4}
!59 = distinct !{!59, !28}
!60 = !{!10, !14, i64 14257}
!61 = !{!10, !7, i64 14258}
!62 = !{!10, !14, i64 14259}


; 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 }
%struct.ImGuiKeyData = type { i8, float, 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(14280) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
.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 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 240
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 3584
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 14052
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %.ptr = getelementptr inbounds i8, ptr %0, i64 14060
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 14068
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 14076
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 14084
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %0, i64 14092
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.4)
  %10 = getelementptr inbounds i8, ptr %0, i64 14264
  tail call void @_ZN8ImVectorItEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(14280) %0, i8 0, i64 14280, 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)
  %11 = load i64, ptr %1, align 8
  store i64 %11, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  store <2 x float> <float 0x3F91111120000000, float 5.000000e+00>, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr @.str, ptr %13, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr @.str.1, ptr %14, align 8, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  store <2 x float> <float 0x3FD3333340000000, float 6.000000e+00>, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 248
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(2608) %16, i8 -1, i64 2608, i1 false), !tbaa !18
  %17 = getelementptr inbounds i8, ptr %0, i64 52
  store <4 x float> <float 0x3FD19999A0000000, float 0x3FA99999A0000000, float 0x3FD3333340000000, float 0x3FB99999A0000000>, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  %19 = getelementptr inbounds i8, ptr %0, i64 88
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, i8 0, i64 16, i1 false)
  store float 1.000000e+00, ptr %19, align 8, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr null, ptr %20, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %0, i64 92
  store i8 0, ptr %21, align 4, !tbaa !21
  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)
  %22 = load i64, ptr %2, align 8
  store i64 %22, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %23 = getelementptr inbounds i8, ptr %0, i64 112
  store <8 x i8> <i8 0, i8 0, i8 1, i8 1, i8 0, i8 0, i8 1, i8 0>, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %0, i64 120
  store float 6.000000e+01, ptr %24, align 8, !tbaa !23
  %25 = getelementptr inbounds i8, ptr %0, i64 124
  store i8 0, ptr %25, align 4, !tbaa !24
  %26 = getelementptr inbounds i8, ptr %0, i64 125
  store i8 0, ptr %26, align 1, !tbaa !25
  %27 = getelementptr inbounds i8, ptr %0, i64 128
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %27, i8 0, i64 40, i1 false)
  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 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  %28 = load i64, ptr %3, align 8
  store i64 %28, ptr %8, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  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)
  %29 = load i64, ptr %4, align 8
  store i64 %29, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  store float 6.000000e+00, ptr %30, align 8, !tbaa !26
  %31 = getelementptr inbounds i8, ptr %0, i64 14192
  %32 = getelementptr inbounds i8, ptr %0, i64 14224
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %31, align 8, !tbaa !5
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %0, i64 14208
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %33, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %0, i64 3616
  br label %39

35:                                               ; preds = %39
  %36 = getelementptr inbounds i8, ptr %0, i64 14257
  store i8 1, ptr %36, align 1, !tbaa !27
  %37 = getelementptr inbounds i8, ptr %0, i64 14258
  store i8 -1, ptr %37, align 2, !tbaa !28
  %38 = getelementptr inbounds i8, ptr %0, i64 14259
  store i8 1, ptr %38, align 1, !tbaa !29
  ret void

39:                                               ; preds = %39, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next.3, %39 ]
  %40 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %34, i64 0, i64 %indvars.iv, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %40, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %41 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %34, i64 0, i64 %indvars.iv.next, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %41, align 4, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %42 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %34, i64 0, i64 %indvars.iv.next.1, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %42, align 4, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %43 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %34, i64 0, i64 %indvars.iv.next.2, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %43, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, 652
  br i1 %exitcond.not.3, label %35, label %39, !llvm.loop !30
}

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

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

declare i32 @__gxx_personality_v0(...)

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !13, i64 72, !13, i64 80, !6, i64 88, !14, i64 92, !13, i64 96, !12, i64 104, !14, i64 112, !14, i64 113, !14, i64 114, !14, i64 115, !14, i64 116, !14, i64 117, !14, i64 118, !14, i64 119, !6, i64 120, !14, i64 124, !14, i64 125, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !14, i64 208, !14, i64 209, !14, i64 210, !14, i64 211, !14, i64 212, !14, i64 213, !14, i64 214, !6, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !12, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !13, i64 3576, !12, i64 3584, !7, i64 3592, !6, i64 3600, !6, i64 3604, !14, i64 3608, !14, i64 3609, !14, i64 3610, !14, i64 3611, !11, i64 3612, !7, i64 3616, !14, i64 14048, !12, i64 14052, !7, i64 14060, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !7, i64 14192, !7, i64 14212, !7, i64 14232, !6, i64 14252, !14, i64 14256, !14, i64 14257, !7, i64 14258, !14, i64 14259, !15, i64 14260, !16, i64 14264}
!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 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !13, i64 8}
!17 = !{!10, !13, i64 32}
!18 = !{!11, !11, i64 0}
!19 = !{!10, !6, i64 88}
!20 = !{!10, !13, i64 96}
!21 = !{!10, !14, i64 92}
!22 = !{!14, !14, i64 0}
!23 = !{!10, !6, i64 120}
!24 = !{!10, !14, i64 124}
!25 = !{!10, !14, i64 125}
!26 = !{!10, !6, i64 48}
!27 = !{!10, !14, i64 14257}
!28 = !{!10, !7, i64 14258}
!29 = !{!10, !14, i64 14259}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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