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

; 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.36" = 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.41 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.41 = type { i64, [8 x i8] }
%"class.JPH::STLAllocator.39" = type { i8 }
%"class.JPH::STLAllocator.37" = type { i8 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::function.44" = 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.46 = type { ptr, ptr }
%class.anon.47 = type { ptr, ptr }

@__dso_handle = external hidden global i8
@_ZZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11 = external hidden global %"class.JPH::Array.36", align 8
@_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11 = external hidden global i64, align 8
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

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) #1

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElement(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 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.std::initializer_list", align 8
  %8 = alloca [6 x %"class.std::__cxx11::basic_string"], align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.JPH::STLAllocator.39", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.JPH::STLAllocator.39", align 1
  %14 = alloca %"class.JPH::STLAllocator.39", align 1
  %15 = alloca %"class.JPH::STLAllocator.39", align 1
  %16 = alloca %"class.JPH::STLAllocator.39", align 1
  %17 = alloca %"class.JPH::STLAllocator.39", align 1
  %18 = alloca i1, align 1
  %19 = alloca %"class.JPH::STLAllocator.37", align 1
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.std::function.44", align 8
  %22 = alloca %class.anon.46, align 8
  %23 = alloca %"class.std::basic_string_view", align 8
  %24 = alloca %"class.std::function.44", align 8
  %25 = alloca %class.anon.47, 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
  %26 = load ptr, ptr %4, align 8
  %27 = load atomic i8, ptr @_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11 acquire, align 8
  %28 = icmp eq i8 %27, 0
  br i1 %28, label %29, label %59, !prof !9

29:                                               ; preds = %3
  %30 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11) #0
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %59

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 192, ptr %8) #0
  store i1 true, ptr %18, align 1
  store ptr %8, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %33 unwind label %76

33:                                               ; preds = %32
  %34 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %8, i64 1
  store ptr %34, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %35 unwind label %80

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

37:                                               ; preds = %35
  %38 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %8, i64 3
  store ptr %38, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %39 unwind label %88

39:                                               ; preds = %37
  %40 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %8, i64 4
  store ptr %40, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %41 unwind label %92

41:                                               ; preds = %39
  %42 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %8, i64 5
  store ptr %42, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %43 unwind label %96

43:                                               ; preds = %41
  store i1 false, ptr %18, align 1
  %44 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 0
  store ptr %8, ptr %44, align 8, !tbaa !10
  %45 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 1
  store i64 6, ptr %45, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #0
  %46 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %49 = load i64, ptr %48, align 8
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ESt16initializer_listIS7_ERKS8_(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11, ptr %47, i64 %49, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %50 unwind label %100

50:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #0
  %51 = getelementptr inbounds [6 x %"class.std::__cxx11::basic_string"], ptr %8, i32 0, i32 0
  %52 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %51, i64 6
  br label %53

53:                                               ; preds = %53, %50
  %54 = phi ptr [ %52, %50 ], [ %55, %53 ]
  %55 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %54, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #0
  %56 = icmp eq ptr %55, %51
  br i1 %56, label %57, label %53

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #0
  call void @llvm.lifetime.end.p0(i64 192, ptr %8) #0
  %58 = call i32 @__cxa_atexit(ptr @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev, ptr @_ZZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11) #0
  br label %59

59:                                               ; preds = %57, %29, %3
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #0
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef @.str.7) #0
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #0
  %62 = getelementptr inbounds %class.anon.46, ptr %22, i32 0, i32 0
  store ptr %26, ptr %62, align 8, !tbaa !14
  %63 = getelementptr inbounds %class.anon.46, ptr %22, i32 0, i32 1
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %64, ptr %63, align 8, !tbaa !16
  call void @"_ZNSt8functionIFvvEEC2IZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(16) %22) #0
  %65 = invoke noundef ptr @_ZN7DebugUI16CreateTextButtonEP9UIElementRKSt17basic_string_viewIcSt11char_traitsIcEESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef %61, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %21)
          to label %66 unwind label %127

66:                                               ; preds = %59
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #0
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #0
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef @.str.8) #0
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #0
  %69 = getelementptr inbounds %class.anon.47, ptr %25, i32 0, i32 0
  store ptr %26, ptr %69, align 8, !tbaa !17
  %70 = getelementptr inbounds %class.anon.47, ptr %25, i32 0, i32 1
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %71, ptr %70, align 8, !tbaa !19
  call void @"_ZNSt8functionIFvvEEC2IZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %25) #0
  %72 = invoke noundef ptr @_ZN7DebugUI16CreateTextButtonEP9UIElementRKSt17basic_string_viewIcSt11char_traitsIcEESt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef %68, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %24)
          to label %73 unwind label %131

73:                                               ; preds = %66
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #0
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7DebugUI8ShowMenuEP9UIElement(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef %75)
  ret void

76:                                               ; preds = %32
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %11, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %12, align 4
  br label %116

80:                                               ; preds = %33
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %11, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %12, align 4
  br label %115

84:                                               ; preds = %35
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %11, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %12, align 4
  br label %114

88:                                               ; preds = %37
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %11, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %12, align 4
  br label %113

92:                                               ; preds = %39
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %11, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %12, align 4
  br label %112

96:                                               ; preds = %41
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %11, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %12, align 4
  br label %111

100:                                              ; preds = %43
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #0
  %104 = getelementptr inbounds [6 x %"class.std::__cxx11::basic_string"], ptr %8, i32 0, i32 0
  %105 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %104, i64 6
  br label %106

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

110:                                              ; preds = %106
  br label %111

111:                                              ; preds = %110, %96
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #0
  br label %112

112:                                              ; preds = %111, %92
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #0
  br label %113

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

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

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

116:                                              ; preds = %115, %76
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #0
  %117 = load i1, ptr %18, align 1
  br i1 %117, label %118, label %126

118:                                              ; preds = %116
  %119 = load ptr, ptr %9, align 8
  %120 = icmp eq ptr %8, %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) #0
  %124 = icmp eq ptr %123, %8
  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 192, ptr %8) #0
  call void @__cxa_guard_abort(ptr @_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11) #0
  br label %135

127:                                              ; preds = %59
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %11, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #0
  br label %135

131:                                              ; preds = %66
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %11, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #0
  br label %135

135:                                              ; preds = %131, %127, %126
  %136 = load ptr, ptr %11, align 8
  %137 = load i32, ptr %12, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139
}

; 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 #2 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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

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) #6

; 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 #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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

declare void @_ZN7DebugUI8ShowMenuEP9UIElement(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #6

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

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync 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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !6, i64 0}
!11 = !{!"_ZTSSt16initializer_listINSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEEE", !6, i64 0, !12, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!11, !12, i64 8}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0", !6, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1", !6, i64 0, !6, i64 8}
!19 = !{!18, !6, 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.36" = 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.41 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.41 = type { i64, [8 x i8] }
%"class.JPH::STLAllocator.39" = type { i8 }
%"class.JPH::STLAllocator.37" = type { i8 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::function.44" = 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.46 = type { ptr, ptr }
%class.anon.47 = type { ptr, ptr }

@__dso_handle = external hidden global i8
@_ZZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11 = external hidden global %"class.JPH::Array.36", align 8
@_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11 = external hidden global i64, align 8
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

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) #1

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElement(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca [6 x %"class.std::__cxx11::basic_string"], align 8
  %5 = alloca %"class.JPH::STLAllocator.39", align 1
  %6 = alloca %"class.JPH::STLAllocator.39", align 1
  %7 = alloca %"class.JPH::STLAllocator.39", align 1
  %8 = alloca %"class.JPH::STLAllocator.39", align 1
  %9 = alloca %"class.JPH::STLAllocator.39", align 1
  %10 = alloca %"class.JPH::STLAllocator.39", align 1
  %11 = alloca %"class.JPH::STLAllocator.37", align 1
  %12 = alloca %"class.std::basic_string_view", align 8
  %13 = alloca %"class.std::function.44", align 8
  %14 = alloca %class.anon.46, align 8
  %15 = alloca %"class.std::basic_string_view", align 8
  %16 = alloca %"class.std::function.44", align 8
  %17 = alloca %class.anon.47, align 8
  %18 = load atomic i8, ptr @_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11 acquire, align 8
  %19 = icmp eq i8 %18, 0
  br i1 %19, label %20, label %41, !prof !5

20:                                               ; preds = %3
  %21 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11) #7
  %.not32 = icmp eq i32 %21, 0
  br i1 %.not32, label %41, label %22

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %23 unwind label %.thread

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

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %4, i64 64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %27 unwind label %51

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %4, i64 96
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %29 unwind label %53

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %4, i64 128
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %31 unwind label %55

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %4, i64 160
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2IS5_EEPKcRKS5_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %33 unwind label %57

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  invoke void @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEEC2ESt16initializer_listIS7_ERKS8_(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11, ptr nonnull %4, i64 6, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %34 unwind label %.loopexit46.loopexit

34:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  %35 = getelementptr inbounds i8, ptr %4, i64 160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #7
  %36 = getelementptr inbounds i8, ptr %4, i64 128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  %37 = getelementptr inbounds i8, ptr %4, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  %38 = getelementptr inbounds i8, ptr %4, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  %39 = getelementptr inbounds i8, ptr %4, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %4) #7
  %40 = call i32 @__cxa_atexit(ptr nonnull @_ZN3JPH5ArrayINSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEENS5_IS7_EEED2Ev, ptr nonnull @_ZZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11, ptr nonnull @__dso_handle) #7
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11) #7
  br label %41

41:                                               ; preds = %34, %20, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef @.str.7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  store ptr %0, ptr %14, align 8, !tbaa !6
  %42 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %1, ptr %42, align 8, !tbaa !11
  call void @"_ZNSt8functionIFvvEEC2IZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %43 = 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) %12, ptr noundef nonnull %13)
          to label %44 unwind label %74

44:                                               ; preds = %41
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef @.str.8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  store ptr %0, ptr %17, align 8, !tbaa !12
  %45 = getelementptr inbounds i8, ptr %17, i64 8
  store ptr %1, ptr %45, align 8, !tbaa !14
  call void @"_ZNSt8functionIFvvEEC2IZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  %46 = 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) %15, ptr noundef nonnull %16)
          to label %47 unwind label %76

47:                                               ; preds = %44
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @_ZN7DebugUI8ShowMenuEP9UIElement(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2)
  ret void

.thread:                                          ; preds = %22
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %.loopexit

49:                                               ; preds = %23
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %69

51:                                               ; preds = %25
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %68

53:                                               ; preds = %27
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %67

55:                                               ; preds = %29
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %66

57:                                               ; preds = %31
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit46

.loopexit46.loopexit:                             ; preds = %33
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  %60 = getelementptr inbounds i8, ptr %4, i64 160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %60) #7
  %61 = getelementptr inbounds i8, ptr %4, i64 128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #7
  %62 = getelementptr inbounds i8, ptr %4, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #7
  %63 = getelementptr inbounds i8, ptr %4, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #7
  %64 = getelementptr inbounds i8, ptr %4, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %.loopexit46

.loopexit46:                                      ; preds = %.loopexit46.loopexit, %57
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %59, %.loopexit46.loopexit ]
  %65 = phi i1 [ false, %57 ], [ true, %.loopexit46.loopexit ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  br label %66

66:                                               ; preds = %.loopexit46, %55
  %.026 = phi ptr [ %32, %.loopexit46 ], [ %30, %55 ]
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit46 ], [ %56, %55 ]
  %.1 = phi i1 [ %65, %.loopexit46 ], [ false, %55 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  br label %67

67:                                               ; preds = %66, %53
  %.127 = phi ptr [ %.026, %66 ], [ %28, %53 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %66 ], [ %54, %53 ]
  %.2 = phi i1 [ %.1, %66 ], [ false, %53 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  br label %68

68:                                               ; preds = %67, %51
  %.228 = phi ptr [ %.127, %67 ], [ %26, %51 ]
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %67 ], [ %52, %51 ]
  %.3 = phi i1 [ %.2, %67 ], [ false, %51 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %69

69:                                               ; preds = %49, %68
  %.329 = phi ptr [ %.228, %68 ], [ %24, %49 ]
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %68 ], [ %50, %49 ]
  %.4 = phi i1 [ %.3, %68 ], [ false, %49 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  %70 = icmp eq ptr %4, %.329
  %or.cond = or i1 %70, %.4
  br i1 %or.cond, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %69, %.preheader
  %71 = phi ptr [ %72, %.preheader ], [ %.329, %69 ]
  %72 = getelementptr inbounds i8, ptr %71, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %72) #7
  %73 = icmp eq ptr %72, %4
  br i1 %73, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread, %69
  %.pn.pn.pn.pn.pn.pn45 = phi { ptr, i32 } [ %48, %.thread ], [ %.pn.pn.pn.pn.pn, %69 ], [ %.pn.pn.pn.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %4) #7
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE16constraint_typesB5cxx11) #7
  br label %78

74:                                               ; preds = %41
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %78

76:                                               ; preds = %44
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %78

78:                                               ; preds = %76, %74, %.loopexit
  %.pn39 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ], [ %.pn.pn.pn.pn.pn.pn45, %.loopexit ]
  resume { ptr, i32 } %.pn39
}

; 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 #2 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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

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 #6

; 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 #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

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

declare void @_ZN7DebugUI8ShowMenuEP9UIElement(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #6

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

attributes #0 = { nofree nounwind }
attributes #1 = { mustprogress nocallback nofree nosync 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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { "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 #7 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !8, i64 0}
!7 = !{!"_ZTSZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_0", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!7, !8, i64 8}
!12 = !{!13, !8, i64 0}
!13 = !{!"_ZTSZN18PathConstraintTest18CreateSettingsMenuEP7DebugUIP9UIElementE3$_1", !8, i64 0, !8, i64 8}
!14 = !{!13, !8, i64 8}


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