; LLVM IR from l1mey112/yr11-physics-applied :: cimgui/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, 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], %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(14264) %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 52
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %16 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 56
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %17 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 65
  %18 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 67
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %19 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 68
  %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 86
  call void @_ZN8ImVectorItEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 14264, 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 %140

46:                                               ; preds = %38
  %47 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 53
  %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 %93

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 30
  store ptr null, ptr %75, align 8, !tbaa !47
  %76 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 29
  store ptr null, ptr %76, align 8, !tbaa !48
  %77 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 33
  store ptr null, ptr %77, align 8, !tbaa !49
  %78 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 32
  store ptr null, ptr %78, align 8, !tbaa !50
  %79 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 31
  store ptr null, ptr %79, align 8, !tbaa !51
  %80 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 34
  store ptr @_ZL30GetClipboardTextFn_DefaultImplPv, ptr %80, align 8, !tbaa !52
  %81 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 35
  store ptr @_ZL30SetClipboardTextFn_DefaultImplPvPKc, ptr %81, align 8, !tbaa !53
  %82 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 36
  store ptr null, ptr %82, align 8, !tbaa !54
  %83 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 37
  store ptr @_ZL32SetPlatformImeDataFn_DefaultImplP13ImGuiViewportP20ImGuiPlatformImeData, ptr %83, align 8, !tbaa !55
  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 %84 unwind label %97

84:                                               ; preds = %64
  %85 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 56
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, 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 %86 unwind label %101

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

89:                                               ; preds = %114, %86
  %90 = load i32, ptr %10, align 4, !tbaa !26
  %91 = icmp slt i32 %90, 5
  br i1 %91, label %105, label %92

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

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

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

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

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

114:                                              ; preds = %105
  %115 = load i32, ptr %10, align 4, !tbaa !26
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %10, align 4, !tbaa !26
  br label %89, !llvm.loop !57

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

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

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

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

133:                                              ; preds = %122
  %134 = load i32, ptr %11, align 4, !tbaa !26
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %11, align 4, !tbaa !26
  br label %118, !llvm.loop !61

136:                                              ; preds = %121
  %137 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 82
  store i8 1, ptr %137, align 1, !tbaa !62
  %138 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 83
  store i8 -1, ptr %138, align 2, !tbaa !63
  %139 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 84
  store i8 1, ptr %139, align 1, !tbaa !64
  ret void

140:                                              ; preds = %101, %97, %93, %42
  call void @_ZN8ImVectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  br label %141

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

; 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: 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 @_ZL32SetPlatformImeDataFn_DefaultImplP13ImGuiViewportP20ImGuiPlatformImeData(ptr noundef, ptr noundef) #0

; 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, !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, !12, i64 3572, !7, i64 3580, !13, i64 3588, !13, i64 3592, !14, i64 3596, !14, i64 3597, !14, i64 3598, !14, i64 3599, !11, i64 3600, !7, i64 3604, !14, i64 14036, !12, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !13, i64 14236, !14, i64 14240, !14, i64 14241, !7, i64 14242, !14, i64 14243, !15, i64 14244, !16, i64 14248}
!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, !6, i64 136}
!48 = !{!10, !6, i64 128}
!49 = !{!10, !6, i64 160}
!50 = !{!10, !6, i64 152}
!51 = !{!10, !6, i64 144}
!52 = !{!10, !6, i64 168}
!53 = !{!10, !6, i64 176}
!54 = !{!10, !6, i64 184}
!55 = !{!10, !6, i64 192}
!56 = !{!10, !13, i64 48}
!57 = distinct !{!57, !28}
!58 = !{!59, !13, i64 8}
!59 = !{!"_ZTS12ImGuiKeyData", !14, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!60 = !{!59, !13, i64 4}
!61 = distinct !{!61, !28}
!62 = !{!10, !14, i64 14241}
!63 = !{!10, !7, i64 14242}
!64 = !{!10, !14, i64 14243}


; 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(14264) %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 3572
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 14040
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %.ptr = getelementptr inbounds i8, ptr %0, i64 14048
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 14056
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 14064
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 14072
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %0, i64 14080
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.4)
  %10 = getelementptr inbounds i8, ptr %0, i64 14248
  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(14264) %0, i8 0, i64 14264, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  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) #5
  %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) #5
  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) #5
  %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 128
  %26 = getelementptr inbounds i8, ptr %0, i64 168
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %25, i8 0, i64 40, i1 false)
  store ptr @_ZL30GetClipboardTextFn_DefaultImplPv, ptr %26, align 8, !tbaa !24
  %27 = getelementptr inbounds i8, ptr %0, i64 176
  store ptr @_ZL30SetClipboardTextFn_DefaultImplPvPKc, ptr %27, align 8, !tbaa !25
  %28 = getelementptr inbounds i8, ptr %0, i64 184
  store ptr null, ptr %28, align 8, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %0, i64 192
  store ptr @_ZL32SetPlatformImeDataFn_DefaultImplP13ImGuiViewportP20ImGuiPlatformImeData, ptr %29, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  %30 = load i64, ptr %3, align 8
  store i64 %30, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  %31 = load i64, ptr %4, align 8
  store i64 %31, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  store float 6.000000e+00, ptr %32, align 8, !tbaa !28
  %33 = getelementptr inbounds i8, ptr %0, i64 14176
  %34 = 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
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %34, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %0, i64 14192
  store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %0, i64 3604
  br label %41

37:                                               ; preds = %41
  %38 = getelementptr inbounds i8, ptr %0, i64 14241
  store i8 1, ptr %38, align 1, !tbaa !29
  %39 = getelementptr inbounds i8, ptr %0, i64 14242
  store i8 -1, ptr %39, align 2, !tbaa !30
  %40 = getelementptr inbounds i8, ptr %0, i64 14243
  store i8 1, ptr %40, align 1, !tbaa !31
  ret void

41:                                               ; preds = %41, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next.3, %41 ]
  %42 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %36, i64 0, i64 %indvars.iv, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %42, align 8, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %43 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %36, i64 0, i64 %indvars.iv.next, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %43, align 8, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %44 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %36, i64 0, i64 %indvars.iv.next.1, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %44, align 8, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %45 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %36, i64 0, i64 %indvars.iv.next.2, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %45, align 8, !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 %37, label %41, !llvm.loop !32
}

; 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(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL32SetPlatformImeDataFn_DefaultImplP13ImGuiViewportP20ImGuiPlatformImeData(ptr noundef, ptr 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 = { 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 = { 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 #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 = !{!"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, !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, !12, i64 3572, !7, i64 3580, !6, i64 3588, !6, i64 3592, !14, i64 3596, !14, i64 3597, !14, i64 3598, !14, i64 3599, !11, i64 3600, !7, i64 3604, !14, i64 14036, !12, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !6, i64 14236, !14, i64 14240, !14, i64 14241, !7, i64 14242, !14, i64 14243, !15, i64 14244, !16, i64 14248}
!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, !13, i64 168}
!25 = !{!10, !13, i64 176}
!26 = !{!10, !13, i64 184}
!27 = !{!10, !13, i64 192}
!28 = !{!10, !6, i64 48}
!29 = !{!10, !14, i64 14241}
!30 = !{!10, !7, i64 14242}
!31 = !{!10, !14, i64 14243}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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