; LLVM IR from mackorone/mms :: old/v2/src/mouse/mackAlgo/MackAlgo.ll (ZN8mackAlgo8MackAlgo4moveEv)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.mackAlgo::CellHeap" = type { i32, i32, ptr }
%"class.mackAlgo::MackAlgo" = type <{ %class.IMouseAlgorithm, ptr, [16 x [16 x %"class.mackAlgo::Cell"]], i32, i32, i32, i8, [3 x i8], i32, [4 x i8] }>
%class.IMouseAlgorithm = type { ptr }
%"class.mackAlgo::Cell" = type <{ ptr, i32, i32, [4 x i8], [4 x i8], i32, [4 x i8], ptr, i32, i32, float, i8, [3 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZZN8mackAlgo8MackAlgo4moveEvE14sequenceNumber = external hidden global i32, align 4
@.str.68 = external hidden unnamed_addr constant [43 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8mackAlgo8MackAlgo4moveEv(ptr noundef nonnull align 8 dereferenceable(14372) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.mackAlgo::CellHeap", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  %20 = load i32, ptr @_ZZN8mackAlgo8MackAlgo4moveEvE14sequenceNumber, align 4, !tbaa !9
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr @_ZZN8mackAlgo8MackAlgo4moveEvE14sequenceNumber, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %22 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 2
  %23 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %22, i64 0, i64 %25
  %27 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 4
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [16 x %"class.mackAlgo::Cell"], ptr %26, i64 0, i64 %29
  store ptr %30, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load i32, ptr @_ZZN8mackAlgo8MackAlgo4moveEvE14sequenceNumber, align 4, !tbaa !9
  call void @_ZN8mackAlgo4Cell17setSequenceNumberEi(ptr noundef nonnull align 8 dereferenceable(53) %31, i32 noundef %32)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 5
  %35 = load i32, ptr %34, align 8, !tbaa !16
  call void @_ZN8mackAlgo4Cell18setSourceDirectionEi(ptr noundef nonnull align 8 dereferenceable(53) %33, i32 noundef %35)
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN8mackAlgo4Cell9setParentEPS0_(ptr noundef nonnull align 8 dereferenceable(53) %36, ptr noundef null)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN8mackAlgo4Cell11setDistanceEf(ptr noundef nonnull align 8 dereferenceable(53) %37, float noundef 0.000000e+00)
  call void @_ZN8mackAlgo8MackAlgo29initializeDestinationDistanceEv(ptr noundef nonnull align 8 dereferenceable(14372) %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  call void @_ZN8mackAlgo8CellHeapC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN8mackAlgo8CellHeap4pushEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %38)
          to label %39 unwind label %59

39:                                               ; preds = %1
  br label %40

40:                                               ; preds = %154, %39
  %41 = invoke noundef i32 @_ZNK8mackAlgo8CellHeap4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %42 unwind label %59

42:                                               ; preds = %40
  %43 = icmp sgt i32 %41, 0
  br i1 %43, label %44, label %158

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %45 = invoke noundef ptr @_ZN8mackAlgo8CellHeap3popEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %46 unwind label %63

46:                                               ; preds = %44
  store ptr %45, ptr %8, align 8, !tbaa !5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN8mackAlgo4Cell11setExaminedEb(ptr noundef nonnull align 8 dereferenceable(53) %47, i1 noundef zeroext true)
          to label %48 unwind label %63

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53) %49)
          to label %51 unwind label %67

51:                                               ; preds = %48
  store i32 %50, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53) %52)
          to label %54 unwind label %71

54:                                               ; preds = %51
  store i32 %53, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %150, %54
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = icmp slt i32 %56, 4
  br i1 %57, label %75, label %58

58:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %154

59:                                               ; preds = %170, %168, %164, %162, %161, %158, %40, %1
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  br label %280

63:                                               ; preds = %46, %44
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %6, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %7, align 4
  br label %157

67:                                               ; preds = %48
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %6, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %7, align 4
  br label %156

71:                                               ; preds = %51
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %6, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %7, align 4
  br label %155

75:                                               ; preds = %55
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(53) %76, i32 noundef %77)
          to label %79 unwind label %82

79:                                               ; preds = %75
  br i1 %78, label %149, label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %81, label %122 [
    i32 0, label %86
    i32 1, label %95
    i32 2, label %104
    i32 3, label %113
  ]

82:                                               ; preds = %75
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  br label %153

86:                                               ; preds = %80
  %87 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 2
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [16 x %"class.mackAlgo::Cell"], ptr %90, i64 0, i64 %93
  store ptr %94, ptr %12, align 8, !tbaa !5
  br label %122

95:                                               ; preds = %80
  %96 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 2
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %96, i64 0, i64 %99
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [16 x %"class.mackAlgo::Cell"], ptr %100, i64 0, i64 %102
  store ptr %103, ptr %12, align 8, !tbaa !5
  br label %122

104:                                              ; preds = %80
  %105 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 2
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %105, i64 0, i64 %107
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = sub nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [16 x %"class.mackAlgo::Cell"], ptr %108, i64 0, i64 %111
  store ptr %112, ptr %12, align 8, !tbaa !5
  br label %122

113:                                              ; preds = %80
  %114 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 2
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = sub nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %114, i64 0, i64 %117
  %119 = load i32, ptr %10, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [16 x %"class.mackAlgo::Cell"], ptr %118, i64 0, i64 %120
  store ptr %121, ptr %12, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %113, %104, %95, %86, %80
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %123)
          to label %125 unwind label %143

125:                                              ; preds = %122
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %126)
          to label %128 unwind label %143

128:                                              ; preds = %125
  %129 = icmp ne i32 %124, %127
  br i1 %129, label %134, label %130

130:                                              ; preds = %128
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell11getExaminedEv(ptr noundef nonnull align 8 dereferenceable(53) %131)
          to label %133 unwind label %143

133:                                              ; preds = %130
  br i1 %132, label %148, label %134

134:                                              ; preds = %133, %128
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = invoke noundef zeroext i1 @_ZN8mackAlgo8MackAlgo15inspectNeighborEPNS_4CellES2_i(ptr noundef nonnull align 8 dereferenceable(14372) %19, ptr noundef %135, ptr noundef %136, i32 noundef %137)
          to label %139 unwind label %143

139:                                              ; preds = %134
  br i1 %138, label %140, label %147

140:                                              ; preds = %139
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN8mackAlgo8CellHeap4pushEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %141)
          to label %142 unwind label %143

142:                                              ; preds = %140
  br label %147

143:                                              ; preds = %140, %134, %130, %125, %122
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %6, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %153

147:                                              ; preds = %142, %139
  br label %148

148:                                              ; preds = %147, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %149

149:                                              ; preds = %148, %79
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %11, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %11, align 4, !tbaa !9
  br label %55, !llvm.loop !17

153:                                              ; preds = %143, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %155

154:                                              ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %40, !llvm.loop !19

155:                                              ; preds = %153, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %156

156:                                              ; preds = %155, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %157

157:                                              ; preds = %156, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %280

158:                                              ; preds = %42
  %159 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !20
  invoke void @_ZN3sim14MouseInterface17clearAllTileColorEv(ptr noundef nonnull align 8 dereferenceable(296) %160)
          to label %161 unwind label %59

161:                                              ; preds = %158
  invoke void @_ZN8mackAlgo8MackAlgo11colorCenterEc(ptr noundef nonnull align 8 dereferenceable(14372) %19, i8 noundef signext 71)
          to label %162 unwind label %59

162:                                              ; preds = %161
  %163 = invoke noundef ptr @_ZN8mackAlgo8MackAlgo25getClosestDestinationCellEv(ptr noundef nonnull align 8 dereferenceable(14372) %19)
          to label %164 unwind label %59

164:                                              ; preds = %162
  %165 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %163)
          to label %166 unwind label %59

166:                                              ; preds = %164
  %167 = icmp eq ptr %165, null
  br i1 %167, label %168, label %173

168:                                              ; preds = %166
  %169 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.68)
          to label %170 unwind label %59

170:                                              ; preds = %168
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %172 unwind label %59

172:                                              ; preds = %170
  store i1 false, ptr %2, align 1
  store i32 1, ptr %13, align 4
  br label %278

173:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %174 = invoke noundef ptr @_ZN8mackAlgo8MackAlgo25getClosestDestinationCellEv(ptr noundef nonnull align 8 dereferenceable(14372) %19)
          to label %175 unwind label %210

175:                                              ; preds = %173
  store ptr %174, ptr %14, align 8, !tbaa !5
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53) %176)
          to label %178 unwind label %210

178:                                              ; preds = %175
  %179 = load ptr, ptr %14, align 8, !tbaa !5
  %180 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53) %179)
          to label %181 unwind label %210

181:                                              ; preds = %178
  invoke void @_ZN8mackAlgo8MackAlgo8setColorEiic(ptr noundef nonnull align 8 dereferenceable(14372) %19, i32 noundef %177, i32 noundef %180, i8 noundef signext 66)
          to label %182 unwind label %210

182:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %183)
          to label %185 unwind label %214

185:                                              ; preds = %182
  store ptr %184, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %186 = load ptr, ptr %15, align 8, !tbaa !5
  %187 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %186)
          to label %188 unwind label %218

188:                                              ; preds = %185
  store ptr %187, ptr %16, align 8, !tbaa !5
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8mackAlgo4Cell9setParentEPS0_(ptr noundef nonnull align 8 dereferenceable(53) %189, ptr noundef null)
          to label %190 unwind label %218

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %209, %190
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %222

194:                                              ; preds = %191
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  %196 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53) %195)
          to label %197 unwind label %218

197:                                              ; preds = %194
  %198 = load ptr, ptr %15, align 8, !tbaa !5
  %199 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53) %198)
          to label %200 unwind label %218

200:                                              ; preds = %197
  invoke void @_ZN8mackAlgo8MackAlgo8setColorEiic(ptr noundef nonnull align 8 dereferenceable(14372) %19, i32 noundef %196, i32 noundef %199, i8 noundef signext 66)
          to label %201 unwind label %218

201:                                              ; preds = %200
  %202 = load ptr, ptr %15, align 8, !tbaa !5
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8mackAlgo4Cell9setParentEPS0_(ptr noundef nonnull align 8 dereferenceable(53) %202, ptr noundef %203)
          to label %204 unwind label %218

204:                                              ; preds = %201
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %205, ptr %14, align 8, !tbaa !5
  %206 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %206, ptr %15, align 8, !tbaa !5
  %207 = load ptr, ptr %15, align 8, !tbaa !5
  %208 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %207)
          to label %209 unwind label %218

209:                                              ; preds = %204
  store ptr %208, ptr %16, align 8, !tbaa !5
  br label %191, !llvm.loop !21

210:                                              ; preds = %181, %178, %175, %173
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %6, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %7, align 4
  br label %277

214:                                              ; preds = %182
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %6, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %7, align 4
  br label %276

218:                                              ; preds = %204, %201, %200, %197, %194, %188, %185
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %6, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %7, align 4
  br label %275

222:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %223 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %223, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %224 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %224, ptr %18, align 8, !tbaa !5
  br label %225

225:                                              ; preds = %248, %222
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = icmp ne ptr %226, null
  br i1 %227, label %228, label %235

228:                                              ; preds = %225
  %229 = load ptr, ptr %17, align 8, !tbaa !5
  %230 = load ptr, ptr %18, align 8, !tbaa !5
  %231 = invoke noundef i32 @_ZNK8mackAlgo4Cell18getSourceDirectionEv(ptr noundef nonnull align 8 dereferenceable(53) %230)
          to label %232 unwind label %249

232:                                              ; preds = %228
  %233 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell7isKnownEi(ptr noundef nonnull align 8 dereferenceable(53) %229, i32 noundef %231)
          to label %234 unwind label %249

234:                                              ; preds = %232
  br label %235

235:                                              ; preds = %234, %225
  %236 = phi i1 [ false, %225 ], [ %233, %234 ]
  br i1 %236, label %237, label %253

237:                                              ; preds = %235
  %238 = load ptr, ptr %18, align 8, !tbaa !5
  %239 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53) %238)
          to label %240 unwind label %249

240:                                              ; preds = %237
  %241 = load ptr, ptr %18, align 8, !tbaa !5
  %242 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53) %241)
          to label %243 unwind label %249

243:                                              ; preds = %240
  invoke void @_ZN8mackAlgo8MackAlgo8setColorEiic(ptr noundef nonnull align 8 dereferenceable(14372) %19, i32 noundef %239, i32 noundef %242, i8 noundef signext 89)
          to label %244 unwind label %249

244:                                              ; preds = %243
  %245 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %245, ptr %17, align 8, !tbaa !5
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  %247 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %246)
          to label %248 unwind label %249

248:                                              ; preds = %244
  store ptr %247, ptr %18, align 8, !tbaa !5
  br label %225, !llvm.loop !22

249:                                              ; preds = %269, %267, %262, %258, %244, %243, %240, %237, %232, %228
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %6, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %275

253:                                              ; preds = %235
  %254 = getelementptr inbounds %"class.mackAlgo::MackAlgo", ptr %19, i32 0, i32 8
  store i32 0, ptr %254, align 8, !tbaa !23
  br label %255

255:                                              ; preds = %273, %253
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = icmp ne ptr %256, null
  br i1 %257, label %258, label %265

258:                                              ; preds = %255
  %259 = load ptr, ptr %15, align 8, !tbaa !5
  %260 = load ptr, ptr %14, align 8, !tbaa !5
  %261 = invoke noundef i32 @_ZNK8mackAlgo4Cell18getSourceDirectionEv(ptr noundef nonnull align 8 dereferenceable(53) %260)
          to label %262 unwind label %249

262:                                              ; preds = %258
  %263 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell7isKnownEi(ptr noundef nonnull align 8 dereferenceable(53) %259, i32 noundef %261)
          to label %264 unwind label %249

264:                                              ; preds = %262
  br label %265

265:                                              ; preds = %264, %255
  %266 = phi i1 [ false, %255 ], [ %263, %264 ]
  br i1 %266, label %267, label %274

267:                                              ; preds = %265
  %268 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8mackAlgo8MackAlgo11moveOneCellEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(14372) %19, ptr noundef %268)
          to label %269 unwind label %249

269:                                              ; preds = %267
  %270 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %270, ptr %15, align 8, !tbaa !5
  %271 = load ptr, ptr %14, align 8, !tbaa !5
  %272 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %271)
          to label %273 unwind label %249

273:                                              ; preds = %269
  store ptr %272, ptr %14, align 8, !tbaa !5
  br label %255, !llvm.loop !24

274:                                              ; preds = %265
  store i1 true, ptr %2, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %278

275:                                              ; preds = %249, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %276

276:                                              ; preds = %275, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %277

277:                                              ; preds = %276, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %280

278:                                              ; preds = %274, %172
  call void @_ZN8mackAlgo8CellHeapD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %279 = load i1, ptr %2, align 1
  ret i1 %279

280:                                              ; preds = %277, %157, %59
  call void @_ZN8mackAlgo8CellHeapD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %281

281:                                              ; preds = %280
  %282 = load ptr, ptr %6, align 8
  %283 = load i32, ptr %7, align 4
  %284 = insertvalue { ptr, i32 } poison, ptr %282, 0
  %285 = insertvalue { ptr, i32 } %284, i32 %283, 1
  resume { ptr, i32 } %285
}

declare void @_ZN8mackAlgo4Cell17setSequenceNumberEi(ptr noundef nonnull align 8 dereferenceable(53), i32 noundef) #3

declare void @_ZN8mackAlgo4Cell18setSourceDirectionEi(ptr noundef nonnull align 8 dereferenceable(53), i32 noundef) #3

declare void @_ZN8mackAlgo4Cell9setParentEPS0_(ptr noundef nonnull align 8 dereferenceable(53), ptr noundef) #3

declare void @_ZN8mackAlgo4Cell11setDistanceEf(ptr noundef nonnull align 8 dereferenceable(53), float noundef) #3

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

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

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

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

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

declare void @_ZN8mackAlgo4Cell11setExaminedEb(ptr noundef nonnull align 8 dereferenceable(53), i1 noundef zeroext) #3

declare noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53)) #3

declare noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53)) #3

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

declare noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53)) #3

declare noundef zeroext i1 @_ZNK8mackAlgo4Cell11getExaminedEv(ptr noundef nonnull align 8 dereferenceable(53)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mackAlgo8MackAlgo11colorCenterEc(ptr noundef nonnull align 8 dereferenceable(14372), i8 noundef signext) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8mackAlgo8MackAlgo25getClosestDestinationCellEv(ptr noundef nonnull align 8 dereferenceable(14372)) #2 align 2

declare noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mackAlgo8MackAlgo8setColorEiic(ptr noundef nonnull align 8 dereferenceable(14372), i32 noundef, i32 noundef, i8 noundef signext) #2 align 2

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

declare noundef i32 @_ZNK8mackAlgo4Cell18getSourceDirectionEv(ptr noundef nonnull align 8 dereferenceable(53)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mackAlgo8MackAlgo11moveOneCellEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(14372), ptr noundef) #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 14352}
!12 = !{!"_ZTSN8mackAlgo8MackAlgoE", !13, i64 0, !6, i64 8, !7, i64 16, !10, i64 14352, !10, i64 14356, !10, i64 14360, !14, i64 14364, !10, i64 14368}
!13 = !{!"_ZTS15IMouseAlgorithm"}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !10, i64 14356}
!16 = !{!12, !10, i64 14360}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!12, !6, i64 8}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = !{!12, !10, i64 14368}
!24 = distinct !{!24, !18}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.mackAlgo::CellHeap" = type { i32, i32, ptr }
%"class.mackAlgo::Cell" = type <{ ptr, i32, i32, [4 x i8], [4 x i8], i32, [4 x i8], ptr, i32, i32, float, i8, [3 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZZN8mackAlgo8MackAlgo4moveEvE14sequenceNumber = external hidden local_unnamed_addr global i32, align 4
@.str.68 = external hidden unnamed_addr constant [43 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8mackAlgo8MackAlgo4moveEv(ptr noundef nonnull align 8 dereferenceable(14372) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.mackAlgo::CellHeap", align 8
  %3 = load i32, ptr @_ZZN8mackAlgo8MackAlgo4moveEvE14sequenceNumber, align 4, !tbaa !5
  %4 = add nsw i32 %3, 1
  store i32 %4, ptr @_ZZN8mackAlgo8MackAlgo4moveEvE14sequenceNumber, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = getelementptr inbounds i8, ptr %0, i64 14352
  %7 = load i32, ptr %6, align 8, !tbaa !9
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds i8, ptr %0, i64 14356
  %10 = load i32, ptr %9, align 4, !tbaa !14
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %5, i64 0, i64 %8, i64 %11
  tail call void @_ZN8mackAlgo4Cell17setSequenceNumberEi(ptr noundef nonnull align 8 dereferenceable(53) %12, i32 noundef %4)
  %13 = getelementptr inbounds i8, ptr %0, i64 14360
  %14 = load i32, ptr %13, align 8, !tbaa !15
  tail call void @_ZN8mackAlgo4Cell18setSourceDirectionEi(ptr noundef nonnull align 8 dereferenceable(53) %12, i32 noundef %14)
  tail call void @_ZN8mackAlgo4Cell9setParentEPS0_(ptr noundef nonnull align 8 dereferenceable(53) %12, ptr noundef null)
  tail call void @_ZN8mackAlgo4Cell11setDistanceEf(ptr noundef nonnull align 8 dereferenceable(53) %12, float noundef 0.000000e+00)
  tail call void @_ZN8mackAlgo8MackAlgo29initializeDestinationDistanceEv(ptr noundef nonnull align 8 dereferenceable(14372) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8mackAlgo8CellHeapC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  invoke void @_ZN8mackAlgo8CellHeap4pushEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %12)
          to label %.preheader99 unwind label %.loopexit.split-lp101

.preheader99:                                     ; preds = %1, %.preheader99.backedge
  %15 = invoke noundef i32 @_ZNK8mackAlgo8CellHeap4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %16 unwind label %.loopexit100

16:                                               ; preds = %.preheader99
  %17 = icmp sgt i32 %15, 0
  br i1 %17, label %18, label %108

18:                                               ; preds = %16
  %19 = invoke noundef ptr @_ZN8mackAlgo8CellHeap3popEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %20 unwind label %40

20:                                               ; preds = %18
  invoke void @_ZN8mackAlgo4Cell11setExaminedEb(ptr noundef nonnull align 8 dereferenceable(53) %19, i1 noundef zeroext true)
          to label %21 unwind label %40

21:                                               ; preds = %20
  %22 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53) %19)
          to label %23 unwind label %42

23:                                               ; preds = %21
  %24 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53) %19)
          to label %.preheader97 unwind label %44

.preheader97:                                     ; preds = %23
  %25 = add nsw i32 %22, -1
  %26 = sext i32 %25 to i64
  %27 = sext i32 %24 to i64
  %28 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %5, i64 0, i64 %26, i64 %27
  %29 = sext i32 %22 to i64
  %30 = add nsw i32 %24, -1
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %5, i64 0, i64 %29, i64 %31
  %33 = add nsw i32 %22, 1
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %5, i64 0, i64 %34, i64 %27
  %36 = add nsw i32 %24, 1
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [16 x [16 x %"class.mackAlgo::Cell"]], ptr %5, i64 0, i64 %29, i64 %37
  %39 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(53) %19, i32 noundef 0)
          to label %46 unwind label %47

.loopexit100:                                     ; preds = %.preheader99
  %lpad.loopexit102 = landingpad { ptr, i32 }
          cleanup
  br label %168

.loopexit.split-lp101:                            ; preds = %1, %108, %111, %112, %114, %118, %120
  %lpad.loopexit.split-lp103 = landingpad { ptr, i32 }
          cleanup
  br label %168

40:                                               ; preds = %20, %18
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %168

42:                                               ; preds = %21
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %168

44:                                               ; preds = %23
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %168

46:                                               ; preds = %.preheader97
  br i1 %39, label %63, label %49

47:                                               ; preds = %93, %78, %63, %.preheader97
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %168

49:                                               ; preds = %46
  %50 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %38)
          to label %51 unwind label %61

51:                                               ; preds = %49
  %52 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %19)
          to label %53 unwind label %61

53:                                               ; preds = %51
  %.not84 = icmp eq i32 %50, %52
  br i1 %.not84, label %54, label %57

54:                                               ; preds = %53
  %55 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell11getExaminedEv(ptr noundef nonnull align 8 dereferenceable(53) %38)
          to label %56 unwind label %61

56:                                               ; preds = %54
  br i1 %55, label %63, label %57

57:                                               ; preds = %56, %53
  %58 = invoke noundef zeroext i1 @_ZN8mackAlgo8MackAlgo15inspectNeighborEPNS_4CellES2_i(ptr noundef nonnull align 8 dereferenceable(14372) %0, ptr noundef nonnull %19, ptr noundef nonnull %38, i32 noundef 0)
          to label %59 unwind label %61

59:                                               ; preds = %57
  br i1 %58, label %60, label %63

60:                                               ; preds = %59
  invoke void @_ZN8mackAlgo8CellHeap4pushEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %38)
          to label %63 unwind label %61

61:                                               ; preds = %107, %104, %101, %98, %96, %92, %89, %86, %83, %81, %77, %74, %71, %68, %66, %60, %57, %54, %51, %49
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %168

63:                                               ; preds = %56, %60, %59, %46
  %64 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(53) %19, i32 noundef 1)
          to label %65 unwind label %47

65:                                               ; preds = %63
  br i1 %64, label %78, label %66

66:                                               ; preds = %65
  %67 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %35)
          to label %68 unwind label %61

68:                                               ; preds = %66
  %69 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %19)
          to label %70 unwind label %61

70:                                               ; preds = %68
  %.not84.1 = icmp eq i32 %67, %69
  br i1 %.not84.1, label %71, label %74

71:                                               ; preds = %70
  %72 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell11getExaminedEv(ptr noundef nonnull align 8 dereferenceable(53) %35)
          to label %73 unwind label %61

73:                                               ; preds = %71
  br i1 %72, label %78, label %74

74:                                               ; preds = %73, %70
  %75 = invoke noundef zeroext i1 @_ZN8mackAlgo8MackAlgo15inspectNeighborEPNS_4CellES2_i(ptr noundef nonnull align 8 dereferenceable(14372) %0, ptr noundef nonnull %19, ptr noundef nonnull %35, i32 noundef 1)
          to label %76 unwind label %61

76:                                               ; preds = %74
  br i1 %75, label %77, label %78

77:                                               ; preds = %76
  invoke void @_ZN8mackAlgo8CellHeap4pushEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %35)
          to label %78 unwind label %61

78:                                               ; preds = %77, %76, %73, %65
  %79 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(53) %19, i32 noundef 2)
          to label %80 unwind label %47

80:                                               ; preds = %78
  br i1 %79, label %93, label %81

81:                                               ; preds = %80
  %82 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %32)
          to label %83 unwind label %61

83:                                               ; preds = %81
  %84 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %19)
          to label %85 unwind label %61

85:                                               ; preds = %83
  %.not84.2 = icmp eq i32 %82, %84
  br i1 %.not84.2, label %86, label %89

86:                                               ; preds = %85
  %87 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell11getExaminedEv(ptr noundef nonnull align 8 dereferenceable(53) %32)
          to label %88 unwind label %61

88:                                               ; preds = %86
  br i1 %87, label %93, label %89

89:                                               ; preds = %88, %85
  %90 = invoke noundef zeroext i1 @_ZN8mackAlgo8MackAlgo15inspectNeighborEPNS_4CellES2_i(ptr noundef nonnull align 8 dereferenceable(14372) %0, ptr noundef nonnull %19, ptr noundef nonnull %32, i32 noundef 2)
          to label %91 unwind label %61

91:                                               ; preds = %89
  br i1 %90, label %92, label %93

92:                                               ; preds = %91
  invoke void @_ZN8mackAlgo8CellHeap4pushEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %32)
          to label %93 unwind label %61

93:                                               ; preds = %92, %91, %88, %80
  %94 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(53) %19, i32 noundef 3)
          to label %95 unwind label %47

95:                                               ; preds = %93
  br i1 %94, label %.preheader99.backedge, label %96

96:                                               ; preds = %95
  %97 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %28)
          to label %98 unwind label %61

98:                                               ; preds = %96
  %99 = invoke noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53) %19)
          to label %100 unwind label %61

100:                                              ; preds = %98
  %.not84.3 = icmp eq i32 %97, %99
  br i1 %.not84.3, label %101, label %104

101:                                              ; preds = %100
  %102 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell11getExaminedEv(ptr noundef nonnull align 8 dereferenceable(53) %28)
          to label %103 unwind label %61

103:                                              ; preds = %101
  br i1 %102, label %.preheader99.backedge, label %104

104:                                              ; preds = %103, %100
  %105 = invoke noundef zeroext i1 @_ZN8mackAlgo8MackAlgo15inspectNeighborEPNS_4CellES2_i(ptr noundef nonnull align 8 dereferenceable(14372) %0, ptr noundef nonnull %19, ptr noundef nonnull %28, i32 noundef 3)
          to label %106 unwind label %61

106:                                              ; preds = %104
  br i1 %105, label %107, label %.preheader99.backedge

107:                                              ; preds = %106
  invoke void @_ZN8mackAlgo8CellHeap4pushEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %28)
          to label %.preheader99.backedge unwind label %61

.preheader99.backedge:                            ; preds = %107, %106, %103, %95
  br label %.preheader99, !llvm.loop !16

108:                                              ; preds = %16
  %109 = getelementptr inbounds i8, ptr %0, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !18
  invoke void @_ZN3sim14MouseInterface17clearAllTileColorEv(ptr noundef nonnull align 8 dereferenceable(296) %110)
          to label %111 unwind label %.loopexit.split-lp101

111:                                              ; preds = %108
  invoke void @_ZN8mackAlgo8MackAlgo11colorCenterEc(ptr noundef nonnull align 8 dereferenceable(14372) %0, i8 noundef signext 71)
          to label %112 unwind label %.loopexit.split-lp101

112:                                              ; preds = %111
  %113 = invoke noundef ptr @_ZN8mackAlgo8MackAlgo25getClosestDestinationCellEv(ptr noundef nonnull align 8 dereferenceable(14372) %0)
          to label %114 unwind label %.loopexit.split-lp101

114:                                              ; preds = %112
  %115 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %113)
          to label %116 unwind label %.loopexit.split-lp101

116:                                              ; preds = %114
  %117 = icmp ne ptr %115, null
  br i1 %117, label %122, label %118

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.68)
          to label %120 unwind label %.loopexit.split-lp101

120:                                              ; preds = %118
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.critedge2 unwind label %.loopexit.split-lp101

122:                                              ; preds = %116
  %123 = invoke noundef ptr @_ZN8mackAlgo8MackAlgo25getClosestDestinationCellEv(ptr noundef nonnull align 8 dereferenceable(14372) %0)
          to label %124 unwind label %142

124:                                              ; preds = %122
  %125 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53) %123)
          to label %126 unwind label %142

126:                                              ; preds = %124
  %127 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53) %123)
          to label %128 unwind label %142

128:                                              ; preds = %126
  invoke void @_ZN8mackAlgo8MackAlgo8setColorEiic(ptr noundef nonnull align 8 dereferenceable(14372) %0, i32 noundef %125, i32 noundef %127, i8 noundef signext 66)
          to label %129 unwind label %142

129:                                              ; preds = %128
  %130 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %123)
          to label %131 unwind label %144

131:                                              ; preds = %129
  %132 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %130)
          to label %133 unwind label %.loopexit.split-lp93

133:                                              ; preds = %131
  invoke void @_ZN8mackAlgo4Cell9setParentEPS0_(ptr noundef nonnull align 8 dereferenceable(53) %123, ptr noundef null)
          to label %.preheader91 unwind label %.loopexit.split-lp93

.preheader91:                                     ; preds = %133, %140
  %.064 = phi ptr [ %.063, %140 ], [ %123, %133 ]
  %.063 = phi ptr [ %.062, %140 ], [ %130, %133 ]
  %.062 = phi ptr [ %141, %140 ], [ %132, %133 ]
  %.not = icmp eq ptr %.062, null
  br i1 %.not, label %.preheader, label %134

134:                                              ; preds = %.preheader91
  %135 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53) %.063)
          to label %136 unwind label %.loopexit92

136:                                              ; preds = %134
  %137 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53) %.063)
          to label %138 unwind label %.loopexit92

138:                                              ; preds = %136
  invoke void @_ZN8mackAlgo8MackAlgo8setColorEiic(ptr noundef nonnull align 8 dereferenceable(14372) %0, i32 noundef %135, i32 noundef %137, i8 noundef signext 66)
          to label %139 unwind label %.loopexit92

139:                                              ; preds = %138
  invoke void @_ZN8mackAlgo4Cell9setParentEPS0_(ptr noundef nonnull align 8 dereferenceable(53) %.063, ptr noundef nonnull %.064)
          to label %140 unwind label %.loopexit92

140:                                              ; preds = %139
  %141 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %.062)
          to label %.preheader91 unwind label %.loopexit92, !llvm.loop !19

142:                                              ; preds = %128, %126, %124, %122
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %168

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

.loopexit92:                                      ; preds = %134, %136, %138, %139, %140
  %lpad.loopexit94 = landingpad { ptr, i32 }
          cleanup
  br label %168

.loopexit.split-lp93:                             ; preds = %131, %133
  %lpad.loopexit.split-lp95 = landingpad { ptr, i32 }
          cleanup
  br label %168

.preheader:                                       ; preds = %.preheader91, %156
  %.061 = phi ptr [ %.0, %156 ], [ %.063, %.preheader91 ]
  %.0 = phi ptr [ %157, %156 ], [ %.064, %.preheader91 ]
  %.not79 = icmp eq ptr %.0, null
  br i1 %.not79, label %.critedge, label %146

146:                                              ; preds = %.preheader
  %147 = invoke noundef i32 @_ZNK8mackAlgo4Cell18getSourceDirectionEv(ptr noundef nonnull align 8 dereferenceable(53) %.0)
          to label %148 unwind label %.loopexit.split-lp

148:                                              ; preds = %146
  %149 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell7isKnownEi(ptr noundef nonnull align 8 dereferenceable(53) %.061, i32 noundef %147)
          to label %150 unwind label %.loopexit.split-lp

150:                                              ; preds = %148
  br i1 %149, label %151, label %.critedge

151:                                              ; preds = %150
  %152 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53) %.0)
          to label %153 unwind label %.loopexit.split-lp

153:                                              ; preds = %151
  %154 = invoke noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53) %.0)
          to label %155 unwind label %.loopexit.split-lp

155:                                              ; preds = %153
  invoke void @_ZN8mackAlgo8MackAlgo8setColorEiic(ptr noundef nonnull align 8 dereferenceable(14372) %0, i32 noundef %152, i32 noundef %154, i8 noundef signext 89)
          to label %156 unwind label %.loopexit.split-lp

156:                                              ; preds = %155
  %157 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %.0)
          to label %.preheader unwind label %.loopexit.split-lp, !llvm.loop !20

.loopexit:                                        ; preds = %160, %162, %165, %166
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %168

.loopexit.split-lp:                               ; preds = %146, %148, %151, %153, %155, %156
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %168

.critedge:                                        ; preds = %.preheader, %150
  %158 = getelementptr inbounds i8, ptr %0, i64 14368
  store i32 0, ptr %158, align 8, !tbaa !21
  br label %159

159:                                              ; preds = %166, %.critedge
  %.165 = phi ptr [ %.064, %.critedge ], [ %167, %166 ]
  %.1 = phi ptr [ %.063, %.critedge ], [ %.165, %166 ]
  %.not80 = icmp eq ptr %.165, null
  br i1 %.not80, label %.critedge2, label %160

160:                                              ; preds = %159
  %161 = invoke noundef i32 @_ZNK8mackAlgo4Cell18getSourceDirectionEv(ptr noundef nonnull align 8 dereferenceable(53) %.165)
          to label %162 unwind label %.loopexit

162:                                              ; preds = %160
  %163 = invoke noundef zeroext i1 @_ZNK8mackAlgo4Cell7isKnownEi(ptr noundef nonnull align 8 dereferenceable(53) %.1, i32 noundef %161)
          to label %164 unwind label %.loopexit

164:                                              ; preds = %162
  br i1 %163, label %165, label %.critedge2

165:                                              ; preds = %164
  invoke void @_ZN8mackAlgo8MackAlgo11moveOneCellEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(14372) %0, ptr noundef nonnull %.165)
          to label %166 unwind label %.loopexit

166:                                              ; preds = %165
  %167 = invoke noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53) %.165)
          to label %159 unwind label %.loopexit, !llvm.loop !22

.critedge2:                                       ; preds = %164, %159, %120
  call void @_ZN8mackAlgo8CellHeapD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  ret i1 %117

168:                                              ; preds = %.loopexit, %.loopexit.split-lp, %.loopexit92, %.loopexit.split-lp93, %.loopexit100, %.loopexit.split-lp101, %142, %144, %40, %44, %61, %47, %42
  %.pn85.pn.pn.pn.pn = phi { ptr, i32 } [ %41, %40 ], [ %43, %42 ], [ %45, %44 ], [ %62, %61 ], [ %48, %47 ], [ %143, %142 ], [ %145, %144 ], [ %lpad.loopexit102, %.loopexit100 ], [ %lpad.loopexit.split-lp103, %.loopexit.split-lp101 ], [ %lpad.loopexit94, %.loopexit92 ], [ %lpad.loopexit.split-lp95, %.loopexit.split-lp93 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN8mackAlgo8CellHeapD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn85.pn.pn.pn.pn
}

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

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

declare void @_ZN8mackAlgo4Cell9setParentEPS0_(ptr noundef nonnull align 8 dereferenceable(53), ptr noundef) local_unnamed_addr #3

declare void @_ZN8mackAlgo4Cell11setDistanceEf(ptr noundef nonnull align 8 dereferenceable(53), float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mackAlgo8MackAlgo29initializeDestinationDistanceEv(ptr noundef nonnull align 8 dereferenceable(14372)) local_unnamed_addr #2 align 2

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

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

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

declare noundef ptr @_ZN8mackAlgo8CellHeap3popEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZN8mackAlgo4Cell11setExaminedEb(ptr noundef nonnull align 8 dereferenceable(53), i1 noundef zeroext) local_unnamed_addr #3

declare noundef i32 @_ZNK8mackAlgo4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(53)) local_unnamed_addr #3

declare noundef i32 @_ZNK8mackAlgo4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(53)) local_unnamed_addr #3

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

declare noundef i32 @_ZNK8mackAlgo4Cell17getSequenceNumberEv(ptr noundef nonnull align 8 dereferenceable(53)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK8mackAlgo4Cell11getExaminedEv(ptr noundef nonnull align 8 dereferenceable(53)) local_unnamed_addr #3

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

declare void @_ZN3sim14MouseInterface17clearAllTileColorEv(ptr noundef nonnull align 8 dereferenceable(296)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mackAlgo8MackAlgo11colorCenterEc(ptr noundef nonnull align 8 dereferenceable(14372), i8 noundef signext) local_unnamed_addr #2 align 2

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

declare noundef ptr @_ZNK8mackAlgo4Cell9getParentEv(ptr noundef nonnull align 8 dereferenceable(53)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mackAlgo8MackAlgo8setColorEiic(ptr noundef nonnull align 8 dereferenceable(14372), i32 noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #2 align 2

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

declare noundef i32 @_ZNK8mackAlgo4Cell18getSourceDirectionEv(ptr noundef nonnull align 8 dereferenceable(53)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mackAlgo8MackAlgo11moveOneCellEPNS_4CellE(ptr noundef nonnull align 8 dereferenceable(14372), ptr noundef) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 14352}
!10 = !{!"_ZTSN8mackAlgo8MackAlgoE", !11, i64 0, !12, i64 8, !7, i64 16, !6, i64 14352, !6, i64 14356, !6, i64 14360, !13, i64 14364, !6, i64 14368}
!11 = !{!"_ZTS15IMouseAlgorithm"}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!10, !6, i64 14356}
!15 = !{!10, !6, i64 14360}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !12, i64 8}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = !{!10, !6, i64 14368}
!22 = distinct !{!22, !17}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass