; LLVM IR from TharushaDinujaya/MicroMouse :: test/mms-cpp (Main)

; 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"

%struct.Point = type { i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.main.next = external hidden unnamed_addr constant %struct.Point, align 4
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.Point, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.Point, align 4
  %24 = alloca %struct.Point, align 4
  %25 = alloca %struct.Point, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca i32, align 4
  %30 = alloca %struct.Point, align 4
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca %struct.Point, align 4
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::allocator", align 1
  %36 = alloca %struct.Point, align 4
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator", align 1
  %39 = alloca %struct.Point, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %40 = call noundef ptr @_Z18initializeFloodMapv()
  store ptr %40, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %41 = call noundef ptr @_Z17initializeWallMapv()
  store ptr %41, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %42 = call noundef ptr @_Z12create_queuei(i32 noundef 100)
  store ptr %42, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %43 unwind label %70

43:                                               ; preds = %2
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %44 unwind label %74

44:                                               ; preds = %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @_ZN3API8setColorEiic(i32 noundef 0, i32 noundef 0, i8 noundef signext 65)
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %45 unwind label %79

45:                                               ; preds = %44
  invoke void @_ZN3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %46 unwind label %83

46:                                               ; preds = %45
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 100, ptr %17, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %251, %249, %46
  br label %48

48:                                               ; preds = %47
  %49 = load ptr, ptr %6, align 8, !tbaa !9
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_Z16update_flood_mapPPiS0_P5queue(ptr noundef %49, ptr noundef %50, ptr noundef %51)
  %52 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_Z13printFloodMapPPi(ptr noundef %52)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 99999, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 99999, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 99999, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 @__const.main.next, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 -1, ptr %22, align 4, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN3API8wallLeftEv()
  br i1 %53, label %88, label %54

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %55 = load i32, ptr %15, align 4, !tbaa !5
  %56 = load i32, ptr %16, align 4, !tbaa !5
  %57 = load i32, ptr %17, align 4, !tbaa !11
  %58 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %55, i32 noundef %56, i32 noundef %57, i32 noundef -1)
  store i64 %58, ptr %23, align 4
  %59 = load ptr, ptr %6, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.Point, ptr %23, i32 0, i32 0
  %61 = load i32, ptr %60, align 4, !tbaa !13
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %59, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.Point, ptr %23, i32 0, i32 1
  %66 = load i32, ptr %65, align 4, !tbaa !15
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i32, ptr %64, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  store i32 %69, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %93

70:                                               ; preds = %2
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %11, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %12, align 4
  br label %78

74:                                               ; preds = %43
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %11, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %78

78:                                               ; preds = %74, %70
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  br label %265

79:                                               ; preds = %44
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %11, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %12, align 4
  br label %87

83:                                               ; preds = %45
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %11, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %87

87:                                               ; preds = %83, %79
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %265

88:                                               ; preds = %48
  %89 = load ptr, ptr %7, align 8, !tbaa !9
  %90 = load i32, ptr %15, align 4, !tbaa !5
  %91 = load i32, ptr %16, align 4, !tbaa !5
  %92 = load i32, ptr %17, align 4, !tbaa !11
  call void @_Z11updateWallsPPiii6Orienti(ptr noundef %89, i32 noundef %90, i32 noundef %91, i32 noundef %92, i32 noundef -1)
  br label %93

93:                                               ; preds = %88, %54
  %94 = call noundef zeroext i1 @_ZN3API9wallRightEv()
  br i1 %94, label %111, label %95

95:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %96 = load i32, ptr %15, align 4, !tbaa !5
  %97 = load i32, ptr %16, align 4, !tbaa !5
  %98 = load i32, ptr %17, align 4, !tbaa !11
  %99 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %96, i32 noundef %97, i32 noundef %98, i32 noundef 1)
  store i64 %99, ptr %24, align 4
  %100 = load ptr, ptr %6, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.Point, ptr %24, i32 0, i32 0
  %102 = load i32, ptr %101, align 4, !tbaa !13
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %100, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.Point, ptr %24, i32 0, i32 1
  %107 = load i32, ptr %106, align 4, !tbaa !15
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %105, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  store i32 %110, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %116

111:                                              ; preds = %93
  %112 = load ptr, ptr %7, align 8, !tbaa !9
  %113 = load i32, ptr %15, align 4, !tbaa !5
  %114 = load i32, ptr %16, align 4, !tbaa !5
  %115 = load i32, ptr %17, align 4, !tbaa !11
  call void @_Z11updateWallsPPiii6Orienti(ptr noundef %112, i32 noundef %113, i32 noundef %114, i32 noundef %115, i32 noundef 1)
  br label %116

116:                                              ; preds = %111, %95
  %117 = call noundef zeroext i1 @_ZN3API9wallFrontEv()
  br i1 %117, label %134, label %118

118:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %119 = load i32, ptr %15, align 4, !tbaa !5
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = load i32, ptr %17, align 4, !tbaa !11
  %122 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %119, i32 noundef %120, i32 noundef %121, i32 noundef 0)
  store i64 %122, ptr %25, align 4
  %123 = load ptr, ptr %6, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct.Point, ptr %25, i32 0, i32 0
  %125 = load i32, ptr %124, align 4, !tbaa !13
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds ptr, ptr %123, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.Point, ptr %25, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !15
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i32, ptr %128, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  store i32 %133, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %139

134:                                              ; preds = %116
  %135 = load ptr, ptr %7, align 8, !tbaa !9
  %136 = load i32, ptr %15, align 4, !tbaa !5
  %137 = load i32, ptr %16, align 4, !tbaa !5
  %138 = load i32, ptr %17, align 4, !tbaa !11
  call void @_Z11updateWallsPPiii6Orienti(ptr noundef %135, i32 noundef %136, i32 noundef %137, i32 noundef %138, i32 noundef 0)
  br label %139

139:                                              ; preds = %134, %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %140 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %140, ptr %26, align 4, !tbaa !5
  %141 = load i32, ptr %26, align 4, !tbaa !5
  %142 = load i32, ptr %20, align 4, !tbaa !5
  %143 = icmp sgt i32 %141, %142
  br i1 %143, label %144, label %146

144:                                              ; preds = %139
  %145 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %145, ptr %26, align 4, !tbaa !5
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %144, %139
  %147 = load i32, ptr %26, align 4, !tbaa !5
  %148 = load i32, ptr %19, align 4, !tbaa !5
  %149 = icmp sgt i32 %147, %148
  br i1 %149, label %150, label %152

150:                                              ; preds = %146
  %151 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %151, ptr %26, align 4, !tbaa !5
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %150, %146
  %153 = load i32, ptr %26, align 4, !tbaa !5
  %154 = icmp eq i32 %153, 99999
  br i1 %154, label %155, label %170

155:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %156 unwind label %161

156:                                              ; preds = %155
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %157 unwind label %165

157:                                              ; preds = %156
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  call void @_ZN3API9turnRightEv()
  %158 = load i32, ptr %17, align 4, !tbaa !11
  %159 = call noundef i32 @_Z15getAbsDirection6Orienti(i32 noundef %158, i32 noundef 1)
  store i32 %159, ptr %17, align 4, !tbaa !11
  %160 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_Z15reset_flood_mapPPi(ptr noundef %160)
  store i32 2, ptr %29, align 4
  br label %249, !llvm.loop !16

161:                                              ; preds = %155
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %11, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %12, align 4
  br label %169

165:                                              ; preds = %156
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %11, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  br label %169

169:                                              ; preds = %165, %161
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  br label %253

170:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %171 = load i32, ptr %22, align 4, !tbaa !5
  %172 = icmp eq i32 %171, -1
  br i1 %172, label %173, label %191

173:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %174 unwind label %182

174:                                              ; preds = %173
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %175 unwind label %186

175:                                              ; preds = %174
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  call void @_ZN3API8turnLeftEv()
  call void @_ZN3API11moveForwardEi(i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %176 = load i32, ptr %15, align 4, !tbaa !5
  %177 = load i32, ptr %16, align 4, !tbaa !5
  %178 = load i32, ptr %17, align 4, !tbaa !11
  %179 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %176, i32 noundef %177, i32 noundef %178, i32 noundef -1)
  store i64 %179, ptr %33, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %33, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  %180 = load i32, ptr %17, align 4, !tbaa !11
  %181 = call noundef i32 @_Z15getAbsDirection6Orienti(i32 noundef %180, i32 noundef -1)
  store i32 %181, ptr %17, align 4, !tbaa !11
  br label %233

182:                                              ; preds = %173
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %11, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %12, align 4
  br label %190

186:                                              ; preds = %174
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %11, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  br label %190

190:                                              ; preds = %186, %182
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  br label %252

191:                                              ; preds = %170
  %192 = load i32, ptr %22, align 4, !tbaa !5
  %193 = icmp eq i32 %192, 1
  br i1 %193, label %194, label %212

194:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %195 unwind label %203

195:                                              ; preds = %194
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %196 unwind label %207

196:                                              ; preds = %195
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #7
  call void @_ZN3API9turnRightEv()
  call void @_ZN3API11moveForwardEi(i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %197 = load i32, ptr %15, align 4, !tbaa !5
  %198 = load i32, ptr %16, align 4, !tbaa !5
  %199 = load i32, ptr %17, align 4, !tbaa !11
  %200 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %197, i32 noundef %198, i32 noundef %199, i32 noundef 1)
  store i64 %200, ptr %36, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %36, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  %201 = load i32, ptr %17, align 4, !tbaa !11
  %202 = call noundef i32 @_Z15getAbsDirection6Orienti(i32 noundef %201, i32 noundef 1)
  store i32 %202, ptr %17, align 4, !tbaa !11
  br label %232

203:                                              ; preds = %194
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %11, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %12, align 4
  br label %211

207:                                              ; preds = %195
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %11, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  br label %211

211:                                              ; preds = %207, %203
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #7
  br label %252

212:                                              ; preds = %191
  %213 = load i32, ptr %22, align 4, !tbaa !5
  %214 = icmp eq i32 %213, 0
  br i1 %214, label %215, label %231

215:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %216 unwind label %222

216:                                              ; preds = %215
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %217 unwind label %226

217:                                              ; preds = %216
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  call void @_ZN3API11moveForwardEi(i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %218 = load i32, ptr %15, align 4, !tbaa !5
  %219 = load i32, ptr %16, align 4, !tbaa !5
  %220 = load i32, ptr %17, align 4, !tbaa !11
  %221 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %218, i32 noundef %219, i32 noundef %220, i32 noundef 0)
  store i64 %221, ptr %39, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %231

222:                                              ; preds = %215
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %11, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %12, align 4
  br label %230

226:                                              ; preds = %216
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %11, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  br label %230

230:                                              ; preds = %226, %222
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br label %252

231:                                              ; preds = %217, %212
  br label %232

232:                                              ; preds = %231, %196
  br label %233

233:                                              ; preds = %232, %175
  %234 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 0
  %235 = load i32, ptr %234, align 4, !tbaa !13
  store i32 %235, ptr %15, align 4, !tbaa !5
  %236 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 1
  %237 = load i32, ptr %236, align 4, !tbaa !15
  store i32 %237, ptr %16, align 4, !tbaa !5
  %238 = load ptr, ptr %6, align 8, !tbaa !9
  %239 = load ptr, ptr %7, align 8, !tbaa !9
  %240 = load i32, ptr %15, align 4, !tbaa !5
  %241 = load i32, ptr %16, align 4, !tbaa !5
  call void @_Z11updateTrackPPiS0_ii(ptr noundef %238, ptr noundef %239, i32 noundef %240, i32 noundef %241)
  %242 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_Z15reset_flood_mapPPi(ptr noundef %242)
  %243 = load i32, ptr %15, align 4, !tbaa !5
  %244 = load i32, ptr %16, align 4, !tbaa !5
  %245 = call noundef zeroext i1 @_Z10isFinishedii(i32 noundef %243, i32 noundef %244)
  br i1 %245, label %246, label %247

246:                                              ; preds = %233
  store i32 3, ptr %29, align 4
  br label %248

247:                                              ; preds = %233
  store i32 0, ptr %29, align 4
  br label %248

248:                                              ; preds = %247, %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %249

249:                                              ; preds = %248, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %250 = load i32, ptr %29, align 4
  switch i32 %250, label %271 [
    i32 0, label %251
    i32 2, label %47
    i32 3, label %254
  ]

251:                                              ; preds = %249
  br label %47, !llvm.loop !16

252:                                              ; preds = %230, %211, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %253

253:                                              ; preds = %252, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %265

254:                                              ; preds = %249
  %255 = load ptr, ptr %6, align 8, !tbaa !9
  %256 = icmp eq ptr %255, null
  br i1 %256, label %258, label %257

257:                                              ; preds = %254
  call void @_ZdaPv(ptr noundef %255) #8
  br label %258

258:                                              ; preds = %257, %254
  %259 = load ptr, ptr %7, align 8, !tbaa !9
  %260 = icmp eq ptr %259, null
  br i1 %260, label %262, label %261

261:                                              ; preds = %258
  call void @_ZdaPv(ptr noundef %259) #8
  br label %262

262:                                              ; preds = %261, %258
  %263 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_Z10free_queueP5queue(ptr noundef %263)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %264 = load i32, ptr %3, align 4
  ret i32 %264

265:                                              ; preds = %253, %87, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr %11, align 8
  %268 = load i32, ptr %12, align 4
  %269 = insertvalue { ptr, i32 } poison, ptr %267, 0
  %270 = insertvalue { ptr, i32 } %269, i32 %268, 1
  resume { ptr, i32 } %270

271:                                              ; preds = %249
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18initializeFloodMapv() #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z17initializeWallMapv() #0

declare noundef ptr @_Z12create_queuei(i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

declare void @_ZN3API8setColorEiic(i32 noundef, i32 noundef, i8 noundef signext) #3

declare void @_ZN3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16update_flood_mapPPiS0_P5queue(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13printFloodMapPPi(ptr noundef) #0

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

declare noundef zeroext i1 @_ZN3API8wallLeftEv() #3

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11updateWallsPPiii6Orienti(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare noundef zeroext i1 @_ZN3API9wallRightEv() #3

declare noundef zeroext i1 @_ZN3API9wallFrontEv() #3

declare void @_ZN3API9turnRightEv() #3

declare noundef i32 @_Z15getAbsDirection6Orienti(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15reset_flood_mapPPi(ptr noundef) #0

declare void @_ZN3API8turnLeftEv() #3

declare void @_ZN3API11moveForwardEi(i32 noundef) #3

declare void @_Z11updateTrackPPiS0_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z10isFinishedii(i32 noundef, i32 noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

declare void @_Z10free_queueP5queue(ptr noundef) #3

attributes #0 = { 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 #1 = { mustprogress norecurse 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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin 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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS6Orient", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS5Point", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = tail call noundef ptr @_Z18initializeFloodMapv()
  %16 = tail call noundef ptr @_Z17initializeWallMapv()
  %17 = tail call noundef ptr @_Z12create_queuei(i32 noundef 100)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %18 unwind label %32

18:                                               ; preds = %2
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %19 unwind label %34

19:                                               ; preds = %18
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @_ZN3API8setColorEiic(i32 noundef 0, i32 noundef 0, i8 noundef signext 65)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %20 unwind label %37

20:                                               ; preds = %19
  invoke void @_ZN3API7setTextEiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %21 unwind label %39

21:                                               ; preds = %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %.outer

.outer:                                           ; preds = %108, %21
  %.096.ph = phi i32 [ %.197, %108 ], [ 100, %21 ]
  %.094.ph = phi i32 [ %.sroa.7.1, %108 ], [ 0, %21 ]
  %.088.ph = phi i32 [ %.sroa.03.1, %108 ], [ 0, %21 ]
  br label %22

22:                                               ; preds = %.outer, %69
  %.096 = phi i32 [ %70, %69 ], [ %.096.ph, %.outer ]
  call void @_Z16update_flood_mapPPiS0_P5queue(ptr noundef %15, ptr noundef %16, ptr noundef %17)
  call void @_Z13printFloodMapPPi(ptr noundef %15)
  %23 = call noundef zeroext i1 @_ZN3API8wallLeftEv()
  br i1 %23, label %42, label %24

24:                                               ; preds = %22
  %25 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef -1)
  %sext = shl i64 %25, 32
  %26 = ashr exact i64 %sext, 29
  %27 = getelementptr inbounds i8, ptr %15, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = ashr i64 %25, 32
  %30 = getelementptr inbounds i32, ptr %28, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !9
  br label %43

32:                                               ; preds = %2
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %36

34:                                               ; preds = %18
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %36

36:                                               ; preds = %34, %32
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %117

37:                                               ; preds = %19
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %41

39:                                               ; preds = %20
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  br label %41

41:                                               ; preds = %39, %37
  %.pn107 = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %117

42:                                               ; preds = %22
  call void @_Z11updateWallsPPiii6Orienti(ptr noundef %16, i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef -1)
  br label %43

43:                                               ; preds = %42, %24
  %.099 = phi i32 [ 99999, %42 ], [ %31, %24 ]
  %44 = call noundef zeroext i1 @_ZN3API9wallRightEv()
  br i1 %44, label %53, label %45

45:                                               ; preds = %43
  %46 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef 1)
  %sext110 = shl i64 %46, 32
  %47 = ashr exact i64 %sext110, 29
  %48 = getelementptr inbounds i8, ptr %15, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = ashr i64 %46, 32
  %51 = getelementptr inbounds i32, ptr %49, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !9
  br label %54

53:                                               ; preds = %43
  call void @_Z11updateWallsPPiii6Orienti(ptr noundef %16, i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef 1)
  br label %54

54:                                               ; preds = %53, %45
  %.0100 = phi i32 [ 99999, %53 ], [ %52, %45 ]
  %55 = call noundef zeroext i1 @_ZN3API9wallFrontEv()
  br i1 %55, label %64, label %56

56:                                               ; preds = %54
  %57 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef 0)
  %sext112 = shl i64 %57, 32
  %58 = ashr exact i64 %sext112, 29
  %59 = getelementptr inbounds i8, ptr %15, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = ashr i64 %57, 32
  %62 = getelementptr inbounds i32, ptr %60, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !9
  br label %65

64:                                               ; preds = %54
  call void @_Z11updateWallsPPiii6Orienti(ptr noundef %16, i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef 0)
  br label %65

65:                                               ; preds = %64, %56
  %.0101 = phi i32 [ 99999, %64 ], [ %63, %56 ]
  %spec.select125 = call i32 @llvm.smin.i32(i32 %.099, i32 %.0101)
  %.193 = call i32 @llvm.smin.i32(i32 %spec.select125, i32 %.0100)
  %66 = icmp eq i32 %.193, 99999
  br i1 %66, label %67, label %76

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %68 unwind label %71

68:                                               ; preds = %67
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %69 unwind label %73

69:                                               ; preds = %68
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @_ZN3API9turnRightEv()
  %70 = call noundef i32 @_Z15getAbsDirection6Orienti(i32 noundef %.096, i32 noundef 1)
  call void @_Z15reset_flood_mapPPi(ptr noundef %15)
  br label %22

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

73:                                               ; preds = %68
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %75

75:                                               ; preds = %73, %71
  %.pn121 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %117

76:                                               ; preds = %65
  %77 = icmp sgt i32 %spec.select125, %.0100
  %78 = icmp sle i32 %.099, %.0101
  %spec.select = sext i1 %78 to i32
  %.1103 = select i1 %77, i32 1, i32 %spec.select
  switch i32 %.1103, label %99 [
    i32 -1, label %79
    i32 1, label %89
  ]

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %80 unwind label %84

80:                                               ; preds = %79
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %81 unwind label %86

81:                                               ; preds = %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @_ZN3API8turnLeftEv()
  call void @_ZN3API11moveForwardEi(i32 noundef 1)
  %82 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef -1)
  %83 = call noundef i32 @_Z15getAbsDirection6Orienti(i32 noundef %.096, i32 noundef -1)
  br label %108

84:                                               ; preds = %79
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %80
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %88

88:                                               ; preds = %86, %84
  %.pn118 = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %117

89:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %90 unwind label %94

90:                                               ; preds = %89
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %91 unwind label %96

91:                                               ; preds = %90
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @_ZN3API9turnRightEv()
  call void @_ZN3API11moveForwardEi(i32 noundef 1)
  %92 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef 1)
  %93 = call noundef i32 @_Z15getAbsDirection6Orienti(i32 noundef %.096, i32 noundef 1)
  br label %108

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

96:                                               ; preds = %90
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %98

98:                                               ; preds = %96, %94
  %.pn116 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  br label %117

99:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %100 unwind label %103

100:                                              ; preds = %99
  invoke void @_Z3logRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %101 unwind label %105

101:                                              ; preds = %100
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @_ZN3API11moveForwardEi(i32 noundef 1)
  %102 = call i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef %.088.ph, i32 noundef %.094.ph, i32 noundef %.096, i32 noundef 0)
  br label %108

103:                                              ; preds = %99
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %100
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %107

107:                                              ; preds = %105, %103
  %.pn114 = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  br label %117

108:                                              ; preds = %81, %101, %91
  %.197 = phi i32 [ %83, %81 ], [ %93, %91 ], [ %.096, %101 ]
  %.sroa.7.1.in.in = phi i64 [ %82, %81 ], [ %92, %91 ], [ %102, %101 ]
  %.sroa.03.1 = trunc i64 %.sroa.7.1.in.in to i32
  %.sroa.7.1.in = lshr i64 %.sroa.7.1.in.in, 32
  %.sroa.7.1 = trunc nuw i64 %.sroa.7.1.in to i32
  call void @_Z11updateTrackPPiS0_ii(ptr noundef %15, ptr noundef %16, i32 noundef %.sroa.03.1, i32 noundef %.sroa.7.1)
  call void @_Z15reset_flood_mapPPi(ptr noundef %15)
  %109 = call noundef zeroext i1 @_Z10isFinishedii(i32 noundef %.sroa.03.1, i32 noundef %.sroa.7.1)
  br i1 %109, label %110, label %.outer

110:                                              ; preds = %108
  %111 = icmp eq ptr %15, null
  br i1 %111, label %113, label %112

112:                                              ; preds = %110
  call void @_ZdaPv(ptr noundef nonnull %15) #8
  br label %113

113:                                              ; preds = %112, %110
  %114 = icmp eq ptr %16, null
  br i1 %114, label %116, label %115

115:                                              ; preds = %113
  call void @_ZdaPv(ptr noundef nonnull %16) #8
  br label %116

116:                                              ; preds = %115, %113
  call void @_Z10free_queueP5queue(ptr noundef %17)
  ret i32 0

117:                                              ; preds = %75, %107, %98, %88, %41, %36
  %.pn121.pn.pn = phi { ptr, i32 } [ %.pn107, %41 ], [ %.pn, %36 ], [ %.pn121, %75 ], [ %.pn118, %88 ], [ %.pn116, %98 ], [ %.pn114, %107 ]
  resume { ptr, i32 } %.pn121.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18initializeFloodMapv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z17initializeWallMapv() local_unnamed_addr #0

declare noundef ptr @_Z12create_queuei(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

declare void @_ZN3API8setColorEiic(i32 noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16update_flood_mapPPiS0_P5queue(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13printFloodMapPPi(ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN3API8wallLeftEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Z17getNextFloodIndexii6Orienti(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11updateWallsPPiii6Orienti(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN3API9wallRightEv() local_unnamed_addr #3

declare noundef zeroext i1 @_ZN3API9wallFrontEv() local_unnamed_addr #3

declare void @_ZN3API9turnRightEv() local_unnamed_addr #3

declare noundef i32 @_Z15getAbsDirection6Orienti(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15reset_flood_mapPPi(ptr noundef) local_unnamed_addr #0

declare void @_ZN3API8turnLeftEv() local_unnamed_addr #3

declare void @_ZN3API11moveForwardEi(i32 noundef) local_unnamed_addr #3

declare void @_Z11updateTrackPPiS0_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z10isFinishedii(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

declare void @_Z10free_queueP5queue(ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

attributes #0 = { 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 #1 = { mustprogress norecurse 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 = { 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 #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { builtin 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}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass