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

; 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.ImVec2ih = type { i16, i16 }
%struct.ImGuiWindow = type <{ ptr, i32, i32, i32, %struct.ImGuiWindowClass, ptr, i32, %struct.ImVec2, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i32, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [4 x i8], %struct.ImVector.17, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, i32, float, float, %struct.ImGuiStorage, %struct.ImVector.23, float, float, i32, [4 x i8], ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i8, [3 x i8], i32, i32, [4 x i8], ptr, ptr, i32, i32, %struct.ImRect, i16, i8, [5 x i8] }>
%struct.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImVec2 = type { float, float }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type <{ %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, i32, i32, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.5, ptr, ptr, i32, i32, i32, i32, i32, float, float, [4 x i8], %struct.ImVector.21, %struct.ImVector.15, %struct.ImVector.15, %struct.ImVector.22, [6 x i16], [4 x i8] }>
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type { float, float, float, [3 x float], [3 x float] }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.0 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImDrawList = type { %struct.ImVector.24, %struct.ImVector, %struct.ImVector.25, i32, ptr, ptr, i32, ptr, ptr, %struct.ImVector.26, %struct.ImVector.27, %struct.ImVector.28, %struct.ImDrawCmd, %struct.ImDrawListSplitter }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImVector.28 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.29 }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiWindowSettings = type { i32, %struct.ImVec2ih, %struct.ImVec2ih, %struct.ImVec2ih, i32, i32, i32, i16, i8, i8 }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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 ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui26FindOrCreateWindowSettingsEPKc(ptr noundef) #2

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

16:                                               ; preds = %2
  store i32 1, ptr %6, align 4
  br label %86

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef %18)
  store ptr %19, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %42

22:                                               ; preds = %17
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ImGuiWindow, ptr %23, i32 0, i32 9
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImGuiWindow, ptr %25, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %24, i64 8, i1 false), !tbaa.struct !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ImGuiWindow, ptr %27, i32 0, i32 10
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ImGuiWindow, ptr %29, i32 0, i32 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGuiWindow, ptr %31, i32 0, i32 11
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ImGuiWindow, ptr %33, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %32, i64 8, i1 false), !tbaa.struct !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGuiWindow, ptr %35, i32 0, i32 31
  %37 = load i8, ptr %36, align 2, !tbaa !12, !range !44, !noundef !45
  %38 = trunc i8 %37 to i1
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiWindow, ptr %39, i32 0, i32 31
  %41 = zext i1 %38 to i8
  store i8 %41, ptr %40, align 2, !tbaa !12
  br label %85

42:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call noundef ptr @_ZN5ImGui26FindOrCreateWindowSettingsEPKc(ptr noundef %43)
  store ptr %44, ptr %8, align 8, !tbaa !5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %84

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ImGuiWindow, ptr %48, i32 0, i32 9
  call void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(8) %49)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImGuiWindow, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %51, align 8, !tbaa !46
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %69

54:                                               ; preds = %47
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ImGuiWindow, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %56, align 8, !tbaa !46
  %58 = icmp ne i32 %57, 286331153
  br i1 %58, label %59, label %69

59:                                               ; preds = %54
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %60, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !47
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ImGuiWindow, ptr %62, i32 0, i32 6
  %64 = load i32, ptr %63, align 8, !tbaa !46
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %65, i32 0, i32 4
  store i32 %64, ptr %66, align 4, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @_ZN8ImVec2ihC2Ess(ptr noundef nonnull align 2 dereferenceable(4) %10, i16 noundef signext 0, i16 noundef signext 0)
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %67, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 2 %10, i64 4, i1 false), !tbaa.struct !47
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %72

69:                                               ; preds = %54, %47
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %70, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !47
  br label %72

72:                                               ; preds = %69, %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImGuiWindow, ptr %73, i32 0, i32 11
  call void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(8) %74)
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %75, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 2 %11, i64 4, i1 false), !tbaa.struct !47
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ImGuiWindow, ptr %77, i32 0, i32 31
  %79 = load i8, ptr %78, align 2, !tbaa !12, !range !44, !noundef !45
  %80 = trunc i8 %79 to i1
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %81, i32 0, i32 8
  %83 = zext i1 %80 to i8
  store i8 %83, ptr %82, align 2, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %84

84:                                               ; preds = %72, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %85

85:                                               ; preds = %84, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  store i32 0, ptr %6, align 4
  br label %86

86:                                               ; preds = %85, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %87 = load i32, ptr %6, align 4
  switch i32 %87, label %89 [
    i32 0, label %88
    i32 1, label %88
  ]

88:                                               ; preds = %86, %86
  ret void

89:                                               ; preds = %86
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVec2ihC2Ess(ptr noundef nonnull align 2 dereferenceable(4), i16 noundef signext, i16 noundef signext) unnamed_addr #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = !{i64 0, i64 4, !10, i64 4, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !16, i64 186}
!13 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !15, i64 20, !6, i64 48, !14, i64 56, !17, i64 60, !14, i64 68, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !11, i64 120, !11, i64 124, !14, i64 128, !14, i64 132, !14, i64 136, !17, i64 140, !17, i64 148, !17, i64 156, !17, i64 164, !17, i64 172, !16, i64 180, !16, i64 181, !16, i64 182, !16, i64 183, !16, i64 184, !16, i64 185, !16, i64 186, !16, i64 187, !16, i64 188, !16, i64 189, !16, i64 190, !16, i64 191, !16, i64 192, !7, i64 193, !18, i64 194, !18, i64 196, !18, i64 198, !14, i64 200, !7, i64 204, !7, i64 205, !7, i64 206, !16, i64 207, !14, i64 208, !14, i64 212, !14, i64 216, !14, i64 220, !14, i64 224, !14, i64 228, !14, i64 232, !17, i64 236, !17, i64 244, !19, i64 256, !20, i64 272, !22, i64 600, !22, i64 616, !22, i64 632, !22, i64 648, !22, i64 664, !22, i64 680, !22, i64 696, !29, i64 712, !29, i64 716, !14, i64 720, !14, i64 724, !11, i64 728, !11, i64 732, !30, i64 736, !32, i64 752, !11, i64 768, !11, i64 772, !14, i64 776, !6, i64 784, !33, i64 792, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056, !7, i64 1064, !7, i64 1072, !16, i64 1104, !14, i64 1108, !14, i64 1112, !6, i64 1120, !6, i64 1128, !14, i64 1136, !14, i64 1140, !22, i64 1144, !18, i64 1160, !16, i64 1162, !16, i64 1162, !16, i64 1162}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS16ImGuiWindowClass", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !16, i64 24, !16, i64 25}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!18 = !{!"short", !7, i64 0}
!19 = !{!"_ZTS8ImVectorIjE", !14, i64 0, !14, i64 4, !6, i64 8}
!20 = !{!"_ZTS19ImGuiWindowTempData", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !11, i64 48, !11, i64 52, !21, i64 56, !21, i64 60, !21, i64 64, !14, i64 68, !14, i64 72, !22, i64 76, !22, i64 92, !23, i64 108, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !16, i64 128, !16, i64 129, !16, i64 130, !17, i64 132, !24, i64 140, !14, i64 176, !14, i64 180, !25, i64 184, !6, i64 200, !6, i64 208, !14, i64 216, !14, i64 220, !14, i64 224, !14, i64 228, !14, i64 232, !11, i64 236, !11, i64 240, !26, i64 248, !27, i64 264, !27, i64 280, !28, i64 296, !7, i64 312}
!21 = !{!"_ZTS6ImVec1", !11, i64 0}
!22 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!23 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!24 = !{!"_ZTS16ImGuiMenuColumns", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !7, i64 24}
!25 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !14, i64 0, !14, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorIiE", !14, i64 0, !14, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorIfE", !14, i64 0, !14, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !14, i64 0, !14, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVec2ih", !18, i64 0, !18, i64 2}
!30 = !{!"_ZTS12ImGuiStorage", !31, i64 0}
!31 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !14, i64 0, !14, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI12ImGuiColumnsE", !14, i64 0, !14, i64 4, !6, i64 8}
!33 = !{!"_ZTS10ImDrawList", !34, i64 0, !35, i64 16, !36, i64 32, !14, i64 48, !6, i64 56, !6, i64 64, !14, i64 72, !6, i64 80, !6, i64 88, !37, i64 96, !38, i64 112, !39, i64 128, !40, i64 144, !42, i64 200}
!34 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !14, i64 0, !14, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorItE", !14, i64 0, !14, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorI10ImDrawVertE", !14, i64 0, !14, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI6ImVec4E", !14, i64 0, !14, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIPvE", !14, i64 0, !14, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI6ImVec2E", !14, i64 0, !14, i64 4, !6, i64 8}
!40 = !{!"_ZTS9ImDrawCmd", !41, i64 0, !6, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !6, i64 40, !6, i64 48}
!41 = !{!"_ZTS6ImVec4", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!42 = !{!"_ZTS18ImDrawListSplitter", !14, i64 0, !14, i64 4, !43, i64 8}
!43 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !14, i64 0, !14, i64 4, !6, i64 8}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = !{!13, !14, i64 56}
!47 = !{i64 0, i64 2, !48, i64 2, i64 2, !48}
!48 = !{!18, !18, i64 0}
!49 = !{!50, !14, i64 16}
!50 = !{!"_ZTS19ImGuiWindowSettings", !14, i64 0, !29, i64 4, !29, i64 8, !29, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !18, i64 28, !16, i64 30, !16, i64 31}
!51 = !{!50, !16, i64 30}


; 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.ImVec2ih = type { i16, i16 }

; 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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui26FindOrCreateWindowSettingsEPKc(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui29DockBuilderCopyWindowSettingsEPKcS1_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.ImVec2ih, align 4
  %4 = alloca %struct.ImVec2ih, align 4
  %5 = alloca %struct.ImVec2ih, align 4
  %6 = tail call noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef %0)
  %7 = icmp eq ptr %6, null
  br i1 %7, label %46, label %8

8:                                                ; preds = %2
  %9 = tail call noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef %1)
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %23, label %10

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %6, i64 72
  %12 = getelementptr inbounds i8, ptr %9, i64 72
  %13 = load i64, ptr %11, align 8
  store i64 %13, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr %6, i64 80
  %15 = getelementptr inbounds i8, ptr %9, i64 80
  %16 = load i64, ptr %14, align 8
  store i64 %16, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr %6, i64 88
  %18 = getelementptr inbounds i8, ptr %9, i64 88
  %19 = load i64, ptr %17, align 8
  store i64 %19, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr %6, i64 186
  %21 = load i8, ptr %20, align 2, !tbaa !5, !range !41, !noundef !42
  %22 = getelementptr inbounds i8, ptr %9, i64 186
  store i8 %21, ptr %22, align 2, !tbaa !5
  br label %46

23:                                               ; preds = %8
  %24 = tail call noundef ptr @_ZN5ImGui26FindOrCreateWindowSettingsEPKc(ptr noundef %1)
  %.not29 = icmp eq ptr %24, null
  br i1 %.not29, label %46, label %25

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %26 = getelementptr inbounds i8, ptr %6, i64 72
  call void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(8) %26)
  %27 = getelementptr inbounds i8, ptr %6, i64 56
  %28 = load i32, ptr %27, align 8, !tbaa !43
  switch i32 %28, label %29 [
    i32 0, label %36
    i32 286331153, label %36
  ]

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %24, i64 12
  %31 = load i32, ptr %3, align 4
  store i32 %31, ptr %30, align 4
  %32 = load i32, ptr %27, align 8, !tbaa !43
  %33 = getelementptr inbounds i8, ptr %24, i64 16
  store i32 %32, ptr %33, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  call void @_ZN8ImVec2ihC2Ess(ptr noundef nonnull align 2 dereferenceable(4) %4, i16 noundef signext 0, i16 noundef signext 0)
  %34 = getelementptr inbounds i8, ptr %24, i64 4
  %35 = load i32, ptr %4, align 4
  store i32 %35, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  br label %39

36:                                               ; preds = %25, %25
  %37 = getelementptr inbounds i8, ptr %24, i64 4
  %38 = load i32, ptr %3, align 4
  store i32 %38, ptr %37, align 4
  br label %39

39:                                               ; preds = %36, %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %40 = getelementptr inbounds i8, ptr %6, i64 88
  call void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(8) %40)
  %41 = getelementptr inbounds i8, ptr %24, i64 8
  %42 = load i32, ptr %5, align 4
  store i32 %42, ptr %41, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  %43 = getelementptr inbounds i8, ptr %6, i64 186
  %44 = load i8, ptr %43, align 2, !tbaa !5, !range !41, !noundef !42
  %45 = getelementptr inbounds i8, ptr %24, i64 30
  store i8 %44, ptr %45, align 2, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %46

46:                                               ; preds = %10, %39, %23, %2
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVec2ihC2Ess(ptr noundef nonnull align 2 dereferenceable(4), i16 noundef signext, i16 noundef signext) unnamed_addr #2 align 2

attributes #0 = { mustprogress 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 = { 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 = { 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, !12, i64 186}
!6 = !{!"_ZTS11ImGuiWindow", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 20, !7, i64 48, !10, i64 56, !13, i64 60, !10, i64 68, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !14, i64 120, !14, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !13, i64 140, !13, i64 148, !13, i64 156, !13, i64 164, !13, i64 172, !12, i64 180, !12, i64 181, !12, i64 182, !12, i64 183, !12, i64 184, !12, i64 185, !12, i64 186, !12, i64 187, !12, i64 188, !12, i64 189, !12, i64 190, !12, i64 191, !12, i64 192, !8, i64 193, !15, i64 194, !15, i64 196, !15, i64 198, !10, i64 200, !8, i64 204, !8, i64 205, !8, i64 206, !12, i64 207, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !13, i64 236, !13, i64 244, !16, i64 256, !17, i64 272, !19, i64 600, !19, i64 616, !19, i64 632, !19, i64 648, !19, i64 664, !19, i64 680, !19, i64 696, !26, i64 712, !26, i64 716, !10, i64 720, !10, i64 724, !14, i64 728, !14, i64 732, !27, i64 736, !29, i64 752, !14, i64 768, !14, i64 772, !10, i64 776, !7, i64 784, !30, i64 792, !7, i64 1016, !7, i64 1024, !7, i64 1032, !7, i64 1040, !7, i64 1048, !7, i64 1056, !8, i64 1064, !8, i64 1072, !12, i64 1104, !10, i64 1108, !10, i64 1112, !7, i64 1120, !7, i64 1128, !10, i64 1136, !10, i64 1140, !19, i64 1144, !15, i64 1160, !12, i64 1162, !12, i64 1162, !12, i64 1162}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS16ImGuiWindowClass", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !12, i64 25}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !8, i64 0}
!15 = !{!"short", !8, i64 0}
!16 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !7, i64 8}
!17 = !{!"_ZTS19ImGuiWindowTempData", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !14, i64 48, !14, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !10, i64 68, !10, i64 72, !19, i64 76, !19, i64 92, !20, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !12, i64 128, !12, i64 129, !12, i64 130, !13, i64 132, !21, i64 140, !10, i64 176, !10, i64 180, !22, i64 184, !7, i64 200, !7, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !14, i64 236, !14, i64 240, !23, i64 248, !24, i64 264, !24, i64 280, !25, i64 296, !8, i64 312}
!18 = !{!"_ZTS6ImVec1", !14, i64 0}
!19 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!20 = !{!"_ZTS13ImGuiNavLayer", !8, i64 0}
!21 = !{!"_ZTS16ImGuiMenuColumns", !14, i64 0, !14, i64 4, !14, i64 8, !8, i64 12, !8, i64 24}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !7, i64 8}
!23 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !7, i64 8}
!25 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !7, i64 8}
!26 = !{!"_ZTS8ImVec2ih", !15, i64 0, !15, i64 2}
!27 = !{!"_ZTS12ImGuiStorage", !28, i64 0}
!28 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !7, i64 8}
!29 = !{!"_ZTS8ImVectorI12ImGuiColumnsE", !10, i64 0, !10, i64 4, !7, i64 8}
!30 = !{!"_ZTS10ImDrawList", !31, i64 0, !32, i64 16, !33, i64 32, !10, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !7, i64 88, !34, i64 96, !35, i64 112, !36, i64 128, !37, i64 144, !39, i64 200}
!31 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !7, i64 8}
!32 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !7, i64 8}
!33 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !7, i64 8}
!34 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !7, i64 8}
!35 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !7, i64 8}
!36 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !7, i64 8}
!37 = !{!"_ZTS9ImDrawCmd", !38, i64 0, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !7, i64 40, !7, i64 48}
!38 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!39 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !40, i64 8}
!40 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !7, i64 8}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!6, !10, i64 56}
!44 = !{!45, !10, i64 16}
!45 = !{!"_ZTS19ImGuiWindowSettings", !10, i64 0, !26, i64 4, !26, i64 8, !26, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !15, i64 28, !12, i64 30, !12, i64 31}
!46 = !{!45, !12, i64 30}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass