; LLVM IR from Slingshot-Physics/slingshot-community :: tests/viz_tests (make_gauss_maps)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, geometry::types::triangleMesh_t>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, geometry::types::triangleMesh_t>>, 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>, geometry::types::triangleMesh_t>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, geometry::types::triangleMesh_t>>, 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 }
%"struct.geometry::types::triangleMesh_t" = type { i32, i32, [1000 x %"struct.geometry::types::meshTriangle_t"], [500 x %class.Vector3] }
%"struct.geometry::types::meshTriangle_t" = type { [3 x i32], %class.Vector3 }
%class.Vector3 = type { [3 x float] }
%"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.std::allocator.0" = type { i8 }
%"class.std::map.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, geometry::types::gaussMapMesh_t>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, geometry::types::gaussMapMesh_t>>, 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>, geometry::types::gaussMapMesh_t>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, geometry::types::gaussMapMesh_t>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.geometry::types::gaussMapMesh_t" = type { i32, i32, i32, [1000 x %"struct.geometry::types::leanNeighborTriangle_t"], [500 x %class.Vector3], [1000 x %"struct.geometry::types::gaussMapFace_t"] }
%"struct.geometry::types::leanNeighborTriangle_t" = type { [3 x i32], [3 x i32] }
%"struct.geometry::types::gaussMapFace_t" = type { %class.Vector3, i32, i32 }
%"struct.std::_Rb_tree_iterator.8" = type { ptr }
%struct.data_gaussMapMesh_s = type { i32, [1000 x %struct.data_leanNeighborTriangle_s], i32, [500 x %struct.vector3], i32, [1000 x %struct.data_gaussMapFace_s] }
%struct.data_leanNeighborTriangle_s = type { [3 x i32], [3 x i32] }
%struct.vector3 = type { [3 x float] }
%struct.data_gaussMapFace_s = type { %struct.vector3, i32, i32 }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", %"struct.geometry::types::triangleMesh_t" }
%"struct.std::pair.9" = type <{ %"class.std::__cxx11::basic_string", %"struct.geometry::types::gaussMapMesh_t", [4 x i8] }>

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::map", align 8
  %3 = alloca %"struct.geometry::types::triangleMesh_t", align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca %"struct.geometry::types::triangleMesh_t", align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca %"struct.geometry::types::triangleMesh_t", align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.0", align 1
  %14 = alloca %"struct.geometry::types::triangleMesh_t", align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.0", align 1
  %17 = alloca %"class.std::map.3", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.geometry::types::gaussMapMesh_t", align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator.8", align 8
  %25 = alloca %"struct.std::_Rb_tree_iterator.8", align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %class.Vector3, align 4
  %31 = alloca i32, align 4
  %32 = alloca %class.Vector3, align 4
  %33 = alloca %class.Vector3, align 4
  %34 = alloca %struct.data_gaussMapMesh_s, align 4
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.start.p0(i64 30008, ptr %3) #6
  invoke void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::triangleMesh_t") align 4 %3, i32 noundef 0)
          to label %36 unwind label %69

36:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %37 unwind label %73

37:                                               ; preds = %36
  %38 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %39 unwind label %77

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008) %38, ptr noundef nonnull align 4 dereferenceable(30008) %3)
          to label %41 unwind label %77

41:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 30008, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 30008, ptr %8) #6
  invoke void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::triangleMesh_t") align 4 %8, i32 noundef 7)
          to label %42 unwind label %83

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %43 unwind label %87

43:                                               ; preds = %42
  %44 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %45 unwind label %91

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008) %44, ptr noundef nonnull align 4 dereferenceable(30008) %8)
          to label %47 unwind label %91

47:                                               ; preds = %45
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 30008, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 30008, ptr %11) #6
  invoke void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::triangleMesh_t") align 4 %11, i32 noundef 1)
          to label %48 unwind label %97

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %49 unwind label %101

49:                                               ; preds = %48
  %50 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %51 unwind label %105

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008) %50, ptr noundef nonnull align 4 dereferenceable(30008) %11)
          to label %53 unwind label %105

53:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 30008, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 30008, ptr %14) #6
  invoke void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::triangleMesh_t") align 4 %14, i32 noundef 4)
          to label %54 unwind label %111

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %55 unwind label %115

55:                                               ; preds = %54
  %56 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %57 unwind label %119

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008) %56, ptr noundef nonnull align 4 dereferenceable(30008) %14)
          to label %59 unwind label %119

59:                                               ; preds = %57
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 30008, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr %2, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  %61 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %60) #6
  %62 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  %64 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %63) #6
  %65 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  br label %66

66:                                               ; preds = %136, %59
  %67 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %67, label %125, label %68

68:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %142

69:                                               ; preds = %0
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %4, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %5, align 4
  br label %82

73:                                               ; preds = %36
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %4, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %5, align 4
  br label %81

77:                                               ; preds = %39, %37
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %4, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %81

81:                                               ; preds = %77, %73
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %82

82:                                               ; preds = %81, %69
  call void @llvm.lifetime.end.p0(i64 30008, ptr %3) #6
  br label %327

83:                                               ; preds = %41
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %4, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %5, align 4
  br label %96

87:                                               ; preds = %42
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %4, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %5, align 4
  br label %95

91:                                               ; preds = %45, %43
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %4, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %95

95:                                               ; preds = %91, %87
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  br label %96

96:                                               ; preds = %95, %83
  call void @llvm.lifetime.end.p0(i64 30008, ptr %8) #6
  br label %327

97:                                               ; preds = %47
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %4, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %5, align 4
  br label %110

101:                                              ; preds = %48
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %4, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %5, align 4
  br label %109

105:                                              ; preds = %51, %49
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %4, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %109

109:                                              ; preds = %105, %101
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  br label %110

110:                                              ; preds = %109, %97
  call void @llvm.lifetime.end.p0(i64 30008, ptr %11) #6
  br label %327

111:                                              ; preds = %53
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %4, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %5, align 4
  br label %124

115:                                              ; preds = %54
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %4, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %5, align 4
  br label %123

119:                                              ; preds = %57, %55
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %4, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %123

123:                                              ; preds = %119, %115
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %124

124:                                              ; preds = %123, %111
  call void @llvm.lifetime.end.p0(i64 30008, ptr %14) #6
  br label %327

125:                                              ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %126 = call noundef nonnull align 8 dereferenceable(30040) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  store ptr %126, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 50012, ptr %22) #6
  %127 = load ptr, ptr %21, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.std::pair", ptr %127, i32 0, i32 1
  invoke void @_ZN8geometry4mesh8gaussMapERKNS_5types14triangleMesh_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::gaussMapMesh_t") align 4 %22, ptr noundef nonnull align 4 dereferenceable(30008) %128)
          to label %129 unwind label %138

129:                                              ; preds = %125
  %130 = load ptr, ptr %21, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.std::pair", ptr %130, i32 0, i32 0
  %132 = invoke noundef nonnull align 4 dereferenceable(50012) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(32) %131)
          to label %133 unwind label %138

133:                                              ; preds = %129
  %134 = invoke noundef nonnull align 4 dereferenceable(50012) ptr @_ZN8geometry5types14gaussMapMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(50012) %132, ptr noundef nonnull align 4 dereferenceable(50012) %22)
          to label %135 unwind label %138

135:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 50012, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %136

136:                                              ; preds = %135
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %66

138:                                              ; preds = %133, %129, %125
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %4, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 50012, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %326

142:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store ptr %17, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %143 = load ptr, ptr %23, align 8, !tbaa !5
  %144 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %143) #6
  %145 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.8", ptr %24, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %146 = load ptr, ptr %23, align 8, !tbaa !5
  %147 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %146) #6
  %148 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.8", ptr %25, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  br label %149

149:                                              ; preds = %307, %142
  %150 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  br i1 %150, label %152, label %151

151:                                              ; preds = %149
  store i32 4, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %324

152:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %153 = call noundef nonnull align 8 dereferenceable(50044) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  store ptr %153, ptr %27, align 8, !tbaa !5
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %155 unwind label %170

155:                                              ; preds = %152
  %156 = load ptr, ptr %27, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.std::pair.9", ptr %156, i32 0, i32 0
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(32) %157)
          to label %159 unwind label %170

159:                                              ; preds = %155
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef @.str.5)
          to label %161 unwind label %170

161:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %291, %161
  %163 = load i32, ptr %28, align 4, !tbaa !9
  %164 = load ptr, ptr %27, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.std::pair.9", ptr %164, i32 0, i32 1
  %166 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %165, i32 0, i32 2
  %167 = load i32, ptr %166, align 8, !tbaa !11
  %168 = icmp ult i32 %163, %167
  br i1 %168, label %174, label %169

169:                                              ; preds = %162
  store i32 6, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %295

170:                                              ; preds = %159, %155, %152
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %4, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %5, align 4
  br label %323

174:                                              ; preds = %162
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %176 unwind label %194

176:                                              ; preds = %174
  %177 = load i32, ptr %28, align 4, !tbaa !9
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %175, i32 noundef %177)
          to label %179 unwind label %194

179:                                              ; preds = %176
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @.str.5)
          to label %181 unwind label %194

181:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %273, %181
  %183 = load i32, ptr %29, align 4, !tbaa !9
  %184 = load ptr, ptr %27, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.std::pair.9", ptr %184, i32 0, i32 1
  %186 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %185, i32 0, i32 5
  %187 = load i32, ptr %28, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [1000 x %"struct.geometry::types::gaussMapFace_t"], ptr %186, i64 0, i64 %188
  %190 = getelementptr inbounds %"struct.geometry::types::gaussMapFace_t", ptr %189, i32 0, i32 2
  %191 = load i32, ptr %190, align 4, !tbaa !17
  %192 = icmp ult i32 %183, %191
  br i1 %192, label %198, label %193

193:                                              ; preds = %182
  store i32 9, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %290

194:                                              ; preds = %179, %176, %174
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %4, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %5, align 4
  br label %294

198:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #6
  %199 = load ptr, ptr %27, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.std::pair.9", ptr %199, i32 0, i32 1
  %201 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !20
  %203 = load ptr, ptr %27, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.std::pair.9", ptr %203, i32 0, i32 1
  %205 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %204, i32 0, i32 4
  %206 = getelementptr inbounds [500 x %class.Vector3], ptr %205, i64 0, i64 0
  invoke void @_ZN8geometry13averageVertexEjPK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %30, i32 noundef %202, ptr noundef %206)
          to label %207 unwind label %276

207:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %208 = load ptr, ptr %27, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.std::pair.9", ptr %208, i32 0, i32 1
  %210 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %209, i32 0, i32 5
  %211 = load i32, ptr %28, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [1000 x %"struct.geometry::types::gaussMapFace_t"], ptr %210, i64 0, i64 %212
  %214 = getelementptr inbounds %"struct.geometry::types::gaussMapFace_t", ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 4, !tbaa !21
  %216 = load i32, ptr %29, align 4, !tbaa !9
  %217 = add i32 %215, %216
  store i32 %217, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #6
  %218 = load ptr, ptr %27, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.std::pair.9", ptr %218, i32 0, i32 1
  %220 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %219, i32 0, i32 4
  %221 = load ptr, ptr %27, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.std::pair.9", ptr %221, i32 0, i32 1
  %223 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %222, i32 0, i32 3
  %224 = load i32, ptr %31, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds [1000 x %"struct.geometry::types::leanNeighborTriangle_t"], ptr %223, i64 0, i64 %225
  %227 = getelementptr inbounds %"struct.geometry::types::leanNeighborTriangle_t", ptr %226, i32 0, i32 0
  %228 = getelementptr inbounds [3 x i32], ptr %227, i64 0, i64 0
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [500 x %class.Vector3], ptr %220, i64 0, i64 %230
  %232 = load ptr, ptr %27, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.std::pair.9", ptr %232, i32 0, i32 1
  %234 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %233, i32 0, i32 4
  %235 = load ptr, ptr %27, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.std::pair.9", ptr %235, i32 0, i32 1
  %237 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %236, i32 0, i32 3
  %238 = load i32, ptr %31, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = getelementptr inbounds [1000 x %"struct.geometry::types::leanNeighborTriangle_t"], ptr %237, i64 0, i64 %239
  %241 = getelementptr inbounds %"struct.geometry::types::leanNeighborTriangle_t", ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds [3 x i32], ptr %241, i64 0, i64 1
  %243 = load i32, ptr %242, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [500 x %class.Vector3], ptr %234, i64 0, i64 %244
  %246 = load ptr, ptr %27, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.std::pair.9", ptr %246, i32 0, i32 1
  %248 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %247, i32 0, i32 4
  %249 = load ptr, ptr %27, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.std::pair.9", ptr %249, i32 0, i32 1
  %251 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %250, i32 0, i32 3
  %252 = load i32, ptr %31, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = getelementptr inbounds [1000 x %"struct.geometry::types::leanNeighborTriangle_t"], ptr %251, i64 0, i64 %253
  %255 = getelementptr inbounds %"struct.geometry::types::leanNeighborTriangle_t", ptr %254, i32 0, i32 0
  %256 = getelementptr inbounds [3 x i32], ptr %255, i64 0, i64 2
  %257 = load i32, ptr %256, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [500 x %class.Vector3], ptr %248, i64 0, i64 %258
  invoke void @_ZN8geometry10calcNormalERK7Vector3S2_S2_S2_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %32, ptr noundef nonnull align 4 dereferenceable(12) %231, ptr noundef nonnull align 4 dereferenceable(12) %245, ptr noundef nonnull align 4 dereferenceable(12) %259, ptr noundef nonnull align 4 dereferenceable(12) %30)
          to label %260 unwind label %280

260:                                              ; preds = %207
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %262 unwind label %280

262:                                              ; preds = %260
  %263 = load i32, ptr %31, align 4, !tbaa !9
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %261, i32 noundef %263)
          to label %265 unwind label %280

265:                                              ; preds = %262
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef @.str.8)
          to label %267 unwind label %280

267:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #6
  invoke void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %33, ptr noundef nonnull align 4 dereferenceable(12) %32)
          to label %268 unwind label %284

268:                                              ; preds = %267
  %269 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK7Vector3(ptr noundef nonnull align 8 dereferenceable(8) %266, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %270 unwind label %284

270:                                              ; preds = %268
  %271 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %269, ptr noundef @.str.5)
          to label %272 unwind label %284

272:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #6
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %29, align 4, !tbaa !9
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %29, align 4, !tbaa !9
  br label %182, !llvm.loop !22

276:                                              ; preds = %198
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %4, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %5, align 4
  br label %289

280:                                              ; preds = %265, %262, %260, %207
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %4, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %5, align 4
  br label %288

284:                                              ; preds = %270, %268, %267
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %4, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #6
  br label %288

288:                                              ; preds = %284, %280
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %289

289:                                              ; preds = %288, %276
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %294

290:                                              ; preds = %193
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %28, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %28, align 4, !tbaa !9
  br label %162, !llvm.loop !24

294:                                              ; preds = %289, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %323

295:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 50012, ptr %34) #6
  %296 = load ptr, ptr %27, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.std::pair.9", ptr %296, i32 0, i32 1
  invoke void @_ZN8geometry10converters6to_podERKNS_5types14gaussMapMesh_tEP19data_gaussMapMesh_s(ptr noundef nonnull align 4 dereferenceable(50012) %297, ptr noundef %34)
          to label %298 unwind label %309

298:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #6
  %299 = load ptr, ptr %27, align 8, !tbaa !5
  %300 = getelementptr inbounds %"struct.std::pair.9", ptr %299, i32 0, i32 0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %300)
          to label %301 unwind label %313

301:                                              ; preds = %298
  %302 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.9)
          to label %303 unwind label %317

303:                                              ; preds = %301
  %304 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  %305 = invoke i32 @write_data_to_file(ptr noundef %34, ptr noundef @.str.10, ptr noundef %304)
          to label %306 unwind label %317

306:                                              ; preds = %303
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 50012, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %307

307:                                              ; preds = %306
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br label %149

309:                                              ; preds = %295
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %4, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %5, align 4
  br label %322

313:                                              ; preds = %298
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %4, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %5, align 4
  br label %321

317:                                              ; preds = %303, %301
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %4, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %321

321:                                              ; preds = %317, %313
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  br label %322

322:                                              ; preds = %321, %309
  call void @llvm.lifetime.end.p0(i64 50012, ptr %34) #6
  br label %323

323:                                              ; preds = %322, %294, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %326

324:                                              ; preds = %151
  store i32 0, ptr %1, align 4
  store i32 1, ptr %26, align 4
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #6
  %325 = load i32, ptr %1, align 4
  ret i32 %325

326:                                              ; preds = %323, %138
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  br label %327

327:                                              ; preds = %326, %124, %110, %96, %82
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #6
  br label %328

328:                                              ; preds = %327
  %329 = load ptr, ptr %4, align 8
  %330 = load i32, ptr %5, align 4
  %331 = insertvalue { ptr, i32 } poison, ptr %329, 0
  %332 = insertvalue { ptr, i32 } %331, i32 %330, 1
  resume { ptr, i32 } %332
}

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

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

declare void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::triangleMesh_t") align 4, i32 noundef) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008), ptr noundef nonnull align 4 dereferenceable(30008)) #5 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_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_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_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_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEESE_(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(30040) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare void @_ZN8geometry4mesh8gaussMapERKNS_5types14triangleMesh_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::gaussMapMesh_t") align 4, ptr noundef nonnull align 4 dereferenceable(30008)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(50012) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(50012) ptr @_ZN8geometry5types14gaussMapMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(50012), ptr noundef nonnull align 4 dereferenceable(50012)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_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_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_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_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEESE_(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(50044) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

declare void @_ZN8geometry13averageVertexEjPK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, i32 noundef, ptr noundef) #3

declare void @_ZN8geometry10calcNormalERK7Vector3S2_S2_S2_(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK7Vector3(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(12)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

declare void @_ZN8geometry10converters6to_podERKNS_5types14gaussMapMesh_tEP19data_gaussMapMesh_s(ptr noundef nonnull align 4 dereferenceable(50012), ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4 align 2

declare i32 @write_data_to_file(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { mustprogress norecurse 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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 = !{!"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, !10, i64 40}
!12 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEE", !13, i64 0, !16, i64 32}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN8geometry5types14gaussMapMesh_tE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 24012, !7, i64 30012}
!17 = !{!18, !10, i64 16}
!18 = !{!"_ZTSN8geometry5types14gaussMapFace_tE", !19, i64 0, !10, i64 12, !10, i64 16}
!19 = !{!"_ZTS7Vector3", !7, i64 0}
!20 = !{!12, !10, i64 36}
!21 = !{!18, !10, i64 12}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, geometry::types::triangleMesh_t>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, geometry::types::triangleMesh_t>>, 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>, geometry::types::triangleMesh_t>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, geometry::types::triangleMesh_t>>, 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 }
%"struct.geometry::types::triangleMesh_t" = type { i32, i32, [1000 x %"struct.geometry::types::meshTriangle_t"], [500 x %class.Vector3] }
%"struct.geometry::types::meshTriangle_t" = type { [3 x i32], %class.Vector3 }
%class.Vector3 = type { [3 x float] }
%"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.std::allocator.0" = type { i8 }
%"class.std::map.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, geometry::types::gaussMapMesh_t>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, geometry::types::gaussMapMesh_t>>, 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>, geometry::types::gaussMapMesh_t>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, geometry::types::gaussMapMesh_t>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.geometry::types::gaussMapMesh_t" = type { i32, i32, i32, [1000 x %"struct.geometry::types::leanNeighborTriangle_t"], [500 x %class.Vector3], [1000 x %"struct.geometry::types::gaussMapFace_t"] }
%"struct.geometry::types::leanNeighborTriangle_t" = type { [3 x i32], [3 x i32] }
%"struct.geometry::types::gaussMapFace_t" = type { %class.Vector3, i32, i32 }
%"struct.std::_Rb_tree_iterator.8" = type { ptr }
%struct.data_gaussMapMesh_s = type { i32, [1000 x %struct.data_leanNeighborTriangle_s], i32, [500 x %struct.vector3], i32, [1000 x %struct.data_gaussMapFace_s] }
%struct.data_leanNeighborTriangle_s = type { [3 x i32], [3 x i32] }
%struct.vector3 = type { [3 x float] }
%struct.data_gaussMapFace_s = type { %struct.vector3, i32, i32 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::map", align 8
  %2 = alloca %"struct.geometry::types::triangleMesh_t", align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %"struct.geometry::types::triangleMesh_t", align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca %"struct.geometry::types::triangleMesh_t", align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca %"struct.geometry::types::triangleMesh_t", align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.0", align 1
  %14 = alloca %"class.std::map.3", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.geometry::types::gaussMapMesh_t", align 4
  %18 = alloca %"struct.std::_Rb_tree_iterator.8", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator.8", align 8
  %20 = alloca %class.Vector3, align 4
  %21 = alloca %class.Vector3, align 4
  %22 = alloca %class.Vector3, align 4
  %23 = alloca %struct.data_gaussMapMesh_s, align 4
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.start.p0(i64 30008, ptr nonnull %2) #6
  invoke void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::types::triangleMesh_t") align 4 %2, i32 noundef 0)
          to label %25 unwind label %55

25:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %26 unwind label %57

26:                                               ; preds = %25
  %27 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %28 unwind label %59

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008) %27, ptr noundef nonnull align 4 dereferenceable(30008) %2)
          to label %30 unwind label %59

30:                                               ; preds = %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 30008, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 30008, ptr nonnull %5) #6
  invoke void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::types::triangleMesh_t") align 4 %5, i32 noundef 7)
          to label %31 unwind label %63

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %32 unwind label %65

32:                                               ; preds = %31
  %33 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %34 unwind label %67

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008) %33, ptr noundef nonnull align 4 dereferenceable(30008) %5)
          to label %36 unwind label %67

36:                                               ; preds = %34
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 30008, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 30008, ptr nonnull %8) #6
  invoke void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::types::triangleMesh_t") align 4 %8, i32 noundef 1)
          to label %37 unwind label %71

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %38 unwind label %73

38:                                               ; preds = %37
  %39 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %40 unwind label %75

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008) %39, ptr noundef nonnull align 4 dereferenceable(30008) %8)
          to label %42 unwind label %75

42:                                               ; preds = %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 30008, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 30008, ptr nonnull %11) #6
  invoke void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::types::triangleMesh_t") align 4 %11, i32 noundef 4)
          to label %43 unwind label %79

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %44 unwind label %81

44:                                               ; preds = %43
  %45 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %46 unwind label %83

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008) %45, ptr noundef nonnull align 4 dereferenceable(30008) %11)
          to label %48 unwind label %83

48:                                               ; preds = %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 30008, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %49 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  store ptr %49, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %50 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  store ptr %50, ptr %16, align 8
  %51 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %51, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %93, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %52 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  store ptr %52, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %53 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  store ptr %53, ptr %19, align 8
  %54 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br i1 %54, label %.lr.ph82, label %._crit_edge83

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

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

59:                                               ; preds = %28, %26
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %61

61:                                               ; preds = %59, %57
  %.pn = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %62

62:                                               ; preds = %61, %55
  %.pn.pn = phi { ptr, i32 } [ %.pn, %61 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 30008, ptr nonnull %2) #6
  br label %189

63:                                               ; preds = %30
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %70

65:                                               ; preds = %31
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %34, %32
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %69

69:                                               ; preds = %67, %65
  %.pn54 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %70

70:                                               ; preds = %69, %63
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %69 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 30008, ptr nonnull %5) #6
  br label %189

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

73:                                               ; preds = %37
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %40, %38
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %77

77:                                               ; preds = %75, %73
  %.pn57 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %78

78:                                               ; preds = %77, %71
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %77 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 30008, ptr nonnull %8) #6
  br label %189

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

81:                                               ; preds = %43
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %46, %44
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %85

85:                                               ; preds = %83, %81
  %.pn60 = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %86

86:                                               ; preds = %85, %79
  %.pn60.pn = phi { ptr, i32 } [ %.pn60, %85 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 30008, ptr nonnull %11) #6
  br label %189

.lr.ph:                                           ; preds = %48, %93
  %87 = call noundef nonnull align 8 dereferenceable(30040) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.start.p0(i64 50012, ptr nonnull %17) #6
  %88 = getelementptr inbounds i8, ptr %87, i64 32
  invoke void @_ZN8geometry4mesh8gaussMapERKNS_5types14triangleMesh_tE(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::types::gaussMapMesh_t") align 4 %17, ptr noundef nonnull align 4 dereferenceable(30008) %88)
          to label %89 unwind label %96

89:                                               ; preds = %.lr.ph
  %90 = invoke noundef nonnull align 4 dereferenceable(50012) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(32) %87)
          to label %91 unwind label %96

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 4 dereferenceable(50012) ptr @_ZN8geometry5types14gaussMapMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(50012) %90, ptr noundef nonnull align 4 dereferenceable(50012) %17)
          to label %93 unwind label %96

93:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 50012, ptr nonnull %17) #6
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %95 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %95, label %.lr.ph, label %._crit_edge

96:                                               ; preds = %91, %89, %.lr.ph
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 50012, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %188

._crit_edge83:                                    ; preds = %176, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #6
  ret i32 0

.lr.ph82:                                         ; preds = %._crit_edge, %176
  %98 = call noundef nonnull align 8 dereferenceable(50044) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %100 unwind label %111

100:                                              ; preds = %.lr.ph82
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull align 8 dereferenceable(32) %98)
          to label %102 unwind label %111

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull @.str.5)
          to label %.preheader74 unwind label %111

.preheader74:                                     ; preds = %102
  %104 = getelementptr inbounds i8, ptr %98, i64 40
  %105 = load i32, ptr %104, align 8, !tbaa !5
  %.not = icmp eq i32 %105, 0
  br i1 %.not, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %.preheader74
  %106 = getelementptr inbounds i8, ptr %98, i64 30044
  %107 = getelementptr inbounds i8, ptr %98, i64 36
  %108 = getelementptr inbounds i8, ptr %98, i64 24044
  %109 = getelementptr inbounds i8, ptr %98, i64 44
  br label %113

._crit_edge80:                                    ; preds = %._crit_edge77, %.preheader74
  %110 = getelementptr inbounds i8, ptr %98, i64 32
  call void @llvm.lifetime.start.p0(i64 50012, ptr nonnull %23) #6
  invoke void @_ZN8geometry10converters6to_podERKNS_5types14gaussMapMesh_tEP19data_gaussMapMesh_s(ptr noundef nonnull align 4 dereferenceable(50012) %110, ptr noundef nonnull %23)
          to label %170 unwind label %179

111:                                              ; preds = %102, %100, %.lr.ph82
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %187

113:                                              ; preds = %.lr.ph79, %._crit_edge77
  %indvars.iv = phi i64 [ 0, %.lr.ph79 ], [ %indvars.iv.next, %._crit_edge77 ]
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %115 unwind label %127

115:                                              ; preds = %113
  %116 = trunc nuw nsw i64 %indvars.iv to i32
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %114, i32 noundef %116)
          to label %118 unwind label %127

118:                                              ; preds = %115
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @.str.5)
          to label %.preheader unwind label %127

.preheader:                                       ; preds = %118
  %120 = getelementptr inbounds [1000 x %"struct.geometry::types::gaussMapFace_t"], ptr %106, i64 0, i64 %indvars.iv
  %121 = getelementptr inbounds i8, ptr %120, i64 16
  %122 = load i32, ptr %121, align 4, !tbaa !15
  %.not84 = icmp eq i32 %122, 0
  br i1 %.not84, label %._crit_edge77, label %.lr.ph76

.lr.ph76:                                         ; preds = %.preheader
  %123 = getelementptr inbounds i8, ptr %120, i64 12
  br label %129

._crit_edge77:                                    ; preds = %158, %.preheader
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %124 = load i32, ptr %104, align 8, !tbaa !5
  %125 = zext i32 %124 to i64
  %126 = icmp ult i64 %indvars.iv.next, %125
  br i1 %126, label %113, label %._crit_edge80, !llvm.loop !18

127:                                              ; preds = %118, %115, %113
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %187

129:                                              ; preds = %.lr.ph76, %158
  %.075 = phi i32 [ 0, %.lr.ph76 ], [ %159, %158 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #6
  %130 = load i32, ptr %107, align 4, !tbaa !20
  invoke void @_ZN8geometry13averageVertexEjPK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %20, i32 noundef %130, ptr noundef nonnull %108)
          to label %131 unwind label %162

131:                                              ; preds = %129
  %132 = load i32, ptr %123, align 4, !tbaa !21
  %133 = add i32 %132, %.075
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #6
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds [1000 x %"struct.geometry::types::leanNeighborTriangle_t"], ptr %109, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !22
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [500 x %class.Vector3], ptr %108, i64 0, i64 %137
  %139 = getelementptr inbounds i8, ptr %135, i64 4
  %140 = load i32, ptr %139, align 8, !tbaa !22
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [500 x %class.Vector3], ptr %108, i64 0, i64 %141
  %143 = getelementptr inbounds i8, ptr %135, i64 8
  %144 = load i32, ptr %143, align 4, !tbaa !22
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [500 x %class.Vector3], ptr %108, i64 0, i64 %145
  invoke void @_ZN8geometry10calcNormalERK7Vector3S2_S2_S2_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %21, ptr noundef nonnull align 4 dereferenceable(12) %138, ptr noundef nonnull align 4 dereferenceable(12) %142, ptr noundef nonnull align 4 dereferenceable(12) %146, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %147 unwind label %164

147:                                              ; preds = %131
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
          to label %149 unwind label %164

149:                                              ; preds = %147
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %148, i32 noundef %133)
          to label %151 unwind label %164

151:                                              ; preds = %149
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull @.str.8)
          to label %153 unwind label %164

153:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #6
  invoke void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %154 unwind label %166

154:                                              ; preds = %153
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK7Vector3(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %156 unwind label %166

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull @.str.5)
          to label %158 unwind label %166

158:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #6
  %159 = add nuw nsw i32 %.075, 1
  %160 = load i32, ptr %121, align 4, !tbaa !15
  %161 = icmp ult i32 %159, %160
  br i1 %161, label %129, label %._crit_edge77, !llvm.loop !23

162:                                              ; preds = %129
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %169

164:                                              ; preds = %151, %149, %147, %131
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %156, %154, %153
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #6
  br label %168

168:                                              ; preds = %166, %164
  %.pn66 = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #6
  br label %169

169:                                              ; preds = %168, %162
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %168 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #6
  br label %187

170:                                              ; preds = %._crit_edge80
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %98)
          to label %171 unwind label %181

171:                                              ; preds = %170
  %172 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull @.str.9)
          to label %173 unwind label %183

173:                                              ; preds = %171
  %174 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  %175 = invoke i32 @write_data_to_file(ptr noundef nonnull %23, ptr noundef nonnull @.str.10, ptr noundef %174)
          to label %176 unwind label %183

176:                                              ; preds = %173
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 50012, ptr nonnull %23) #6
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %178 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br i1 %178, label %.lr.ph82, label %._crit_edge83

179:                                              ; preds = %._crit_edge80
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %186

181:                                              ; preds = %170
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %185

183:                                              ; preds = %173, %171
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %185

185:                                              ; preds = %183, %181
  %.pn63 = phi { ptr, i32 } [ %184, %183 ], [ %182, %181 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  br label %186

186:                                              ; preds = %185, %179
  %.pn63.pn = phi { ptr, i32 } [ %.pn63, %185 ], [ %180, %179 ]
  call void @llvm.lifetime.end.p0(i64 50012, ptr nonnull %23) #6
  br label %187

187:                                              ; preds = %127, %169, %186, %111
  %.pn66.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn, %186 ], [ %112, %111 ], [ %.pn66.pn, %169 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %188

188:                                              ; preds = %187, %96
  %.pn71 = phi { ptr, i32 } [ %97, %96 ], [ %.pn66.pn.pn.pn, %187 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #6
  br label %189

189:                                              ; preds = %188, %86, %78, %70, %62
  %.pn71.pn = phi { ptr, i32 } [ %.pn71, %188 ], [ %.pn60.pn, %86 ], [ %.pn57.pn, %78 ], [ %.pn54.pn, %70 ], [ %.pn.pn, %62 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn71.pn
}

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

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

declare void @_ZN8geometry4mesh20loadDefaultShapeMeshENS_5types11enumShape_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::triangleMesh_t") align 4, i32 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(30008) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(30008) ptr @_ZN8geometry5types14triangleMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(30008), ptr noundef nonnull align 4 dereferenceable(30008)) local_unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_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_traitsIcESaIcEEEN8geometry5types14triangleMesh_tESt4lessIS5_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_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEESE_(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(30040) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14triangleMesh_tEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare void @_ZN8geometry4mesh8gaussMapERKNS_5types14triangleMesh_tE(ptr dead_on_unwind writable sret(%"struct.geometry::types::gaussMapMesh_t") align 4, ptr noundef nonnull align 4 dereferenceable(30008)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(50012) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_ESaISt4pairIKS5_S8_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(50012) ptr @_ZN8geometry5types14gaussMapMesh_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(50012), ptr noundef nonnull align 4 dereferenceable(50012)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_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_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tESt4lessIS5_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_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEESE_(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(50044) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

declare void @_ZN8geometry13averageVertexEjPK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN8geometry10calcNormalERK7Vector3S2_S2_S2_(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK7Vector3(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

declare void @_ZN8geometry10converters6to_podERKNS_5types14gaussMapMesh_tEP19data_gaussMapMesh_s(ptr noundef nonnull align 4 dereferenceable(50012), ptr noundef) local_unnamed_addr #3

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

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

declare i32 @write_data_to_file(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { mustprogress norecurse 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 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, !14, i64 40}
!6 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8geometry5types14gaussMapMesh_tEE", !7, i64 0, !13, 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 = !{!"_ZTSN8geometry5types14gaussMapMesh_tE", !14, i64 0, !14, i64 4, !14, i64 8, !10, i64 12, !10, i64 24012, !10, i64 30012}
!14 = !{!"int", !10, i64 0}
!15 = !{!16, !14, i64 16}
!16 = !{!"_ZTSN8geometry5types14gaussMapFace_tE", !17, i64 0, !14, i64 12, !14, i64 16}
!17 = !{!"_ZTS7Vector3", !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !14, i64 36}
!21 = !{!16, !14, i64 12}
!22 = !{!14, !14, i64 0}
!23 = distinct !{!23, !19}


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