; LLVM IR from Karansutradhar/Maze-Solver-Robot-Depth-First-Search :: Final_Project/src/Algorithm (algorithm)

; 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.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::array.1" = type { [2 x i32] }
%"class.fp::Algorithm" = type { i8, i8, i8, %"class.fp::Maze", i8, %"struct.std::array.1", %"struct.std::array.1", %"class.std::stack", %"class.std::shared_ptr", %"class.std::stack", %"struct.std::array.2", %"struct.std::array.2", %"struct.std::array", %"struct.std::array", %"struct.std::array.1", %"struct.std::array.1", %"struct.std::array.1", %"struct.std::array.1", %"struct.std::array.1" }
%"class.fp::Maze" = type { %"struct.std::array", %"struct.std::array", %"struct.std::array", %"struct.std::array" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::array.2" = type { [16 x %"struct.std::array.3"] }
%"struct.std::array.3" = type { [16 x %"struct.fp::Node"] }
%"struct.fp::Node" = type { i32, %"struct.std::array.1" }
%"struct.std::array" = type { [16 x %"struct.std::array.0"] }
%"struct.std::array.0" = type { [16 x i8] }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2fp9Algorithm9IsVisitedESt5arrayIiLm2EE(ptr noundef nonnull align 8 dereferenceable(7920), i64) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(192) ptr @_ZNSt5arrayIS_IN2fp4NodeELm16EELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(3072), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5arrayIN2fp4NodeELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(192), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2fp9Algorithm12DFSAlgorithmESt5arrayIiLm2EE(ptr noundef nonnull align 8 dereferenceable(7920), i64) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2fp9Algorithm9BackTrackESt5arrayIiLm2EERS1_IS1_INS_4NodeELm16EELm16EE(ptr dead_on_unwind noalias writable sret(%"class.std::stack") align 8, ptr noundef nonnull align 8 dereferenceable(7920), i64, ptr noundef nonnull align 4 dereferenceable(3072)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fp9Algorithm5SolveERKSt10shared_ptrINS_14LandBasedRobotEE(ptr noundef nonnull align 8 dereferenceable(7920) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca %"struct.std::array.1", align 4
  %8 = alloca %"class.std::stack", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::array.1", align 4
  %12 = alloca %"struct.std::array.1", align 4
  %13 = alloca %"struct.std::array.1", align 4
  %14 = alloca %"class.std::stack", align 8
  %15 = alloca %"struct.std::array.1", align 4
  %16 = alloca %"struct.std::array.1", align 4
  %17 = alloca %"struct.std::array.1", align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #8
  store i8 0, ptr %5, align 1, !tbaa !9
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 8
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN2fp14LandBasedRobotEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  store i8 0, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.memset.p0.i64(ptr align 4 %7, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #8
  call void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  %25 = load ptr, ptr %24, align 8, !tbaa !12
  %26 = getelementptr inbounds ptr, ptr %25, i64 0
  %27 = load ptr, ptr %26, align 8
  %28 = invoke noundef signext i8 %27(ptr noundef nonnull align 8 dereferenceable(89) %24)
          to label %29 unwind label %104

29:                                               ; preds = %2
  store i8 %28, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %30 = getelementptr inbounds %"struct.std::array.1", ptr %11, i32 0, i32 0
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #8
  %33 = load ptr, ptr %32, align 8, !tbaa !12
  %34 = getelementptr inbounds ptr, ptr %33, i64 21
  %35 = load ptr, ptr %34, align 8
  %36 = invoke noundef i32 %35(ptr noundef nonnull align 8 dereferenceable(89) %32)
          to label %37 unwind label %108

37:                                               ; preds = %29
  store i32 %36, ptr %30, align 4, !tbaa !14
  %38 = getelementptr inbounds i32, ptr %30, i64 1
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %39) #8
  %41 = load ptr, ptr %40, align 8, !tbaa !12
  %42 = getelementptr inbounds ptr, ptr %41, i64 22
  %43 = load ptr, ptr %42, align 8
  %44 = invoke noundef i32 %43(ptr noundef nonnull align 8 dereferenceable(89) %40)
          to label %45 unwind label %108

45:                                               ; preds = %37
  store i32 %44, ptr %38, align 4, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %46 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 10
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 0) #8
  %48 = load i32, ptr %47, align 4, !tbaa !14
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(192) ptr @_ZNSt5arrayIS_IN2fp4NodeELm16EELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) %46, i64 noundef %49) #8
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 1) #8
  %52 = load i32, ptr %51, align 4, !tbaa !14
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5arrayIN2fp4NodeELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(192) %50, i64 noundef %53) #8
  %55 = getelementptr inbounds %"struct.fp::Node", ptr %54, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !16
  %56 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 6
  %57 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 11
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 0) #8
  %59 = load i32, ptr %58, align 4, !tbaa !14
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(192) ptr @_ZNSt5arrayIS_IN2fp4NodeELm16EELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) %57, i64 noundef %60) #8
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 1) #8
  %63 = load i32, ptr %62, align 4, !tbaa !14
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5arrayIN2fp4NodeELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(192) %61, i64 noundef %64) #8
  %66 = getelementptr inbounds %"struct.fp::Node", ptr %65, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %56, i64 8, i1 false), !tbaa.struct !16
  invoke void @_ZN2fp9Algorithm11SetDefaultsEv(ptr noundef nonnull align 8 dereferenceable(7920) %19)
          to label %67 unwind label %104

67:                                               ; preds = %45
  br label %68

68:                                               ; preds = %189, %67
  br label %69

69:                                               ; preds = %68
  %70 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 13
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 0) #8
  %72 = load i32, ptr %71, align 4, !tbaa !14
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %70, i64 noundef %73) #8
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 1) #8
  %76 = load i32, ptr %75, align 4, !tbaa !14
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %74, i64 noundef %77) #8
  store i8 1, ptr %78, align 1, !tbaa !9
  %79 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !16
  %80 = load i8, ptr %6, align 1, !tbaa !11
  %81 = getelementptr inbounds %"struct.std::array.1", ptr %12, i32 0, i32 0
  %82 = load i64, ptr %81, align 4
  invoke void @_ZN2fp4Maze8ReadMazeESt5arrayIiLm2EEc(ptr noundef nonnull align 1 dereferenceable(1024) %79, i64 %82, i8 noundef signext %80)
          to label %83 unwind label %104

83:                                               ; preds = %69
  %84 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 2
  %85 = load i8, ptr %84, align 2, !tbaa !17, !range !33, !noundef !34
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %118

87:                                               ; preds = %83
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !16
  %88 = getelementptr inbounds %"struct.std::array.1", ptr %13, i32 0, i32 0
  %89 = load i64, ptr %88, align 4
  %90 = invoke noundef zeroext i1 @_ZN2fp9Algorithm12DFSAlgorithmESt5arrayIiLm2EE(ptr noundef nonnull align 8 dereferenceable(7920) %19, i64 %89)
          to label %91 unwind label %104

91:                                               ; preds = %87
  %92 = zext i1 %90 to i8
  store i8 %92, ptr %5, align 1, !tbaa !9
  invoke void @_ZN2fp9Algorithm11SetDefaultsEv(ptr noundef nonnull align 8 dereferenceable(7920) %19)
          to label %93 unwind label %104

93:                                               ; preds = %91
  %94 = load i8, ptr %5, align 1, !tbaa !9, !range !33, !noundef !34
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %116

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #8
  %97 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %97, i64 8, i1 false), !tbaa.struct !16
  %98 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 10
  %99 = getelementptr inbounds %"struct.std::array.1", ptr %15, i32 0, i32 0
  %100 = load i64, ptr %99, align 4
  invoke void @_ZN2fp9Algorithm9BackTrackESt5arrayIiLm2EERS1_IS1_INS_4NodeELm16EELm16EE(ptr dead_on_unwind writable sret(%"class.std::stack") align 8 %14, ptr noundef nonnull align 8 dereferenceable(7920) %19, i64 %100, ptr noundef nonnull align 4 dereferenceable(3072) %98)
          to label %101 unwind label %112

101:                                              ; preds = %96
  %102 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(80) %8, ptr noundef nonnull align 8 dereferenceable(80) %14) #8
  call void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #8
  %103 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 2
  store i8 0, ptr %103, align 2, !tbaa !17
  br label %117

104:                                              ; preds = %192, %190, %181, %180, %176, %172, %168, %164, %143, %119, %118, %91, %87, %69, %45, %2
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %9, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %10, align 4
  br label %198

108:                                              ; preds = %37, %29
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %9, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %198

112:                                              ; preds = %96
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %9, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #8
  br label %198

116:                                              ; preds = %93
  br label %190

117:                                              ; preds = %101
  br label %118

118:                                              ; preds = %117, %83
  invoke void @_ZN2fp9Algorithm8NavigateERSt5stackISt5arrayIiLm2EESt5dequeIS3_SaIS3_EEE(ptr noundef nonnull align 8 dereferenceable(7920) %19, ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %119 unwind label %104

119:                                              ; preds = %118
  %120 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %120, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !16
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %121) #8
  %123 = load ptr, ptr %122, align 8, !tbaa !12
  %124 = getelementptr inbounds ptr, ptr %123, i64 0
  %125 = load ptr, ptr %124, align 8
  %126 = invoke noundef signext i8 %125(ptr noundef nonnull align 8 dereferenceable(89) %122)
          to label %127 unwind label %104

127:                                              ; preds = %119
  store i8 %126, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %128 = getelementptr inbounds %"struct.std::array.1", ptr %16, i32 0, i32 0
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %129) #8
  %131 = load ptr, ptr %130, align 8, !tbaa !12
  %132 = getelementptr inbounds ptr, ptr %131, i64 21
  %133 = load ptr, ptr %132, align 8
  %134 = invoke noundef i32 %133(ptr noundef nonnull align 8 dereferenceable(89) %130)
          to label %135 unwind label %160

135:                                              ; preds = %127
  store i32 %134, ptr %128, align 4, !tbaa !14
  %136 = getelementptr inbounds i32, ptr %128, i64 1
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %137) #8
  %139 = load ptr, ptr %138, align 8, !tbaa !12
  %140 = getelementptr inbounds ptr, ptr %139, i64 22
  %141 = load ptr, ptr %140, align 8
  %142 = invoke noundef i32 %141(ptr noundef nonnull align 8 dereferenceable(89) %138)
          to label %143 unwind label %160

143:                                              ; preds = %135
  store i32 %142, ptr %136, align 4, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !16
  %144 = getelementptr inbounds %"struct.std::array.1", ptr %17, i32 0, i32 0
  %145 = load i64, ptr %144, align 4
  %146 = invoke noundef zeroext i1 @_ZN2fp9Algorithm9IsVisitedESt5arrayIiLm2EE(ptr noundef nonnull align 8 dereferenceable(7920) %19, i64 %145)
          to label %147 unwind label %104

147:                                              ; preds = %143
  br i1 %146, label %164, label %148

148:                                              ; preds = %147
  %149 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 6
  %150 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 11
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 0) #8
  %152 = load i32, ptr %151, align 4, !tbaa !14
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 4 dereferenceable(192) ptr @_ZNSt5arrayIS_IN2fp4NodeELm16EELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) %150, i64 noundef %153) #8
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 1) #8
  %156 = load i32, ptr %155, align 4, !tbaa !14
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5arrayIN2fp4NodeELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(192) %154, i64 noundef %157) #8
  %159 = getelementptr inbounds %"struct.fp::Node", ptr %158, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %159, ptr align 4 %149, i64 8, i1 false), !tbaa.struct !16
  br label %164

160:                                              ; preds = %135, %127
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %198

164:                                              ; preds = %148, %147
  %165 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 14
  %166 = invoke noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %165)
          to label %167 unwind label %104

167:                                              ; preds = %164
  br i1 %166, label %180, label %168

168:                                              ; preds = %167
  %169 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 15
  %170 = invoke noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %169)
          to label %171 unwind label %104

171:                                              ; preds = %168
  br i1 %170, label %180, label %172

172:                                              ; preds = %171
  %173 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 16
  %174 = invoke noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %173)
          to label %175 unwind label %104

175:                                              ; preds = %172
  br i1 %174, label %180, label %176

176:                                              ; preds = %175
  %177 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 17
  %178 = invoke noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %177)
          to label %179 unwind label %104

179:                                              ; preds = %176
  br i1 %178, label %180, label %189

180:                                              ; preds = %179, %175, %171, %167
  invoke void @_ZN2fp9Algorithm11SetDefaultsEv(ptr noundef nonnull align 8 dereferenceable(7920) %19)
          to label %181 unwind label %104

181:                                              ; preds = %180
  %182 = getelementptr inbounds %"class.fp::Algorithm", ptr %19, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %182, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !16
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 1) #8
  %184 = load i32, ptr %183, align 4, !tbaa !14
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 0) #8
  %186 = load i32, ptr %185, align 4, !tbaa !14
  %187 = sub nsw i32 15, %186
  invoke void @_ZN2fp3API8setColorEiic(i32 noundef %184, i32 noundef %187, i8 noundef signext 114)
          to label %188 unwind label %104

188:                                              ; preds = %181
  store i32 1, ptr %18, align 4
  br label %195

189:                                              ; preds = %179
  br label %68, !llvm.loop !35

190:                                              ; preds = %116
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
          to label %192 unwind label %104

192:                                              ; preds = %190
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %194 unwind label %104

194:                                              ; preds = %192
  store i32 0, ptr %18, align 4
  br label %195

195:                                              ; preds = %194, %188
  call void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #8
  %196 = load i32, ptr %18, align 4
  switch i32 %196, label %204 [
    i32 0, label %197
    i32 1, label %197
  ]

197:                                              ; preds = %195, %195
  ret void

198:                                              ; preds = %160, %112, %108, %104
  call void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #8
  br label %199

199:                                              ; preds = %198
  %200 = load ptr, ptr %9, align 8
  %201 = load i32, ptr %10, align 4
  %202 = insertvalue { ptr, i32 } poison, ptr %200, 0
  %203 = insertvalue { ptr, i32 } %202, i32 %201, 1
  resume { ptr, i32 } %203

204:                                              ; preds = %195
  unreachable
}

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN2fp4Maze8ReadMazeESt5arrayIiLm2EEc(ptr noundef nonnull align 1 dereferenceable(1024), i64, i8 noundef signext) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2fp9Algorithm8NavigateERSt5stackISt5arrayIiLm2EESt5dequeIS3_SaIS3_EEE(ptr noundef nonnull align 8 dereferenceable(7920), ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

declare void @_ZN2fp3API8setColorEiic(i32 noundef, i32 noundef, i8 noundef signext) #6

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

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{i64 0, i64 8, !11}
!17 = !{!18, !10, i64 2}
!18 = !{!"_ZTSN2fp9AlgorithmE", !10, i64 0, !10, i64 1, !10, i64 2, !19, i64 3, !7, i64 1027, !21, i64 1028, !21, i64 1036, !22, i64 1048, !29, i64 1128, !22, i64 1144, !32, i64 1224, !32, i64 4296, !20, i64 7368, !20, i64 7624, !21, i64 7880, !21, i64 7888, !21, i64 7896, !21, i64 7904, !21, i64 7912}
!19 = !{!"_ZTSN2fp4MazeE", !20, i64 0, !20, i64 256, !20, i64 512, !20, i64 768}
!20 = !{!"_ZTSSt5arrayIS_IbLm16EELm16EE", !7, i64 0}
!21 = !{!"_ZTSSt5arrayIiLm2EE", !7, i64 0}
!22 = !{!"_ZTSSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEE", !23, i64 0}
!23 = !{!"_ZTSSt5dequeISt5arrayIiLm2EESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt11_Deque_baseISt5arrayIiLm2EESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt11_Deque_baseISt5arrayIiLm2EESaIS1_EE11_Deque_implE", !26, i64 0}
!26 = !{!"_ZTSNSt11_Deque_baseISt5arrayIiLm2EESaIS1_EE16_Deque_impl_dataE", !6, i64 0, !27, i64 8, !28, i64 16, !28, i64 48}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSSt15_Deque_iteratorISt5arrayIiLm2EERS1_PS1_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!29 = !{!"_ZTSSt10shared_ptrIN2fp14LandBasedRobotEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !31, i64 8}
!31 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!32 = !{!"_ZTSSt5arrayIS_IN2fp4NodeELm16EELm16EE", !7, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


; 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.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::array<int, 2>, std::allocator<std::array<int, 2>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::array.1" = type { [2 x i32] }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(192) ptr @_ZNSt5arrayIS_IN2fp4NodeELm16EELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(3072), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5arrayIN2fp4NodeELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(192), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2fp9Algorithm9BackTrackESt5arrayIiLm2EERS1_IS1_INS_4NodeELm16EELm16EE(ptr dead_on_unwind noalias writable sret(%"class.std::stack") align 8, ptr noundef nonnull align 8 dereferenceable(7920), i64, ptr noundef nonnull align 4 dereferenceable(3072)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fp9Algorithm5SolveERKSt10shared_ptrINS_14LandBasedRobotEE(ptr noundef nonnull align 8 dereferenceable(7920) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::array.1", align 8
  %4 = alloca %"class.std::stack", align 8
  %5 = alloca %"class.std::stack", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 1128
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN2fp14LandBasedRobotEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i64 0, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #6
  call void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %8 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = load ptr, ptr %9, align 8
  %11 = invoke noundef signext i8 %10(ptr noundef nonnull align 8 dereferenceable(89) %8)
          to label %12 unwind label %.loopexit.split-lp

12:                                               ; preds = %2
  %13 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 168
  %16 = load ptr, ptr %15, align 8
  %17 = invoke noundef i32 %16(ptr noundef nonnull align 8 dereferenceable(89) %13)
          to label %18 unwind label %75

18:                                               ; preds = %12
  %19 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 176
  %22 = load ptr, ptr %21, align 8
  %23 = invoke noundef i32 %22(ptr noundef nonnull align 8 dereferenceable(89) %19)
          to label %24 unwind label %75

24:                                               ; preds = %18
  store i32 %17, ptr %3, align 8
  %.sroa.56.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 4
  store i32 %23, ptr %.sroa.56.0..sroa_idx, align 4, !tbaa !8
  %25 = getelementptr inbounds i8, ptr %0, i64 1224
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #6
  %27 = load i32, ptr %26, align 4, !tbaa !10
  %28 = sext i32 %27 to i64
  %29 = call noundef nonnull align 4 dereferenceable(192) ptr @_ZNSt5arrayIS_IN2fp4NodeELm16EELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) %25, i64 noundef %28) #6
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #6
  %31 = load i32, ptr %30, align 4, !tbaa !10
  %32 = sext i32 %31 to i64
  %33 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5arrayIN2fp4NodeELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(192) %29, i64 noundef %32) #6
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  %35 = load i64, ptr %3, align 8, !tbaa !8
  store i64 %35, ptr %34, align 4, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %0, i64 1036
  %37 = getelementptr inbounds i8, ptr %0, i64 4296
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #6
  %39 = load i32, ptr %38, align 4, !tbaa !10
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 4 dereferenceable(192) ptr @_ZNSt5arrayIS_IN2fp4NodeELm16EELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) %37, i64 noundef %40) #6
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #6
  %43 = load i32, ptr %42, align 4, !tbaa !10
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5arrayIN2fp4NodeELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(192) %41, i64 noundef %44) #6
  %46 = getelementptr inbounds i8, ptr %45, i64 4
  %47 = load i64, ptr %36, align 4, !tbaa !8
  store i64 %47, ptr %46, align 4, !tbaa !8
  invoke void @_ZN2fp9Algorithm11SetDefaultsEv(ptr noundef nonnull align 8 dereferenceable(7920) %0)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %24
  %48 = getelementptr inbounds i8, ptr %0, i64 7624
  %49 = getelementptr inbounds i8, ptr %0, i64 3
  %50 = getelementptr inbounds i8, ptr %0, i64 2
  %51 = getelementptr inbounds i8, ptr %0, i64 7912
  %52 = getelementptr inbounds i8, ptr %0, i64 7880
  %53 = getelementptr inbounds i8, ptr %0, i64 7888
  %54 = getelementptr inbounds i8, ptr %0, i64 7896
  %55 = getelementptr inbounds i8, ptr %0, i64 7904
  br label %56

56:                                               ; preds = %.preheader, %125
  %.0 = phi i8 [ %85, %125 ], [ %11, %.preheader ]
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #6
  %58 = load i32, ptr %57, align 4, !tbaa !10
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNSt5arrayIS_IbLm16EELm16EEixEm(ptr noundef nonnull align 1 dereferenceable(256) %48, i64 noundef %59) #6
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #6
  %62 = load i32, ptr %61, align 4, !tbaa !10
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %60, i64 noundef %63) #6
  store i8 1, ptr %64, align 1, !tbaa !12
  %.sroa.04.0.copyload = load i64, ptr %3, align 8, !tbaa !8
  invoke void @_ZN2fp4Maze8ReadMazeESt5arrayIiLm2EEc(ptr noundef nonnull align 1 dereferenceable(1024) %49, i64 %.sroa.04.0.copyload, i8 noundef signext %.0)
          to label %65 unwind label %.loopexit

65:                                               ; preds = %56
  %66 = load i8, ptr %50, align 2, !tbaa !14, !range !31, !noundef !32
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %68, label %79

68:                                               ; preds = %65
  %.sroa.03.0.copyload = load i64, ptr %3, align 8, !tbaa !8
  %69 = invoke noundef zeroext i1 @_ZN2fp9Algorithm12DFSAlgorithmESt5arrayIiLm2EE(ptr noundef nonnull align 8 dereferenceable(7920) %0, i64 %.sroa.03.0.copyload)
          to label %70 unwind label %.loopexit

70:                                               ; preds = %68
  invoke void @_ZN2fp9Algorithm11SetDefaultsEv(ptr noundef nonnull align 8 dereferenceable(7920) %0)
          to label %71 unwind label %.loopexit

71:                                               ; preds = %70
  br i1 %69, label %72, label %134

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #6
  %.sroa.02.0.copyload = load i64, ptr %51, align 8, !tbaa !8
  invoke void @_ZN2fp9Algorithm9BackTrackESt5arrayIiLm2EERS1_IS1_INS_4NodeELm16EELm16EE(ptr dead_on_unwind nonnull writable sret(%"class.std::stack") align 8 %5, ptr noundef nonnull align 8 dereferenceable(7920) %0, i64 %.sroa.02.0.copyload, ptr noundef nonnull align 4 dereferenceable(3072) %25)
          to label %73 unwind label %77

73:                                               ; preds = %72
  %74 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(80) %5) #6
  call void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  store i8 0, ptr %50, align 2, !tbaa !14
  br label %79

.loopexit:                                        ; preds = %56, %68, %70, %79, %80, %98, %114, %117, %120, %123
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %139

.loopexit.split-lp:                               ; preds = %2, %24, %126, %127, %134, %136
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %139

75:                                               ; preds = %18, %12
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %139

77:                                               ; preds = %72
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  br label %139

79:                                               ; preds = %73, %65
  invoke void @_ZN2fp9Algorithm8NavigateERSt5stackISt5arrayIiLm2EESt5dequeIS3_SaIS3_EEE(ptr noundef nonnull align 8 dereferenceable(7920) %0, ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %80 unwind label %.loopexit

80:                                               ; preds = %79
  %81 = load i64, ptr %3, align 8, !tbaa !8
  store i64 %81, ptr %36, align 4, !tbaa !8
  %82 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load ptr, ptr %83, align 8
  %85 = invoke noundef signext i8 %84(ptr noundef nonnull align 8 dereferenceable(89) %82)
          to label %86 unwind label %.loopexit

86:                                               ; preds = %80
  %87 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 168
  %90 = load ptr, ptr %89, align 8
  %91 = invoke noundef i32 %90(ptr noundef nonnull align 8 dereferenceable(89) %87)
          to label %92 unwind label %112

92:                                               ; preds = %86
  %93 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 176
  %96 = load ptr, ptr %95, align 8
  %97 = invoke noundef i32 %96(ptr noundef nonnull align 8 dereferenceable(89) %93)
          to label %98 unwind label %112

98:                                               ; preds = %92
  store i32 %91, ptr %3, align 8
  store i32 %97, ptr %.sroa.56.0..sroa_idx, align 4, !tbaa !8
  %.sroa.0.0.copyload = load i64, ptr %3, align 8, !tbaa !8
  %99 = invoke noundef zeroext i1 @_ZN2fp9Algorithm9IsVisitedESt5arrayIiLm2EE(ptr noundef nonnull align 8 dereferenceable(7920) %0, i64 %.sroa.0.0.copyload)
          to label %100 unwind label %.loopexit

100:                                              ; preds = %98
  br i1 %99, label %114, label %101

101:                                              ; preds = %100
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #6
  %103 = load i32, ptr %102, align 4, !tbaa !10
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 4 dereferenceable(192) ptr @_ZNSt5arrayIS_IN2fp4NodeELm16EELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) %37, i64 noundef %104) #6
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #6
  %107 = load i32, ptr %106, align 4, !tbaa !10
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5arrayIN2fp4NodeELm16EEixEm(ptr noundef nonnull align 4 dereferenceable(192) %105, i64 noundef %108) #6
  %110 = getelementptr inbounds i8, ptr %109, i64 4
  %111 = load i64, ptr %36, align 4, !tbaa !8
  store i64 %111, ptr %110, align 4, !tbaa !8
  br label %114

112:                                              ; preds = %92, %86
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %139

114:                                              ; preds = %101, %100
  %115 = invoke noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %52)
          to label %116 unwind label %.loopexit

116:                                              ; preds = %114
  br i1 %115, label %126, label %117

117:                                              ; preds = %116
  %118 = invoke noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %53)
          to label %119 unwind label %.loopexit

119:                                              ; preds = %117
  br i1 %118, label %126, label %120

120:                                              ; preds = %119
  %121 = invoke noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %54)
          to label %122 unwind label %.loopexit

122:                                              ; preds = %120
  br i1 %121, label %126, label %123

123:                                              ; preds = %122
  %124 = invoke noundef zeroext i1 @_ZSteqIiLm2EEbRKSt5arrayIT_XT0_EES4_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %55)
          to label %125 unwind label %.loopexit

125:                                              ; preds = %123
  br i1 %124, label %126, label %56, !llvm.loop !33

126:                                              ; preds = %125, %122, %119, %116
  invoke void @_ZN2fp9Algorithm11SetDefaultsEv(ptr noundef nonnull align 8 dereferenceable(7920) %0)
          to label %127 unwind label %.loopexit.split-lp

127:                                              ; preds = %126
  %128 = load i64, ptr %3, align 8, !tbaa !8
  store i64 %128, ptr %51, align 8, !tbaa !8
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #6
  %130 = load i32, ptr %129, align 4, !tbaa !10
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #6
  %132 = load i32, ptr %131, align 4, !tbaa !10
  %133 = sub nsw i32 15, %132
  invoke void @_ZN2fp3API8setColorEiic(i32 noundef %130, i32 noundef %133, i8 noundef signext 114)
          to label %138 unwind label %.loopexit.split-lp

134:                                              ; preds = %71
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
          to label %136 unwind label %.loopexit.split-lp

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

138:                                              ; preds = %136, %127
  call void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret void

139:                                              ; preds = %.loopexit, %.loopexit.split-lp, %112, %77, %75
  %.pn = phi { ptr, i32 } [ %113, %112 ], [ %78, %77 ], [ %76, %75 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN2fp4Maze8ReadMazeESt5arrayIiLm2EEc(ptr noundef nonnull align 1 dereferenceable(1024), i64, i8 noundef signext) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2fp9Algorithm8NavigateERSt5stackISt5arrayIiLm2EESt5dequeIS3_SaIS3_EEE(ptr noundef nonnull align 8 dereferenceable(7920), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

declare void @_ZN2fp3API8setColorEiic(i32 noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #4

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

; 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 #0 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)) #2

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!15, !13, i64 2}
!15 = !{!"_ZTSN2fp9AlgorithmE", !13, i64 0, !13, i64 1, !13, i64 2, !16, i64 3, !9, i64 1027, !18, i64 1028, !18, i64 1036, !19, i64 1048, !27, i64 1128, !19, i64 1144, !30, i64 1224, !30, i64 4296, !17, i64 7368, !17, i64 7624, !18, i64 7880, !18, i64 7888, !18, i64 7896, !18, i64 7904, !18, i64 7912}
!16 = !{!"_ZTSN2fp4MazeE", !17, i64 0, !17, i64 256, !17, i64 512, !17, i64 768}
!17 = !{!"_ZTSSt5arrayIS_IbLm16EELm16EE", !9, i64 0}
!18 = !{!"_ZTSSt5arrayIiLm2EE", !9, i64 0}
!19 = !{!"_ZTSSt5stackISt5arrayIiLm2EESt5dequeIS1_SaIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt5dequeISt5arrayIiLm2EESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt11_Deque_baseISt5arrayIiLm2EESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseISt5arrayIiLm2EESaIS1_EE11_Deque_implE", !23, i64 0}
!23 = !{!"_ZTSNSt11_Deque_baseISt5arrayIiLm2EESaIS1_EE16_Deque_impl_dataE", !24, i64 0, !25, i64 8, !26, i64 16, !26, i64 48}
!24 = !{!"any pointer", !9, i64 0}
!25 = !{!"long", !9, i64 0}
!26 = !{!"_ZTSSt15_Deque_iteratorISt5arrayIiLm2EERS1_PS1_E", !24, i64 0, !24, i64 8, !24, i64 16, !24, i64 24}
!27 = !{!"_ZTSSt10shared_ptrIN2fp14LandBasedRobotEE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN2fp14LandBasedRobotELN9__gnu_cxx12_Lock_policyE2EE", !24, i64 0, !29, i64 8}
!29 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !24, i64 0}
!30 = !{!"_ZTSSt5arrayIS_IN2fp4NodeELm16EELm16EE", !9, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass