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

; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImGuiWindow = type <{ ptr, ptr, i32, i32, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i16, i16, i32, i8, i8, i8, i8, i32, i8, i8, i8, i8, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, float, float, [4 x i8], %struct.ImGuiStorage, %struct.ImVector.3, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i32, i32, i32, i8, [3 x i8] }>
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, %struct.ImVec2, i32, i16, i16, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.0, ptr, ptr, i32, i32, i32, float, float, %struct.ImVector.1, %struct.ImVector.1 }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type <{ i32, i32, i16, i16, i16, i16, i16, [4 x i16], [2 x i8] }>
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVec2ih = type { i16, i16 }
%struct.ImGuiStorage = type { %struct.ImVector.2 }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.6, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.10 }
%struct.ImVector.10 = type { i32, i32, ptr }

@.str.4 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis = external hidden unnamed_addr constant [63 x i8], align 1

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

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

; 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) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis(ptr noundef %0, i32 noundef %1) #4 {
  %3 = alloca %struct.ImRect, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.ImRect, align 4
  %7 = alloca %struct.ImRect, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow4RectEv(ptr noundef nonnull align 8 dereferenceable(981) %11)
  %13 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %14 = extractvalue { <2 x float>, <2 x float> } %12, 0
  store <2 x float> %14, ptr %13, align 4
  %15 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %16 = extractvalue { <2 x float>, <2 x float> } %12, 1
  store <2 x float> %16, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ImGuiWindow, ptr %17, i32 0, i32 64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ImGuiWindow, ptr %19, i32 0, i32 13
  %21 = load float, ptr %20, align 4, !tbaa !14
  store float %21, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImGuiWindow, ptr %22, i32 0, i32 28
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = xor i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6ImVec2ixEm(ptr noundef nonnull align 4 dereferenceable(8) %23, i64 noundef %26)
  %28 = load float, ptr %27, align 4, !tbaa !12
  store float %28, ptr %9, align 4, !tbaa !12
  %29 = load float, ptr %9, align 4, !tbaa !12
  %30 = fcmp ogt float %29, 0.000000e+00
  br i1 %30, label %31, label %32

31:                                               ; preds = %2
  br label %34

32:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 882, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis) #8
  unreachable

33:                                               ; No predecessors!
  br label %34

34:                                               ; preds = %33, %31
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %58

37:                                               ; preds = %34
  %38 = getelementptr inbounds %struct.ImRect, ptr %7, i32 0, i32 0
  %39 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 0
  %40 = load float, ptr %39, align 4, !tbaa !43
  %41 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 0
  %42 = getelementptr inbounds %struct.ImVec2, ptr %41, i32 0, i32 1
  %43 = load float, ptr %42, align 4, !tbaa !44
  %44 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 1
  %45 = getelementptr inbounds %struct.ImVec2, ptr %44, i32 0, i32 1
  %46 = load float, ptr %45, align 4, !tbaa !45
  %47 = load float, ptr %8, align 4, !tbaa !12
  %48 = fsub float %46, %47
  %49 = load float, ptr %9, align 4, !tbaa !12
  %50 = fsub float %48, %49
  %51 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %43, float noundef %50)
  %52 = getelementptr inbounds %struct.ImRect, ptr %7, i32 0, i32 1
  %53 = getelementptr inbounds %struct.ImVec2, ptr %52, i32 0, i32 0
  %54 = load float, ptr %53, align 4, !tbaa !46
  %55 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 1
  %56 = getelementptr inbounds %struct.ImVec2, ptr %55, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !45
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %40, float noundef %51, float noundef %54, float noundef %57)
  store i32 1, ptr %10, align 4
  br label %79

58:                                               ; preds = %34
  %59 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 0
  %60 = getelementptr inbounds %struct.ImVec2, ptr %59, i32 0, i32 0
  %61 = load float, ptr %60, align 4, !tbaa !43
  %62 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 1
  %63 = getelementptr inbounds %struct.ImVec2, ptr %62, i32 0, i32 0
  %64 = load float, ptr %63, align 4, !tbaa !46
  %65 = load float, ptr %8, align 4, !tbaa !12
  %66 = fsub float %64, %65
  %67 = load float, ptr %9, align 4, !tbaa !12
  %68 = fsub float %66, %67
  %69 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %61, float noundef %68)
  %70 = getelementptr inbounds %struct.ImRect, ptr %7, i32 0, i32 0
  %71 = getelementptr inbounds %struct.ImVec2, ptr %70, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !44
  %73 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 1
  %74 = getelementptr inbounds %struct.ImVec2, ptr %73, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !46
  %76 = getelementptr inbounds %struct.ImRect, ptr %7, i32 0, i32 1
  %77 = getelementptr inbounds %struct.ImVec2, ptr %76, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !45
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %69, float noundef %72, float noundef %75, float noundef %78)
  store i32 1, ptr %10, align 4
  br label %79

79:                                               ; preds = %58, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  %80 = load { <2 x float>, <2 x float> }, ptr %3, align 4
  ret { <2 x float>, <2 x float> } %80
}

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow4RectEv(ptr noundef nonnull align 8 dereferenceable(981)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6ImVec2ixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { noreturn nounwind "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 = { 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 #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 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 #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"_ZTS9ImGuiAxis", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 92}
!15 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !6, i64 8, !16, i64 16, !16, i64 20, !6, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !16, i64 120, !16, i64 124, !16, i64 128, !17, i64 132, !17, i64 140, !17, i64 148, !17, i64 156, !17, i64 164, !17, i64 172, !18, i64 180, !18, i64 181, !18, i64 182, !18, i64 183, !18, i64 184, !18, i64 185, !18, i64 186, !18, i64 187, !18, i64 188, !18, i64 189, !18, i64 190, !18, i64 191, !18, i64 192, !7, i64 193, !19, i64 194, !19, i64 196, !19, i64 198, !19, i64 200, !19, i64 202, !16, i64 204, !7, i64 208, !7, i64 209, !7, i64 210, !18, i64 211, !16, i64 212, !7, i64 216, !7, i64 217, !7, i64 218, !7, i64 219, !16, i64 220, !16, i64 221, !16, i64 222, !17, i64 224, !17, i64 232, !20, i64 240, !21, i64 256, !27, i64 488, !27, i64 504, !27, i64 520, !27, i64 536, !27, i64 552, !27, i64 568, !27, i64 584, !28, i64 600, !28, i64 604, !16, i64 608, !13, i64 612, !13, i64 616, !29, i64 624, !31, i64 640, !13, i64 656, !16, i64 660, !6, i64 664, !32, i64 672, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !7, i64 928, !7, i64 936, !16, i64 968, !16, i64 972, !16, i64 976, !18, i64 980}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTS8ImVectorIjE", !16, i64 0, !16, i64 4, !6, i64 8}
!21 = !{!"_ZTS19ImGuiWindowTempData", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !13, i64 56, !13, i64 60, !18, i64 64, !18, i64 65, !22, i64 68, !22, i64 72, !22, i64 76, !17, i64 80, !23, i64 88, !19, i64 92, !19, i64 94, !18, i64 96, !18, i64 97, !18, i64 98, !18, i64 99, !17, i64 100, !24, i64 108, !16, i64 136, !16, i64 140, !25, i64 144, !6, i64 160, !6, i64 168, !16, i64 176, !16, i64 180, !16, i64 184, !13, i64 188, !13, i64 192, !26, i64 200, !26, i64 216}
!22 = !{!"_ZTS6ImVec1", !13, i64 0}
!23 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!24 = !{!"_ZTS16ImGuiMenuColumns", !16, i64 0, !16, i64 4, !19, i64 8, !19, i64 10, !19, i64 12, !19, i64 14, !19, i64 16, !7, i64 18}
!25 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !16, i64 0, !16, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !6, i64 8}
!27 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!28 = !{!"_ZTS8ImVec2ih", !19, i64 0, !19, i64 2}
!29 = !{!"_ZTS12ImGuiStorage", !30, i64 0}
!30 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !16, i64 0, !16, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !16, i64 0, !16, i64 4, !6, i64 8}
!32 = !{!"_ZTS10ImDrawList", !33, i64 0, !34, i64 16, !35, i64 32, !16, i64 48, !16, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !36, i64 88, !37, i64 104, !38, i64 120, !39, i64 136, !41, i64 168, !13, i64 192}
!33 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !16, i64 0, !16, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI10ImDrawVertE", !16, i64 0, !16, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorI6ImVec4E", !16, i64 0, !16, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIPvE", !16, i64 0, !16, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI6ImVec2E", !16, i64 0, !16, i64 4, !6, i64 8}
!39 = !{!"_ZTS15ImDrawCmdHeader", !40, i64 0, !6, i64 16, !16, i64 24}
!40 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!41 = !{!"_ZTS18ImDrawListSplitter", !16, i64 0, !16, i64 4, !42, i64 8}
!42 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !6, i64 8}
!43 = !{!27, !13, i64 0}
!44 = !{!27, !13, i64 4}
!45 = !{!27, !13, i64 12}
!46 = !{!27, !13, i64 8}


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

@.str.4 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis = external hidden unnamed_addr constant [63 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis(ptr noundef nonnull %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.ImRect, align 8
  %4 = tail call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow4RectEv(ptr noundef nonnull align 8 dereferenceable(981) %0)
  %5 = extractvalue { <2 x float>, <2 x float> } %4, 0
  %6 = extractvalue { <2 x float>, <2 x float> } %4, 1
  %7 = getelementptr inbounds i8, ptr %0, i64 504
  %.sroa.0.0.copyload = load float, ptr %7, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 508
  %.sroa.4.0.copyload = load float, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 512
  %.sroa.5.0.copyload = load float, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 516
  %.sroa.6.0.copyload = load float, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 92
  %9 = load float, ptr %8, align 4, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %0, i64 172
  %11 = xor i32 %1, 1
  %12 = sext i32 %11 to i64
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6ImVec2ixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef %12)
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = fcmp ogt float %14, 0.000000e+00
  br i1 %15, label %17, label %16

16:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 882, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis) #5
  unreachable

17:                                               ; preds = %2
  %18 = icmp eq i32 %1, 0
  br i1 %18, label %19, label %23

19:                                               ; preds = %17
  %.sroa.05.4.vec.extract = extractelement <2 x float> %5, i64 1
  %.sroa.56.12.vec.extract = extractelement <2 x float> %6, i64 1
  %20 = fsub float %.sroa.56.12.vec.extract, %9
  %21 = fsub float %20, %14
  %22 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %.sroa.05.4.vec.extract, float noundef %21)
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %.sroa.0.0.copyload, float noundef %22, float noundef %.sroa.5.0.copyload, float noundef %.sroa.56.12.vec.extract)
  br label %27

23:                                               ; preds = %17
  %.sroa.05.0.vec.extract = extractelement <2 x float> %5, i64 0
  %.sroa.56.8.vec.extract = extractelement <2 x float> %6, i64 0
  %24 = fsub float %.sroa.56.8.vec.extract, %9
  %25 = fsub float %24, %14
  %26 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %.sroa.05.0.vec.extract, float noundef %25)
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %26, float noundef %.sroa.4.0.copyload, float noundef %.sroa.56.8.vec.extract, float noundef %.sroa.6.0.copyload)
  br label %27

27:                                               ; preds = %23, %19
  %.fca.0.load = load <2 x float>, ptr %3, align 8
  %.fca.0.insert = insertvalue { <2 x float>, <2 x float> } poison, <2 x float> %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %3, i64 8
  %.fca.1.load = load <2 x float>, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { <2 x float>, <2 x float> } %.fca.0.insert, <2 x float> %.fca.1.load, 1
  ret { <2 x float>, <2 x float> } %.fca.1.insert
}

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow4RectEv(ptr noundef nonnull align 8 dereferenceable(981)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6ImVec2ixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #3 align 2

attributes #0 = { 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 #1 = { noreturn nounwind "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 = { 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 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 = { 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 = { noreturn 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, !6, i64 92}
!10 = !{!"_ZTS11ImGuiWindow", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !11, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !13, i64 132, !13, i64 140, !13, i64 148, !13, i64 156, !13, i64 164, !13, i64 172, !14, i64 180, !14, i64 181, !14, i64 182, !14, i64 183, !14, i64 184, !14, i64 185, !14, i64 186, !14, i64 187, !14, i64 188, !14, i64 189, !14, i64 190, !14, i64 191, !14, i64 192, !7, i64 193, !15, i64 194, !15, i64 196, !15, i64 198, !15, i64 200, !15, i64 202, !12, i64 204, !7, i64 208, !7, i64 209, !7, i64 210, !14, i64 211, !12, i64 212, !7, i64 216, !7, i64 217, !7, i64 218, !7, i64 219, !12, i64 220, !12, i64 221, !12, i64 222, !13, i64 224, !13, i64 232, !16, i64 240, !17, i64 256, !23, i64 488, !23, i64 504, !23, i64 520, !23, i64 536, !23, i64 552, !23, i64 568, !23, i64 584, !24, i64 600, !24, i64 604, !12, i64 608, !6, i64 612, !6, i64 616, !25, i64 624, !27, i64 640, !6, i64 656, !12, i64 660, !11, i64 664, !28, i64 672, !11, i64 872, !11, i64 880, !11, i64 888, !11, i64 896, !11, i64 904, !11, i64 912, !11, i64 920, !7, i64 928, !7, i64 936, !12, i64 968, !12, i64 972, !12, i64 976, !14, i64 980}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS8ImVectorIjE", !12, i64 0, !12, i64 4, !11, i64 8}
!17 = !{!"_ZTS19ImGuiWindowTempData", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !6, i64 56, !6, i64 60, !14, i64 64, !14, i64 65, !18, i64 68, !18, i64 72, !18, i64 76, !13, i64 80, !19, i64 88, !15, i64 92, !15, i64 94, !14, i64 96, !14, i64 97, !14, i64 98, !14, i64 99, !13, i64 100, !20, i64 108, !12, i64 136, !12, i64 140, !21, i64 144, !11, i64 160, !11, i64 168, !12, i64 176, !12, i64 180, !12, i64 184, !6, i64 188, !6, i64 192, !22, i64 200, !22, i64 216}
!18 = !{!"_ZTS6ImVec1", !6, i64 0}
!19 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!20 = !{!"_ZTS16ImGuiMenuColumns", !12, i64 0, !12, i64 4, !15, i64 8, !15, i64 10, !15, i64 12, !15, i64 14, !15, i64 16, !7, i64 18}
!21 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !12, i64 0, !12, i64 4, !11, i64 8}
!22 = !{!"_ZTS8ImVectorIfE", !12, i64 0, !12, i64 4, !11, i64 8}
!23 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!24 = !{!"_ZTS8ImVec2ih", !15, i64 0, !15, i64 2}
!25 = !{!"_ZTS12ImGuiStorage", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !11, i64 8}
!27 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !12, i64 0, !12, i64 4, !11, i64 8}
!28 = !{!"_ZTS10ImDrawList", !29, i64 0, !30, i64 16, !31, i64 32, !12, i64 48, !12, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !32, i64 88, !33, i64 104, !34, i64 120, !35, i64 136, !37, i64 168, !6, i64 192}
!29 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !11, i64 8}
!30 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !11, i64 8}
!31 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !11, i64 8}
!32 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !11, i64 8}
!33 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !11, i64 8}
!34 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !11, i64 8}
!35 = !{!"_ZTS15ImDrawCmdHeader", !36, i64 0, !11, i64 16, !12, i64 24}
!36 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!37 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !38, i64 8}
!38 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !11, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass