; 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.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] }>
%struct.ImGuiTableColumn = type <{ i32, float, float, float, float, float, float, float, %struct.ImRect, i32, float, float, float, float, float, float, float, i16, i16, i16, i16, i16, i16, i16, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }>

@.str.1 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [78 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable = external hidden unnamed_addr constant [60 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [46 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ImGuiTable, ptr %10, i32 0, i32 77
  %12 = load i16, ptr %11, align 4, !tbaa !9
  %13 = sext i16 %12 to i32
  %14 = icmp ne i32 %13, -1
  br i1 %14, label %15, label %21

15:                                               ; preds = %1
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ImGuiTable, ptr %16, i32 0, i32 78
  %18 = load i16, ptr %17, align 2, !tbaa !27
  %19 = sext i16 %18 to i32
  %20 = icmp ne i32 %19, -1
  br label %21

21:                                               ; preds = %15, %1
  %22 = phi i1 [ false, %1 ], [ %20, %15 ]
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  br label %26

24:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.58, ptr noundef @.str.1, i32 noundef 2227, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable) #4
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store float 0.000000e+00, ptr %3, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store float 0.000000e+00, ptr %4, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !29
  br label %27

27:                                               ; preds = %72, %26
  %28 = load i32, ptr %5, align 4, !tbaa !29
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ImGuiTable, ptr %29, i32 0, i32 13
  %31 = load i32, ptr %30, align 4, !tbaa !30
  %32 = icmp slt i32 %28, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %27
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %75

34:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGuiTable, ptr %35, i32 0, i32 4
  %37 = load i32, ptr %5, align 4, !tbaa !29
  %38 = call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %36, i32 noundef %37)
  store ptr %38, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %39, i32 0, i32 26
  %41 = load i8, ptr %40, align 2, !tbaa !31, !range !33, !noundef !34
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %49

43:                                               ; preds = %34
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 4, !tbaa !35
  %47 = and i32 %46, 8
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %50, label %49

49:                                               ; preds = %43, %34
  store i32 4, ptr %6, align 4
  br label %69

50:                                               ; preds = %43
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %51, i32 0, i32 6
  %53 = load float, ptr %52, align 4, !tbaa !36
  %54 = fcmp ogt float %53, 0.000000e+00
  br i1 %54, label %55, label %56

55:                                               ; preds = %50
  br label %58

56:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.1, i32 noundef 2237, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable) #4
  unreachable

57:                                               ; No predecessors!
  br label %58

58:                                               ; preds = %57, %55
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %59, i32 0, i32 6
  %61 = load float, ptr %60, align 4, !tbaa !36
  %62 = load float, ptr %3, align 4, !tbaa !28
  %63 = fadd float %62, %61
  store float %63, ptr %3, align 4, !tbaa !28
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %64, i32 0, i32 4
  %66 = load float, ptr %65, align 4, !tbaa !37
  %67 = load float, ptr %4, align 4, !tbaa !28
  %68 = fadd float %67, %66
  store float %68, ptr %4, align 4, !tbaa !28
  store i32 0, ptr %6, align 4
  br label %69

69:                                               ; preds = %58, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %70 = load i32, ptr %6, align 4
  switch i32 %70, label %135 [
    i32 0, label %71
    i32 4, label %72
  ]

71:                                               ; preds = %69
  br label %72

72:                                               ; preds = %71, %69
  %73 = load i32, ptr %5, align 4, !tbaa !29
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %5, align 4, !tbaa !29
  br label %27, !llvm.loop !38

75:                                               ; preds = %33
  %76 = load float, ptr %3, align 4, !tbaa !28
  %77 = fcmp ogt float %76, 0.000000e+00
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load float, ptr %4, align 4, !tbaa !28
  %80 = fcmp ogt float %79, 0.000000e+00
  br label %81

81:                                               ; preds = %78, %75
  %82 = phi i1 [ false, %75 ], [ %80, %78 ]
  br i1 %82, label %83, label %84

83:                                               ; preds = %81
  br label %86

84:                                               ; preds = %81
  call void @__assert_fail(ptr noundef @.str.60, ptr noundef @.str.1, i32 noundef 2241, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable) #4
  unreachable

85:                                               ; No predecessors!
  br label %86

86:                                               ; preds = %85, %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !29
  br label %87

87:                                               ; preds = %131, %86
  %88 = load i32, ptr %8, align 4, !tbaa !29
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGuiTable, ptr %89, i32 0, i32 13
  %91 = load i32, ptr %90, align 4, !tbaa !30
  %92 = icmp slt i32 %88, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %87
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %134

94:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImGuiTable, ptr %95, i32 0, i32 4
  %97 = load i32, ptr %8, align 4, !tbaa !29
  %98 = call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %96, i32 noundef %97)
  store ptr %98, ptr %9, align 8, !tbaa !5
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %99, i32 0, i32 26
  %101 = load i8, ptr %100, align 2, !tbaa !31, !range !33, !noundef !34
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %109

103:                                              ; preds = %94
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 4, !tbaa !35
  %107 = and i32 %106, 8
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %110, label %109

109:                                              ; preds = %103, %94
  store i32 7, ptr %6, align 4
  br label %128

110:                                              ; preds = %103
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %111, i32 0, i32 4
  %113 = load float, ptr %112, align 4, !tbaa !37
  %114 = load float, ptr %4, align 4, !tbaa !28
  %115 = fdiv float %113, %114
  %116 = load float, ptr %3, align 4, !tbaa !28
  %117 = fmul float %115, %116
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %118, i32 0, i32 6
  store float %117, ptr %119, align 4, !tbaa !36
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %120, i32 0, i32 6
  %122 = load float, ptr %121, align 4, !tbaa !36
  %123 = fcmp ogt float %122, 0.000000e+00
  br i1 %123, label %124, label %125

124:                                              ; preds = %110
  br label %127

125:                                              ; preds = %110
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.1, i32 noundef 2250, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable) #4
  unreachable

126:                                              ; No predecessors!
  br label %127

127:                                              ; preds = %126, %124
  store i32 0, ptr %6, align 4
  br label %128

128:                                              ; preds = %127, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %129 = load i32, ptr %6, align 4
  switch i32 %129, label %135 [
    i32 0, label %130
    i32 7, label %131
  ]

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130, %128
  %132 = load i32, ptr %8, align 4, !tbaa !29
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %8, align 4, !tbaa !29
  br label %87, !llvm.loop !40

134:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void

135:                                              ; preds = %128, %69
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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 = { noreturn nounwind }
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, !15, i64 524}
!10 = !{!"_ZTS10ImGuiTable", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24, !13, i64 40, !14, i64 56, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !15, i64 120, !15, i64 122, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !11, i64 144, !11, i64 146, !11, i64 148, !7, i64 152, !11, i64 160, !11, i64 164, !16, i64 168, !16, i64 172, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !16, i64 192, !16, i64 196, !16, i64 200, !16, i64 204, !16, i64 208, !16, i64 212, !16, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !17, i64 232, !17, i64 248, !17, i64 264, !17, i64 280, !17, i64 296, !17, i64 312, !17, i64 328, !17, i64 344, !17, i64 360, !6, i64 376, !6, i64 384, !19, i64 392, !6, i64 408, !21, i64 416, !22, i64 432, !23, i64 448, !24, i64 464, !25, i64 480, !15, i64 496, !15, i64 498, !15, i64 500, !15, i64 502, !15, i64 504, !15, i64 506, !15, i64 508, !15, i64 510, !15, i64 512, !15, i64 514, !15, i64 516, !15, i64 518, !15, i64 520, !15, i64 522, !15, i64 524, !15, i64 526, !15, i64 528, !15, i64 530, !15, i64 532, !15, i64 534, !15, i64 536, !15, i64 538, !15, i64 540, !15, i64 542, !15, i64 544, !26, i64 546, !26, i64 547, !26, i64 548, !26, i64 549, !26, i64 550, !26, i64 551, !26, i64 552, !26, i64 553, !26, i64 554, !26, i64 555, !26, i64 556, !26, i64 557, !26, i64 558, !26, i64 559, !26, i64 560, !26, i64 561, !26, i64 562}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImSpanI16ImGuiTableColumnE", !6, i64 0, !6, i64 8}
!13 = !{!"_ZTS6ImSpanIsE", !6, i64 0, !6, i64 8}
!14 = !{!"_ZTS6ImSpanI18ImGuiTableCellDataE", !6, i64 0, !6, i64 8}
!15 = !{!"short", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS6ImRect", !18, i64 0, !18, i64 8}
!18 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!19 = !{!"_ZTS15ImGuiTextBuffer", !20, i64 0}
!20 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!21 = !{!"_ZTS22ImGuiTableInstanceData", !11, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!22 = !{!"_ZTS8ImVectorI22ImGuiTableInstanceDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!23 = !{!"_ZTS25ImGuiTableColumnSortSpecs", !11, i64 0, !15, i64 4, !15, i64 6, !11, i64 8}
!24 = !{!"_ZTS8ImVectorI25ImGuiTableColumnSortSpecsE", !11, i64 0, !11, i64 4, !6, i64 8}
!25 = !{!"_ZTS19ImGuiTableSortSpecs", !6, i64 0, !11, i64 8, !26, i64 12}
!26 = !{!"bool", !7, i64 0}
!27 = !{!10, !15, i64 526}
!28 = !{!16, !16, i64 0}
!29 = !{!11, !11, i64 0}
!30 = !{!10, !11, i64 108}
!31 = !{!32, !26, i64 98}
!32 = !{!"_ZTS16ImGuiTableColumn", !11, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !17, i64 32, !11, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !15, i64 80, !15, i64 82, !15, i64 84, !15, i64 86, !15, i64 88, !15, i64 90, !15, i64 92, !15, i64 94, !15, i64 96, !26, i64 98, !26, i64 99, !26, i64 100, !26, i64 101, !26, i64 102, !26, i64 103, !26, i64 104, !26, i64 105, !7, i64 106, !7, i64 107, !7, i64 108, !7, i64 109, !7, i64 109, !7, i64 109, !7, i64 110}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!32, !11, i64 0}
!36 = !{!32, !16, i64 24}
!37 = !{!32, !16, i64 16}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}


; 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"

@.str.1 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [78 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable = external hidden unnamed_addr constant [60 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [46 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable(ptr noundef %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 524
  %3 = load i16, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i16 %3, -1
  br i1 %.not, label %.critedge, label %4

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 526
  %6 = load i16, ptr %5, align 2, !tbaa !26
  %.not32 = icmp eq i16 %6, -1
  br i1 %.not32, label %.critedge, label %.preheader35

.preheader35:                                     ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 108
  %8 = load i32, ptr %7, align 4, !tbaa !27
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %.preheader35
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  br label %16

.critedge:                                        ; preds = %1, %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.58, ptr noundef nonnull @.str.1, i32 noundef 2227, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable) #3
  unreachable

._crit_edge:                                      ; preds = %34
  %11 = fcmp ogt float %.1, 0.000000e+00
  %12 = fcmp ogt float %.129, 0.000000e+00
  %13 = select i1 %11, i1 %12, i1 false
  br i1 %13, label %.preheader, label %._crit_edge.thread

.preheader:                                       ; preds = %._crit_edge
  %14 = icmp sgt i32 %36, 0
  br i1 %14, label %.lr.ph44, label %._crit_edge45

.lr.ph44:                                         ; preds = %.preheader
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  br label %38

16:                                               ; preds = %.lr.ph, %34
  %.041 = phi float [ 0.000000e+00, %.lr.ph ], [ %.1, %34 ]
  %.02840 = phi float [ 0.000000e+00, %.lr.ph ], [ %.129, %34 ]
  %.03039 = phi i32 [ 0, %.lr.ph ], [ %35, %34 ]
  %17 = tail call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %.03039)
  %18 = getelementptr inbounds i8, ptr %17, i64 98
  %19 = load i8, ptr %18, align 2, !tbaa !28, !range !30, !noundef !31
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %21, label %34

21:                                               ; preds = %16
  %22 = load i32, ptr %17, align 4, !tbaa !32
  %23 = and i32 %22, 8
  %.not34 = icmp eq i32 %23, 0
  br i1 %.not34, label %34, label %24

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %17, i64 24
  %26 = load float, ptr %25, align 4, !tbaa !33
  %27 = fcmp ogt float %26, 0.000000e+00
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  tail call void @__assert_fail(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.1, i32 noundef 2237, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable) #3
  unreachable

29:                                               ; preds = %24
  %30 = fadd float %.041, %26
  %31 = getelementptr inbounds i8, ptr %17, i64 16
  %32 = load float, ptr %31, align 4, !tbaa !34
  %33 = fadd float %.02840, %32
  br label %34

34:                                               ; preds = %16, %21, %29
  %.129 = phi float [ %33, %29 ], [ %.02840, %21 ], [ %.02840, %16 ]
  %.1 = phi float [ %30, %29 ], [ %.041, %21 ], [ %.041, %16 ]
  %35 = add nuw nsw i32 %.03039, 1
  %36 = load i32, ptr %7, align 4, !tbaa !27
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %16, label %._crit_edge, !llvm.loop !35

._crit_edge.thread:                               ; preds = %.preheader35, %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.60, ptr noundef nonnull @.str.1, i32 noundef 2241, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable) #3
  unreachable

._crit_edge45:                                    ; preds = %54, %.preheader
  ret void

38:                                               ; preds = %.lr.ph44, %54
  %.02743 = phi i32 [ 0, %.lr.ph44 ], [ %55, %54 ]
  %39 = tail call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %.02743)
  %40 = getelementptr inbounds i8, ptr %39, i64 98
  %41 = load i8, ptr %40, align 2, !tbaa !28, !range !30, !noundef !31
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %43, label %54

43:                                               ; preds = %38
  %44 = load i32, ptr %39, align 4, !tbaa !32
  %45 = and i32 %44, 8
  %.not33 = icmp eq i32 %45, 0
  br i1 %.not33, label %54, label %46

46:                                               ; preds = %43
  %47 = getelementptr inbounds i8, ptr %39, i64 16
  %48 = load float, ptr %47, align 4, !tbaa !34
  %49 = fdiv float %48, %.129
  %50 = fmul float %.1, %49
  %51 = getelementptr inbounds i8, ptr %39, i64 24
  store float %50, ptr %51, align 4, !tbaa !33
  %52 = fcmp ogt float %50, 0.000000e+00
  br i1 %52, label %54, label %53

53:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.1, i32 noundef 2250, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui33TableUpdateColumnsWeightFromWidthEP10ImGuiTable) #3
  unreachable

54:                                               ; preds = %46, %38, %43
  %55 = add nuw nsw i32 %.02743, 1
  %56 = load i32, ptr %7, align 4, !tbaa !27
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %38, label %._crit_edge45, !llvm.loop !37
}

attributes #0 = { 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 #1 = { 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 #2 = { 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 }

!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, !14, i64 524}
!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, !14, i64 526}
!27 = !{!6, !7, i64 108}
!28 = !{!29, !25, i64 98}
!29 = !{!"_ZTS16ImGuiTableColumn", !7, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !16, i64 32, !7, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !15, i64 76, !14, i64 80, !14, i64 82, !14, i64 84, !14, i64 86, !14, i64 88, !14, i64 90, !14, i64 92, !14, i64 94, !14, i64 96, !25, i64 98, !25, i64 99, !25, i64 100, !25, i64 101, !25, i64 102, !25, i64 103, !25, i64 104, !25, i64 105, !8, i64 106, !8, i64 107, !8, i64 108, !8, i64 109, !8, i64 109, !8, i64 109, !8, i64 110}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!29, !7, i64 0}
!33 = !{!29, !15, i64 24}
!34 = !{!29, !15, i64 16}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass