; LLVM IR from chromia/lichtenberg :: src (simulator)

; 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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i8 }
%"struct.std::_Head_base.1" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple.4" = type { %"struct.std::_Tuple_impl.5" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Tuple_impl.6", %"struct.std::_Head_base.8" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.7" }
%"struct.std::_Head_base.7" = type { i32 }
%"struct.std::_Head_base.8" = type { i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.lichtenberg::Simulator" = type { %"class.std::shared_ptr", i8, i8, i8, i8, %"class.std::function", %"class.lichtenberg::CellList2D" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.lichtenberg::CellList2D" = type { ptr, i32, i32 }

@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11lichtenberg9Simulator9check_dirEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) #1 align 2

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

declare noundef i32 @_ZNK11lichtenberg10CellList2D7get_dirEii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11lichtenberg9Simulator8breakingEiiRSt6vectorISt5tupleIJiiEESaIS3_EESt8functionIFbiiEE(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 1, ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11lichtenberg9Simulator8simulateEiSt8functionIFbiiEES1_IFbiiPKNS_10CellList2DEEE(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::tuple.4", align 4
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.std::tuple.4", align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.std::tuple", align 1
  %31 = alloca %"class.std::function", align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %45 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %46 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %47 = getelementptr inbounds %"class.lichtenberg::CellList2D", ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !11
  store i32 %48, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %49 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %50 = getelementptr inbounds %"class.lichtenberg::CellList2D", ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 4, !tbaa !20
  store i32 %51, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = mul nsw i32 %52, %53
  %55 = sext i32 %54 to i64
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %55)
          to label %56 unwind label %67

56:                                               ; preds = %4
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = mul nsw i32 %57, %58
  %60 = sext i32 %59 to i64
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %60)
          to label %61 unwind label %67

61:                                               ; preds = %56
  store ptr %11, ptr %13, align 8, !tbaa !5
  store ptr %12, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %106, %61
  %63 = load i32, ptr %18, align 4, !tbaa !9
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %71, label %66

66:                                               ; preds = %62
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %109

67:                                               ; preds = %115, %56, %4
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %16, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %17, align 4
  br label %383

71:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %101, %71
  %73 = load i32, ptr %20, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %105

77:                                               ; preds = %72
  %78 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %79 = load i32, ptr %20, align 4, !tbaa !9
  %80 = load i32, ptr %18, align 4, !tbaa !9
  %81 = invoke noundef zeroext i1 @_ZNK11lichtenberg10CellList2D10get_brokenEii(ptr noundef nonnull align 8 dereferenceable(16) %78, i32 noundef %79, i32 noundef %80)
          to label %82 unwind label %92

82:                                               ; preds = %77
  br i1 %81, label %83, label %100

83:                                               ; preds = %82
  %84 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %85 = load i32, ptr %20, align 4, !tbaa !9
  %86 = load i32, ptr %18, align 4, !tbaa !9
  %87 = invoke noundef zeroext i1 @_ZNK11lichtenberg10CellList2D13get_insulatedEii(ptr noundef nonnull align 8 dereferenceable(16) %84, i32 noundef %85, i32 noundef %86)
          to label %88 unwind label %92

88:                                               ; preds = %83
  br i1 %87, label %100, label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @_ZNSt5tupleIJiiEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %18) #7
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %91 unwind label %96

91:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %100

92:                                               ; preds = %83, %77
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %16, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %17, align 4
  br label %104

96:                                               ; preds = %89
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %16, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %104

100:                                              ; preds = %91, %88, %82
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %20, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %20, align 4, !tbaa !9
  br label %72, !llvm.loop !21

104:                                              ; preds = %96, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %383

105:                                              ; preds = %76
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %18, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %18, align 4, !tbaa !9
  br label %62, !llvm.loop !23

109:                                              ; preds = %66
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #7
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %120

113:                                              ; preds = %109
  %114 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %114, ptr noundef @.str.3)
          to label %115 unwind label %116

115:                                              ; preds = %113
  invoke void @__cxa_throw(ptr %114, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
          to label %389 unwind label %67

116:                                              ; preds = %113
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %16, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %17, align 4
  call void @__cxa_free_exception(ptr %114) #7
  br label %383

120:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %234, %120
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = call noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #7
  %124 = xor i1 %123, true
  br i1 %124, label %125, label %235

125:                                              ; preds = %121
  %126 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 0
  %127 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %126) #7
  br i1 %127, label %128, label %141

128:                                              ; preds = %125
  %129 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 0
  %130 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %129) #7
  %131 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = load ptr, ptr %130, align 8, !tbaa !24
  %134 = getelementptr inbounds ptr, ptr %133, i64 3
  %135 = load ptr, ptr %134, align 8
  invoke void %135(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull align 8 dereferenceable(16) %131, ptr noundef nonnull align 8 dereferenceable(24) %132)
          to label %136 unwind label %137

136:                                              ; preds = %128
  br label %141

137:                                              ; preds = %128
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %16, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %17, align 4
  br label %382

141:                                              ; preds = %136, %125
  %142 = call noundef zeroext i1 @_ZNKSt8functionIFbiiPKN11lichtenberg10CellList2DEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br i1 %142, label %143, label %161

143:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  %144 = load i32, ptr %22, align 4, !tbaa !9
  %145 = load i32, ptr %6, align 4, !tbaa !9
  %146 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %147 = invoke noundef zeroext i1 @_ZNKSt8functionIFbiiPKN11lichtenberg10CellList2DEEEclEiiS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %144, i32 noundef %145, ptr noundef %146)
          to label %148 unwind label %153

148:                                              ; preds = %143
  %149 = zext i1 %147 to i8
  store i8 %149, ptr %23, align 1, !tbaa !26
  %150 = load i8, ptr %23, align 1, !tbaa !26, !range !27, !noundef !28
  %151 = trunc i8 %150 to i1
  br i1 %151, label %152, label %157

152:                                              ; preds = %148
  store i32 9, ptr %19, align 4
  br label %158

153:                                              ; preds = %143
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %16, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %382

157:                                              ; preds = %148
  store i32 0, ptr %19, align 4
  br label %158

158:                                              ; preds = %157, %152
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  %159 = load i32, ptr %19, align 4
  switch i32 %159, label %389 [
    i32 0, label %160
    i32 9, label %235
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160, %141
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  store i8 0, ptr %24, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #7
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  br label %165

165:                                              ; preds = %212, %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #7
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  %169 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br i1 %169, label %171, label %170

170:                                              ; preds = %165
  store i32 10, ptr %19, align 4
  br label %215

171:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %172 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %172, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %27) #7
  store ptr %173, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %27) #7
  store ptr %174, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %30) #7
  %175 = load ptr, ptr %28, align 8, !tbaa !5
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = load ptr, ptr %29, align 8, !tbaa !5
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZNSt8functionIFbiiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %180 unwind label %191

180:                                              ; preds = %171
  invoke void @_ZN11lichtenberg9Simulator8breakingEiiRSt6vectorISt5tupleIJiiEESaIS3_EESt8functionIFbiiEE(ptr dead_on_unwind writable sret(%"class.std::tuple") align 1 %30, ptr noundef nonnull align 8 dereferenceable(72) %45, i32 noundef %176, i32 noundef %178, ptr noundef nonnull align 8 dereferenceable(24) %179, ptr noundef %31)
          to label %181 unwind label %195

181:                                              ; preds = %180
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %182 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm0EJbbEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 1 dereferenceable(2) %30) #7
  store ptr %182, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm1EJbbEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 1 dereferenceable(2) %30) #7
  store ptr %183, ptr %33, align 8, !tbaa !5
  %184 = load ptr, ptr %32, align 8, !tbaa !5
  %185 = load i8, ptr %184, align 1, !tbaa !26, !range !27, !noundef !28
  %186 = trunc i8 %185 to i1
  br i1 %186, label %203, label %187

187:                                              ; preds = %181
  %188 = load ptr, ptr %14, align 8, !tbaa !5
  %189 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %188, ptr noundef nonnull align 4 dereferenceable(8) %189)
          to label %190 unwind label %199

190:                                              ; preds = %187
  br label %203

191:                                              ; preds = %171
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %16, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %17, align 4
  br label %214

195:                                              ; preds = %180
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %16, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %17, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  br label %214

199:                                              ; preds = %187
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %16, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %214

203:                                              ; preds = %190, %181
  %204 = load ptr, ptr %33, align 8, !tbaa !5
  %205 = load i8, ptr %204, align 1, !tbaa !26, !range !27, !noundef !28
  %206 = trunc i8 %205 to i1
  br i1 %206, label %207, label %208

207:                                              ; preds = %203
  store i8 1, ptr %24, align 1, !tbaa !26
  store i32 10, ptr %19, align 4
  br label %209

208:                                              ; preds = %203
  store i32 0, ptr %19, align 4
  br label %209

209:                                              ; preds = %208, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  %210 = load i32, ptr %19, align 4
  switch i32 %210, label %215 [
    i32 0, label %211
  ]

211:                                              ; preds = %209
  br label %212

212:                                              ; preds = %211
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br label %165, !llvm.loop !29

214:                                              ; preds = %199, %195, %191
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  br label %382

215:                                              ; preds = %209, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %216

216:                                              ; preds = %215
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %217) #7
  %218 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %218, ptr %15, align 8, !tbaa !5
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %219, ptr %13, align 8, !tbaa !5
  %220 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %220, ptr %14, align 8, !tbaa !5
  %221 = load i32, ptr %22, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %22, align 4, !tbaa !9
  %223 = load i32, ptr %22, align 4, !tbaa !9
  %224 = load i32, ptr %6, align 4, !tbaa !9
  %225 = icmp eq i32 %223, %224
  br i1 %225, label %226, label %227

226:                                              ; preds = %216
  store i32 9, ptr %19, align 4
  br label %232

227:                                              ; preds = %216
  %228 = load i8, ptr %24, align 1, !tbaa !26, !range !27, !noundef !28
  %229 = trunc i8 %228 to i1
  br i1 %229, label %230, label %231

230:                                              ; preds = %227
  store i32 9, ptr %19, align 4
  br label %232

231:                                              ; preds = %227
  store i32 0, ptr %19, align 4
  br label %232

232:                                              ; preds = %231, %230, %226
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  %233 = load i32, ptr %19, align 4
  switch i32 %233, label %389 [
    i32 0, label %234
    i32 9, label %235
  ]

234:                                              ; preds = %232
  br label %121, !llvm.loop !30

235:                                              ; preds = %232, %158, %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %236

236:                                              ; preds = %266, %235
  %237 = load i32, ptr %34, align 4, !tbaa !9
  %238 = load i32, ptr %10, align 4, !tbaa !9
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %241, label %240

240:                                              ; preds = %236
  store i32 13, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %269

241:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %242

242:                                              ; preds = %262, %241
  %243 = load i32, ptr %35, align 4, !tbaa !9
  %244 = load i32, ptr %9, align 4, !tbaa !9
  %245 = icmp slt i32 %243, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %242
  store i32 16, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %265

247:                                              ; preds = %242
  %248 = load i32, ptr %35, align 4, !tbaa !9
  %249 = load i32, ptr %34, align 4, !tbaa !9
  %250 = invoke noundef zeroext i1 @_ZN11lichtenberg9Simulator9check_dirEii(ptr noundef nonnull align 8 dereferenceable(72) %45, i32 noundef %248, i32 noundef %249)
          to label %251 unwind label %257

251:                                              ; preds = %247
  br i1 %250, label %261, label %252

252:                                              ; preds = %251
  %253 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %254 = load i32, ptr %35, align 4, !tbaa !9
  %255 = load i32, ptr %34, align 4, !tbaa !9
  invoke void @_ZN11lichtenberg10CellList2D9set_countEiii(ptr noundef nonnull align 8 dereferenceable(16) %253, i32 noundef %254, i32 noundef %255, i32 noundef 1)
          to label %256 unwind label %257

256:                                              ; preds = %252
  br label %261

257:                                              ; preds = %252, %247
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %16, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %382

261:                                              ; preds = %256, %251
  br label %262

262:                                              ; preds = %261
  %263 = load i32, ptr %35, align 4, !tbaa !9
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %35, align 4, !tbaa !9
  br label %242, !llvm.loop !31

265:                                              ; preds = %246
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %34, align 4, !tbaa !9
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %34, align 4, !tbaa !9
  br label %236, !llvm.loop !32

269:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %378, %269
  %271 = load i32, ptr %36, align 4, !tbaa !9
  %272 = load i32, ptr %10, align 4, !tbaa !9
  %273 = icmp slt i32 %271, %272
  br i1 %273, label %275, label %274

274:                                              ; preds = %270
  store i32 19, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %381

275:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %373, %275
  %277 = load i32, ptr %37, align 4, !tbaa !9
  %278 = load i32, ptr %9, align 4, !tbaa !9
  %279 = icmp slt i32 %277, %278
  br i1 %279, label %281, label %280

280:                                              ; preds = %276
  store i32 22, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %377

281:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %282 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %283 = load i32, ptr %37, align 4, !tbaa !9
  %284 = load i32, ptr %36, align 4, !tbaa !9
  %285 = invoke noundef i32 @_ZNK11lichtenberg10CellList2D9get_countEii(ptr noundef nonnull align 8 dereferenceable(16) %282, i32 noundef %283, i32 noundef %284)
          to label %286 unwind label %306

286:                                              ; preds = %281
  store i32 %285, ptr %38, align 4, !tbaa !9
  %287 = load i32, ptr %38, align 4, !tbaa !9
  %288 = icmp eq i32 %287, 1
  br i1 %288, label %289, label %372

289:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %290 = load i32, ptr %37, align 4, !tbaa !9
  store i32 %290, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %291 = load i32, ptr %36, align 4, !tbaa !9
  store i32 %291, ptr %40, align 4, !tbaa !9
  br label %292

292:                                              ; preds = %369, %289
  br label %293

293:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  %294 = load i32, ptr %39, align 4, !tbaa !9
  store i32 %294, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %295 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %295, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %296 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %297 = load i32, ptr %39, align 4, !tbaa !9
  %298 = load i32, ptr %40, align 4, !tbaa !9
  %299 = invoke noundef i32 @_ZNK11lichtenberg10CellList2D7get_dirEii(ptr noundef nonnull align 8 dereferenceable(16) %296, i32 noundef %297, i32 noundef %298)
          to label %300 unwind label %310

300:                                              ; preds = %293
  store i32 %299, ptr %43, align 4, !tbaa !33
  %301 = load i32, ptr %43, align 4, !tbaa !33
  %302 = icmp eq i32 %301, 1
  br i1 %302, label %303, label %314

303:                                              ; preds = %300
  %304 = load i32, ptr %40, align 4, !tbaa !9
  %305 = sub nsw i32 %304, 1
  store i32 %305, ptr %42, align 4, !tbaa !9
  br label %340

306:                                              ; preds = %281
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %16, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %17, align 4
  br label %376

310:                                              ; preds = %293
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %16, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %17, align 4
  br label %370

314:                                              ; preds = %300
  %315 = load i32, ptr %43, align 4, !tbaa !33
  %316 = icmp eq i32 %315, 3
  br i1 %316, label %317, label %320

317:                                              ; preds = %314
  %318 = load i32, ptr %40, align 4, !tbaa !9
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %42, align 4, !tbaa !9
  br label %339

320:                                              ; preds = %314
  %321 = load i32, ptr %43, align 4, !tbaa !33
  %322 = icmp eq i32 %321, 2
  br i1 %322, label %323, label %326

323:                                              ; preds = %320
  %324 = load i32, ptr %39, align 4, !tbaa !9
  %325 = sub nsw i32 %324, 1
  store i32 %325, ptr %41, align 4, !tbaa !9
  br label %338

326:                                              ; preds = %320
  %327 = load i32, ptr %43, align 4, !tbaa !33
  %328 = icmp eq i32 %327, 4
  br i1 %328, label %329, label %332

329:                                              ; preds = %326
  %330 = load i32, ptr %39, align 4, !tbaa !9
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %41, align 4, !tbaa !9
  br label %337

332:                                              ; preds = %326
  %333 = load i32, ptr %43, align 4, !tbaa !33
  %334 = icmp eq i32 %333, 0
  br i1 %334, label %335, label %336

335:                                              ; preds = %332
  store i32 26, ptr %19, align 4
  br label %367

336:                                              ; preds = %332
  br label %337

337:                                              ; preds = %336, %329
  br label %338

338:                                              ; preds = %337, %323
  br label %339

339:                                              ; preds = %338, %317
  br label %340

340:                                              ; preds = %339, %303
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  %341 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %342 = load i32, ptr %41, align 4, !tbaa !9
  %343 = load i32, ptr %42, align 4, !tbaa !9
  %344 = invoke noundef i32 @_ZNK11lichtenberg10CellList2D9get_countEii(ptr noundef nonnull align 8 dereferenceable(16) %341, i32 noundef %342, i32 noundef %343)
          to label %345 unwind label %350

345:                                              ; preds = %340
  store i32 %344, ptr %44, align 4, !tbaa !9
  %346 = load i32, ptr %44, align 4, !tbaa !9
  %347 = load i32, ptr %38, align 4, !tbaa !9
  %348 = icmp sgt i32 %346, %347
  br i1 %348, label %349, label %354

349:                                              ; preds = %345
  store i32 26, ptr %19, align 4
  br label %366

350:                                              ; preds = %354, %340
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %16, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %370

354:                                              ; preds = %345
  %355 = getelementptr inbounds %"class.lichtenberg::Simulator", ptr %45, i32 0, i32 6
  %356 = load i32, ptr %41, align 4, !tbaa !9
  %357 = load i32, ptr %42, align 4, !tbaa !9
  %358 = load i32, ptr %38, align 4, !tbaa !9
  %359 = add nsw i32 %358, 1
  invoke void @_ZN11lichtenberg10CellList2D9set_countEiii(ptr noundef nonnull align 8 dereferenceable(16) %355, i32 noundef %356, i32 noundef %357, i32 noundef %359)
          to label %360 unwind label %350

360:                                              ; preds = %354
  br label %361

361:                                              ; preds = %360
  %362 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %362, ptr %39, align 4, !tbaa !9
  %363 = load i32, ptr %42, align 4, !tbaa !9
  store i32 %363, ptr %40, align 4, !tbaa !9
  %364 = load i32, ptr %38, align 4, !tbaa !9
  %365 = add nsw i32 %364, 1
  store i32 %365, ptr %38, align 4, !tbaa !9
  store i32 0, ptr %19, align 4
  br label %366

366:                                              ; preds = %361, %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %367

367:                                              ; preds = %366, %335
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  %368 = load i32, ptr %19, align 4
  switch i32 %368, label %389 [
    i32 0, label %369
    i32 26, label %371
  ]

369:                                              ; preds = %367
  br label %292, !llvm.loop !35

370:                                              ; preds = %350, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %376

371:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %372

372:                                              ; preds = %371, %286
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %373

373:                                              ; preds = %372
  %374 = load i32, ptr %37, align 4, !tbaa !9
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %37, align 4, !tbaa !9
  br label %276, !llvm.loop !36

376:                                              ; preds = %370, %306
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %382

377:                                              ; preds = %280
  br label %378

378:                                              ; preds = %377
  %379 = load i32, ptr %36, align 4, !tbaa !9
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %36, align 4, !tbaa !9
  br label %270, !llvm.loop !37

381:                                              ; preds = %274
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  ret void

382:                                              ; preds = %376, %257, %214, %153, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %383

383:                                              ; preds = %382, %116, %104, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %384

384:                                              ; preds = %383
  %385 = load ptr, ptr %16, align 8
  %386 = load i32, ptr %17, align 4
  %387 = insertvalue { ptr, i32 } poison, ptr %385, 0
  %388 = insertvalue { ptr, i32 } %387, i32 %386, 1
  resume { ptr, i32 } %388

389:                                              ; preds = %367, %232, %158, %115
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbiiPKN11lichtenberg10CellList2DEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbiiPKN11lichtenberg10CellList2DEEEclEiiS3_(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, ptr noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm0EJbbEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 1 dereferenceable(2)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm1EJbbEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 1 dereferenceable(2)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

declare void @_ZN11lichtenberg10CellList2D9set_countEiii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef) #3

declare noundef i32 @_ZNK11lichtenberg10CellList2D9get_countEii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #3

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 64}
!12 = !{!"_ZTSN11lichtenberg9SimulatorE", !13, i64 0, !16, i64 16, !16, i64 17, !16, i64 18, !16, i64 19, !17, i64 24, !19, i64 56}
!13 = !{!"_ZTSSt10shared_ptrIN11lichtenberg5model10BreakModelEE", !14, i64 0}
!14 = !{!"_ZTSSt12__shared_ptrIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt8functionIFbiiEE", !18, i64 0, !6, i64 24}
!18 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!19 = !{!"_ZTSN11lichtenberg10CellList2DE", !6, i64 0, !10, i64 8, !10, i64 12}
!20 = !{!12, !10, i64 68}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}
!26 = !{!16, !16, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = distinct !{!32, !22}
!33 = !{!34, !34, i64 0}
!34 = !{!"_ZTSN11lichtenberg9DirectionE", !7, i64 0}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !22}
!37 = distinct !{!37, !22}


; 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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i8 }
%"struct.std::_Head_base.1" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple.4" = type { %"struct.std::_Tuple_impl.5" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Tuple_impl.6", %"struct.std::_Head_base.8" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.7" }
%"struct.std::_Head_base.7" = type { i32 }
%"struct.std::_Head_base.8" = type { i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11lichtenberg9Simulator9check_dirEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

declare noundef i32 @_ZNK11lichtenberg10CellList2D7get_dirEii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11lichtenberg9Simulator8breakingEiiRSt6vectorISt5tupleIJiiEESaIS3_EESt8functionIFbiiEE(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 1, ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11lichtenberg9Simulator8simulateEiSt8functionIFbiiEES1_IFbiiPKNS_10CellList2DEEE(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::tuple.4", align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.std::tuple.4", align 8
  %13 = alloca %"class.std::tuple", align 1
  %14 = alloca %"class.std::function", align 8
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  %17 = load i32, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 68
  %19 = load i32, ptr %18, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %20 = mul nsw i32 %19, %17
  %21 = sext i32 %20 to i64
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %21)
          to label %22 unwind label %48

22:                                               ; preds = %4
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %21)
          to label %23 unwind label %48

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 0, ptr %7, align 4, !tbaa !19
  %24 = icmp sgt i32 %19, 0
  %25 = icmp sgt i32 %17, 0
  %or.cond176 = select i1 %24, i1 %25, i1 false
  br i1 %or.cond176, label %.lr.ph.us, label %._crit_edge143

.lr.ph.us:                                        ; preds = %23, %._crit_edge.us
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !19
  br label %26

26:                                               ; preds = %.lr.ph.us, %37
  %storemerge121140.us = phi i32 [ 0, %.lr.ph.us ], [ %39, %37 ]
  %27 = load i32, ptr %7, align 4, !tbaa !19
  %28 = invoke noundef zeroext i1 @_ZNK11lichtenberg10CellList2D10get_brokenEii(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %storemerge121140.us, i32 noundef %27)
          to label %29 unwind label %.split.us

29:                                               ; preds = %26
  br i1 %28, label %30, label %37

30:                                               ; preds = %29
  %31 = load i32, ptr %8, align 4, !tbaa !19
  %32 = load i32, ptr %7, align 4, !tbaa !19
  %33 = invoke noundef zeroext i1 @_ZNK11lichtenberg10CellList2D13get_insulatedEii(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %31, i32 noundef %32)
          to label %34 unwind label %.split.us

34:                                               ; preds = %30
  br i1 %33, label %37, label %35

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt5tupleIJiiEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %7) #6
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %36 unwind label %.split145.us

36:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %37

37:                                               ; preds = %36, %34, %29
  %38 = load i32, ptr %8, align 4, !tbaa !19
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %8, align 4, !tbaa !19
  %40 = icmp slt i32 %39, %17
  br i1 %40, label %26, label %._crit_edge.us, !llvm.loop !20

._crit_edge.us:                                   ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %41 = load i32, ptr %7, align 4, !tbaa !19
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %7, align 4, !tbaa !19
  %43 = icmp slt i32 %42, %19
  br i1 %43, label %.lr.ph.us, label %._crit_edge143, !llvm.loop !22

.split.us:                                        ; preds = %30, %26
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %50

.split145.us:                                     ; preds = %35
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %50

._crit_edge143:                                   ; preds = %._crit_edge.us, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %46 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %51, label %.preheader136

48:                                               ; preds = %53, %22, %4
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %142

50:                                               ; preds = %.split145.us, %.split.us
  %.pn122 = phi { ptr, i32 } [ %45, %.split145.us ], [ %44, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %142

51:                                               ; preds = %._crit_edge143
  %52 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull @.str.3)
          to label %53 unwind label %54

53:                                               ; preds = %51
  invoke void @__cxa_throw(ptr nonnull %52, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #7
          to label %143 unwind label %48

54:                                               ; preds = %51
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %52) #6
  br label %142

.preheader136:                                    ; preds = %._crit_edge143, %._crit_edge
  %.0107 = phi i32 [ %105, %._crit_edge ], [ 0, %._crit_edge143 ]
  %.079 = phi ptr [ %.0, %._crit_edge ], [ %6, %._crit_edge143 ]
  %.0 = phi ptr [ %.079, %._crit_edge ], [ %5, %._crit_edge143 ]
  %56 = call noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %.0) #6
  br i1 %56, label %107, label %57

57:                                               ; preds = %.preheader136
  %58 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  br i1 %58, label %59, label %66

59:                                               ; preds = %57
  %60 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #6
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  %62 = getelementptr inbounds i8, ptr %61, i64 24
  %63 = load ptr, ptr %62, align 8
  invoke void %63(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(24) %.0)
          to label %66 unwind label %64

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

66:                                               ; preds = %59, %57
  %67 = call noundef zeroext i1 @_ZNKSt8functionIFbiiPKN11lichtenberg10CellList2DEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br i1 %67, label %68, label %73

68:                                               ; preds = %66
  %69 = invoke noundef zeroext i1 @_ZNKSt8functionIFbiiPKN11lichtenberg10CellList2DEEEclEiiS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %.0107, i32 noundef %1, ptr noundef nonnull %15)
          to label %70 unwind label %71

70:                                               ; preds = %68
  br i1 %69, label %107, label %73

71:                                               ; preds = %68
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %142

73:                                               ; preds = %70, %66
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %74 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.0) #6
  store ptr %74, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %75 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.0) #6
  store ptr %75, ptr %11, align 8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br i1 %76, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %73, %100
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %77 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %78 = load i64, ptr %77, align 4
  store i64 %78, ptr %12, align 8
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %12) #6
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8) %12) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %13) #6
  %81 = load i32, ptr %79, align 4, !tbaa !19
  %82 = load i32, ptr %80, align 4, !tbaa !19
  invoke void @_ZNSt8functionIFbiiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %83 unwind label %91

83:                                               ; preds = %.lr.ph
  invoke void @_ZN11lichtenberg9Simulator8breakingEiiRSt6vectorISt5tupleIJiiEESaIS3_EESt8functionIFbiiEE(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 1 %13, ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %81, i32 noundef %82, ptr noundef nonnull align 8 dereferenceable(24) %.079, ptr noundef nonnull %14)
          to label %84 unwind label %93

84:                                               ; preds = %83
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm0EJbbEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 1 dereferenceable(2) %13) #6
  %86 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm1EJbbEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 1 dereferenceable(2) %13) #6
  %87 = load i8, ptr %85, align 1, !tbaa !25, !range !26, !noundef !27
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %97, label %89

89:                                               ; preds = %84
  %90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %.079, ptr noundef nonnull align 4 dereferenceable(8) %90)
          to label %97 unwind label %95

91:                                               ; preds = %.lr.ph
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %104

93:                                               ; preds = %83
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %104

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

97:                                               ; preds = %89, %84
  %98 = load i8, ptr %86, align 1, !tbaa !25, !range !26, !noundef !27
  %99 = trunc nuw i8 %98 to i1
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br i1 %99, label %._crit_edge, label %100

100:                                              ; preds = %97
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %102 = call ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.0) #6
  store ptr %102, ptr %11, align 8
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br i1 %103, label %.lr.ph, label %._crit_edge, !llvm.loop !28

104:                                              ; preds = %95, %93, %91
  %.pn = phi { ptr, i32 } [ %96, %95 ], [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %142

._crit_edge:                                      ; preds = %97, %100, %73
  %.lcssa = phi i1 [ false, %73 ], [ %99, %100 ], [ %99, %97 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %.0) #6
  %105 = add nuw nsw i32 %.0107, 1
  %106 = icmp eq i32 %105, %1
  %switch126.not = or i1 %106, %.lcssa
  br i1 %switch126.not, label %107, label %.preheader136

107:                                              ; preds = %._crit_edge, %70, %.preheader136
  %108 = icmp sgt i32 %17, 0
  %or.cond = select i1 %24, i1 %108, i1 false
  br i1 %or.cond, label %.preheader135.us, label %._crit_edge159

.preheader135.us:                                 ; preds = %107, %._crit_edge152.us
  %.092153.us = phi i32 [ %115, %._crit_edge152.us ], [ 0, %107 ]
  br label %109

109:                                              ; preds = %.preheader135.us, %113
  %.091150.us = phi i32 [ 0, %.preheader135.us ], [ %114, %113 ]
  %110 = invoke noundef zeroext i1 @_ZN11lichtenberg9Simulator9check_dirEii(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.091150.us, i32 noundef %.092153.us)
          to label %111 unwind label %.split.us154

111:                                              ; preds = %109
  br i1 %110, label %113, label %112

112:                                              ; preds = %111
  invoke void @_ZN11lichtenberg10CellList2D9set_countEiii(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %.091150.us, i32 noundef %.092153.us, i32 noundef 1)
          to label %113 unwind label %.split.us154

113:                                              ; preds = %112, %111
  %114 = add nuw nsw i32 %.091150.us, 1
  %exitcond.not = icmp eq i32 %114, %17
  br i1 %exitcond.not, label %._crit_edge152.us, label %109, !llvm.loop !29

._crit_edge152.us:                                ; preds = %113
  %115 = add nuw nsw i32 %.092153.us, 1
  %exitcond170.not = icmp eq i32 %115, %19
  br i1 %exitcond170.not, label %.preheader134, label %.preheader135.us, !llvm.loop !30

.split.us154:                                     ; preds = %112, %109
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %142

.preheader134:                                    ; preds = %._crit_edge152.us
  br i1 %24, label %.preheader133.us, label %._crit_edge159

.preheader133.us:                                 ; preds = %.preheader134, %._crit_edge157.us
  %.090158.us = phi i32 [ %138, %._crit_edge157.us ], [ 0, %.preheader134 ]
  br label %117

117:                                              ; preds = %.preheader133.us, %.thread.us
  %.089155.us = phi i32 [ 0, %.preheader133.us ], [ %137, %.thread.us ]
  %118 = invoke noundef i32 @_ZNK11lichtenberg10CellList2D9get_countEii(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %.089155.us, i32 noundef %.090158.us)
          to label %119 unwind label %.split.us160

119:                                              ; preds = %117
  %120 = icmp eq i32 %118, 1
  br i1 %120, label %.preheader.us, label %.thread.us

.preheader.us:                                    ; preds = %119, %135
  %.086.us = phi i32 [ %136, %135 ], [ 1, %119 ]
  %.083.us = phi i32 [ %.081.us, %135 ], [ %.089155.us, %119 ]
  %.082.us = phi i32 [ %.080.us, %135 ], [ %.090158.us, %119 ]
  %121 = invoke noundef i32 @_ZNK11lichtenberg10CellList2D7get_dirEii(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %.083.us, i32 noundef %.082.us)
          to label %122 unwind label %.split162.us

122:                                              ; preds = %.preheader.us
  switch i32 %121, label %131 [
    i32 1, label %129
    i32 3, label %127
    i32 2, label %125
    i32 4, label %123
    i32 0, label %.thread.us
  ]

123:                                              ; preds = %122
  %124 = add nsw i32 %.083.us, 1
  br label %131

125:                                              ; preds = %122
  %126 = add nsw i32 %.083.us, -1
  br label %131

127:                                              ; preds = %122
  %128 = add nsw i32 %.082.us, 1
  br label %131

129:                                              ; preds = %122
  %130 = add nsw i32 %.082.us, -1
  br label %131

131:                                              ; preds = %129, %127, %125, %123, %122
  %.081.us = phi i32 [ %.083.us, %129 ], [ %.083.us, %127 ], [ %126, %125 ], [ %124, %123 ], [ %.083.us, %122 ]
  %.080.us = phi i32 [ %130, %129 ], [ %128, %127 ], [ %.082.us, %125 ], [ %.082.us, %123 ], [ %.082.us, %122 ]
  %132 = invoke noundef i32 @_ZNK11lichtenberg10CellList2D9get_countEii(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %.081.us, i32 noundef %.080.us)
          to label %133 unwind label %.split165.us

133:                                              ; preds = %131
  %134 = icmp sgt i32 %132, %.086.us
  br i1 %134, label %.thread.us, label %135

135:                                              ; preds = %133
  %136 = add nuw nsw i32 %.086.us, 1
  invoke void @_ZN11lichtenberg10CellList2D9set_countEiii(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %.081.us, i32 noundef %.080.us, i32 noundef %136)
          to label %.preheader.us unwind label %.split165.us

.thread.us:                                       ; preds = %122, %133, %119
  %137 = add nuw nsw i32 %.089155.us, 1
  %exitcond171.not = icmp eq i32 %137, %17
  br i1 %exitcond171.not, label %._crit_edge157.us, label %117, !llvm.loop !31

._crit_edge157.us:                                ; preds = %.thread.us
  %138 = add nuw nsw i32 %.090158.us, 1
  %exitcond172.not = icmp eq i32 %138, %19
  br i1 %exitcond172.not, label %._crit_edge159, label %.preheader133.us, !llvm.loop !32

.split.us160:                                     ; preds = %117
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %142

.split162.us:                                     ; preds = %.preheader.us
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %142

.split165.us:                                     ; preds = %135, %131
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %142

._crit_edge159:                                   ; preds = %._crit_edge157.us, %107, %.preheader134
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret void

142:                                              ; preds = %64, %71, %104, %.split.us154, %.split162.us, %.split165.us, %.split.us160, %54, %50, %48
  %.pn122.pn = phi { ptr, i32 } [ %.pn122, %50 ], [ %49, %48 ], [ %55, %54 ], [ %116, %.split.us154 ], [ %.pn, %104 ], [ %72, %71 ], [ %65, %64 ], [ %139, %.split.us160 ], [ %141, %.split165.us ], [ %140, %.split162.us ]
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn122.pn

143:                                              ; preds = %53
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbiiPKN11lichtenberg10CellList2DEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbiiPKN11lichtenberg10CellList2DEEEclEiiS3_(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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 ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm0EJbbEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3getILm1EJbbEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS4_(ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

declare void @_ZN11lichtenberg10CellList2D9set_countEiii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZNK11lichtenberg10CellList2D9get_countEii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #3

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync 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 = { 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 = { nounwind }
attributes #7 = { noreturn }

!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, !17, i64 64}
!6 = !{!"_ZTSN11lichtenberg9SimulatorE", !7, i64 0, !13, i64 16, !13, i64 17, !13, i64 18, !13, i64 19, !14, i64 24, !16, i64 56}
!7 = !{!"_ZTSSt10shared_ptrIN11lichtenberg5model10BreakModelEE", !8, i64 0}
!8 = !{!"_ZTSSt12__shared_ptrIN11lichtenberg5model10BreakModelELN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0, !12, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0}
!13 = !{!"bool", !10, i64 0}
!14 = !{!"_ZTSSt8functionIFbiiEE", !15, i64 0, !9, i64 24}
!15 = !{!"_ZTSSt14_Function_base", !10, i64 0, !9, i64 16}
!16 = !{!"_ZTSN11lichtenberg10CellList2DE", !9, i64 0, !17, i64 8, !17, i64 12}
!17 = !{!"int", !10, i64 0}
!18 = !{!6, !17, i64 68}
!19 = !{!17, !17, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !11, i64 0}
!25 = !{!13, !13, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass