; LLVM IR from drohmer/cgp :: library/third_party/src/imgui/imgui.ll (ZN7ImGuiIOC2Ev)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImVec2 = type { float, float }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [21 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [512 x i8], [17 x i16], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float] }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

93:                                               ; preds = %84
  %94 = load i32, ptr %9, align 4, !tbaa !24
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %9, align 4, !tbaa !24
  br label %80, !llvm.loop !44

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

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

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

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

110:                                              ; preds = %101
  %111 = load i32, ptr %10, align 4, !tbaa !24
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %10, align 4, !tbaa !24
  br label %97, !llvm.loop !45

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

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

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

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

123:                                              ; preds = %118
  %124 = load i32, ptr %11, align 4, !tbaa !24
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %11, align 4, !tbaa !24
  br label %114, !llvm.loop !46

126:                                              ; preds = %117
  ret void
}

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !7, i64 52, !13, i64 136, !13, i64 140, !6, i64 144, !6, i64 152, !13, i64 160, !14, i64 164, !6, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !14, i64 200, !14, i64 201, !14, i64 202, !14, i64 203, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !12, i64 256, !7, i64 264, !13, i64 272, !13, i64 276, !14, i64 280, !14, i64 281, !14, i64 282, !14, i64 283, !7, i64 284, !7, i64 796, !7, i64 832, !14, i64 916, !14, i64 917, !14, i64 918, !14, i64 919, !14, i64 920, !14, i64 921, !14, i64 922, !13, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !11, i64 940, !11, i64 944, !12, i64 948, !12, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1088, !7, i64 1108, !7, i64 1148, !7, i64 1168, !7, i64 3216, !7, i64 5264, !7, i64 5348}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!10, !11, i64 4}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !17}
!17 = !{!13, !13, i64 0}
!18 = !{!10, !13, i64 16}
!19 = !{!10, !13, i64 20}
!20 = !{!10, !6, i64 24}
!21 = !{!10, !6, i64 32}
!22 = !{!10, !13, i64 40}
!23 = !{!10, !13, i64 44}
!24 = !{!11, !11, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!10, !13, i64 136}
!28 = !{!10, !13, i64 140}
!29 = !{!10, !6, i64 144}
!30 = !{!10, !6, i64 152}
!31 = !{!10, !13, i64 160}
!32 = !{!10, !6, i64 168}
!33 = !{!10, !14, i64 164}
!34 = !{!10, !14, i64 201}
!35 = !{!10, !14, i64 202}
!36 = !{!10, !14, i64 203}
!37 = !{!10, !6, i64 208}
!38 = !{!10, !6, i64 216}
!39 = !{!10, !6, i64 224}
!40 = !{!10, !6, i64 232}
!41 = !{!10, !6, i64 240}
!42 = !{!10, !6, i64 248}
!43 = !{!10, !13, i64 48}
!44 = distinct !{!44, !26}
!45 = distinct !{!45, !26}
!46 = distinct !{!46, !26}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImVec2 = type { float, float }

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 24}
!10 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !6, i64 16, !6, i64 20, !13, i64 24, !13, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !7, i64 52, !6, i64 136, !6, i64 140, !13, i64 144, !13, i64 152, !6, i64 160, !14, i64 164, !13, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !14, i64 200, !14, i64 201, !14, i64 202, !14, i64 203, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !12, i64 256, !7, i64 264, !6, i64 272, !6, i64 276, !14, i64 280, !14, i64 281, !14, i64 282, !14, i64 283, !7, i64 284, !7, i64 796, !7, i64 832, !14, i64 916, !14, i64 917, !14, i64 918, !14, i64 919, !14, i64 920, !14, i64 921, !14, i64 922, !6, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !11, i64 940, !11, i64 944, !12, i64 948, !12, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1088, !7, i64 1108, !7, i64 1148, !7, i64 1168, !7, i64 3216, !7, i64 5264, !7, i64 5348}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!10, !13, i64 32}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !6, i64 160}
!18 = !{!10, !13, i64 168}
!19 = !{!10, !14, i64 164}
!20 = !{!10, !14, i64 201}
!21 = !{!10, !14, i64 202}
!22 = !{!10, !14, i64 203}
!23 = !{!10, !13, i64 208}
!24 = !{!10, !13, i64 216}
!25 = !{!10, !13, i64 224}
!26 = !{!10, !13, i64 232}
!27 = !{!10, !6, i64 48}
!28 = distinct !{!28, !29, !30, !31}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}


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