; LLVM IR from eyangch/competitive-programming :: USACOtraining/2.1 (castle)

; 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.std::array" = type { [50 x %"struct.std::array.0"] }
%"struct.std::array.0" = type { [50 x %"struct.std::array.1"] }
%"struct.std::array.1" = type { [4 x i8] }
%"struct.std::array.2" = type { [50 x %"struct.std::array.3"] }
%"struct.std::array.3" = type { [50 x i8] }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.4" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@wallsorig = external dso_local global %"struct.std::array", align 1
@walls = external dso_local global %"struct.std::array", align 1
@visited = external dso_local global %"struct.std::array.2", align 1
@total = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(200) ptr @_ZNSt5arrayIS_IS_IbLm4EELm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(10000), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZNSt5arrayIS_IbLm4EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(200), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(50) ptr @_ZNSt5arrayIS_IbLm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(2500), i64 noundef) #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5recuriiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::basic_ifstream", align 8
  %3 = alloca %"class.std::basic_ofstream", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::vector.4", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.std::vector", align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca i32, align 4
  %40 = alloca i8, align 1
  %41 = alloca %"struct.std::_Bit_reference", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr %2) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #8
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef @.str.1, i32 noundef 16)
          to label %42 unwind label %52

42:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %43 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %44 unwind label %56

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %46 unwind label %56

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %80, %46
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %60, label %51

51:                                               ; preds = %47
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %83

52:                                               ; preds = %0
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %4, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %5, align 4
  br label %407

56:                                               ; preds = %44, %42
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %4, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %5, align 4
  br label %406

60:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %72, %60
  %62 = load i32, ptr %10, align 4, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %79

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %67 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %68 unwind label %75

68:                                               ; preds = %66
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = load i32, ptr %11, align 4, !tbaa !5
  call void @_Z3cvtiii(i32 noundef %69, i32 noundef %70, i32 noundef %71)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %72

72:                                               ; preds = %68
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %10, align 4, !tbaa !5
  br label %61, !llvm.loop !9

75:                                               ; preds = %66
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %4, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %406

79:                                               ; preds = %65
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %8, align 4, !tbaa !5
  br label %47, !llvm.loop !11

83:                                               ; preds = %51
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 @wallsorig, ptr align 1 @walls, i64 10000, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %125, %83
  %85 = load i32, ptr %13, align 4, !tbaa !5
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %128

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %121, %89
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %124

95:                                               ; preds = %90
  %96 = load i32, ptr %13, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 1 dereferenceable(50) ptr @_ZNSt5arrayIS_IbLm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(2500) @visited, i64 noundef %97) #8
  %99 = load i32, ptr %14, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm50EEixEm(ptr noundef nonnull align 1 dereferenceable(50) %98, i64 noundef %100) #8
  %102 = load i8, ptr %101, align 1, !tbaa !14, !range !16, !noundef !17
  %103 = trunc i8 %102 to i1
  br i1 %103, label %120, label %104

104:                                              ; preds = %95
  %105 = load i32, ptr @total, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr @total, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = load i32, ptr %14, align 4, !tbaa !5
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = invoke noundef i32 @_Z5recuriiii(i32 noundef %107, i32 noundef %108, i32 noundef %109, i32 noundef %110)
          to label %112 unwind label %116

112:                                              ; preds = %104
  store i32 %111, ptr %15, align 4, !tbaa !5
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %114 unwind label %116

114:                                              ; preds = %112
  %115 = load i32, ptr %113, align 4, !tbaa !5
  store i32 %115, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %120

116:                                              ; preds = %112, %104
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %4, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %405

120:                                              ; preds = %114, %95
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %14, align 4, !tbaa !5
  br label %90, !llvm.loop !18

124:                                              ; preds = %94
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %13, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %13, align 4, !tbaa !5
  br label %84, !llvm.loop !19

128:                                              ; preds = %88
  %129 = load i32, ptr @total, align 4, !tbaa !5
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %129)
          to label %131 unwind label %146

131:                                              ; preds = %128
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %133 unwind label %146

133:                                              ; preds = %131
  %134 = load i32, ptr %12, align 4, !tbaa !5
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %134)
          to label %136 unwind label %146

136:                                              ; preds = %133
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %138 unwind label %146

138:                                              ; preds = %136
  %139 = load i32, ptr %6, align 4, !tbaa !5
  %140 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z9rstvisitsii(i32 noundef %139, i32 noundef %140)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #8
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %286, %138
  %142 = load i32, ptr %20, align 4, !tbaa !5
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %150, label %145

145:                                              ; preds = %141
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %289

146:                                              ; preds = %136, %133, %131, %128
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %4, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %5, align 4
  br label %405

150:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %282, %150
  %152 = load i32, ptr %21, align 4, !tbaa !5
  %153 = load i32, ptr %6, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %285

156:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %278, %156
  %158 = load i32, ptr %22, align 4, !tbaa !5
  %159 = icmp slt i32 %158, 4
  br i1 %159, label %161, label %160

160:                                              ; preds = %157
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %281

161:                                              ; preds = %157
  %162 = load i32, ptr %21, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = call noundef nonnull align 1 dereferenceable(200) ptr @_ZNSt5arrayIS_IS_IbLm4EELm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(10000) @walls, i64 noundef %163) #8
  %165 = load i32, ptr %20, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNSt5arrayIS_IbLm4EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(200) %164, i64 noundef %166) #8
  %168 = load i32, ptr %22, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %167, i64 noundef %169) #8
  %171 = load i8, ptr %170, align 1, !tbaa !14, !range !16, !noundef !17
  %172 = trunc i8 %171 to i1
  br i1 %172, label %173, label %277

173:                                              ; preds = %161
  %174 = load i32, ptr %21, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 1 dereferenceable(200) ptr @_ZNSt5arrayIS_IS_IbLm4EELm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(10000) @walls, i64 noundef %175) #8
  %177 = load i32, ptr %20, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNSt5arrayIS_IbLm4EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(200) %176, i64 noundef %178) #8
  %180 = load i32, ptr %22, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %179, i64 noundef %181) #8
  store i8 0, ptr %182, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %183 = load i32, ptr %21, align 4, !tbaa !5
  %184 = load i32, ptr %20, align 4, !tbaa !5
  %185 = load i32, ptr %6, align 4, !tbaa !5
  %186 = load i32, ptr %7, align 4, !tbaa !5
  %187 = invoke noundef i32 @_Z5recuriiii(i32 noundef %183, i32 noundef %184, i32 noundef %185, i32 noundef %186)
          to label %188 unwind label %197

188:                                              ; preds = %173
  store i32 %187, ptr %23, align 4, !tbaa !5
  %189 = load i32, ptr %23, align 4, !tbaa !5
  %190 = load i32, ptr %16, align 4, !tbaa !5
  %191 = icmp sge i32 %189, %190
  br i1 %191, label %192, label %273

192:                                              ; preds = %188
  %193 = load i32, ptr %23, align 4, !tbaa !5
  %194 = load i32, ptr %16, align 4, !tbaa !5
  %195 = icmp sgt i32 %193, %194
  br i1 %195, label %196, label %201

196:                                              ; preds = %192
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @_ZNSt6vectorIbSaIbEE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %19) #8
  br label %201

197:                                              ; preds = %262, %243, %224, %209, %205, %173
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %4, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %5, align 4
  br label %276

201:                                              ; preds = %196, %192
  %202 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %202, ptr %16, align 4, !tbaa !5
  %203 = load i32, ptr %22, align 4, !tbaa !5
  %204 = icmp eq i32 %203, 0
  br i1 %204, label %205, label %215

205:                                              ; preds = %201
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %206 unwind label %197

206:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %207 = load i32, ptr %21, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %24, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %209 unwind label %211

209:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %19, i1 noundef zeroext false)
          to label %210 unwind label %197

210:                                              ; preds = %209
  br label %215

211:                                              ; preds = %206
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %4, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %276

215:                                              ; preds = %210, %201
  %216 = load i32, ptr %22, align 4, !tbaa !5
  %217 = icmp eq i32 %216, 1
  br i1 %217, label %218, label %234

218:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %219 = load i32, ptr %20, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %25, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %221 unwind label %226

221:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %222 = load i32, ptr %21, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %26, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %224 unwind label %230

224:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %19, i1 noundef zeroext true)
          to label %225 unwind label %197

225:                                              ; preds = %224
  br label %234

226:                                              ; preds = %218
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %4, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %276

230:                                              ; preds = %221
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %4, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %276

234:                                              ; preds = %225, %215
  %235 = load i32, ptr %22, align 4, !tbaa !5
  %236 = icmp eq i32 %235, 2
  br i1 %236, label %237, label %253

237:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %238 = load i32, ptr %20, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %27, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %240 unwind label %245

240:                                              ; preds = %237
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %241 = load i32, ptr %21, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %28, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %243 unwind label %249

243:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %19, i1 noundef zeroext false)
          to label %244 unwind label %197

244:                                              ; preds = %243
  br label %253

245:                                              ; preds = %237
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %4, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %276

249:                                              ; preds = %240
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %4, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %276

253:                                              ; preds = %244, %234
  %254 = load i32, ptr %22, align 4, !tbaa !5
  %255 = icmp eq i32 %254, 3
  br i1 %255, label %256, label %272

256:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %257 = load i32, ptr %20, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %29, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %259 unwind label %264

259:                                              ; preds = %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %260 = load i32, ptr %21, align 4, !tbaa !5
  %261 = add nsw i32 %260, 2
  store i32 %261, ptr %30, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %262 unwind label %268

262:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %19, i1 noundef zeroext true)
          to label %263 unwind label %197

263:                                              ; preds = %262
  br label %272

264:                                              ; preds = %256
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %4, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %276

268:                                              ; preds = %259
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %4, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %276

272:                                              ; preds = %263, %253
  br label %273

273:                                              ; preds = %272, %188
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 @walls, ptr align 1 @wallsorig, i64 10000, i1 false), !tbaa.struct !12
  %274 = load i32, ptr %6, align 4, !tbaa !5
  %275 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z9rstvisitsii(i32 noundef %274, i32 noundef %275)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %277

276:                                              ; preds = %268, %264, %249, %245, %230, %226, %211, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %404

277:                                              ; preds = %273, %161
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %22, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %22, align 4, !tbaa !5
  br label %157, !llvm.loop !20

281:                                              ; preds = %160
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %21, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %21, align 4, !tbaa !5
  br label %151, !llvm.loop !21

285:                                              ; preds = %155
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %20, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %20, align 4, !tbaa !5
  br label %141, !llvm.loop !22

289:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 51, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %290

290:                                              ; preds = %323, %289
  %291 = load i32, ptr %33, align 4, !tbaa !5
  %292 = zext i32 %291 to i64
  %293 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %294 = icmp ult i64 %292, %293
  br i1 %294, label %296, label %295

295:                                              ; preds = %290
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %326

296:                                              ; preds = %290
  %297 = load i32, ptr %33, align 4, !tbaa !5
  %298 = zext i32 %297 to i64
  %299 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %298) #8
  %300 = load i32, ptr %299, align 4, !tbaa !5
  %301 = load i32, ptr %31, align 4, !tbaa !5
  %302 = icmp sle i32 %300, %301
  br i1 %302, label %303, label %322

303:                                              ; preds = %296
  %304 = load i32, ptr %33, align 4, !tbaa !5
  %305 = zext i32 %304 to i64
  %306 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %305) #8
  %307 = load i32, ptr %306, align 4, !tbaa !5
  %308 = load i32, ptr %31, align 4, !tbaa !5
  %309 = icmp slt i32 %307, %308
  br i1 %309, label %310, label %311

310:                                              ; preds = %303
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  br label %311

311:                                              ; preds = %310, %303
  %312 = load i32, ptr %33, align 4, !tbaa !5
  %313 = zext i32 %312 to i64
  %314 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %313) #8
  %315 = load i32, ptr %314, align 4, !tbaa !5
  store i32 %315, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %316 = load i32, ptr %33, align 4, !tbaa !5
  store i32 %316, ptr %34, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %317 unwind label %318

317:                                              ; preds = %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %322

318:                                              ; preds = %311
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %4, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %403

322:                                              ; preds = %317, %296
  br label %323

323:                                              ; preds = %322
  %324 = load i32, ptr %33, align 4, !tbaa !5
  %325 = add i32 %324, 1
  store i32 %325, ptr %33, align 4, !tbaa !5
  br label %290, !llvm.loop !23

326:                                              ; preds = %295
  store i32 0, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  store ptr %32, ptr %36, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %327 = load ptr, ptr %36, align 8, !tbaa !24
  %328 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %327) #8
  %329 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %330 = load ptr, ptr %36, align 8, !tbaa !24
  %331 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %330) #8
  %332 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  br label %333

333:                                              ; preds = %352, %326
  %334 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br i1 %334, label %336, label %335

335:                                              ; preds = %333
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %354

336:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %337 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  %338 = load i32, ptr %337, align 4, !tbaa !5
  store i32 %338, ptr %39, align 4, !tbaa !5
  %339 = load i32, ptr %39, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %340) #8
  %342 = load i32, ptr %341, align 4, !tbaa !5
  %343 = load i32, ptr %31, align 4, !tbaa !5
  %344 = icmp sgt i32 %342, %343
  br i1 %344, label %345, label %351

345:                                              ; preds = %336
  %346 = load i32, ptr %39, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %347) #8
  %349 = load i32, ptr %348, align 4, !tbaa !5
  store i32 %349, ptr %31, align 4, !tbaa !5
  %350 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %350, ptr %35, align 4, !tbaa !5
  br label %351

351:                                              ; preds = %345, %336
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %352

352:                                              ; preds = %351
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  br label %333

354:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #8
  store i8 78, ptr %40, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  %355 = load i32, ptr %35, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %19, i64 noundef %356)
          to label %358 unwind label %366

358:                                              ; preds = %354
  %359 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 0
  %360 = extractvalue { ptr, i64 } %357, 0
  store ptr %360, ptr %359, align 8
  %361 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 1
  %362 = extractvalue { ptr, i64 } %357, 1
  store i64 %362, ptr %361, align 8
  %363 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #8
  %364 = xor i1 %363, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  br i1 %364, label %365, label %370

365:                                              ; preds = %358
  store i8 69, ptr %40, align 1, !tbaa !13
  br label %370

366:                                              ; preds = %354
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %4, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  br label %402

370:                                              ; preds = %365, %358
  %371 = load i32, ptr %16, align 4, !tbaa !5
  %372 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %371)
          to label %373 unwind label %398

373:                                              ; preds = %370
  %374 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %372, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %375 unwind label %398

375:                                              ; preds = %373
  %376 = load i32, ptr %35, align 4, !tbaa !5
  %377 = sext i32 %376 to i64
  %378 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %377) #8
  %379 = load i32, ptr %378, align 4, !tbaa !5
  %380 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %374, i32 noundef %379)
          to label %381 unwind label %398

381:                                              ; preds = %375
  %382 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %380, ptr noundef @.str.2)
          to label %383 unwind label %398

383:                                              ; preds = %381
  %384 = load i32, ptr %35, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %385) #8
  %387 = load i32, ptr %386, align 4, !tbaa !5
  %388 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %382, i32 noundef %387)
          to label %389 unwind label %398

389:                                              ; preds = %383
  %390 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %388, ptr noundef @.str.2)
          to label %391 unwind label %398

391:                                              ; preds = %389
  %392 = load i8, ptr %40, align 1, !tbaa !13
  %393 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %390, i8 noundef signext %392)
          to label %394 unwind label %398

394:                                              ; preds = %391
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %393, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %396 unwind label %398

396:                                              ; preds = %394
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #8
  %397 = load i32, ptr %1, align 4
  ret i32 %397

398:                                              ; preds = %394, %391, %389, %383, %381, %375, %373, %370
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %4, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %5, align 4
  br label %402

402:                                              ; preds = %398, %366
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %403

403:                                              ; preds = %402, %318
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %404

404:                                              ; preds = %403, %276
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %405

405:                                              ; preds = %404, %146, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %406

406:                                              ; preds = %405, %75, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #8
  br label %407

407:                                              ; preds = %406, %52
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #8
  br label %408

408:                                              ; preds = %407
  %409 = load ptr, ptr %4, align 8
  %410 = load i32, ptr %5, align 4
  %411 = insertvalue { ptr, i32 } poison, ptr %409, 0
  %412 = insertvalue { ptr, i32 } %411, i32 %410, 1
  resume { ptr, i32 } %412
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4

; 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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #2 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #7

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

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

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

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

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

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


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

%"struct.std::array" = type { [50 x %"struct.std::array.0"] }
%"struct.std::array.0" = type { [50 x %"struct.std::array.1"] }
%"struct.std::array.1" = type { [4 x i8] }
%"struct.std::array.2" = type { [50 x %"struct.std::array.3"] }
%"struct.std::array.3" = type { [50 x i8] }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.4" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@wallsorig = external dso_local local_unnamed_addr global %"struct.std::array", align 1
@walls = external dso_local global %"struct.std::array", align 1
@visited = external dso_local global %"struct.std::array.2", align 1
@total = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(200) ptr @_ZNSt5arrayIS_IS_IbLm4EELm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(10000), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(50) ptr @_ZNSt5arrayIS_IbLm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(2500), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5recuriiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::basic_ifstream", align 8
  %2 = alloca %"class.std::basic_ofstream", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::vector.4", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %1) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #8
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %2, ptr noundef nonnull @.str.1, i32 noundef 16)
          to label %24 unwind label %38

24:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %26 unwind label %40

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %.preheader100 unwind label %40

.preheader100:                                    ; preds = %26
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  %.pre169 = load i32, ptr %3, align 4, !tbaa !5
  br i1 %29, label %.preheader99.lr.ph, label %._crit_edge130

.preheader99.lr.ph:                               ; preds = %.preheader100
  %30 = icmp sgt i32 %.pre169, 0
  br i1 %30, label %.preheader99, label %._crit_edge130.thread

._crit_edge130.thread:                            ; preds = %.preheader99.lr.ph
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(10000) @wallsorig, ptr noundef nonnull align 1 dereferenceable(10000) @walls, i64 10000, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %._crit_edge135

.preheader99:                                     ; preds = %.preheader99.lr.ph, %._crit_edge
  %31 = phi i32 [ %42, %._crit_edge ], [ %28, %.preheader99.lr.ph ]
  %32 = phi i32 [ %43, %._crit_edge ], [ %.pre169, %.preheader99.lr.ph ]
  %.082129 = phi i32 [ %44, %._crit_edge ], [ 0, %.preheader99.lr.ph ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph, label %._crit_edge

._crit_edge130:                                   ; preds = %._crit_edge, %.preheader100
  %34 = phi i32 [ %28, %.preheader100 ], [ %42, %._crit_edge ]
  %35 = phi i32 [ %.pre169, %.preheader100 ], [ %43, %._crit_edge ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(10000) @wallsorig, ptr noundef nonnull align 1 dereferenceable(10000) @walls, i64 10000, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  %36 = icmp sgt i32 %35, 0
  %37 = icmp sgt i32 %34, 0
  %or.cond = and i1 %36, %37
  br i1 %or.cond, label %.preheader98, label %._crit_edge135

38:                                               ; preds = %0
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %254

40:                                               ; preds = %26, %24
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %253

._crit_edge.loopexit:                             ; preds = %47
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader99
  %42 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %31, %.preheader99 ]
  %43 = phi i32 [ %50, %._crit_edge.loopexit ], [ %32, %.preheader99 ]
  %44 = add nuw nsw i32 %.082129, 1
  %45 = icmp slt i32 %44, %42
  br i1 %45, label %.preheader99, label %._crit_edge130, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader99, %47
  %.081128 = phi i32 [ %49, %47 ], [ 0, %.preheader99 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %47 unwind label %52

47:                                               ; preds = %.lr.ph
  %48 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z3cvtiii(i32 noundef %.082129, i32 noundef %.081128, i32 noundef %48)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %49 = add nuw nsw i32 %.081128, 1
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

52:                                               ; preds = %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %253

.preheader98:                                     ; preds = %._crit_edge130, %._crit_edge133
  %54 = phi i32 [ %60, %._crit_edge133 ], [ %35, %._crit_edge130 ]
  %55 = phi i32 [ %61, %._crit_edge133 ], [ %34, %._crit_edge130 ]
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %._crit_edge133 ], [ 0, %._crit_edge130 ]
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph132, label %._crit_edge133

.lr.ph132:                                        ; preds = %.preheader98
  %57 = trunc nuw nsw i64 %indvars.iv160 to i32
  br label %64

._crit_edge135:                                   ; preds = %._crit_edge133, %._crit_edge130.thread, %._crit_edge130
  %58 = load i32, ptr @total, align 4, !tbaa !5
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %58)
          to label %85 unwind label %104

._crit_edge133.loopexit:                          ; preds = %81
  %.pre170 = load i32, ptr %3, align 4, !tbaa !5
  br label %._crit_edge133

._crit_edge133:                                   ; preds = %._crit_edge133.loopexit, %.preheader98
  %60 = phi i32 [ %.pre170, %._crit_edge133.loopexit ], [ %54, %.preheader98 ]
  %61 = phi i32 [ %82, %._crit_edge133.loopexit ], [ %55, %.preheader98 ]
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %62 = sext i32 %60 to i64
  %63 = icmp slt i64 %indvars.iv.next161, %62
  br i1 %63, label %.preheader98, label %._crit_edge135, !llvm.loop !15

64:                                               ; preds = %.lr.ph132, %81
  %indvars.iv = phi i64 [ 0, %.lr.ph132 ], [ %indvars.iv.next, %81 ]
  %65 = call noundef nonnull align 1 dereferenceable(50) ptr @_ZNSt5arrayIS_IbLm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(2500) @visited, i64 noundef %indvars.iv160) #8
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm50EEixEm(ptr noundef nonnull align 1 dereferenceable(50) %65, i64 noundef %indvars.iv) #8
  %67 = load i8, ptr %66, align 1, !tbaa !16, !range !18, !noundef !19
  %68 = trunc nuw i8 %67 to i1
  br i1 %68, label %81, label %69

69:                                               ; preds = %64
  %70 = load i32, ptr @total, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr @total, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = trunc nuw nsw i64 %indvars.iv to i32
  %75 = invoke noundef i32 @_Z5recuriiii(i32 noundef %57, i32 noundef %74, i32 noundef %72, i32 noundef %73)
          to label %76 unwind label %79

76:                                               ; preds = %69
  store i32 %75, ptr %7, align 4, !tbaa !5
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %78 = load i32, ptr %77, align 4, !tbaa !5
  store i32 %78, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %81

79:                                               ; preds = %69
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %252

81:                                               ; preds = %64, %76
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = icmp slt i64 %indvars.iv.next, %83
  br i1 %84, label %64, label %._crit_edge133.loopexit, !llvm.loop !20

85:                                               ; preds = %._crit_edge135
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %87 unwind label %104

87:                                               ; preds = %85
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %88)
          to label %90 unwind label %104

90:                                               ; preds = %87
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %92 unwind label %104

92:                                               ; preds = %90
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z9rstvisitsii(i32 noundef %93, i32 noundef %94)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #8
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = icmp sgt i32 %95, 0
  %97 = load i32, ptr %3, align 4
  %98 = icmp sgt i32 %97, 0
  %or.cond178 = select i1 %96, i1 %98, i1 false
  br i1 %or.cond178, label %.preheader97, label %._crit_edge143

.preheader97:                                     ; preds = %92, %._crit_edge141
  %99 = phi i32 [ %112, %._crit_edge141 ], [ %95, %92 ]
  %100 = phi i32 [ %115, %._crit_edge141 ], [ 0, %92 ]
  %101 = phi i32 [ %114, %._crit_edge141 ], [ %97, %92 ]
  %.074142 = phi i32 [ %.175.lcssa, %._crit_edge141 ], [ 0, %92 ]
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.preheader, label %._crit_edge141

._crit_edge143:                                   ; preds = %._crit_edge141, %92
  %.074.lcssa = phi i32 [ 0, %92 ], [ %.175.lcssa, %._crit_edge141 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  %103 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %.not156 = icmp eq i64 %103, 0
  br i1 %.not156, label %._crit_edge149, label %.lr.ph148

104:                                              ; preds = %90, %87, %85, %._crit_edge135
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %252

.preheader:                                       ; preds = %.preheader97, %117
  %indvars.iv166 = phi i64 [ %indvars.iv.next167, %117 ], [ 0, %.preheader97 ]
  %.175139 = phi i32 [ %.478, %117 ], [ %.074142, %.preheader97 ]
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %106 = trunc nuw nsw i64 %indvars.iv166 to i32
  %107 = trunc i64 %indvars.iv166 to i32
  %108 = add i32 %107, 2
  %109 = trunc nuw nsw i64 %indvars.iv.next167 to i32
  %110 = trunc nuw nsw i64 %indvars.iv.next167 to i32
  %111 = trunc nuw nsw i64 %indvars.iv.next167 to i32
  br label %121

._crit_edge141.loopexit:                          ; preds = %117
  %.pre171 = load i32, ptr %11, align 4, !tbaa !5
  %.pre172 = load i32, ptr %4, align 4, !tbaa !5
  br label %._crit_edge141

._crit_edge141:                                   ; preds = %._crit_edge141.loopexit, %.preheader97
  %112 = phi i32 [ %99, %.preheader97 ], [ %.pre172, %._crit_edge141.loopexit ]
  %113 = phi i32 [ %100, %.preheader97 ], [ %.pre171, %._crit_edge141.loopexit ]
  %114 = phi i32 [ %101, %.preheader97 ], [ %118, %._crit_edge141.loopexit ]
  %.175.lcssa = phi i32 [ %.074142, %.preheader97 ], [ %.478, %._crit_edge141.loopexit ]
  %115 = add nsw i32 %113, 1
  store i32 %115, ptr %11, align 4, !tbaa !5
  %116 = icmp slt i32 %115, %112
  br i1 %116, label %.preheader97, label %._crit_edge143, !llvm.loop !21

117:                                              ; preds = %184
  %118 = load i32, ptr %3, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = icmp slt i64 %indvars.iv.next167, %119
  br i1 %120, label %.preheader, label %._crit_edge141.loopexit, !llvm.loop !22

121:                                              ; preds = %.preheader, %184
  %indvars.iv163 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next164, %184 ]
  %.276136 = phi i32 [ %.175139, %.preheader ], [ %.478, %184 ]
  %122 = call noundef nonnull align 1 dereferenceable(200) ptr @_ZNSt5arrayIS_IS_IbLm4EELm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(10000) @walls, i64 noundef %indvars.iv166) #8
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNSt5arrayIS_IbLm4EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(200) %122, i64 noundef %124) #8
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %125, i64 noundef %indvars.iv163) #8
  %127 = load i8, ptr %126, align 1, !tbaa !16, !range !18, !noundef !19
  %128 = trunc nuw i8 %127 to i1
  br i1 %128, label %129, label %184

129:                                              ; preds = %121
  %130 = call noundef nonnull align 1 dereferenceable(200) ptr @_ZNSt5arrayIS_IS_IbLm4EELm50EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(10000) @walls, i64 noundef %indvars.iv166) #8
  %131 = load i32, ptr %11, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNSt5arrayIS_IbLm4EELm50EEixEm(ptr noundef nonnull align 1 dereferenceable(200) %130, i64 noundef %132) #8
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIbLm4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %133, i64 noundef %indvars.iv163) #8
  store i8 0, ptr %134, align 1, !tbaa !16
  %135 = load i32, ptr %11, align 4, !tbaa !5
  %136 = load i32, ptr %3, align 4, !tbaa !5
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = invoke noundef i32 @_Z5recuriiii(i32 noundef %106, i32 noundef %135, i32 noundef %136, i32 noundef %137)
          to label %139 unwind label %143

139:                                              ; preds = %129
  %.not88 = icmp slt i32 %138, %.276136
  br i1 %.not88, label %180, label %140

140:                                              ; preds = %139
  %141 = icmp sgt i32 %138, %.276136
  br i1 %141, label %142, label %145

142:                                              ; preds = %140
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @_ZNSt6vectorIbSaIbEE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  br label %145

143:                                              ; preds = %.invoke, %147, %129
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %183

145:                                              ; preds = %142, %140
  %146 = trunc nuw nsw i64 %indvars.iv163 to i32
  switch i32 %146, label %default.unreachable [
    i32 0, label %147
    i32 1, label %152
    i32 2, label %161
    i32 3, label %170
  ]

147:                                              ; preds = %145
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %148 unwind label %143

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  store i32 %111, ptr %12, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %149 unwind label %150

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

150:                                              ; preds = %148
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  br label %183

152:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %153 = load i32, ptr %11, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %13, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %155 unwind label %157

155:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  store i32 %110, ptr %14, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %156 unwind label %159

156:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %.invoke

157:                                              ; preds = %152
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %183

159:                                              ; preds = %155
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %183

161:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %162 = load i32, ptr %11, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %15, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %164 unwind label %166

164:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 %109, ptr %16, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %165 unwind label %168

165:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  br label %.invoke

166:                                              ; preds = %161
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %183

168:                                              ; preds = %164
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  br label %183

170:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  %171 = load i32, ptr %11, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %17, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %173 unwind label %176

173:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  store i32 %108, ptr %18, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %174 unwind label %178

174:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  br label %.invoke

.invoke:                                          ; preds = %149, %156, %165, %174
  %175 = phi i1 [ true, %174 ], [ false, %165 ], [ true, %156 ], [ false, %149 ]
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %10, i1 noundef zeroext %175)
          to label %180 unwind label %143

176:                                              ; preds = %170
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  br label %183

178:                                              ; preds = %173
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  br label %183

default.unreachable:                              ; preds = %145
  unreachable

180:                                              ; preds = %.invoke, %139
  %.377 = phi i32 [ %.276136, %139 ], [ %138, %.invoke ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(10000) @walls, ptr noundef nonnull align 1 dereferenceable(10000) @wallsorig, i64 10000, i1 false), !tbaa.struct !9
  %181 = load i32, ptr %3, align 4, !tbaa !5
  %182 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z9rstvisitsii(i32 noundef %181, i32 noundef %182)
  br label %184

183:                                              ; preds = %178, %176, %168, %166, %159, %157, %150, %143
  %.pn89 = phi { ptr, i32 } [ %144, %143 ], [ %179, %178 ], [ %177, %176 ], [ %169, %168 ], [ %167, %166 ], [ %160, %159 ], [ %158, %157 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %251

184:                                              ; preds = %121, %180
  %.478 = phi i32 [ %.377, %180 ], [ %.276136, %121 ]
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next164, 4
  br i1 %exitcond.not, label %117, label %121, !llvm.loop !23

._crit_edge149:                                   ; preds = %202, %._crit_edge143
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %185 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  store ptr %185, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  %186 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  store ptr %186, ptr %22, align 8
  %187 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %187, label %.lr.ph153, label %._crit_edge154

.lr.ph148:                                        ; preds = %._crit_edge143, %202
  %188 = phi i64 [ %204, %202 ], [ 0, %._crit_edge143 ]
  %.060146 = phi i32 [ %203, %202 ], [ 0, %._crit_edge143 ]
  %.061145 = phi i32 [ %.162, %202 ], [ 51, %._crit_edge143 ]
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %188) #8
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %.not = icmp sgt i32 %190, %.061145
  br i1 %.not, label %202, label %191

191:                                              ; preds = %.lr.ph148
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %188) #8
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = icmp slt i32 %193, %.061145
  br i1 %194, label %195, label %196

195:                                              ; preds = %191
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br label %196

196:                                              ; preds = %195, %191
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %188) #8
  %198 = load i32, ptr %197, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  store i32 %.060146, ptr %20, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %199 unwind label %200

199:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  br label %202

200:                                              ; preds = %196
  %201 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  br label %250

202:                                              ; preds = %.lr.ph148, %199
  %.162 = phi i32 [ %198, %199 ], [ %.061145, %.lr.ph148 ]
  %203 = add i32 %.060146, 1
  %204 = zext i32 %203 to i64
  %205 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %206 = icmp ugt i64 %205, %204
  br i1 %206, label %.lr.ph148, label %._crit_edge149, !llvm.loop !24

._crit_edge154.loopexit:                          ; preds = %218
  %207 = sext i32 %.159 to i64
  br label %._crit_edge154

._crit_edge154:                                   ; preds = %._crit_edge154.loopexit, %._crit_edge149
  %.058.lcssa = phi i64 [ 0, %._crit_edge149 ], [ %207, %._crit_edge154.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #8
  %208 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %.058.lcssa)
          to label %221 unwind label %227

.lr.ph153:                                        ; preds = %._crit_edge149, %218
  %.058151 = phi i32 [ %.159, %218 ], [ 0, %._crit_edge149 ]
  %.263150 = phi i32 [ %.364, %218 ], [ 0, %._crit_edge149 ]
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %211) #8
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = icmp sgt i32 %213, %.263150
  br i1 %214, label %215, label %218

215:                                              ; preds = %.lr.ph153
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %211) #8
  %217 = load i32, ptr %216, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %215, %.lr.ph153
  %.364 = phi i32 [ %217, %215 ], [ %.263150, %.lr.ph153 ]
  %.159 = phi i32 [ %210, %215 ], [ %.058151, %.lr.ph153 ]
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %220 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %220, label %.lr.ph153, label %._crit_edge154.loopexit

221:                                              ; preds = %._crit_edge154
  %222 = extractvalue { ptr, i64 } %208, 0
  store ptr %222, ptr %23, align 8
  %223 = getelementptr inbounds i8, ptr %23, i64 8
  %224 = extractvalue { ptr, i64 } %208, 1
  store i64 %224, ptr %223, align 8
  %225 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #8
  %spec.select = select i1 %225, i8 78, i8 69
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.074.lcssa)
          to label %229 unwind label %248

227:                                              ; preds = %._crit_edge154
  %228 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #8
  br label %250

229:                                              ; preds = %221
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %231 unwind label %248

231:                                              ; preds = %229
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.058.lcssa) #8
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %230, i32 noundef %233)
          to label %235 unwind label %248

235:                                              ; preds = %231
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef nonnull @.str.2)
          to label %237 unwind label %248

237:                                              ; preds = %235
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.058.lcssa) #8
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %236, i32 noundef %239)
          to label %241 unwind label %248

241:                                              ; preds = %237
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull @.str.2)
          to label %243 unwind label %248

243:                                              ; preds = %241
  %244 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %242, i8 noundef signext %spec.select)
          to label %245 unwind label %248

245:                                              ; preds = %243
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %244, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %247 unwind label %248

247:                                              ; preds = %245
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #8
  ret i32 0

248:                                              ; preds = %245, %243, %241, %237, %235, %231, %229, %221
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %250

250:                                              ; preds = %227, %248, %200
  %.pn86 = phi { ptr, i32 } [ %201, %200 ], [ %249, %248 ], [ %228, %227 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  br label %251

251:                                              ; preds = %250, %183
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %183 ], [ %.pn86, %250 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %252

252:                                              ; preds = %251, %104, %79
  %.pn92 = phi { ptr, i32 } [ %80, %79 ], [ %.pn89.pn, %251 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %253

253:                                              ; preds = %252, %52, %40
  %.pn94 = phi { ptr, i32 } [ %53, %52 ], [ %.pn92, %252 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #8
  br label %254

254:                                              ; preds = %253, %38
  %.pn94.pn = phi { ptr, i32 } [ %.pn94, %253 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn94.pn
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress 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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #7

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

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

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

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

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

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


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