; LLVM IR from jasonlmfong/Model-Modifier :: Model-Modifier/src/scene/surface (Surface)

; 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.glm::vec.47" = type { %union.anon.48, %union.anon.49 }
%union.anon.48 = type { i32 }
%union.anon.49 = type { i32 }
%"struct.std::__detail::_Node_iterator.50" = type { %"struct.std::__detail::_Node_iterator_base.51" }
%"struct.std::__detail::_Node_iterator_base.51" = type { ptr }
%"struct.std::__detail::_Node_iterator.87" = type { %"struct.std::__detail::_Node_iterator_base.88" }
%"struct.std::__detail::_Node_iterator_base.88" = type { ptr }
%struct.EdgeRecord = type { i32, i32, %"struct.glm::vec", %"class.std::vector.107" }
%"struct.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%"class.std::vector.107" = type { %"struct.std::_Vector_base.108" }
%"struct.std::_Vector_base.108" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.115" = type { i32, i32 }
%"struct.std::pair.112" = type <{ %"struct.std::__detail::_Node_iterator.87", i8, [7 x i8] }>
%class.Surface = type { %"class.std::vector.52", %"class.std::vector.57", %"class.std::vector.62", %"struct.glm::vec", %"struct.glm::vec", %"class.std::unordered_map.67" }
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<VertexRecord, std::allocator<VertexRecord>>::_Vector_impl" }
%"struct.std::_Vector_base<VertexRecord, std::allocator<VertexRecord>>::_Vector_impl" = type { %"struct.std::_Vector_base<VertexRecord, std::allocator<VertexRecord>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VertexRecord, std::allocator<VertexRecord>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<EdgeRecord, std::allocator<EdgeRecord>>::_Vector_impl" }
%"struct.std::_Vector_base<EdgeRecord, std::allocator<EdgeRecord>>::_Vector_impl" = type { %"struct.std::_Vector_base<EdgeRecord, std::allocator<EdgeRecord>>::_Vector_impl_data" }
%"struct.std::_Vector_base<EdgeRecord, std::allocator<EdgeRecord>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = type { %"struct.std::_Vector_base<FaceRecord, std::allocator<FaceRecord>>::_Vector_impl" }
%"struct.std::_Vector_base<FaceRecord, std::allocator<FaceRecord>>::_Vector_impl" = type { %"struct.std::_Vector_base<FaceRecord, std::allocator<FaceRecord>>::_Vector_impl_data" }
%"struct.std::_Vector_base<FaceRecord, std::allocator<FaceRecord>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.67" = type { %"class.std::_Hashtable.68" }
%"class.std::_Hashtable.68" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair.89" = type { i32, %"class.std::unordered_map.91" }
%"class.std::unordered_map.91" = type { %"class.std::_Hashtable.92" }
%"class.std::_Hashtable.92" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair.105" = type { i32, i32 }
%struct.VertexRecord = type { %"struct.glm::vec", %"class.std::vector.107", %"class.std::vector.107" }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7Surface12getEdgeIndexEN3glm3vecILi2EjLNS0_9qualifierE0EEE(ptr noundef nonnull align 8 dereferenceable(152) %0, i64 %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca %"struct.glm::vec.47", align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.glm::vec.47", align 4
  %7 = alloca %"struct.std::__detail::_Node_iterator.50", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator.50", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator.87", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator.87", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.EdgeRecord, align 8
  %14 = alloca %"struct.glm::vec", align 4
  %15 = alloca %"struct.glm::vec", align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %"struct.std::pair.115", align 4
  %21 = alloca %"struct.std::pair.112", align 8
  store i64 %1, ptr %4, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !9
  %23 = getelementptr inbounds %"struct.glm::vec.47", ptr %4, i32 0, i32 0
  %24 = load i32, ptr %23, align 4, !tbaa !10
  %25 = getelementptr inbounds %"struct.glm::vec.47", ptr %4, i32 0, i32 1
  %26 = load i32, ptr %25, align 4, !tbaa !10
  %27 = icmp ugt i32 %24, %26
  br i1 %27, label %28, label %35

28:                                               ; preds = %2
  %29 = getelementptr inbounds %"struct.glm::vec.47", ptr %4, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !10
  %31 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 0
  store i32 %30, ptr %31, align 4, !tbaa !10
  %32 = getelementptr inbounds %"struct.glm::vec.47", ptr %4, i32 0, i32 0
  %33 = load i32, ptr %32, align 4, !tbaa !10
  %34 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 1
  store i32 %33, ptr %34, align 4, !tbaa !10
  br label %35

35:                                               ; preds = %28, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %36 = getelementptr inbounds %class.Surface, ptr %22, i32 0, i32 5
  %37 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 0
  %38 = call ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %39 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.50", ptr %7, i32 0, i32 0
  %40 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.51", ptr %39, i32 0, i32 0
  store ptr %38, ptr %40, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %41 = getelementptr inbounds %class.Surface, ptr %22, i32 0, i32 5
  %42 = call ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %41) #7
  %43 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.50", ptr %8, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.51", ptr %43, i32 0, i32 0
  store ptr %42, ptr %44, align 8
  %45 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaIS1_IS2_jEEEELb0EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br i1 %45, label %46, label %67

46:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %47 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaIS1_IS2_jEEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %48 = getelementptr inbounds %"struct.std::pair.89", ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 1
  %50 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 4 dereferenceable(4) %49)
  %51 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.87", ptr %9, i32 0, i32 0
  %52 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.88", ptr %51, i32 0, i32 0
  store ptr %50, ptr %52, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %53 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaIS1_IS2_jEEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %54 = getelementptr inbounds %"struct.std::pair.89", ptr %53, i32 0, i32 1
  %55 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %54) #7
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.87", ptr %10, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.88", ptr %56, i32 0, i32 0
  store ptr %55, ptr %57, align 8
  %58 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br i1 %58, label %59, label %63

59:                                               ; preds = %46
  %60 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjjELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %61 = getelementptr inbounds %"struct.std::pair.105", ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 4, !tbaa !11
  store i32 %62, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %64

63:                                               ; preds = %46
  store i32 0, ptr %11, align 4
  br label %64

64:                                               ; preds = %63, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  %65 = load i32, ptr %11, align 4
  switch i32 %65, label %123 [
    i32 0, label %66
  ]

66:                                               ; preds = %64
  br label %67

67:                                               ; preds = %66, %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %68 = getelementptr inbounds %class.Surface, ptr %22, i32 0, i32 1
  %69 = call noundef i64 @_ZNKSt6vectorI10EdgeRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #7
  %70 = trunc i64 %69 to i32
  store i32 %70, ptr %12, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #7
  call void @_ZN10EdgeRecordC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  %71 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 0
  %72 = load i32, ptr %71, align 4, !tbaa !10
  %73 = getelementptr inbounds %struct.EdgeRecord, ptr %13, i32 0, i32 0
  store i32 %72, ptr %73, align 8, !tbaa !15
  %74 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !10
  %76 = getelementptr inbounds %struct.EdgeRecord, ptr %13, i32 0, i32 1
  store i32 %75, ptr %76, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  %77 = getelementptr inbounds %class.Surface, ptr %22, i32 0, i32 0
  %78 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 0
  %79 = load i32, ptr %78, align 4, !tbaa !10
  %80 = zext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %80) #7
  %82 = getelementptr inbounds %struct.VertexRecord, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %class.Surface, ptr %22, i32 0, i32 0
  %84 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 1
  %85 = load i32, ptr %84, align 4, !tbaa !10
  %86 = zext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %86) #7
  %88 = getelementptr inbounds %struct.VertexRecord, ptr %87, i32 0, i32 0
  %89 = invoke { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) %88)
          to label %90 unwind label %110

90:                                               ; preds = %67
  store { <2 x float>, float } %89, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %18, i64 12, i1 false)
  %91 = invoke { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef 5.000000e-01, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %92 unwind label %110

92:                                               ; preds = %90
  store { <2 x float>, float } %91, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %19, i64 12, i1 false)
  %93 = getelementptr inbounds %struct.EdgeRecord, ptr %13, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %93, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  %94 = getelementptr inbounds %class.Surface, ptr %22, i32 0, i32 1
  invoke void @_ZNSt6vectorI10EdgeRecordSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %95 unwind label %114

95:                                               ; preds = %92
  %96 = getelementptr inbounds %class.Surface, ptr %22, i32 0, i32 5
  %97 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 0
  %98 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %96, ptr noundef nonnull align 4 dereferenceable(4) %97)
          to label %99 unwind label %114

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %100 = getelementptr inbounds %"struct.glm::vec.47", ptr %6, i32 0, i32 1
  %101 = invoke i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %100, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %102 unwind label %118

102:                                              ; preds = %99
  store i64 %101, ptr %20, align 4
  %103 = invoke { ptr, i8 } @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE6insertIS4_IjjEEENSt9enable_ifIXsr16is_constructibleIS6_OT_EE5valueES4_INSt8__detail14_Node_iteratorIS6_Lb0ELb0EEEbEE4typeESD_(ptr noundef nonnull align 8 dereferenceable(56) %98, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %104 unwind label %118

104:                                              ; preds = %102
  %105 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
  %106 = extractvalue { ptr, i8 } %103, 0
  store ptr %106, ptr %105, align 8
  %107 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
  %108 = extractvalue { ptr, i8 } %103, 1
  store i8 %108, ptr %107, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %109 = load i32, ptr %12, align 4, !tbaa !14
  store i32 %109, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %123

110:                                              ; preds = %90, %67
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %16, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  br label %122

114:                                              ; preds = %95, %92
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %16, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %17, align 4
  br label %122

118:                                              ; preds = %102, %99
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %16, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %122

122:                                              ; preds = %118, %114, %110
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %125

123:                                              ; preds = %104, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %124 = load i32, ptr %3, align 4
  ret i32 %124

125:                                              ; preds = %122
  %126 = load ptr, ptr %16, align 8
  %127 = load i32, ptr %17, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI10EdgeRecordSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE6insertIS4_IjjEEENSt9enable_ifIXsr16is_constructibleIS6_OT_EE5valueES4_INSt8__detail14_Node_iteratorIS6_Lb0ELb0EEEbEE4typeESD_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #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 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !13, i64 4}
!12 = !{!"_ZTSSt4pairIKjjE", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"_ZTS10EdgeRecord", !13, i64 0, !13, i64 4, !17, i64 8, !18, i64 24}
!17 = !{!"_ZTSN3glm3vecILi3EfLNS_9qualifierE0EEE", !7, i64 0, !7, i64 4, !7, i64 8}
!18 = !{!"_ZTSSt6vectorIjSaIjEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!16, !13, i64 4}
!23 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}


; 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.glm::vec.47" = type { %union.anon.48, %union.anon.49 }
%union.anon.48 = type { i32 }
%union.anon.49 = type { i32 }
%"struct.std::__detail::_Node_iterator.50" = type { %"struct.std::__detail::_Node_iterator_base.51" }
%"struct.std::__detail::_Node_iterator_base.51" = type { ptr }
%"struct.std::__detail::_Node_iterator.87" = type { %"struct.std::__detail::_Node_iterator_base.88" }
%"struct.std::__detail::_Node_iterator_base.88" = type { ptr }
%struct.EdgeRecord = type { i32, i32, %"struct.glm::vec", %"class.std::vector.107" }
%"struct.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%"class.std::vector.107" = type { %"struct.std::_Vector_base.108" }
%"struct.std::_Vector_base.108" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.115" = type { i32, i32 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7Surface12getEdgeIndexEN3glm3vecILi2EjLNS0_9qualifierE0EEE(ptr noundef nonnull align 8 dereferenceable(152) %0, i64 %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.glm::vec.47", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator.50", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator.50", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator.87", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator.87", align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.EdgeRecord, align 8
  %10 = alloca %"struct.glm::vec", align 8
  %11 = alloca %"struct.std::pair.115", align 8
  %.sroa.09.0.extract.trunc = trunc i64 %1 to i32
  %.sroa.4.0.extract.shift = lshr i64 %1, 32
  %.sroa.4.0.extract.trunc = trunc nuw i64 %.sroa.4.0.extract.shift to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i32 %.sroa.09.0.extract.trunc, ptr %3, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 4
  store i32 %.sroa.4.0.extract.trunc, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %12 = icmp ugt i32 %.sroa.09.0.extract.trunc, %.sroa.4.0.extract.trunc
  br i1 %12, label %13, label %14

13:                                               ; preds = %2
  store i32 %.sroa.4.0.extract.trunc, ptr %3, align 8, !tbaa !5
  store i32 %.sroa.09.0.extract.trunc, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %13, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  %16 = call ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store ptr %16, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %17 = call ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %15) #6
  store ptr %17, ptr %5, align 8
  %18 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaIS1_IS2_jEEEELb0EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br i1 %18, label %19, label %31

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %20 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaIS1_IS2_jEEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 4 dereferenceable(4) %.sroa.4.0..sroa_idx)
  store ptr %22, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %23 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaIS1_IS2_jEEEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %24) #6
  store ptr %25, ptr %7, align 8
  %26 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br i1 %26, label %.thread, label %30

.thread:                                          ; preds = %19
  %27 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjjELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %28 = getelementptr inbounds i8, ptr %27, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %62

30:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %31

31:                                               ; preds = %30, %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = call noundef i64 @_ZNKSt6vectorI10EdgeRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %34 = trunc i64 %33 to i32
  store i32 %34, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #6
  call void @_ZN10EdgeRecordC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  %35 = load <2 x i32>, ptr %3, align 8, !tbaa !5
  store <2 x i32> %35, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  %36 = extractelement <2 x i32> %35, i64 0
  %37 = zext i32 %36 to i64
  %38 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %37) #6
  %39 = load i32, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %40 = zext i32 %39 to i64
  %41 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %40) #6
  %42 = invoke { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %41)
          to label %43 unwind label %55

43:                                               ; preds = %31
  %.fca.0.extract2 = extractvalue { <2 x float>, float } %42, 0
  %.fca.1.extract3 = extractvalue { <2 x float>, float } %42, 1
  store <2 x float> %.fca.0.extract2, ptr %10, align 8
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store float %.fca.1.extract3, ptr %.sroa.25.0..sroa_idx, align 8
  %44 = invoke { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef 5.000000e-01, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %45 unwind label %55

45:                                               ; preds = %43
  %.fca.0.extract = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %44, 1
  %46 = getelementptr inbounds i8, ptr %9, i64 8
  store <2 x float> %.fca.0.extract, ptr %46, align 8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 16
  store float %.fca.1.extract, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  invoke void @_ZNSt6vectorI10EdgeRecordSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %47 unwind label %57

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %49 unwind label %57

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %50 = invoke i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %.sroa.4.0..sroa_idx, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %51 unwind label %59

51:                                               ; preds = %49
  store i64 %50, ptr %11, align 8
  %52 = invoke { ptr, i8 } @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE6insertIS4_IjjEEENSt9enable_ifIXsr16is_constructibleIS6_OT_EE5valueES4_INSt8__detail14_Node_iteratorIS6_Lb0ELb0EEEbEE4typeESD_(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %53 unwind label %59

53:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %54 = load i32, ptr %8, align 4, !tbaa !11
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %62

55:                                               ; preds = %43, %31
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  br label %61

57:                                               ; preds = %47, %45
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %51, %49
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %61

61:                                               ; preds = %59, %57, %55
  %.pn = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ], [ %56, %55 ]
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn

62:                                               ; preds = %.thread, %53
  %.1 = phi i32 [ %54, %53 ], [ %29, %.thread ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 %.1
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaIS1_IS2_jEEEELb0EEESE_(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 ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(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 ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI10EdgeRecordSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIjS_IjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEES1_S3_SaIS4_IS5_S8_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE6insertIS4_IjjEEENSt9enable_ifIXsr16is_constructibleIS6_OT_EE5valueES4_INSt8__detail14_Node_iteratorIS6_Lb0ELb0EEEbEE4typeESD_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRjS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass