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

; 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.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.ImFontAtlas = type { i8, i32, ptr, i32, i32, ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.8, %struct.ImVector.33, %struct.ImVector.34, [64 x %struct.ImVec4], i32, i32 }
%struct.ImVector.33 = type { i32, i32, ptr }
%struct.ImVector.34 = type { i32, i32, ptr }

@GImGui = external dso_local global ptr, align 8
@stdout = external 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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z11ImFileCloseP8_IO_FILE(ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui8ShutdownEP12ImGuiContext(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %9, ptr %3, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ImGuiContext, ptr %10, i32 0, i32 3
  %12 = getelementptr inbounds %struct.ImGuiIO, ptr %11, i32 0, i32 14
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %30

15:                                               ; preds = %1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ImGuiContext, ptr %16, i32 0, i32 1
  %18 = load i8, ptr %17, align 1, !tbaa !63, !range !64, !noundef !65
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %30

20:                                               ; preds = %15
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ImGuiContext, ptr %21, i32 0, i32 3
  %23 = getelementptr inbounds %struct.ImGuiIO, ptr %22, i32 0, i32 14
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.ImFontAtlas, ptr %24, i32 0, i32 0
  store i8 0, ptr %25, align 8, !tbaa !66
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ImGuiContext, ptr %26, i32 0, i32 3
  %28 = getelementptr inbounds %struct.ImGuiIO, ptr %27, i32 0, i32 14
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  call void @_Z9IM_DELETEI11ImFontAtlasEvPT_(ptr noundef %29)
  br label %30

30:                                               ; preds = %20, %15, %1
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGuiContext, ptr %31, i32 0, i32 3
  %33 = getelementptr inbounds %struct.ImGuiIO, ptr %32, i32 0, i32 14
  store ptr null, ptr %33, align 8, !tbaa !9
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ImGuiContext, ptr %34, i32 0, i32 0
  %36 = load i8, ptr %35, align 8, !tbaa !70, !range !64, !noundef !65
  %37 = trunc i8 %36 to i1
  br i1 %37, label %39, label %38

38:                                               ; preds = %30
  store i32 1, ptr %4, align 4
  br label %182

39:                                               ; preds = %30
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ImGuiContext, ptr %40, i32 0, i32 196
  %42 = load i8, ptr %41, align 8, !tbaa !71, !range !64, !noundef !65
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %58

44:                                               ; preds = %39
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImGuiContext, ptr %45, i32 0, i32 3
  %47 = getelementptr inbounds %struct.ImGuiIO, ptr %46, i32 0, i32 5
  %48 = load ptr, ptr %47, align 8, !tbaa !72
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %58

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %51 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %51, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN5ImGui17SetCurrentContextEP12ImGuiContext(ptr noundef %52)
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImGuiContext, ptr %53, i32 0, i32 3
  %55 = getelementptr inbounds %struct.ImGuiIO, ptr %54, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !72
  call void @_ZN5ImGui21SaveIniSettingsToDiskEPKc(ptr noundef %56)
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5ImGui17SetCurrentContextEP12ImGuiContext(ptr noundef %57)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %58

58:                                               ; preds = %50, %44, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %59 = call noundef ptr @_ZN5ImGui17GetCurrentContextEv()
  store ptr %59, ptr %6, align 8, !tbaa !5
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN5ImGui17SetCurrentContextEP12ImGuiContext(ptr noundef %60)
  call void @_ZN5ImGui22DestroyPlatformWindowsEv()
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN5ImGui17SetCurrentContextEP12ImGuiContext(ptr noundef %61)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN5ImGui19DockContextShutdownEP12ImGuiContext(ptr noundef %62)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !73
  br label %63

63:                                               ; preds = %77, %58
  %64 = load i32, ptr %7, align 4, !tbaa !73
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImGuiContext, ptr %65, i32 0, i32 24
  %67 = getelementptr inbounds %struct.ImVector.5, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !74
  %69 = icmp slt i32 %64, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %63
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %80

71:                                               ; preds = %63
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImGuiContext, ptr %72, i32 0, i32 24
  %74 = load i32, ptr %7, align 4, !tbaa !73
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP11ImGuiWindowEixEi(ptr noundef nonnull align 8 dereferenceable(16) %73, i32 noundef %74)
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  call void @_Z9IM_DELETEI11ImGuiWindowEvPT_(ptr noundef %76)
  br label %77

77:                                               ; preds = %71
  %78 = load i32, ptr %7, align 4, !tbaa !73
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %7, align 4, !tbaa !73
  br label %63, !llvm.loop !75

80:                                               ; preds = %70
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGuiContext, ptr %81, i32 0, i32 24
  call void @_ZN8ImVectorIP11ImGuiWindowE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %82)
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ImGuiContext, ptr %83, i32 0, i32 25
  call void @_ZN8ImVectorIP11ImGuiWindowE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %84)
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImGuiContext, ptr %85, i32 0, i32 26
  call void @_ZN8ImVectorIP11ImGuiWindowE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %86)
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImGuiContext, ptr %87, i32 0, i32 31
  store ptr null, ptr %88, align 8, !tbaa !77
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGuiContext, ptr %89, i32 0, i32 27
  call void @_ZN8ImVectorIP11ImGuiWindowE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %90)
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ImGuiContext, ptr %91, i32 0, i32 28
  call void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16) %92)
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ImGuiContext, ptr %93, i32 0, i32 88
  store ptr null, ptr %94, align 8, !tbaa !78
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImGuiContext, ptr %95, i32 0, i32 34
  store ptr null, ptr %96, align 8, !tbaa !79
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ImGuiContext, ptr %97, i32 0, i32 33
  store ptr null, ptr %98, align 8, !tbaa !80
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImGuiContext, ptr %99, i32 0, i32 32
  store ptr null, ptr %100, align 8, !tbaa !81
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ImGuiContext, ptr %101, i32 0, i32 69
  store ptr null, ptr %102, align 8, !tbaa !82
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImGuiContext, ptr %103, i32 0, i32 62
  store ptr null, ptr %104, align 8, !tbaa !83
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ImGuiContext, ptr %105, i32 0, i32 36
  store ptr null, ptr %106, align 8, !tbaa !84
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ImGuiContext, ptr %107, i32 0, i32 75
  call void @_ZN8ImVectorI13ImGuiColorModE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %108)
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ImGuiContext, ptr %109, i32 0, i32 76
  call void @_ZN8ImVectorI13ImGuiStyleModE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %110)
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImGuiContext, ptr %111, i32 0, i32 77
  call void @_ZN8ImVectorIP6ImFontE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %112)
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ImGuiContext, ptr %113, i32 0, i32 78
  call void @_ZN8ImVectorI14ImGuiPopupDataE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %114)
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ImGuiContext, ptr %115, i32 0, i32 79
  call void @_ZN8ImVectorI14ImGuiPopupDataE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %116)
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ImGuiContext, ptr %117, i32 0, i32 85
  store ptr null, ptr %118, align 8, !tbaa !85
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ImGuiContext, ptr %119, i32 0, i32 84
  store ptr null, ptr %120, align 8, !tbaa !86
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ImGuiContext, ptr %121, i32 0, i32 83
  store ptr null, ptr %122, align 8, !tbaa !87
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !73
  br label %123

123:                                              ; preds = %137, %80
  %124 = load i32, ptr %8, align 4, !tbaa !73
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ImGuiContext, ptr %125, i32 0, i32 80
  %127 = getelementptr inbounds %struct.ImVector.10, ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 8, !tbaa !88
  %129 = icmp slt i32 %124, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %123
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %140

131:                                              ; preds = %123
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImGuiContext, ptr %132, i32 0, i32 80
  %134 = load i32, ptr %8, align 4, !tbaa !73
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP14ImGuiViewportPEixEi(ptr noundef nonnull align 8 dereferenceable(16) %133, i32 noundef %134)
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  call void @_Z9IM_DELETEI14ImGuiViewportPEvPT_(ptr noundef %136)
  br label %137

137:                                              ; preds = %131
  %138 = load i32, ptr %8, align 4, !tbaa !73
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %8, align 4, !tbaa !73
  br label %123, !llvm.loop !89

140:                                              ; preds = %130
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ImGuiContext, ptr %141, i32 0, i32 80
  call void @_ZN8ImVectorIP14ImGuiViewportPE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %142)
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ImGuiContext, ptr %143, i32 0, i32 169
  call void @_ZN6ImPoolI11ImGuiTabBarE5ClearEv(ptr noundef nonnull align 8 dereferenceable(36) %144)
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ImGuiContext, ptr %145, i32 0, i32 170
  call void @_ZN8ImVectorI15ImGuiPtrOrIndexE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %146)
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ImGuiContext, ptr %147, i32 0, i32 171
  call void @_ZN8ImVectorI20ImGuiShrinkWidthItemE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %148)
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImGuiContext, ptr %149, i32 0, i32 190
  call void @_ZN8ImVectorIcE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %150)
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ImGuiContext, ptr %151, i32 0, i32 191
  call void @_ZN8ImVectorIjE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %152)
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ImGuiContext, ptr %153, i32 0, i32 173
  call void @_ZN19ImGuiInputTextState15ClearFreeMemoryEv(ptr noundef nonnull align 8 dereferenceable(3728) %154)
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ImGuiContext, ptr %155, i32 0, i32 201
  call void @_ZN13ImChunkStreamI19ImGuiWindowSettingsE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %156)
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ImGuiContext, ptr %157, i32 0, i32 200
  call void @_ZN8ImVectorI20ImGuiSettingsHandlerE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %158)
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ImGuiContext, ptr %159, i32 0, i32 205
  %161 = load ptr, ptr %160, align 8, !tbaa !90
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %177

163:                                              ; preds = %140
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ImGuiContext, ptr %164, i32 0, i32 205
  %166 = load ptr, ptr %165, align 8, !tbaa !90
  %167 = load ptr, ptr @stdout, align 8, !tbaa !5
  %168 = icmp ne ptr %166, %167
  br i1 %168, label %169, label %174

169:                                              ; preds = %163
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.ImGuiContext, ptr %170, i32 0, i32 205
  %172 = load ptr, ptr %171, align 8, !tbaa !90
  %173 = call noundef zeroext i1 @_Z11ImFileCloseP8_IO_FILE(ptr noundef %172)
  br label %174

174:                                              ; preds = %169, %163
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ImGuiContext, ptr %175, i32 0, i32 205
  store ptr null, ptr %176, align 8, !tbaa !90
  br label %177

177:                                              ; preds = %174, %140
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.ImGuiContext, ptr %178, i32 0, i32 206
  call void @_ZN15ImGuiTextBuffer5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %179)
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ImGuiContext, ptr %180, i32 0, i32 0
  store i8 0, ptr %181, align 8, !tbaa !70
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  store i32 0, ptr %4, align 4
  br label %182

182:                                              ; preds = %177, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %183 = load i32, ptr %4, align 4
  switch i32 %183, label %185 [
    i32 0, label %184
    i32 1, label %184
  ]

184:                                              ; preds = %182, %182
  ret void

185:                                              ; preds = %182
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9IM_DELETEI11ImFontAtlasEvPT_(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui21SaveIniSettingsToDiskEPKc(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui22DestroyPlatformWindowsEv() #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui19DockContextShutdownEP12ImGuiContext(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9IM_DELETEI11ImGuiWindowEvPT_(ptr noundef) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9IM_DELETEI14ImGuiViewportPEvPT_(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPoolI11ImGuiTabBarE5ClearEv(ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19ImGuiInputTextState15ClearFreeMemoryEv(ptr noundef nonnull align 8 dereferenceable(3728)) #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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, !6, i64 168}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !18, i64 5472, !21, i64 5704, !13, i64 6692, !13, i64 6696, !6, i64 6704, !15, i64 6712, !15, i64 6716, !22, i64 6720, !24, i64 6936, !13, i64 6944, !13, i64 6948, !13, i64 6952, !13, i64 6956, !11, i64 6960, !11, i64 6961, !11, i64 6962, !11, i64 6963, !13, i64 6964, !6, i64 6968, !25, i64 6976, !25, i64 6992, !25, i64 7008, !25, i64 7024, !26, i64 7040, !13, i64 7056, !6, i64 7064, !6, i64 7072, !6, i64 7080, !6, i64 7088, !6, i64 7096, !6, i64 7104, !6, i64 7112, !14, i64 7120, !15, i64 7128, !13, i64 7132, !13, i64 7136, !11, i64 7140, !11, i64 7141, !15, i64 7144, !15, i64 7148, !13, i64 7152, !13, i64 7156, !15, i64 7160, !11, i64 7164, !11, i64 7165, !11, i64 7166, !11, i64 7167, !11, i64 7168, !11, i64 7169, !13, i64 7172, !13, i64 7176, !28, i64 7184, !14, i64 7192, !6, i64 7200, !29, i64 7208, !13, i64 7212, !13, i64 7216, !11, i64 7220, !11, i64 7221, !6, i64 7224, !13, i64 7232, !15, i64 7236, !30, i64 7240, !33, i64 7384, !34, i64 7408, !35, i64 7424, !36, i64 7440, !37, i64 7456, !37, i64 7472, !38, i64 7488, !15, i64 7504, !6, i64 7512, !6, i64 7520, !6, i64 7528, !13, i64 7536, !13, i64 7540, !6, i64 7544, !13, i64 7552, !13, i64 7556, !13, i64 7560, !13, i64 7564, !13, i64 7568, !13, i64 7572, !13, i64 7576, !13, i64 7580, !13, i64 7584, !13, i64 7588, !13, i64 7592, !29, i64 7596, !31, i64 7600, !13, i64 7616, !39, i64 7620, !13, i64 7624, !11, i64 7628, !11, i64 7629, !11, i64 7630, !11, i64 7631, !11, i64 7632, !11, i64 7633, !11, i64 7634, !13, i64 7636, !31, i64 7640, !11, i64 7656, !11, i64 7657, !13, i64 7660, !40, i64 7664, !13, i64 7668, !13, i64 7672, !13, i64 7676, !13, i64 7680, !41, i64 7688, !41, i64 7736, !41, i64 7784, !6, i64 7832, !13, i64 7840, !6, i64 7848, !6, i64 7856, !6, i64 7864, !15, i64 7872, !15, i64 7876, !11, i64 7880, !6, i64 7888, !6, i64 7896, !13, i64 7904, !13, i64 7908, !13, i64 7912, !13, i64 7916, !11, i64 7920, !15, i64 7924, !13, i64 7928, !11, i64 7932, !11, i64 7933, !11, i64 7934, !13, i64 7936, !13, i64 7940, !13, i64 7944, !42, i64 7952, !31, i64 8016, !13, i64 8032, !13, i64 8036, !15, i64 8040, !13, i64 8044, !13, i64 8048, !13, i64 8052, !13, i64 8056, !43, i64 8064, !7, i64 8080, !6, i64 8096, !44, i64 8104, !46, i64 8144, !47, i64 8160, !14, i64 8176, !48, i64 8184, !52, i64 11912, !13, i64 12032, !13, i64 12036, !15, i64 12040, !15, i64 12044, !7, i64 12048, !23, i64 12060, !15, i64 12076, !11, i64 12080, !11, i64 12081, !15, i64 12084, !15, i64 12088, !15, i64 12092, !13, i64 12096, !49, i64 12104, !55, i64 12120, !14, i64 12136, !14, i64 12144, !6, i64 12152, !56, i64 12160, !11, i64 12216, !15, i64 12220, !59, i64 12224, !60, i64 12240, !61, i64 12256, !11, i64 12272, !62, i64 12276, !6, i64 12280, !59, i64 12288, !15, i64 12304, !11, i64 12308, !13, i64 12312, !13, i64 12316, !13, i64 12320, !11, i64 12324, !13, i64 12328, !7, i64 12332, !13, i64 12812, !15, i64 12816, !13, i64 12820, !13, i64 12824, !13, i64 12828, !7, i64 12832}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !7, i64 52, !15, i64 140, !15, i64 144, !6, i64 152, !6, i64 160, !15, i64 168, !11, i64 172, !6, i64 176, !14, i64 184, !11, i64 192, !11, i64 193, !11, i64 194, !11, i64 195, !11, i64 196, !11, i64 197, !11, i64 198, !11, i64 199, !11, i64 200, !11, i64 201, !11, i64 202, !11, i64 203, !11, i64 204, !15, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !14, i64 288, !7, i64 296, !15, i64 304, !15, i64 308, !13, i64 312, !11, i64 316, !11, i64 317, !11, i64 318, !11, i64 319, !7, i64 320, !7, i64 832, !11, i64 916, !11, i64 917, !11, i64 918, !11, i64 919, !11, i64 920, !11, i64 921, !11, i64 922, !15, i64 924, !13, i64 928, !13, i64 932, !13, i64 936, !13, i64 940, !13, i64 944, !14, i64 948, !13, i64 956, !14, i64 960, !7, i64 968, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5356, !15, i64 5440, !16, i64 5444, !17, i64 5448}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!18 = !{!"_ZTS15ImGuiPlatformIO", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !19, i64 192, !6, i64 208, !20, i64 216}
!19 = !{!"_ZTS8ImVectorI20ImGuiPlatformMonitorE", !13, i64 0, !13, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorIP13ImGuiViewportE", !13, i64 0, !13, i64 4, !6, i64 8}
!21 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !14, i64 4, !15, i64 12, !15, i64 16, !14, i64 20, !14, i64 28, !13, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !14, i64 56, !15, i64 64, !15, i64 68, !14, i64 72, !14, i64 80, !14, i64 88, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !13, i64 136, !14, i64 140, !14, i64 148, !14, i64 156, !14, i64 164, !15, i64 172, !11, i64 176, !11, i64 177, !11, i64 178, !15, i64 180, !15, i64 184, !7, i64 188}
!22 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !23, i64 28, !13, i64 44, !7, i64 48, !7, i64 144, !6, i64 208}
!23 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"long long", !7, i64 0}
!29 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!30 = !{!"_ZTS19ImGuiNextWindowData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !14, i64 20, !14, i64 28, !14, i64 36, !14, i64 44, !14, i64 52, !11, i64 60, !11, i64 61, !31, i64 64, !6, i64 80, !6, i64 88, !15, i64 96, !13, i64 100, !13, i64 104, !32, i64 108, !14, i64 136}
!31 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!32 = !{!"_ZTS16ImGuiWindowClass", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !11, i64 24, !11, i64 25}
!33 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !15, i64 4, !13, i64 8, !13, i64 12, !11, i64 16}
!34 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!40 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!41 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !13, i64 8, !13, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !31, i64 28}
!42 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !11, i64 57, !11, i64 58}
!43 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !45, i64 0, !26, i64 16, !13, i64 32}
!45 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS19ImGuiInputTextState", !13, i64 0, !13, i64 4, !13, i64 8, !17, i64 16, !49, i64 32, !49, i64 48, !11, i64 64, !13, i64 68, !15, i64 72, !50, i64 76, !15, i64 3696, !11, i64 3700, !11, i64 3701, !11, i64 3702, !13, i64 3704, !6, i64 3712, !6, i64 3720}
!49 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !15, i64 20, !51, i64 24}
!51 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !13, i64 3588, !13, i64 3592}
!52 = !{!"_ZTS6ImFont", !53, i64 0, !15, i64 16, !15, i64 20, !17, i64 24, !54, i64 40, !6, i64 56, !14, i64 64, !6, i64 72, !6, i64 80, !16, i64 88, !16, i64 90, !16, i64 92, !11, i64 94, !15, i64 96, !15, i64 100, !15, i64 104, !13, i64 108, !7, i64 112}
!53 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!56 = !{!"_ZTS16ImGuiDockContext", !26, i64 0, !57, i64 16, !58, i64 32, !11, i64 48}
!57 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !13, i64 0, !13, i64 4, !6, i64 8}
!58 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !13, i64 0, !13, i64 4, !6, i64 8}
!59 = !{!"_ZTS15ImGuiTextBuffer", !49, i64 0}
!60 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!61 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !49, i64 0}
!62 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!63 = !{!10, !11, i64 1}
!64 = !{i8 0, i8 2}
!65 = !{}
!66 = !{!67, !11, i64 0}
!67 = !{!"_ZTS11ImFontAtlas", !11, i64 0, !13, i64 4, !6, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !14, i64 48, !14, i64 56, !36, i64 64, !68, i64 80, !69, i64 96, !7, i64 112, !13, i64 1136, !13, i64 1140}
!68 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !13, i64 0, !13, i64 4, !6, i64 8}
!69 = !{!"_ZTS8ImVectorI12ImFontConfigE", !13, i64 0, !13, i64 4, !6, i64 8}
!70 = !{!10, !11, i64 0}
!71 = !{!10, !11, i64 12216}
!72 = !{!10, !6, i64 32}
!73 = !{!13, !13, i64 0}
!74 = !{!10, !13, i64 6976}
!75 = distinct !{!75, !76}
!76 = !{!"llvm.loop.mustprogress"}
!77 = !{!10, !6, i64 7064}
!78 = !{!10, !6, i64 7544}
!79 = !{!10, !6, i64 7088}
!80 = !{!10, !6, i64 7080}
!81 = !{!10, !6, i64 7072}
!82 = !{!10, !6, i64 7224}
!83 = !{!10, !6, i64 7200}
!84 = !{!10, !6, i64 7104}
!85 = !{!10, !6, i64 7528}
!86 = !{!10, !6, i64 7520}
!87 = !{!10, !6, i64 7512}
!88 = !{!10, !13, i64 7488}
!89 = distinct !{!89, !76}
!90 = !{!10, !6, i64 12280}


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

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z11ImFileCloseP8_IO_FILE(ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui8ShutdownEP12ImGuiContext(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 168
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %9, label %4

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 1
  %6 = load i8, ptr %5, align 1, !tbaa !62, !range !63, !noundef !64
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %8, label %9

8:                                                ; preds = %4
  store i8 0, ptr %3, align 8, !tbaa !65
  tail call void @_Z9IM_DELETEI11ImFontAtlasEvPT_(ptr noundef nonnull %3)
  br label %9

9:                                                ; preds = %8, %4, %1
  store ptr null, ptr %2, align 8, !tbaa !5
  %10 = load i8, ptr %0, align 8, !tbaa !69, !range !63, !noundef !64
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %73

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 12216
  %14 = load i8, ptr %13, align 8, !tbaa !70, !range !63, !noundef !64
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %22

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !71
  %.not63 = icmp eq ptr %18, null
  br i1 %.not63, label %22, label %19

19:                                               ; preds = %16
  %20 = load ptr, ptr @GImGui, align 8, !tbaa !72
  tail call void @_ZN5ImGui17SetCurrentContextEP12ImGuiContext(ptr noundef nonnull %0)
  %21 = load ptr, ptr %17, align 8, !tbaa !71
  tail call void @_ZN5ImGui21SaveIniSettingsToDiskEPKc(ptr noundef %21)
  tail call void @_ZN5ImGui17SetCurrentContextEP12ImGuiContext(ptr noundef %20)
  br label %22

22:                                               ; preds = %19, %16, %12
  %23 = tail call noundef ptr @_ZN5ImGui17GetCurrentContextEv()
  tail call void @_ZN5ImGui17SetCurrentContextEP12ImGuiContext(ptr noundef nonnull %0)
  tail call void @_ZN5ImGui22DestroyPlatformWindowsEv()
  tail call void @_ZN5ImGui17SetCurrentContextEP12ImGuiContext(ptr noundef %23)
  tail call void @_ZN5ImGui19DockContextShutdownEP12ImGuiContext(ptr noundef nonnull %0)
  %24 = getelementptr inbounds i8, ptr %0, i64 6976
  %25 = load i32, ptr %24, align 8, !tbaa !73
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %22
  tail call void @_ZN8ImVectorIP11ImGuiWindowE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %27 = getelementptr inbounds i8, ptr %0, i64 6992
  tail call void @_ZN8ImVectorIP11ImGuiWindowE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %28 = getelementptr inbounds i8, ptr %0, i64 7008
  tail call void @_ZN8ImVectorIP11ImGuiWindowE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  %29 = getelementptr inbounds i8, ptr %0, i64 7064
  store ptr null, ptr %29, align 8, !tbaa !74
  %30 = getelementptr inbounds i8, ptr %0, i64 7024
  tail call void @_ZN8ImVectorIP11ImGuiWindowE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
  %31 = getelementptr inbounds i8, ptr %0, i64 7040
  tail call void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
  %32 = getelementptr inbounds i8, ptr %0, i64 7544
  store ptr null, ptr %32, align 8, !tbaa !75
  %33 = getelementptr inbounds i8, ptr %0, i64 7072
  %34 = getelementptr inbounds i8, ptr %0, i64 7224
  store ptr null, ptr %34, align 8, !tbaa !76
  %35 = getelementptr inbounds i8, ptr %0, i64 7200
  store ptr null, ptr %35, align 8, !tbaa !77
  %36 = getelementptr inbounds i8, ptr %0, i64 7104
  store ptr null, ptr %36, align 8, !tbaa !78
  %37 = getelementptr inbounds i8, ptr %0, i64 7408
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %33, i8 0, i64 24, i1 false)
  tail call void @_ZN8ImVectorI13ImGuiColorModE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  %38 = getelementptr inbounds i8, ptr %0, i64 7424
  tail call void @_ZN8ImVectorI13ImGuiStyleModE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
  %39 = getelementptr inbounds i8, ptr %0, i64 7440
  tail call void @_ZN8ImVectorIP6ImFontE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %39)
  %40 = getelementptr inbounds i8, ptr %0, i64 7456
  tail call void @_ZN8ImVectorI14ImGuiPopupDataE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %40)
  %41 = getelementptr inbounds i8, ptr %0, i64 7472
  tail call void @_ZN8ImVectorI14ImGuiPopupDataE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %41)
  %42 = getelementptr inbounds i8, ptr %0, i64 7512
  %43 = getelementptr inbounds i8, ptr %0, i64 7488
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %42, i8 0, i64 24, i1 false)
  %44 = load i32, ptr %43, align 8, !tbaa !79
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph70, label %._crit_edge71

.lr.ph:                                           ; preds = %22, %.lr.ph
  %.06067 = phi i32 [ %48, %.lr.ph ], [ 0, %22 ]
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP11ImGuiWindowEixEi(ptr noundef nonnull align 8 dereferenceable(16) %24, i32 noundef %.06067)
  %47 = load ptr, ptr %46, align 8, !tbaa !72
  tail call void @_Z9IM_DELETEI11ImGuiWindowEvPT_(ptr noundef %47)
  %48 = add nuw nsw i32 %.06067, 1
  %49 = load i32, ptr %24, align 8, !tbaa !73
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %.lr.ph, label %._crit_edge, !llvm.loop !80

._crit_edge71:                                    ; preds = %.lr.ph70, %._crit_edge
  tail call void @_ZN8ImVectorIP14ImGuiViewportPE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  %51 = getelementptr inbounds i8, ptr %0, i64 8104
  tail call void @_ZN6ImPoolI11ImGuiTabBarE5ClearEv(ptr noundef nonnull align 8 dereferenceable(36) %51)
  %52 = getelementptr inbounds i8, ptr %0, i64 8144
  tail call void @_ZN8ImVectorI15ImGuiPtrOrIndexE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %52)
  %53 = getelementptr inbounds i8, ptr %0, i64 8160
  tail call void @_ZN8ImVectorI20ImGuiShrinkWidthItemE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %53)
  %54 = getelementptr inbounds i8, ptr %0, i64 12104
  tail call void @_ZN8ImVectorIcE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %54)
  %55 = getelementptr inbounds i8, ptr %0, i64 12120
  tail call void @_ZN8ImVectorIjE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %55)
  %56 = getelementptr inbounds i8, ptr %0, i64 8184
  tail call void @_ZN19ImGuiInputTextState15ClearFreeMemoryEv(ptr noundef nonnull align 8 dereferenceable(3728) %56)
  %57 = getelementptr inbounds i8, ptr %0, i64 12256
  tail call void @_ZN13ImChunkStreamI19ImGuiWindowSettingsE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %57)
  %58 = getelementptr inbounds i8, ptr %0, i64 12240
  tail call void @_ZN8ImVectorI20ImGuiSettingsHandlerE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %58)
  %59 = getelementptr inbounds i8, ptr %0, i64 12280
  %60 = load ptr, ptr %59, align 8, !tbaa !82
  %.not64 = icmp eq ptr %60, null
  br i1 %.not64, label %71, label %66

.lr.ph70:                                         ; preds = %._crit_edge, %.lr.ph70
  %.068 = phi i32 [ %63, %.lr.ph70 ], [ 0, %._crit_edge ]
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP14ImGuiViewportPEixEi(ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %.068)
  %62 = load ptr, ptr %61, align 8, !tbaa !72
  tail call void @_Z9IM_DELETEI14ImGuiViewportPEvPT_(ptr noundef %62)
  %63 = add nuw nsw i32 %.068, 1
  %64 = load i32, ptr %43, align 8, !tbaa !79
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %.lr.ph70, label %._crit_edge71, !llvm.loop !83

66:                                               ; preds = %._crit_edge71
  %67 = load ptr, ptr @stdout, align 8, !tbaa !72
  %.not65 = icmp eq ptr %60, %67
  br i1 %.not65, label %70, label %68

68:                                               ; preds = %66
  %69 = tail call noundef zeroext i1 @_Z11ImFileCloseP8_IO_FILE(ptr noundef nonnull %60)
  br label %70

70:                                               ; preds = %68, %66
  store ptr null, ptr %59, align 8, !tbaa !82
  br label %71

71:                                               ; preds = %70, %._crit_edge71
  %72 = getelementptr inbounds i8, ptr %0, i64 12288
  tail call void @_ZN15ImGuiTextBuffer5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %72)
  store i8 0, ptr %0, align 8, !tbaa !69
  br label %73

73:                                               ; preds = %9, %71
  ret void
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui22DestroyPlatformWindowsEv() local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPoolI11ImGuiTabBarE5ClearEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19ImGuiInputTextState15ClearFreeMemoryEv(ptr noundef nonnull align 8 dereferenceable(3728)) local_unnamed_addr #0 align 2

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !14, i64 168}
!6 = !{!"_ZTS12ImGuiContext", !7, i64 0, !7, i64 1, !10, i64 8, !17, i64 5472, !20, i64 5704, !11, i64 6692, !11, i64 6696, !14, i64 6704, !13, i64 6712, !13, i64 6716, !21, i64 6720, !23, i64 6936, !11, i64 6944, !11, i64 6948, !11, i64 6952, !11, i64 6956, !7, i64 6960, !7, i64 6961, !7, i64 6962, !7, i64 6963, !11, i64 6964, !14, i64 6968, !24, i64 6976, !24, i64 6992, !24, i64 7008, !24, i64 7024, !25, i64 7040, !11, i64 7056, !14, i64 7064, !14, i64 7072, !14, i64 7080, !14, i64 7088, !14, i64 7096, !14, i64 7104, !14, i64 7112, !12, i64 7120, !13, i64 7128, !11, i64 7132, !11, i64 7136, !7, i64 7140, !7, i64 7141, !13, i64 7144, !13, i64 7148, !11, i64 7152, !11, i64 7156, !13, i64 7160, !7, i64 7164, !7, i64 7165, !7, i64 7166, !7, i64 7167, !7, i64 7168, !7, i64 7169, !11, i64 7172, !11, i64 7176, !27, i64 7184, !12, i64 7192, !14, i64 7200, !28, i64 7208, !11, i64 7212, !11, i64 7216, !7, i64 7220, !7, i64 7221, !14, i64 7224, !11, i64 7232, !13, i64 7236, !29, i64 7240, !32, i64 7384, !33, i64 7408, !34, i64 7424, !35, i64 7440, !36, i64 7456, !36, i64 7472, !37, i64 7488, !13, i64 7504, !14, i64 7512, !14, i64 7520, !14, i64 7528, !11, i64 7536, !11, i64 7540, !14, i64 7544, !11, i64 7552, !11, i64 7556, !11, i64 7560, !11, i64 7564, !11, i64 7568, !11, i64 7572, !11, i64 7576, !11, i64 7580, !11, i64 7584, !11, i64 7588, !11, i64 7592, !28, i64 7596, !30, i64 7600, !11, i64 7616, !38, i64 7620, !11, i64 7624, !7, i64 7628, !7, i64 7629, !7, i64 7630, !7, i64 7631, !7, i64 7632, !7, i64 7633, !7, i64 7634, !11, i64 7636, !30, i64 7640, !7, i64 7656, !7, i64 7657, !11, i64 7660, !39, i64 7664, !11, i64 7668, !11, i64 7672, !11, i64 7676, !11, i64 7680, !40, i64 7688, !40, i64 7736, !40, i64 7784, !14, i64 7832, !11, i64 7840, !14, i64 7848, !14, i64 7856, !14, i64 7864, !13, i64 7872, !13, i64 7876, !7, i64 7880, !14, i64 7888, !14, i64 7896, !11, i64 7904, !11, i64 7908, !11, i64 7912, !11, i64 7916, !7, i64 7920, !13, i64 7924, !11, i64 7928, !7, i64 7932, !7, i64 7933, !7, i64 7934, !11, i64 7936, !11, i64 7940, !11, i64 7944, !41, i64 7952, !30, i64 8016, !11, i64 8032, !11, i64 8036, !13, i64 8040, !11, i64 8044, !11, i64 8048, !11, i64 8052, !11, i64 8056, !42, i64 8064, !8, i64 8080, !14, i64 8096, !43, i64 8104, !45, i64 8144, !46, i64 8160, !12, i64 8176, !47, i64 8184, !51, i64 11912, !11, i64 12032, !11, i64 12036, !13, i64 12040, !13, i64 12044, !8, i64 12048, !22, i64 12060, !13, i64 12076, !7, i64 12080, !7, i64 12081, !13, i64 12084, !13, i64 12088, !13, i64 12092, !11, i64 12096, !48, i64 12104, !54, i64 12120, !12, i64 12136, !12, i64 12144, !14, i64 12152, !55, i64 12160, !7, i64 12216, !13, i64 12220, !58, i64 12224, !59, i64 12240, !60, i64 12256, !7, i64 12272, !61, i64 12276, !14, i64 12280, !58, i64 12288, !13, i64 12304, !7, i64 12308, !11, i64 12312, !11, i64 12316, !11, i64 12320, !7, i64 12324, !11, i64 12328, !8, i64 12332, !11, i64 12812, !13, i64 12816, !11, i64 12820, !11, i64 12824, !11, i64 12828, !8, i64 12832}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !13, i64 20, !14, i64 24, !14, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !8, i64 52, !13, i64 140, !13, i64 144, !14, i64 152, !14, i64 160, !13, i64 168, !7, i64 172, !14, i64 176, !12, i64 184, !7, i64 192, !7, i64 193, !7, i64 194, !7, i64 195, !7, i64 196, !7, i64 197, !7, i64 198, !7, i64 199, !7, i64 200, !7, i64 201, !7, i64 202, !7, i64 203, !7, i64 204, !13, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !14, i64 272, !14, i64 280, !12, i64 288, !8, i64 296, !13, i64 304, !13, i64 308, !11, i64 312, !7, i64 316, !7, i64 317, !7, i64 318, !7, i64 319, !8, i64 320, !8, i64 832, !7, i64 916, !7, i64 917, !7, i64 918, !7, i64 919, !7, i64 920, !7, i64 921, !7, i64 922, !13, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !11, i64 940, !11, i64 944, !12, i64 948, !11, i64 956, !12, i64 960, !8, i64 968, !8, i64 1008, !8, i64 1048, !8, i64 1053, !8, i64 1058, !8, i64 1063, !8, i64 1068, !8, i64 1076, !8, i64 1096, !8, i64 1116, !8, i64 1156, !8, i64 1176, !8, i64 3224, !8, i64 5272, !8, i64 5356, !13, i64 5440, !15, i64 5444, !16, i64 5448}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"short", !8, i64 0}
!16 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !14, i64 8}
!17 = !{!"_ZTS15ImGuiPlatformIO", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !18, i64 192, !14, i64 208, !19, i64 216}
!18 = !{!"_ZTS8ImVectorI20ImGuiPlatformMonitorE", !11, i64 0, !11, i64 4, !14, i64 8}
!19 = !{!"_ZTS8ImVectorIP13ImGuiViewportE", !11, i64 0, !11, i64 4, !14, i64 8}
!20 = !{!"_ZTS10ImGuiStyle", !13, i64 0, !12, i64 4, !13, i64 12, !13, i64 16, !12, i64 20, !12, i64 28, !11, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !12, i64 56, !13, i64 64, !13, i64 68, !12, i64 72, !12, i64 80, !12, i64 88, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !11, i64 136, !12, i64 140, !12, i64 148, !12, i64 156, !12, i64 164, !13, i64 172, !7, i64 176, !7, i64 177, !7, i64 178, !13, i64 180, !13, i64 184, !8, i64 188}
!21 = !{!"_ZTS20ImDrawListSharedData", !12, i64 0, !14, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !22, i64 28, !11, i64 44, !8, i64 48, !8, i64 144, !14, i64 208}
!22 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!23 = !{!"double", !8, i64 0}
!24 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !11, i64 0, !11, i64 4, !14, i64 8}
!25 = !{!"_ZTS12ImGuiStorage", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !11, i64 0, !11, i64 4, !14, i64 8}
!27 = !{!"long long", !8, i64 0}
!28 = !{!"_ZTS16ImGuiInputSource", !8, i64 0}
!29 = !{!"_ZTS19ImGuiNextWindowData", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !12, i64 28, !12, i64 36, !12, i64 44, !12, i64 52, !7, i64 60, !7, i64 61, !30, i64 64, !14, i64 80, !14, i64 88, !13, i64 96, !11, i64 100, !11, i64 104, !31, i64 108, !12, i64 136}
!30 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!31 = !{!"_ZTS16ImGuiWindowClass", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, i64 24, !7, i64 25}
!32 = !{!"_ZTS17ImGuiNextItemData", !11, i64 0, !13, i64 4, !11, i64 8, !11, i64 12, !7, i64 16}
!33 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !11, i64 0, !11, i64 4, !14, i64 8}
!34 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !11, i64 0, !11, i64 4, !14, i64 8}
!35 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !14, i64 8}
!36 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !11, i64 0, !11, i64 4, !14, i64 8}
!37 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !11, i64 0, !11, i64 4, !14, i64 8}
!38 = !{!"_ZTS13ImGuiNavLayer", !8, i64 0}
!39 = !{!"_ZTS15ImGuiNavForward", !8, i64 0}
!40 = !{!"_ZTS18ImGuiNavMoveResult", !14, i64 0, !11, i64 8, !11, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !30, i64 28}
!41 = !{!"_ZTS12ImGuiPayload", !14, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !8, i64 24, !7, i64 57, !7, i64 58}
!42 = !{!"_ZTS8ImVectorIhE", !11, i64 0, !11, i64 4, !14, i64 8}
!43 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !44, i64 0, !25, i64 16, !11, i64 32}
!44 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !11, i64 0, !11, i64 4, !14, i64 8}
!45 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !11, i64 0, !11, i64 4, !14, i64 8}
!46 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !11, i64 0, !11, i64 4, !14, i64 8}
!47 = !{!"_ZTS19ImGuiInputTextState", !11, i64 0, !11, i64 4, !11, i64 8, !16, i64 16, !48, i64 32, !48, i64 48, !7, i64 64, !11, i64 68, !13, i64 72, !49, i64 76, !13, i64 3696, !7, i64 3700, !7, i64 3701, !7, i64 3702, !11, i64 3704, !14, i64 3712, !14, i64 3720}
!48 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !14, i64 8}
!49 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !11, i64 0, !11, i64 4, !11, i64 8, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 19, !13, i64 20, !50, i64 24}
!50 = !{!"_ZTSN5ImStb12StbUndoStateE", !8, i64 0, !8, i64 1584, !15, i64 3582, !15, i64 3584, !11, i64 3588, !11, i64 3592}
!51 = !{!"_ZTS6ImFont", !52, i64 0, !13, i64 16, !13, i64 20, !16, i64 24, !53, i64 40, !14, i64 56, !12, i64 64, !14, i64 72, !14, i64 80, !15, i64 88, !15, i64 90, !15, i64 92, !7, i64 94, !13, i64 96, !13, i64 100, !13, i64 104, !11, i64 108, !8, i64 112}
!52 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !14, i64 8}
!53 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !11, i64 0, !11, i64 4, !14, i64 8}
!54 = !{!"_ZTS8ImVectorIjE", !11, i64 0, !11, i64 4, !14, i64 8}
!55 = !{!"_ZTS16ImGuiDockContext", !25, i64 0, !56, i64 16, !57, i64 32, !7, i64 48}
!56 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !11, i64 0, !11, i64 4, !14, i64 8}
!57 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !11, i64 0, !11, i64 4, !14, i64 8}
!58 = !{!"_ZTS15ImGuiTextBuffer", !48, i64 0}
!59 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !11, i64 0, !11, i64 4, !14, i64 8}
!60 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !48, i64 0}
!61 = !{!"_ZTS12ImGuiLogType", !8, i64 0}
!62 = !{!6, !7, i64 1}
!63 = !{i8 0, i8 2}
!64 = !{}
!65 = !{!66, !7, i64 0}
!66 = !{!"_ZTS11ImFontAtlas", !7, i64 0, !11, i64 4, !14, i64 8, !11, i64 16, !11, i64 20, !14, i64 24, !14, i64 32, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 56, !35, i64 64, !67, i64 80, !68, i64 96, !8, i64 112, !11, i64 1136, !11, i64 1140}
!67 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !11, i64 0, !11, i64 4, !14, i64 8}
!68 = !{!"_ZTS8ImVectorI12ImFontConfigE", !11, i64 0, !11, i64 4, !14, i64 8}
!69 = !{!6, !7, i64 0}
!70 = !{!6, !7, i64 12216}
!71 = !{!6, !14, i64 32}
!72 = !{!14, !14, i64 0}
!73 = !{!6, !11, i64 6976}
!74 = !{!6, !14, i64 7064}
!75 = !{!6, !14, i64 7544}
!76 = !{!6, !14, i64 7224}
!77 = !{!6, !14, i64 7200}
!78 = !{!6, !14, i64 7104}
!79 = !{!6, !11, i64 7488}
!80 = distinct !{!80, !81}
!81 = !{!"llvm.loop.mustprogress"}
!82 = !{!6, !14, i64 12280}
!83 = distinct !{!83, !81}


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