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

; 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.anon = type <{ ptr, ptr, ptr, %struct.ImGuiStorage, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVec2, %struct.ImRect, i32, [4 x i8], %"struct.imnodes::IO", %"struct.imnodes::Style", %struct.ImVector.1, %struct.ImVector.2, %struct.ImGuiTextBuffer, i32, [4 x i8], %struct.ImVector.0, i32, i32, i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32, i32, i8, [3 x i8], %struct.ImVec2, i8, i8, i8, i8, i8, [3 x i8] }>
%struct.ImGuiStorage = type { %struct.ImVector }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.imnodes::IO" = type { %"struct.imnodes::IO::EmulateThreeButtonMouse", %"struct.imnodes::IO::LinkDetachWithModifierClick" }
%"struct.imnodes::IO::EmulateThreeButtonMouse" = type { i8, ptr }
%"struct.imnodes::IO::LinkDetachWithModifierClick" = type { ptr }
%"struct.imnodes::Style" = type { float, float, float, float, float, float, float, float, float, float, float, float, float, i32, [16 x i32] }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.3 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%"struct.imnodes::(anonymous namespace)::OptionalIndex" = type { i32 }
%struct.ImVec2 = type { float, float }

@_ZN7imnodes12_GLOBAL__N_11gE = external hidden global %struct.anon, align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7imnodes15StyleColorsDarkEv() #0 {
  store i32 -13487566, ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), align 8, !tbaa !5
  store i32 -11842741, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 1), align 4, !tbaa !5
  store i32 -11842741, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 2), align 8, !tbaa !5
  store i32 -10197916, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 3), align 4, !tbaa !5
  store i32 -8762839, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 4), align 8, !tbaa !5
  store i32 -354750, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 5), align 4, !tbaa !5
  store i32 -354750, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 6), align 8, !tbaa !5
  store i32 -924809923, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 7), align 4, !tbaa !5
  store i32 -354750, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 8), align 8, !tbaa !5
  store i32 -354750, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 9), align 4, !tbaa !5
  store i32 -1258645963, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 10), align 8, !tbaa !5
  store i32 -354763, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 11), align 4, !tbaa !5
  store i32 518030653, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 12), align 8, !tbaa !5
  store i32 -1763670723, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 13), align 4, !tbaa !5
  store i32 -936237016, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 14), align 8, !tbaa !5
  store i32 684247240, ptr getelementptr inbounds ([16 x i32], ptr getelementptr inbounds (%"struct.imnodes::Style", ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 11), i32 0, i32 14), i64 0, i64 15), align 4, !tbaa !5
  ret void
}

attributes #0 = { 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; 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.anon = type <{ ptr, ptr, ptr, %struct.ImGuiStorage, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVec2, %struct.ImRect, i32, [4 x i8], %"struct.imnodes::IO", %"struct.imnodes::Style", %struct.ImVector.1, %struct.ImVector.2, %struct.ImGuiTextBuffer, i32, [4 x i8], %struct.ImVector.0, i32, i32, i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32, i32, i8, [3 x i8], %struct.ImVec2, i8, i8, i8, i8, i8, [3 x i8] }>
%struct.ImGuiStorage = type { %struct.ImVector }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.imnodes::IO" = type { %"struct.imnodes::IO::EmulateThreeButtonMouse", %"struct.imnodes::IO::LinkDetachWithModifierClick" }
%"struct.imnodes::IO::EmulateThreeButtonMouse" = type { i8, ptr }
%"struct.imnodes::IO::LinkDetachWithModifierClick" = type { ptr }
%"struct.imnodes::Style" = type { float, float, float, float, float, float, float, float, float, float, float, float, float, i32, [16 x i32] }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.3 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%"struct.imnodes::(anonymous namespace)::OptionalIndex" = type { i32 }
%struct.ImVec2 = type { float, float }

@_ZN7imnodes12_GLOBAL__N_11gE = external hidden local_unnamed_addr global %struct.anon, align 8

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @_ZN7imnodes15StyleColorsDarkEv() local_unnamed_addr #0 {
  store <4 x i32> <i32 -13487566, i32 -11842741, i32 -11842741, i32 -10197916>, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 184), align 8, !tbaa !5
  store <4 x i32> <i32 -8762839, i32 -354750, i32 -354750, i32 -924809923>, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 200), align 8, !tbaa !5
  store <4 x i32> <i32 -354750, i32 -354750, i32 -1258645963, i32 -354763>, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 216), align 8, !tbaa !5
  store <4 x i32> <i32 518030653, i32 -1763670723, i32 -936237016, i32 684247240>, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 232), align 8, !tbaa !5
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass