; LLVM IR from mackorone/mms :: old/v2/src/sim (MazeFileUtilities)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sim::Direction, std::allocator<sim::Direction>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Direction, std::allocator<sim::Direction>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Direction, std::allocator<sim::Direction>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Direction, std::allocator<sim::Direction>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.74" = type { %"struct.std::_Vector_base.75" }
%"struct.std::_Vector_base.75" = type { %"struct.std::_Vector_base<std::vector<sim::BasicTile>, std::allocator<std::vector<sim::BasicTile>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<sim::BasicTile>, std::allocator<std::vector<sim::BasicTile>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<sim::BasicTile>, std::allocator<std::vector<sim::BasicTile>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<sim::BasicTile>, std::allocator<std::vector<sim::BasicTile>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.79" = type { %"struct.std::_Vector_base.80" }
%"struct.std::_Vector_base.80" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.84 }
%union.anon.84 = 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.26" = type { i8 }
%"class.std::vector.85" = type { %"struct.std::_Vector_base.86" }
%"struct.std::_Vector_base.86" = 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.90" = type { %"struct.std::_Vector_base.91" }
%"struct.std::_Vector_base.91" = type { %"struct.std::_Vector_base<sim::BasicTile, std::allocator<sim::BasicTile>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::BasicTile, std::allocator<sim::BasicTile>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::BasicTile, std::allocator<sim::BasicTile>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::BasicTile, std::allocator<sim::BasicTile>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.sim::BasicTile" = type { %"class.std::map.95" }
%"class.std::map.95" = type { %"class.std::_Rb_tree.96" }
%"class.std::_Rb_tree.96" = type { %"struct.std::_Rb_tree<sim::Direction, std::pair<const sim::Direction, bool>, std::_Select1st<std::pair<const sim::Direction, bool>>, std::less<sim::Direction>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::Direction, std::pair<const sim::Direction, bool>, std::_Select1st<std::pair<const sim::Direction, bool>>, std::less<sim::Direction>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair.103" = type <{ i32, i8, [3 x i8] }>
%"struct.std::pair.100" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }

@_ZN3simL10DIRECTIONSE = external hidden global %"class.std::vector", align 8
@.str.22 = external hidden unnamed_addr constant [1 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim17MazeFileUtilities19loadMazeFileMapTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.74") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.79", align 8
  %6 = alloca %"class.std::basic_ifstream", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.26", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::vector.74", align 8
  %13 = alloca i8, align 1
  %14 = alloca %"class.std::vector.85", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::vector.79", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::vector.90", align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.sim::BasicTile", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::pair.103", align 4
  %31 = alloca i8, align 1
  %32 = alloca %"struct.std::pair.100", align 8
  %33 = alloca i8, align 1
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i8, align 1
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i1, align 1
  %43 = alloca i32, align 4
  %44 = alloca %"class.std::vector.90", align 8
  %45 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 520, ptr %6) #6
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #6
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef %47, i32 noundef 8)
          to label %48 unwind label %65

48:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %49 unwind label %69

49:                                               ; preds = %48
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %50

50:                                               ; preds = %81, %49
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %52 unwind label %73

52:                                               ; preds = %50
  %53 = load ptr, ptr %51, align 8, !tbaa !9
  %54 = getelementptr i8, ptr %53, i64 -24
  %55 = load i64, ptr %54, align 8
  %56 = getelementptr inbounds i8, ptr %51, i64 %55
  %57 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %56)
          to label %58 unwind label %73

58:                                               ; preds = %52
  br i1 %57, label %59, label %82

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  invoke void @_ZN3sim12SimUtilities4trimERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %60 unwind label %77

60:                                               ; preds = %59
  %61 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  %62 = icmp ult i64 0, %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br i1 %62, label %63, label %81

63:                                               ; preds = %60
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %64 unwind label %73

64:                                               ; preds = %63
  br label %81

65:                                               ; preds = %2
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %7, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %8, align 4
  br label %499

69:                                               ; preds = %48
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %498

73:                                               ; preds = %82, %63, %52, %50
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  br label %497

77:                                               ; preds = %59
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %497

81:                                               ; preds = %64, %60
  br label %50, !llvm.loop !11

82:                                               ; preds = %58
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %6)
          to label %83 unwind label %73

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  store i8 0, ptr %13, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 -1, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !14
  br label %84

84:                                               ; preds = %422, %83
  %85 = load i32, ptr %16, align 4, !tbaa !14
  %86 = sext i32 %85 to i64
  %87 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %88 = icmp ult i64 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %84
  store i32 4, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %427

90:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  %91 = load i32, ptr %16, align 4, !tbaa !14
  %92 = sext i32 %91 to i64
  %93 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %92)
          to label %94 unwind label %110

94:                                               ; preds = %90
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %93)
          to label %95 unwind label %110

95:                                               ; preds = %94
  %96 = load i32, ptr %16, align 4, !tbaa !14
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %145

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %18, i64 noundef 0)
          to label %100 unwind label %114

100:                                              ; preds = %98
  %101 = load i8, ptr %99, align 1, !tbaa !13
  store i8 %101, ptr %13, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %102 = load i8, ptr %13, align 1, !tbaa !13
  invoke void @_ZN3sim12SimUtilities8tokenizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcbb(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %18, i8 noundef signext %102, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %103 unwind label %118

103:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !14
  br label %104

104:                                              ; preds = %131, %103
  %105 = load i32, ptr %20, align 4, !tbaa !14
  %106 = sext i32 %105 to i64
  %107 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %108 = icmp ult i64 %106, %107
  br i1 %108, label %122, label %109

109:                                              ; preds = %104
  store i32 7, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %143

110:                                              ; preds = %94, %90
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %7, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %8, align 4
  br label %426

114:                                              ; preds = %318, %313, %305, %148, %98
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %7, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %8, align 4
  br label %425

118:                                              ; preds = %100
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %7, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %8, align 4
  br label %144

122:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  invoke void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %123 unwind label %134

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %124 = load i32, ptr %20, align 4, !tbaa !14
  %125 = sext i32 %124 to i64
  %126 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %125)
          to label %127 unwind label %138

127:                                              ; preds = %123
  %128 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %126) #6
  %129 = trunc i64 %128 to i32
  store i32 %129, ptr %22, align 4, !tbaa !14
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %130 unwind label %138

130:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %20, align 4, !tbaa !14
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %20, align 4, !tbaa !14
  br label %104, !llvm.loop !16

134:                                              ; preds = %122
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %7, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %8, align 4
  br label %142

138:                                              ; preds = %127, %123
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %142

142:                                              ; preds = %138, %134
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %144

143:                                              ; preds = %109
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  br label %145

144:                                              ; preds = %142, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  br label %425

145:                                              ; preds = %143, %95
  %146 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  %147 = icmp ult i64 0, %146
  br i1 %147, label %148, label %305

148:                                              ; preds = %145
  %149 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %18, i64 noundef 0)
          to label %150 unwind label %114

150:                                              ; preds = %148
  %151 = load i8, ptr %149, align 1, !tbaa !13
  %152 = sext i8 %151 to i32
  %153 = load i8, ptr %13, align 1, !tbaa !13
  %154 = sext i8 %153 to i32
  %155 = icmp eq i32 %152, %154
  br i1 %155, label %156, label %305

156:                                              ; preds = %150
  %157 = load i32, ptr %15, align 4, !tbaa !14
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %159 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0)
          to label %160 unwind label %170

160:                                              ; preds = %156
  %161 = load i32, ptr %159, align 4, !tbaa !14
  %162 = add nsw i32 %161, 1
  %163 = sdiv i32 %162, 2
  store i32 %163, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !14
  br label %164

164:                                              ; preds = %299, %160
  %165 = load i32, ptr %24, align 4, !tbaa !14
  %166 = sext i32 %165 to i64
  %167 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %168 = icmp ult i64 %166, %167
  br i1 %168, label %174, label %169

169:                                              ; preds = %164
  store i32 10, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %303

170:                                              ; preds = %156
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %7, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %8, align 4
  br label %304

174:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 48, ptr %25) #6
  call void @_ZN3sim9BasicTileC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  store ptr @_ZN3simL10DIRECTIONSE, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %175 = call ptr @_ZNKSt6vectorIN3sim9DirectionESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN3simL10DIRECTIONSE) #6
  %176 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %175, ptr %176, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %177 = call ptr @_ZNKSt6vectorIN3sim9DirectionESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN3simL10DIRECTIONSE) #6
  %178 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %177, ptr %178, align 8
  br label %179

179:                                              ; preds = %195, %174
  %180 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3sim9DirectionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br i1 %180, label %182, label %181

181:                                              ; preds = %179
  store i32 13, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %201

182:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3sim9DirectionESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %184 = load i32, ptr %183, align 4, !tbaa !17
  store i32 %184, ptr %29, align 4, !tbaa !17
  %185 = getelementptr inbounds %"struct.sim::BasicTile", ptr %25, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  store i8 0, ptr %31, align 1, !tbaa !19
  %186 = invoke i64 @_ZSt9make_pairIRN3sim9DirectionEbESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %187 unwind label %197

187:                                              ; preds = %182
  %188 = trunc i64 %186 to i40
  store i40 %188, ptr %30, align 4
  %189 = invoke { ptr, i8 } @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE6insertIS4_IS1_bEEENSt9enable_ifIXsr16is_constructibleIS6_T_EE5valueES4_ISt17_Rb_tree_iteratorIS6_EbEE4typeEOSC_(ptr noundef nonnull align 8 dereferenceable(48) %185, ptr noundef nonnull align 4 dereferenceable(5) %30)
          to label %190 unwind label %197

190:                                              ; preds = %187
  %191 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 0
  %192 = extractvalue { ptr, i8 } %189, 0
  store ptr %192, ptr %191, align 8
  %193 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 1
  %194 = extractvalue { ptr, i8 } %189, 1
  store i8 %194, ptr %193, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %195

195:                                              ; preds = %190
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3sim9DirectionESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br label %179

197:                                              ; preds = %187, %182
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %7, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %302

201:                                              ; preds = %181
  %202 = load i32, ptr %24, align 4, !tbaa !14
  %203 = sext i32 %202 to i64
  %204 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %203)
          to label %205 unwind label %254

205:                                              ; preds = %201
  invoke void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %204, ptr noundef nonnull align 8 dereferenceable(48) %25)
          to label %206 unwind label %254

206:                                              ; preds = %205
  %207 = load i32, ptr %24, align 4, !tbaa !14
  %208 = sext i32 %207 to i64
  %209 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %208)
          to label %210 unwind label %254

210:                                              ; preds = %206
  %211 = load i32, ptr %209, align 4, !tbaa !14
  %212 = icmp slt i32 0, %211
  br i1 %212, label %213, label %272

213:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #6
  %214 = load i32, ptr %23, align 4, !tbaa !14
  %215 = sext i32 %214 to i64
  %216 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %18, i64 noundef %215)
          to label %217 unwind label %258

217:                                              ; preds = %213
  %218 = load i8, ptr %216, align 1, !tbaa !13
  %219 = sext i8 %218 to i32
  %220 = icmp ne i32 %219, 32
  %221 = zext i1 %220 to i8
  store i8 %221, ptr %33, align 1, !tbaa !19
  %222 = load i8, ptr %33, align 1, !tbaa !19, !range !21, !noundef !22
  %223 = trunc i8 %222 to i1
  %224 = load i32, ptr %24, align 4, !tbaa !14
  %225 = sext i32 %224 to i64
  %226 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %225)
          to label %227 unwind label %258

227:                                              ; preds = %217
  %228 = load i32, ptr %15, align 4, !tbaa !14
  %229 = sext i32 %228 to i64
  %230 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %226, i64 noundef %229)
          to label %231 unwind label %258

231:                                              ; preds = %227
  %232 = getelementptr inbounds %"struct.sim::BasicTile", ptr %230, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !17
  %233 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE2atERS5_(ptr noundef nonnull align 8 dereferenceable(48) %232, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %234 unwind label %262

234:                                              ; preds = %231
  %235 = zext i1 %223 to i8
  store i8 %235, ptr %233, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  %236 = load i32, ptr %15, align 4, !tbaa !14
  %237 = icmp slt i32 0, %236
  br i1 %237, label %238, label %270

238:                                              ; preds = %234
  %239 = load i8, ptr %33, align 1, !tbaa !19, !range !21, !noundef !22
  %240 = trunc i8 %239 to i1
  %241 = load i32, ptr %24, align 4, !tbaa !14
  %242 = sext i32 %241 to i64
  %243 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %242)
          to label %244 unwind label %258

244:                                              ; preds = %238
  %245 = load i32, ptr %15, align 4, !tbaa !14
  %246 = sub nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %247)
          to label %249 unwind label %258

249:                                              ; preds = %244
  %250 = getelementptr inbounds %"struct.sim::BasicTile", ptr %248, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 2, ptr %35, align 4, !tbaa !17
  %251 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE2atERS5_(ptr noundef nonnull align 8 dereferenceable(48) %250, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %252 unwind label %266

252:                                              ; preds = %249
  %253 = zext i1 %240 to i8
  store i8 %253, ptr %251, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %270

254:                                              ; preds = %282, %278, %206, %205, %201
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %7, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %8, align 4
  br label %302

258:                                              ; preds = %244, %238, %227, %217, %213
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %7, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %8, align 4
  br label %271

262:                                              ; preds = %231
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %7, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %271

266:                                              ; preds = %249
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %7, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %271

270:                                              ; preds = %252, %234
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  br label %272

271:                                              ; preds = %266, %262, %258
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  br label %302

272:                                              ; preds = %270, %210
  %273 = load i32, ptr %24, align 4, !tbaa !14
  %274 = sext i32 %273 to i64
  %275 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %276 = sub i64 %275, 1
  %277 = icmp ult i64 %274, %276
  br i1 %277, label %278, label %298

278:                                              ; preds = %272
  %279 = load i32, ptr %24, align 4, !tbaa !14
  %280 = sext i32 %279 to i64
  %281 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %280)
          to label %282 unwind label %254

282:                                              ; preds = %278
  %283 = load i32, ptr %281, align 4, !tbaa !14
  %284 = sdiv i32 %283, 2
  %285 = add nsw i32 1, %284
  %286 = load i32, ptr %23, align 4, !tbaa !14
  %287 = add nsw i32 %286, %285
  store i32 %287, ptr %23, align 4, !tbaa !14
  %288 = load i32, ptr %24, align 4, !tbaa !14
  %289 = add nsw i32 %288, 1
  %290 = sext i32 %289 to i64
  %291 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %290)
          to label %292 unwind label %254

292:                                              ; preds = %282
  %293 = load i32, ptr %291, align 4, !tbaa !14
  %294 = add nsw i32 %293, 1
  %295 = sdiv i32 %294, 2
  %296 = load i32, ptr %23, align 4, !tbaa !14
  %297 = add nsw i32 %296, %295
  store i32 %297, ptr %23, align 4, !tbaa !14
  br label %298

298:                                              ; preds = %292, %272
  call void @_ZN3sim9BasicTileD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %25) #6
  br label %299

299:                                              ; preds = %298
  %300 = load i32, ptr %24, align 4, !tbaa !14
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %24, align 4, !tbaa !14
  br label %164, !llvm.loop !23

302:                                              ; preds = %271, %254, %197
  call void @_ZN3sim9BasicTileD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %25) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %304

303:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %421

304:                                              ; preds = %302, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %425

305:                                              ; preds = %150, %145
  %306 = load i32, ptr %16, align 4, !tbaa !14
  %307 = sub nsw i32 %306, 1
  %308 = sext i32 %307 to i64
  %309 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %308)
          to label %310 unwind label %114

310:                                              ; preds = %305
  %311 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %309) #6
  %312 = icmp ult i64 0, %311
  br i1 %312, label %313, label %420

313:                                              ; preds = %310
  %314 = load i32, ptr %16, align 4, !tbaa !14
  %315 = sub nsw i32 %314, 1
  %316 = sext i32 %315 to i64
  %317 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %316)
          to label %318 unwind label %114

318:                                              ; preds = %313
  %319 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %317, i64 noundef 0)
          to label %320 unwind label %114

320:                                              ; preds = %318
  %321 = load i8, ptr %319, align 1, !tbaa !13
  %322 = sext i8 %321 to i32
  %323 = load i8, ptr %13, align 1, !tbaa !13
  %324 = sext i8 %323 to i32
  %325 = icmp eq i32 %322, %324
  br i1 %325, label %326, label %420

326:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 0, ptr %36, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  store i32 0, ptr %37, align 4, !tbaa !14
  br label %327

327:                                              ; preds = %414, %326
  %328 = load i32, ptr %37, align 4, !tbaa !14
  %329 = sext i32 %328 to i64
  %330 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %331 = icmp ule i64 %329, %330
  br i1 %331, label %333, label %332

332:                                              ; preds = %327
  store i32 15, ptr %17, align 4
  br label %418

333:                                              ; preds = %327
  %334 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  %335 = load i32, ptr %36, align 4, !tbaa !14
  %336 = sext i32 %335 to i64
  %337 = icmp ule i64 %334, %336
  br i1 %337, label %338, label %339

338:                                              ; preds = %333
  store i32 15, ptr %17, align 4
  br label %418

339:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #6
  %340 = load i32, ptr %36, align 4, !tbaa !14
  %341 = sext i32 %340 to i64
  %342 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %18, i64 noundef %341)
          to label %343 unwind label %366

343:                                              ; preds = %339
  %344 = load i8, ptr %342, align 1, !tbaa !13
  %345 = sext i8 %344 to i32
  %346 = icmp ne i32 %345, 32
  %347 = zext i1 %346 to i8
  store i8 %347, ptr %38, align 1, !tbaa !19
  %348 = load i32, ptr %36, align 4, !tbaa !14
  %349 = icmp slt i32 0, %348
  br i1 %349, label %350, label %374

350:                                              ; preds = %343
  %351 = load i8, ptr %38, align 1, !tbaa !19, !range !21, !noundef !22
  %352 = trunc i8 %351 to i1
  %353 = load i32, ptr %37, align 4, !tbaa !14
  %354 = sub nsw i32 %353, 1
  %355 = sext i32 %354 to i64
  %356 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %355)
          to label %357 unwind label %366

357:                                              ; preds = %350
  %358 = load i32, ptr %15, align 4, !tbaa !14
  %359 = sext i32 %358 to i64
  %360 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %356, i64 noundef %359)
          to label %361 unwind label %366

361:                                              ; preds = %357
  %362 = getelementptr inbounds %"struct.sim::BasicTile", ptr %360, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 1, ptr %39, align 4, !tbaa !17
  %363 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE2atERS5_(ptr noundef nonnull align 8 dereferenceable(48) %362, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %364 unwind label %370

364:                                              ; preds = %361
  %365 = zext i1 %352 to i8
  store i8 %365, ptr %363, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %374

366:                                              ; preds = %404, %386, %380, %357, %350, %339
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %7, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %8, align 4
  br label %417

370:                                              ; preds = %361
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %7, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %417

374:                                              ; preds = %364, %343
  %375 = load i32, ptr %36, align 4, !tbaa !14
  %376 = sext i32 %375 to i64
  %377 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  %378 = sub i64 %377, 1
  %379 = icmp ult i64 %376, %378
  br i1 %379, label %380, label %399

380:                                              ; preds = %374
  %381 = load i8, ptr %38, align 1, !tbaa !19, !range !21, !noundef !22
  %382 = trunc i8 %381 to i1
  %383 = load i32, ptr %37, align 4, !tbaa !14
  %384 = sext i32 %383 to i64
  %385 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %384)
          to label %386 unwind label %366

386:                                              ; preds = %380
  %387 = load i32, ptr %15, align 4, !tbaa !14
  %388 = sext i32 %387 to i64
  %389 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %385, i64 noundef %388)
          to label %390 unwind label %366

390:                                              ; preds = %386
  %391 = getelementptr inbounds %"struct.sim::BasicTile", ptr %389, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store i32 3, ptr %40, align 4, !tbaa !17
  %392 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE2atERS5_(ptr noundef nonnull align 8 dereferenceable(48) %391, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %393 unwind label %395

393:                                              ; preds = %390
  %394 = zext i1 %382 to i8
  store i8 %394, ptr %392, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %399

395:                                              ; preds = %390
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %7, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %417

399:                                              ; preds = %393, %374
  %400 = load i32, ptr %37, align 4, !tbaa !14
  %401 = sext i32 %400 to i64
  %402 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %403 = icmp ult i64 %401, %402
  br i1 %403, label %404, label %413

404:                                              ; preds = %399
  %405 = load i32, ptr %37, align 4, !tbaa !14
  %406 = sext i32 %405 to i64
  %407 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %406)
          to label %408 unwind label %366

408:                                              ; preds = %404
  %409 = load i32, ptr %407, align 4, !tbaa !14
  %410 = add nsw i32 %409, 1
  %411 = load i32, ptr %36, align 4, !tbaa !14
  %412 = add nsw i32 %411, %410
  store i32 %412, ptr %36, align 4, !tbaa !14
  br label %413

413:                                              ; preds = %408, %399
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  br label %414

414:                                              ; preds = %413
  %415 = load i32, ptr %37, align 4, !tbaa !14
  %416 = add nsw i32 %415, 1
  store i32 %416, ptr %37, align 4, !tbaa !14
  br label %327, !llvm.loop !24

417:                                              ; preds = %395, %370, %366
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %425

418:                                              ; preds = %338, %332
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %419

419:                                              ; preds = %418
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %420

420:                                              ; preds = %419, %320, %310
  br label %421

421:                                              ; preds = %420, %303
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %422

422:                                              ; preds = %421
  %423 = load i32, ptr %16, align 4, !tbaa !14
  %424 = add nsw i32 %423, 1
  store i32 %424, ptr %16, align 4, !tbaa !14
  br label %84, !llvm.loop !25

425:                                              ; preds = %417, %304, %144, %114
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %426

426:                                              ; preds = %425, %110
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %496

427:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 0, ptr %41, align 4, !tbaa !14
  br label %428

428:                                              ; preds = %439, %427
  %429 = load i32, ptr %41, align 4, !tbaa !14
  %430 = sext i32 %429 to i64
  %431 = call noundef i64 @_ZNKSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %432 = icmp ult i64 %430, %431
  br i1 %432, label %434, label %433

433:                                              ; preds = %428
  store i32 18, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %446

434:                                              ; preds = %428
  %435 = load i32, ptr %41, align 4, !tbaa !14
  %436 = sext i32 %435 to i64
  %437 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %436)
          to label %438 unwind label %442

438:                                              ; preds = %434
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %437) #6
  br label %439

439:                                              ; preds = %438
  %440 = load i32, ptr %41, align 4, !tbaa !14
  %441 = add nsw i32 %440, 1
  store i32 %441, ptr %41, align 4, !tbaa !14
  br label %428, !llvm.loop !26

442:                                              ; preds = %434
  %443 = landingpad { ptr, i32 }
          cleanup
  %444 = extractvalue { ptr, i32 } %443, 0
  store ptr %444, ptr %7, align 8
  %445 = extractvalue { ptr, i32 } %443, 1
  store i32 %445, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %496

446:                                              ; preds = %433
  store i1 false, ptr %42, align 1
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  store i32 0, ptr %43, align 4, !tbaa !14
  br label %447

447:                                              ; preds = %484, %446
  %448 = load i32, ptr %43, align 4, !tbaa !14
  %449 = sext i32 %448 to i64
  %450 = call noundef i64 @_ZNKSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %451 = icmp ult i64 %449, %450
  br i1 %451, label %453, label %452

452:                                              ; preds = %447
  store i32 21, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %492

453:                                              ; preds = %447
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #6
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %454 = load i32, ptr %43, align 4, !tbaa !14
  %455 = sext i32 %454 to i64
  %456 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %455)
          to label %457 unwind label %465

457:                                              ; preds = %453
  %458 = call noundef i64 @_ZNKSt6vectorIN3sim9BasicTileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %456) #6
  %459 = sub i64 %458, 1
  %460 = trunc i64 %459 to i32
  store i32 %460, ptr %45, align 4, !tbaa !14
  br label %461

461:                                              ; preds = %479, %457
  %462 = load i32, ptr %45, align 4, !tbaa !14
  %463 = icmp sge i32 %462, 0
  br i1 %463, label %469, label %464

464:                                              ; preds = %461
  store i32 24, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %482

465:                                              ; preds = %477, %473, %469, %453
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %7, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %491

469:                                              ; preds = %461
  %470 = load i32, ptr %43, align 4, !tbaa !14
  %471 = sext i32 %470 to i64
  %472 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %471)
          to label %473 unwind label %465

473:                                              ; preds = %469
  %474 = load i32, ptr %45, align 4, !tbaa !14
  %475 = sext i32 %474 to i64
  %476 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %472, i64 noundef %475)
          to label %477 unwind label %465

477:                                              ; preds = %473
  invoke void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(48) %476)
          to label %478 unwind label %465

478:                                              ; preds = %477
  br label %479

479:                                              ; preds = %478
  %480 = load i32, ptr %45, align 4, !tbaa !14
  %481 = sub nsw i32 %480, 1
  store i32 %481, ptr %45, align 4, !tbaa !14
  br label %461, !llvm.loop !27

482:                                              ; preds = %464
  invoke void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %44)
          to label %483 unwind label %487

483:                                              ; preds = %482
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #6
  br label %484

484:                                              ; preds = %483
  %485 = load i32, ptr %43, align 4, !tbaa !14
  %486 = add nsw i32 %485, 1
  store i32 %486, ptr %43, align 4, !tbaa !14
  br label %447, !llvm.loop !28

487:                                              ; preds = %482
  %488 = landingpad { ptr, i32 }
          cleanup
  %489 = extractvalue { ptr, i32 } %488, 0
  store ptr %489, ptr %7, align 8
  %490 = extractvalue { ptr, i32 } %488, 1
  store i32 %490, ptr %8, align 4
  br label %491

491:                                              ; preds = %487, %465
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %496

492:                                              ; preds = %452
  store i1 true, ptr %42, align 1
  store i32 1, ptr %17, align 4
  %493 = load i1, ptr %42, align 1
  br i1 %493, label %495, label %494

494:                                              ; preds = %492
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %495

495:                                              ; preds = %494, %492
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr %6) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  ret void

496:                                              ; preds = %491, %442, %426
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  br label %497

497:                                              ; preds = %496, %77, %73
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %498

498:                                              ; preds = %497, %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #6
  br label %499

499:                                              ; preds = %498, %65
  call void @llvm.lifetime.end.p0(i64 520, ptr %6) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  br label %500

500:                                              ; preds = %499
  %501 = load ptr, ptr %7, align 8
  %502 = load i32, ptr %8, align 4
  %503 = insertvalue { ptr, i32 } poison, ptr %501, 0
  %504 = insertvalue { ptr, i32 } %503, i32 %502, 1
  resume { ptr, i32 } %504
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

declare void @_ZN3sim12SimUtilities4trimERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #1 align 2

declare void @_ZN3sim12SimUtilities8tokenizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcbb(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8, ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext, i1 noundef zeroext, i1 noundef zeroext) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1 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)) #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE6insertIS4_IS1_bEEENSt9enable_ifIXsr16is_constructibleIS6_T_EE5valueES4_ISt17_Rb_tree_iteratorIS6_EbEE4typeEOSC_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(5)) #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sim::Direction, std::allocator<sim::Direction>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Direction, std::allocator<sim::Direction>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Direction, std::allocator<sim::Direction>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Direction, std::allocator<sim::Direction>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.74" = type { %"struct.std::_Vector_base.75" }
%"struct.std::_Vector_base.75" = type { %"struct.std::_Vector_base<std::vector<sim::BasicTile>, std::allocator<std::vector<sim::BasicTile>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<sim::BasicTile>, std::allocator<std::vector<sim::BasicTile>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<sim::BasicTile>, std::allocator<std::vector<sim::BasicTile>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<sim::BasicTile>, std::allocator<std::vector<sim::BasicTile>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.79" = type { %"struct.std::_Vector_base.80" }
%"struct.std::_Vector_base.80" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.84 }
%union.anon.84 = 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.26" = type { i8 }
%"class.std::vector.85" = type { %"struct.std::_Vector_base.86" }
%"struct.std::_Vector_base.86" = 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.90" = type { %"struct.std::_Vector_base.91" }
%"struct.std::_Vector_base.91" = type { %"struct.std::_Vector_base<sim::BasicTile, std::allocator<sim::BasicTile>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::BasicTile, std::allocator<sim::BasicTile>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::BasicTile, std::allocator<sim::BasicTile>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::BasicTile, std::allocator<sim::BasicTile>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.sim::BasicTile" = type { %"class.std::map.95" }
%"class.std::map.95" = type { %"class.std::_Rb_tree.96" }
%"class.std::_Rb_tree.96" = type { %"struct.std::_Rb_tree<sim::Direction, std::pair<const sim::Direction, bool>, std::_Select1st<std::pair<const sim::Direction, bool>>, std::less<sim::Direction>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::Direction, std::pair<const sim::Direction, bool>, std::_Select1st<std::pair<const sim::Direction, bool>>, std::less<sim::Direction>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair.103" = type <{ i32, i8, [3 x i8] }>

@_ZN3simL10DIRECTIONSE = external hidden global %"class.std::vector", align 8
@.str.22 = external hidden unnamed_addr constant [1 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim17MazeFileUtilities19loadMazeFileMapTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.74") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.79", align 8
  %4 = alloca %"class.std::basic_ifstream", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.26", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::vector.74", align 8
  %9 = alloca %"class.std::vector.85", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::vector.79", align 8
  %12 = alloca %"class.std::vector.90", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.sim::BasicTile", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair.103", align 8
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::vector.90", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %4) #6
  %25 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef %25, i32 noundef 8)
          to label %26 unwind label %41

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %27 unwind label %43

27:                                               ; preds = %26
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %28

28:                                               ; preds = %.backedge, %27
  %29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %30 unwind label %.loopexit119

30:                                               ; preds = %28
  %31 = load ptr, ptr %29, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %31, i64 -24
  %33 = load i64, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr %29, i64 %33
  %35 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %34)
          to label %36 unwind label %.loopexit119

36:                                               ; preds = %30
  br i1 %35, label %37, label %47

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  invoke void @_ZN3sim12SimUtilities4trimERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %38 unwind label %45

38:                                               ; preds = %37
  %39 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %.not110 = icmp eq i64 %39, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br i1 %.not110, label %.backedge, label %40

40:                                               ; preds = %38
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %.backedge unwind label %.loopexit119

.backedge:                                        ; preds = %40, %38
  br label %28, !llvm.loop !8

41:                                               ; preds = %2
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %266

43:                                               ; preds = %26
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %265

.loopexit119:                                     ; preds = %28, %30, %40
  %lpad.loopexit121 = landingpad { ptr, i32 }
          cleanup
  br label %264

.loopexit.split-lp120:                            ; preds = %47
  %lpad.loopexit.split-lp122 = landingpad { ptr, i32 }
          cleanup
  br label %264

45:                                               ; preds = %37
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %264

47:                                               ; preds = %36
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %48 unwind label %.loopexit.split-lp120

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %49 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %.not146 = icmp eq i64 %49, 0
  br i1 %.not146, label %.preheader, label %.lr.ph138

.preheader:                                       ; preds = %.loopexit116, %48
  %50 = call noundef i64 @_ZNKSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %.not149 = icmp eq i64 %50, 0
  br i1 %.not149, label %._crit_edge141, label %.lr.ph140

.lr.ph138:                                        ; preds = %48, %.loopexit116
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %.loopexit116 ], [ 0, %48 ]
  %.077136 = phi i8 [ %.178, %.loopexit116 ], [ 0, %48 ]
  %.079135 = phi i32 [ %.180, %.loopexit116 ], [ -1, %48 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  %51 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv159)
          to label %52 unwind label %60

52:                                               ; preds = %.lr.ph138
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %53 unwind label %60

53:                                               ; preds = %52
  %54 = icmp eq i64 %indvars.iv159, 0
  br i1 %54, label %55, label %80

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef 0)
          to label %57 unwind label %62

57:                                               ; preds = %55
  %58 = load i8, ptr %56, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  invoke void @_ZN3sim12SimUtilities8tokenizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcbb(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.79") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %10, i8 noundef signext %58, i1 noundef zeroext false, i1 noundef zeroext false)
          to label %.preheader118 unwind label %64

.preheader118:                                    ; preds = %57
  %59 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %.not147 = icmp eq i64 %59, 0
  br i1 %.not147, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %71, %.preheader118
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %80

60:                                               ; preds = %52, %.lr.ph138
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %235

62:                                               ; preds = %179, %177, %172, %82, %55
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %234

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

.lr.ph:                                           ; preds = %.preheader118, %71
  %indvars.iv = phi i64 [ %indvars.iv.next, %71 ], [ 0, %.preheader118 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  invoke void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %66 unwind label %74

66:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %67 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv)
          to label %68 unwind label %76

68:                                               ; preds = %66
  %69 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  %70 = trunc i64 %69 to i32
  store i32 %70, ptr %13, align 4, !tbaa !12
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %71 unwind label %76

71:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %72 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %73 = icmp ugt i64 %72, %indvars.iv.next
  br i1 %73, label %.lr.ph, label %._crit_edge, !llvm.loop !14

74:                                               ; preds = %.lr.ph
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %78

76:                                               ; preds = %68, %66
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br label %78

78:                                               ; preds = %76, %74
  %.pn104 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %79

79:                                               ; preds = %78, %64
  %.pn104.pn = phi { ptr, i32 } [ %.pn104, %78 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %234

80:                                               ; preds = %._crit_edge, %53
  %.178 = phi i8 [ %58, %._crit_edge ], [ %.077136, %53 ]
  %81 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  %.not = icmp eq i64 %81, 0
  br i1 %.not, label %172, label %82

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef 0)
          to label %84 unwind label %62

84:                                               ; preds = %82
  %85 = load i8, ptr %83, align 1, !tbaa !10
  %86 = icmp eq i8 %85, %.178
  br i1 %86, label %87, label %172

87:                                               ; preds = %84
  %88 = add nsw i32 %.079135, 1
  %89 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0)
          to label %90 unwind label %98

90:                                               ; preds = %87
  %91 = load i32, ptr %89, align 4, !tbaa !12
  %92 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not148 = icmp eq i64 %92, 0
  br i1 %.not148, label %.loopexit116, label %.lr.ph131

.lr.ph131:                                        ; preds = %90
  %93 = add nsw i32 %91, 1
  %94 = sdiv i32 %93, 2
  %95 = sext i32 %88 to i64
  %96 = icmp sgt i32 %.079135, -1
  %97 = zext nneg i32 %.079135 to i64
  br label %100

98:                                               ; preds = %87
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %234

100:                                              ; preds = %.lr.ph131, %168
  %indvars.iv153 = phi i64 [ 0, %.lr.ph131 ], [ %indvars.iv.next154.pre-phi, %168 ]
  %.083128 = phi i32 [ %94, %.lr.ph131 ], [ %.184, %168 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #6
  call void @_ZN3sim9BasicTileC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %101 = call ptr @_ZNKSt6vectorIN3sim9DirectionESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN3simL10DIRECTIONSE) #6
  store ptr %101, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %102 = call ptr @_ZNKSt6vectorIN3sim9DirectionESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN3simL10DIRECTIONSE) #6
  store ptr %102, ptr %16, align 8
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3sim9DirectionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %103, label %.lr.ph126, label %._crit_edge127

._crit_edge127:                                   ; preds = %111, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  %104 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv153)
          to label %116 unwind label %142

.lr.ph126:                                        ; preds = %100, %111
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN3sim9DirectionESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %106 = load i32, ptr %105, align 4, !tbaa !15
  store i32 %106, ptr %17, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #6
  store i8 0, ptr %19, align 1, !tbaa !17
  %107 = invoke i64 @_ZSt9make_pairIRN3sim9DirectionEbESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %108 unwind label %114

108:                                              ; preds = %.lr.ph126
  %109 = trunc i64 %107 to i40
  store i40 %109, ptr %18, align 8
  %110 = invoke { ptr, i8 } @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE6insertIS4_IS1_bEEENSt9enable_ifIXsr16is_constructibleIS6_T_EE5valueES4_ISt17_Rb_tree_iteratorIS6_EbEE4typeEOSC_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(5) %18)
          to label %111 unwind label %114

111:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN3sim9DirectionESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %113 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN3sim9DirectionESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %113, label %.lr.ph126, label %._crit_edge127

114:                                              ; preds = %108, %.lr.ph126
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %171

116:                                              ; preds = %._crit_edge127
  invoke void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %117 unwind label %142

117:                                              ; preds = %116
  %118 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv153)
          to label %119 unwind label %142

119:                                              ; preds = %117
  %120 = load i32, ptr %118, align 4, !tbaa !12
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %122, label %150

122:                                              ; preds = %119
  %123 = sext i32 %.083128 to i64
  %124 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef %123)
          to label %125 unwind label %144

125:                                              ; preds = %122
  %126 = load i8, ptr %124, align 1, !tbaa !10
  %127 = icmp ne i8 %126, 32
  %128 = zext i1 %127 to i8
  %129 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv153)
          to label %130 unwind label %144

130:                                              ; preds = %125
  %131 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %95)
          to label %132 unwind label %144

132:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  store i32 0, ptr %20, align 4, !tbaa !15
  %133 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE2atERS5_(ptr noundef nonnull align 8 dereferenceable(48) %131, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %134 unwind label %146

134:                                              ; preds = %132
  store i8 %128, ptr %133, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  br i1 %96, label %135, label %150

135:                                              ; preds = %134
  %136 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv153)
          to label %137 unwind label %144

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %97)
          to label %139 unwind label %144

139:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  store i32 2, ptr %21, align 4, !tbaa !15
  %140 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE2atERS5_(ptr noundef nonnull align 8 dereferenceable(48) %138, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %141 unwind label %148

141:                                              ; preds = %139
  store i8 %128, ptr %140, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  br label %150

142:                                              ; preds = %156, %154, %117, %116, %._crit_edge127
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %171

144:                                              ; preds = %137, %135, %130, %125, %122
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %171

146:                                              ; preds = %132
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  br label %171

148:                                              ; preds = %139
  %149 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  br label %171

150:                                              ; preds = %134, %141, %119
  %151 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %152 = add i64 %151, -1
  %153 = icmp ugt i64 %152, %indvars.iv153
  br i1 %153, label %154, label %._crit_edge171

._crit_edge171:                                   ; preds = %150
  %.pre = add nuw nsw i64 %indvars.iv153, 1
  br label %168

154:                                              ; preds = %150
  %155 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv153)
          to label %156 unwind label %142

156:                                              ; preds = %154
  %157 = load i32, ptr %155, align 4, !tbaa !12
  %158 = add nuw nsw i64 %indvars.iv153, 1
  %159 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %158)
          to label %160 unwind label %142

160:                                              ; preds = %156
  %161 = sdiv i32 %157, 2
  %162 = load i32, ptr %159, align 4, !tbaa !12
  %163 = add nsw i32 %162, 1
  %164 = sdiv i32 %163, 2
  %165 = add i32 %.083128, 1
  %166 = add i32 %165, %161
  %167 = add nsw i32 %166, %164
  br label %168

168:                                              ; preds = %._crit_edge171, %160
  %indvars.iv.next154.pre-phi = phi i64 [ %.pre, %._crit_edge171 ], [ %158, %160 ]
  %.184 = phi i32 [ %.083128, %._crit_edge171 ], [ %167, %160 ]
  call void @_ZN3sim9BasicTileD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #6
  %169 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %170 = icmp ugt i64 %169, %indvars.iv.next154.pre-phi
  br i1 %170, label %100, label %.loopexit116, !llvm.loop !19

171:                                              ; preds = %144, %146, %148, %142, %114
  %.pn101 = phi { ptr, i32 } [ %115, %114 ], [ %143, %142 ], [ %149, %148 ], [ %145, %144 ], [ %147, %146 ]
  call void @_ZN3sim9BasicTileD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #6
  br label %234

172:                                              ; preds = %84, %80
  %173 = add nsw i64 %indvars.iv159, -1
  %174 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %173)
          to label %175 unwind label %62

175:                                              ; preds = %172
  %176 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %174) #6
  %.not94 = icmp eq i64 %176, 0
  br i1 %.not94, label %.loopexit116, label %177

177:                                              ; preds = %175
  %178 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %173)
          to label %179 unwind label %62

179:                                              ; preds = %177
  %180 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %178, i64 noundef 0)
          to label %181 unwind label %62

181:                                              ; preds = %179
  %182 = load i8, ptr %180, align 1, !tbaa !10
  %183 = icmp eq i8 %182, %.178
  br i1 %183, label %.preheader115, label %.loopexit116

.preheader115:                                    ; preds = %181
  %184 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %185 = sext i32 %.079135 to i64
  br label %186

186:                                              ; preds = %.preheader115, %230
  %indvars.iv156 = phi i64 [ 0, %.preheader115 ], [ %indvars.iv.next157, %230 ]
  %.062132 = phi i32 [ 0, %.preheader115 ], [ %.163, %230 ]
  %187 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  %188 = sext i32 %.062132 to i64
  %.not96 = icmp ugt i64 %187, %188
  br i1 %.not96, label %189, label %.loopexit116

189:                                              ; preds = %186
  %190 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE2atEm(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef %188)
          to label %191 unwind label %204

191:                                              ; preds = %189
  %192 = load i8, ptr %190, align 1, !tbaa !10
  %193 = icmp ne i8 %192, 32
  %194 = zext i1 %193 to i8
  %195 = icmp sgt i32 %.062132, 0
  br i1 %195, label %196, label %208

196:                                              ; preds = %191
  %197 = add nsw i64 %indvars.iv156, -1
  %198 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %197)
          to label %199 unwind label %204

199:                                              ; preds = %196
  %200 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %198, i64 noundef %185)
          to label %201 unwind label %204

201:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  store i32 1, ptr %22, align 4, !tbaa !15
  %202 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE2atERS5_(ptr noundef nonnull align 8 dereferenceable(48) %200, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %203 unwind label %206

203:                                              ; preds = %201
  store i8 %194, ptr %202, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  br label %208

204:                                              ; preds = %224, %214, %212, %199, %196, %189
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %234

206:                                              ; preds = %201
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  br label %234

208:                                              ; preds = %203, %191
  %209 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  %210 = add i64 %209, -1
  %211 = icmp ugt i64 %210, %188
  br i1 %211, label %212, label %221

212:                                              ; preds = %208
  %213 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv156)
          to label %214 unwind label %204

214:                                              ; preds = %212
  %215 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef %185)
          to label %216 unwind label %204

216:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  store i32 3, ptr %23, align 4, !tbaa !15
  %217 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE2atERS5_(ptr noundef nonnull align 8 dereferenceable(48) %215, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %218 unwind label %219

218:                                              ; preds = %216
  store i8 %194, ptr %217, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  br label %221

219:                                              ; preds = %216
  %220 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  br label %234

221:                                              ; preds = %218, %208
  %222 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %223 = icmp ugt i64 %222, %indvars.iv156
  br i1 %223, label %224, label %230

224:                                              ; preds = %221
  %225 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv156)
          to label %226 unwind label %204

226:                                              ; preds = %224
  %227 = load i32, ptr %225, align 4, !tbaa !12
  %228 = add i32 %.062132, 1
  %229 = add i32 %228, %227
  br label %230

230:                                              ; preds = %226, %221
  %.163 = phi i32 [ %229, %226 ], [ %.062132, %221 ]
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %231 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not95.not = icmp ugt i64 %231, %indvars.iv156
  br i1 %.not95.not, label %186, label %.loopexit116, !llvm.loop !20

.loopexit116:                                     ; preds = %168, %230, %186, %90, %175, %181
  %.180 = phi i32 [ %.079135, %181 ], [ %.079135, %175 ], [ %88, %90 ], [ %.079135, %186 ], [ %.079135, %230 ], [ %88, %168 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %232 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %233 = icmp ugt i64 %232, %indvars.iv.next160
  br i1 %233, label %.lr.ph138, label %.preheader, !llvm.loop !21

234:                                              ; preds = %204, %206, %219, %98, %171, %79, %62
  %.pn104.pn.pn = phi { ptr, i32 } [ %.pn104.pn, %79 ], [ %63, %62 ], [ %.pn101, %171 ], [ %99, %98 ], [ %205, %204 ], [ %220, %219 ], [ %207, %206 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %235

235:                                              ; preds = %234, %60
  %.pn104.pn.pn.pn = phi { ptr, i32 } [ %.pn104.pn.pn, %234 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %263

._crit_edge141:                                   ; preds = %238, %.preheader
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %236 = call noundef i64 @_ZNKSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %.not150 = icmp eq i64 %236, 0
  br i1 %.not150, label %._crit_edge145, label %.lr.ph144

.lr.ph140:                                        ; preds = %.preheader, %238
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %238 ], [ 0, %.preheader ]
  %237 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv161)
          to label %238 unwind label %241

238:                                              ; preds = %.lr.ph140
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %237) #6
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %239 = call noundef i64 @_ZNKSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %240 = icmp ugt i64 %239, %indvars.iv.next162
  br i1 %240, label %.lr.ph140, label %._crit_edge141, !llvm.loop !22

241:                                              ; preds = %.lr.ph140
  %242 = landingpad { ptr, i32 }
          cleanup
  br label %263

.lr.ph144:                                        ; preds = %._crit_edge141, %257
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %257 ], [ 0, %._crit_edge141 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #6
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %243 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv167)
          to label %244 unwind label %.loopexit.split-lp

244:                                              ; preds = %.lr.ph144
  %245 = call noundef i64 @_ZNKSt6vectorIN3sim9BasicTileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %243) #6
  %246 = and i64 %245, 4294967295
  br label %247

247:                                              ; preds = %256, %244
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %256 ], [ %246, %244 ]
  %indvars.iv.next165 = add nsw i64 %indvars.iv164, -1
  %248 = and i64 %indvars.iv.next165, 2147483648
  %249 = icmp eq i64 %248, 0
  br i1 %249, label %251, label %250

250:                                              ; preds = %247
  invoke void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %257 unwind label %260

.loopexit:                                        ; preds = %251, %253, %256
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %262

.loopexit.split-lp:                               ; preds = %.lr.ph144
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %262

251:                                              ; preds = %247
  %252 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv167)
          to label %253 unwind label %.loopexit

253:                                              ; preds = %251
  %254 = and i64 %indvars.iv.next165, 2147483647
  %255 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %252, i64 noundef %254)
          to label %256 unwind label %.loopexit

256:                                              ; preds = %253
  invoke void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(48) %255)
          to label %247 unwind label %.loopexit, !llvm.loop !23

257:                                              ; preds = %250
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #6
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %258 = call noundef i64 @_ZNKSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %259 = icmp ugt i64 %258, %indvars.iv.next168
  br i1 %259, label %.lr.ph144, label %._crit_edge145, !llvm.loop !24

260:                                              ; preds = %250
  %261 = landingpad { ptr, i32 }
          cleanup
  br label %262

262:                                              ; preds = %.loopexit, %.loopexit.split-lp, %260
  %.pn = phi { ptr, i32 } [ %261, %260 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIN3sim9BasicTileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %263

._crit_edge145:                                   ; preds = %257, %._crit_edge141
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #6
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret void

263:                                              ; preds = %262, %241, %235
  %.pn104.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn104.pn.pn.pn, %235 ], [ %242, %241 ], [ %.pn, %262 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %264

264:                                              ; preds = %.loopexit119, %.loopexit.split-lp120, %263, %45
  %.pn111 = phi { ptr, i32 } [ %46, %45 ], [ %.pn104.pn.pn.pn.pn, %263 ], [ %lpad.loopexit121, %.loopexit119 ], [ %lpad.loopexit.split-lp122, %.loopexit.split-lp120 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %265

265:                                              ; preds = %264, %43
  %.pn111.pn = phi { ptr, i32 } [ %.pn111, %264 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #6
  br label %266

266:                                              ; preds = %265, %41
  %.pn111.pn.pn = phi { ptr, i32 } [ %.pn111.pn, %265 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn111.pn.pn
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

declare void @_ZN3sim12SimUtilities4trimERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

declare void @_ZN3sim12SimUtilities8tokenizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcbb(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8, ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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 #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIN3sim9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE6insertIS4_IS1_bEEENSt9enable_ifIXsr16is_constructibleIS6_T_EE5valueES4_ISt17_Rb_tree_iteratorIS6_EbEE4typeEOSC_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(5)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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