; LLVM IR from atlantis13579/Riemann :: Src/Geometry/GeometryAttributes.ll (ZN7Riemann23DynamicMeshAttributeSet13OnNewTriangleEib)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.81" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator.84" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.85" = type { ptr }
%"class.Riemann::DynamicMeshAttributeSet" = type { ptr, ptr, %"class.std::vector.51", %"class.std::vector.56", ptr, %"class.std::vector.61", %"class.std::map", %"class.std::vector.71" }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<Riemann::TDynamicMeshVectorOverlay<float, 2, Maths::TVector2<float>>, std::allocator<Riemann::TDynamicMeshVectorOverlay<float, 2, Maths::TVector2<float>>>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::TDynamicMeshVectorOverlay<float, 2, Maths::TVector2<float>>, std::allocator<Riemann::TDynamicMeshVectorOverlay<float, 2, Maths::TVector2<float>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::TDynamicMeshVectorOverlay<float, 2, Maths::TVector2<float>>, std::allocator<Riemann::TDynamicMeshVectorOverlay<float, 2, Maths::TVector2<float>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::TDynamicMeshVectorOverlay<float, 2, Maths::TVector2<float>>, std::allocator<Riemann::TDynamicMeshVectorOverlay<float, 2, Maths::TVector2<float>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<Riemann::TDynamicMeshVectorOverlay<float, 3, Maths::TVector3<float>>, std::allocator<Riemann::TDynamicMeshVectorOverlay<float, 3, Maths::TVector3<float>>>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::TDynamicMeshVectorOverlay<float, 3, Maths::TVector3<float>>, std::allocator<Riemann::TDynamicMeshVectorOverlay<float, 3, Maths::TVector3<float>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::TDynamicMeshVectorOverlay<float, 3, Maths::TVector3<float>>, std::allocator<Riemann::TDynamicMeshVectorOverlay<float, 3, Maths::TVector3<float>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::TDynamicMeshVectorOverlay<float, 3, Maths::TVector3<float>>, std::allocator<Riemann::TDynamicMeshVectorOverlay<float, 3, Maths::TVector3<float>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = type { %"struct.std::_Vector_base<Riemann::TDynamicVertexAttribute<float, 1>, std::allocator<Riemann::TDynamicVertexAttribute<float, 1>>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::TDynamicVertexAttribute<float, 1>, std::allocator<Riemann::TDynamicVertexAttribute<float, 1>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::TDynamicVertexAttribute<float, 1>, std::allocator<Riemann::TDynamicVertexAttribute<float, 1>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::TDynamicVertexAttribute<float, 1>, std::allocator<Riemann::TDynamicVertexAttribute<float, 1>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.66" }
%"class.std::_Rb_tree.66" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Riemann::TDynamicAttributeBase *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Riemann::TDynamicAttributeBase *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Riemann::TDynamicAttributeBase *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Riemann::TDynamicAttributeBase *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.71" = type { %"struct.std::_Vector_base.72" }
%"struct.std::_Vector_base.72" = type { %"struct.std::_Vector_base<Riemann::TDynamicAttributeBase *, std::allocator<Riemann::TDynamicAttributeBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::TDynamicAttributeBase *, std::allocator<Riemann::TDynamicAttributeBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::TDynamicAttributeBase *, std::allocator<Riemann::TDynamicAttributeBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::TDynamicAttributeBase *, std::allocator<Riemann::TDynamicAttributeBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19TDynamicMeshOverlayIfLi2EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19TDynamicMeshOverlayIfLi3EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19TDynamicMeshOverlayIfLi4EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann23DynamicMeshAttributeSet13OnNewTriangleEib(ptr noundef nonnull align 8 dereferenceable(168) %0, i32 noundef %1, i1 noundef zeroext %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"struct.std::pair.81", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.85", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.85", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %23 = zext i1 %2 to i8
  store i8 %23, ptr %6, align 1, !tbaa !11
  %24 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %25 = getelementptr inbounds %"class.Riemann::DynamicMeshAttributeSet", ptr %24, i32 0, i32 6
  store ptr %25, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %26) #4
  %28 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %8, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %29) #4
  %31 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %9, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  br label %32

32:                                               ; preds = %47, %3
  %33 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br i1 %33, label %35, label %34

34:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %53

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #4
  %36 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %37 = getelementptr inbounds %"struct.std::pair.81", ptr %10, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  store ptr %38, ptr %11, align 8, !tbaa !5
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = load i8, ptr %6, align 1, !tbaa !11, !range !18, !noundef !19
  %42 = trunc i8 %41 to i1
  %43 = load ptr, ptr %39, align 8, !tbaa !20
  %44 = getelementptr inbounds ptr, ptr %43, i64 4
  %45 = load ptr, ptr %44, align 8
  invoke void %45(ptr noundef nonnull align 8 dereferenceable(40) %39, i32 noundef %40, i1 noundef zeroext %42)
          to label %46 unwind label %49

46:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #4
  br label %47

47:                                               ; preds = %46
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br label %32

49:                                               ; preds = %35
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %12, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %104

53:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %54 = getelementptr inbounds %"class.Riemann::DynamicMeshAttributeSet", ptr %24, i32 0, i32 2
  store ptr %54, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = call ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #4
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.84", ptr %15, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = call ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #4
  %60 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.84", ptr %16, i32 0, i32 0
  store ptr %59, ptr %60, align 8
  br label %61

61:                                               ; preds = %68, %53
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  br i1 %62, label %64, label %63

63:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %70

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %65 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  store ptr %65, ptr %17, align 8, !tbaa !5
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN7Riemann19TDynamicMeshOverlayIfLi2EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104) %66, i32 noundef %67)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %68

68:                                               ; preds = %64
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  br label %61

70:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %71 = getelementptr inbounds %"class.Riemann::DynamicMeshAttributeSet", ptr %24, i32 0, i32 3
  store ptr %71, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  %73 = call ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #4
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.85", ptr %19, i32 0, i32 0
  store ptr %73, ptr %74, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = call ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #4
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.85", ptr %20, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  br label %78

78:                                               ; preds = %85, %70
  %79 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  br i1 %79, label %81, label %80

80:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %87

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %82 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  store ptr %82, ptr %21, align 8, !tbaa !5
  %83 = load ptr, ptr %21, align 8, !tbaa !5
  %84 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN7Riemann19TDynamicMeshOverlayIfLi3EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104) %83, i32 noundef %84)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %85

85:                                               ; preds = %81
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  br label %78

87:                                               ; preds = %80
  %88 = getelementptr inbounds %"class.Riemann::DynamicMeshAttributeSet", ptr %24, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %95

91:                                               ; preds = %87
  %92 = getelementptr inbounds %"class.Riemann::DynamicMeshAttributeSet", ptr %24, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !22
  %94 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN7Riemann19TDynamicMeshOverlayIfLi4EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104) %93, i32 noundef %94)
  br label %95

95:                                               ; preds = %91, %87
  %96 = getelementptr inbounds %"class.Riemann::DynamicMeshAttributeSet", ptr %24, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !48
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %103

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !9
  %100 = getelementptr inbounds %"class.Riemann::DynamicMeshAttributeSet", ptr %24, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !48
  %102 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN7Riemann29TDynamicMeshTriangleAttributeIiLi1EE11SetNewValueEiPKi(ptr noundef nonnull align 8 dereferenceable(72) %101, i32 noundef %102, ptr noundef %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %103

103:                                              ; preds = %99, %95
  ret void

104:                                              ; preds = %49
  %105 = load ptr, ptr %12, align 8
  %106 = load i32, ptr %13, align 4
  %107 = insertvalue { ptr, i32 } poison, ptr %105, 0
  %108 = insertvalue { ptr, i32 } %107, i32 %106, 1
  resume { ptr, i32 } %108
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann29TDynamicMeshTriangleAttributeIiLi1EE11SetNewValueEiPKi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, ptr noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEE", !15, i64 0, !6, i64 32}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !8, i64 0}
!22 = !{!23, !6, i64 64}
!23 = !{!"_ZTSN7Riemann23DynamicMeshAttributeSetE", !6, i64 0, !6, i64 8, !24, i64 16, !28, i64 40, !6, i64 64, !32, i64 72, !36, i64 96, !44, i64 144}
!24 = !{!"_ZTSSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIN7Riemann23TDynamicVertexAttributeIfLi1EEESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN7Riemann23TDynamicVertexAttributeIfLi1EEESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7Riemann23TDynamicVertexAttributeIfLi1EEESaIS2_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7Riemann23TDynamicVertexAttributeIfLi1EEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN7Riemann21TDynamicAttributeBaseEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN7Riemann21TDynamicAttributeBaseEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !39, i64 0, !41, i64 8}
!39 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !40, i64 0}
!40 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!41 = !{!"_ZTSSt15_Rb_tree_header", !42, i64 0, !17, i64 32}
!42 = !{!"_ZTSSt18_Rb_tree_node_base", !43, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!43 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!44 = !{!"_ZTSSt6vectorIPN7Riemann21TDynamicAttributeBaseESaIS2_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIPN7Riemann21TDynamicAttributeBaseESaIS2_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann21TDynamicAttributeBaseESaIS2_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann21TDynamicAttributeBaseESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!23, !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"

%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.81" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator.84" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.85" = type { ptr }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19TDynamicMeshOverlayIfLi2EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19TDynamicMeshOverlayIfLi3EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19TDynamicMeshOverlayIfLi4EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann23DynamicMeshAttributeSet13OnNewTriangleEib(ptr noundef nonnull align 8 dereferenceable(168) %0, i32 noundef %1, i1 noundef zeroext %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::pair.81", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.85", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.85", align 8
  %11 = alloca i32, align 4
  %12 = getelementptr inbounds i8, ptr %0, i64 96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %13 = tail call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
  store ptr %13, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %14 = tail call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
  store ptr %14, ptr %5, align 8
  %15 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %16 = getelementptr inbounds i8, ptr %6, i64 32
  br label %21

._crit_edge:                                      ; preds = %27, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %18 = call ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  store ptr %18, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %19 = call ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  store ptr %19, ptr %8, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %20, label %.lr.ph19, label %._crit_edge20

21:                                               ; preds = %.lr.ph, %27
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #4
  %22 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %22)
  %23 = load ptr, ptr %16, align 8, !tbaa !5
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %24, i64 32
  %26 = load ptr, ptr %25, align 8
  invoke void %26(ptr noundef nonnull align 8 dereferenceable(40) %23, i32 noundef %1, i1 noundef zeroext %2)
          to label %27 unwind label %30

27:                                               ; preds = %21
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %29 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br i1 %29, label %21, label %._crit_edge

30:                                               ; preds = %21
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  resume { ptr, i32 } %31

._crit_edge20:                                    ; preds = %.lr.ph19, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %32 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %33 = call ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #4
  store ptr %33, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %34 = call ptr @_ZNSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #4
  store ptr %34, ptr %10, align 8
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %35, label %.lr.ph22, label %._crit_edge23

.lr.ph19:                                         ; preds = %._crit_edge, %.lr.ph19
  %36 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @_ZN7Riemann19TDynamicMeshOverlayIfLi2EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104) %36, i32 noundef %1)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %38, label %.lr.ph19, label %._crit_edge20

._crit_edge23:                                    ; preds = %.lr.ph22, %._crit_edge20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %39 = getelementptr inbounds i8, ptr %0, i64 64
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %.not = icmp eq ptr %40, null
  br i1 %.not, label %45, label %44

.lr.ph22:                                         ; preds = %._crit_edge20, %.lr.ph22
  %41 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @_ZN7Riemann19TDynamicMeshOverlayIfLi3EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104) %41, i32 noundef %1)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %43, label %.lr.ph22, label %._crit_edge23

44:                                               ; preds = %._crit_edge23
  call void @_ZN7Riemann19TDynamicMeshOverlayIfLi4EE21InitializeNewTriangleEi(ptr noundef nonnull align 8 dereferenceable(104) %40, i32 noundef %1)
  br label %45

45:                                               ; preds = %44, %._crit_edge23
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !41
  %.not17 = icmp eq ptr %47, null
  br i1 %.not17, label %49, label %48

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  store i32 0, ptr %11, align 4, !tbaa !42
  call void @_ZN7Riemann29TDynamicMeshTriangleAttributeIiLi1EE11SetNewValueEiPKi(ptr noundef nonnull align 8 dereferenceable(72) %47, i32 noundef %1, ptr noundef nonnull %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  br label %49

49:                                               ; preds = %48, %45
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann29TDynamicMeshTriangleAttributeIiLi1EE11SetNewValueEiPKi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !9, i64 32}
!6 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseEE", !7, i64 0, !9, i64 32}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !11, i64 0}
!15 = !{!16, !9, i64 64}
!16 = !{!"_ZTSN7Riemann23DynamicMeshAttributeSetE", !9, i64 0, !9, i64 8, !17, i64 16, !21, i64 40, !9, i64 64, !25, i64 72, !29, i64 96, !37, i64 144}
!17 = !{!"_ZTSSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi2EN5Maths8TVector2IfEEEESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!21 = !{!"_ZTSSt6vectorIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7Riemann25TDynamicMeshVectorOverlayIfLi3EN5Maths8TVector3IfEEEESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!25 = !{!"_ZTSSt6vectorIN7Riemann23TDynamicVertexAttributeIfLi1EEESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN7Riemann23TDynamicVertexAttributeIfLi1EEESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN7Riemann23TDynamicVertexAttributeIfLi1EEESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7Riemann23TDynamicVertexAttributeIfLi1EEESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!29 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7Riemann21TDynamicAttributeBaseESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN7Riemann21TDynamicAttributeBaseEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN7Riemann21TDynamicAttributeBaseEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !12, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!37 = !{!"_ZTSSt6vectorIPN7Riemann21TDynamicAttributeBaseESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIPN7Riemann21TDynamicAttributeBaseESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann21TDynamicAttributeBaseESaIS2_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann21TDynamicAttributeBaseESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!41 = !{!16, !9, i64 8}
!42 = !{!43, !43, i64 0}
!43 = !{!"int", !10, i64 0}


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