; LLVM IR from mackorone/mms :: old/v2/src/sim/World.ll (ZN3sim5World8simulateEv)

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

%"class.sim::Seconds" = type { %"class.sim::Duration" }
%"class.sim::Duration" = type { ptr, double }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.sim::Milliseconds" = type { %"class.sim::Duration" }
%"struct.std::pair.189" = type { i32, i32 }
%"struct.std::pair.196" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.sim::World" = type <{ ptr, ptr, %"struct.sim::StaticMouseAlgorithmOptions", %"class.sim::Seconds", %"class.sim::Seconds", %"class.std::set", i32, [4 x i8] }>
%"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" = type { %"class.std::_Rb_tree.143" }
%"class.std::_Rb_tree.143" = 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" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@__dso_handle = external hidden global i8
@_ZZN3sim5World8simulateEvE17realTimePerUpdate = external hidden global %"class.sim::Seconds", align 8
@_ZGVZN3sim5World8simulateEvE17realTimePerUpdate = external hidden global i64, align 8

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

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

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

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

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

declare noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare noundef ptr @_ZN3sim1TEv() #3

declare void @_ZN3sim4Time14elapsedSimTimeEv(ptr dead_on_unwind writable sret(%"class.sim::Seconds") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #3

declare void @_ZNK3sim7SecondsmiERKNS_8DurationE(ptr dead_on_unwind writable sret(%"class.sim::Seconds") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim5World8simulateEv(ptr noundef nonnull align 8 dereferenceable(212) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::thread", align 8
  %4 = alloca { i64, i64 }, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.sim::Milliseconds", align 8
  %11 = alloca %"class.sim::Seconds", align 8
  %12 = alloca %"struct.std::pair.189", align 4
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca %"struct.std::pair.189", align 4
  %16 = alloca %"struct.std::pair.196", align 8
  %17 = alloca %"class.sim::Seconds", align 8
  %18 = alloca %"class.sim::Seconds", align 8
  %19 = alloca %"class.sim::Seconds", align 8
  %20 = alloca %"class.sim::Seconds", align 8
  %21 = alloca %"class.sim::Seconds", align 8
  %22 = alloca %"class.sim::Seconds", align 8
  %23 = alloca %"class.sim::Seconds", align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.sim::Seconds", align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %29 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #0
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #0
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN3sim5World14checkCollisionEv to i64), i64 0 }, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #0
  store ptr %29, ptr %5, align 8, !tbaa !5
  call void @_ZNSt6threadC2IMN3sim5WorldEFvvEJPS2_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #0
  br label %30

30:                                               ; preds = %322, %320, %1
  br label %31

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #0
  %32 = invoke noundef double @_ZN3sim12SimUtilities19getHighResTimestampEv()
          to label %33 unwind label %40

33:                                               ; preds = %31
  store double %32, ptr %6, align 8, !tbaa !10
  %34 = invoke noundef ptr @_ZN3sim1SEv()
          to label %35 unwind label %40

35:                                               ; preds = %33
  %36 = invoke noundef zeroext i1 @_ZN3sim5State7crashedEv(ptr noundef nonnull align 8 dereferenceable(168) %34)
          to label %37 unwind label %40

37:                                               ; preds = %35
  br i1 %36, label %38, label %44

38:                                               ; preds = %37
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %39 unwind label %40

39:                                               ; preds = %38
  store i32 1, ptr %9, align 4
  br label %320

40:                                               ; preds = %46, %44, %38, %35, %33, %31
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %7, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %8, align 4
  br label %339

44:                                               ; preds = %37
  %45 = invoke noundef ptr @_ZN3sim1SEv()
          to label %46 unwind label %40

46:                                               ; preds = %44
  %47 = invoke noundef zeroext i1 @_ZN3sim5State6pausedEv(ptr noundef nonnull align 8 dereferenceable(168) %45)
          to label %48 unwind label %40

48:                                               ; preds = %46
  br i1 %47, label %49, label %65

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #0
  %50 = invoke noundef ptr @_ZN3sim1PEv()
          to label %51 unwind label %56

51:                                               ; preds = %49
  %52 = invoke noundef double @_ZN3sim5Param16minSleepDurationEv(ptr noundef nonnull align 8 dereferenceable(1056) %50)
          to label %53 unwind label %56

53:                                               ; preds = %51
  invoke void @_ZN3sim12MillisecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %52)
          to label %54 unwind label %56

54:                                               ; preds = %53
  invoke void @_ZN3sim12SimUtilities5sleepERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %55 unwind label %60

55:                                               ; preds = %54
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #0
  store i32 2, ptr %9, align 4
  br label %320, !llvm.loop !12

56:                                               ; preds = %53, %51, %49
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %7, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %8, align 4
  br label %64

60:                                               ; preds = %54
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %7, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %8, align 4
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #0
  br label %64

64:                                               ; preds = %60, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #0
  br label %339

65:                                               ; preds = %48
  %66 = load atomic i8, ptr @_ZGVZN3sim5World8simulateEvE17realTimePerUpdate acquire, align 8
  %67 = icmp eq i8 %66, 0
  br i1 %67, label %68, label %80, !prof !14

68:                                               ; preds = %65
  %69 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN3sim5World8simulateEvE17realTimePerUpdate) #0
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %80

71:                                               ; preds = %68
  %72 = invoke noundef ptr @_ZN3sim1PEv()
          to label %73 unwind label %135

73:                                               ; preds = %71
  %74 = invoke noundef i32 @_ZN3sim5Param23mousePositionUpdateRateEv(ptr noundef nonnull align 8 dereferenceable(1056) %72)
          to label %75 unwind label %135

75:                                               ; preds = %73
  %76 = sitofp i32 %74 to double
  %77 = fdiv double 1.000000e+00, %76
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN3sim5World8simulateEvE17realTimePerUpdate, double noundef %77)
          to label %78 unwind label %135

78:                                               ; preds = %75
  %79 = call i32 @__cxa_atexit(ptr @_ZN3sim8DurationD2Ev, ptr @_ZZN3sim5World8simulateEvE17realTimePerUpdate, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN3sim5World8simulateEvE17realTimePerUpdate) #0
  br label %80

80:                                               ; preds = %78, %68, %65
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #0
  %81 = invoke noundef ptr @_ZN3sim1SEv()
          to label %82 unwind label %139

82:                                               ; preds = %80
  %83 = invoke noundef double @_ZN3sim5State8simSpeedEv(ptr noundef nonnull align 8 dereferenceable(168) %81)
          to label %84 unwind label %139

84:                                               ; preds = %82
  invoke void @_ZNK3sim7SecondsmlEd(ptr dead_on_unwind writable sret(%"class.sim::Seconds") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) @_ZZN3sim5World8simulateEvE17realTimePerUpdate, double noundef %83)
          to label %85 unwind label %139

85:                                               ; preds = %84
  %86 = invoke noundef ptr @_ZN3sim1TEv()
          to label %87 unwind label %143

87:                                               ; preds = %85
  invoke void @_ZN3sim4Time23incrementElapsedSimTimeERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(32) %86, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %88 unwind label %143

88:                                               ; preds = %87
  %89 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  invoke void @_ZN3sim5Mouse6updateERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(528) %90, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %91 unwind label %143

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #0
  %92 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !15
  %94 = invoke i64 @_ZNK3sim5Mouse32getCurrentDiscretizedTranslationEv(ptr noundef nonnull align 8 dereferenceable(528) %93)
          to label %95 unwind label %147

95:                                               ; preds = %91
  store i64 %94, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #0
  %96 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !32
  %98 = getelementptr inbounds %"struct.std::pair.189", ptr %12, i32 0, i32 0
  %99 = load i32, ptr %98, align 4, !tbaa !33
  %100 = getelementptr inbounds %"struct.std::pair.189", ptr %12, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !35
  %102 = invoke noundef ptr @_ZNK3sim4Maze7getTileEii(ptr noundef nonnull align 8 dereferenceable(26) %97, i32 noundef %99, i32 noundef %101)
          to label %103 unwind label %151

103:                                              ; preds = %95
  store ptr %102, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #0
  %104 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %12, i64 8, i1 false)
  %105 = load i64, ptr %15, align 4
  %106 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsISt4pairIiiEEEbRKSt3setIT_St4lessIS5_ESaIS5_EES5_(ptr noundef nonnull align 8 dereferenceable(48) %104, i64 %105)
          to label %107 unwind label %155

107:                                              ; preds = %103
  %108 = xor i1 %106, true
  %109 = zext i1 %108 to i8
  store i8 %109, ptr %14, align 1, !tbaa !36
  %110 = load i8, ptr %14, align 1, !tbaa !36, !range !38, !noundef !39
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %160

112:                                              ; preds = %107
  %113 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 5
  %114 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %113, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %115 unwind label %155

115:                                              ; preds = %112
  %116 = getelementptr inbounds { ptr, i8 }, ptr %16, i32 0, i32 0
  %117 = extractvalue { ptr, i8 } %114, 0
  store ptr %117, ptr %116, align 8
  %118 = getelementptr inbounds { ptr, i8 }, ptr %16, i32 0, i32 1
  %119 = extractvalue { ptr, i8 } %114, 1
  store i8 %119, ptr %118, align 8
  %120 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 6
  %121 = load i32, ptr %120, align 8, !tbaa !40
  %122 = icmp eq i32 %121, -1
  br i1 %122, label %130, label %123

123:                                              ; preds = %115
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = invoke noundef i32 @_ZNK3sim4Tile11getDistanceEv(ptr noundef nonnull align 8 dereferenceable(232) %124)
          to label %126 unwind label %155

126:                                              ; preds = %123
  %127 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 6
  %128 = load i32, ptr %127, align 8, !tbaa !40
  %129 = icmp slt i32 %125, %128
  br i1 %129, label %130, label %159

130:                                              ; preds = %126, %115
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = invoke noundef i32 @_ZNK3sim4Tile11getDistanceEv(ptr noundef nonnull align 8 dereferenceable(232) %131)
          to label %133 unwind label %155

133:                                              ; preds = %130
  %134 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 6
  store i32 %132, ptr %134, align 8, !tbaa !40
  br label %159

135:                                              ; preds = %75, %73, %71
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %7, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %8, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZN3sim5World8simulateEvE17realTimePerUpdate) #0
  br label %339

139:                                              ; preds = %84, %82, %80
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %7, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %8, align 4
  br label %338

143:                                              ; preds = %88, %87, %85
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  br label %337

147:                                              ; preds = %91
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %7, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %8, align 4
  br label %336

151:                                              ; preds = %95
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %7, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %8, align 4
  br label %335

155:                                              ; preds = %275, %273, %264, %216, %130, %123, %112, %103
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %7, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %8, align 4
  br label %334

159:                                              ; preds = %133, %126
  br label %160

160:                                              ; preds = %159, %107
  %161 = getelementptr inbounds %"struct.std::pair.189", ptr %12, i32 0, i32 0
  %162 = load i32, ptr %161, align 4, !tbaa !33
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %191

164:                                              ; preds = %160
  %165 = getelementptr inbounds %"struct.std::pair.189", ptr %12, i32 0, i32 1
  %166 = load i32, ptr %165, align 4, !tbaa !35
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %168, label %191

168:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #0
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 0.000000e+00)
          to label %169 unwind label %177

169:                                              ; preds = %168
  %170 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 4
  %171 = invoke noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %170)
          to label %172 unwind label %181

172:                                              ; preds = %169
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #0
  br i1 %171, label %173, label %190

173:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #0
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef -1.000000e+00)
          to label %174 unwind label %186

174:                                              ; preds = %173
  %175 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 4
  %176 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim7SecondsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %175, ptr noundef nonnull align 8 dereferenceable(16) %18) #0
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #0
  br label %190

177:                                              ; preds = %168
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %7, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %8, align 4
  br label %185

181:                                              ; preds = %169
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %7, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %8, align 4
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #0
  br label %185

185:                                              ; preds = %181, %177
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #0
  br label %334

186:                                              ; preds = %173
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %7, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #0
  br label %334

190:                                              ; preds = %174, %172
  br label %216

191:                                              ; preds = %164, %160
  %192 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #0
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef 0.000000e+00)
          to label %193 unwind label %202

193:                                              ; preds = %191
  %194 = invoke noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %192, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %195 unwind label %206

195:                                              ; preds = %193
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #0
  br i1 %194, label %196, label %215

196:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #0
  %197 = invoke noundef ptr @_ZN3sim1TEv()
          to label %198 unwind label %211

198:                                              ; preds = %196
  invoke void @_ZN3sim4Time14elapsedSimTimeEv(ptr dead_on_unwind writable sret(%"class.sim::Seconds") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %197)
          to label %199 unwind label %211

199:                                              ; preds = %198
  %200 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 4
  %201 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim7SecondsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %200, ptr noundef nonnull align 8 dereferenceable(16) %20) #0
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #0
  br label %215

202:                                              ; preds = %191
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %7, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %8, align 4
  br label %210

206:                                              ; preds = %193
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %7, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %8, align 4
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #0
  br label %210

210:                                              ; preds = %206, %202
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #0
  br label %334

211:                                              ; preds = %198, %196
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %7, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #0
  br label %334

215:                                              ; preds = %199, %195
  br label %216

216:                                              ; preds = %215, %190
  %217 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !32
  %219 = getelementptr inbounds %"struct.std::pair.189", ptr %12, i32 0, i32 0
  %220 = load i32, ptr %219, align 4, !tbaa !33
  %221 = getelementptr inbounds %"struct.std::pair.189", ptr %12, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !35
  %223 = invoke noundef zeroext i1 @_ZNK3sim4Maze12isCenterTileEii(ptr noundef nonnull align 8 dereferenceable(26) %218, i32 noundef %220, i32 noundef %222)
          to label %224 unwind label %155

224:                                              ; preds = %216
  br i1 %223, label %225, label %264

225:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #0
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #0
  %226 = invoke noundef ptr @_ZN3sim1TEv()
          to label %227 unwind label %244

227:                                              ; preds = %225
  invoke void @_ZN3sim4Time14elapsedSimTimeEv(ptr dead_on_unwind writable sret(%"class.sim::Seconds") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %226)
          to label %228 unwind label %244

228:                                              ; preds = %227
  %229 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 4
  invoke void @_ZNK3sim7SecondsmiERKNS_8DurationE(ptr dead_on_unwind writable sret(%"class.sim::Seconds") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %229)
          to label %230 unwind label %248

230:                                              ; preds = %228
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #0
  %231 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #0
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef 0.000000e+00)
          to label %232 unwind label %253

232:                                              ; preds = %230
  %233 = invoke noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %231, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %234 unwind label %257

234:                                              ; preds = %232
  br i1 %233, label %239, label %235

235:                                              ; preds = %234
  %236 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 3
  %237 = invoke noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %236)
          to label %238 unwind label %257

238:                                              ; preds = %235
  br label %239

239:                                              ; preds = %238, %234
  %240 = phi i1 [ true, %234 ], [ %237, %238 ]
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #0
  br i1 %240, label %241, label %262

241:                                              ; preds = %239
  %242 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 3
  %243 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim7SecondsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %242, ptr noundef nonnull align 8 dereferenceable(16) %21) #0
  br label %262

244:                                              ; preds = %227, %225
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %7, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %8, align 4
  br label %252

248:                                              ; preds = %228
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %7, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %8, align 4
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #0
  br label %252

252:                                              ; preds = %248, %244
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #0
  br label %263

253:                                              ; preds = %230
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %7, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %8, align 4
  br label %261

257:                                              ; preds = %235, %232
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %7, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %8, align 4
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #0
  br label %261

261:                                              ; preds = %257, %253
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #0
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #0
  br label %263

262:                                              ; preds = %241, %239
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #0
  br label %264

263:                                              ; preds = %261, %252
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #0
  br label %334

264:                                              ; preds = %262, %224
  %265 = getelementptr inbounds %"class.sim::World", ptr %29, i32 0, i32 0
  %266 = load ptr, ptr %265, align 8, !tbaa !32
  %267 = getelementptr inbounds %"struct.std::pair.189", ptr %12, i32 0, i32 0
  %268 = load i32, ptr %267, align 4, !tbaa !33
  %269 = getelementptr inbounds %"struct.std::pair.189", ptr %12, i32 0, i32 1
  %270 = load i32, ptr %269, align 4, !tbaa !35
  %271 = invoke noundef zeroext i1 @_ZNK3sim4Maze10withinMazeEii(ptr noundef nonnull align 8 dereferenceable(26) %266, i32 noundef %268, i32 noundef %270)
          to label %272 unwind label %155

272:                                              ; preds = %264
  br i1 %271, label %277, label %273

273:                                              ; preds = %272
  %274 = invoke noundef ptr @_ZN3sim1SEv()
          to label %275 unwind label %155

275:                                              ; preds = %273
  invoke void @_ZN3sim5State10setCrashedEv(ptr noundef nonnull align 8 dereferenceable(168) %274)
          to label %276 unwind label %155

276:                                              ; preds = %275
  store i32 2, ptr %9, align 4
  br label %319, !llvm.loop !12

277:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #0
  %278 = invoke noundef double @_ZN3sim12SimUtilities19getHighResTimestampEv()
          to label %279 unwind label %297

279:                                              ; preds = %277
  store double %278, ptr %24, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #0
  %280 = load double, ptr %24, align 8, !tbaa !10
  %281 = load double, ptr %6, align 8, !tbaa !10
  %282 = fsub double %280, %281
  store double %282, ptr %25, align 8, !tbaa !10
  %283 = invoke noundef ptr @_ZN3sim1PEv()
          to label %284 unwind label %301

284:                                              ; preds = %279
  %285 = invoke noundef zeroext i1 @_ZN3sim5Param29printLateMousePositionUpdatesEv(ptr noundef nonnull align 8 dereferenceable(1056) %283)
          to label %286 unwind label %301

286:                                              ; preds = %284
  br i1 %285, label %287, label %305

287:                                              ; preds = %286
  %288 = load double, ptr %25, align 8, !tbaa !10
  %289 = invoke noundef ptr @_ZN3sim1PEv()
          to label %290 unwind label %301

290:                                              ; preds = %287
  %291 = invoke noundef i32 @_ZN3sim5Param23mousePositionUpdateRateEv(ptr noundef nonnull align 8 dereferenceable(1056) %289)
          to label %292 unwind label %301

292:                                              ; preds = %290
  %293 = sitofp i32 %291 to double
  %294 = fdiv double 1.000000e+00, %293
  %295 = fcmp ogt double %288, %294
  br i1 %295, label %296, label %305

296:                                              ; preds = %292
  br label %305

297:                                              ; preds = %277
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %7, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %8, align 4
  br label %333

301:                                              ; preds = %290, %287, %284, %279
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %7, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %8, align 4
  br label %332

305:                                              ; preds = %296, %292, %286
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #0
  store double 0.000000e+00, ptr %27, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #0
  %306 = invoke noundef ptr @_ZN3sim1PEv()
          to label %307 unwind label %323

307:                                              ; preds = %305
  %308 = invoke noundef i32 @_ZN3sim5Param23mousePositionUpdateRateEv(ptr noundef nonnull align 8 dereferenceable(1056) %306)
          to label %309 unwind label %323

309:                                              ; preds = %307
  %310 = sitofp i32 %308 to double
  %311 = fdiv double 1.000000e+00, %310
  %312 = load double, ptr %25, align 8, !tbaa !10
  %313 = fsub double %311, %312
  store double %313, ptr %28, align 8, !tbaa !10
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %315 unwind label %323

315:                                              ; preds = %309
  %316 = load double, ptr %314, align 8, !tbaa !10
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %316)
          to label %317 unwind label %323

317:                                              ; preds = %315
  invoke void @_ZN3sim12SimUtilities5sleepERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %318 unwind label %327

318:                                              ; preds = %317
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #0
  store i32 0, ptr %9, align 4
  br label %319

319:                                              ; preds = %318, %276
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #0
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #0
  br label %320

320:                                              ; preds = %319, %55, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #0
  %321 = load i32, ptr %9, align 4
  switch i32 %321, label %340 [
    i32 0, label %322
    i32 2, label %30
  ]

322:                                              ; preds = %320
  br label %30, !llvm.loop !12

323:                                              ; preds = %315, %309, %307, %305
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %7, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %8, align 4
  br label %331

327:                                              ; preds = %317
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %7, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %8, align 4
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #0
  br label %331

331:                                              ; preds = %327, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #0
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #0
  br label %332

332:                                              ; preds = %331, %301
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #0
  br label %333

333:                                              ; preds = %332, %297
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #0
  br label %334

334:                                              ; preds = %333, %263, %211, %210, %186, %185, %155
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #0
  br label %335

335:                                              ; preds = %334, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  br label %336

336:                                              ; preds = %335, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #0
  br label %337

337:                                              ; preds = %336, %143
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #0
  br label %338

338:                                              ; preds = %337, %139
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #0
  br label %339

339:                                              ; preds = %338, %135, %64, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #0
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #0
  br label %341

340:                                              ; preds = %320
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #0
  ret void

341:                                              ; preds = %339
  %342 = load ptr, ptr %7, align 8
  %343 = load i32, ptr %8, align 4
  %344 = insertvalue { ptr, i32 } poison, ptr %342, 0
  %345 = insertvalue { ptr, i32 } %344, i32 %343, 1
  resume { ptr, i32 } %345
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim5World14checkCollisionEv(ptr noundef nonnull align 8 dereferenceable(212)) #4 align 2

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

declare noundef double @_ZN3sim12SimUtilities19getHighResTimestampEv() #3

declare noundef ptr @_ZN3sim1SEv() #3

declare noundef zeroext i1 @_ZN3sim5State7crashedEv(ptr noundef nonnull align 8 dereferenceable(168)) #3

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noundef zeroext i1 @_ZN3sim5State6pausedEv(ptr noundef nonnull align 8 dereferenceable(168)) #3

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

declare noundef ptr @_ZN3sim1PEv() #3

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

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

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

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

declare noundef i32 @_ZN3sim5Param23mousePositionUpdateRateEv(ptr noundef nonnull align 8 dereferenceable(1056)) #3

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

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

declare void @_ZNK3sim7SecondsmlEd(ptr dead_on_unwind writable sret(%"class.sim::Seconds") align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3

declare noundef double @_ZN3sim5State8simSpeedEv(ptr noundef nonnull align 8 dereferenceable(168)) #3

declare void @_ZN3sim4Time23incrementElapsedSimTimeERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare void @_ZN3sim5Mouse6updateERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(528), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare i64 @_ZNK3sim5Mouse32getCurrentDiscretizedTranslationEv(ptr noundef nonnull align 8 dereferenceable(528)) #3

declare noundef ptr @_ZNK3sim4Maze7getTileEii(ptr noundef nonnull align 8 dereferenceable(26), i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsISt4pairIiiEEEbRKSt3setIT_St4lessIS5_ESaIS5_EES5_(ptr noundef nonnull align 8 dereferenceable(48), i64) #4 align 2

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

declare noundef i32 @_ZNK3sim4Tile11getDistanceEv(ptr noundef nonnull align 8 dereferenceable(232)) #3

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

declare noundef zeroext i1 @_ZNK3sim4Maze12isCenterTileEii(ptr noundef nonnull align 8 dereferenceable(26), i32 noundef, i32 noundef) #3

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

declare noundef zeroext i1 @_ZNK3sim4Maze10withinMazeEii(ptr noundef nonnull align 8 dereferenceable(26), i32 noundef, i32 noundef) #3

declare void @_ZN3sim5State10setCrashedEv(ptr noundef nonnull align 8 dereferenceable(168)) #3

declare noundef zeroext i1 @_ZN3sim5Param29printLateMousePositionUpdatesEv(ptr noundef nonnull align 8 dereferenceable(1056)) #3

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

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

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

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!"branch_weights", i32 1, i32 1048575}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTSN3sim5WorldE", !6, i64 0, !6, i64 8, !17, i64 16, !22, i64 128, !22, i64 144, !24, i64 160, !21, i64 208}
!17 = !{!"_ZTSN3sim27StaticMouseAlgorithmOptionsE", !18, i64 0, !18, i64 32, !18, i64 64, !21, i64 96, !21, i64 100, !11, i64 104}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN3sim7SecondsE", !23, i64 0}
!23 = !{!"_ZTSN3sim8DurationE", !11, i64 8}
!24 = !{!"_ZTSSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !20, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!16, !6, i64 0}
!33 = !{!34, !21, i64 0}
!34 = !{!"_ZTSSt4pairIiiE", !21, i64 0, !21, i64 4}
!35 = !{!34, !21, i64 4}
!36 = !{!37, !37, i64 0}
!37 = !{!"bool", !7, i64 0}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = !{!16, !21, i64 208}


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

%"class.sim::Seconds" = type { %"class.sim::Duration" }
%"class.sim::Duration" = type { ptr, double }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.sim::Milliseconds" = type { %"class.sim::Duration" }
%"struct.std::pair.189" = type { i32, i32 }

@__dso_handle = external hidden global i8
@_ZZN3sim5World8simulateEvE17realTimePerUpdate = external hidden global %"class.sim::Seconds", align 8
@_ZGVZN3sim5World8simulateEvE17realTimePerUpdate = external hidden global i64, align 8

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

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

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

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

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

declare noundef ptr @_ZN3sim1TEv() local_unnamed_addr #2

declare void @_ZN3sim4Time14elapsedSimTimeEv(ptr dead_on_unwind writable sret(%"class.sim::Seconds") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim5World8simulateEv(ptr noundef nonnull align 8 dereferenceable(212) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::thread", align 8
  %3 = alloca { i64, i64 }, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.sim::Milliseconds", align 8
  %6 = alloca %"class.sim::Seconds", align 8
  %7 = alloca %"struct.std::pair.189", align 8
  %8 = alloca %"class.sim::Seconds", align 8
  %9 = alloca %"class.sim::Seconds", align 8
  %10 = alloca %"class.sim::Seconds", align 8
  %11 = alloca %"class.sim::Seconds", align 8
  %12 = alloca %"class.sim::Seconds", align 8
  %13 = alloca %"class.sim::Seconds", align 8
  %14 = alloca %"class.sim::Seconds", align 8
  %15 = alloca %"class.sim::Seconds", align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  store i64 ptrtoint (ptr @_ZN3sim5World14checkCollisionEv to i64), ptr %3, align 8, !tbaa !5
  %.fca.1.gep = getelementptr inbounds i8, ptr %3, i64 8
  store i64 0, ptr %.fca.1.gep, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr %0, ptr %4, align 8, !tbaa !8
  call void @_ZNSt6threadC2IMN3sim5WorldEFvvEJPS2_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = getelementptr inbounds i8, ptr %7, i64 4
  %20 = getelementptr inbounds i8, ptr %0, i64 160
  %21 = getelementptr inbounds i8, ptr %0, i64 208
  %22 = getelementptr inbounds i8, ptr %0, i64 144
  %23 = getelementptr inbounds i8, ptr %0, i64 128
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %1
  %24 = invoke noundef double @_ZN3sim12SimUtilities19getHighResTimestampEv()
          to label %25 unwind label %.loopexit

25:                                               ; preds = %.backedge
  %26 = invoke noundef ptr @_ZN3sim1SEv()
          to label %27 unwind label %.loopexit

27:                                               ; preds = %25
  %28 = invoke noundef zeroext i1 @_ZN3sim5State7crashedEv(ptr noundef nonnull align 8 dereferenceable(168) %26)
          to label %29 unwind label %.loopexit

29:                                               ; preds = %27
  br i1 %28, label %30, label %31

30:                                               ; preds = %29
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %.thread unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %.backedge, %25, %27, %31, %33
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %220

.loopexit.split-lp:                               ; preds = %30
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %220

31:                                               ; preds = %29
  %32 = invoke noundef ptr @_ZN3sim1SEv()
          to label %33 unwind label %.loopexit

33:                                               ; preds = %31
  %34 = invoke noundef zeroext i1 @_ZN3sim5State6pausedEv(ptr noundef nonnull align 8 dereferenceable(168) %32)
          to label %35 unwind label %.loopexit

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

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %37 = invoke noundef ptr @_ZN3sim1PEv()
          to label %38 unwind label %42

38:                                               ; preds = %36
  %39 = invoke noundef double @_ZN3sim5Param16minSleepDurationEv(ptr noundef nonnull align 8 dereferenceable(1056) %37)
          to label %40 unwind label %42

40:                                               ; preds = %38
  invoke void @_ZN3sim12MillisecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %39)
          to label %41 unwind label %42

41:                                               ; preds = %40
  invoke void @_ZN3sim12SimUtilities5sleepERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %.thread51 unwind label %44

.thread51:                                        ; preds = %41
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %.backedge.backedge

42:                                               ; preds = %40, %38, %36
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %46

44:                                               ; preds = %41
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %46

46:                                               ; preds = %44, %42
  %.pn46 = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %220

47:                                               ; preds = %35
  %48 = load atomic i8, ptr @_ZGVZN3sim5World8simulateEvE17realTimePerUpdate acquire, align 8
  %49 = icmp eq i8 %48, 0
  br i1 %49, label %50, label %61, !prof !10

50:                                               ; preds = %47
  %51 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN3sim5World8simulateEvE17realTimePerUpdate) #7
  %.not = icmp eq i32 %51, 0
  br i1 %.not, label %61, label %52

52:                                               ; preds = %50
  %53 = invoke noundef ptr @_ZN3sim1PEv()
          to label %54 unwind label %96

54:                                               ; preds = %52
  %55 = invoke noundef i32 @_ZN3sim5Param23mousePositionUpdateRateEv(ptr noundef nonnull align 8 dereferenceable(1056) %53)
          to label %56 unwind label %96

56:                                               ; preds = %54
  %57 = sitofp i32 %55 to double
  %58 = fdiv double 1.000000e+00, %57
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN3sim5World8simulateEvE17realTimePerUpdate, double noundef %58)
          to label %59 unwind label %96

59:                                               ; preds = %56
  %60 = call i32 @__cxa_atexit(ptr nonnull @_ZN3sim8DurationD2Ev, ptr nonnull @_ZZN3sim5World8simulateEvE17realTimePerUpdate, ptr nonnull @__dso_handle) #7
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN3sim5World8simulateEvE17realTimePerUpdate) #7
  br label %61

61:                                               ; preds = %59, %50, %47
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %62 = invoke noundef ptr @_ZN3sim1SEv()
          to label %63 unwind label %98

63:                                               ; preds = %61
  %64 = invoke noundef double @_ZN3sim5State8simSpeedEv(ptr noundef nonnull align 8 dereferenceable(168) %62)
          to label %65 unwind label %98

65:                                               ; preds = %63
  invoke void @_ZNK3sim7SecondsmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Seconds") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) @_ZZN3sim5World8simulateEvE17realTimePerUpdate, double noundef %64)
          to label %66 unwind label %98

66:                                               ; preds = %65
  %67 = invoke noundef ptr @_ZN3sim1TEv()
          to label %68 unwind label %100

68:                                               ; preds = %66
  invoke void @_ZN3sim4Time23incrementElapsedSimTimeERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %69 unwind label %100

69:                                               ; preds = %68
  %70 = load ptr, ptr %18, align 8, !tbaa !11
  invoke void @_ZN3sim5Mouse6updateERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(528) %70, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %71 unwind label %100

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %72 = load ptr, ptr %18, align 8, !tbaa !11
  %73 = invoke i64 @_ZNK3sim5Mouse32getCurrentDiscretizedTranslationEv(ptr noundef nonnull align 8 dereferenceable(528) %72)
          to label %74 unwind label %102

74:                                               ; preds = %71
  store i64 %73, ptr %7, align 8
  %75 = load ptr, ptr %0, align 8, !tbaa !29
  %76 = trunc i64 %73 to i32
  %77 = lshr i64 %73, 32
  %78 = trunc nuw i64 %77 to i32
  %79 = invoke noundef ptr @_ZNK3sim4Maze7getTileEii(ptr noundef nonnull align 8 dereferenceable(26) %75, i32 noundef %76, i32 noundef %78)
          to label %80 unwind label %104

80:                                               ; preds = %74
  %.sroa.04.0.copyload = load i64, ptr %7, align 8
  %81 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsISt4pairIiiEEEbRKSt3setIT_St4lessIS5_ESaIS5_EES5_(ptr noundef nonnull align 8 dereferenceable(48) %20, i64 %.sroa.04.0.copyload)
          to label %82 unwind label %106

82:                                               ; preds = %80
  br i1 %81, label %108, label %83

83:                                               ; preds = %82
  %84 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %85 unwind label %106

85:                                               ; preds = %83
  %86 = load i32, ptr %21, align 8, !tbaa !30
  %87 = icmp eq i32 %86, -1
  br i1 %87, label %93, label %88

88:                                               ; preds = %85
  %89 = invoke noundef i32 @_ZNK3sim4Tile11getDistanceEv(ptr noundef nonnull align 8 dereferenceable(232) %79)
          to label %90 unwind label %106

90:                                               ; preds = %88
  %91 = load i32, ptr %21, align 8, !tbaa !30
  %92 = icmp slt i32 %89, %91
  br i1 %92, label %93, label %108

93:                                               ; preds = %90, %85
  %94 = invoke noundef i32 @_ZNK3sim4Tile11getDistanceEv(ptr noundef nonnull align 8 dereferenceable(232) %79)
          to label %95 unwind label %106

95:                                               ; preds = %93
  store i32 %94, ptr %21, align 8, !tbaa !30
  br label %108

96:                                               ; preds = %56, %54, %52
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN3sim5World8simulateEvE17realTimePerUpdate) #7
  br label %220

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

100:                                              ; preds = %69, %68, %66
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %218

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

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

106:                                              ; preds = %182, %180, %174, %143, %93, %88, %83, %80
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %217

108:                                              ; preds = %90, %95, %82
  %109 = load i32, ptr %7, align 8, !tbaa !31
  %110 = icmp eq i32 %109, 0
  %111 = load i32, ptr %19, align 4
  %112 = icmp eq i32 %111, 0
  %or.cond = select i1 %110, i1 %112, i1 false
  br i1 %or.cond, label %113, label %127

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 0.000000e+00)
          to label %114 unwind label %120

114:                                              ; preds = %113
  %115 = invoke noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %116 unwind label %122

116:                                              ; preds = %114
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br i1 %115, label %117, label %143

117:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef -1.000000e+00)
          to label %118 unwind label %125

118:                                              ; preds = %117
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim7SecondsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %143

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

122:                                              ; preds = %114
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %124

124:                                              ; preds = %122, %120
  %.pn30 = phi { ptr, i32 } [ %123, %122 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %217

125:                                              ; preds = %117
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %217

127:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef 0.000000e+00)
          to label %128 unwind label %136

128:                                              ; preds = %127
  %129 = invoke noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %130 unwind label %138

130:                                              ; preds = %128
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br i1 %129, label %131, label %143

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %132 = invoke noundef ptr @_ZN3sim1TEv()
          to label %133 unwind label %141

133:                                              ; preds = %131
  invoke void @_ZN3sim4Time14elapsedSimTimeEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Seconds") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %132)
          to label %134 unwind label %141

134:                                              ; preds = %133
  %135 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim7SecondsaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %143

136:                                              ; preds = %127
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %140

138:                                              ; preds = %128
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %140

140:                                              ; preds = %138, %136
  %.pn = phi { ptr, i32 } [ %139, %138 ], [ %137, %136 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %217

141:                                              ; preds = %133, %131
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %217

143:                                              ; preds = %130, %134, %116, %118
  %144 = load ptr, ptr %0, align 8, !tbaa !29
  %145 = load i32, ptr %7, align 8, !tbaa !31
  %146 = load i32, ptr %19, align 4, !tbaa !33
  %147 = invoke noundef zeroext i1 @_ZNK3sim4Maze12isCenterTileEii(ptr noundef nonnull align 8 dereferenceable(26) %144, i32 noundef %145, i32 noundef %146)
          to label %148 unwind label %106

148:                                              ; preds = %143
  br i1 %147, label %149, label %174

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %150 = invoke noundef ptr @_ZN3sim1TEv()
          to label %151 unwind label %162

151:                                              ; preds = %149
  invoke void @_ZN3sim4Time14elapsedSimTimeEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Seconds") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %150)
          to label %152 unwind label %162

152:                                              ; preds = %151
  invoke void @_ZNK3sim7SecondsmiERKNS_8DurationE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Seconds") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %153 unwind label %164

153:                                              ; preds = %152
  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 16, ptr nonnull %14) #7
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef 0.000000e+00)
          to label %154 unwind label %167

154:                                              ; preds = %153
  %155 = invoke noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %156 unwind label %169

156:                                              ; preds = %154
  br i1 %155, label %.critedge, label %157

157:                                              ; preds = %156
  %158 = invoke noundef zeroext i1 @_ZNK3sim8DurationltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %159 unwind label %169

159:                                              ; preds = %157
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br i1 %158, label %160, label %172

.critedge:                                        ; preds = %156
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %160

160:                                              ; preds = %.critedge, %159
  %161 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim7SecondsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %172

162:                                              ; preds = %151, %149
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %166

164:                                              ; preds = %152
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br label %166

166:                                              ; preds = %164, %162
  %.pn32 = phi { ptr, i32 } [ %165, %164 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %173

167:                                              ; preds = %153
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %171

169:                                              ; preds = %157, %154
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  br label %171

171:                                              ; preds = %169, %167
  %.pn34 = phi { ptr, i32 } [ %170, %169 ], [ %168, %167 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %173

172:                                              ; preds = %160, %159
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %174

173:                                              ; preds = %171, %166
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %171 ], [ %.pn32, %166 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %217

174:                                              ; preds = %172, %148
  %175 = load ptr, ptr %0, align 8, !tbaa !29
  %176 = load i32, ptr %7, align 8, !tbaa !31
  %177 = load i32, ptr %19, align 4, !tbaa !33
  %178 = invoke noundef zeroext i1 @_ZNK3sim4Maze10withinMazeEii(ptr noundef nonnull align 8 dereferenceable(26) %175, i32 noundef %176, i32 noundef %177)
          to label %179 unwind label %106

179:                                              ; preds = %174
  br i1 %178, label %183, label %180

180:                                              ; preds = %179
  %181 = invoke noundef ptr @_ZN3sim1SEv()
          to label %182 unwind label %106

182:                                              ; preds = %180
  invoke void @_ZN3sim5State10setCrashedEv(ptr noundef nonnull align 8 dereferenceable(168) %181)
          to label %211 unwind label %106, !llvm.loop !34

183:                                              ; preds = %179
  %184 = invoke noundef double @_ZN3sim12SimUtilities19getHighResTimestampEv()
          to label %185 unwind label %195

185:                                              ; preds = %183
  %186 = fsub double %184, %24
  %187 = invoke noundef ptr @_ZN3sim1PEv()
          to label %188 unwind label %197

188:                                              ; preds = %185
  %189 = invoke noundef zeroext i1 @_ZN3sim5Param29printLateMousePositionUpdatesEv(ptr noundef nonnull align 8 dereferenceable(1056) %187)
          to label %190 unwind label %197

190:                                              ; preds = %188
  br i1 %189, label %191, label %199

191:                                              ; preds = %190
  %192 = invoke noundef ptr @_ZN3sim1PEv()
          to label %193 unwind label %197

193:                                              ; preds = %191
  %194 = invoke noundef i32 @_ZN3sim5Param23mousePositionUpdateRateEv(ptr noundef nonnull align 8 dereferenceable(1056) %192)
          to label %199 unwind label %197

195:                                              ; preds = %183
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %217

197:                                              ; preds = %193, %191, %188, %185
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %217

199:                                              ; preds = %193, %190
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  store double 0.000000e+00, ptr %16, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %200 = invoke noundef ptr @_ZN3sim1PEv()
          to label %201 unwind label %212

201:                                              ; preds = %199
  %202 = invoke noundef i32 @_ZN3sim5Param23mousePositionUpdateRateEv(ptr noundef nonnull align 8 dereferenceable(1056) %200)
          to label %203 unwind label %212

203:                                              ; preds = %201
  %204 = sitofp i32 %202 to double
  %205 = fdiv double 1.000000e+00, %204
  %206 = fsub double %205, %186
  store double %206, ptr %17, align 8, !tbaa !36
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %208 = load double, ptr %207, align 8, !tbaa !36
  invoke void @_ZN3sim7SecondsC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %208)
          to label %209 unwind label %212

209:                                              ; preds = %203
  invoke void @_ZN3sim12SimUtilities5sleepERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %210 unwind label %214

210:                                              ; preds = %209
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %211

211:                                              ; preds = %210, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %.backedge.backedge

.backedge.backedge:                               ; preds = %211, %.thread51
  br label %.backedge, !llvm.loop !34

212:                                              ; preds = %203, %201, %199
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %216

214:                                              ; preds = %209
  %215 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br label %216

216:                                              ; preds = %214, %212
  %.pn37 = phi { ptr, i32 } [ %215, %214 ], [ %213, %212 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %217

217:                                              ; preds = %104, %195, %216, %197, %173, %141, %140, %125, %124, %106, %102
  %.pn37.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %103, %102 ], [ %105, %104 ], [ %107, %106 ], [ %.pn34.pn, %173 ], [ %126, %125 ], [ %.pn30, %124 ], [ %142, %141 ], [ %.pn, %140 ], [ %196, %195 ], [ %.pn37, %216 ], [ %198, %197 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %218

218:                                              ; preds = %217, %100
  %.pn37.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn.pn.pn, %217 ], [ %101, %100 ]
  call void @_ZN3sim8DurationD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %219

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

220:                                              ; preds = %.loopexit, %.loopexit.split-lp, %219, %96, %46
  %.pn48 = phi { ptr, i32 } [ %.pn46, %46 ], [ %.pn37.pn.pn.pn.pn.pn.pn.pn, %219 ], [ %97, %96 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn48

.thread:                                          ; preds = %30
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6threadC2IMN3sim5WorldEFvvEJPS2_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

declare noundef double @_ZN3sim12SimUtilities19getHighResTimestampEv() local_unnamed_addr #2

declare noundef ptr @_ZN3sim1SEv() local_unnamed_addr #2

declare noundef zeroext i1 @_ZN3sim5State7crashedEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #2

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN3sim5State6pausedEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #2

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

declare noundef ptr @_ZN3sim1PEv() local_unnamed_addr #2

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

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

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

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

declare noundef i32 @_ZN3sim5Param23mousePositionUpdateRateEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #2

; 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

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

declare noundef double @_ZN3sim5State8simSpeedEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #2

declare void @_ZN3sim4Time23incrementElapsedSimTimeERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

declare void @_ZN3sim5Mouse6updateERKNS_8DurationE(ptr noundef nonnull align 8 dereferenceable(528), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

declare i64 @_ZNK3sim5Mouse32getCurrentDiscretizedTranslationEv(ptr noundef nonnull align 8 dereferenceable(528)) local_unnamed_addr #2

declare noundef ptr @_ZNK3sim4Maze7getTileEii(ptr noundef nonnull align 8 dereferenceable(26), i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsISt4pairIiiEEEbRKSt3setIT_St4lessIS5_ESaIS5_EES5_(ptr noundef nonnull align 8 dereferenceable(48), i64) local_unnamed_addr #3 align 2

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

declare noundef i32 @_ZNK3sim4Tile11getDistanceEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #2

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

declare noundef zeroext i1 @_ZNK3sim4Maze12isCenterTileEii(ptr noundef nonnull align 8 dereferenceable(26), i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare noundef zeroext i1 @_ZNK3sim4Maze10withinMazeEii(ptr noundef nonnull align 8 dereferenceable(26), i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN3sim5State10setCrashedEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN3sim5Param29printLateMousePositionUpdatesEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!"branch_weights", i32 1, i32 1048575}
!11 = !{!12, !9, i64 8}
!12 = !{!"_ZTSN3sim5WorldE", !9, i64 0, !9, i64 8, !13, i64 16, !19, i64 128, !19, i64 144, !21, i64 160, !17, i64 208}
!13 = !{!"_ZTSN3sim27StaticMouseAlgorithmOptionsE", !14, i64 0, !14, i64 32, !14, i64 64, !17, i64 96, !17, i64 100, !18, i64 104}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !6, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!16 = !{!"long", !6, i64 0}
!17 = !{!"int", !6, i64 0}
!18 = !{!"double", !6, i64 0}
!19 = !{!"_ZTSN3sim7SecondsE", !20, i64 0}
!20 = !{!"_ZTSN3sim8DurationE", !18, i64 8}
!21 = !{!"_ZTSSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !24, i64 0, !26, i64 8}
!24 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !25, i64 0}
!25 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!26 = !{!"_ZTSSt15_Rb_tree_header", !27, i64 0, !16, i64 32}
!27 = !{!"_ZTSSt18_Rb_tree_node_base", !28, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!28 = !{!"_ZTSSt14_Rb_tree_color", !6, i64 0}
!29 = !{!12, !9, i64 0}
!30 = !{!12, !17, i64 208}
!31 = !{!32, !17, i64 0}
!32 = !{!"_ZTSSt4pairIiiE", !17, i64 0, !17, i64 4}
!33 = !{!32, !17, i64 4}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!18, !18, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass