; 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.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_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.pugi::xml_node" = type { ptr }
%"class.std::map.96" = type { %"class.std::_Rb_tree.97" }
%"class.std::_Rb_tree.97" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, sim::Wheel>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, sim::Wheel>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, sim::Wheel>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, sim::Wheel>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::allocator.26" = type { i8 }
%"struct.std::pair.104" = type { %"class.std::__cxx11::basic_string", %"class.sim::Wheel" }
%"class.sim::Wheel" = type { %"class.sim::Meters", %"class.sim::Meters", %"class.sim::Cartesian", %"class.sim::Radians", %"class.sim::Polygon", %"class.sim::Polygon", i8, %"class.sim::RadiansPerSecond", %"class.sim::RadiansPerSecond", i32, double, %"class.sim::Radians", %"class.sim::Radians" }
%"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.sim::RadiansPerSecond" = type { %"class.sim::AngularVelocity" }
%"class.sim::AngularVelocity" = type { ptr, double }
%"class.sim::Degrees" = type { %"class.sim::Angle" }
%"class.sim::RevolutionsPerMinute" = type { %"class.sim::AngularVelocity" }
%"struct.std::pair.101" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { 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] }

@_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
@_ZN3sim11MouseParser9WHEEL_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser12DIAMETER_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser9WIDTH_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser12POSITION_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser13DIRECTION_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser13MAX_SPEED_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser32ENCODER_TICKS_PER_REVOLUTION_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str.63 = external hidden unnamed_addr constant [6 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 @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #2

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

; 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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)) #4 align 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) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3sim11MouseParser16getContainerNodeERKN4pugi8xml_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) #5 align 2

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 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)) #4 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)) #4 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 @_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)) #5 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 uwtable
define dso_local void @_ZN3sim11MouseParser9getWheelsB5cxx11ERKNS_9CartesianERKNS_7RadiansEPb(ptr dead_on_unwind noalias writable sret(%"class.std::map.96") 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) #5 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 i1, align 1
  %16 = alloca ptr, align 8
  %17 = alloca %"class.pugi::xml_object_range", align 8
  %18 = alloca %"class.pugi::xml_named_node_iterator", align 8
  %19 = alloca %"class.pugi::xml_named_node_iterator", align 8
  %20 = alloca %"class.pugi::xml_node", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.26", align 1
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.pugi::xml_node", align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca %"struct.std::pair.104", align 8
  %34 = alloca %"class.sim::Wheel", align 8
  %35 = alloca %"class.sim::Meters", align 8
  %36 = alloca %"class.sim::Meters", align 8
  %37 = alloca %"class.sim::Cartesian", align 8
  %38 = alloca %"class.sim::Cartesian", align 8
  %39 = alloca %"class.sim::Meters", align 8
  %40 = alloca %"class.sim::Meters", align 8
  %41 = alloca %"class.sim::Degrees", align 8
  %42 = alloca %"class.sim::Degrees", align 8
  %43 = alloca %"class.sim::RevolutionsPerMinute", align 8
  %44 = alloca %"struct.std::pair.101", 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 ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #7
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.sim::MouseParser", ptr %45, 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) %46, ptr noundef nonnull align 8 dereferenceable(40) %47)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.sim::MouseParser", ptr %45, 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) %48, ptr noundef nonnull align 8 dereferenceable(16) %49)
          to label %50 unwind label %62

50:                                               ; preds = %5
  store i1 false, ptr %15, align 1
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelESt4lessIS5_ESaISt4pairIKS5_S7_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #7
  %51 = getelementptr inbounds %"class.sim::MouseParser", ptr %45, i32 0, i32 1
  %52 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser9WHEEL_TAGB5cxx11E) #7
  invoke void @_ZNK4pugi8xml_node8childrenEPKc(ptr dead_on_unwind writable sret(%"class.pugi::xml_object_range") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef %52)
          to label %53 unwind label %66

53:                                               ; preds = %50
  store ptr %17, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  %54 = load ptr, ptr %16, 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 %18, ptr noundef nonnull align 8 dereferenceable(48) %54)
          to label %55 unwind label %70

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  %56 = load ptr, ptr %16, 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 %19, ptr noundef nonnull align 8 dereferenceable(48) %56)
          to label %57 unwind label %74

57:                                               ; preds = %55
  br label %58

58:                                               ; preds = %252, %57
  %59 = invoke noundef zeroext i1 @_ZNK4pugi23xml_named_node_iteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %60 unwind label %74

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

61:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %267

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

66:                                               ; preds = %50
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %13, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %14, align 4
  br label %266

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %13, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %14, align 4
  br label %265

74:                                               ; preds = %250, %58, %55
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %14, align 4
  br label %264

78:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4pugi23xml_named_node_iteratordeEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %80 unwind label %141

80:                                               ; preds = %78
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %79, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.63, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %81 unwind label %145

81:                                               ; preds = %80
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN3sim11MouseParser26getNameIfNonemptyAndUniqueINS_5WheelEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS8_RKN4pugi8xml_nodeERKSt3mapIS8_T_St4lessIS8_ESaISt4pairIS9_SG_EEEPb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %82)
          to label %83 unwind label %149

83:                                               ; preds = %81
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = invoke noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser12DIAMETER_TAGB5cxx11E, ptr noundef %84)
          to label %86 unwind label %154

86:                                               ; preds = %83
  store double %85, ptr %24, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = invoke noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser9WIDTH_TAGB5cxx11E, ptr noundef %87)
          to label %89 unwind label %158

89:                                               ; preds = %86
  store double %88, ptr %25, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = invoke ptr @_ZN3sim11MouseParser16getContainerNodeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser12POSITION_TAGB5cxx11E, ptr noundef %90)
          to label %92 unwind label %162

92:                                               ; preds = %89
  %93 = getelementptr inbounds %"class.pugi::xml_node", ptr %26, i32 0, i32 0
  store ptr %91, ptr %93, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = invoke noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser5X_TAGB5cxx11E, ptr noundef %94)
          to label %96 unwind label %166

96:                                               ; preds = %92
  store double %95, ptr %27, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = invoke noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser5Y_TAGB5cxx11E, ptr noundef %97)
          to label %99 unwind label %170

99:                                               ; preds = %96
  store double %98, ptr %28, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = invoke noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser13DIRECTION_TAGB5cxx11E, ptr noundef %100)
          to label %102 unwind label %174

102:                                              ; preds = %99
  store double %101, ptr %29, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = invoke noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser13MAX_SPEED_TAGB5cxx11E, ptr noundef %103)
          to label %105 unwind label %178

105:                                              ; preds = %102
  store double %104, ptr %30, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = invoke noundef i32 @_ZN3sim11MouseParser21getEncoderTypeIfValidERKN4pugi8xml_nodeEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %106)
          to label %108 unwind label %182

108:                                              ; preds = %105
  store i32 %107, ptr %31, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = invoke noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser32ENCODER_TICKS_PER_REVOLUTION_TAGB5cxx11E, ptr noundef %109)
          to label %111 unwind label %186

111:                                              ; preds = %108
  store double %110, ptr %32, align 8, !tbaa !10
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %249

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 304, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 272, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  %115 = load double, ptr %24, align 8, !tbaa !10
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %35, double noundef %115)
          to label %116 unwind label %190

116:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  %117 = load double, ptr %25, align 8, !tbaa !10
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %36, double noundef %117)
          to label %118 unwind label %194

118:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 40, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #7
  %119 = load double, ptr %27, align 8, !tbaa !10
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %39, double noundef %119)
          to label %120 unwind label %198

120:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #7
  %121 = load double, ptr %28, align 8, !tbaa !10
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %40, double noundef %121)
          to label %122 unwind label %202

122:                                              ; preds = %120
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %40)
          to label %123 unwind label %206

123:                                              ; preds = %122
  %124 = 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 %37, ptr noundef nonnull align 8 dereferenceable(272) %45, ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(40) %124)
          to label %125 unwind label %210

125:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #7
  %126 = load double, ptr %29, align 8, !tbaa !10
  invoke void @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %42, double noundef %126)
          to label %127 unwind label %214

127:                                              ; preds = %125
  invoke void @_ZNK3sim7DegreesplERKNS_5AngleE(ptr dead_on_unwind writable sret(%"class.sim::Degrees") align 8 %41, ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %128 unwind label %218

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #7
  %129 = load double, ptr %30, align 8, !tbaa !10
  invoke void @_ZN3sim20RevolutionsPerMinuteC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %43, double noundef %129)
          to label %130 unwind label %222

130:                                              ; preds = %128
  %131 = load i32, ptr %31, align 4, !tbaa !12
  %132 = load double, ptr %32, align 8, !tbaa !10
  invoke void @_ZN3sim5WheelC1ERKNS_8DistanceES3_RKNS_10CoordinateERKNS_5AngleERKNS_15AngularVelocityENS_11EncoderTypeEd(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(40) %37, ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %131, double noundef %132)
          to label %133 unwind label %226

133:                                              ; preds = %130
  invoke void @_ZSt9make_pairIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind writable sret(%"struct.std::pair.104") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(272) %34)
          to label %134 unwind label %230

134:                                              ; preds = %133
  %135 = invoke { ptr, i8 } @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelESt4lessIS5_ESaISt4pairIKS5_S7_EEE6insertISA_IS5_S7_EEENSt9enable_ifIXsr16is_constructibleISC_T_EE5valueESA_ISt17_Rb_tree_iteratorISC_EbEE4typeEOSI_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(304) %33)
          to label %136 unwind label %234

136:                                              ; preds = %134
  %137 = getelementptr inbounds { ptr, i8 }, ptr %44, i32 0, i32 0
  %138 = extractvalue { ptr, i8 } %135, 0
  store ptr %138, ptr %137, align 8
  %139 = getelementptr inbounds { ptr, i8 }, ptr %44, i32 0, i32 1
  %140 = extractvalue { ptr, i8 } %135, 1
  store i8 %140, ptr %139, align 8
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelEED2Ev(ptr noundef nonnull align 8 dereferenceable(304) %33) #7
  call void @_ZN3sim5WheelD2Ev(ptr noundef nonnull align 8 dereferenceable(272) %34) #7
  call void @_ZN3sim15AngularVelocityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %41) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %37) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %37) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 272, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 304, ptr %33) #7
  br label %249

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

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

149:                                              ; preds = %81
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %13, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %153

153:                                              ; preds = %149, %145
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  br label %262

154:                                              ; preds = %83
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %13, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %14, align 4
  br label %261

158:                                              ; preds = %86
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %13, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %14, align 4
  br label %260

162:                                              ; preds = %89
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %13, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %14, align 4
  br label %259

166:                                              ; preds = %92
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %13, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %14, align 4
  br label %258

170:                                              ; preds = %96
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %13, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %14, align 4
  br label %257

174:                                              ; preds = %99
  %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 %256

178:                                              ; preds = %102
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %13, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %14, align 4
  br label %255

182:                                              ; preds = %105
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %13, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %14, align 4
  br label %254

186:                                              ; preds = %108
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %13, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %14, align 4
  br label %253

190:                                              ; preds = %114
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %13, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %14, align 4
  br label %248

194:                                              ; preds = %116
  %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 %247

198:                                              ; preds = %118
  %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 %246

202:                                              ; preds = %120
  %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
  br label %245

206:                                              ; preds = %122
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %13, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %14, align 4
  br label %244

210:                                              ; preds = %123
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %13, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %14, align 4
  br label %243

214:                                              ; preds = %125
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %13, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %14, align 4
  br label %242

218:                                              ; preds = %127
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %13, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %14, align 4
  br label %241

222:                                              ; preds = %128
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %13, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %14, align 4
  br label %240

226:                                              ; preds = %130
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %13, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %14, align 4
  br label %239

230:                                              ; preds = %133
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %13, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %14, align 4
  br label %238

234:                                              ; preds = %134
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %13, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %14, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelEED2Ev(ptr noundef nonnull align 8 dereferenceable(304) %33) #7
  br label %238

238:                                              ; preds = %234, %230
  call void @_ZN3sim5WheelD2Ev(ptr noundef nonnull align 8 dereferenceable(272) %34) #7
  br label %239

239:                                              ; preds = %238, %226
  call void @_ZN3sim15AngularVelocityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #7
  br label %240

240:                                              ; preds = %239, %222
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %41) #7
  br label %241

241:                                              ; preds = %240, %218
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #7
  br label %242

242:                                              ; preds = %241, %214
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %37) #7
  br label %243

243:                                              ; preds = %242, %210
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #7
  br label %244

244:                                              ; preds = %243, %206
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #7
  br label %245

245:                                              ; preds = %244, %202
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #7
  br label %246

246:                                              ; preds = %245, %198
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %37) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #7
  br label %247

247:                                              ; preds = %246, %194
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  br label %248

248:                                              ; preds = %247, %190
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 272, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 304, ptr %33) #7
  br label %253

249:                                              ; preds = %136, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %250

250:                                              ; preds = %249
  %251 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4pugi23xml_named_node_iteratorppEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %252 unwind label %74

252:                                              ; preds = %250
  br label %58

253:                                              ; preds = %248, %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %254

254:                                              ; preds = %253, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %255

255:                                              ; preds = %254, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %256

256:                                              ; preds = %255, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %257

257:                                              ; preds = %256, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %258

258:                                              ; preds = %257, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %259

259:                                              ; preds = %258, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %260

260:                                              ; preds = %259, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %261

261:                                              ; preds = %260, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %262

262:                                              ; preds = %261, %153
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  br label %263

263:                                              ; preds = %262, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %264

264:                                              ; preds = %263, %74
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  br label %265

265:                                              ; preds = %264, %70
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  br label %266

266:                                              ; preds = %265, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelESt4lessIS5_ESaISt4pairIKS5_S7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %271

267:                                              ; preds = %61
  store i1 true, ptr %15, align 1
  %268 = load i1, ptr %15, align 1
  br i1 %268, label %270, label %269

269:                                              ; preds = %267
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelESt4lessIS5_ESaISt4pairIKS5_S7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %270

270:                                              ; preds = %269, %267
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #7
  ret void

271:                                              ; preds = %266, %62
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #7
  br label %272

272:                                              ; preds = %271
  %273 = load ptr, ptr %13, align 8
  %274 = load i32, ptr %14, align 4
  %275 = insertvalue { ptr, i32 } poison, ptr %273, 0
  %276 = insertvalue { ptr, i32 } %275, i32 %274, 1
  resume { ptr, i32 } %276
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim11MouseParser26getNameIfNonemptyAndUniqueINS_5WheelEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS8_RKN4pugi8xml_nodeERKSt3mapIS8_T_St4lessIS8_ESaISt4pairIS9_SG_EEEPb(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_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) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3sim11MouseParser21getEncoderTypeIfValidERKN4pugi8xml_nodeEPb(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelESt4lessIS5_ESaISt4pairIKS5_S7_EEE6insertISA_IS5_S7_EEENSt9enable_ifIXsr16is_constructibleISC_T_EE5valueESA_ISt17_Rb_tree_iteratorISC_EbEE4typeEOSI_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(304)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.104") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(272)) #5

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

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

declare void @_ZN3sim5WheelC1ERKNS_8DistanceES3_RKNS_10CoordinateERKNS_5AngleERKNS_15AngularVelocityENS_11EncoderTypeEd(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 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 = { 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 = { 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 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 = !{i64 0, i64 8, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN3sim11EncoderTypeE", !7, i64 0}


; 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::__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_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.pugi::xml_node" = type { ptr }
%"class.std::map.96" = type { %"class.std::_Rb_tree.97" }
%"class.std::_Rb_tree.97" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, sim::Wheel>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, sim::Wheel>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, sim::Wheel>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, sim::Wheel>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::allocator.26" = type { i8 }
%"struct.std::pair.104" = type { %"class.std::__cxx11::basic_string", %"class.sim::Wheel" }
%"class.sim::Wheel" = type { %"class.sim::Meters", %"class.sim::Meters", %"class.sim::Cartesian", %"class.sim::Radians", %"class.sim::Polygon", %"class.sim::Polygon", i8, %"class.sim::RadiansPerSecond", %"class.sim::RadiansPerSecond", i32, double, %"class.sim::Radians", %"class.sim::Radians" }
%"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.sim::RadiansPerSecond" = type { %"class.sim::AngularVelocity" }
%"class.sim::AngularVelocity" = type { ptr, double }
%"class.sim::Degrees" = type { %"class.sim::Angle" }
%"class.sim::RevolutionsPerMinute" = type { %"class.sim::AngularVelocity" }

@_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
@_ZN3sim11MouseParser9WHEEL_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser12DIAMETER_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser9WIDTH_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser12POSITION_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser13DIRECTION_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser13MAX_SPEED_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZN3sim11MouseParser32ENCODER_TICKS_PER_REVOLUTION_TAGB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str.63 = external hidden unnamed_addr constant [6 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 @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 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 #3 align 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) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3sim11MouseParser16getContainerNodeERKN4pugi8xml_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 #4 align 2

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 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 #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)) local_unnamed_addr #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)) 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 @_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 #4 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 uwtable
define dso_local void @_ZN3sim11MouseParser9getWheelsB5cxx11ERKNS_9CartesianERKNS_7RadiansEPb(ptr dead_on_unwind noalias writable sret(%"class.std::map.96") 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 #4 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_object_range", align 8
  %9 = alloca %"class.pugi::xml_named_node_iterator", align 8
  %10 = alloca %"class.pugi::xml_named_node_iterator", align 8
  %11 = alloca %"class.pugi::xml_node", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.26", align 1
  %15 = alloca %"class.pugi::xml_node", align 8
  %16 = alloca %"struct.std::pair.104", align 8
  %17 = alloca %"class.sim::Wheel", align 8
  %18 = alloca %"class.sim::Meters", align 8
  %19 = alloca %"class.sim::Meters", align 8
  %20 = alloca %"class.sim::Cartesian", align 8
  %21 = alloca %"class.sim::Cartesian", align 8
  %22 = alloca %"class.sim::Meters", align 8
  %23 = alloca %"class.sim::Meters", align 8
  %24 = alloca %"class.sim::Degrees", align 8
  %25 = alloca %"class.sim::Degrees", align 8
  %26 = alloca %"class.sim::RevolutionsPerMinute", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  %27 = 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) %27)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %28 = 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) %28)
          to label %29 unwind label %37

29:                                               ; preds = %5
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelESt4lessIS5_ESaISt4pairIKS5_S7_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #6
  %30 = getelementptr inbounds i8, ptr %1, i64 208
  %31 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser9WHEEL_TAGB5cxx11E) #6
  invoke void @_ZNK4pugi8xml_node8childrenEPKc(ptr dead_on_unwind nonnull writable sret(%"class.pugi::xml_object_range") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef %31)
          to label %32 unwind label %39

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.pugi::xml_named_node_iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %8)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNK4pugi16xml_object_rangeINS_23xml_named_node_iteratorEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.pugi::xml_named_node_iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(48) %8)
  %.not = icmp eq ptr %4, null
  br label %33

33:                                               ; preds = %141, %32
  %34 = invoke noundef zeroext i1 @_ZNK4pugi23xml_named_node_iteratorneERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %35 unwind label %41

35:                                               ; preds = %33
  br i1 %34, label %43, label %36

36:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  ret void

37:                                               ; preds = %5
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %149

39:                                               ; preds = %29
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %148

41:                                               ; preds = %141, %33
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %147

43:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4pugi23xml_named_node_iteratordeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %45 unwind label %81

45:                                               ; preds = %43
  %46 = load i64, ptr %44, align 8, !tbaa !5
  store i64 %46, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.63, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %47 unwind label %83

47:                                               ; preds = %45
  invoke void @_ZN3sim11MouseParser26getNameIfNonemptyAndUniqueINS_5WheelEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS8_RKN4pugi8xml_nodeERKSt3mapIS8_T_St4lessIS8_ESaISt4pairIS9_SG_EEEPb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %4)
          to label %48 unwind label %85

48:                                               ; preds = %47
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  %49 = invoke noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser12DIAMETER_TAGB5cxx11E, ptr noundef %4)
          to label %50 unwind label %88

50:                                               ; preds = %48
  %51 = invoke noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser9WIDTH_TAGB5cxx11E, ptr noundef %4)
          to label %52 unwind label %90

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %53 = invoke ptr @_ZN3sim11MouseParser16getContainerNodeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser12POSITION_TAGB5cxx11E, ptr noundef %4)
          to label %54 unwind label %92

54:                                               ; preds = %52
  store ptr %53, ptr %15, align 8
  %55 = 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 %56 unwind label %94

56:                                               ; preds = %54
  %57 = 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 %58 unwind label %96

58:                                               ; preds = %56
  %59 = invoke noundef double @_ZN3sim11MouseParser20getDoubleIfHasDoubleERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser13DIRECTION_TAGB5cxx11E, ptr noundef %4)
          to label %60 unwind label %98

60:                                               ; preds = %58
  %61 = invoke noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser13MAX_SPEED_TAGB5cxx11E, ptr noundef %4)
          to label %62 unwind label %100

62:                                               ; preds = %60
  %63 = invoke noundef i32 @_ZN3sim11MouseParser21getEncoderTypeIfValidERKN4pugi8xml_nodeEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %4)
          to label %64 unwind label %102

64:                                               ; preds = %62
  %65 = invoke noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_nodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(32) @_ZN3sim11MouseParser32ENCODER_TICKS_PER_REVOLUTION_TAGB5cxx11E, ptr noundef %4)
          to label %66 unwind label %104

66:                                               ; preds = %64
  br i1 %.not, label %141, label %67

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 304, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef %49)
          to label %68 unwind label %106

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %51)
          to label %69 unwind label %108

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %22, double noundef %55)
          to label %70 unwind label %110

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef %57)
          to label %71 unwind label %112

71:                                               ; preds = %70
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %72 unwind label %114

72:                                               ; preds = %71
  invoke void @_ZN3sim11MouseParser11alignVertexERKNS_9CartesianES3_RKNS_7RadiansES3_(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %20, ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef nonnull align 8 dereferenceable(40) %21, 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 %73 unwind label %116

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #6
  invoke void @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %25, double noundef %59)
          to label %74 unwind label %118

74:                                               ; preds = %73
  invoke void @_ZNK3sim7DegreesplERKNS_5AngleE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Degrees") align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %75 unwind label %120

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #6
  invoke void @_ZN3sim20RevolutionsPerMinuteC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %61)
          to label %76 unwind label %122

76:                                               ; preds = %75
  invoke void @_ZN3sim5WheelC1ERKNS_8DistanceES3_RKNS_10CoordinateERKNS_5AngleERKNS_15AngularVelocityENS_11EncoderTypeEd(ptr noundef nonnull align 8 dereferenceable(272) %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %26, i32 noundef %63, double noundef %65)
          to label %77 unwind label %124

77:                                               ; preds = %76
  invoke void @_ZSt9make_pairIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.104") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(272) %17)
          to label %78 unwind label %126

78:                                               ; preds = %77
  %79 = invoke { ptr, i8 } @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelESt4lessIS5_ESaISt4pairIKS5_S7_EEE6insertISA_IS5_S7_EEENSt9enable_ifIXsr16is_constructibleISC_T_EE5valueESA_ISt17_Rb_tree_iteratorISC_EbEE4typeEOSI_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(304) %16)
          to label %80 unwind label %128

80:                                               ; preds = %78
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelEED2Ev(ptr noundef nonnull align 8 dereferenceable(304) %16) #6
  call void @_ZN3sim5WheelD2Ev(ptr noundef nonnull align 8 dereferenceable(272) %17) #6
  call void @_ZN3sim15AngularVelocityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 304, ptr nonnull %16) #6
  br label %141

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

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

85:                                               ; preds = %47
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %87

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

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

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

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

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

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

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

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

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

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

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

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

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

112:                                              ; preds = %70
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %137

114:                                              ; preds = %71
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %136

116:                                              ; preds = %72
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %135

118:                                              ; preds = %73
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %134

120:                                              ; preds = %74
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %133

122:                                              ; preds = %75
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %132

124:                                              ; preds = %76
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %131

126:                                              ; preds = %77
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %130

128:                                              ; preds = %78
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelEED2Ev(ptr noundef nonnull align 8 dereferenceable(304) %16) #6
  br label %130

130:                                              ; preds = %128, %126
  %.pn54 = phi { ptr, i32 } [ %129, %128 ], [ %127, %126 ]
  call void @_ZN3sim5WheelD2Ev(ptr noundef nonnull align 8 dereferenceable(272) %17) #6
  br label %131

131:                                              ; preds = %130, %124
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %130 ], [ %125, %124 ]
  call void @_ZN3sim15AngularVelocityD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %132

132:                                              ; preds = %131, %122
  %.pn54.pn.pn = phi { ptr, i32 } [ %.pn54.pn, %131 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  br label %133

133:                                              ; preds = %132, %120
  %.pn54.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn, %132 ], [ %121, %120 ]
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  br label %134

134:                                              ; preds = %133, %118
  %.pn54.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn, %133 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  br label %135

135:                                              ; preds = %134, %116
  %.pn54.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn, %134 ], [ %117, %116 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #6
  br label %136

136:                                              ; preds = %135, %114
  %.pn54.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn, %135 ], [ %115, %114 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  br label %137

137:                                              ; preds = %136, %112
  %.pn54.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn, %136 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  br label %138

138:                                              ; preds = %137, %110
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn.pn, %137 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %139

139:                                              ; preds = %138, %108
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn, %138 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %140

140:                                              ; preds = %139, %106
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn, %139 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 304, ptr nonnull %16) #6
  br label %143

141:                                              ; preds = %80, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %142 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4pugi23xml_named_node_iteratorppEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %33 unwind label %41

143:                                              ; preds = %94, %98, %102, %140, %104, %100, %96, %92
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %93, %92 ], [ %95, %94 ], [ %97, %96 ], [ %99, %98 ], [ %101, %100 ], [ %103, %102 ], [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %140 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %144

144:                                              ; preds = %90, %143, %88
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %89, %88 ], [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %143 ], [ %91, %90 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %145

145:                                              ; preds = %144, %87
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %144 ], [ %.pn, %87 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %146

146:                                              ; preds = %145, %81
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %145 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %147

147:                                              ; preds = %146, %41
  %.pn77 = phi { ptr, i32 } [ %42, %41 ], [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %146 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  br label %148

148:                                              ; preds = %147, %39
  %.pn77.pn = phi { ptr, i32 } [ %.pn77, %147 ], [ %40, %39 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelESt4lessIS5_ESaISt4pairIKS5_S7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %149

149:                                              ; preds = %148, %37
  %.pn77.pn.pn = phi { ptr, i32 } [ %.pn77.pn, %148 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn77.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim11MouseParser26getNameIfNonemptyAndUniqueINS_5WheelEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS8_RKN4pugi8xml_nodeERKSt3mapIS8_T_St4lessIS8_ESaISt4pairIS9_SG_EEEPb(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN3sim11MouseParser34getDoubleIfHasDoubleAndNonNegativeERKN4pugi8xml_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 #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim5WheelEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.104") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #4

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

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

declare void @_ZN3sim5WheelC1ERKNS_8DistanceES3_RKNS_10CoordinateERKNS_5AngleERKNS_15AngularVelocityENS_11EncoderTypeEd(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #1

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

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

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

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

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

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 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { 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"}


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