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

; 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.sim::Polygon" = type { %"class.std::vector.74", %"class.std::vector.79" }
%"class.std::vector.74" = type { %"struct.std::_Vector_base.75" }
%"struct.std::_Vector_base.75" = type { %"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.79" = type { %"struct.std::_Vector_base.80" }
%"struct.std::_Vector_base.80" = 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::__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.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 }
%"class.sim::Radians" = type { %"class.sim::Angle" }
%"class.sim::Angle" = type { ptr, double }
%"class.pugi::xml_node" = type { ptr }
%"class.pugi::xml_node_iterator" = type { %"class.pugi::xml_node", %"class.pugi::xml_node" }
%"class.pugi::xml_object_range" = type { %"class.pugi::xml_named_node_iterator", %"class.pugi::xml_named_node_iterator" }
%"class.pugi::xml_named_node_iterator" = type { %"class.pugi::xml_node", %"class.pugi::xml_node", ptr }
%"class.sim::MouseParser" = type { %"class.pugi::xml_document", %"class.pugi::xml_node", %"class.sim::Radians", %"class.sim::Cartesian" }
%"class.pugi::xml_document" = type { %"class.pugi::xml_node", ptr, [192 x i8] }

@_ZN3sim11MouseParser12NULL_POLYGONE = external dso_local global %"class.sim::Polygon", align 8
@_ZN3sim11MouseParser8BODY_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser10VERTEX_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser5X_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser5Y_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str.60 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [80 x i8], align 1

; 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

declare void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #2

declare void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @_ZN3sim7PolygonC1ERKSt6vectorINS_9CartesianESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

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

; Function Attrs: nounwind
declare void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4

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

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

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

declare noundef ptr @_ZN3sim1LEv() #2

declare ptr @_ZNK4pugi8xml_node5childEPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #6 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim11MouseParser7getBodyERKNS_9CartesianERKNS_7RadiansEPb(ptr dead_on_unwind noalias writable sret(%"class.sim::Polygon") align 8 %0, ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef %4) #6 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.sim::Cartesian", align 8
  %12 = alloca %"class.sim::Radians", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.pugi::xml_node", align 8
  %16 = alloca %"class.pugi::xml_node_iterator", align 8
  %17 = alloca %"class.pugi::xml_node_iterator", align 8
  %18 = alloca %"class.std::vector.74", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.pugi::xml_object_range", align 8
  %21 = alloca %"class.pugi::xml_named_node_iterator", align 8
  %22 = alloca %"class.pugi::xml_named_node_iterator", align 8
  %23 = alloca %"class.pugi::xml_node", align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.sim::Cartesian", align 8
  %27 = alloca %"class.sim::Cartesian", align 8
  %28 = alloca %"class.sim::Meters", align 8
  %29 = alloca %"class.sim::Meters", align 8
  %30 = alloca %"class.sim::Polygon", align 8
  %31 = alloca %"class.sim::Polygon", align 8
  %32 = alloca %"class.std::vector.79", align 8
  %33 = alloca i32, align 4
  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 ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #8
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.sim::MouseParser", ptr %34, i32 0, i32 3
  call void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %35, ptr noundef nonnull align 8 dereferenceable(40) %36)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.sim::MouseParser", ptr %34, i32 0, i32 2
  invoke void @_ZNK3sim7RadiansmiERKNS_5AngleE(ptr dead_on_unwind writable sret(%"class.sim::Radians") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %39 unwind label %64

39:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %40 = getelementptr inbounds %"class.sim::MouseParser", ptr %34, i32 0, i32 1
  %41 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser8BODY_TAGB5cxx11E) #8
  %42 = invoke ptr @_ZNK4pugi8xml_node5childEPKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef %41)
          to label %43 unwind label %68

43:                                               ; preds = %39
  %44 = getelementptr inbounds %"class.pugi::xml_node", ptr %15, i32 0, i32 0
  store ptr %42, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %45 = invoke { ptr, ptr } @_ZNK4pugi8xml_node5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %46 unwind label %72

46:                                               ; preds = %43
  %47 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 0
  %48 = extractvalue { ptr, ptr } %45, 0
  store ptr %48, ptr %47, align 8
  %49 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 1
  %50 = extractvalue { ptr, ptr } %45, 1
  store ptr %50, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %51 = invoke { ptr, ptr } @_ZNK4pugi8xml_node3endEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %52 unwind label %76

52:                                               ; preds = %46
  %53 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 0
  %54 = extractvalue { ptr, ptr } %51, 0
  store ptr %54, ptr %53, align 8
  %55 = getelementptr inbounds { ptr, ptr }, ptr %17, i32 0, i32 1
  %56 = extractvalue { ptr, ptr } %51, 1
  store ptr %56, ptr %55, align 8
  %57 = invoke noundef zeroext i1 @_ZNK4pugi17xml_node_iteratoreqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %58 unwind label %76

58:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br i1 %57, label %59, label %81

59:                                               ; preds = %58
  %60 = invoke noundef ptr @_ZN3sim1LEv()
          to label %61 unwind label %68

61:                                               ; preds = %59
  invoke void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %60, ptr noundef @.str.60, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser8BODY_TAGB5cxx11E)
          to label %62 unwind label %68

62:                                               ; preds = %61
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  store i8 0, ptr %63, align 1, !tbaa !9
  br label %81

64:                                               ; preds = %5
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %13, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %14, align 4
  br label %229

68:                                               ; preds = %61, %59, %39
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %13, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %14, align 4
  br label %228

72:                                               ; preds = %43
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  br label %80

76:                                               ; preds = %52, %46
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %13, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %80

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %228

81:                                               ; preds = %62, %58
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #8
  %82 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser10VERTEX_TAGB5cxx11E) #8
  invoke void @_ZNK4pugi8xml_node8childrenEPKc(ptr dead_on_unwind writable sret(%"class.pugi::xml_object_range") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %82)
          to label %83 unwind label %92

83:                                               ; preds = %81
  store ptr %20, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE5beginEv(ptr dead_on_unwind writable sret(%"class.pugi::xml_named_node_iterator") align 8 %21, ptr noundef nonnull align 8 dereferenceable(48) %84)
          to label %85 unwind label %96

85:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE3endEv(ptr dead_on_unwind writable sret(%"class.pugi::xml_named_node_iterator") align 8 %22, ptr noundef nonnull align 8 dereferenceable(48) %86)
          to label %87 unwind label %100

87:                                               ; preds = %85
  br label %88

88:                                               ; preds = %123, %87
  %89 = invoke noundef zeroext i1 @_ZNK4pugi23xml_named_node_iteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %90 unwind label %100

90:                                               ; preds = %88
  br i1 %89, label %104, label %91

91:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %166

92:                                               ; preds = %81
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %13, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %14, align 4
  br label %165

96:                                               ; preds = %83
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %13, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %14, align 4
  br label %164

100:                                              ; preds = %121, %88, %85
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %13, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %14, align 4
  br label %163

104:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4pugi23xml_named_node_iteratordeEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %106 unwind label %124

106:                                              ; preds = %104
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %105, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = invoke noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser5X_TAGB5cxx11E, ptr noundef %107)
          to label %109 unwind label %128

109:                                              ; preds = %106
  store double %108, ptr %24, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = invoke noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser5Y_TAGB5cxx11E, ptr noundef %110)
          to label %112 unwind label %132

112:                                              ; preds = %109
  store double %111, ptr %25, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %113 = load double, ptr %24, align 8, !tbaa !12
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %113)
          to label %114 unwind label %136

114:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  %115 = load double, ptr %25, align 8, !tbaa !12
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %29, double noundef %115)
          to label %116 unwind label %140

116:                                              ; preds = %114
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %27, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %117 unwind label %144

117:                                              ; preds = %116
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3sim11MouseParser11alignVertexERKNS_9CartesianES3_RKNS_7RadiansES3_(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %26, ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef nonnull align 8 dereferenceable(40) %27, ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(40) %118)
          to label %119 unwind label %148

119:                                              ; preds = %117
  invoke void @_ZNSt6vectorIN3sim9CartesianESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(40) %26)
          to label %120 unwind label %152

120:                                              ; preds = %119
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #8
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #8
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %121

121:                                              ; preds = %120
  %122 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4pugi23xml_named_node_iteratorppEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %123 unwind label %100

123:                                              ; preds = %121
  br label %88

124:                                              ; preds = %104
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %13, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %14, align 4
  br label %162

128:                                              ; preds = %106
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %13, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %14, align 4
  br label %161

132:                                              ; preds = %109
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %13, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %14, align 4
  br label %160

136:                                              ; preds = %112
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %13, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %14, align 4
  br label %159

140:                                              ; preds = %114
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %13, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %14, align 4
  br label %158

144:                                              ; preds = %116
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %13, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %14, align 4
  br label %157

148:                                              ; preds = %117
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %13, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %14, align 4
  br label %156

152:                                              ; preds = %119
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %13, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %14, align 4
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #8
  br label %156

156:                                              ; preds = %152, %148
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #8
  br label %157

157:                                              ; preds = %156, %144
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #8
  br label %158

158:                                              ; preds = %157, %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  br label %159

159:                                              ; preds = %158, %136
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #8
  br label %160

160:                                              ; preds = %159, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %161

161:                                              ; preds = %160, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %162

162:                                              ; preds = %161, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %163

163:                                              ; preds = %162, %100
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  br label %164

164:                                              ; preds = %163, %96
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  br label %165

165:                                              ; preds = %164, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %227

166:                                              ; preds = %91
  %167 = call noundef i64 @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %168 = icmp ult i64 %167, 3
  br i1 %168, label %169, label %178

169:                                              ; preds = %166
  %170 = invoke noundef ptr @_ZN3sim1LEv()
          to label %171 unwind label %174

171:                                              ; preds = %169
  invoke void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %170, ptr noundef @.str.61, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser8BODY_TAGB5cxx11E)
          to label %172 unwind label %174

172:                                              ; preds = %171
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  store i8 0, ptr %173, align 1, !tbaa !9
  br label %178

174:                                              ; preds = %171, %169
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %13, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %14, align 4
  br label %227

178:                                              ; preds = %172, %166
  call void @llvm.lifetime.start.p0(i64 48, ptr %30) #8
  invoke void @_ZN3sim7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %30)
          to label %179 unwind label %194

179:                                              ; preds = %178
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  %181 = icmp ne ptr %180, null
  br i1 %181, label %182, label %216

182:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 48, ptr %31) #8
  invoke void @_ZN3sim7PolygonC1ERKSt6vectorINS_9CartesianESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %31, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %183 unwind label %198

183:                                              ; preds = %182
  %184 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3sim7PolygonaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef nonnull align 8 dereferenceable(48) %31)
          to label %185 unwind label %202

185:                                              ; preds = %183
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #8
  invoke void @_ZNK3sim7Polygon12getTrianglesEv(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8 %32, ptr noundef nonnull align 8 dereferenceable(48) %30)
          to label %186 unwind label %207

186:                                              ; preds = %185
  %187 = call noundef i64 @_ZNKSt6vectorIN3sim8TriangleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %188 = icmp eq i64 %187, 0
  call void @_ZNSt6vectorIN3sim8TriangleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  br i1 %188, label %189, label %215

189:                                              ; preds = %186
  %190 = invoke noundef ptr @_ZN3sim1LEv()
          to label %191 unwind label %211

191:                                              ; preds = %189
  invoke void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %190, ptr noundef @.str.62, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser8BODY_TAGB5cxx11E)
          to label %192 unwind label %211

192:                                              ; preds = %191
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  store i8 0, ptr %193, align 1, !tbaa !9
  br label %215

194:                                              ; preds = %178
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %13, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %14, align 4
  br label %226

198:                                              ; preds = %182
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %13, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %14, align 4
  br label %206

202:                                              ; preds = %183
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %13, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %14, align 4
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #8
  br label %206

206:                                              ; preds = %202, %198
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #8
  br label %225

207:                                              ; preds = %185
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %13, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  br label %225

211:                                              ; preds = %222, %220, %191, %189
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %13, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %14, align 4
  br label %225

215:                                              ; preds = %192, %186
  br label %216

216:                                              ; preds = %215, %179
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = load i8, ptr %217, align 1, !tbaa !9, !range !14, !noundef !15
  %219 = trunc i8 %218 to i1
  br i1 %219, label %222, label %220

220:                                              ; preds = %216
  invoke void @_ZN3sim7PolygonC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) @_ZN3sim11MouseParser12NULL_POLYGONE)
          to label %221 unwind label %211

221:                                              ; preds = %220
  store i32 1, ptr %33, align 4
  br label %224

222:                                              ; preds = %216
  invoke void @_ZN3sim7PolygonC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %30)
          to label %223 unwind label %211

223:                                              ; preds = %222
  store i32 1, ptr %33, align 4
  br label %224

224:                                              ; preds = %223, %221
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #8
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #8
  ret void

225:                                              ; preds = %211, %207, %206
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %30) #8
  br label %226

226:                                              ; preds = %225, %194
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #8
  br label %227

227:                                              ; preds = %226, %174, %165
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  br label %228

228:                                              ; preds = %227, %80, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  br label %229

229:                                              ; preds = %228, %64
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #8
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %13, align 8
  %232 = load i32, ptr %14, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234
}

declare void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #2

declare void @_ZNK3sim7RadiansmiERKNS_5AngleE(ptr dead_on_unwind writable sret(%"class.sim::Radians") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

declare { ptr, ptr } @_ZNK4pugi8xml_node5beginEv(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare noundef zeroext i1 @_ZNK4pugi17xml_node_iteratoreqERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

declare { ptr, ptr } @_ZNK4pugi8xml_node3endEv(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #7 align 2

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

declare void @_ZNK4pugi8xml_node8childrenEPKc(ptr dead_on_unwind writable sret(%"class.pugi::xml_object_range") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.pugi::xml_named_node_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.pugi::xml_named_node_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

declare noundef zeroext i1 @_ZNK4pugi23xml_named_node_iteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4pugi23xml_named_node_iteratordeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim11MouseParser11alignVertexERKNS_9CartesianES3_RKNS_7RadiansES3_(ptr dead_on_unwind noalias writable sret(%"class.sim::Cartesian") align 8, ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40)) #6 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN4pugi23xml_named_node_iteratorppEv(ptr noundef nonnull align 8 dereferenceable(24)) #2

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

declare void @_ZN3sim7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN3sim7PolygonaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #7 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3sim8TriangleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #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

declare void @_ZN3sim7PolygonC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

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


; 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.sim::Polygon" = type { %"class.std::vector.74", %"class.std::vector.79" }
%"class.std::vector.74" = type { %"struct.std::_Vector_base.75" }
%"struct.std::_Vector_base.75" = type { %"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.79" = type { %"struct.std::_Vector_base.80" }
%"struct.std::_Vector_base.80" = 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::__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.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 }
%"class.sim::Radians" = type { %"class.sim::Angle" }
%"class.sim::Angle" = type { ptr, double }
%"class.pugi::xml_node" = type { ptr }
%"class.pugi::xml_node_iterator" = type { %"class.pugi::xml_node", %"class.pugi::xml_node" }
%"class.pugi::xml_object_range" = type { %"class.pugi::xml_named_node_iterator", %"class.pugi::xml_named_node_iterator" }
%"class.pugi::xml_named_node_iterator" = type { %"class.pugi::xml_node", %"class.pugi::xml_node", ptr }

@_ZN3sim11MouseParser12NULL_POLYGONE = external dso_local global %"class.sim::Polygon", align 8
@_ZN3sim11MouseParser8BODY_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser10VERTEX_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser5X_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser5Y_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str.60 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [80 x i8], align 1

; 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

declare void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #1

declare void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @_ZN3sim7PolygonC1ERKSt6vectorINS_9CartesianESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3

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

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

; 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

declare noundef ptr @_ZN3sim1LEv() local_unnamed_addr #1

declare ptr @_ZNK4pugi8xml_node5childEPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim11MouseParser7getBodyERKNS_9CartesianERKNS_7RadiansEPb(ptr dead_on_unwind noalias writable sret(%"class.sim::Polygon") align 8 %0, ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef %4) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.sim::Cartesian", align 8
  %7 = alloca %"class.sim::Radians", align 8
  %8 = alloca %"class.pugi::xml_node", align 8
  %9 = alloca %"class.pugi::xml_node_iterator", align 8
  %10 = alloca %"class.pugi::xml_node_iterator", align 8
  %11 = alloca %"class.std::vector.74", align 8
  %12 = alloca %"class.pugi::xml_object_range", align 8
  %13 = alloca %"class.pugi::xml_named_node_iterator", align 8
  %14 = alloca %"class.pugi::xml_named_node_iterator", align 8
  %15 = alloca %"class.pugi::xml_node", align 8
  %16 = alloca %"class.sim::Cartesian", align 8
  %17 = alloca %"class.sim::Cartesian", align 8
  %18 = alloca %"class.sim::Meters", align 8
  %19 = alloca %"class.sim::Meters", align 8
  %20 = alloca %"class.sim::Polygon", align 8
  %21 = alloca %"class.sim::Polygon", align 8
  %22 = alloca %"class.std::vector.79", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #7
  %23 = getelementptr inbounds i8, ptr %1, i64 232
  call void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %6, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %23)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %24 = getelementptr inbounds i8, ptr %1, i64 216
  invoke void @_ZNK3sim7RadiansmiERKNS_5AngleE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Radians") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %25 unwind label %46

25:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %26 = getelementptr inbounds i8, ptr %1, i64 208
  %27 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser8BODY_TAGB5cxx11E) #7
  %28 = invoke ptr @_ZNK4pugi8xml_node5childEPKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %27)
          to label %29 unwind label %48

29:                                               ; preds = %25
  store ptr %28, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %30 = invoke { ptr, ptr } @_ZNK4pugi8xml_node5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %31 unwind label %50

31:                                               ; preds = %29
  %32 = extractvalue { ptr, ptr } %30, 0
  store ptr %32, ptr %9, align 8
  %33 = getelementptr inbounds i8, ptr %9, i64 8
  %34 = extractvalue { ptr, ptr } %30, 1
  store ptr %34, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %35 = invoke { ptr, ptr } @_ZNK4pugi8xml_node3endEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %36 unwind label %52

36:                                               ; preds = %31
  %37 = extractvalue { ptr, ptr } %35, 0
  store ptr %37, ptr %10, align 8
  %38 = getelementptr inbounds i8, ptr %10, i64 8
  %39 = extractvalue { ptr, ptr } %35, 1
  store ptr %39, ptr %38, align 8
  %40 = invoke noundef zeroext i1 @_ZNK4pugi17xml_node_iteratoreqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %41 unwind label %52

41:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br i1 %40, label %42, label %55

42:                                               ; preds = %41
  %43 = invoke noundef ptr @_ZN3sim1LEv()
          to label %44 unwind label %48

44:                                               ; preds = %42
  invoke void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %43, ptr noundef nonnull @.str.60, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser8BODY_TAGB5cxx11E)
          to label %45 unwind label %48

45:                                               ; preds = %44
  store i8 0, ptr %4, align 1, !tbaa !5
  br label %55

46:                                               ; preds = %5
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %141

48:                                               ; preds = %44, %42, %25
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %140

50:                                               ; preds = %29
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %36, %31
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %54

54:                                               ; preds = %52, %50
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %140

55:                                               ; preds = %45, %41
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #7
  %56 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser10VERTEX_TAGB5cxx11E) #7
  invoke void @_ZNK4pugi8xml_node8childrenEPKc(ptr dead_on_unwind nonnull writable sret(%"class.pugi::xml_object_range") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %56)
          to label %57 unwind label %64

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.pugi::xml_named_node_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  call void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.pugi::xml_named_node_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %12)
  br label %58

58:                                               ; preds = %80, %57
  %59 = invoke noundef zeroext i1 @_ZNK4pugi23xml_named_node_iteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %60 unwind label %66

60:                                               ; preds = %58
  br i1 %59, label %68, label %61

61:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #7
  %62 = call noundef i64 @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %63 = icmp ult i64 %62, 3
  br i1 %63, label %104, label %110

64:                                               ; preds = %55
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %139

66:                                               ; preds = %80, %58
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %103

68:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4pugi23xml_named_node_iteratordeEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %70 unwind label %82

70:                                               ; preds = %68
  %71 = load i64, ptr %69, align 8, !tbaa !9
  store i64 %71, ptr %15, align 8, !tbaa !9
  %72 = invoke noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser5X_TAGB5cxx11E, ptr noundef %4)
          to label %73 unwind label %84

73:                                               ; preds = %70
  %74 = invoke noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser5Y_TAGB5cxx11E, ptr noundef %4)
          to label %75 unwind label %86

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef %72)
          to label %76 unwind label %88

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %74)
          to label %77 unwind label %90

77:                                               ; preds = %76
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %78 unwind label %92

78:                                               ; preds = %77
  invoke void @_ZN3sim11MouseParser11alignVertexERKNS_9CartesianES3_RKNS_7RadiansES3_(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %16, ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %79 unwind label %94

79:                                               ; preds = %78
  invoke void @_ZNSt6vectorIN3sim9CartesianESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %80 unwind label %96

80:                                               ; preds = %79
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  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 @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %81 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4pugi23xml_named_node_iteratorppEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %58 unwind label %66

82:                                               ; preds = %68
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %102

84:                                               ; preds = %70
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %102

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

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

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

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

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

96:                                               ; preds = %79
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #7
  br label %98

98:                                               ; preds = %96, %94
  %.pn39 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #7
  br label %99

99:                                               ; preds = %98, %92
  %.pn39.pn = phi { ptr, i32 } [ %.pn39, %98 ], [ %93, %92 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  br label %100

100:                                              ; preds = %99, %90
  %.pn39.pn.pn = phi { ptr, i32 } [ %.pn39.pn, %99 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  br label %101

101:                                              ; preds = %100, %88
  %.pn39.pn.pn.pn = phi { ptr, i32 } [ %.pn39.pn.pn, %100 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #7
  br label %102

102:                                              ; preds = %84, %101, %86, %82
  %.pn39.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %83, %82 ], [ %85, %84 ], [ %.pn39.pn.pn.pn, %101 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %103

103:                                              ; preds = %102, %66
  %.pn47 = phi { ptr, i32 } [ %67, %66 ], [ %.pn39.pn.pn.pn.pn.pn.pn, %102 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #7
  br label %139

104:                                              ; preds = %61
  %105 = invoke noundef ptr @_ZN3sim1LEv()
          to label %106 unwind label %108

106:                                              ; preds = %104
  invoke void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %105, ptr noundef nonnull @.str.61, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser8BODY_TAGB5cxx11E)
          to label %107 unwind label %108

107:                                              ; preds = %106
  store i8 0, ptr %4, align 1, !tbaa !5
  br label %110

108:                                              ; preds = %106, %104
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %139

110:                                              ; preds = %107, %61
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %20) #7
  invoke void @_ZN3sim7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %111 unwind label %123

111:                                              ; preds = %110
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %.invoke, label %112

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #7
  invoke void @_ZN3sim7PolygonC1ERKSt6vectorINS_9CartesianESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %113 unwind label %125

113:                                              ; preds = %112
  %114 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3sim7PolygonaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %115 unwind label %127

115:                                              ; preds = %113
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #7
  invoke void @_ZNK3sim7Polygon12getTrianglesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.79") align 8 %22, ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %116 unwind label %130

116:                                              ; preds = %115
  %117 = call noundef i64 @_ZNKSt6vectorIN3sim8TriangleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %118 = icmp eq i64 %117, 0
  call void @_ZNSt6vectorIN3sim8TriangleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  br i1 %118, label %119, label %.invoke

119:                                              ; preds = %116
  %120 = invoke noundef ptr @_ZN3sim1LEv()
          to label %121 unwind label %132

121:                                              ; preds = %119
  invoke void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %120, ptr noundef nonnull @.str.62, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser8BODY_TAGB5cxx11E)
          to label %122 unwind label %132

122:                                              ; preds = %121
  store i8 0, ptr %4, align 1, !tbaa !5
  br label %.invoke

123:                                              ; preds = %110
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %138

125:                                              ; preds = %112
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %113
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  br label %129

129:                                              ; preds = %127, %125
  %.pn34 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #7
  br label %137

130:                                              ; preds = %115
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  br label %137

132:                                              ; preds = %.invoke, %121, %119
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %137

.invoke:                                          ; preds = %116, %122, %111
  %134 = load i8, ptr %4, align 1, !tbaa !5, !range !11, !noundef !12
  %135 = trunc nuw i8 %134 to i1
  %._ZN3sim11MouseParser12NULL_POLYGONE = select i1 %135, ptr %20, ptr @_ZN3sim11MouseParser12NULL_POLYGONE
  invoke void @_ZN3sim7PolygonC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %._ZN3sim11MouseParser12NULL_POLYGONE)
          to label %136 unwind label %132

136:                                              ; preds = %.invoke
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %20) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  ret void

137:                                              ; preds = %132, %130, %129
  %.pn36 = phi { ptr, i32 } [ %133, %132 ], [ %131, %130 ], [ %.pn34, %129 ]
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #7
  br label %138

138:                                              ; preds = %137, %123
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %137 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %20) #7
  br label %139

139:                                              ; preds = %64, %103, %138, %108
  %.pn47.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %138 ], [ %109, %108 ], [ %.pn47, %103 ], [ %65, %64 ]
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %140

140:                                              ; preds = %139, %54, %48
  %.pn47.pn.pn.pn = phi { ptr, i32 } [ %.pn47.pn.pn, %139 ], [ %49, %48 ], [ %.pn, %54 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %141

141:                                              ; preds = %140, %46
  %.pn47.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn47.pn.pn.pn, %140 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn47.pn.pn.pn.pn
}

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

declare void @_ZNK3sim7RadiansmiERKNS_5AngleE(ptr dead_on_unwind writable sret(%"class.sim::Radians") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare { ptr, ptr } @_ZNK4pugi8xml_node5beginEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK4pugi17xml_node_iteratoreqERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare { ptr, ptr } @_ZNK4pugi8xml_node3endEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

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

declare void @_ZNK4pugi8xml_node8childrenEPKc(ptr dead_on_unwind writable sret(%"class.pugi::xml_object_range") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.pugi::xml_named_node_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.pugi::xml_named_node_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZNK4pugi23xml_named_node_iteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4pugi23xml_named_node_iteratordeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim11MouseParser11alignVertexERKNS_9CartesianES3_RKNS_7RadiansES3_(ptr dead_on_unwind noalias writable sret(%"class.sim::Cartesian") align 8, ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #5 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN4pugi23xml_named_node_iteratorppEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

declare void @_ZN3sim7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN3sim7PolygonaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #6 align 2

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

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

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

declare void @_ZN3sim7PolygonC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass