; LLVM IR from xhub/reshop :: gui/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, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, %struct.ImVec2, ptr, %struct.ImVec2, [5 x i8], float, float, i32, i8, i8, i8, i8, i32, [154 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], i8, i8, [5 x float], [5 x float], [5 x float], float, i8, i8, i16, %struct.ImVector, ptr, ptr, ptr }
%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(2976) %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 %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 2
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12)
  %13 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 12
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13)
  %14 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 63
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %15 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 65
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %16 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 75
  %17 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 77
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %17)
  %18 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 78
  %19 = getelementptr inbounds [5 x %struct.ImVec2], ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds %struct.ImVec2, ptr %19, i64 5
  br label %21

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

25:                                               ; preds = %21
  %26 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 96
  call void @_ZN8ImVectorItEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 2976, i1 false)
  %27 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 0
  store i32 0, ptr %27, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 1
  store i32 0, ptr %28, align 4, !tbaa !18
  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 %29 unwind label %87

29:                                               ; preds = %25
  %30 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %31 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 3
  store float 0x3F91111120000000, ptr %31, align 8, !tbaa !21
  %32 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 4
  store float 5.000000e+00, ptr %32, align 4, !tbaa !22
  %33 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 5
  store ptr @.str, ptr %33, align 8, !tbaa !23
  %34 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 6
  store ptr @.str.1, ptr %34, align 8, !tbaa !24
  %35 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 7
  store ptr null, ptr %35, align 8, !tbaa !25
  %36 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 8
  store ptr null, ptr %36, align 8, !tbaa !26
  %37 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 9
  store float 1.000000e+00, ptr %37, align 8, !tbaa !27
  %38 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 11
  store ptr null, ptr %38, align 8, !tbaa !28
  %39 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 10
  store i8 0, ptr %39, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %40 unwind label %91

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

78:                                               ; preds = %40
  %79 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 65
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %79, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  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 %80 unwind label %99

80:                                               ; preds = %78
  %81 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 77
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %82 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 69
  store i32 0, ptr %82, align 8, !tbaa !66
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !67
  br label %83

83:                                               ; preds = %112, %80
  %84 = load i32, ptr %9, align 4, !tbaa !67
  %85 = icmp slt i32 %84, 5
  br i1 %85, label %103, label %86

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

87:                                               ; preds = %25
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %4, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %136

91:                                               ; preds = %29
  %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 %6) #6
  br label %136

95:                                               ; preds = %40
  %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 %7) #6
  br label %136

99:                                               ; preds = %78
  %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 %8) #6
  br label %136

103:                                              ; preds = %83
  %104 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 90
  %105 = load i32, ptr %9, align 4, !tbaa !67
  %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 !20
  %108 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 89
  %109 = load i32, ptr %9, align 4, !tbaa !67
  %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 !20
  br label %112

112:                                              ; preds = %103
  %113 = load i32, ptr %9, align 4, !tbaa !67
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %9, align 4, !tbaa !67
  br label %83, !llvm.loop !68

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

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

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

120:                                              ; preds = %116
  %121 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 75
  %122 = load i32, ptr %10, align 4, !tbaa !67
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [154 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 4, !tbaa !70
  %126 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 75
  %127 = load i32, ptr %10, align 4, !tbaa !67
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [154 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 !72
  br label %131

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

134:                                              ; preds = %119
  %135 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 94
  store i8 1, ptr %135, align 1, !tbaa !74
  ret void

136:                                              ; preds = %99, %95, %91, %87
  call void @_ZN8ImVectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %137

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

; 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, !6, i64 40, !6, i64 48, !13, i64 56, !14, i64 60, !6, i64 64, !12, i64 72, !14, i64 80, !14, i64 81, !14, i64 82, !14, i64 83, !14, i64 84, !14, i64 85, !14, i64 86, !14, i64 87, !14, i64 88, !14, i64 89, !14, i64 90, !14, i64 91, !14, i64 92, !14, i64 93, !14, i64 94, !14, i64 95, !14, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !14, i64 124, !14, i64 125, !14, i64 126, !14, i64 127, !14, i64 128, !14, i64 129, !14, i64 130, !14, i64 131, !14, i64 132, !14, i64 133, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !14, i64 176, !14, i64 177, !14, i64 178, !14, i64 179, !14, i64 180, !14, i64 181, !14, i64 182, !13, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !12, i64 204, !6, i64 216, !12, i64 224, !7, i64 232, !13, i64 240, !13, i64 244, !15, i64 248, !14, i64 252, !14, i64 253, !14, i64 254, !14, i64 255, !11, i64 256, !7, i64 260, !14, i64 2724, !12, i64 2728, !7, i64 2736, !7, i64 2776, !7, i64 2816, !7, i64 2821, !7, i64 2826, !7, i64 2836, !7, i64 2846, !7, i64 2851, !7, i64 2856, !14, i64 2861, !14, i64 2862, !7, i64 2864, !7, i64 2884, !7, i64 2904, !13, i64 2924, !14, i64 2928, !14, i64 2929, !16, i64 2930, !17, i64 2936, !6, i64 2952, !6, i64 2960, !6, i64 2968}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!18 = !{!10, !11, i64 4}
!19 = !{i64 0, i64 4, !20, i64 4, i64 4, !20}
!20 = !{!13, !13, i64 0}
!21 = !{!10, !13, i64 16}
!22 = !{!10, !13, i64 20}
!23 = !{!10, !6, i64 24}
!24 = !{!10, !6, i64 32}
!25 = !{!10, !6, i64 40}
!26 = !{!10, !6, i64 48}
!27 = !{!10, !13, i64 56}
!28 = !{!10, !6, i64 64}
!29 = !{!10, !14, i64 60}
!30 = !{!10, !14, i64 80}
!31 = !{!10, !14, i64 81}
!32 = !{!10, !14, i64 82}
!33 = !{!10, !14, i64 83}
!34 = !{!10, !14, i64 84}
!35 = !{!10, !14, i64 85}
!36 = !{!10, !14, i64 86}
!37 = !{!10, !14, i64 87}
!38 = !{!10, !14, i64 88}
!39 = !{!10, !14, i64 89}
!40 = !{!10, !14, i64 90}
!41 = !{!10, !14, i64 91}
!42 = !{!10, !14, i64 92}
!43 = !{!10, !14, i64 93}
!44 = !{!10, !14, i64 94}
!45 = !{!10, !14, i64 95}
!46 = !{!10, !14, i64 96}
!47 = !{!10, !13, i64 100}
!48 = !{!10, !14, i64 128}
!49 = !{!10, !14, i64 129}
!50 = !{!10, !14, i64 130}
!51 = !{!10, !14, i64 131}
!52 = !{!10, !14, i64 124}
!53 = !{!10, !14, i64 125}
!54 = !{!10, !14, i64 126}
!55 = !{!10, !14, i64 127}
!56 = !{!10, !13, i64 104}
!57 = !{!10, !13, i64 108}
!58 = !{!10, !13, i64 112}
!59 = !{!10, !13, i64 116}
!60 = !{!10, !13, i64 120}
!61 = !{!10, !6, i64 144}
!62 = !{!10, !6, i64 136}
!63 = !{!10, !6, i64 168}
!64 = !{!10, !6, i64 160}
!65 = !{!10, !6, i64 152}
!66 = !{!10, !15, i64 248}
!67 = !{!11, !11, i64 0}
!68 = distinct !{!68, !69}
!69 = !{!"llvm.loop.mustprogress"}
!70 = !{!71, !13, i64 8}
!71 = !{!"_ZTS12ImGuiKeyData", !14, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!72 = !{!71, !13, i64 4}
!73 = distinct !{!73, !69}
!74 = !{!10, !14, i64 2929}


; 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(2976) %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 72
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 204
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 2728
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %.ptr = getelementptr inbounds i8, ptr %0, i64 2736
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 2744
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 2752
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 2760
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %0, i64 2768
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.4)
  %10 = getelementptr inbounds i8, ptr %0, i64 2936
  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(2976) %0, i8 0, i64 2976, 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 !18
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  store float 1.000000e+00, ptr %16, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr null, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %0, i64 60
  store i8 0, ptr %18, 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)
  %19 = load i64, ptr %2, align 8
  store i64 %19, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %20 = getelementptr inbounds i8, ptr %0, i64 80
  store <16 x i8> <i8 0, i8 0, i8 1, i8 1, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 1, i8 0, i8 0, i8 1, i8 0, i8 0>, ptr %20, align 8, !tbaa !22
  %21 = getelementptr inbounds i8, ptr %0, i64 96
  store i8 1, ptr %21, align 8, !tbaa !23
  %22 = getelementptr inbounds i8, ptr %0, i64 100
  %23 = getelementptr inbounds i8, ptr %0, i64 128
  store <4 x i8> <i8 0, i8 1, i8 0, i8 0>, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %0, i64 124
  store i32 16843009, ptr %24, align 4
  store <4 x float> <float 6.000000e+01, float 0x3FD3333340000000, float 6.000000e+00, float 6.000000e+00>, ptr %22, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 116
  store <2 x float> <float 0x3FD19999A0000000, float 0x3FA99999A0000000>, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 136
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %26, 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)
  %27 = load i64, ptr %3, align 8
  store i64 %27, 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)
  %28 = load i64, ptr %4, align 8
  store i64 %28, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %29 = getelementptr inbounds i8, ptr %0, i64 248
  store i32 0, ptr %29, align 8, !tbaa !24
  %30 = getelementptr inbounds i8, ptr %0, i64 2864
  %31 = getelementptr inbounds i8, ptr %0, i64 2896
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %30, align 8, !tbaa !5
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %31, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %0, i64 2880
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %0, i64 260
  br label %36

34:                                               ; preds = %36
  %35 = getelementptr inbounds i8, ptr %0, i64 2929
  store i8 1, ptr %35, align 1, !tbaa !25
  ret void

36:                                               ; preds = %36, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next.1, %36 ]
  %37 = getelementptr inbounds [154 x %struct.ImGuiKeyData], ptr %33, i64 0, i64 %indvars.iv, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %37, align 8, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %38 = getelementptr inbounds [154 x %struct.ImGuiKeyData], ptr %33, i64 0, i64 %indvars.iv.next, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %38, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 154
  br i1 %exitcond.not.1, label %34, label %36, !llvm.loop !26
}

; 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, !13, i64 40, !13, i64 48, !6, i64 56, !14, i64 60, !13, i64 64, !12, i64 72, !14, i64 80, !14, i64 81, !14, i64 82, !14, i64 83, !14, i64 84, !14, i64 85, !14, i64 86, !14, i64 87, !14, i64 88, !14, i64 89, !14, i64 90, !14, i64 91, !14, i64 92, !14, i64 93, !14, i64 94, !14, i64 95, !14, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !14, i64 124, !14, i64 125, !14, i64 126, !14, i64 127, !14, i64 128, !14, i64 129, !14, i64 130, !14, i64 131, !14, i64 132, !14, i64 133, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !14, i64 176, !14, i64 177, !14, i64 178, !14, i64 179, !14, i64 180, !14, i64 181, !14, i64 182, !6, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !12, i64 204, !13, i64 216, !12, i64 224, !7, i64 232, !6, i64 240, !6, i64 244, !15, i64 248, !14, i64 252, !14, i64 253, !14, i64 254, !14, i64 255, !11, i64 256, !7, i64 260, !14, i64 2724, !12, i64 2728, !7, i64 2736, !7, i64 2776, !7, i64 2816, !7, i64 2821, !7, i64 2826, !7, i64 2836, !7, i64 2846, !7, i64 2851, !7, i64 2856, !14, i64 2861, !14, i64 2862, !7, i64 2864, !7, i64 2884, !7, i64 2904, !6, i64 2924, !14, i64 2928, !14, i64 2929, !16, i64 2930, !17, i64 2936, !13, i64 2952, !13, i64 2960, !13, i64 2968}
!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 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !13, i64 8}
!18 = !{!10, !13, i64 32}
!19 = !{!10, !6, i64 56}
!20 = !{!10, !13, i64 64}
!21 = !{!10, !14, i64 60}
!22 = !{!14, !14, i64 0}
!23 = !{!10, !14, i64 96}
!24 = !{!10, !15, i64 248}
!25 = !{!10, !14, i64 2929}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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