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

; 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.ImSpanAllocator = type { ptr, i32, i32, [6 x i32], [6 x i32] }
%struct.ImGuiTable = type <{ i32, i32, ptr, ptr, %struct.ImSpan, %struct.ImSpan.35, %struct.ImSpan.36, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i16, i16, float, float, float, float, float, i32, i32, [2 x i32], i32, i32, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, ptr, ptr, %struct.ImGuiTextBuffer, ptr, %struct.ImGuiTableInstanceData, %struct.ImVector.37, %struct.ImGuiTableColumnSortSpecs, [4 x i8], %struct.ImVector.38, %struct.ImGuiTableSortSpecs, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, [5 x i8] }>
%struct.ImSpan = type { ptr, ptr }
%struct.ImSpan.35 = type { ptr, ptr }
%struct.ImSpan.36 = type { ptr, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImGuiTableInstanceData = type { i32, float, float, float }
%struct.ImVector.37 = type { i32, i32, ptr }
%struct.ImGuiTableColumnSortSpecs = type <{ i32, i16, i16, i8, [3 x i8] }>
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImGuiTableSortSpecs = type <{ ptr, i32, i8, [3 x i8] }>

; 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: mustprogress uwtable
define dso_local void @_ZN5ImGui20TableBeginInitMemoryEP10ImGuiTablei(ptr noundef %0, i32 noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.ImSpanAllocator, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %8 = load i32, ptr %4, align 4, !tbaa !9
  %9 = call noundef i64 @_Z31ImBitArrayGetStorageSizeInBytesi(i32 noundef %8)
  %10 = trunc i64 %9 to i32
  store i32 %10, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #7
  call void @_ZN15ImSpanAllocatorILi6EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6)
  %11 = load i32, ptr %4, align 4, !tbaa !9
  %12 = sext i32 %11 to i64
  %13 = mul i64 %12, 112
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 0, i64 noundef %13, i32 noundef 4)
  %14 = load i32, ptr %4, align 4, !tbaa !9
  %15 = sext i32 %14 to i64
  %16 = mul i64 %15, 2
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 1, i64 noundef %16, i32 noundef 4)
  %17 = load i32, ptr %4, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = mul i64 %18, 8
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 2, i64 noundef %19, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 3, ptr %7, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %28, %2
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 6
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %31

24:                                               ; preds = %20
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef %25, i64 noundef %27, i32 noundef 4)
  br label %28

28:                                               ; preds = %24
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %7, align 4, !tbaa !9
  br label %20, !llvm.loop !11

31:                                               ; preds = %23
  %32 = call noundef i32 @_ZN15ImSpanAllocatorILi6EE19GetArenaSizeInBytesEv(ptr noundef nonnull align 8 dereferenceable(64) %6)
  %33 = sext i32 %32 to i64
  %34 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %33)
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGuiTable, ptr %35, i32 0, i32 2
  store ptr %34, ptr %36, align 8, !tbaa !13
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ImGuiTable, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = call noundef i32 @_ZN15ImSpanAllocatorILi6EE19GetArenaSizeInBytesEv(ptr noundef nonnull align 8 dereferenceable(64) %6)
  %41 = sext i32 %40 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %39, i8 0, i64 %41, i1 false)
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ImGuiTable, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  call void @_ZN15ImSpanAllocatorILi6EE15SetArenaBasePtrEPv(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef %44)
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImGuiTable, ptr %45, i32 0, i32 4
  call void @_ZN15ImSpanAllocatorILi6EE7GetSpanI16ImGuiTableColumnEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 0, ptr noundef %46)
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImGuiTable, ptr %47, i32 0, i32 5
  call void @_ZN15ImSpanAllocatorILi6EE7GetSpanIsEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 1, ptr noundef %48)
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImGuiTable, ptr %49, i32 0, i32 6
  call void @_ZN15ImSpanAllocatorILi6EE7GetSpanI18ImGuiTableCellDataEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 2, ptr noundef %50)
  %51 = call noundef ptr @_ZN15ImSpanAllocatorILi6EE15GetSpanPtrBeginEi(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 3)
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ImGuiTable, ptr %52, i32 0, i32 7
  store ptr %51, ptr %53, align 8, !tbaa !30
  %54 = call noundef ptr @_ZN15ImSpanAllocatorILi6EE15GetSpanPtrBeginEi(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 4)
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ImGuiTable, ptr %55, i32 0, i32 8
  store ptr %54, ptr %56, align 8, !tbaa !31
  %57 = call noundef ptr @_ZN15ImSpanAllocatorILi6EE15GetSpanPtrBeginEi(ptr noundef nonnull align 8 dereferenceable(64) %6, i32 noundef 5)
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ImGuiTable, ptr %58, i32 0, i32 9
  store ptr %57, ptr %59, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z31ImBitArrayGetStorageSizeInBytesi(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i64 noundef, i32 noundef) #2 align 2

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN15ImSpanAllocatorILi6EE19GetArenaSizeInBytesEv(ptr noundef nonnull align 8 dereferenceable(64)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE15SetArenaBasePtrEPv(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE7GetSpanI16ImGuiTableColumnEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE7GetSpanIsEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE7GetSpanI18ImGuiTableCellDataEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN15ImSpanAllocatorILi6EE15GetSpanPtrBeginEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint 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 = { 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS10ImGuiTable", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !15, i64 24, !16, i64 40, !17, i64 56, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !18, i64 120, !18, i64 122, !19, i64 124, !19, i64 128, !19, i64 132, !19, i64 136, !19, i64 140, !10, i64 144, !10, i64 146, !10, i64 148, !7, i64 152, !10, i64 160, !10, i64 164, !19, i64 168, !19, i64 172, !19, i64 176, !19, i64 180, !19, i64 184, !19, i64 188, !19, i64 192, !19, i64 196, !19, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !19, i64 220, !19, i64 224, !19, i64 228, !20, i64 232, !20, i64 248, !20, i64 264, !20, i64 280, !20, i64 296, !20, i64 312, !20, i64 328, !20, i64 344, !20, i64 360, !6, i64 376, !6, i64 384, !22, i64 392, !6, i64 408, !24, i64 416, !25, i64 432, !26, i64 448, !27, i64 464, !28, i64 480, !18, i64 496, !18, i64 498, !18, i64 500, !18, i64 502, !18, i64 504, !18, i64 506, !18, i64 508, !18, i64 510, !18, i64 512, !18, i64 514, !18, i64 516, !18, i64 518, !18, i64 520, !18, i64 522, !18, i64 524, !18, i64 526, !18, i64 528, !18, i64 530, !18, i64 532, !18, i64 534, !18, i64 536, !18, i64 538, !18, i64 540, !18, i64 542, !18, i64 544, !29, i64 546, !29, i64 547, !29, i64 548, !29, i64 549, !29, i64 550, !29, i64 551, !29, i64 552, !29, i64 553, !29, i64 554, !29, i64 555, !29, i64 556, !29, i64 557, !29, i64 558, !29, i64 559, !29, i64 560, !29, i64 561, !29, i64 562}
!15 = !{!"_ZTS6ImSpanI16ImGuiTableColumnE", !6, i64 0, !6, i64 8}
!16 = !{!"_ZTS6ImSpanIsE", !6, i64 0, !6, i64 8}
!17 = !{!"_ZTS6ImSpanI18ImGuiTableCellDataE", !6, i64 0, !6, i64 8}
!18 = !{!"short", !7, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTS6ImRect", !21, i64 0, !21, i64 8}
!21 = !{!"_ZTS6ImVec2", !19, i64 0, !19, i64 4}
!22 = !{!"_ZTS15ImGuiTextBuffer", !23, i64 0}
!23 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!24 = !{!"_ZTS22ImGuiTableInstanceData", !10, i64 0, !19, i64 4, !19, i64 8, !19, i64 12}
!25 = !{!"_ZTS8ImVectorI22ImGuiTableInstanceDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!26 = !{!"_ZTS25ImGuiTableColumnSortSpecs", !10, i64 0, !18, i64 4, !18, i64 6, !10, i64 8}
!27 = !{!"_ZTS8ImVectorI25ImGuiTableColumnSortSpecsE", !10, i64 0, !10, i64 4, !6, i64 8}
!28 = !{!"_ZTS19ImGuiTableSortSpecs", !6, i64 0, !10, i64 8, !29, i64 12}
!29 = !{!"bool", !7, i64 0}
!30 = !{!14, !6, i64 72}
!31 = !{!14, !6, i64 80}
!32 = !{!14, !6, i64 88}


; 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.ImSpanAllocator = type { ptr, i32, i32, [6 x i32], [6 x i32] }

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui20TableBeginInitMemoryEP10ImGuiTablei(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.ImSpanAllocator, align 8
  %4 = tail call noundef i64 @_Z31ImBitArrayGetStorageSizeInBytesi(i32 noundef %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #7
  call void @_ZN15ImSpanAllocatorILi6EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %3)
  %5 = sext i32 %1 to i64
  %6 = mul nsw i64 %5, 112
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 0, i64 noundef %6, i32 noundef 4)
  %7 = shl nsw i64 %5, 1
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 1, i64 noundef %7, i32 noundef 4)
  %8 = shl nsw i64 %5, 3
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 2, i64 noundef %8, i32 noundef 4)
  %sext = shl i64 %4, 32
  %9 = ashr exact i64 %sext, 32
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 3, i64 noundef %9, i32 noundef 4)
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 4, i64 noundef %9, i32 noundef 4)
  call void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 5, i64 noundef %9, i32 noundef 4)
  %10 = call noundef i32 @_ZN15ImSpanAllocatorILi6EE19GetArenaSizeInBytesEv(ptr noundef nonnull align 8 dereferenceable(64) %3)
  %11 = sext i32 %10 to i64
  %12 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %11)
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %12, ptr %13, align 8, !tbaa !5
  %14 = call noundef i32 @_ZN15ImSpanAllocatorILi6EE19GetArenaSizeInBytesEv(ptr noundef nonnull align 8 dereferenceable(64) %3)
  %15 = sext i32 %14 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %12, i8 0, i64 %15, i1 false)
  %16 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN15ImSpanAllocatorILi6EE15SetArenaBasePtrEPv(ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN15ImSpanAllocatorILi6EE7GetSpanI16ImGuiTableColumnEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 0, ptr noundef nonnull %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZN15ImSpanAllocatorILi6EE7GetSpanIsEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 1, ptr noundef nonnull %18)
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  call void @_ZN15ImSpanAllocatorILi6EE7GetSpanI18ImGuiTableCellDataEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 2, ptr noundef nonnull %19)
  %20 = call noundef ptr @_ZN15ImSpanAllocatorILi6EE15GetSpanPtrBeginEi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 3)
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %20, ptr %21, align 8, !tbaa !26
  %22 = call noundef ptr @_ZN15ImSpanAllocatorILi6EE15GetSpanPtrBeginEi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 4)
  %23 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %22, ptr %23, align 8, !tbaa !27
  %24 = call noundef ptr @_ZN15ImSpanAllocatorILi6EE15GetSpanPtrBeginEi(ptr noundef nonnull align 8 dereferenceable(64) %3, i32 noundef 5)
  %25 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %24, ptr %25, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z31ImBitArrayGetStorageSizeInBytesi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE7ReserveEimi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN15ImSpanAllocatorILi6EE19GetArenaSizeInBytesEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE15SetArenaBasePtrEPv(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE7GetSpanI16ImGuiTableColumnEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE7GetSpanIsEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN15ImSpanAllocatorILi6EE7GetSpanI18ImGuiTableCellDataEEviP6ImSpanIT_E(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN15ImSpanAllocatorILi6EE15GetSpanPtrBeginEi(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint 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 = { 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, !10, i64 8}
!6 = !{!"_ZTS10ImGuiTable", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !12, i64 40, !13, i64 56, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !14, i64 120, !14, i64 122, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !7, i64 144, !7, i64 146, !7, i64 148, !8, i64 152, !7, i64 160, !7, i64 164, !15, i64 168, !15, i64 172, !15, i64 176, !15, i64 180, !15, i64 184, !15, i64 188, !15, i64 192, !15, i64 196, !15, i64 200, !15, i64 204, !15, i64 208, !15, i64 212, !15, i64 216, !15, i64 220, !15, i64 224, !15, i64 228, !16, i64 232, !16, i64 248, !16, i64 264, !16, i64 280, !16, i64 296, !16, i64 312, !16, i64 328, !16, i64 344, !16, i64 360, !10, i64 376, !10, i64 384, !18, i64 392, !10, i64 408, !20, i64 416, !21, i64 432, !22, i64 448, !23, i64 464, !24, i64 480, !14, i64 496, !14, i64 498, !14, i64 500, !14, i64 502, !14, i64 504, !14, i64 506, !14, i64 508, !14, i64 510, !14, i64 512, !14, i64 514, !14, i64 516, !14, i64 518, !14, i64 520, !14, i64 522, !14, i64 524, !14, i64 526, !14, i64 528, !14, i64 530, !14, i64 532, !14, i64 534, !14, i64 536, !14, i64 538, !14, i64 540, !14, i64 542, !14, i64 544, !25, i64 546, !25, i64 547, !25, i64 548, !25, i64 549, !25, i64 550, !25, i64 551, !25, i64 552, !25, i64 553, !25, i64 554, !25, i64 555, !25, i64 556, !25, i64 557, !25, i64 558, !25, i64 559, !25, i64 560, !25, i64 561, !25, i64 562}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS6ImSpanI16ImGuiTableColumnE", !10, i64 0, !10, i64 8}
!12 = !{!"_ZTS6ImSpanIsE", !10, i64 0, !10, i64 8}
!13 = !{!"_ZTS6ImSpanI18ImGuiTableCellDataE", !10, i64 0, !10, i64 8}
!14 = !{!"short", !8, i64 0}
!15 = !{!"float", !8, i64 0}
!16 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!17 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!18 = !{!"_ZTS15ImGuiTextBuffer", !19, i64 0}
!19 = !{!"_ZTS8ImVectorIcE", !7, i64 0, !7, i64 4, !10, i64 8}
!20 = !{!"_ZTS22ImGuiTableInstanceData", !7, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!21 = !{!"_ZTS8ImVectorI22ImGuiTableInstanceDataE", !7, i64 0, !7, i64 4, !10, i64 8}
!22 = !{!"_ZTS25ImGuiTableColumnSortSpecs", !7, i64 0, !14, i64 4, !14, i64 6, !7, i64 8}
!23 = !{!"_ZTS8ImVectorI25ImGuiTableColumnSortSpecsE", !7, i64 0, !7, i64 4, !10, i64 8}
!24 = !{!"_ZTS19ImGuiTableSortSpecs", !10, i64 0, !7, i64 8, !25, i64 12}
!25 = !{!"bool", !8, i64 0}
!26 = !{!6, !10, i64 72}
!27 = !{!6, !10, i64 80}
!28 = !{!6, !10, i64 88}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass