; 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::Degrees" = type { %"class.sim::Angle" }
%"class.sim::Angle" = type { ptr, double }
%"class.sim::Radians" = type { %"class.sim::Angle" }

@__dso_handle = external hidden global i8
@_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.114 = external hidden unnamed_addr constant [5 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
@_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound = external hidden global %"class.sim::Degrees", align 8
@_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound = external hidden global i64, align 8
@_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound = external hidden global %"class.sim::Degrees", align 8
@_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound = external hidden global i64, align 8
@_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle = external hidden global %"class.sim::Degrees", align 8
@_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle = external hidden global i64, align 8
@.str.118 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

; 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) #3

; 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)) #3

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

; 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: mustprogress uwtable
define dso_local void @_ZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_(ptr dead_on_unwind noalias writable sret(%"class.sim::Radians") align 8 %0, ptr noundef nonnull align 8 dereferenceable(296) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i1, align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %12 = load ptr, ptr %6, align 8
  %13 = load atomic i8, ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound acquire, align 8
  %14 = icmp eq i8 %13, 0
  br i1 %14, label %15, label %21, !prof !9

15:                                               ; preds = %4
  %16 = call i32 @__cxa_guard_acquire(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound) #0
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %21

18:                                               ; preds = %15
  invoke void @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound, double noundef -1.800000e+02)
          to label %19 unwind label %52

19:                                               ; preds = %18
  %20 = call i32 @__cxa_atexit(ptr @_ZN3sim5AngleD2Ev, ptr @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound) #0
  br label %21

21:                                               ; preds = %19, %15, %4
  %22 = load atomic i8, ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound acquire, align 8
  %23 = icmp eq i8 %22, 0
  br i1 %23, label %24, label %30, !prof !9

24:                                               ; preds = %21
  %25 = call i32 @__cxa_guard_acquire(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound) #0
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %30

27:                                               ; preds = %24
  invoke void @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound, double noundef 1.800000e+02)
          to label %28 unwind label %56

28:                                               ; preds = %27
  %29 = call i32 @__cxa_atexit(ptr @_ZN3sim5AngleD2Ev, ptr @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound) #0
  br label %30

30:                                               ; preds = %28, %24, %21
  %31 = load atomic i8, ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle acquire, align 8
  %32 = icmp eq i8 %31, 0
  br i1 %32, label %33, label %39, !prof !9

33:                                               ; preds = %30
  %34 = call i32 @__cxa_guard_acquire(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle) #0
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  invoke void @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle, double noundef 3.600000e+02)
          to label %37 unwind label %60

37:                                               ; preds = %36
  %38 = call i32 @__cxa_atexit(ptr @_ZN3sim5AngleD2Ev, ptr @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle) #0
  br label %39

39:                                               ; preds = %37, %33, %30
  store i1 false, ptr %11, align 1
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call noundef double @_ZNK3sim5Angle19getRadiansZeroTo2piEv(ptr noundef nonnull align 8 dereferenceable(16) %40)
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = call noundef double @_ZNK3sim5Angle19getRadiansZeroTo2piEv(ptr noundef nonnull align 8 dereferenceable(16) %42)
  %44 = fsub double %41, %43
  call void @_ZN3sim7RadiansC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %0, double noundef %44)
  %45 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %46 unwind label %64

46:                                               ; preds = %39
  %47 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound)
          to label %48 unwind label %64

48:                                               ; preds = %46
  %49 = fcmp olt double %45, %47
  br i1 %49, label %50, label %68

50:                                               ; preds = %48
  invoke void @_ZN3sim7RadianspLERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle)
          to label %51 unwind label %64

51:                                               ; preds = %50
  br label %68

52:                                               ; preds = %18
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound) #0
  br label %186

56:                                               ; preds = %27
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound) #0
  br label %186

60:                                               ; preds = %36
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle) #0
  br label %186

64:                                               ; preds = %179, %177, %175, %173, %171, %169, %167, %165, %163, %161, %159, %157, %155, %153, %151, %149, %147, %145, %143, %141, %139, %137, %135, %131, %129, %126, %124, %122, %120, %118, %116, %114, %112, %110, %108, %106, %104, %102, %100, %98, %96, %94, %92, %90, %88, %86, %84, %82, %78, %76, %74, %70, %68, %50, %46, %39
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #0
  br label %186

68:                                               ; preds = %51, %48
  %69 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound)
          to label %70 unwind label %64

70:                                               ; preds = %68
  %71 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %72 unwind label %64

72:                                               ; preds = %70
  %73 = fcmp ole double %69, %71
  br i1 %73, label %74, label %76

74:                                               ; preds = %72
  invoke void @_ZN3sim7RadiansmIERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle)
          to label %75 unwind label %64

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75, %72
  %77 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound)
          to label %78 unwind label %64

78:                                               ; preds = %76
  %79 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %80 unwind label %64

80:                                               ; preds = %78
  %81 = fcmp ole double %77, %79
  br i1 %81, label %129, label %82

82:                                               ; preds = %80
  %83 = 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 %84 unwind label %64

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

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @.str.106)
          to label %88 unwind label %64

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.107)
          to label %90 unwind label %64

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %92 unwind label %64

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef @.str.108)
          to label %94 unwind label %64

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %93, i32 noundef 1016)
          to label %96 unwind label %64

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

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @.str.109)
          to label %100 unwind label %64

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef @.str.118)
          to label %102 unwind label %64

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

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef @.str.119)
          to label %106 unwind label %64

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %108 unwind label %64

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef @.str.116)
          to label %110 unwind label %64

110:                                              ; preds = %108
  %111 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound)
          to label %112 unwind label %64

112:                                              ; preds = %110
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %109, double noundef %111)
          to label %114 unwind label %64

114:                                              ; preds = %112
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %116 unwind label %64

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef @.str.117)
          to label %118 unwind label %64

118:                                              ; preds = %116
  %119 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %120 unwind label %64

120:                                              ; preds = %118
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %117, double noundef %119)
          to label %122 unwind label %64

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %124 unwind label %64

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @.str.111)
          to label %126 unwind label %64

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %128 unwind label %64

128:                                              ; preds = %126
  call void @exit(i32 noundef 1) #6
  unreachable

129:                                              ; preds = %80
  %130 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %131 unwind label %64

131:                                              ; preds = %129
  %132 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound)
          to label %133 unwind label %64

133:                                              ; preds = %131
  %134 = fcmp olt double %130, %132
  br i1 %134, label %182, label %135

135:                                              ; preds = %133
  %136 = 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 %137 unwind label %64

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %139 unwind label %64

139:                                              ; preds = %137
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef @.str.106)
          to label %141 unwind label %64

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @.str.107)
          to label %143 unwind label %64

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %145 unwind label %64

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef @.str.108)
          to label %147 unwind label %64

147:                                              ; preds = %145
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %146, i32 noundef 1017)
          to label %149 unwind label %64

149:                                              ; preds = %147
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %151 unwind label %64

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

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef @.str.119)
          to label %155 unwind label %64

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

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

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %161 unwind label %64

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef @.str.116)
          to label %163 unwind label %64

163:                                              ; preds = %161
  %164 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %165 unwind label %64

165:                                              ; preds = %163
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %162, double noundef %164)
          to label %167 unwind label %64

167:                                              ; preds = %165
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %169 unwind label %64

169:                                              ; preds = %167
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @.str.117)
          to label %171 unwind label %64

171:                                              ; preds = %169
  %172 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound)
          to label %173 unwind label %64

173:                                              ; preds = %171
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %170, double noundef %172)
          to label %175 unwind label %64

175:                                              ; preds = %173
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %177 unwind label %64

177:                                              ; preds = %175
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef @.str.111)
          to label %179 unwind label %64

179:                                              ; preds = %177
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %181 unwind label %64

181:                                              ; preds = %179
  call void @exit(i32 noundef 1) #6
  unreachable

182:                                              ; preds = %133
  store i1 true, ptr %11, align 1
  %183 = load i1, ptr %11, align 1
  br i1 %183, label %185, label %184

184:                                              ; preds = %182
  call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #0
  br label %185

185:                                              ; preds = %184, %182
  ret void

186:                                              ; preds = %64, %60, %56, %52
  %187 = load ptr, ptr %9, align 8
  %188 = load i32, ptr %10, align 4
  %189 = insertvalue { ptr, i32 } poison, ptr %187, 0
  %190 = insertvalue { ptr, i32 } %189, i32 %188, 1
  resume { ptr, i32 } %190
}

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

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

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

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

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

attributes #0 = { nounwind }
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 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 = { 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 #6 = { 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 = !{!"branch_weights", i32 1, i32 1048575}


; 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::Degrees" = type { %"class.sim::Angle" }
%"class.sim::Angle" = type { ptr, double }
%"class.sim::Radians" = type { %"class.sim::Angle" }

@__dso_handle = external hidden global i8
@_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.114 = external hidden unnamed_addr constant [5 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
@_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound = external hidden global %"class.sim::Degrees", align 8
@_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound = external hidden global i64, align 8
@_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound = external hidden global %"class.sim::Degrees", align 8
@_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound = external hidden global i64, align 8
@_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle = external hidden global %"class.sim::Degrees", align 8
@_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle = external hidden global i64, align 8
@.str.118 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

; 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 #3

; 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)) #3

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 #5

; 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: mustprogress uwtable
define dso_local void @_ZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_(ptr dead_on_unwind noalias writable sret(%"class.sim::Radians") align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(296) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = load atomic i8, ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound acquire, align 8
  %6 = icmp eq i8 %5, 0
  br i1 %6, label %7, label %12, !prof !5

7:                                                ; preds = %4
  %8 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound) #6
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %12, label %9

9:                                                ; preds = %7
  invoke void @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound, double noundef -1.800000e+02)
          to label %10 unwind label %38

10:                                               ; preds = %9
  %11 = tail call i32 @__cxa_atexit(ptr nonnull @_ZN3sim5AngleD2Ev, ptr nonnull @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound, ptr nonnull @__dso_handle) #6
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound) #6
  br label %12

12:                                               ; preds = %10, %7, %4
  %13 = load atomic i8, ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound acquire, align 8
  %14 = icmp eq i8 %13, 0
  br i1 %14, label %15, label %20, !prof !5

15:                                               ; preds = %12
  %16 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound) #6
  %.not6 = icmp eq i32 %16, 0
  br i1 %.not6, label %20, label %17

17:                                               ; preds = %15
  invoke void @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound, double noundef 1.800000e+02)
          to label %18 unwind label %40

18:                                               ; preds = %17
  %19 = tail call i32 @__cxa_atexit(ptr nonnull @_ZN3sim5AngleD2Ev, ptr nonnull @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound, ptr nonnull @__dso_handle) #6
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound) #6
  br label %20

20:                                               ; preds = %18, %15, %12
  %21 = load atomic i8, ptr @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle acquire, align 8
  %22 = icmp eq i8 %21, 0
  br i1 %22, label %23, label %28, !prof !5

23:                                               ; preds = %20
  %24 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle) #6
  %.not7 = icmp eq i32 %24, 0
  br i1 %.not7, label %28, label %25

25:                                               ; preds = %23
  invoke void @_ZN3sim7DegreesC1Ed(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle, double noundef 3.600000e+02)
          to label %26 unwind label %42

26:                                               ; preds = %25
  %27 = tail call i32 @__cxa_atexit(ptr nonnull @_ZN3sim5AngleD2Ev, ptr nonnull @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle, ptr nonnull @__dso_handle) #6
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle) #6
  br label %28

28:                                               ; preds = %26, %23, %20
  %29 = tail call noundef double @_ZNK3sim5Angle19getRadiansZeroTo2piEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %30 = tail call noundef double @_ZNK3sim5Angle19getRadiansZeroTo2piEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %31 = fsub double %29, %30
  tail call void @_ZN3sim7RadiansC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %0, double noundef %31)
  %32 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %33 unwind label %44

33:                                               ; preds = %28
  %34 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound)
          to label %35 unwind label %44

35:                                               ; preds = %33
  %36 = fcmp olt double %32, %34
  br i1 %36, label %37, label %46

37:                                               ; preds = %35
  invoke void @_ZN3sim7RadianspLERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle)
          to label %46 unwind label %44

38:                                               ; preds = %9
  %39 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound) #6
  br label %160

40:                                               ; preds = %17
  %41 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound) #6
  br label %160

42:                                               ; preds = %25
  %43 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle) #6
  br label %160

44:                                               ; preds = %156, %154, %152, %150, %148, %146, %144, %142, %140, %138, %136, %134, %132, %130, %128, %126, %124, %122, %120, %118, %116, %114, %112, %108, %106, %103, %101, %99, %97, %95, %93, %91, %89, %87, %85, %83, %81, %79, %77, %75, %73, %71, %69, %67, %65, %63, %61, %59, %55, %53, %52, %48, %46, %37, %33, %28
  %45 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3sim5AngleD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  br label %160

46:                                               ; preds = %37, %35
  %47 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound)
          to label %48 unwind label %44

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

50:                                               ; preds = %48
  %51 = fcmp ugt double %47, %49
  br i1 %51, label %53, label %52

52:                                               ; preds = %50
  invoke void @_ZN3sim7RadiansmIERKNS_5AngleE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10fullCircle)
          to label %53 unwind label %44

53:                                               ; preds = %52, %50
  %54 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound)
          to label %55 unwind label %44

55:                                               ; preds = %53
  %56 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %57 unwind label %44

57:                                               ; preds = %55
  %58 = fcmp ugt double %54, %56
  br i1 %58, label %59, label %106

59:                                               ; preds = %57
  %60 = 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 %61 unwind label %44

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 %44

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.106)
          to label %65 unwind label %44

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @.str.107)
          to label %67 unwind label %44

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

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 nonnull @.str.108)
          to label %71 unwind label %44

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %70, i32 noundef 1016)
          to label %73 unwind label %44

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %75 unwind label %44

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 nonnull @.str.109)
          to label %77 unwind label %44

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @.str.118)
          to label %79 unwind label %44

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 nonnull @.str.114)
          to label %81 unwind label %44

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

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

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @.str.116)
          to label %87 unwind label %44

87:                                               ; preds = %85
  %88 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10lowerBound)
          to label %89 unwind label %44

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %86, double noundef %88)
          to label %91 unwind label %44

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %93 unwind label %44

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @.str.117)
          to label %95 unwind label %44

95:                                               ; preds = %93
  %96 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %97 unwind label %44

97:                                               ; preds = %95
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %94, double noundef %96)
          to label %99 unwind label %44

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

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

103:                                              ; preds = %101
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %105 unwind label %44

105:                                              ; preds = %103
  tail call void @exit(i32 noundef 1) #7
  unreachable

106:                                              ; preds = %57
  %107 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %108 unwind label %44

108:                                              ; preds = %106
  %109 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound)
          to label %110 unwind label %44

110:                                              ; preds = %108
  %111 = fcmp olt double %107, %109
  br i1 %111, label %159, label %112

112:                                              ; preds = %110
  %113 = 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 %114 unwind label %44

114:                                              ; preds = %112
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %116 unwind label %44

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @.str.106)
          to label %118 unwind label %44

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @.str.107)
          to label %120 unwind label %44

120:                                              ; preds = %118
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %122 unwind label %44

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull @.str.108)
          to label %124 unwind label %44

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %123, i32 noundef 1017)
          to label %126 unwind label %44

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %128 unwind label %44

128:                                              ; preds = %126
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @.str.109)
          to label %130 unwind label %44

130:                                              ; preds = %128
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull @.str.119)
          to label %132 unwind label %44

132:                                              ; preds = %130
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef nonnull @.str.120)
          to label %134 unwind label %44

134:                                              ; preds = %132
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef nonnull @.str.121)
          to label %136 unwind label %44

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %138 unwind label %44

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull @.str.116)
          to label %140 unwind label %44

140:                                              ; preds = %138
  %141 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %142 unwind label %44

142:                                              ; preds = %140
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %139, double noundef %141)
          to label %144 unwind label %44

144:                                              ; preds = %142
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %146 unwind label %44

146:                                              ; preds = %144
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef nonnull @.str.117)
          to label %148 unwind label %44

148:                                              ; preds = %146
  %149 = invoke noundef double @_ZNK3sim5Angle20getRadiansNotBoundedEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZNK3sim14MouseInterface16getRotationDeltaERKNS_7RadiansES3_E10upperBound)
          to label %150 unwind label %44

150:                                              ; preds = %148
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %147, double noundef %149)
          to label %152 unwind label %44

152:                                              ; preds = %150
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %154 unwind label %44

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef nonnull @.str.111)
          to label %156 unwind label %44

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %158 unwind label %44

158:                                              ; preds = %156
  tail call void @exit(i32 noundef 1) #7
  unreachable

159:                                              ; preds = %110
  ret void

160:                                              ; preds = %44, %42, %40, %38
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ], [ %41, %40 ], [ %39, %38 ]
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

attributes #0 = { nofree nounwind }
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 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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"branch_weights", i32 1, i32 1048575}


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