; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (imgui)

; 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.KeyLayoutData = type { i32, i32, ptr, i32 }
%struct.ImVec2 = type { float, float }

@__const._ZN5ImGui26DebugRenderKeyboardPreviewEP10ImDrawList.keys_to_display = external hidden unnamed_addr constant [15 x %struct.KeyLayoutData], align 16

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 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) #0

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

declare void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) #5

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef, float noundef) #5

declare void @_ZN10ImDrawList12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) #5

declare void @_ZN10ImDrawList11PopClipRectEv(ptr noundef nonnull align 8 dereferenceable(196)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui13IsItemVisibleEv() #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui9IsKeyDownE8ImGuiKey(i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui18GetCursorScreenPosEv() #7

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui26DebugRenderKeyboardPreviewEP10ImDrawList(ptr noundef %0) #7 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca float, align 4
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca float, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca float, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca [15 x %struct.KeyLayoutData], align 16
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 3.500000e+01, float noundef 3.500000e+01)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store float 3.000000e+00, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 2.500000e+01, float noundef 2.500000e+01)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 5.000000e+00, float noundef 3.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store float 2.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 7.000000e+00, float noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %24 = getelementptr inbounds %struct.ImVec2, ptr %3, i32 0, i32 0
  %25 = load float, ptr %24, align 4, !tbaa !11
  %26 = fsub float %25, 1.000000e+00
  %27 = getelementptr inbounds %struct.ImVec2, ptr %3, i32 0, i32 1
  %28 = load float, ptr %27, align 4, !tbaa !13
  %29 = fsub float %28, 1.000000e+00
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %26, float noundef %29)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store float 9.000000e+00, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %30 = call <2 x float> @_ZN5ImGui18GetCursorScreenPosEv()
  store <2 x float> %30, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %31 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 0
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %34 = load float, ptr %33, align 4, !tbaa !11
  %35 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %34, float %32)
  %36 = fadd float %35, 1.800000e+01
  %37 = fadd float %36, 1.000000e+01
  %38 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 1
  %39 = load float, ptr %38, align 4, !tbaa !13
  %40 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %41 = load float, ptr %40, align 4, !tbaa !13
  %42 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %41, float %39)
  %43 = fadd float %42, 1.000000e+01
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %37, float noundef %43)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %44 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 0
  %45 = load float, ptr %44, align 4, !tbaa !11
  %46 = fadd float %45, 5.000000e+00
  %47 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %48 = load float, ptr %47, align 4, !tbaa !11
  %49 = fsub float %46, %48
  %50 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !13
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %49, float noundef %51)
  call void @llvm.lifetime.start.p0(i64 360, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const._ZN5ImGui26DebugRenderKeyboardPreviewEP10ImDrawList.keys_to_display, i64 360, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %52 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %52, ptr %15, align 4
  call void @_ZN5ImGui5DummyERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %53 = call noundef zeroext i1 @_ZN5ImGui13IsItemVisibleEv()
  br i1 %53, label %55, label %54

54:                                               ; preds = %1
  store i32 1, ptr %16, align 4
  br label %139

55:                                               ; preds = %1
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN10ImDrawList12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 8 dereferenceable(196) %56, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !14
  br label %57

57:                                               ; preds = %134, %55
  %58 = load i32, ptr %17, align 4, !tbaa !14
  %59 = icmp slt i32 %58, 15
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %137

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %62 = load i32, ptr %17, align 4, !tbaa !14
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [15 x %struct.KeyLayoutData], ptr %14, i64 0, i64 %63
  store ptr %64, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %65 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !11
  %67 = load ptr, ptr %18, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.KeyLayoutData, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !16
  %70 = sitofp i32 %69 to float
  %71 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 0
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = call float @llvm.fmuladd.f32(float %70, float %72, float %66)
  %74 = load ptr, ptr %18, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.KeyLayoutData, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !19
  %77 = sitofp i32 %76 to float
  %78 = call float @llvm.fmuladd.f32(float %77, float 9.000000e+00, float %73)
  %79 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 1
  %80 = load float, ptr %79, align 4, !tbaa !13
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.KeyLayoutData, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !19
  %84 = sitofp i32 %83 to float
  %85 = getelementptr inbounds %struct.ImVec2, ptr %9, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !13
  %87 = call float @llvm.fmuladd.f32(float %84, float %86, float %80)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %78, float noundef %87)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %88 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %88, ptr %20, align 4
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %89, ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %20, i32 noundef -3355444, float noundef 3.000000e+00, i32 noundef 0)
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %90, ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %20, i32 noundef -15198184, float noundef 3.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %91 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 0
  %92 = load float, ptr %91, align 4, !tbaa !11
  %93 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %94 = load float, ptr %93, align 4, !tbaa !11
  %95 = fadd float %92, %94
  %96 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 1
  %97 = load float, ptr %96, align 4, !tbaa !13
  %98 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !13
  %100 = fadd float %97, %99
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %95, float noundef %100)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %101 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 0
  %102 = load float, ptr %101, align 4, !tbaa !11
  %103 = getelementptr inbounds %struct.ImVec2, ptr %5, i32 0, i32 0
  %104 = load float, ptr %103, align 4, !tbaa !11
  %105 = fadd float %102, %104
  %106 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 1
  %107 = load float, ptr %106, align 4, !tbaa !13
  %108 = getelementptr inbounds %struct.ImVec2, ptr %5, i32 0, i32 1
  %109 = load float, ptr %108, align 4, !tbaa !13
  %110 = fadd float %107, %109
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %22, float noundef %105, float noundef %110)
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %111, ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %22, i32 noundef -4079167, float noundef 2.000000e+00, i32 noundef 0, float noundef 2.000000e+00)
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %112, ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %22, i32 noundef -197380, float noundef 2.000000e+00, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %113 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 0
  %114 = load float, ptr %113, align 4, !tbaa !11
  %115 = getelementptr inbounds %struct.ImVec2, ptr %8, i32 0, i32 0
  %116 = load float, ptr %115, align 4, !tbaa !11
  %117 = fadd float %114, %116
  %118 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 1
  %119 = load float, ptr %118, align 4, !tbaa !13
  %120 = getelementptr inbounds %struct.ImVec2, ptr %8, i32 0, i32 1
  %121 = load float, ptr %120, align 4, !tbaa !13
  %122 = fadd float %119, %121
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %117, float noundef %122)
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = load ptr, ptr %18, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.KeyLayoutData, ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !20
  call void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(196) %123, ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef -12566464, ptr noundef %126, ptr noundef null)
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.KeyLayoutData, ptr %127, i32 0, i32 3
  %129 = load i32, ptr %128, align 8, !tbaa !21
  %130 = call noundef zeroext i1 @_ZN5ImGui9IsKeyDownE8ImGuiKey(i32 noundef %129)
  br i1 %130, label %131, label %133

131:                                              ; preds = %61
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %132, ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %20, i32 noundef -2147483393, float noundef 3.000000e+00, i32 noundef 0)
  br label %133

133:                                              ; preds = %131, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %17, align 4, !tbaa !14
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %17, align 4, !tbaa !14
  br label %57, !llvm.loop !22

137:                                              ; preds = %60
  %138 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN10ImDrawList11PopClipRectEv(ptr noundef nonnull align 8 dereferenceable(196) %138)
  store i32 0, ptr %16, align 4
  br label %139

139:                                              ; preds = %137, %54
  call void @llvm.lifetime.end.p0(i64 360, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  %140 = load i32, ptr %16, align 4
  switch i32 %140, label %142 [
    i32 0, label %141
    i32 1, label %141
  ]

141:                                              ; preds = %139, %139
  ret void

142:                                              ; preds = %139
  unreachable
}

declare void @_ZN5ImGui5DummyERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8)) #5

declare void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, ptr noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 #6 = { 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 #7 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #8 = { 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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !15, i64 4}
!17 = !{!"_ZTSZN5ImGui26DebugRenderKeyboardPreviewEP10ImDrawListE13KeyLayoutData", !15, i64 0, !15, i64 4, !6, i64 8, !18, i64 16}
!18 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!19 = !{!17, !15, i64 0}
!20 = !{!17, !6, i64 8}
!21 = !{!17, !18, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; 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.KeyLayoutData = type { i32, i32, ptr, i32 }
%struct.ImVec2 = type { float, float }

@__const._ZN5ImGui26DebugRenderKeyboardPreviewEP10ImDrawList.keys_to_display = external hidden unnamed_addr constant [15 x %struct.KeyLayoutData], align 16

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

declare void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef, float noundef) local_unnamed_addr #4

declare void @_ZN10ImDrawList12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #4

declare void @_ZN10ImDrawList11PopClipRectEv(ptr noundef nonnull align 8 dereferenceable(196)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui13IsItemVisibleEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui9IsKeyDownE8ImGuiKey(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui18GetCursorScreenPosEv() local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui26DebugRenderKeyboardPreviewEP10ImDrawList(ptr noundef %0) local_unnamed_addr #6 {
  %2 = alloca %struct.ImVec2, align 4
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca %struct.ImVec2, align 4
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 8
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 8
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 8
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImVec2, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef 3.500000e+01, float noundef 3.500000e+01)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 2.500000e+01, float noundef 2.500000e+01)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 5.000000e+00, float noundef 3.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 7.000000e+00, float noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %16 = load float, ptr %2, align 4, !tbaa !5
  %17 = fadd float %16, -1.000000e+00
  %18 = getelementptr inbounds i8, ptr %2, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !10
  %20 = fadd float %19, -1.000000e+00
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %17, float noundef %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %21 = call <2 x float> @_ZN5ImGui18GetCursorScreenPosEv()
  store <2 x float> %21, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %22 = extractelement <2 x float> %21, i64 0
  %23 = load float, ptr %6, align 4, !tbaa !5
  %24 = call float @llvm.fmuladd.f32(float %23, float 3.000000e+00, float %22)
  %25 = fadd float %24, 1.800000e+01
  %26 = fadd float %25, 1.000000e+01
  %27 = extractelement <2 x float> %21, i64 1
  %28 = getelementptr inbounds i8, ptr %6, i64 4
  %29 = load float, ptr %28, align 4, !tbaa !10
  %30 = call float @llvm.fmuladd.f32(float %29, float 3.000000e+00, float %27)
  %31 = fadd float %30, 1.000000e+01
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %26, float noundef %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %32 = fadd float %22, 5.000000e+00
  %33 = load float, ptr %6, align 4, !tbaa !5
  %34 = fsub float %32, %33
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %34, float noundef %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %35 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %35, ptr %10, align 8
  call void @_ZN5ImGui5DummyERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %36 = call noundef zeroext i1 @_ZN5ImGui13IsItemVisibleEv()
  br i1 %36, label %37, label %85

37:                                               ; preds = %1
  call void @_ZN10ImDrawList12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8, i1 noundef zeroext true)
  %38 = getelementptr inbounds i8, ptr %9, i64 4
  %39 = getelementptr inbounds i8, ptr %11, i64 4
  %40 = getelementptr inbounds i8, ptr %4, i64 4
  %41 = getelementptr inbounds i8, ptr %13, i64 4
  %42 = getelementptr inbounds i8, ptr %3, i64 4
  %43 = getelementptr inbounds i8, ptr %5, i64 4
  br label %45

44:                                               ; preds = %84
  call void @_ZN10ImDrawList11PopClipRectEv(ptr noundef nonnull align 8 dereferenceable(196) %0)
  br label %85

45:                                               ; preds = %37, %84
  %indvars.iv = phi i64 [ 0, %37 ], [ %indvars.iv.next, %84 ]
  %46 = getelementptr inbounds [15 x %struct.KeyLayoutData], ptr @__const._ZN5ImGui26DebugRenderKeyboardPreviewEP10ImDrawList.keys_to_display, i64 0, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %47 = load float, ptr %9, align 4, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %46, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = sitofp i32 %49 to float
  %51 = load float, ptr %6, align 4, !tbaa !5
  %52 = call float @llvm.fmuladd.f32(float %50, float %51, float %47)
  %53 = load i32, ptr %46, align 8, !tbaa !16
  %54 = sitofp i32 %53 to float
  %55 = call float @llvm.fmuladd.f32(float %54, float 9.000000e+00, float %52)
  %56 = load float, ptr %38, align 4, !tbaa !10
  %57 = load float, ptr %28, align 4, !tbaa !10
  %58 = call float @llvm.fmuladd.f32(float %54, float %57, float %56)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %55, float noundef %58)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %59 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store <2 x float> %59, ptr %12, align 8
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef -3355444, float noundef 3.000000e+00, i32 noundef 0)
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef -15198184, float noundef 3.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %60 = load float, ptr %11, align 4, !tbaa !5
  %61 = load float, ptr %4, align 4, !tbaa !5
  %62 = fadd float %60, %61
  %63 = load float, ptr %39, align 4, !tbaa !10
  %64 = load float, ptr %40, align 4, !tbaa !10
  %65 = fadd float %63, %64
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %62, float noundef %65)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %66 = load float, ptr %13, align 4, !tbaa !5
  %67 = load float, ptr %3, align 4, !tbaa !5
  %68 = fadd float %66, %67
  %69 = load float, ptr %41, align 4, !tbaa !10
  %70 = load float, ptr %42, align 4, !tbaa !10
  %71 = fadd float %69, %70
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %68, float noundef %71)
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef -4079167, float noundef 2.000000e+00, i32 noundef 0, float noundef 2.000000e+00)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef -197380, float noundef 2.000000e+00, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %72 = load float, ptr %11, align 4, !tbaa !5
  %73 = load float, ptr %5, align 4, !tbaa !5
  %74 = fadd float %72, %73
  %75 = load float, ptr %39, align 4, !tbaa !10
  %76 = load float, ptr %43, align 4, !tbaa !10
  %77 = fadd float %75, %76
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %74, float noundef %77)
  %78 = getelementptr inbounds i8, ptr %46, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  call void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef -12566464, ptr noundef %79, ptr noundef null)
  %80 = getelementptr inbounds i8, ptr %46, i64 16
  %81 = load i32, ptr %80, align 8, !tbaa !18
  %82 = call noundef zeroext i1 @_ZN5ImGui9IsKeyDownE8ImGuiKey(i32 noundef %81)
  br i1 %82, label %83, label %84

83:                                               ; preds = %45
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef -2147483393, float noundef 3.000000e+00, i32 noundef 0)
  br label %84

84:                                               ; preds = %83, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 15
  br i1 %exitcond.not, label %44, label %45, !llvm.loop !19

85:                                               ; preds = %1, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret void
}

declare void @_ZN5ImGui5DummyERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

declare void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 = { 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 #6 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #7 = { 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, !7, i64 0}
!6 = !{!"_ZTS6ImVec2", !7, i64 0, !7, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!12, !13, i64 4}
!12 = !{!"_ZTSZN5ImGui26DebugRenderKeyboardPreviewEP10ImDrawListE13KeyLayoutData", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16}
!13 = !{!"int", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTS8ImGuiKey", !8, i64 0}
!16 = !{!12, !13, i64 0}
!17 = !{!12, !14, i64 8}
!18 = !{!12, !15, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SCCPPass,SROAPass,SimplifyCFGPass