; LLVM IR from l1mey112/yr11-physics-applied :: cimgui/imgui/imgui.ll (ZN5ImGui15DebugNodeTabBarEP11ImGuiTabBarPKc)

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

%struct.ImVec2 = type { float, float }
%struct.ImGuiTabBar = type { %struct.ImVector.47, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, float, float, float, float, float, float, float, float, float, float, i32, i16, i8, i8, i8, i8, i16, i16, float, %struct.ImVec2, %struct.ImVec2, %struct.ImGuiTextBuffer }
%struct.ImVector.47 = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImGuiTabItem = type <{ i32, i32, i32, i32, float, float, float, float, i32, i16, i16, i8, [3 x i8] }>

@.str.17 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.502 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.503 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.504 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.505 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.506 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.507 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.508 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.509 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.510 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.511 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.512 = external hidden unnamed_addr constant [54 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: 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui14PushStyleColorEiRK6ImVec4(i32 noundef, ptr noundef nonnull align 4 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui13PopStyleColorEi(i32 noundef) #3

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) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui21GetForegroundDrawListEv() #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5ImGui13GetFrameCountEv() #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui6PushIDEPKv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui5PopIDEv() #3

declare void @_ZN5ImGui7TreePopEv() #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ImGui8SameLineEff(float noundef, float noundef) #1

declare void @_ZN5ImGui4TextEPKcz(ptr noundef, ...) #4

declare noundef zeroext i1 @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef, ptr noundef, ...) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui15DebugNodeTabBarEP11ImGuiTabBarPKc(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [256 x i8], align 16
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %19 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  store ptr %19, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %20 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %21 = getelementptr inbounds i8, ptr %20, i64 256
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImGuiTabBar, ptr %22, i32 0, i32 7
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = call noundef i32 @_ZN5ImGui13GetFrameCountEv()
  %26 = sub nsw i32 %25, 2
  %27 = icmp sge i32 %24, %26
  %28 = zext i1 %27 to i8
  store i8 %28, ptr %8, align 1, !tbaa !20
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = ptrtoint ptr %30 to i64
  %33 = ptrtoint ptr %31 to i64
  %34 = sub i64 %32, %33
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImGuiTabBar, ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiTabBar, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds %struct.ImVector.47, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !22
  %43 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %44 = trunc i8 %43 to i1
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, ptr @.str.17, ptr @.str.503
  %47 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %29, i64 noundef %34, ptr noundef @.str.502, ptr noundef %35, i32 noundef %38, i32 noundef %42, ptr noundef %46)
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = sext i32 %47 to i64
  %50 = getelementptr inbounds i8, ptr %48, i64 %49
  store ptr %50, ptr %6, align 8, !tbaa !5
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = ptrtoint ptr %52 to i64
  %55 = ptrtoint ptr %53 to i64
  %56 = sub i64 %54, %55
  %57 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %51, i64 noundef %56, ptr noundef @.str.504)
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = sext i32 %57 to i64
  %60 = getelementptr inbounds i8, ptr %58, i64 %59
  store ptr %60, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !25
  br label %61

61:                                               ; preds = %100, %2
  %62 = load i32, ptr %9, align 4, !tbaa !25
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImGuiTabBar, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %struct.ImVector.47, ptr %64, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !22
  %67 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %66, i32 noundef 3)
  %68 = icmp slt i32 %62, %67
  br i1 %68, label %70, label %69

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

70:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImGuiTabBar, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %9, align 4, !tbaa !25
  %74 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %72, i32 noundef %73)
  store ptr %74, ptr %10, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = ptrtoint ptr %76 to i64
  %79 = ptrtoint ptr %77 to i64
  %80 = sub i64 %78, %79
  %81 = load i32, ptr %9, align 4, !tbaa !25
  %82 = icmp sgt i32 %81, 0
  %83 = zext i1 %82 to i64
  %84 = select i1 %82, ptr @.str.506, ptr @.str.17
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImGuiTabItem, ptr %85, i32 0, i32 8
  %87 = load i32, ptr %86, align 4, !tbaa !26
  %88 = icmp ne i32 %87, -1
  br i1 %88, label %89, label %93

89:                                               ; preds = %70
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = call noundef ptr @_ZNK11ImGuiTabBar10GetTabNameEPK12ImGuiTabItem(ptr noundef nonnull align 8 dereferenceable(152) %90, ptr noundef %91)
  br label %94

93:                                               ; preds = %70
  br label %94

94:                                               ; preds = %93, %89
  %95 = phi ptr [ %92, %89 ], [ @.str.507, %93 ]
  %96 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %75, i64 noundef %80, ptr noundef @.str.505, ptr noundef %84, ptr noundef %95)
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = sext i32 %96 to i64
  %99 = getelementptr inbounds i8, ptr %97, i64 %98
  store ptr %99, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %100

100:                                              ; preds = %94
  %101 = load i32, ptr %9, align 4, !tbaa !25
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %9, align 4, !tbaa !25
  br label %61, !llvm.loop !28

103:                                              ; preds = %69
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = ptrtoint ptr %105 to i64
  %108 = ptrtoint ptr %106 to i64
  %109 = sub i64 %107, %108
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.ImGuiTabBar, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %struct.ImVector.47, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !22
  %114 = icmp sgt i32 %113, 3
  %115 = zext i1 %114 to i64
  %116 = select i1 %114, ptr @.str.508, ptr @.str.509
  %117 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %104, i64 noundef %109, ptr noundef %116)
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = sext i32 %117 to i64
  %120 = getelementptr inbounds i8, ptr %118, i64 %119
  store ptr %120, ptr %6, align 8, !tbaa !5
  %121 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %122 = trunc i8 %121 to i1
  br i1 %122, label %125, label %123

123:                                              ; preds = %103
  %124 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 1)
  call void @_ZN5ImGui14PushStyleColorEiRK6ImVec4(i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(16) %124)
  br label %125

125:                                              ; preds = %123, %103
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %128 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %126, ptr noundef @.str.394, ptr noundef %127)
  %129 = zext i1 %128 to i8
  store i8 %129, ptr %11, align 1, !tbaa !20
  %130 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %131 = trunc i8 %130 to i1
  br i1 %131, label %133, label %132

132:                                              ; preds = %125
  call void @_ZN5ImGui13PopStyleColorEi(i32 noundef 1)
  br label %133

133:                                              ; preds = %132, %125
  %134 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %181

136:                                              ; preds = %133
  %137 = call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 0)
  br i1 %137, label %138, label %181

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %139 = call noundef ptr @_ZN5ImGui21GetForegroundDrawListEv()
  store ptr %139, ptr %12, align 8, !tbaa !5
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ImGuiTabBar, ptr %141, i32 0, i32 8
  %143 = getelementptr inbounds %struct.ImRect, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ImGuiTabBar, ptr %144, i32 0, i32 8
  %146 = getelementptr inbounds %struct.ImRect, ptr %145, i32 0, i32 1
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %140, ptr noundef nonnull align 4 dereferenceable(8) %143, ptr noundef nonnull align 4 dereferenceable(8) %146, i32 noundef -16711681, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ImGuiTabBar, ptr %148, i32 0, i32 17
  %150 = load float, ptr %149, align 4, !tbaa !30
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ImGuiTabBar, ptr %151, i32 0, i32 8
  %153 = getelementptr inbounds %struct.ImRect, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds %struct.ImVec2, ptr %153, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !31
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %150, float noundef %155)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ImGuiTabBar, ptr %156, i32 0, i32 17
  %158 = load float, ptr %157, align 4, !tbaa !30
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ImGuiTabBar, ptr %159, i32 0, i32 8
  %161 = getelementptr inbounds %struct.ImRect, ptr %160, i32 0, i32 1
  %162 = getelementptr inbounds %struct.ImVec2, ptr %161, i32 0, i32 1
  %163 = load float, ptr %162, align 4, !tbaa !32
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %158, float noundef %163)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %147, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef -16711936, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.ImGuiTabBar, ptr %165, i32 0, i32 18
  %167 = load float, ptr %166, align 8, !tbaa !33
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ImGuiTabBar, ptr %168, i32 0, i32 8
  %170 = getelementptr inbounds %struct.ImRect, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds %struct.ImVec2, ptr %170, i32 0, i32 1
  %172 = load float, ptr %171, align 4, !tbaa !31
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %167, float noundef %172)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.ImGuiTabBar, ptr %173, i32 0, i32 18
  %175 = load float, ptr %174, align 8, !tbaa !33
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.ImGuiTabBar, ptr %176, i32 0, i32 8
  %178 = getelementptr inbounds %struct.ImRect, ptr %177, i32 0, i32 1
  %179 = getelementptr inbounds %struct.ImVec2, ptr %178, i32 0, i32 1
  %180 = load float, ptr %179, align 4, !tbaa !32
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %175, float noundef %180)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %164, ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef -16711936, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %181

181:                                              ; preds = %138, %136, %133
  %182 = load i8, ptr %11, align 1, !tbaa !20, !range !23, !noundef !24
  %183 = trunc i8 %182 to i1
  br i1 %183, label %184, label %250

184:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !25
  br label %185

185:                                              ; preds = %246, %184
  %186 = load i32, ptr %17, align 4, !tbaa !25
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.ImGuiTabBar, ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds %struct.ImVector.47, ptr %188, i32 0, i32 0
  %190 = load i32, ptr %189, align 8, !tbaa !22
  %191 = icmp slt i32 %186, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %249

193:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ImGuiTabBar, ptr %194, i32 0, i32 0
  %196 = load i32, ptr %17, align 4, !tbaa !25
  %197 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %195, i32 noundef %196)
  store ptr %197, ptr %18, align 8, !tbaa !5
  %198 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui6PushIDEPKv(ptr noundef %198)
  %199 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef @.str.510)
  br i1 %199, label %200, label %203

200:                                              ; preds = %193
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarPK12ImGuiTabItemi(ptr noundef %201, ptr noundef %202, i32 noundef -1)
  br label %203

203:                                              ; preds = %200, %193
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef 2.000000e+00)
  %204 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef @.str.511)
  br i1 %204, label %205, label %208

205:                                              ; preds = %203
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarPK12ImGuiTabItemi(ptr noundef %206, ptr noundef %207, i32 noundef 1)
  br label %208

208:                                              ; preds = %205, %203
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %209 = load i32, ptr %17, align 4, !tbaa !25
  %210 = load ptr, ptr %18, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.ImGuiTabItem, ptr %210, i32 0, i32 0
  %212 = load i32, ptr %211, align 4, !tbaa !34
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.ImGuiTabBar, ptr %213, i32 0, i32 3
  %215 = load i32, ptr %214, align 8, !tbaa !35
  %216 = icmp eq i32 %212, %215
  %217 = zext i1 %216 to i64
  %218 = select i1 %216, i8 42, i8 32
  %219 = sext i8 %218 to i32
  %220 = load ptr, ptr %18, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.ImGuiTabItem, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 4, !tbaa !34
  %223 = load ptr, ptr %18, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.ImGuiTabItem, ptr %223, i32 0, i32 8
  %225 = load i32, ptr %224, align 4, !tbaa !26
  %226 = icmp ne i32 %225, -1
  br i1 %226, label %227, label %231

227:                                              ; preds = %208
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = load ptr, ptr %18, align 8, !tbaa !5
  %230 = call noundef ptr @_ZNK11ImGuiTabBar10GetTabNameEPK12ImGuiTabItem(ptr noundef nonnull align 8 dereferenceable(152) %228, ptr noundef %229)
  br label %232

231:                                              ; preds = %208
  br label %232

232:                                              ; preds = %231, %227
  %233 = phi ptr [ %230, %227 ], [ @.str.507, %231 ]
  %234 = load ptr, ptr %18, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.ImGuiTabItem, ptr %234, i32 0, i32 4
  %236 = load float, ptr %235, align 4, !tbaa !36
  %237 = fpext float %236 to double
  %238 = load ptr, ptr %18, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.ImGuiTabItem, ptr %238, i32 0, i32 5
  %240 = load float, ptr %239, align 4, !tbaa !37
  %241 = fpext float %240 to double
  %242 = load ptr, ptr %18, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.ImGuiTabItem, ptr %242, i32 0, i32 6
  %244 = load float, ptr %243, align 4, !tbaa !38
  %245 = fpext float %244 to double
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef @.str.512, i32 noundef %209, i32 noundef %219, i32 noundef %222, ptr noundef %233, double noundef %237, double noundef %241, double noundef %245)
  call void @_ZN5ImGui5PopIDEv()
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %246

246:                                              ; preds = %232
  %247 = load i32, ptr %17, align 4, !tbaa !25
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %17, align 4, !tbaa !25
  br label %185, !llvm.loop !39

249:                                              ; preds = %192
  call void @_ZN5ImGui7TreePopEv()
  br label %250

250:                                              ; preds = %249, %181
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #5
  ret void
}

declare noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11ImGuiTabBar10GetTabNameEPK12ImGuiTabItem(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #1 align 2

declare void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(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) #4

declare void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarPK12ImGuiTabItemi(ptr noundef, ptr noundef, i32 noundef) #4

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 = { 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 = { "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 = { 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, !12, i64 40}
!10 = !{!"_ZTS11ImGuiTabBar", !11, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !13, i64 44, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !15, i64 92, !15, i64 96, !12, i64 100, !16, i64 104, !7, i64 106, !17, i64 107, !17, i64 108, !17, i64 109, !16, i64 110, !16, i64 112, !15, i64 116, !14, i64 120, !14, i64 128, !18, i64 136}
!11 = !{!"_ZTS8ImVectorI12ImGuiTabItemE", !12, i64 0, !12, i64 4, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS15ImGuiTextBuffer", !19, i64 0}
!19 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !6, i64 8}
!20 = !{!17, !17, i64 0}
!21 = !{!10, !12, i64 20}
!22 = !{!10, !12, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!12, !12, i64 0}
!26 = !{!27, !12, i64 32}
!27 = !{!"_ZTS12ImGuiTabItem", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !12, i64 32, !16, i64 36, !16, i64 38, !17, i64 40}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!10, !15, i64 92}
!31 = !{!10, !15, i64 48}
!32 = !{!10, !15, i64 56}
!33 = !{!10, !15, i64 96}
!34 = !{!27, !12, i64 0}
!35 = !{!10, !12, i64 24}
!36 = !{!27, !15, i64 16}
!37 = !{!27, !15, i64 20}
!38 = !{!27, !15, i64 24}
!39 = distinct !{!39, !29}


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

%struct.ImVec2 = type { float, float }

@.str.17 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.502 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.503 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.504 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.505 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.506 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.507 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.508 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.509 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.510 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.511 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.512 = external hidden unnamed_addr constant [54 x i8], align 1

; 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui14PushStyleColorEiRK6ImVec4(i32 noundef, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui13PopStyleColorEi(i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui21GetForegroundDrawListEv() local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5ImGui13GetFrameCountEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui6PushIDEPKv(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui5PopIDEv() local_unnamed_addr #3

declare void @_ZN5ImGui7TreePopEv() local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ImGui8SameLineEff(float noundef, float noundef) local_unnamed_addr #1

declare void @_ZN5ImGui4TextEPKcz(ptr noundef, ...) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui15DebugNodeTabBarEP11ImGuiTabBarPKc(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca [256 x i8], align 16
  %4 = alloca %struct.ImVec2, align 4
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #5
  %8 = getelementptr inbounds i8, ptr %3, i64 256
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = tail call noundef i32 @_ZN5ImGui13GetFrameCountEv()
  %12 = add nsw i32 %11, -2
  %.not = icmp slt i32 %10, %12
  %13 = ptrtoint ptr %8 to i64
  %14 = getelementptr inbounds i8, ptr %0, i64 20
  %15 = load i32, ptr %14, align 4, !tbaa !19
  %16 = load i32, ptr %0, align 8, !tbaa !20
  %17 = select i1 %.not, ptr @.str.503, ptr @.str.17
  %18 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %3, i64 noundef 256, ptr noundef nonnull @.str.502, ptr noundef %1, i32 noundef %15, i32 noundef %16, ptr noundef nonnull %17)
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i8, ptr %3, i64 %19
  %gepdiff = sub nsw i64 256, %19
  %21 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %20, i64 noundef %gepdiff, ptr noundef nonnull @.str.504)
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds i8, ptr %20, i64 %22
  %24 = load i32, ptr %0, align 8, !tbaa !20
  %25 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %24, i32 noundef 3)
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %2
  %27 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %28 = ptrtoint ptr %23 to i64
  %29 = sub i64 %13, %28
  %30 = getelementptr inbounds i8, ptr %27, i64 32
  %31 = load i32, ptr %30, align 4, !tbaa !21
  %.not72.peel = icmp eq i32 %31, -1
  br i1 %.not72.peel, label %34, label %32

32:                                               ; preds = %.lr.ph.preheader
  %33 = call noundef ptr @_ZNK11ImGuiTabBar10GetTabNameEPK12ImGuiTabItem(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %27)
  br label %34

34:                                               ; preds = %32, %.lr.ph.preheader
  %35 = phi ptr [ %33, %32 ], [ @.str.507, %.lr.ph.preheader ]
  %36 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %23, i64 noundef %29, ptr noundef nonnull @.str.505, ptr noundef nonnull @.str.17, ptr noundef %35)
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i8, ptr %23, i64 %37
  %39 = load i32, ptr %0, align 8, !tbaa !20
  %40 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %39, i32 noundef 3)
  %41 = icmp sgt i32 %40, 1
  br i1 %41, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %55, %34, %2
  %.0.lcssa = phi ptr [ %23, %2 ], [ %38, %34 ], [ %59, %55 ]
  %42 = ptrtoint ptr %.0.lcssa to i64
  %43 = sub i64 %13, %42
  %44 = load i32, ptr %0, align 8, !tbaa !20
  %45 = icmp sgt i32 %44, 3
  %46 = select i1 %45, ptr @.str.508, ptr @.str.509
  %47 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %.0.lcssa, i64 noundef %43, ptr noundef nonnull %46)
  br i1 %.not, label %64, label %.critedge

.lr.ph:                                           ; preds = %34, %55
  %.074 = phi ptr [ %59, %55 ], [ %38, %34 ]
  %.06973 = phi i32 [ %60, %55 ], [ 1, %34 ]
  %48 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.06973)
  %49 = ptrtoint ptr %.074 to i64
  %50 = sub i64 %13, %49
  %51 = getelementptr inbounds i8, ptr %48, i64 32
  %52 = load i32, ptr %51, align 4, !tbaa !21
  %.not72 = icmp eq i32 %52, -1
  br i1 %.not72, label %55, label %53

53:                                               ; preds = %.lr.ph
  %54 = call noundef ptr @_ZNK11ImGuiTabBar10GetTabNameEPK12ImGuiTabItem(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %48)
  br label %55

55:                                               ; preds = %.lr.ph, %53
  %56 = phi ptr [ %54, %53 ], [ @.str.507, %.lr.ph ]
  %57 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %.074, i64 noundef %50, ptr noundef nonnull @.str.505, ptr noundef nonnull @.str.506, ptr noundef %56)
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %.074, i64 %58
  %60 = add nuw nsw i32 %.06973, 1
  %61 = load i32, ptr %0, align 8, !tbaa !20
  %62 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %61, i32 noundef 3)
  %63 = icmp slt i32 %60, %62
  br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !23

64:                                               ; preds = %._crit_edge
  %65 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 1)
  call void @_ZN5ImGui14PushStyleColorEiRK6ImVec4(i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(16) %65)
  %66 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %1, ptr noundef nonnull @.str.394, ptr noundef nonnull %3)
  call void @_ZN5ImGui13PopStyleColorEi(i32 noundef 1)
  br i1 %66, label %.preheader, label %119

.critedge:                                        ; preds = %._crit_edge
  %67 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %1, ptr noundef nonnull @.str.394, ptr noundef nonnull %3)
  %68 = call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 0)
  br i1 %68, label %69, label %85

69:                                               ; preds = %.critedge
  %70 = call noundef ptr @_ZN5ImGui21GetForegroundDrawListEv()
  %71 = getelementptr inbounds i8, ptr %0, i64 44
  %72 = getelementptr inbounds i8, ptr %0, i64 52
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %70, ptr noundef nonnull align 4 dereferenceable(8) %71, ptr noundef nonnull align 4 dereferenceable(8) %72, i32 noundef -16711681, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %73 = getelementptr inbounds i8, ptr %0, i64 92
  %74 = load float, ptr %73, align 4, !tbaa !26
  %75 = getelementptr inbounds i8, ptr %0, i64 48
  %76 = load float, ptr %75, align 4, !tbaa !27
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %74, float noundef %76)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %77 = load float, ptr %73, align 4, !tbaa !26
  %78 = getelementptr inbounds i8, ptr %0, i64 56
  %79 = load float, ptr %78, align 4, !tbaa !28
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %77, float noundef %79)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %70, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef -16711936, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %80 = getelementptr inbounds i8, ptr %0, i64 96
  %81 = load float, ptr %80, align 8, !tbaa !29
  %82 = load float, ptr %75, align 4, !tbaa !27
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %81, float noundef %82)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %83 = load float, ptr %80, align 8, !tbaa !29
  %84 = load float, ptr %78, align 4, !tbaa !28
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %83, float noundef %84)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %70, ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef -16711936, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %67, label %.preheader, label %119

85:                                               ; preds = %.critedge
  br i1 %67, label %.preheader, label %119

.preheader:                                       ; preds = %85, %64, %69
  %86 = load i32, ptr %0, align 8, !tbaa !20
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph76, label %._crit_edge77

.lr.ph76:                                         ; preds = %.preheader
  %88 = getelementptr inbounds i8, ptr %0, i64 24
  br label %89

._crit_edge77:                                    ; preds = %105, %.preheader
  call void @_ZN5ImGui7TreePopEv()
  br label %119

89:                                               ; preds = %.lr.ph76, %105
  %.06875 = phi i32 [ 0, %.lr.ph76 ], [ %116, %105 ]
  %90 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.06875)
  call void @_ZN5ImGui6PushIDEPKv(ptr noundef nonnull %90)
  %91 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef nonnull @.str.510)
  br i1 %91, label %92, label %93

92:                                               ; preds = %89
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarPK12ImGuiTabItemi(ptr noundef nonnull %0, ptr noundef nonnull %90, i32 noundef -1)
  br label %93

93:                                               ; preds = %92, %89
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef 2.000000e+00)
  %94 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef nonnull @.str.511)
  br i1 %94, label %95, label %96

95:                                               ; preds = %93
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarPK12ImGuiTabItemi(ptr noundef nonnull %0, ptr noundef nonnull %90, i32 noundef 1)
  br label %96

96:                                               ; preds = %95, %93
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %97 = load i32, ptr %90, align 4, !tbaa !30
  %98 = load i32, ptr %88, align 8, !tbaa !31
  %99 = icmp eq i32 %97, %98
  %100 = select i1 %99, i32 42, i32 32
  %101 = getelementptr inbounds i8, ptr %90, i64 32
  %102 = load i32, ptr %101, align 4, !tbaa !21
  %.not70 = icmp eq i32 %102, -1
  br i1 %.not70, label %105, label %103

103:                                              ; preds = %96
  %104 = call noundef ptr @_ZNK11ImGuiTabBar10GetTabNameEPK12ImGuiTabItem(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %90)
  br label %105

105:                                              ; preds = %96, %103
  %106 = phi ptr [ %104, %103 ], [ @.str.507, %96 ]
  %107 = getelementptr inbounds i8, ptr %90, i64 16
  %108 = load float, ptr %107, align 4, !tbaa !32
  %109 = fpext float %108 to double
  %110 = getelementptr inbounds i8, ptr %90, i64 20
  %111 = load float, ptr %110, align 4, !tbaa !33
  %112 = fpext float %111 to double
  %113 = getelementptr inbounds i8, ptr %90, i64 24
  %114 = load float, ptr %113, align 4, !tbaa !34
  %115 = fpext float %114 to double
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef nonnull @.str.512, i32 noundef %.06875, i32 noundef %100, i32 noundef %97, ptr noundef %106, double noundef %109, double noundef %112, double noundef %115)
  call void @_ZN5ImGui5PopIDEv()
  %116 = add nuw nsw i32 %.06875, 1
  %117 = load i32, ptr %0, align 8, !tbaa !20
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %89, label %._crit_edge77, !llvm.loop !35

119:                                              ; preds = %69, %64, %._crit_edge77, %85
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #5
  ret void
}

declare noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11ImGuiTabBar10GetTabNameEPK12ImGuiTabItem(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #1 align 2

declare void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(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) local_unnamed_addr #4

declare void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarPK12ImGuiTabItemi(ptr noundef, ptr noundef, i32 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 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 = { "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 = { 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, !8, i64 40}
!6 = !{!"_ZTS11ImGuiTabBar", !7, i64 0, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !8, i64 40, !12, i64 44, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96, !8, i64 100, !15, i64 104, !9, i64 106, !16, i64 107, !16, i64 108, !16, i64 109, !15, i64 110, !15, i64 112, !14, i64 116, !13, i64 120, !13, i64 128, !17, i64 136}
!7 = !{!"_ZTS8ImVectorI12ImGuiTabItemE", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !9, i64 0}
!15 = !{!"short", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = !{!"_ZTS15ImGuiTextBuffer", !18, i64 0}
!18 = !{!"_ZTS8ImVectorIcE", !8, i64 0, !8, i64 4, !11, i64 8}
!19 = !{!6, !8, i64 20}
!20 = !{!6, !8, i64 0}
!21 = !{!22, !8, i64 32}
!22 = !{!"_ZTS12ImGuiTabItem", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !8, i64 32, !15, i64 36, !15, i64 38, !16, i64 40}
!23 = distinct !{!23, !24, !25}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.peeled.count", i32 1}
!26 = !{!6, !14, i64 92}
!27 = !{!6, !14, i64 48}
!28 = !{!6, !14, i64 56}
!29 = !{!6, !14, i64 96}
!30 = !{!22, !8, i64 0}
!31 = !{!6, !8, i64 24}
!32 = !{!22, !14, i64 16}
!33 = !{!22, !14, i64 20}
!34 = !{!22, !14, i64 24}
!35 = distinct !{!35, !24}


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