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

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.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::Polar" = type { %"class.sim::Coordinate" }
%"class.sim::Degrees" = type { %"class.sim::Angle" }
%"class.sim::Angle" = type { ptr, double }
%"class.sim::Radians" = type { %"class.sim::Angle" }
%"class.sim::Milliseconds" = type { %"class.sim::Duration" }
%"class.sim::Duration" = type { ptr, double }
%"class.sim::MouseInterface" = type { ptr, ptr, ptr, ptr, %"class.std::set.221", %"struct.sim::StaticMouseAlgorithmOptions", i8, %"class.std::set.226", %"class.std::set.226" }
%"class.std::set.221" = type { %"class.std::_Rb_tree.222" }
%"class.std::_Rb_tree.222" = type { %"struct.std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.sim::StaticMouseAlgorithmOptions" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, double }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::set.226" = type { %"class.std::_Rb_tree.227" }
%"class.std::_Rb_tree.227" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.105 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.117 = 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

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

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

declare void @_ZN3sim12SimUtilities5sleepERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(16)) #1

declare noundef ptr @_ZN3sim1PEv() #1

declare noundef double @_ZN3sim5Param16minSleepDurationEv(ptr noundef nonnull align 8 dereferenceable(1056)) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #3

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

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

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

declare noundef double @_ZNK3sim5Angle19getDegreesZeroTo360Ev(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim14MouseInterface13moveForwardToERKNS_9CartesianERKNS_7RadiansE(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.sim::Polar", align 8
  %8 = alloca %"class.sim::Cartesian", align 8
  %9 = alloca %"class.sim::Cartesian", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.sim::Degrees", align 8
  %13 = alloca %"class.sim::Radians", align 8
  %14 = alloca %"class.sim::Meters", align 8
  %15 = alloca %"class.sim::Meters", align 8
  %16 = alloca %"class.sim::Meters", align 8
  %17 = alloca %"class.sim::Meters", align 8
  %18 = alloca %"class.sim::Milliseconds", align 8
  %19 = alloca %"class.sim::Polar", align 8
  %20 = alloca %"class.sim::Cartesian", align 8
  %21 = alloca %"class.sim::Cartesian", align 8
  %22 = alloca %"class.sim::Radians", align 8
  %23 = alloca %"class.sim::Radians", align 8
  %24 = alloca %"class.sim::Radians", align 8
  %25 = alloca i1, align 1
  %26 = alloca %"class.sim::Radians", align 8
  %27 = alloca i1, align 1
  %28 = alloca i1, align 1
  %29 = alloca i1, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #7
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  %32 = getelementptr inbounds %"class.sim::MouseInterface", ptr %30, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  call void @_ZNK3sim5Mouse21getCurrentTranslationEv(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %9, ptr noundef nonnull align 8 dereferenceable(528) %33)
  invoke void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %34 unwind label %101

34:                                               ; preds = %3
  invoke void @_ZN3sim5PolarC1ERKNS_10CoordinateE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %35 unwind label %105

35:                                               ; preds = %34
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  invoke void @_ZNK3sim10Coordinate8getThetaEv(ptr dead_on_unwind writable sret(%"class.sim::Radians") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %36 unwind label %110

36:                                               ; preds = %35
  invoke void @_ZN3sim7DegreesC1ERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %37 unwind label %114

37:                                               ; preds = %36
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  invoke void @_ZNK3sim10Coordinate6getRhoEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %14, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %38 unwind label %119

38:                                               ; preds = %37
  %39 = getelementptr inbounds %"class.sim::MouseInterface", ptr %30, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds %"class.sim::MouseInterface", ptr %30, i32 0, i32 5
  %42 = getelementptr inbounds %"struct.sim::StaticMouseAlgorithmOptions", ptr %41, i32 0, i32 5
  %43 = load double, ptr %42, align 8, !tbaa !31
  invoke void @_ZN3sim5Mouse28setWheelSpeedsForMoveForwardEd(ptr noundef nonnull align 8 dereferenceable(528) %40, double noundef %43)
          to label %44 unwind label %123

44:                                               ; preds = %38
  br label %45

45:                                               ; preds = %190, %44
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  invoke void @_ZNK3sim10Coordinate6getRhoEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %46 unwind label %127

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

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

50:                                               ; preds = %48
  %51 = fcmp ole double %47, %49
  %52 = xor i1 %51, true
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br i1 %52, label %53, label %145

53:                                               ; preds = %50
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.105)
          to label %55 unwind label %123

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %57 unwind label %123

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef @.str.106)
          to label %59 unwind label %123

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef @.str.107)
          to label %61 unwind label %123

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %63 unwind label %123

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @.str.108)
          to label %65 unwind label %123

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %64, i32 noundef 954)
          to label %67 unwind label %123

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %69 unwind label %123

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef @.str.109)
          to label %71 unwind label %123

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef @.str.113)
          to label %73 unwind label %123

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @.str.114)
          to label %75 unwind label %123

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef @.str.115)
          to label %77 unwind label %123

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %79 unwind label %123

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @.str.116)
          to label %81 unwind label %123

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  invoke void @_ZNK3sim10Coordinate6getRhoEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %16, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %82 unwind label %136

82:                                               ; preds = %81
  %83 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %84 unwind label %140

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %80, double noundef %83)
          to label %86 unwind label %140

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %88 unwind label %140

88:                                               ; preds = %86
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef @.str.117)
          to label %90 unwind label %140

90:                                               ; preds = %88
  %91 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %92 unwind label %140

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %89, double noundef %91)
          to label %94 unwind label %140

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %96 unwind label %140

96:                                               ; preds = %94
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @.str.111)
          to label %98 unwind label %140

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %100 unwind label %140

100:                                              ; preds = %98
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @exit(i32 noundef 1) #8
  unreachable

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

105:                                              ; preds = %34
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %10, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %11, align 4
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %109

109:                                              ; preds = %105, %101
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  br label %271

110:                                              ; preds = %35
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %10, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %11, align 4
  br label %118

114:                                              ; preds = %36
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %10, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %11, align 4
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br label %118

118:                                              ; preds = %114, %110
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %270

119:                                              ; preds = %37
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %10, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %11, align 4
  br label %269

123:                                              ; preds = %194, %191, %79, %77, %75, %73, %71, %69, %67, %65, %63, %61, %59, %57, %55, %53, %38
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %10, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %11, align 4
  br label %268

127:                                              ; preds = %45
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %10, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %11, align 4
  br label %135

131:                                              ; preds = %48, %46
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %10, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %11, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br label %135

135:                                              ; preds = %131, %127
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %268

136:                                              ; preds = %81
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %10, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %11, align 4
  br label %144

140:                                              ; preds = %98, %96, %94, %92, %90, %88, %86, %84, %82
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %10, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %11, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  br label %144

144:                                              ; preds = %140, %136
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %268

145:                                              ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  invoke void @_ZNK3sim10Coordinate6getRhoEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %17, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %146 unwind label %200

146:                                              ; preds = %145
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %148 = invoke noundef ptr @_ZN3sim1PEv()
          to label %149 unwind label %204

149:                                              ; preds = %146
  %150 = invoke noundef double @_ZN3sim5Param16minSleepDurationEv(ptr noundef nonnull align 8 dereferenceable(1056) %148)
          to label %151 unwind label %204

151:                                              ; preds = %149
  invoke void @_ZN3sim12MillisecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef %150)
          to label %152 unwind label %204

152:                                              ; preds = %151
  invoke void @_ZN3sim12SimUtilities5sleepERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %153 unwind label %208

153:                                              ; preds = %152
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #7
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #7
  %155 = getelementptr inbounds %"class.sim::MouseInterface", ptr %30, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  invoke void @_ZNK3sim5Mouse21getCurrentTranslationEv(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %21, ptr noundef nonnull align 8 dereferenceable(528) %156)
          to label %157 unwind label %213

157:                                              ; preds = %153
  invoke void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %154, ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %158 unwind label %217

158:                                              ; preds = %157
  invoke void @_ZN3sim5PolarC1ERKNS_10CoordinateE(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %159 unwind label %221

159:                                              ; preds = %158
  %160 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3sim5PolaraSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %19) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #7
  br label %161

161:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  store i1 false, ptr %25, align 1
  store i1 false, ptr %27, align 1
  store i1 false, ptr %28, align 1
  store i1 false, ptr %29, align 1
  invoke void @_ZNK3sim10Coordinate8getThetaEv(ptr dead_on_unwind writable sret(%"class.sim::Radians") align 8 %23, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %162 unwind label %227

162:                                              ; preds = %161
  invoke void @_ZNK3sim7RadiansmiERKNS_5AngleE(ptr dead_on_unwind writable sret(%"class.sim::Radians") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %163 unwind label %231

163:                                              ; preds = %162
  %164 = invoke noundef double @_ZNK3sim5Angle19getDegreesZeroTo360Ev(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %165 unwind label %235

165:                                              ; preds = %163
  %166 = invoke noundef double @_ZSt3absd(double noundef %164)
          to label %167 unwind label %235

167:                                              ; preds = %165
  %168 = fcmp olt double %166, 9.000000e+01
  br i1 %168, label %177, label %169

169:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  store i1 true, ptr %25, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  store i1 true, ptr %27, align 1
  invoke void @_ZNK3sim10Coordinate8getThetaEv(ptr dead_on_unwind writable sret(%"class.sim::Radians") align 8 %26, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %170 unwind label %239

170:                                              ; preds = %169
  store i1 true, ptr %28, align 1
  invoke void @_ZNK3sim7RadiansmiERKNS_5AngleE(ptr dead_on_unwind writable sret(%"class.sim::Radians") align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %171 unwind label %243

171:                                              ; preds = %170
  store i1 true, ptr %29, align 1
  %172 = invoke noundef double @_ZNK3sim5Angle19getDegreesZeroTo360Ev(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %173 unwind label %247

173:                                              ; preds = %171
  %174 = invoke noundef double @_ZSt3absd(double noundef %172)
          to label %175 unwind label %247

175:                                              ; preds = %173
  %176 = fcmp ogt double %174, 2.700000e+02
  br label %177

177:                                              ; preds = %175, %167
  %178 = phi i1 [ true, %167 ], [ %176, %175 ]
  %179 = load i1, ptr %29, align 1
  br i1 %179, label %180, label %181

180:                                              ; preds = %177
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  br label %181

181:                                              ; preds = %180, %177
  %182 = load i1, ptr %28, align 1
  br i1 %182, label %183, label %184

183:                                              ; preds = %181
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  br label %184

184:                                              ; preds = %183, %181
  %185 = load i1, ptr %27, align 1
  br i1 %185, label %186, label %187

186:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  br label %187

187:                                              ; preds = %186, %184
  %188 = load i1, ptr %25, align 1
  br i1 %188, label %189, label %190

189:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  br label %190

190:                                              ; preds = %189, %187
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br i1 %178, label %45, label %191, !llvm.loop !32

191:                                              ; preds = %190
  %192 = getelementptr inbounds %"class.sim::MouseInterface", ptr %30, i32 0, i32 1
  %193 = load ptr, ptr %192, align 8, !tbaa !9
  invoke void @_ZN3sim5Mouse13stopAllWheelsEv(ptr noundef nonnull align 8 dereferenceable(528) %193)
          to label %194 unwind label %123

194:                                              ; preds = %191
  %195 = getelementptr inbounds %"class.sim::MouseInterface", ptr %30, i32 0, i32 1
  %196 = load ptr, ptr %195, align 8, !tbaa !9
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3sim5Mouse8teleportERKNS_10CoordinateERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(528) %196, ptr noundef nonnull align 8 dereferenceable(40) %197, ptr noundef nonnull align 8 dereferenceable(16) %198)
          to label %199 unwind label %123

199:                                              ; preds = %194
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  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) %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #7
  ret void

200:                                              ; preds = %145
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %10, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  br label %268

204:                                              ; preds = %151, %149, %146
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %10, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %11, align 4
  br label %212

208:                                              ; preds = %152
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %10, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %11, align 4
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  br label %212

212:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  br label %268

213:                                              ; preds = %153
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %10, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %11, align 4
  br label %226

217:                                              ; preds = %157
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %10, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %11, align 4
  br label %225

221:                                              ; preds = %158
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %10, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %11, align 4
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #7
  br label %225

225:                                              ; preds = %221, %217
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #7
  br label %226

226:                                              ; preds = %225, %213
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #7
  br label %268

227:                                              ; preds = %161
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %10, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %11, align 4
  br label %267

231:                                              ; preds = %162
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %10, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %11, align 4
  br label %266

235:                                              ; preds = %165, %163
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %10, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %11, align 4
  br label %265

239:                                              ; preds = %169
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %10, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %11, align 4
  br label %258

243:                                              ; preds = %170
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %10, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %11, align 4
  br label %254

247:                                              ; preds = %173, %171
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %10, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %11, align 4
  %251 = load i1, ptr %29, align 1
  br i1 %251, label %252, label %253

252:                                              ; preds = %247
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  br label %253

253:                                              ; preds = %252, %247
  br label %254

254:                                              ; preds = %253, %243
  %255 = load i1, ptr %28, align 1
  br i1 %255, label %256, label %257

256:                                              ; preds = %254
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  br label %257

257:                                              ; preds = %256, %254
  br label %258

258:                                              ; preds = %257, %239
  %259 = load i1, ptr %27, align 1
  br i1 %259, label %260, label %261

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

261:                                              ; preds = %260, %258
  %262 = load i1, ptr %25, align 1
  br i1 %262, label %263, label %264

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

264:                                              ; preds = %263, %261
  br label %265

265:                                              ; preds = %264, %235
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  br label %266

266:                                              ; preds = %265, %231
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  br label %267

267:                                              ; preds = %266, %227
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %268

268:                                              ; preds = %267, %226, %212, %200, %144, %135, %123
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  br label %269

269:                                              ; preds = %268, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %270

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

271:                                              ; preds = %270, %109
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #7
  br label %272

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

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)) #1

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

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)) #1

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

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

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

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

declare void @_ZN3sim5Mouse28setWheelSpeedsForMoveForwardEd(ptr noundef nonnull align 8 dereferenceable(528), double noundef) #1

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

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

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

declare void @_ZN3sim5Mouse13stopAllWheelsEv(ptr noundef nonnull align 8 dereferenceable(528)) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN3sim14MouseInterfaceE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !20, i64 80, !25, i64 192, !26, i64 200, !26, i64 248}
!11 = !{!"_ZTSSt3setIcSt4lessIcESaIcEE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeIccSt9_IdentityIcESt4lessIcESaIcEE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeIccSt9_IdentityIcESt4lessIcESaIcEE13_Rb_tree_implIS3_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIcEE", !15, i64 0}
!15 = !{!"_ZTSSt4lessIcE"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !19, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN3sim27StaticMouseAlgorithmOptionsE", !21, i64 0, !21, i64 32, !21, i64 64, !23, i64 96, !23, i64 100, !24, i64 104}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !19, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!"double", !7, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !29, i64 0, !16, i64 8}
!29 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !30, i64 0}
!30 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!31 = !{!10, !24, i64 184}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.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::Polar" = type { %"class.sim::Coordinate" }
%"class.sim::Degrees" = type { %"class.sim::Angle" }
%"class.sim::Angle" = type { ptr, double }
%"class.sim::Radians" = type { %"class.sim::Angle" }
%"class.sim::Milliseconds" = type { %"class.sim::Duration" }
%"class.sim::Duration" = type { ptr, double }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.105 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.117 = 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 @_ZN3sim12MillisecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #1

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

declare void @_ZN3sim12SimUtilities5sleepERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare noundef ptr @_ZN3sim1PEv() local_unnamed_addr #1

declare noundef double @_ZN3sim5Param16minSleepDurationEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #1

declare void @_ZN3sim5Mouse8teleportERKNS_10CoordinateERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(528), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #3

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

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

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

declare noundef double @_ZNK3sim5Angle19getDegreesZeroTo360Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim14MouseInterface13moveForwardToERKNS_9CartesianERKNS_7RadiansE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(296) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.sim::Polar", align 8
  %5 = alloca %"class.sim::Cartesian", align 8
  %6 = alloca %"class.sim::Cartesian", align 8
  %7 = alloca %"class.sim::Degrees", align 8
  %8 = alloca %"class.sim::Radians", align 8
  %9 = alloca %"class.sim::Meters", align 8
  %10 = alloca %"class.sim::Meters", align 8
  %11 = alloca %"class.sim::Meters", align 8
  %12 = alloca %"class.sim::Meters", align 8
  %13 = alloca %"class.sim::Milliseconds", align 8
  %14 = alloca %"class.sim::Polar", align 8
  %15 = alloca %"class.sim::Cartesian", align 8
  %16 = alloca %"class.sim::Cartesian", align 8
  %17 = alloca %"class.sim::Radians", align 8
  %18 = alloca %"class.sim::Radians", align 8
  %19 = alloca %"class.sim::Radians", align 8
  %20 = alloca %"class.sim::Radians", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #7
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZNK3sim5Mouse21getCurrentTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %6, ptr noundef nonnull align 8 dereferenceable(528) %22)
  invoke void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %6)
          to label %23 unwind label %85

23:                                               ; preds = %3
  invoke void @_ZN3sim5PolarC1ERKNS_10CoordinateE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %24 unwind label %87

24:                                               ; preds = %23
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  invoke void @_ZNK3sim10Coordinate8getThetaEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Radians") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %25 unwind label %90

25:                                               ; preds = %24
  invoke void @_ZN3sim7DegreesC1ERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %26 unwind label %92

26:                                               ; preds = %25
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void @_ZNK3sim10Coordinate6getRhoEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %9, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %27 unwind label %95

27:                                               ; preds = %26
  %28 = load ptr, ptr %21, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %0, i64 184
  %30 = load double, ptr %29, align 8, !tbaa !30
  invoke void @_ZN3sim5Mouse28setWheelSpeedsForMoveForwardEd(ptr noundef nonnull align 8 dereferenceable(528) %28, double noundef %30)
          to label %.preheader unwind label %97

.critedge58:                                      ; preds = %126
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %.preheader.backedge

.preheader:                                       ; preds = %27, %.preheader.backedge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  invoke void @_ZNK3sim10Coordinate6getRhoEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %10, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %31 unwind label %99

31:                                               ; preds = %.preheader
  %32 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %33 unwind label %101

33:                                               ; preds = %31
  %34 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %35 unwind label %101

35:                                               ; preds = %33
  %36 = fcmp ugt double %32, %34
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br i1 %36, label %37, label %109

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.105)
          to label %39 unwind label %97

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %41 unwind label %97

41:                                               ; preds = %39
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @.str.106)
          to label %43 unwind label %97

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @.str.107)
          to label %45 unwind label %97

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %47 unwind label %97

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @.str.108)
          to label %49 unwind label %97

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %48, i32 noundef 954)
          to label %51 unwind label %97

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %97

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull @.str.109)
          to label %55 unwind label %97

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @.str.113)
          to label %57 unwind label %97

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str.114)
          to label %59 unwind label %97

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @.str.115)
          to label %61 unwind label %97

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %63 unwind label %97

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @.str.116)
          to label %65 unwind label %97

65:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  invoke void @_ZNK3sim10Coordinate6getRhoEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %66 unwind label %104

66:                                               ; preds = %65
  %67 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %68 unwind label %106

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %64, double noundef %67)
          to label %70 unwind label %106

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %72 unwind label %106

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @.str.117)
          to label %74 unwind label %106

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

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %73, double noundef %75)
          to label %78 unwind label %106

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %80 unwind label %106

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @.str.111)
          to label %82 unwind label %106

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %84 unwind label %106

84:                                               ; preds = %82
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @exit(i32 noundef 1) #8
  unreachable

85:                                               ; preds = %3
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %23
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  br label %89

89:                                               ; preds = %87, %85
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  br label %175

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

92:                                               ; preds = %25
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %94

94:                                               ; preds = %92, %90
  %.pn35 = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %174

95:                                               ; preds = %26
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %173

97:                                               ; preds = %137, %135, %63, %61, %59, %57, %55, %53, %51, %49, %47, %45, %43, %41, %39, %37, %27
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %172

99:                                               ; preds = %.preheader
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %33, %31
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %103

103:                                              ; preds = %101, %99
  %.pn37 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %172

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

106:                                              ; preds = %82, %80, %78, %76, %74, %72, %70, %68, %66
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  br label %108

108:                                              ; preds = %106, %104
  %.pn50 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %172

109:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  invoke void @_ZNK3sim10Coordinate6getRhoEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %110 unwind label %140

110:                                              ; preds = %109
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %112 = invoke noundef ptr @_ZN3sim1PEv()
          to label %113 unwind label %142

113:                                              ; preds = %110
  %114 = invoke noundef double @_ZN3sim5Param16minSleepDurationEv(ptr noundef nonnull align 8 dereferenceable(1056) %112)
          to label %115 unwind label %142

115:                                              ; preds = %113
  invoke void @_ZN3sim12MillisecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %114)
          to label %116 unwind label %142

116:                                              ; preds = %115
  invoke void @_ZN3sim12SimUtilities5sleepERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %117 unwind label %144

117:                                              ; preds = %116
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #7
  %118 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZNK3sim5Mouse21getCurrentTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %16, ptr noundef nonnull align 8 dereferenceable(528) %118)
          to label %119 unwind label %147

119:                                              ; preds = %117
  invoke void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %120 unwind label %149

120:                                              ; preds = %119
  invoke void @_ZN3sim5PolarC1ERKNS_10CoordinateE(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %121 unwind label %151

121:                                              ; preds = %120
  %122 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3sim5PolaraSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %14) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  invoke void @_ZNK3sim10Coordinate8getThetaEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Radians") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %123 unwind label %155

123:                                              ; preds = %121
  invoke void @_ZNK3sim7RadiansmiERKNS_5AngleE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Radians") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %124 unwind label %157

124:                                              ; preds = %123
  %125 = invoke noundef double @_ZNK3sim5Angle19getDegreesZeroTo360Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %126 unwind label %159

126:                                              ; preds = %124
  %127 = call noundef double @_ZSt3absd(double noundef %125)
  %128 = fcmp uge double %127, 9.000000e+01
  br i1 %128, label %129, label %.critedge58

129:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  invoke void @_ZNK3sim10Coordinate8getThetaEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Radians") align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %130 unwind label %161

130:                                              ; preds = %129
  invoke void @_ZNK3sim7RadiansmiERKNS_5AngleE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Radians") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %131 unwind label %163

131:                                              ; preds = %130
  %132 = invoke noundef double @_ZNK3sim5Angle19getDegreesZeroTo360Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %.critedge unwind label %165

.critedge:                                        ; preds = %131
  %133 = call noundef double @_ZSt3absd(double noundef %132)
  %134 = fcmp ogt double %133, 2.700000e+02
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br i1 %134, label %.preheader.backedge, label %135

.preheader.backedge:                              ; preds = %.critedge, %.critedge58
  br label %.preheader, !llvm.loop !31

135:                                              ; preds = %.critedge
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN3sim5Mouse13stopAllWheelsEv(ptr noundef nonnull align 8 dereferenceable(528) %136)
          to label %137 unwind label %97

137:                                              ; preds = %135
  %138 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN3sim5Mouse8teleportERKNS_10CoordinateERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(528) %138, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %139 unwind label %97

139:                                              ; preds = %137
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  ret void

140:                                              ; preds = %109
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %172

142:                                              ; preds = %115, %113, %110
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %146

144:                                              ; preds = %116
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br label %146

146:                                              ; preds = %144, %142
  %.pn39 = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %172

147:                                              ; preds = %117
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %154

149:                                              ; preds = %119
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %153

151:                                              ; preds = %120
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  br label %153

153:                                              ; preds = %151, %149
  %.pn41 = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #7
  br label %154

154:                                              ; preds = %153, %147
  %.pn41.pn = phi { ptr, i32 } [ %.pn41, %153 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #7
  br label %172

155:                                              ; preds = %121
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %171

157:                                              ; preds = %123
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %170

159:                                              ; preds = %124
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %169

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

163:                                              ; preds = %130
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %167

165:                                              ; preds = %131
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  br label %167

167:                                              ; preds = %163, %165
  %.pn44 = phi { ptr, i32 } [ %166, %165 ], [ %164, %163 ]
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  br label %168

168:                                              ; preds = %161, %167
  %.pn44.pn = phi { ptr, i32 } [ %.pn44, %167 ], [ %162, %161 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  br label %169

169:                                              ; preds = %168, %159
  %.pn44.pn.pn = phi { ptr, i32 } [ %.pn44.pn, %168 ], [ %160, %159 ]
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  br label %170

170:                                              ; preds = %169, %157
  %.pn44.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn, %169 ], [ %158, %157 ]
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  br label %171

171:                                              ; preds = %170, %155
  %.pn44.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn.pn, %170 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %172

172:                                              ; preds = %171, %154, %146, %140, %108, %103, %97
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %108 ], [ %98, %97 ], [ %.pn44.pn.pn.pn.pn, %171 ], [ %.pn41.pn, %154 ], [ %.pn39, %146 ], [ %141, %140 ], [ %.pn37, %103 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %173

173:                                              ; preds = %172, %95
  %.pn50.pn.pn = phi { ptr, i32 } [ %.pn50.pn, %172 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %174

174:                                              ; preds = %173, %94
  %.pn50.pn.pn.pn = phi { ptr, i32 } [ %.pn50.pn.pn, %173 ], [ %.pn35, %94 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  br label %175

175:                                              ; preds = %174, %89
  %.pn50.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn50.pn.pn.pn, %174 ], [ %.pn, %89 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn50.pn.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

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 @_ZN3sim5PolarC1ERKNS_10CoordinateE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1

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

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

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

declare void @_ZN3sim5Mouse28setWheelSpeedsForMoveForwardEd(ptr noundef nonnull align 8 dereferenceable(528), double noundef) local_unnamed_addr #1

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

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

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

declare void @_ZN3sim5Mouse13stopAllWheelsEv(ptr noundef nonnull align 8 dereferenceable(528)) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn 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 #7 = { nounwind }
attributes #8 = { noreturn 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, !7, i64 8}
!6 = !{!"_ZTSN3sim14MouseInterfaceE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !19, i64 80, !24, i64 192, !25, i64 200, !25, i64 248}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt3setIcSt4lessIcESaIcEE", !11, i64 0}
!11 = !{!"_ZTSSt8_Rb_treeIccSt9_IdentityIcESt4lessIcESaIcEE", !12, i64 0}
!12 = !{!"_ZTSNSt8_Rb_treeIccSt9_IdentityIcESt4lessIcESaIcEE13_Rb_tree_implIS3_Lb1EEE", !13, i64 0, !15, i64 8}
!13 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIcEE", !14, i64 0}
!14 = !{!"_ZTSSt4lessIcE"}
!15 = !{!"_ZTSSt15_Rb_tree_header", !16, i64 0, !18, i64 32}
!16 = !{!"_ZTSSt18_Rb_tree_node_base", !17, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!17 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = !{!"_ZTSN3sim27StaticMouseAlgorithmOptionsE", !20, i64 0, !20, i64 32, !20, i64 64, !22, i64 96, !22, i64 100, !23, i64 104}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !18, i64 8, !8, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!22 = !{!"int", !8, i64 0}
!23 = !{!"double", !8, i64 0}
!24 = !{!"bool", !8, i64 0}
!25 = !{!"_ZTSSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !28, i64 0, !15, i64 8}
!28 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !29, i64 0}
!29 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!30 = !{!6, !23, i64 184}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


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