; LLVM IR from erwincoumans/tiny-differentiable-simulator :: third_party/dear_imgui/imgui.ll (ZN5ImGui31DockBuilderRemoveNodeChildNodesEj)

; 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.ImVector.36 = type { i32, i32, ptr }
%struct.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiPlatformIO, %struct.ImGuiStyle, i32, i32, [4 x i8], ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i32, i8, i8, i8, i8, i32, ptr, %struct.ImVector.5, %struct.ImVector.5, %struct.ImVector.5, %struct.ImVector.5, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, float, i32, i32, i8, i8, [2 x i8], float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, [2 x i8], i32, i32, [4 x i8], i64, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, [2 x i8], ptr, i32, float, %struct.ImGuiNextWindowData, %struct.ImGuiNextItemData, [4 x i8], %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.9, %struct.ImVector.10, float, [4 x i8], ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, i8, [2 x i8], i32, i32, i32, i32, i32, i32, [4 x i8], %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, ptr, i32, [4 x i8], ptr, ptr, ptr, float, float, i8, [7 x i8], ptr, ptr, i32, i32, i32, i32, i8, [3 x i8], float, i32, i8, i8, i8, i8, i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, [4 x i8], %struct.ImVector.11, [16 x i8], ptr, %struct.ImPool, %struct.ImVector.13, %struct.ImVector.14, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, float, [3 x float], %struct.ImVec4, float, i8, i8, [2 x i8], float, float, float, i32, [4 x i8], %struct.ImVector.2, %struct.ImVector.17, %struct.ImVec2, %struct.ImVec2, ptr, %struct.ImGuiDockContext, i8, [3 x i8], float, %struct.ImGuiTextBuffer, %struct.ImVector.20, %struct.ImChunkStream, i8, [3 x i8], i32, ptr, %struct.ImGuiTextBuffer, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, [120 x float], i32, float, i32, i32, i32, [3073 x i8], [7 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [22 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i32, i8, i8, i8, i8, [512 x i8], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, i32, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float], float, i16, %struct.ImVector }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiPlatformIO = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVector.3, ptr, %struct.ImVector.4 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, float, float, [50 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, [12 x %struct.ImVec2], [64 x i8], ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.0 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImGuiNextWindowData = type { i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, %struct.ImRect, ptr, ptr, float, i32, i32, %struct.ImGuiWindowClass, %struct.ImVec2 }
%struct.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImGuiNextItemData = type <{ i32, float, i32, i32, i8, [3 x i8] }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImGuiNavMoveResult = type <{ ptr, i32, i32, float, float, float, %struct.ImRect, [4 x i8] }>
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImPool = type <{ %struct.ImVector.12, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type { i32, i32, i32, %struct.ImVector, %struct.ImVector.2, %struct.ImVector.2, i8, i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i32, ptr, ptr }
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type <{ %struct.ImVector.15, float, float, %struct.ImVector, %struct.ImVector.16, ptr, %struct.ImVec2, ptr, ptr, i16, i16, i16, i8, i8, float, float, float, i32, [2 x i8], [6 x i8] }>
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImGuiDockContext = type <{ %struct.ImGuiStorage, %struct.ImVector.18, %struct.ImVector.19, i8, [7 x i8] }>
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.2 }
%struct.ImGuiTextBuffer = type { %struct.ImVector.2 }
%struct.ImGuiDockNode = type <{ i32, i32, i32, [4 x i8], ptr, [2 x ptr], %struct.ImVector.5, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i32, %struct.ImGuiWindowClass, i32, [4 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i16, i8, [5 x i8] }>
%"struct.ImGuiStorage::ImGuiStoragePair" = type { i32, %union.anon }
%union.anon = type { ptr }
%struct.ImGuiWindowSettings = type { i32, %struct.ImVec2ih, %struct.ImVec2ih, %struct.ImVec2ih, i32, i32, i32, i16, i8, i8 }
%struct.ImVec2ih = type { i16, i16 }

@GImGui = external dso_local global ptr, align 8

; 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

declare i32 @__gxx_personality_v0(...)

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui19DockNodeGetRootNodeEP13ImGuiDockNode(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui31DockBuilderRemoveNodeChildNodesEj(i32 noundef %0) #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.ImVector.36, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %20 = load ptr, ptr @GImGui, align 8, !tbaa !9
  store ptr %20, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %21 = load ptr, ptr %3, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.ImGuiContext, ptr %21, i32 0, i32 195
  store ptr %22, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %29

25:                                               ; preds = %1
  %26 = load ptr, ptr %3, align 8, !tbaa !9
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = call noundef ptr @_ZN5ImGuiL23DockContextFindNodeByIDEP12ImGuiContextj(ptr noundef %26, i32 noundef %27)
  br label %30

29:                                               ; preds = %1
  br label %30

30:                                               ; preds = %29, %25
  %31 = phi ptr [ %28, %25 ], [ null, %29 ]
  store ptr %31, ptr %5, align 8, !tbaa !9
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %38

34:                                               ; preds = %30
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  store i32 1, ptr %6, align 4
  br label %279

38:                                               ; preds = %34, %30
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  store i8 0, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %48

41:                                               ; preds = %38
  %42 = load ptr, ptr %5, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.ImGuiDockNode, ptr %42, i32 0, i32 25
  %44 = load i16, ptr %43, align 8
  %45 = shl i16 %44, 13
  %46 = ashr i16 %45, 13
  %47 = sext i16 %46 to i32
  br label %49

48:                                               ; preds = %38
  br label %49

49:                                               ; preds = %48, %41
  %50 = phi i32 [ %47, %41 ], [ 0, %48 ]
  store i32 %50, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %60

53:                                               ; preds = %49
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.ImGuiDockNode, ptr %54, i32 0, i32 25
  %56 = load i16, ptr %55, align 8
  %57 = shl i16 %56, 10
  %58 = ashr i16 %57, 13
  %59 = sext i16 %58 to i32
  br label %61

60:                                               ; preds = %49
  br label %61

61:                                               ; preds = %60, %53
  %62 = phi i32 [ %59, %53 ], [ 0, %60 ]
  store i32 %62, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %138, %61
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.ImGuiDockContext, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %struct.ImGuiStorage, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %struct.ImVector.0, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !13
  %70 = icmp slt i32 %64, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %63
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %142

72:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %73 = load ptr, ptr %4, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.ImGuiDockContext, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %struct.ImGuiStorage, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN12ImGuiStorage16ImGuiStoragePairEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %75, i32 noundef %76)
          to label %78 unwind label %112

78:                                               ; preds = %72
  %79 = getelementptr inbounds %"struct.ImGuiStorage::ImGuiStoragePair", ptr %77, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !19
  store ptr %80, ptr %12, align 8, !tbaa !9
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %137

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %102, label %86

86:                                               ; preds = %83
  %87 = load ptr, ptr %12, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.ImGuiDockNode, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !20
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = icmp ne i32 %89, %90
  br i1 %91, label %92, label %100

92:                                               ; preds = %86
  %93 = load ptr, ptr %12, align 8, !tbaa !9
  %94 = invoke noundef ptr @_ZN5ImGui19DockNodeGetRootNodeEP13ImGuiDockNode(ptr noundef %93)
          to label %95 unwind label %116

95:                                               ; preds = %92
  %96 = getelementptr inbounds %struct.ImGuiDockNode, ptr %94, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !20
  %98 = load i32, ptr %2, align 4, !tbaa !5
  %99 = icmp eq i32 %97, %98
  br label %100

100:                                              ; preds = %95, %86
  %101 = phi i1 [ false, %86 ], [ %99, %95 ]
  br label %102

102:                                              ; preds = %100, %83
  %103 = phi i1 [ true, %83 ], [ %101, %100 ]
  %104 = zext i1 %103 to i8
  store i8 %104, ptr %15, align 1, !tbaa !11
  %105 = load i8, ptr %15, align 1, !tbaa !11, !range !28, !noundef !29
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %136

107:                                              ; preds = %102
  %108 = load ptr, ptr %12, align 8, !tbaa !9
  %109 = invoke noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(187) %108)
          to label %110 unwind label %116

110:                                              ; preds = %107
  br i1 %109, label %111, label %120

111:                                              ; preds = %110
  store i8 1, ptr %7, align 1, !tbaa !11
  br label %120

112:                                              ; preds = %72
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %13, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %14, align 4
  br label %141

116:                                              ; preds = %134, %130, %123, %107, %92
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %13, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %141

120:                                              ; preds = %111, %110
  %121 = load i32, ptr %2, align 4, !tbaa !5
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %127

123:                                              ; preds = %120
  %124 = load ptr, ptr %3, align 8, !tbaa !9
  %125 = load ptr, ptr %12, align 8, !tbaa !9
  invoke void @_ZN5ImGuiL33DockContextQueueNotifyRemovedNodeEP12ImGuiContextP13ImGuiDockNode(ptr noundef %124, ptr noundef %125)
          to label %126 unwind label %116

126:                                              ; preds = %123
  br label %127

127:                                              ; preds = %126, %120
  %128 = load ptr, ptr %5, align 8, !tbaa !9
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %134

130:                                              ; preds = %127
  %131 = load ptr, ptr %5, align 8, !tbaa !9
  %132 = load ptr, ptr %12, align 8, !tbaa !9
  invoke void @_ZN5ImGuiL19DockNodeMoveWindowsEP13ImGuiDockNodeS1_(ptr noundef %131, ptr noundef %132)
          to label %133 unwind label %116

133:                                              ; preds = %130
  br label %134

134:                                              ; preds = %133, %127
  invoke void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %135 unwind label %116

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %137

137:                                              ; preds = %136, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %11, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %11, align 4, !tbaa !5
  br label %63, !llvm.loop !30

141:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %282

142:                                              ; preds = %71
  %143 = load ptr, ptr %5, align 8, !tbaa !9
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %163

145:                                              ; preds = %142
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = load ptr, ptr %5, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.ImGuiDockNode, ptr %147, i32 0, i32 25
  %149 = trunc i32 %146 to i16
  %150 = load i16, ptr %148, align 8
  %151 = and i16 %149, 7
  %152 = and i16 %150, -8
  %153 = or i16 %152, %151
  store i16 %153, ptr %148, align 8
  %154 = load i32, ptr %9, align 4, !tbaa !5
  %155 = load ptr, ptr %5, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.ImGuiDockNode, ptr %155, i32 0, i32 25
  %157 = trunc i32 %154 to i16
  %158 = load i16, ptr %156, align 8
  %159 = and i16 %157, 7
  %160 = shl i16 %159, 3
  %161 = and i16 %158, -57
  %162 = or i16 %161, %160
  store i16 %162, ptr %156, align 8
  br label %163

163:                                              ; preds = %145, %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %164 = load ptr, ptr %3, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.ImGuiContext, ptr %164, i32 0, i32 201
  %166 = invoke noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %165)
          to label %167 unwind label %172

167:                                              ; preds = %163
  store ptr %166, ptr %16, align 8, !tbaa !9
  br label %168

168:                                              ; preds = %218, %167
  %169 = load ptr, ptr %16, align 8, !tbaa !9
  %170 = icmp ne ptr %169, null
  br i1 %170, label %176, label %171

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

172:                                              ; preds = %213, %163
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %13, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %14, align 4
  br label %219

176:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %177 = load ptr, ptr %16, align 8, !tbaa !9
  %178 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %177, i32 0, i32 5
  %179 = load i32, ptr %178, align 4, !tbaa !32
  store i32 %179, ptr %17, align 4, !tbaa !5
  %180 = load i32, ptr %17, align 4, !tbaa !5
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %212

182:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %207, %182
  %184 = load i32, ptr %18, align 4, !tbaa !5
  %185 = getelementptr inbounds %struct.ImVector.36, ptr %10, i32 0, i32 0
  %186 = load i32, ptr %185, align 8, !tbaa !36
  %187 = icmp slt i32 %184, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %183
  store i32 8, ptr %6, align 4
  br label %210

189:                                              ; preds = %183
  %190 = load i32, ptr %18, align 4, !tbaa !5
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP13ImGuiDockNodeEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %190)
          to label %192 unwind label %202

192:                                              ; preds = %189
  %193 = load ptr, ptr %191, align 8, !tbaa !9
  %194 = getelementptr inbounds %struct.ImGuiDockNode, ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 8, !tbaa !20
  %196 = load i32, ptr %17, align 4, !tbaa !5
  %197 = icmp eq i32 %195, %196
  br i1 %197, label %198, label %206

198:                                              ; preds = %192
  %199 = load i32, ptr %2, align 4, !tbaa !5
  %200 = load ptr, ptr %16, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %200, i32 0, i32 5
  store i32 %199, ptr %201, align 4, !tbaa !32
  store i32 8, ptr %6, align 4
  br label %210

202:                                              ; preds = %189
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %13, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %219

206:                                              ; preds = %192
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %18, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %18, align 4, !tbaa !5
  br label %183, !llvm.loop !38

210:                                              ; preds = %198, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %211

211:                                              ; preds = %210
  br label %212

212:                                              ; preds = %211, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %3, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct.ImGuiContext, ptr %214, i32 0, i32 201
  %216 = load ptr, ptr %16, align 8, !tbaa !9
  %217 = invoke noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %215, ptr noundef %216)
          to label %218 unwind label %172

218:                                              ; preds = %213
  store ptr %217, ptr %16, align 8, !tbaa !9
  br label %168, !llvm.loop !39

219:                                              ; preds = %202, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %282

220:                                              ; preds = %171
  %221 = getelementptr inbounds %struct.ImVector.36, ptr %10, i32 0, i32 0
  %222 = load i32, ptr %221, align 8, !tbaa !36
  %223 = icmp sgt i32 %222, 1
  br i1 %223, label %224, label %235

224:                                              ; preds = %220
  %225 = getelementptr inbounds %struct.ImVector.36, ptr %10, i32 0, i32 2
  %226 = load ptr, ptr %225, align 8, !tbaa !40
  %227 = getelementptr inbounds %struct.ImVector.36, ptr %10, i32 0, i32 0
  %228 = load i32, ptr %227, align 8, !tbaa !36
  %229 = sext i32 %228 to i64
  invoke void @qsort(ptr noundef %226, i64 noundef %229, i64 noundef 8, ptr noundef @_ZL30DockNodeComparerDepthMostFirstPKvS0_)
          to label %230 unwind label %231

230:                                              ; preds = %224
  br label %235

231:                                              ; preds = %262, %259, %224
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %13, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %14, align 4
  br label %282

235:                                              ; preds = %230, %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %236

236:                                              ; preds = %249, %235
  %237 = load i32, ptr %19, align 4, !tbaa !5
  %238 = getelementptr inbounds %struct.ImVector.36, ptr %10, i32 0, i32 0
  %239 = load i32, ptr %238, align 8, !tbaa !36
  %240 = icmp slt i32 %237, %239
  br i1 %240, label %242, label %241

241:                                              ; preds = %236
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %256

242:                                              ; preds = %236
  %243 = load ptr, ptr %3, align 8, !tbaa !9
  %244 = load i32, ptr %19, align 4, !tbaa !5
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP13ImGuiDockNodeEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %244)
          to label %246 unwind label %252

246:                                              ; preds = %242
  %247 = load ptr, ptr %245, align 8, !tbaa !9
  invoke void @_ZN5ImGuiL21DockContextRemoveNodeEP12ImGuiContextP13ImGuiDockNodeb(ptr noundef %243, ptr noundef %247, i1 noundef zeroext false)
          to label %248 unwind label %252

248:                                              ; preds = %246
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %19, align 4, !tbaa !5
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %19, align 4, !tbaa !5
  br label %236, !llvm.loop !41

252:                                              ; preds = %246, %242
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %13, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %282

256:                                              ; preds = %241
  %257 = load i32, ptr %2, align 4, !tbaa !5
  %258 = icmp eq i32 %257, 0
  br i1 %258, label %259, label %266

259:                                              ; preds = %256
  %260 = load ptr, ptr %4, align 8, !tbaa !9
  %261 = getelementptr inbounds %struct.ImGuiDockContext, ptr %260, i32 0, i32 0
  invoke void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16) %261)
          to label %262 unwind label %231

262:                                              ; preds = %259
  %263 = load ptr, ptr %4, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.ImGuiDockContext, ptr %263, i32 0, i32 1
  invoke void @_ZN8ImVectorI16ImGuiDockRequestE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %264)
          to label %265 unwind label %231

265:                                              ; preds = %262
  br label %278

266:                                              ; preds = %256
  %267 = load i8, ptr %7, align 1, !tbaa !11, !range !28, !noundef !29
  %268 = trunc i8 %267 to i1
  br i1 %268, label %269, label %277

269:                                              ; preds = %266
  %270 = load ptr, ptr %5, align 8, !tbaa !9
  %271 = getelementptr inbounds %struct.ImGuiDockNode, ptr %270, i32 0, i32 2
  %272 = load i32, ptr %271, align 8, !tbaa !42
  %273 = or i32 %272, 2048
  store i32 %273, ptr %271, align 8, !tbaa !42
  %274 = load ptr, ptr %5, align 8, !tbaa !9
  %275 = load ptr, ptr %5, align 8, !tbaa !9
  %276 = getelementptr inbounds %struct.ImGuiDockNode, ptr %275, i32 0, i32 17
  store ptr %274, ptr %276, align 8, !tbaa !43
  br label %277

277:                                              ; preds = %269, %266
  br label %278

278:                                              ; preds = %277, %265
  call void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  store i32 0, ptr %6, align 4
  br label %279

279:                                              ; preds = %278, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %280 = load i32, ptr %6, align 4
  switch i32 %280, label %288 [
    i32 0, label %281
    i32 1, label %281
  ]

281:                                              ; preds = %279, %279
  ret void

282:                                              ; preds = %252, %231, %219, %141
  call void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %283

283:                                              ; preds = %282
  %284 = load ptr, ptr %13, align 8
  %285 = load i32, ptr %14, align 4
  %286 = insertvalue { ptr, i32 } poison, ptr %284, 0
  %287 = insertvalue { ptr, i32 } %286, i32 %285, 1
  resume { ptr, i32 } %287

288:                                              ; preds = %279
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZN5ImGuiL23DockContextFindNodeByIDEP12ImGuiContextj(ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(187)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL21DockContextRemoveNodeEP12ImGuiContextP13ImGuiDockNodeb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL33DockContextQueueNotifyRemovedNodeEP12ImGuiContextP13ImGuiDockNode(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL19DockNodeMoveWindowsEP13ImGuiDockNodeS1_(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL30DockNodeComparerDepthMostFirstPKvS0_(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI16ImGuiDockRequestE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS16ImGuiDockContext", !15, i64 0, !17, i64 16, !18, i64 32, !12, i64 48}
!15 = !{!"_ZTS12ImGuiStorage", !16, i64 0}
!16 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !6, i64 0, !6, i64 4, !10, i64 8}
!17 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !6, i64 0, !6, i64 4, !10, i64 8}
!18 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !6, i64 0, !6, i64 4, !10, i64 8}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTS13ImGuiDockNode", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !7, i64 24, !22, i64 40, !10, i64 56, !23, i64 64, !23, i64 72, !23, i64 80, !25, i64 88, !26, i64 92, !27, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !6, i64 160, !6, i64 164, !6, i64 168, !6, i64 172, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 184, !6, i64 184, !12, i64 185, !12, i64 185, !12, i64 185, !12, i64 185, !12, i64 185, !12, i64 185, !12, i64 185, !12, i64 186, !12, i64 186, !12, i64 186, !12, i64 186}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !6, i64 0, !6, i64 4, !10, i64 8}
!23 = !{!"_ZTS6ImVec2", !24, i64 0, !24, i64 4}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTS9ImGuiAxis", !7, i64 0}
!26 = !{!"_ZTS16ImGuiWindowClass", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !12, i64 24, !12, i64 25}
!27 = !{!"_ZTS18ImGuiDockNodeState", !7, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !6, i64 20}
!33 = !{!"_ZTS19ImGuiWindowSettings", !6, i64 0, !34, i64 4, !34, i64 8, !34, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !35, i64 28, !12, i64 30, !12, i64 31}
!34 = !{!"_ZTS8ImVec2ih", !35, i64 0, !35, i64 2}
!35 = !{!"short", !7, i64 0}
!36 = !{!37, !6, i64 0}
!37 = !{!"_ZTS8ImVectorIP13ImGuiDockNodeE", !6, i64 0, !6, i64 4, !10, i64 8}
!38 = distinct !{!38, !31}
!39 = distinct !{!39, !31}
!40 = !{!37, !10, i64 8}
!41 = distinct !{!41, !31}
!42 = !{!21, !6, i64 8}
!43 = !{!21, !10, i64 144}


; 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.ImVector.36 = type { i32, i32, ptr }

@GImGui = external dso_local local_unnamed_addr global ptr, align 8

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui19DockNodeGetRootNodeEP13ImGuiDockNode(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui31DockBuilderRemoveNodeChildNodesEj(i32 noundef %0) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.ImVector.36, align 8
  %3 = alloca ptr, align 8
  %4 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 12160
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %.thread78, label %6

6:                                                ; preds = %1
  %7 = tail call noundef ptr @_ZN5ImGuiL23DockContextFindNodeByIDEP12ImGuiContextj(ptr noundef %4, i32 noundef %0)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %114, label %.thread78.thread

.thread78:                                        ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %9 = load i32, ptr %5, align 8, !tbaa !9
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph.split.us.split.us, label %._crit_edge

.thread78.thread:                                 ; preds = %6
  %11 = getelementptr inbounds i8, ptr %7, i64 184
  %12 = load i16, ptr %11, align 8
  %13 = shl i16 %12, 13
  %14 = ashr exact i16 %13, 13
  %15 = shl i16 %12, 10
  %16 = ashr i16 %15, 13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %17 = load i32, ptr %5, align 8, !tbaa !9
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph.split, label %._crit_edge.thread

.lr.ph.split.us.split.us:                         ; preds = %.thread78, %.critedge74.us.us
  %.05584.us.us = phi i1 [ %.3.us.us, %.critedge74.us.us ], [ false, %.thread78 ]
  %.05883.us.us = phi i32 [ %23, %.critedge74.us.us ], [ 0, %.thread78 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN12ImGuiStorage16ImGuiStoragePairEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.05883.us.us)
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  store ptr %21, ptr %3, align 8, !tbaa !5
  %.not70.us.us = icmp eq ptr %21, null
  br i1 %.not70.us.us, label %.critedge74.us.us, label %.critedge.us.us

.critedge.us.us:                                  ; preds = %.lr.ph.split.us.split.us
  %22 = call noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(187) %21)
  %spec.select.us.us = select i1 %22, i1 true, i1 %.05584.us.us
  invoke void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %.critedge74.us.us unwind label %.split.us.split.us

.critedge74.us.us:                                ; preds = %.critedge.us.us, %.lr.ph.split.us.split.us
  %.3.us.us = phi i1 [ %.05584.us.us, %.lr.ph.split.us.split.us ], [ %spec.select.us.us, %.critedge.us.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %23 = add nuw nsw i32 %.05883.us.us, 1
  %24 = load i32, ptr %5, align 8, !tbaa !9
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %.lr.ph.split.us.split.us, label %._crit_edge, !llvm.loop !18

.split.us.split.us:                               ; preds = %.critedge.us.us
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

._crit_edge:                                      ; preds = %.critedge74, %.critedge74.us.us, %.thread78
  %27 = phi i16 [ 0, %.thread78 ], [ 0, %.critedge74.us.us ], [ %16, %.critedge74 ]
  %28 = phi ptr [ null, %.thread78 ], [ null, %.critedge74.us.us ], [ %7, %.critedge74 ]
  %29 = phi i16 [ 0, %.thread78 ], [ 0, %.critedge74.us.us ], [ %14, %.critedge74 ]
  %.055.lcssa = phi i1 [ false, %.thread78 ], [ %.3.us.us, %.critedge74.us.us ], [ %.3, %.critedge74 ]
  br i1 %.not, label %62, label %._crit_edge.thread

.lr.ph.split:                                     ; preds = %.thread78.thread, %.critedge74
  %.05584 = phi i1 [ %.3, %.critedge74 ], [ false, %.thread78.thread ]
  %.05883 = phi i32 [ %48, %.critedge74 ], [ 0, %.thread78.thread ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN12ImGuiStorage16ImGuiStoragePairEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.05883)
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  store ptr %32, ptr %3, align 8, !tbaa !5
  %.not70 = icmp eq ptr %32, null
  br i1 %.not70, label %.critedge74, label %33

33:                                               ; preds = %.lr.ph.split
  %34 = load i32, ptr %32, align 8, !tbaa !20
  %.not71 = icmp eq i32 %34, %0
  br i1 %.not71, label %.critedge74, label %35

35:                                               ; preds = %33
  %36 = call noundef ptr @_ZN5ImGui19DockNodeGetRootNodeEP13ImGuiDockNode(ptr noundef nonnull %32)
  %37 = load i32, ptr %36, align 8, !tbaa !20
  %38 = icmp eq i32 %37, %0
  br i1 %38, label %40, label %.critedge74

.split:                                           ; preds = %47, %45, %40
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

.split.us:                                        ; preds = %.split.us.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %39, %.split ], [ %26, %.split.us.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %115

40:                                               ; preds = %35
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(187) %41)
  %spec.select79 = select i1 %42, i1 true, i1 %.05584
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN5ImGuiL33DockContextQueueNotifyRemovedNodeEP12ImGuiContextP13ImGuiDockNode(ptr noundef nonnull %4, ptr noundef %43)
          to label %44 unwind label %.split

44:                                               ; preds = %40
  br i1 %.not, label %47, label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN5ImGuiL19DockNodeMoveWindowsEP13ImGuiDockNodeS1_(ptr noundef nonnull %7, ptr noundef %46)
          to label %47 unwind label %.split

47:                                               ; preds = %45, %44
  invoke void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %.critedge74 unwind label %.split

.critedge74:                                      ; preds = %35, %47, %33, %.lr.ph.split
  %.3 = phi i1 [ %.05584, %.lr.ph.split ], [ %spec.select79, %47 ], [ %.05584, %35 ], [ %.05584, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %48 = add nuw nsw i32 %.05883, 1
  %49 = load i32, ptr %5, align 8, !tbaa !9
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %.lr.ph.split, label %._crit_edge, !llvm.loop !18

._crit_edge.thread:                               ; preds = %.thread78.thread, %._crit_edge
  %.055.lcssa100 = phi i1 [ %.055.lcssa, %._crit_edge ], [ false, %.thread78.thread ]
  %51 = phi i16 [ %29, %._crit_edge ], [ %14, %.thread78.thread ]
  %52 = phi ptr [ %28, %._crit_edge ], [ %7, %.thread78.thread ]
  %53 = phi i16 [ %27, %._crit_edge ], [ %16, %.thread78.thread ]
  %54 = getelementptr inbounds i8, ptr %52, i64 184
  %55 = load i16, ptr %54, align 8
  %56 = and i16 %51, 7
  %57 = and i16 %55, -64
  %58 = shl nsw i16 %53, 3
  %59 = and i16 %58, 56
  %60 = or disjoint i16 %59, %56
  %61 = or disjoint i16 %60, %57
  store i16 %61, ptr %54, align 8
  br label %62

62:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %.055.lcssa101 = phi i1 [ %.055.lcssa100, %._crit_edge.thread ], [ %.055.lcssa, %._crit_edge ]
  %63 = phi ptr [ %52, %._crit_edge.thread ], [ %28, %._crit_edge ]
  %64 = getelementptr inbounds i8, ptr %4, i64 12256
  %65 = call noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
  br label %66

66:                                               ; preds = %.loopexit, %62
  %.054 = phi ptr [ %65, %62 ], [ %86, %.loopexit ]
  %.not68 = icmp eq ptr %.054, null
  br i1 %.not68, label %67, label %72

67:                                               ; preds = %66
  %68 = load i32, ptr %2, align 8, !tbaa !28
  %69 = icmp sgt i32 %68, 1
  br i1 %69, label %87, label %93

70:                                               ; preds = %.loopexit
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %115

72:                                               ; preds = %66
  %73 = getelementptr inbounds i8, ptr %.054, i64 20
  %74 = load i32, ptr %73, align 4, !tbaa !30
  %.not69 = icmp ne i32 %74, 0
  %75 = load i32, ptr %2, align 8
  %76 = icmp sgt i32 %75, 0
  %or.cond95 = select i1 %.not69, i1 %76, i1 false
  br i1 %or.cond95, label %.lr.ph89, label %.loopexit

77:                                               ; preds = %.lr.ph89
  %78 = add nuw nsw i32 %.05388, 1
  %79 = load i32, ptr %2, align 8, !tbaa !28
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %.lr.ph89, label %.loopexit, !llvm.loop !34

.lr.ph89:                                         ; preds = %72, %77
  %.05388 = phi i32 [ %78, %77 ], [ 0, %72 ]
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP13ImGuiDockNodeEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.05388)
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 8, !tbaa !20
  %84 = icmp eq i32 %83, %74
  br i1 %84, label %85, label %77

85:                                               ; preds = %.lr.ph89
  store i32 %0, ptr %73, align 4, !tbaa !30
  br label %.loopexit

.loopexit:                                        ; preds = %77, %85, %72
  %86 = invoke noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull %.054)
          to label %66 unwind label %70, !llvm.loop !35

87:                                               ; preds = %67
  %88 = getelementptr inbounds i8, ptr %2, i64 8
  %89 = load ptr, ptr %88, align 8, !tbaa !36
  %90 = zext nneg i32 %68 to i64
  invoke void @qsort(ptr noundef %89, i64 noundef %90, i64 noundef 8, ptr noundef nonnull @_ZL30DockNodeComparerDepthMostFirstPKvS0_)
          to label %._crit_edge98 unwind label %91

._crit_edge98:                                    ; preds = %87
  %.pre = load i32, ptr %2, align 8, !tbaa !28
  br label %93

91:                                               ; preds = %105, %104, %87
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %115

93:                                               ; preds = %._crit_edge98, %67
  %94 = phi i32 [ %.pre, %._crit_edge98 ], [ %68, %67 ]
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %.lr.ph92, label %._crit_edge93

._crit_edge93:                                    ; preds = %98, %93
  br i1 %.not, label %104, label %107

.lr.ph92:                                         ; preds = %93, %98
  %.090 = phi i32 [ %99, %98 ], [ 0, %93 ]
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP13ImGuiDockNodeEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.090)
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  invoke void @_ZN5ImGuiL21DockContextRemoveNodeEP12ImGuiContextP13ImGuiDockNodeb(ptr noundef %4, ptr noundef %97, i1 noundef zeroext false)
          to label %98 unwind label %102

98:                                               ; preds = %.lr.ph92
  %99 = add nuw nsw i32 %.090, 1
  %100 = load i32, ptr %2, align 8, !tbaa !28
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %.lr.ph92, label %._crit_edge93, !llvm.loop !37

102:                                              ; preds = %.lr.ph92
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %115

104:                                              ; preds = %._crit_edge93
  invoke void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %105 unwind label %91

105:                                              ; preds = %104
  %106 = getelementptr inbounds i8, ptr %4, i64 12176
  invoke void @_ZN8ImVectorI16ImGuiDockRequestE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %106)
          to label %113 unwind label %91

107:                                              ; preds = %._crit_edge93
  br i1 %.055.lcssa101, label %108, label %113

108:                                              ; preds = %107
  %109 = getelementptr inbounds i8, ptr %63, i64 8
  %110 = load i32, ptr %109, align 8, !tbaa !38
  %111 = or i32 %110, 2048
  store i32 %111, ptr %109, align 8, !tbaa !38
  %112 = getelementptr inbounds i8, ptr %63, i64 144
  store ptr %63, ptr %112, align 8, !tbaa !39
  br label %113

113:                                              ; preds = %107, %108, %105
  call void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %114

114:                                              ; preds = %6, %113
  ret void

115:                                              ; preds = %102, %91, %70, %.split.us
  %.pn = phi { ptr, i32 } [ %.us-phi, %.split.us ], [ %71, %70 ], [ %103, %102 ], [ %92, %91 ]
  call void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZN5ImGuiL23DockContextFindNodeByIDEP12ImGuiContextj(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(187)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL21DockContextRemoveNodeEP12ImGuiContextP13ImGuiDockNodeb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL33DockContextQueueNotifyRemovedNodeEP12ImGuiContextP13ImGuiDockNode(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL19DockNodeMoveWindowsEP13ImGuiDockNodeS1_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL30DockNodeComparerDepthMostFirstPKvS0_(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI16ImGuiDockRequestE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !13, i64 0}
!10 = !{!"_ZTS16ImGuiDockContext", !11, i64 0, !14, i64 16, !15, i64 32, !16, i64 48}
!11 = !{!"_ZTS12ImGuiStorage", !12, i64 0}
!12 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !13, i64 0, !13, i64 4, !6, i64 8}
!15 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !13, i64 0, !13, i64 4, !6, i64 8}
!16 = !{!"bool", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !13, i64 0}
!21 = !{!"_ZTS13ImGuiDockNode", !13, i64 0, !13, i64 4, !13, i64 8, !6, i64 16, !7, i64 24, !22, i64 40, !6, i64 56, !23, i64 64, !23, i64 72, !23, i64 80, !25, i64 88, !26, i64 92, !27, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !13, i64 160, !13, i64 164, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 184, !13, i64 184, !16, i64 185, !16, i64 185, !16, i64 185, !16, i64 185, !16, i64 185, !16, i64 185, !16, i64 185, !16, i64 186, !16, i64 186, !16, i64 186, !16, i64 186}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!23 = !{!"_ZTS6ImVec2", !24, i64 0, !24, i64 4}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTS9ImGuiAxis", !7, i64 0}
!26 = !{!"_ZTS16ImGuiWindowClass", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !16, i64 24, !16, i64 25}
!27 = !{!"_ZTS18ImGuiDockNodeState", !7, i64 0}
!28 = !{!29, !13, i64 0}
!29 = !{!"_ZTS8ImVectorIP13ImGuiDockNodeE", !13, i64 0, !13, i64 4, !6, i64 8}
!30 = !{!31, !13, i64 20}
!31 = !{!"_ZTS19ImGuiWindowSettings", !13, i64 0, !32, i64 4, !32, i64 8, !32, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !33, i64 28, !16, i64 30, !16, i64 31}
!32 = !{!"_ZTS8ImVec2ih", !33, i64 0, !33, i64 2}
!33 = !{!"short", !7, i64 0}
!34 = distinct !{!34, !19}
!35 = distinct !{!35, !19}
!36 = !{!29, !6, i64 8}
!37 = distinct !{!37, !19}
!38 = !{!21, !13, i64 8}
!39 = !{!21, !6, i64 144}


; Effective O3 passes: AggressiveInstCombinePass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass