; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/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.16 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.401 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.510 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.511 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.512 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.513 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.514 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.515 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.516 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.517 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.518 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.519 = 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.16, ptr @.str.511
  %47 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %29, i64 noundef %34, ptr noundef @.str.510, 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.512)
  %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 = %92, %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 %95

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.514, ptr @.str.16
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef %85, ptr noundef %86)
  %88 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %75, i64 noundef %80, ptr noundef @.str.513, ptr noundef %84, ptr noundef %87)
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  store ptr %91, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %92

92:                                               ; preds = %70
  %93 = load i32, ptr %9, align 4, !tbaa !25
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %9, align 4, !tbaa !25
  br label %61, !llvm.loop !26

95:                                               ; preds = %69
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = ptrtoint ptr %97 to i64
  %100 = ptrtoint ptr %98 to i64
  %101 = sub i64 %99, %100
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ImGuiTabBar, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds %struct.ImVector.47, ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !22
  %106 = icmp sgt i32 %105, 3
  %107 = zext i1 %106 to i64
  %108 = select i1 %106, ptr @.str.515, ptr @.str.516
  %109 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %96, i64 noundef %101, ptr noundef %108)
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = sext i32 %109 to i64
  %112 = getelementptr inbounds i8, ptr %110, i64 %111
  store ptr %112, ptr %6, align 8, !tbaa !5
  %113 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %114 = trunc i8 %113 to i1
  br i1 %114, label %117, label %115

115:                                              ; preds = %95
  %116 = 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) %116)
  br label %117

117:                                              ; preds = %115, %95
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %120 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %118, ptr noundef @.str.401, ptr noundef %119)
  %121 = zext i1 %120 to i8
  store i8 %121, ptr %11, align 1, !tbaa !20
  %122 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %123 = trunc i8 %122 to i1
  br i1 %123, label %125, label %124

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

125:                                              ; preds = %124, %117
  %126 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %127 = trunc i8 %126 to i1
  br i1 %127, label %128, label %173

128:                                              ; preds = %125
  %129 = call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 0)
  br i1 %129, label %130, label %173

130:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %131 = call noundef ptr @_ZN5ImGui21GetForegroundDrawListEv()
  store ptr %131, ptr %12, align 8, !tbaa !5
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ImGuiTabBar, ptr %133, i32 0, i32 8
  %135 = getelementptr inbounds %struct.ImRect, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ImGuiTabBar, ptr %136, i32 0, i32 8
  %138 = getelementptr inbounds %struct.ImRect, ptr %137, i32 0, i32 1
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %132, ptr noundef nonnull align 4 dereferenceable(8) %135, ptr noundef nonnull align 4 dereferenceable(8) %138, i32 noundef -16711681, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ImGuiTabBar, ptr %140, i32 0, i32 17
  %142 = load float, ptr %141, align 4, !tbaa !28
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ImGuiTabBar, ptr %143, i32 0, i32 8
  %145 = getelementptr inbounds %struct.ImRect, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds %struct.ImVec2, ptr %145, i32 0, i32 1
  %147 = load float, ptr %146, align 4, !tbaa !29
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %142, float noundef %147)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #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 !28
  %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 1
  %154 = getelementptr inbounds %struct.ImVec2, ptr %153, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !30
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %150, float noundef %155)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %139, 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
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ImGuiTabBar, ptr %157, i32 0, i32 18
  %159 = load float, ptr %158, align 8, !tbaa !31
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ImGuiTabBar, ptr %160, i32 0, i32 8
  %162 = getelementptr inbounds %struct.ImRect, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds %struct.ImVec2, ptr %162, i32 0, i32 1
  %164 = load float, ptr %163, align 4, !tbaa !29
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %159, float noundef %164)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #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 !31
  %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 1
  %171 = getelementptr inbounds %struct.ImVec2, ptr %170, i32 0, i32 1
  %172 = load float, ptr %171, align 4, !tbaa !30
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %167, float noundef %172)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %156, 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 %173

173:                                              ; preds = %130, %128, %125
  %174 = load i8, ptr %11, align 1, !tbaa !20, !range !23, !noundef !24
  %175 = trunc i8 %174 to i1
  br i1 %175, label %176, label %234

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

177:                                              ; preds = %230, %176
  %178 = load i32, ptr %17, align 4, !tbaa !25
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.ImGuiTabBar, ptr %179, i32 0, i32 0
  %181 = getelementptr inbounds %struct.ImVector.47, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 8, !tbaa !22
  %183 = icmp slt i32 %178, %182
  br i1 %183, label %185, label %184

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

185:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.ImGuiTabBar, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %17, align 4, !tbaa !25
  %189 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %187, i32 noundef %188)
  store ptr %189, ptr %18, align 8, !tbaa !5
  %190 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui6PushIDEPKv(ptr noundef %190)
  %191 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef @.str.517)
  br i1 %191, label %192, label %195

192:                                              ; preds = %185
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef %193, ptr noundef %194, i32 noundef -1)
  br label %195

195:                                              ; preds = %192, %185
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef 2.000000e+00)
  %196 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef @.str.518)
  br i1 %196, label %197, label %200

197:                                              ; preds = %195
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef %198, ptr noundef %199, i32 noundef 1)
  br label %200

200:                                              ; preds = %197, %195
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %201 = load i32, ptr %17, align 4, !tbaa !25
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.ImGuiTabItem, ptr %202, i32 0, i32 0
  %204 = load i32, ptr %203, align 4, !tbaa !32
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ImGuiTabBar, ptr %205, i32 0, i32 3
  %207 = load i32, ptr %206, align 8, !tbaa !34
  %208 = icmp eq i32 %204, %207
  %209 = zext i1 %208 to i64
  %210 = select i1 %208, i8 42, i8 32
  %211 = sext i8 %210 to i32
  %212 = load ptr, ptr %18, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.ImGuiTabItem, ptr %212, i32 0, i32 0
  %214 = load i32, ptr %213, align 4, !tbaa !32
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = load ptr, ptr %18, align 8, !tbaa !5
  %217 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef %215, ptr noundef %216)
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.ImGuiTabItem, ptr %218, i32 0, i32 4
  %220 = load float, ptr %219, align 4, !tbaa !35
  %221 = fpext float %220 to double
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ImGuiTabItem, ptr %222, i32 0, i32 5
  %224 = load float, ptr %223, align 4, !tbaa !36
  %225 = fpext float %224 to double
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.ImGuiTabItem, ptr %226, i32 0, i32 6
  %228 = load float, ptr %227, align 4, !tbaa !37
  %229 = fpext float %228 to double
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef @.str.519, i32 noundef %201, i32 noundef %211, i32 noundef %214, ptr noundef %217, double noundef %221, double noundef %225, double noundef %229)
  call void @_ZN5ImGui5PopIDEv()
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %230

230:                                              ; preds = %200
  %231 = load i32, ptr %17, align 4, !tbaa !25
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %17, align 4, !tbaa !25
  br label %177, !llvm.loop !38

233:                                              ; preds = %184
  call void @_ZN5ImGui7TreePopEv()
  br label %234

234:                                              ; preds = %233, %173
  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

declare noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef, ptr noundef) #4

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 @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(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 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !15, i64 92}
!29 = !{!10, !15, i64 48}
!30 = !{!10, !15, i64 56}
!31 = !{!10, !15, i64 96}
!32 = !{!33, !12, i64 0}
!33 = !{!"_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}
!34 = !{!10, !12, i64 24}
!35 = !{!33, !15, i64 16}
!36 = !{!33, !15, i64 20}
!37 = !{!33, !15, i64 24}
!38 = distinct !{!38, !27}


; 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.16 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.401 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.510 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.511 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.512 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.513 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.514 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.515 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.516 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.517 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.518 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.519 = 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.511, ptr @.str.16
  %18 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %3, i64 noundef 256, ptr noundef nonnull @.str.510, 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.512)
  %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 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef nonnull %0, ptr noundef nonnull %27)
  %31 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %23, i64 noundef %29, ptr noundef nonnull @.str.513, ptr noundef nonnull @.str.16, ptr noundef %30)
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i8, ptr %23, i64 %32
  %34 = load i32, ptr %0, align 8, !tbaa !20
  %35 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %34, i32 noundef 3)
  %36 = icmp sgt i32 %35, 1
  br i1 %36, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.preheader, %2
  %.0.lcssa = phi ptr [ %23, %2 ], [ %33, %.lr.ph.preheader ], [ %49, %.lr.ph ]
  %37 = ptrtoint ptr %.0.lcssa to i64
  %38 = sub i64 %13, %37
  %39 = load i32, ptr %0, align 8, !tbaa !20
  %40 = icmp sgt i32 %39, 3
  %41 = select i1 %40, ptr @.str.515, ptr @.str.516
  %42 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %.0.lcssa, i64 noundef %38, ptr noundef nonnull %41)
  br i1 %.not, label %54, label %.critedge

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.070 = phi ptr [ %49, %.lr.ph ], [ %33, %.lr.ph.preheader ]
  %.06769 = phi i32 [ %50, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %43 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.06769)
  %44 = ptrtoint ptr %.070 to i64
  %45 = sub i64 %13, %44
  %46 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef nonnull %0, ptr noundef nonnull %43)
  %47 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %.070, i64 noundef %45, ptr noundef nonnull @.str.513, ptr noundef nonnull @.str.514, ptr noundef %46)
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %.070, i64 %48
  %50 = add nuw nsw i32 %.06769, 1
  %51 = load i32, ptr %0, align 8, !tbaa !20
  %52 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %51, i32 noundef 3)
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %.lr.ph, label %._crit_edge, !llvm.loop !21

54:                                               ; preds = %._crit_edge
  %55 = 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) %55)
  %56 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %1, ptr noundef nonnull @.str.401, ptr noundef nonnull %3)
  call void @_ZN5ImGui13PopStyleColorEi(i32 noundef 1)
  br i1 %56, label %.preheader, label %104

.critedge:                                        ; preds = %._crit_edge
  %57 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %1, ptr noundef nonnull @.str.401, ptr noundef nonnull %3)
  %58 = call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 0)
  br i1 %58, label %59, label %75

59:                                               ; preds = %.critedge
  %60 = call noundef ptr @_ZN5ImGui21GetForegroundDrawListEv()
  %61 = getelementptr inbounds i8, ptr %0, i64 44
  %62 = getelementptr inbounds i8, ptr %0, i64 52
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %60, ptr noundef nonnull align 4 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(8) %62, 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
  %63 = getelementptr inbounds i8, ptr %0, i64 92
  %64 = load float, ptr %63, align 4, !tbaa !24
  %65 = getelementptr inbounds i8, ptr %0, i64 48
  %66 = load float, ptr %65, align 4, !tbaa !25
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %64, float noundef %66)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %67 = load float, ptr %63, align 4, !tbaa !24
  %68 = getelementptr inbounds i8, ptr %0, i64 56
  %69 = load float, ptr %68, align 4, !tbaa !26
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %67, float noundef %69)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %60, 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
  %70 = getelementptr inbounds i8, ptr %0, i64 96
  %71 = load float, ptr %70, align 8, !tbaa !27
  %72 = load float, ptr %65, align 4, !tbaa !25
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %71, float noundef %72)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %73 = load float, ptr %70, align 8, !tbaa !27
  %74 = load float, ptr %68, align 4, !tbaa !26
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %73, float noundef %74)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %60, 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 %57, label %.preheader, label %104

75:                                               ; preds = %.critedge
  br i1 %57, label %.preheader, label %104

.preheader:                                       ; preds = %75, %54, %59
  %76 = load i32, ptr %0, align 8, !tbaa !20
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph72, label %._crit_edge73

.lr.ph72:                                         ; preds = %.preheader
  %78 = getelementptr inbounds i8, ptr %0, i64 24
  br label %79

._crit_edge73:                                    ; preds = %86, %.preheader
  call void @_ZN5ImGui7TreePopEv()
  br label %104

79:                                               ; preds = %.lr.ph72, %86
  %.06671 = phi i32 [ 0, %.lr.ph72 ], [ %101, %86 ]
  %80 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.06671)
  call void @_ZN5ImGui6PushIDEPKv(ptr noundef nonnull %80)
  %81 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef nonnull @.str.517)
  br i1 %81, label %82, label %83

82:                                               ; preds = %79
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef nonnull %0, ptr noundef nonnull %80, i32 noundef -1)
  br label %83

83:                                               ; preds = %82, %79
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef 2.000000e+00)
  %84 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef nonnull @.str.518)
  br i1 %84, label %85, label %86

85:                                               ; preds = %83
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef nonnull %0, ptr noundef nonnull %80, i32 noundef 1)
  br label %86

86:                                               ; preds = %85, %83
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %87 = load i32, ptr %80, align 4, !tbaa !28
  %88 = load i32, ptr %78, align 8, !tbaa !30
  %89 = icmp eq i32 %87, %88
  %90 = select i1 %89, i32 42, i32 32
  %91 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef nonnull %0, ptr noundef nonnull %80)
  %92 = getelementptr inbounds i8, ptr %80, i64 16
  %93 = load float, ptr %92, align 4, !tbaa !31
  %94 = fpext float %93 to double
  %95 = getelementptr inbounds i8, ptr %80, i64 20
  %96 = load float, ptr %95, align 4, !tbaa !32
  %97 = fpext float %96 to double
  %98 = getelementptr inbounds i8, ptr %80, i64 24
  %99 = load float, ptr %98, align 4, !tbaa !33
  %100 = fpext float %99 to double
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef nonnull @.str.519, i32 noundef %.06671, i32 noundef %90, i32 noundef %87, ptr noundef %91, double noundef %94, double noundef %97, double noundef %100)
  call void @_ZN5ImGui5PopIDEv()
  %101 = add nuw nsw i32 %.06671, 1
  %102 = load i32, ptr %0, align 8, !tbaa !20
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %79, label %._crit_edge73, !llvm.loop !34

104:                                              ; preds = %59, %54, %._crit_edge73, %75
  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

declare noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef, ptr noundef) local_unnamed_addr #4

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 @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(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 = distinct !{!21, !22, !23}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.peeled.count", i32 1}
!24 = !{!6, !14, i64 92}
!25 = !{!6, !14, i64 48}
!26 = !{!6, !14, i64 56}
!27 = !{!6, !14, i64 96}
!28 = !{!29, !8, i64 0}
!29 = !{!"_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}
!30 = !{!6, !8, i64 24}
!31 = !{!29, !14, i64 16}
!32 = !{!29, !14, i64 20}
!33 = !{!29, !14, i64 24}
!34 = distinct !{!34, !22}


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