; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Constraints (PoweredSwingTwistConstraintTest)

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

%"class.JPH::Array.28" = type { i64, i64, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.33 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.33 = type { i64, [8 x i8] }
%"class.JPH::STLAllocator.31" = type { i8 }
%"class.JPH::STLAllocator.29" = type { i8 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::function.36" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.38 = type { ptr, ptr, %"class.JPH::Array.28" }
%class.anon.39 = type { ptr, %"class.JPH::Array.28" }

@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; 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
define dso_local void @_ZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElement(ptr noundef nonnull align 8 dereferenceable(124) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.JPH::Array.28", align 8
  %8 = alloca %"class.std::initializer_list", align 8
  %9 = alloca [3 x %"class.std::__cxx11::basic_string"], align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.JPH::STLAllocator.31", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.JPH::STLAllocator.31", align 1
  %15 = alloca %"class.JPH::STLAllocator.31", align 1
  %16 = alloca i1, align 1
  %17 = alloca %"class.JPH::STLAllocator.29", align 1
  %18 = alloca %"class.JPH::Array.28", align 8
  %19 = alloca %"class.std::initializer_list", align 8
  %20 = alloca [3 x %"class.std::__cxx11::basic_string"], align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.JPH::STLAllocator.31", align 1
  %23 = alloca %"class.JPH::STLAllocator.31", align 1
  %24 = alloca %"class.JPH::STLAllocator.31", align 1
  %25 = alloca i1, align 1
  %26 = alloca %"class.JPH::STLAllocator.29", align 1
  %27 = alloca %"class.std::basic_string_view", align 8
  %28 = alloca %"class.std::function.36", align 8
  %29 = alloca %class.anon.38, align 8
  %30 = alloca %"class.std::basic_string_view", align 8
  %31 = alloca %"class.std::function.36", align 8
  %32 = alloca %class.anon.39, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr %9) #6
  store i1 true, ptr %16, align 1
  store ptr %9, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %34 unwind label %91

34:                                               ; preds = %3
  %35 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %9, i64 1
  store ptr %35, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %36 unwind label %95

36:                                               ; preds = %34
  %37 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %9, i64 2
  store ptr %37, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %38 unwind label %99

38:                                               ; preds = %36
  store i1 false, ptr %16, align 1
  %39 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 0
  store ptr %9, ptr %39, align 8, !tbaa !9
  %40 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 1
  store i64 3, ptr %40, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  %41 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %44 = load i64, ptr %43, align 8
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ESt16initializer_listIS7_ERKS8_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %42, i64 %44, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %45 unwind label %103

45:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  %46 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %9, i32 0, i32 0
  %47 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %46, i64 3
  br label %48

48:                                               ; preds = %48, %45
  %49 = phi ptr [ %47, %45 ], [ %50, %48 ]
  %50 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %49, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #6
  %51 = icmp eq ptr %50, %46
  br i1 %51, label %52, label %48

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr %20) #6
  store i1 true, ptr %25, align 1
  store ptr %20, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %53 unwind label %127

53:                                               ; preds = %52
  %54 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %20, i64 1
  store ptr %54, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %55 unwind label %131

55:                                               ; preds = %53
  %56 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %20, i64 2
  store ptr %56, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %57 unwind label %135

57:                                               ; preds = %55
  store i1 false, ptr %25, align 1
  %58 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 0
  store ptr %20, ptr %58, align 8, !tbaa !9
  %59 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 1
  store i64 3, ptr %59, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  %60 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %63 = load i64, ptr %62, align 8
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ESt16initializer_listIS7_ERKS8_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr %61, i64 %63, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %64 unwind label %139

64:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  %65 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %20, i32 0, i32 0
  %66 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %65, i64 3
  br label %67

67:                                               ; preds = %67, %64
  %68 = phi ptr [ %66, %64 ], [ %69, %67 ]
  %69 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %68, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %69) #6
  %70 = icmp eq ptr %69, %65
  br i1 %70, label %71, label %67

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %20) #6
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef @.str.10) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #6
  %74 = getelementptr inbounds %class.anon.38, ptr %29, i32 0, i32 0
  store ptr %33, ptr %74, align 8, !tbaa !13
  %75 = getelementptr inbounds %class.anon.38, ptr %29, i32 0, i32 1
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %76, ptr %75, align 8, !tbaa !16
  %77 = getelementptr inbounds %class.anon.38, ptr %29, i32 0, i32 2
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %78 unwind label %163

78:                                               ; preds = %71
  invoke void @"_ZNSt8functionIFvvEEC2IZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %79 unwind label %167

79:                                               ; preds = %78
  %80 = invoke noundef ptr @_ZN7DebugUI16CreateTextButtonEP9UIElementRKSt17basic_string_viewIcSt11char_traitsIcEESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef %73, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef %28)
          to label %81 unwind label %171

81:                                               ; preds = %79
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %29) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef @.str.11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  %84 = getelementptr inbounds %class.anon.39, ptr %32, i32 0, i32 0
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %85, ptr %84, align 8, !tbaa !17
  %86 = getelementptr inbounds %class.anon.39, ptr %32, i32 0, i32 1
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %87 unwind label %177

87:                                               ; preds = %81
  invoke void @"_ZNSt8functionIFvvEEC2IZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %88 unwind label %181

88:                                               ; preds = %87
  %89 = invoke noundef ptr @_ZN7DebugUI16CreateTextButtonEP9UIElementRKSt17basic_string_viewIcSt11char_traitsIcEESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef %83, ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %31)
          to label %90 unwind label %185

90:                                               ; preds = %88
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  call void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  ret void

91:                                               ; preds = %3
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %12, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %13, align 4
  br label %116

95:                                               ; preds = %34
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %12, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %13, align 4
  br label %115

99:                                               ; preds = %36
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %13, align 4
  br label %114

103:                                              ; preds = %38
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  %107 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %9, i32 0, i32 0
  %108 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %107, i64 3
  br label %109

109:                                              ; preds = %109, %103
  %110 = phi ptr [ %108, %103 ], [ %111, %109 ]
  %111 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %110, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %111) #6
  %112 = icmp eq ptr %111, %107
  br i1 %112, label %113, label %109

113:                                              ; preds = %109
  br label %114

114:                                              ; preds = %113, %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %115

115:                                              ; preds = %114, %95
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %116

116:                                              ; preds = %115, %91
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  %117 = load i1, ptr %16, align 1
  br i1 %117, label %118, label %126

118:                                              ; preds = %116
  %119 = load ptr, ptr %10, align 8
  %120 = icmp eq ptr %9, %119
  br i1 %120, label %125, label %121

121:                                              ; preds = %121, %118
  %122 = phi ptr [ %119, %118 ], [ %123, %121 ]
  %123 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %122, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %123) #6
  %124 = icmp eq ptr %123, %9
  br i1 %124, label %125, label %121

125:                                              ; preds = %121, %118
  br label %126

126:                                              ; preds = %125, %116
  call void @llvm.lifetime.end.p0(i64 96, ptr %9) #6
  br label %193

127:                                              ; preds = %52
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %12, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %13, align 4
  br label %152

131:                                              ; preds = %53
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %12, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %13, align 4
  br label %151

135:                                              ; preds = %55
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %12, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %13, align 4
  br label %150

139:                                              ; preds = %57
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %12, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  %143 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %20, i32 0, i32 0
  %144 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %143, i64 3
  br label %145

145:                                              ; preds = %145, %139
  %146 = phi ptr [ %144, %139 ], [ %147, %145 ]
  %147 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %146, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %147) #6
  %148 = icmp eq ptr %147, %143
  br i1 %148, label %149, label %145

149:                                              ; preds = %145
  br label %150

150:                                              ; preds = %149, %135
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  br label %151

151:                                              ; preds = %150, %131
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %152

152:                                              ; preds = %151, %127
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  %153 = load i1, ptr %25, align 1
  br i1 %153, label %154, label %162

154:                                              ; preds = %152
  %155 = load ptr, ptr %21, align 8
  %156 = icmp eq ptr %20, %155
  br i1 %156, label %161, label %157

157:                                              ; preds = %157, %154
  %158 = phi ptr [ %155, %154 ], [ %159, %157 ]
  %159 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %158, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %159) #6
  %160 = icmp eq ptr %159, %20
  br i1 %160, label %161, label %157

161:                                              ; preds = %157, %154
  br label %162

162:                                              ; preds = %161, %152
  call void @llvm.lifetime.end.p0(i64 96, ptr %20) #6
  br label %192

163:                                              ; preds = %71
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %12, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %13, align 4
  br label %176

167:                                              ; preds = %78
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %12, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %13, align 4
  br label %175

171:                                              ; preds = %79
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %12, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %175

175:                                              ; preds = %171, %167
  call void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %29) #6
  br label %176

176:                                              ; preds = %175, %163
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %191

177:                                              ; preds = %81
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %12, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %13, align 4
  br label %190

181:                                              ; preds = %87
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %12, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %13, align 4
  br label %189

185:                                              ; preds = %88
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %12, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %189

189:                                              ; preds = %185, %181
  call void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %190

190:                                              ; preds = %189, %177
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %191

191:                                              ; preds = %190, %176
  call void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %192

192:                                              ; preds = %191, %162
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %193

193:                                              ; preds = %192, %126
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  br label %194

194:                                              ; preds = %193
  %195 = load ptr, ptr %12, align 8
  %196 = load i32, ptr %13, align 4
  %197 = insertvalue { ptr, i32 } poison, ptr %195, 0
  %198 = insertvalue { ptr, i32 } %197, i32 %196, 1
  resume { ptr, i32 } %198
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ESt16initializer_listIS7_ERKS8_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

declare noundef ptr @_ZN7DebugUI16CreateTextButtonEP9UIElementRKSt17basic_string_viewIcSt11char_traitsIcEESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt16initializer_listINSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEEE", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0", !6, i64 0, !6, i64 8, !15, i64 16}
!15 = !{!"_ZTSN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEE", !11, i64 0, !11, i64 8, !6, i64 16}
!16 = !{!14, !6, i64 8}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1", !6, i64 0, !15, i64 8}


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

%"class.JPH::Array.28" = type { i64, i64, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.33 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.33 = type { i64, [8 x i8] }
%"class.JPH::STLAllocator.31" = type { i8 }
%"class.JPH::STLAllocator.29" = type { i8 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::function.36" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.38 = type { ptr, ptr, %"class.JPH::Array.28" }
%class.anon.39 = type { ptr, %"class.JPH::Array.28" }

@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; 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
define dso_local void @_ZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElement(ptr noundef nonnull align 8 dereferenceable(124) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.JPH::Array.28", align 8
  %5 = alloca [3 x %"class.std::__cxx11::basic_string"], align 8
  %6 = alloca %"class.JPH::STLAllocator.31", align 1
  %7 = alloca %"class.JPH::STLAllocator.31", align 1
  %8 = alloca %"class.JPH::STLAllocator.31", align 1
  %9 = alloca %"class.JPH::STLAllocator.29", align 1
  %10 = alloca %"class.JPH::Array.28", align 8
  %11 = alloca [3 x %"class.std::__cxx11::basic_string"], align 8
  %12 = alloca %"class.JPH::STLAllocator.31", align 1
  %13 = alloca %"class.JPH::STLAllocator.31", align 1
  %14 = alloca %"class.JPH::STLAllocator.31", align 1
  %15 = alloca %"class.JPH::STLAllocator.29", align 1
  %16 = alloca %"class.std::basic_string_view", align 8
  %17 = alloca %"class.std::function.36", align 8
  %18 = alloca %class.anon.38, align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.std::function.36", align 8
  %21 = alloca %class.anon.39, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %22 unwind label %.thread

22:                                               ; preds = %3
  %23 = getelementptr inbounds i8, ptr %5, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %24 unwind label %.thread74

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %5, i64 64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %26 unwind label %54

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ESt16initializer_listIS7_ERKS8_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr nonnull %5, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %27 unwind label %.thread80

27:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  %28 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  %29 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %30 unwind label %.thread64

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %11, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %32 unwind label %.thread82

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %11, i64 64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %34 unwind label %64

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ESt16initializer_listIS7_ERKS8_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr nonnull %11, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %35 unwind label %.thread88

35:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  %36 = getelementptr inbounds i8, ptr %11, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #6
  %37 = getelementptr inbounds i8, ptr %11, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef @.str.10) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #6
  store ptr %0, ptr %18, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %18, i64 8
  store ptr %1, ptr %38, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %18, i64 16
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %40 unwind label %69

40:                                               ; preds = %35
  invoke void @"_ZNSt8functionIFvvEEC2IZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %41 unwind label %71

41:                                               ; preds = %40
  %42 = invoke noundef ptr @_ZN7DebugUI16CreateTextButtonEP9UIElementRKSt17basic_string_viewIcSt11char_traitsIcEESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull %17)
          to label %43 unwind label %73

43:                                               ; preds = %41
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  store ptr %1, ptr %21, align 8, !tbaa !13
  %44 = getelementptr inbounds i8, ptr %21, i64 8
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %45 unwind label %77

45:                                               ; preds = %43
  invoke void @"_ZNSt8functionIFvvEEC2IZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %46 unwind label %79

46:                                               ; preds = %45
  %47 = invoke noundef ptr @_ZN7DebugUI16CreateTextButtonEP9UIElementRKSt17basic_string_viewIcSt11char_traitsIcEESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull %20)
          to label %48 unwind label %81

48:                                               ; preds = %46
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

.thread:                                          ; preds = %3
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %.loopexit72

.thread74:                                        ; preds = %22
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %.preheader71.preheader

.thread80:                                        ; preds = %26
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  %52 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #6
  %53 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %.loopexit72

54:                                               ; preds = %24
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %.preheader71.preheader

.preheader71.preheader:                           ; preds = %54, %.thread74
  %.02079 = phi ptr [ %23, %.thread74 ], [ %25, %54 ]
  %.pn.pn78 = phi { ptr, i32 } [ %50, %.thread74 ], [ %55, %54 ]
  br label %.preheader71

.preheader71:                                     ; preds = %.preheader71.preheader, %.preheader71
  %56 = phi ptr [ %57, %.preheader71 ], [ %.02079, %.preheader71.preheader ]
  %57 = getelementptr inbounds i8, ptr %56, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #6
  %58 = icmp eq ptr %57, %5
  br i1 %58, label %.loopexit72, label %.preheader71

.loopexit72:                                      ; preds = %.preheader71, %.thread80, %.thread
  %.pn.pn.pn63 = phi { ptr, i32 } [ %49, %.thread ], [ %51, %.thread80 ], [ %.pn.pn78, %.preheader71 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #6
  br label %87

.thread64:                                        ; preds = %27
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %.loopexit

.thread82:                                        ; preds = %30
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %.preheader.preheader

.thread88:                                        ; preds = %34
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  %62 = getelementptr inbounds i8, ptr %11, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #6
  %63 = getelementptr inbounds i8, ptr %11, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %.loopexit

64:                                               ; preds = %32
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %64, %.thread82
  %.01887 = phi ptr [ %31, %.thread82 ], [ %33, %64 ]
  %.pn46.pn86 = phi { ptr, i32 } [ %60, %.thread82 ], [ %65, %64 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %66 = phi ptr [ %67, %.preheader ], [ %.01887, %.preheader.preheader ]
  %67 = getelementptr inbounds i8, ptr %66, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  %68 = icmp eq ptr %67, %11
  br i1 %68, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread88, %.thread64
  %.pn46.pn.pn69 = phi { ptr, i32 } [ %59, %.thread64 ], [ %61, %.thread88 ], [ %.pn46.pn86, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %11) #6
  br label %86

69:                                               ; preds = %35
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %40
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %41
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %75

75:                                               ; preds = %73, %71
  %.pn50 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  br label %76

76:                                               ; preds = %75, %69
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %75 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  br label %85

77:                                               ; preds = %43
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %84

79:                                               ; preds = %45
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %83

81:                                               ; preds = %46
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %83

83:                                               ; preds = %81, %79
  %.pn53 = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  call void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %84

84:                                               ; preds = %83, %77
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %83 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %85

85:                                               ; preds = %84, %76
  %.pn53.pn.pn = phi { ptr, i32 } [ %.pn53.pn, %84 ], [ %.pn50.pn, %76 ]
  call void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %86

86:                                               ; preds = %85, %.loopexit
  %.pn53.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn, %85 ], [ %.pn46.pn.pn69, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %87

87:                                               ; preds = %86, %.loopexit72
  %.pn53.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn.pn, %86 ], [ %.pn.pn.pn63, %.loopexit72 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn53.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ESt16initializer_listIS7_ERKS8_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

declare noundef ptr @_ZN7DebugUI16CreateTextButtonEP9UIElementRKSt17basic_string_viewIcSt11char_traitsIcEESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEE", !11, i64 0, !11, i64 8, !7, i64 16}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSZN31PoweredSwingTwistConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1", !7, i64 0, !10, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass