; LLVM IR from mackorone/mms :: old/v2/src/sim (BufferInterface)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<sim::Color, std::pair<const sim::Color, std::tuple<double, double, double>>, std::_Select1st<std::pair<const sim::Color, std::tuple<double, double, double>>>, std::less<sim::Color>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::Color, std::pair<const sim::Color, std::tuple<double, double, double>>, std::_Select1st<std::pair<const sim::Color, std::tuple<double, double, double>>>, std::less<sim::Color>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<sim::TriangleGraphic, std::allocator<sim::TriangleGraphic>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::TriangleGraphic, std::allocator<sim::TriangleGraphic>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::TriangleGraphic, std::allocator<sim::TriangleGraphic>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::TriangleGraphic, std::allocator<sim::TriangleGraphic>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.156" = type { %"struct.std::_Vector_base.157" }
%"struct.std::_Vector_base.157" = type { %"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.2" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { double }
%"struct.std::_Head_base.2" = type { double }
%"struct.std::_Head_base.3" = type { double }
%"class.__gnu_cxx::__normal_iterator.171" = type { ptr }
%"struct.sim::Triangle" = type { %"class.sim::Cartesian", %"class.sim::Cartesian", %"class.sim::Cartesian" }
%"class.sim::Cartesian" = type { %"class.sim::Coordinate" }
%"class.sim::Coordinate" = type { ptr, %"class.sim::Meters", %"class.sim::Meters" }
%"class.sim::Meters" = type { %"class.sim::Distance" }
%"class.sim::Distance" = type { ptr, double }
%"struct.sim::TriangleGraphic" = type { %"struct.sim::VertexGraphic", %"struct.sim::VertexGraphic", %"struct.sim::VertexGraphic" }
%"struct.sim::VertexGraphic" = type { double, double, double, double, double, double }

@_ZN3simL12COLOR_TO_RGBE = external hidden global %"class.std::map", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim15BufferInterface25polygonToTriangleGraphicsERKNS_7PolygonENS_5ColorEd(ptr dead_on_unwind noalias writable sret(%"class.std::vector.146") align 8 %0, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef %3, double noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca %"class.std::vector.156", align 8
  %12 = alloca i1, align 1
  %13 = alloca %"class.std::tuple", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.171", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.171", align 8
  %19 = alloca %"struct.sim::Triangle", align 8
  %20 = alloca %"struct.sim::TriangleGraphic", align 8
  %21 = alloca %"class.sim::Meters", align 8
  %22 = alloca %"class.sim::Meters", align 8
  %23 = alloca %"class.sim::Meters", align 8
  %24 = alloca %"class.sim::Meters", align 8
  %25 = alloca %"class.sim::Meters", align 8
  %26 = alloca %"class.sim::Meters", align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store double %4, ptr %10, align 8, !tbaa !11
  %27 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK3sim7Polygon12getTrianglesEv(ptr dead_on_unwind writable sret(%"class.std::vector.156") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %28)
  store i1 false, ptr %12, align 1
  call void @_ZNSt6vectorIN3sim15TriangleGraphicESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
  %29 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt3mapIN3sim5ColorESt5tupleIJdddEESt4lessIS1_ESaISt4pairIKS1_S3_EEE2atERS7_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL12COLOR_TO_RGBE, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %30 unwind label %40

30:                                               ; preds = %5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %29, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr %11, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  %32 = call ptr @_ZNSt6vectorIN3sim8TriangleESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.171", ptr %17, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %34 = load ptr, ptr %16, align 8, !tbaa !5
  %35 = call ptr @_ZNSt6vectorIN3sim8TriangleESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.171", ptr %18, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  br label %37

37:                                               ; preds = %113, %30
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3sim8TriangleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br i1 %38, label %44, label %39

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %174

40:                                               ; preds = %5
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %14, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %15, align 4
  br label %176

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 120, ptr %19) #7
  %45 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3sim8TriangleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @_ZN3sim8TriangleC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %19, ptr noundef nonnull align 8 dereferenceable(120) %45) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr %20) #7
  %46 = getelementptr inbounds %"struct.sim::TriangleGraphic", ptr %20, i32 0, i32 0
  %47 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %46, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %48 = getelementptr inbounds %"struct.sim::Triangle", ptr %19, i32 0, i32 0
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %21, ptr noundef nonnull align 8 dereferenceable(40) %48)
          to label %49 unwind label %115

49:                                               ; preds = %44
  %50 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %51 unwind label %119

51:                                               ; preds = %49
  store double %50, ptr %47, align 8, !tbaa !13
  %52 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %46, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %53 = getelementptr inbounds %"struct.sim::Triangle", ptr %19, i32 0, i32 0
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %22, ptr noundef nonnull align 8 dereferenceable(40) %53)
          to label %54 unwind label %123

54:                                               ; preds = %51
  %55 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %56 unwind label %127

56:                                               ; preds = %54
  store double %55, ptr %52, align 8, !tbaa !15
  %57 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %46, i32 0, i32 2
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %59 = load double, ptr %58, align 8, !tbaa !11
  store double %59, ptr %57, align 8, !tbaa !16
  %60 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %46, i32 0, i32 3
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %62 = load double, ptr %61, align 8, !tbaa !11
  store double %62, ptr %60, align 8, !tbaa !17
  %63 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %46, i32 0, i32 4
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %65 = load double, ptr %64, align 8, !tbaa !11
  store double %65, ptr %63, align 8, !tbaa !18
  %66 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %46, i32 0, i32 5
  %67 = load double, ptr %10, align 8, !tbaa !11
  store double %67, ptr %66, align 8, !tbaa !19
  %68 = getelementptr inbounds %"struct.sim::TriangleGraphic", ptr %20, i32 0, i32 1
  %69 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %68, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %70 = getelementptr inbounds %"struct.sim::Triangle", ptr %19, i32 0, i32 1
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %23, ptr noundef nonnull align 8 dereferenceable(40) %70)
          to label %71 unwind label %131

71:                                               ; preds = %56
  %72 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %73 unwind label %135

73:                                               ; preds = %71
  store double %72, ptr %69, align 8, !tbaa !13
  %74 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %68, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  %75 = getelementptr inbounds %"struct.sim::Triangle", ptr %19, i32 0, i32 1
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %24, ptr noundef nonnull align 8 dereferenceable(40) %75)
          to label %76 unwind label %139

76:                                               ; preds = %73
  %77 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %78 unwind label %143

78:                                               ; preds = %76
  store double %77, ptr %74, align 8, !tbaa !15
  %79 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %68, i32 0, i32 2
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %81 = load double, ptr %80, align 8, !tbaa !11
  store double %81, ptr %79, align 8, !tbaa !16
  %82 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %68, i32 0, i32 3
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %84 = load double, ptr %83, align 8, !tbaa !11
  store double %84, ptr %82, align 8, !tbaa !17
  %85 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %68, i32 0, i32 4
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %87 = load double, ptr %86, align 8, !tbaa !11
  store double %87, ptr %85, align 8, !tbaa !18
  %88 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %68, i32 0, i32 5
  %89 = load double, ptr %10, align 8, !tbaa !11
  store double %89, ptr %88, align 8, !tbaa !19
  %90 = getelementptr inbounds %"struct.sim::TriangleGraphic", ptr %20, i32 0, i32 2
  %91 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %90, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %92 = getelementptr inbounds %"struct.sim::Triangle", ptr %19, i32 0, i32 2
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %25, ptr noundef nonnull align 8 dereferenceable(40) %92)
          to label %93 unwind label %147

93:                                               ; preds = %78
  %94 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %95 unwind label %151

95:                                               ; preds = %93
  store double %94, ptr %91, align 8, !tbaa !13
  %96 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %90, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %97 = getelementptr inbounds %"struct.sim::Triangle", ptr %19, i32 0, i32 2
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %26, ptr noundef nonnull align 8 dereferenceable(40) %97)
          to label %98 unwind label %155

98:                                               ; preds = %95
  %99 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %100 unwind label %159

100:                                              ; preds = %98
  store double %99, ptr %96, align 8, !tbaa !15
  %101 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %90, i32 0, i32 2
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %103 = load double, ptr %102, align 8, !tbaa !11
  store double %103, ptr %101, align 8, !tbaa !16
  %104 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %90, i32 0, i32 3
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %106 = load double, ptr %105, align 8, !tbaa !11
  store double %106, ptr %104, align 8, !tbaa !17
  %107 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %90, i32 0, i32 4
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %109 = load double, ptr %108, align 8, !tbaa !11
  store double %109, ptr %107, align 8, !tbaa !18
  %110 = getelementptr inbounds %"struct.sim::VertexGraphic", ptr %90, i32 0, i32 5
  %111 = load double, ptr %10, align 8, !tbaa !11
  store double %111, ptr %110, align 8, !tbaa !19
  invoke void @_ZNSt6vectorIN3sim15TriangleGraphicESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(144) %20)
          to label %112 unwind label %159

112:                                              ; preds = %100
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #7
  call void @_ZN3sim8TriangleD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %19) #7
  br label %113

113:                                              ; preds = %112
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3sim8TriangleESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %37

115:                                              ; preds = %44
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %14, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %15, align 4
  br label %173

119:                                              ; preds = %49
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  br label %172

123:                                              ; preds = %51
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %14, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %15, align 4
  br label %171

127:                                              ; preds = %54
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %14, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %15, align 4
  br label %170

131:                                              ; preds = %56
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %14, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %15, align 4
  br label %169

135:                                              ; preds = %71
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %14, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %15, align 4
  br label %168

139:                                              ; preds = %73
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %14, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %15, align 4
  br label %167

143:                                              ; preds = %76
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %14, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %15, align 4
  br label %166

147:                                              ; preds = %78
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %14, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %15, align 4
  br label %165

151:                                              ; preds = %93
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %14, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %15, align 4
  br label %164

155:                                              ; preds = %95
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %14, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %15, align 4
  br label %163

159:                                              ; preds = %100, %98
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %14, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  br label %163

163:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  br label %164

164:                                              ; preds = %163, %151
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  br label %165

165:                                              ; preds = %164, %147
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  br label %166

166:                                              ; preds = %165, %143
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  br label %167

167:                                              ; preds = %166, %139
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  br label %168

168:                                              ; preds = %167, %135
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  br label %169

169:                                              ; preds = %168, %131
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %170

170:                                              ; preds = %169, %127
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  br label %171

171:                                              ; preds = %170, %123
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %172

172:                                              ; preds = %171, %119
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  br label %173

173:                                              ; preds = %172, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #7
  call void @_ZN3sim8TriangleD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %176

174:                                              ; preds = %39
  store i1 true, ptr %12, align 1
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  %175 = load i1, ptr %12, align 1
  br i1 %175, label %178, label %177

176:                                              ; preds = %173, %40
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  call void @_ZNSt6vectorIN3sim15TriangleGraphicESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @_ZNSt6vectorIN3sim8TriangleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  br label %179

177:                                              ; preds = %174
  call void @_ZNSt6vectorIN3sim15TriangleGraphicESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %178

178:                                              ; preds = %177, %174
  call void @_ZNSt6vectorIN3sim8TriangleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  ret void

179:                                              ; preds = %176
  %180 = load ptr, ptr %14, align 8
  %181 = load i32, ptr %15, align 4
  %182 = insertvalue { ptr, i32 } poison, ptr %180, 0
  %183 = insertvalue { ptr, i32 } %182, i32 %181, 1
  resume { ptr, i32 } %183
}

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

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

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

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

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

declare void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #4

declare noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: nounwind
declare void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #4

declare void @_ZNK3sim7Polygon12getTrianglesEv(ptr dead_on_unwind writable sret(%"class.std::vector.156") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #4

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sim8TriangleC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sim8TriangleD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #6 align 2

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

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

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

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

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


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<sim::Color, std::pair<const sim::Color, std::tuple<double, double, double>>, std::_Select1st<std::pair<const sim::Color, std::tuple<double, double, double>>>, std::less<sim::Color>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::Color, std::pair<const sim::Color, std::tuple<double, double, double>>, std::_Select1st<std::pair<const sim::Color, std::tuple<double, double, double>>>, std::less<sim::Color>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<sim::TriangleGraphic, std::allocator<sim::TriangleGraphic>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::TriangleGraphic, std::allocator<sim::TriangleGraphic>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::TriangleGraphic, std::allocator<sim::TriangleGraphic>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::TriangleGraphic, std::allocator<sim::TriangleGraphic>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.156" = type { %"struct.std::_Vector_base.157" }
%"struct.std::_Vector_base.157" = type { %"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.2" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { double }
%"struct.std::_Head_base.2" = type { double }
%"struct.std::_Head_base.3" = type { double }
%"class.__gnu_cxx::__normal_iterator.171" = type { ptr }
%"struct.sim::Triangle" = type { %"class.sim::Cartesian", %"class.sim::Cartesian", %"class.sim::Cartesian" }
%"class.sim::Cartesian" = type { %"class.sim::Coordinate" }
%"class.sim::Coordinate" = type { ptr, %"class.sim::Meters", %"class.sim::Meters" }
%"class.sim::Meters" = type { %"class.sim::Distance" }
%"class.sim::Distance" = type { ptr, double }
%"struct.sim::TriangleGraphic" = type { %"struct.sim::VertexGraphic", %"struct.sim::VertexGraphic", %"struct.sim::VertexGraphic" }
%"struct.sim::VertexGraphic" = type { double, double, double, double, double, double }

@_ZN3simL12COLOR_TO_RGBE = external hidden global %"class.std::map", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim15BufferInterface25polygonToTriangleGraphicsERKNS_7PolygonENS_5ColorEd(ptr dead_on_unwind noalias writable sret(%"class.std::vector.146") align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(160) %1, ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef %3, double noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.156", align 8
  %8 = alloca %"class.std::tuple", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.171", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.171", align 8
  %11 = alloca %"struct.sim::Triangle", align 8
  %12 = alloca %"struct.sim::TriangleGraphic", align 8
  %13 = alloca %"class.sim::Meters", align 8
  %14 = alloca %"class.sim::Meters", align 8
  %15 = alloca %"class.sim::Meters", align 8
  %16 = alloca %"class.sim::Meters", align 8
  %17 = alloca %"class.sim::Meters", align 8
  %18 = alloca %"class.sim::Meters", align 8
  store i32 %3, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNK3sim7Polygon12getTrianglesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.156") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %2)
  call void @_ZNSt6vectorIN3sim15TriangleGraphicESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  %19 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt3mapIN3sim5ColorESt5tupleIJdddEESt4lessIS1_ESaISt4pairIKS1_S3_EEE2atERS7_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL12COLOR_TO_RGBE, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %20 unwind label %43

20:                                               ; preds = %5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %19, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %21 = call ptr @_ZNSt6vectorIN3sim8TriangleESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  store ptr %21, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %22 = call ptr @_ZNSt6vectorIN3sim8TriangleESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  store ptr %22, ptr %10, align 8
  %23 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3sim8TriangleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %20
  %24 = getelementptr inbounds i8, ptr %12, i64 8
  %25 = getelementptr inbounds i8, ptr %12, i64 16
  %26 = getelementptr inbounds i8, ptr %12, i64 24
  %27 = getelementptr inbounds i8, ptr %12, i64 32
  %28 = getelementptr inbounds i8, ptr %12, i64 40
  %29 = getelementptr inbounds i8, ptr %12, i64 48
  %30 = getelementptr inbounds i8, ptr %11, i64 40
  %31 = getelementptr inbounds i8, ptr %12, i64 56
  %32 = getelementptr inbounds i8, ptr %12, i64 64
  %33 = getelementptr inbounds i8, ptr %12, i64 72
  %34 = getelementptr inbounds i8, ptr %12, i64 80
  %35 = getelementptr inbounds i8, ptr %12, i64 88
  %36 = getelementptr inbounds i8, ptr %12, i64 96
  %37 = getelementptr inbounds i8, ptr %11, i64 80
  %38 = getelementptr inbounds i8, ptr %12, i64 104
  %39 = getelementptr inbounds i8, ptr %12, i64 112
  %40 = getelementptr inbounds i8, ptr %12, i64 120
  %41 = getelementptr inbounds i8, ptr %12, i64 128
  %42 = getelementptr inbounds i8, ptr %12, i64 136
  br label %45

._crit_edge:                                      ; preds = %83, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIN3sim8TriangleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  ret void

43:                                               ; preds = %5
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %121

45:                                               ; preds = %.lr.ph, %83
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %11) #7
  %46 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3sim8TriangleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @_ZN3sim8TriangleC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull align 8 dereferenceable(120) %46) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %47 unwind label %86

47:                                               ; preds = %45
  %48 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %49 unwind label %88

49:                                               ; preds = %47
  store double %48, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %14, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %50 unwind label %90

50:                                               ; preds = %49
  %51 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %52 unwind label %92

52:                                               ; preds = %50
  store double %51, ptr %24, align 8, !tbaa !12
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %54 = load double, ptr %53, align 8, !tbaa !13
  store double %54, ptr %25, align 8, !tbaa !14
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %56 = load double, ptr %55, align 8, !tbaa !13
  store double %56, ptr %26, align 8, !tbaa !15
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %58 = load double, ptr %57, align 8, !tbaa !13
  store double %58, ptr %27, align 8, !tbaa !16
  store double %4, ptr %28, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %59 unwind label %94

59:                                               ; preds = %52
  %60 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %61 unwind label %96

61:                                               ; preds = %59
  store double %60, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %16, ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %62 unwind label %98

62:                                               ; preds = %61
  %63 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %64 unwind label %100

64:                                               ; preds = %62
  store double %63, ptr %31, align 8, !tbaa !12
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %66 = load double, ptr %65, align 8, !tbaa !13
  store double %66, ptr %32, align 8, !tbaa !14
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %68 = load double, ptr %67, align 8, !tbaa !13
  store double %68, ptr %33, align 8, !tbaa !15
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %70 = load double, ptr %69, align 8, !tbaa !13
  store double %70, ptr %34, align 8, !tbaa !16
  store double %4, ptr %35, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %17, ptr noundef nonnull align 8 dereferenceable(40) %37)
          to label %71 unwind label %102

71:                                               ; preds = %64
  %72 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %73 unwind label %104

73:                                               ; preds = %71
  store double %72, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %37)
          to label %74 unwind label %106

74:                                               ; preds = %73
  %75 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %76 unwind label %108

76:                                               ; preds = %74
  store double %75, ptr %38, align 8, !tbaa !12
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %78 = load double, ptr %77, align 8, !tbaa !13
  store double %78, ptr %39, align 8, !tbaa !14
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %80 = load double, ptr %79, align 8, !tbaa !13
  store double %80, ptr %40, align 8, !tbaa !15
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm2EJdddEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %82 = load double, ptr %81, align 8, !tbaa !13
  store double %82, ptr %41, align 8, !tbaa !16
  store double %4, ptr %42, align 8, !tbaa !17
  invoke void @_ZNSt6vectorIN3sim15TriangleGraphicESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(144) %12)
          to label %83 unwind label %108

83:                                               ; preds = %76
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #7
  call void @_ZN3sim8TriangleD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %11) #7
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3sim8TriangleESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %85 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3sim8TriangleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %85, label %45, label %._crit_edge

86:                                               ; preds = %45
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %120

88:                                               ; preds = %47
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %119

90:                                               ; preds = %49
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %118

92:                                               ; preds = %50
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %117

94:                                               ; preds = %52
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %116

96:                                               ; preds = %59
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %115

98:                                               ; preds = %61
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %114

100:                                              ; preds = %62
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %113

102:                                              ; preds = %64
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %112

104:                                              ; preds = %71
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %111

106:                                              ; preds = %73
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %110

108:                                              ; preds = %76, %74
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  br label %110

110:                                              ; preds = %108, %106
  %.pn = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %111

111:                                              ; preds = %110, %104
  %.pn.pn = phi { ptr, i32 } [ %.pn, %110 ], [ %105, %104 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  br label %112

112:                                              ; preds = %111, %102
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %111 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %113

113:                                              ; preds = %112, %100
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %112 ], [ %101, %100 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  br label %114

114:                                              ; preds = %113, %98
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %113 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %115

115:                                              ; preds = %114, %96
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %114 ], [ %97, %96 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br label %116

116:                                              ; preds = %115, %94
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %115 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %117

117:                                              ; preds = %116, %92
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %116 ], [ %93, %92 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  br label %118

118:                                              ; preds = %117, %90
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %117 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %119

119:                                              ; preds = %118, %88
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %118 ], [ %89, %88 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br label %120

120:                                              ; preds = %119, %86
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %119 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #7
  call void @_ZN3sim8TriangleD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %121

121:                                              ; preds = %120, %43
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %120 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIN3sim15TriangleGraphicESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @_ZNSt6vectorIN3sim8TriangleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

declare void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4

declare noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4

declare void @_ZNK3sim7Polygon12getTrianglesEv(ptr dead_on_unwind writable sret(%"class.std::vector.156") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sim8TriangleC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sim8TriangleD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #6 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTSN3sim5ColorE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3sim13VertexGraphicE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"double", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 16}
!15 = !{!10, !11, i64 24}
!16 = !{!10, !11, i64 32}
!17 = !{!10, !11, i64 40}


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