; LLVM IR from aap/librw :: skeleton/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, [3 x i8], ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8], float, float, float, float, float, float, i8, i8, i8, i8, i8, [7 x i8], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i8, i8, i8, i8, i8, i8, i8, [3 x i8], float, i32, i32, i32, i32, %struct.ImVec2, ptr, %struct.ImVec2, [5 x i8], [3 x i8], float, float, i32, i8, i8, i8, i8, i32, [666 x %struct.ImGuiKeyData], i8, [3 x 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, i8, [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, [2 x i8], %struct.ImVector, [666 x i32], [666 x i8], [2 x i8], [16 x float], [4 x i8] }>
%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(14580) %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 13
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %15 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 61
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %16 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 63
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %17 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 74
  %18 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 77
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %19 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 78
  %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 100
  call void @_ZN8ImVectorItEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 14584, 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 !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 %30 unwind label %40

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 !19
  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 !21
  %33 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 4
  store float 5.000000e+00, ptr %33, align 4, !tbaa !22
  %34 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 5
  store ptr @.str, ptr %34, align 8, !tbaa !23
  %35 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 6
  store ptr @.str.1, ptr %35, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !25
  br label %36

36:                                               ; preds = %49, %30
  %37 = load i32, ptr %6, align 4, !tbaa !25
  %38 = icmp slt i32 %37, 666
  br i1 %38, label %44, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %52

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

44:                                               ; preds = %36
  %45 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 101
  %46 = load i32, ptr %6, align 4, !tbaa !25
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [666 x i32], ptr %45, i64 0, i64 %47
  store i32 -1, ptr %48, align 4, !tbaa !25
  br label %49

49:                                               ; preds = %44
  %50 = load i32, ptr %6, align 4, !tbaa !25
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %6, align 4, !tbaa !25
  br label %36, !llvm.loop !26

52:                                               ; preds = %39
  %53 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 7
  store ptr null, ptr %53, align 8, !tbaa !28
  %54 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 8
  store ptr null, ptr %54, align 8, !tbaa !29
  %55 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 9
  store float 1.000000e+00, ptr %55, align 8, !tbaa !30
  %56 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 12
  store ptr null, ptr %56, align 8, !tbaa !31
  %57 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 10
  store i8 0, ptr %57, align 4, !tbaa !32
  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 %58 unwind label %93

58:                                               ; preds = %52
  %59 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %59, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %60 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 25
  store float 0x3FD3333340000000, ptr %60, align 8, !tbaa !33
  %61 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 26
  store float 6.000000e+00, ptr %61, align 4, !tbaa !34
  %62 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 27
  store float 6.000000e+00, ptr %62, align 8, !tbaa !35
  %63 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 28
  store float 0x3FD19999A0000000, ptr %63, align 4, !tbaa !36
  %64 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 29
  store float 0x3FA99999A0000000, ptr %64, align 8, !tbaa !37
  %65 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 14
  store i8 0, ptr %65, align 8, !tbaa !38
  %66 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 15
  store i8 0, ptr %66, align 1, !tbaa !39
  %67 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 16
  store i8 0, ptr %67, align 2, !tbaa !40
  %68 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 17
  store i8 1, ptr %68, align 1, !tbaa !41
  %69 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 18
  store i8 1, ptr %69, align 4, !tbaa !42
  %70 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 19
  store i8 0, ptr %70, align 1, !tbaa !43
  %71 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 20
  store i8 0, ptr %71, align 2, !tbaa !44
  %72 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 21
  store i8 1, ptr %72, align 1, !tbaa !45
  %73 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 22
  store i8 0, ptr %73, align 8, !tbaa !46
  %74 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 24
  store float 6.000000e+01, ptr %74, align 4, !tbaa !47
  %75 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 31
  store i8 0, ptr %75, align 1, !tbaa !48
  %76 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 32
  store i8 0, ptr %76, align 2, !tbaa !49
  %77 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 37
  store ptr null, ptr %77, align 8, !tbaa !50
  %78 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 36
  store ptr null, ptr %78, align 8, !tbaa !51
  %79 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 40
  store ptr null, ptr %79, align 8, !tbaa !52
  %80 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 39
  store ptr null, ptr %80, align 8, !tbaa !53
  %81 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 38
  store ptr null, ptr %81, align 8, !tbaa !54
  %82 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 45
  store ptr null, ptr %82, align 8, !tbaa !55
  %83 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 47
  store i16 46, ptr %83, align 8, !tbaa !56
  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 = %58
  %85 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 63
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !19
  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 77
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %88 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 68
  store i32 0, ptr %88, align 8, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !25
  br label %89

89:                                               ; preds = %114, %86
  %90 = load i32, ptr %10, align 4, !tbaa !25
  %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 = %52
  %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 = %58
  %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 91
  %107 = load i32, ptr %10, align 4, !tbaa !25
  %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 !20
  %110 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 90
  %111 = load i32, ptr %10, align 4, !tbaa !25
  %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 !20
  br label %114

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

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

118:                                              ; preds = %133, %117
  %119 = load i32, ptr %11, align 4, !tbaa !25
  %120 = icmp slt i32 %119, 666
  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 74
  %124 = load i32, ptr %11, align 4, !tbaa !25
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [666 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 !59
  %128 = getelementptr inbounds %struct.ImGuiIO, ptr %12, i32 0, i32 74
  %129 = load i32, ptr %11, align 4, !tbaa !25
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [666 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 !61
  br label %133

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

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

140:                                              ; preds = %101, %97, %93, %40
  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: 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, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !14, i64 116, !14, i64 117, !14, i64 118, !14, i64 119, !14, 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, !6, i64 208, !15, i64 216, !14, i64 218, !14, i64 219, !14, i64 220, !14, i64 221, !14, i64 222, !14, i64 223, !14, i64 224, !13, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !12, i64 248, !6, i64 256, !12, i64 264, !7, i64 272, !13, i64 280, !13, i64 284, !16, i64 288, !14, i64 292, !14, i64 293, !14, i64 294, !14, i64 295, !11, i64 296, !7, i64 300, !14, i64 10956, !12, i64 10960, !7, i64 10968, !7, i64 11008, !7, i64 11048, !7, i64 11053, !7, i64 11058, !7, i64 11068, !7, i64 11078, !7, i64 11083, !7, i64 11088, !14, i64 11093, !14, i64 11094, !7, i64 11096, !7, i64 11116, !7, i64 11136, !13, i64 11156, !14, i64 11160, !14, i64 11161, !7, i64 11162, !14, i64 11163, !15, i64 11164, !17, i64 11168, !7, i64 11184, !7, i64 13848, !7, i64 14516}
!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 = !{!"_ZTS16ImGuiMouseSource", !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 = !{!11, !11, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !6, i64 40}
!29 = !{!10, !6, i64 48}
!30 = !{!10, !13, i64 56}
!31 = !{!10, !6, i64 64}
!32 = !{!10, !14, i64 60}
!33 = !{!10, !13, i64 96}
!34 = !{!10, !13, i64 100}
!35 = !{!10, !13, i64 104}
!36 = !{!10, !13, i64 108}
!37 = !{!10, !13, i64 112}
!38 = !{!10, !14, i64 80}
!39 = !{!10, !14, i64 81}
!40 = !{!10, !14, i64 82}
!41 = !{!10, !14, i64 83}
!42 = !{!10, !14, i64 84}
!43 = !{!10, !14, i64 85}
!44 = !{!10, !14, i64 86}
!45 = !{!10, !14, i64 87}
!46 = !{!10, !14, i64 88}
!47 = !{!10, !13, i64 92}
!48 = !{!10, !14, i64 117}
!49 = !{!10, !14, i64 118}
!50 = !{!10, !6, i64 136}
!51 = !{!10, !6, i64 128}
!52 = !{!10, !6, i64 160}
!53 = !{!10, !6, i64 152}
!54 = !{!10, !6, i64 144}
!55 = !{!10, !6, i64 200}
!56 = !{!10, !15, i64 216}
!57 = !{!10, !16, i64 288}
!58 = distinct !{!58, !27}
!59 = !{!60, !13, i64 8}
!60 = !{!"_ZTS12ImGuiKeyData", !14, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!61 = !{!60, !13, i64 4}
!62 = distinct !{!62, !27}
!63 = !{!10, !14, i64 11161}
!64 = !{!10, !7, i64 11162}
!65 = !{!10, !14, i64 11163}


; 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(14580) %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 248
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 264
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 10960
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %.ptr = getelementptr inbounds i8, ptr %0, i64 10968
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 10976
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 10984
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 10992
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %0, i64 11000
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.4)
  %10 = getelementptr inbounds i8, ptr %0, i64 11168
  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(14584) %0, i8 0, i64 14584, 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 11184
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(2664) %15, i8 -1, i64 2664, i1 false), !tbaa !19
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %16, i8 0, i64 16, i1 false)
  store float 1.000000e+00, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr null, ptr %18, align 8, !tbaa !21
  %19 = getelementptr inbounds i8, ptr %0, i64 60
  store i8 0, ptr %19, align 4, !tbaa !22
  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)
  %20 = load i64, ptr %2, align 8
  store i64 %20, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %21 = getelementptr inbounds i8, ptr %0, i64 108
  store <2 x float> <float 0x3FD19999A0000000, float 0x3FA99999A0000000>, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 80
  store <8 x i8> <i8 0, i8 0, i8 0, i8 1, i8 1, i8 0, i8 0, i8 1>, ptr %22, align 8, !tbaa !23
  %23 = getelementptr inbounds i8, ptr %0, i64 88
  store i8 0, ptr %23, align 8, !tbaa !24
  %24 = getelementptr inbounds i8, ptr %0, i64 92
  store <4 x float> <float 6.000000e+01, float 0x3FD3333340000000, float 6.000000e+00, float 6.000000e+00>, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 117
  store i8 0, ptr %25, align 1, !tbaa !25
  %26 = getelementptr inbounds i8, ptr %0, i64 118
  store i8 0, ptr %26, align 2, !tbaa !26
  %27 = getelementptr inbounds i8, ptr %0, i64 128
  %28 = getelementptr inbounds i8, ptr %0, i64 200
  store ptr null, ptr %28, align 8, !tbaa !27
  %29 = getelementptr inbounds i8, ptr %0, i64 216
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %27, i8 0, i64 40, i1 false)
  store i16 46, ptr %29, align 8, !tbaa !28
  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)
  %30 = load i64, ptr %3, align 8
  store i64 %30, 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)
  %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) #4
  %32 = getelementptr inbounds i8, ptr %0, i64 288
  store i32 0, ptr %32, align 8, !tbaa !29
  %33 = getelementptr inbounds i8, ptr %0, i64 11096
  %34 = getelementptr inbounds i8, ptr %0, i64 11128
  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 11112
  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 300
  br label %41

37:                                               ; preds = %41
  %38 = getelementptr inbounds i8, ptr %0, i64 11161
  store i8 1, ptr %38, align 1, !tbaa !30
  %39 = getelementptr inbounds i8, ptr %0, i64 11162
  store i8 -1, ptr %39, align 2, !tbaa !31
  %40 = getelementptr inbounds i8, ptr %0, i64 11163
  store i8 1, ptr %40, align 1, !tbaa !32
  ret void

41:                                               ; preds = %41, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next.5, %41 ]
  %42 = getelementptr inbounds [666 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 [666 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 = add nuw nsw i64 %indvars.iv, 2
  %44 = getelementptr inbounds [666 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 = add nuw nsw i64 %indvars.iv, 3
  %45 = getelementptr inbounds [666 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
  %46 = getelementptr inbounds [666 x %struct.ImGuiKeyData], ptr %36, i64 0, i64 %indvars.iv.next.3, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %46, align 8, !tbaa !5
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv, 5
  %47 = getelementptr inbounds [666 x %struct.ImGuiKeyData], ptr %36, i64 0, i64 %indvars.iv.next.4, i32 1
  store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %47, align 8, !tbaa !5
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv, 6
  %exitcond.not.5 = icmp eq i64 %indvars.iv.next.5, 666
  br i1 %exitcond.not.5, label %37, label %41, !llvm.loop !33
}

; 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, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !14, i64 116, !14, i64 117, !14, i64 118, !14, i64 119, !14, 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, !13, i64 208, !15, i64 216, !14, i64 218, !14, i64 219, !14, i64 220, !14, i64 221, !14, i64 222, !14, i64 223, !14, i64 224, !6, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !12, i64 248, !13, i64 256, !12, i64 264, !7, i64 272, !6, i64 280, !6, i64 284, !16, i64 288, !14, i64 292, !14, i64 293, !14, i64 294, !14, i64 295, !11, i64 296, !7, i64 300, !14, i64 10956, !12, i64 10960, !7, i64 10968, !7, i64 11008, !7, i64 11048, !7, i64 11053, !7, i64 11058, !7, i64 11068, !7, i64 11078, !7, i64 11083, !7, i64 11088, !14, i64 11093, !14, i64 11094, !7, i64 11096, !7, i64 11116, !7, i64 11136, !6, i64 11156, !14, i64 11160, !14, i64 11161, !7, i64 11162, !14, i64 11163, !15, i64 11164, !17, i64 11168, !7, i64 11184, !7, i64 13848, !7, i64 14516}
!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 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !13, i64 8}
!18 = !{!10, !13, i64 32}
!19 = !{!11, !11, i64 0}
!20 = !{!10, !6, i64 56}
!21 = !{!10, !13, i64 64}
!22 = !{!10, !14, i64 60}
!23 = !{!14, !14, i64 0}
!24 = !{!10, !14, i64 88}
!25 = !{!10, !14, i64 117}
!26 = !{!10, !14, i64 118}
!27 = !{!10, !13, i64 200}
!28 = !{!10, !15, i64 216}
!29 = !{!10, !16, i64 288}
!30 = !{!10, !14, i64 11161}
!31 = !{!10, !7, i64 11162}
!32 = !{!10, !14, i64 11163}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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