; LLVM IR from mackorone/mms :: old/v2/src/sim/Maze.ll (ZN3sim4MazeC2Ev)

; 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::map.69" = type { %"class.std::_Rb_tree.70" }
%"class.std::_Rb_tree.70" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, sim::MazeFileType>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, sim::MazeFileType>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, sim::MazeFileType>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, sim::MazeFileType>>, std::less<std::__cxx11::basic_string<char>>>::_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.std::map.55" = type { %"class.std::_Rb_tree.56" }
%"class.std::_Rb_tree.56" = type { %"struct.std::_Rb_tree<sim::MazeFileType, std::pair<const sim::MazeFileType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const sim::MazeFileType, std::__cxx11::basic_string<char>>>, std::less<sim::MazeFileType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::MazeFileType, std::pair<const sim::MazeFileType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const sim::MazeFileType, std::__cxx11::basic_string<char>>>, std::less<sim::MazeFileType>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.79" = type { %"struct.std::_Vector_base.80" }
%"struct.std::_Vector_base.80" = 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::__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.sim::MazeInterface" = type { ptr }
%"class.std::vector.74" = type { %"struct.std::_Vector_base.75" }
%"struct.std::_Vector_base.75" = type { %"struct.std::_Vector_base<std::vector<sim::Tile>, std::allocator<std::vector<sim::Tile>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<sim::Tile>, std::allocator<std::vector<sim::Tile>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<sim::Tile>, std::allocator<std::vector<sim::Tile>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<sim::Tile>, std::allocator<std::vector<sim::Tile>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sim::Maze" = type <{ %"class.std::vector.74", i8, i8, [6 x i8] }>

@_ZN3simL24STRING_TO_MAZE_FILE_TYPEB5cxx11E = external hidden global %"class.std::map.69", align 8
@_ZN3simL24MAZE_FILE_TYPE_TO_SUFFIXB5cxx11E = external hidden global %"class.std::map.55", align 8
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [52 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 @_ZN3sim4MazeC2Ev(ptr noundef nonnull align 8 dereferenceable(26) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.79", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::vector.79", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.26", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::vector.79", align 8
  %15 = alloca %"class.sim::MazeInterface", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca i8, align 1
  %24 = alloca %"class.std::vector.79", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::vector.79", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::vector.74", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %29 = load ptr, ptr %2, align 8
  %30 = getelementptr inbounds %"class.sim::Maze", ptr %29, i32 0, i32 0
  call void @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %31 = invoke noundef ptr @_ZN3sim1PEv()
          to label %32 unwind label %43

32:                                               ; preds = %1
  %33 = invoke noundef zeroext i1 @_ZN3sim5Param11useMazeFileEv(ptr noundef nonnull align 8 dereferenceable(1056) %31)
          to label %34 unwind label %43

34:                                               ; preds = %32
  br i1 %33, label %35, label %99

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  invoke void @_ZN3sim9Directory19getResMazeDirectoryB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7)
          to label %36 unwind label %47

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  %37 = invoke noundef ptr @_ZN3sim1PEv()
          to label %38 unwind label %51

38:                                               ; preds = %36
  invoke void @_ZN3sim5Param8mazeFileB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(1056) %37)
          to label %39 unwind label %51

39:                                               ; preds = %38
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %40 unwind label %55

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  invoke void @_ZN3sim17MazeFileUtilities8loadMazeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %41 unwind label %61

41:                                               ; preds = %40
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %78

43:                                               ; preds = %333, %331, %317, %274, %271, %267, %265, %198, %196, %193, %191, %189, %187, %179, %112, %106, %32, %1
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %4, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %5, align 4
  br label %343

47:                                               ; preds = %35
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %4, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %5, align 4
  br label %60

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

55:                                               ; preds = %39
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %4, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %59

59:                                               ; preds = %55, %51
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %60

60:                                               ; preds = %59, %47
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  br label %98

61:                                               ; preds = %40
  %62 = landingpad { ptr, i32 }
          catch ptr null
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %4, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %65

65:                                               ; preds = %61
  %66 = load ptr, ptr %4, align 8
  %67 = call ptr @__cxa_begin_catch(ptr %66) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %68 = invoke noundef zeroext i1 @_ZN3sim12SimUtilities6isFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %69 unwind label %79

69:                                               ; preds = %65
  %70 = zext i1 %68 to i64
  %71 = select i1 %68, ptr @.str.22, ptr @.str.23
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %71, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %72 unwind label %83

72:                                               ; preds = %69
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  %73 = invoke noundef ptr @_ZN3sim1LEv()
          to label %74 unwind label %87

74:                                               ; preds = %72
  invoke void @_ZN2el6Logger5errorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS7_EEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %73, ptr noundef @.str.24, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %75 unwind label %87

75:                                               ; preds = %74
  invoke void @_ZN3sim12SimUtilities4quitEv()
          to label %76 unwind label %87

76:                                               ; preds = %75
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  invoke void @__cxa_end_catch()
          to label %77 unwind label %92

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77, %41
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %179

79:                                               ; preds = %65
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %4, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %5, align 4
  br label %91

83:                                               ; preds = %69
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %4, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %91

87:                                               ; preds = %75, %74, %72
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %4, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %91

91:                                               ; preds = %87, %83, %79
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  invoke void @__cxa_end_catch()
          to label %96 unwind label %349

92:                                               ; preds = %76
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %4, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %5, align 4
  br label %97

96:                                               ; preds = %91
  br label %97

97:                                               ; preds = %96, %92
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %98

98:                                               ; preds = %97, %60
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %343

99:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  %100 = invoke noundef ptr @_ZN3sim1PEv()
          to label %101 unwind label %114

101:                                              ; preds = %99
  invoke void @_ZN3sim5Param13mazeAlgorithmB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(1056) %100)
          to label %102 unwind label %114

102:                                              ; preds = %101
  %103 = invoke noundef zeroext i1 @_ZN14MazeAlgorithms15isMazeAlgorithmERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %104 unwind label %118

104:                                              ; preds = %102
  %105 = xor i1 %103, true
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  br i1 %105, label %106, label %132

106:                                              ; preds = %104
  %107 = invoke noundef ptr @_ZN3sim1LEv()
          to label %108 unwind label %43

108:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  %109 = invoke noundef ptr @_ZN3sim1PEv()
          to label %110 unwind label %123

110:                                              ; preds = %108
  invoke void @_ZN3sim5Param13mazeAlgorithmB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(1056) %109)
          to label %111 unwind label %123

111:                                              ; preds = %110
  invoke void @_ZN2el6Logger5errorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %107, ptr noundef @.str.25, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %112 unwind label %127

112:                                              ; preds = %111
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  invoke void @_ZN3sim12SimUtilities4quitEv()
          to label %113 unwind label %43

113:                                              ; preds = %112
  br label %132

114:                                              ; preds = %101, %99
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %4, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %5, align 4
  br label %122

118:                                              ; preds = %102
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %4, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %122

122:                                              ; preds = %118, %114
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  br label %343

123:                                              ; preds = %110, %108
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %4, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %5, align 4
  br label %131

127:                                              ; preds = %111
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %4, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br label %343

132:                                              ; preds = %113, %104
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  %133 = invoke noundef ptr @_ZN3sim1PEv()
          to label %134 unwind label %161

134:                                              ; preds = %132
  %135 = invoke noundef i32 @_ZN3sim5Param18generatedMazeWidthEv(ptr noundef nonnull align 8 dereferenceable(1056) %133)
          to label %136 unwind label %161

136:                                              ; preds = %134
  %137 = invoke noundef ptr @_ZN3sim1PEv()
          to label %138 unwind label %161

138:                                              ; preds = %136
  %139 = invoke noundef i32 @_ZN3sim5Param19generatedMazeHeightEv(ptr noundef nonnull align 8 dereferenceable(1056) %137)
          to label %140 unwind label %161

140:                                              ; preds = %138
  invoke void @_ZN3sim4Maze17getBlankBasicMazeEii(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8 %14, i32 noundef %135, i32 noundef %139)
          to label %141 unwind label %161

141:                                              ; preds = %140
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  invoke void @_ZN3sim13MazeInterfaceC1EPSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %3)
          to label %143 unwind label %165

143:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  %144 = invoke noundef ptr @_ZN3sim1PEv()
          to label %145 unwind label %169

145:                                              ; preds = %143
  invoke void @_ZN3sim5Param13mazeAlgorithmB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(1056) %144)
          to label %146 unwind label %169

146:                                              ; preds = %145
  %147 = invoke noundef ptr @_ZN14MazeAlgorithms16getMazeAlgorithmERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %148 unwind label %173

148:                                              ; preds = %146
  %149 = invoke noundef ptr @_ZN3sim1PEv()
          to label %150 unwind label %173

150:                                              ; preds = %148
  %151 = invoke noundef i32 @_ZN3sim5Param18generatedMazeWidthEv(ptr noundef nonnull align 8 dereferenceable(1056) %149)
          to label %152 unwind label %173

152:                                              ; preds = %150
  %153 = invoke noundef ptr @_ZN3sim1PEv()
          to label %154 unwind label %173

154:                                              ; preds = %152
  %155 = invoke noundef i32 @_ZN3sim5Param19generatedMazeHeightEv(ptr noundef nonnull align 8 dereferenceable(1056) %153)
          to label %156 unwind label %173

156:                                              ; preds = %154
  %157 = load ptr, ptr %147, align 8, !tbaa !9
  %158 = getelementptr inbounds ptr, ptr %157, i64 0
  %159 = load ptr, ptr %158, align 8
  invoke void %159(ptr noundef nonnull align 8 dereferenceable(8) %147, i32 noundef %151, i32 noundef %155, ptr noundef %15)
          to label %160 unwind label %173

160:                                              ; preds = %156
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %179

161:                                              ; preds = %140, %138, %136, %134, %132
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %4, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %343

165:                                              ; preds = %141
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %4, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %5, align 4
  br label %178

169:                                              ; preds = %145, %143
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %4, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %5, align 4
  br label %177

173:                                              ; preds = %156, %154, %152, %150, %148, %146
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %4, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %177

177:                                              ; preds = %173, %169
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %178

178:                                              ; preds = %177, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %343

179:                                              ; preds = %160, %78
  %180 = invoke noundef zeroext i1 @_ZN3sim11MazeChecker11isValidMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %181 unwind label %43

181:                                              ; preds = %179
  %182 = getelementptr inbounds %"class.sim::Maze", ptr %29, i32 0, i32 1
  %183 = zext i1 %180 to i8
  store i8 %183, ptr %182, align 8, !tbaa !11
  %184 = getelementptr inbounds %"class.sim::Maze", ptr %29, i32 0, i32 1
  %185 = load i8, ptr %184, align 8, !tbaa !11, !range !18, !noundef !19
  %186 = trunc i8 %185 to i1
  br i1 %186, label %191, label %187

187:                                              ; preds = %181
  %188 = invoke noundef ptr @_ZN3sim1LEv()
          to label %189 unwind label %43

189:                                              ; preds = %187
  invoke void @_ZN2el6Logger4warnIA66_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728) %188, ptr noundef nonnull align 1 dereferenceable(66) @.str.26)
          to label %190 unwind label %43

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190, %181
  %192 = invoke noundef ptr @_ZN3sim1PEv()
          to label %193 unwind label %43

193:                                              ; preds = %191
  %194 = invoke noundef zeroext i1 @_ZN3sim5Param11useMazeFileEv(ptr noundef nonnull align 8 dereferenceable(1056) %192)
          to label %195 unwind label %43

195:                                              ; preds = %193
  br i1 %194, label %265, label %196

196:                                              ; preds = %195
  %197 = invoke noundef ptr @_ZN3sim1PEv()
          to label %198 unwind label %43

198:                                              ; preds = %196
  %199 = invoke noundef zeroext i1 @_ZN3sim5Param17saveGeneratedMazeEv(ptr noundef nonnull align 8 dereferenceable(1056) %197)
          to label %200 unwind label %43

200:                                              ; preds = %198
  br i1 %199, label %201, label %265

201:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  %202 = invoke noundef ptr @_ZN3sim1PEv()
          to label %203 unwind label %226

203:                                              ; preds = %201
  invoke void @_ZN3sim5Param17generatedMazeTypeB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(1056) %202)
          to label %204 unwind label %226

204:                                              ; preds = %203
  %205 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim12MazeFileTypeESt4lessIS5_ESaISt4pairIKS5_S7_EEE2atERSB_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL24STRING_TO_MAZE_FILE_TYPEB5cxx11E, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %206 unwind label %230

206:                                              ; preds = %204
  %207 = load i32, ptr %205, align 4, !tbaa !20
  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
  store i32 %207, ptr %17, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  invoke void @_ZN3sim9Directory19getResMazeDirectoryB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21)
          to label %208 unwind label %235

208:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  %209 = invoke noundef ptr @_ZN3sim1PEv()
          to label %210 unwind label %239

210:                                              ; preds = %208
  invoke void @_ZN3sim5Param17generatedMazeFileB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(1056) %209)
          to label %211 unwind label %239

211:                                              ; preds = %210
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %212 unwind label %243

212:                                              ; preds = %211
  %213 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt3mapIN3sim12MazeFileTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE2atERSB_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL24MAZE_FILE_TYPE_TO_SUFFIXB5cxx11E, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %214 unwind label %247

214:                                              ; preds = %212
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %213)
          to label %215 unwind label %247

215:                                              ; preds = %214
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %216 = load i32, ptr %17, align 4, !tbaa !20
  %217 = invoke noundef zeroext i1 @_ZN3sim17MazeFileUtilities8saveMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_12MazeFileTypeE(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %216)
          to label %218 unwind label %254

218:                                              ; preds = %215
  %219 = zext i1 %217 to i8
  store i8 %219, ptr %23, align 1, !tbaa !22
  %220 = load i8, ptr %23, align 1, !tbaa !22, !range !18, !noundef !19
  %221 = trunc i8 %220 to i1
  br i1 %221, label %222, label %258

222:                                              ; preds = %218
  %223 = invoke noundef ptr @_ZN3sim1LEv()
          to label %224 unwind label %254

224:                                              ; preds = %222
  invoke void @_ZN2el6Logger4infoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %223, ptr noundef @.str.27, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %225 unwind label %254

225:                                              ; preds = %224
  br label %262

226:                                              ; preds = %203, %201
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %4, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %5, align 4
  br label %234

230:                                              ; preds = %204
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %4, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %234

234:                                              ; preds = %230, %226
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %264

235:                                              ; preds = %206
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %4, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %5, align 4
  br label %253

239:                                              ; preds = %210, %208
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %4, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %5, align 4
  br label %252

243:                                              ; preds = %211
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %4, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %5, align 4
  br label %251

247:                                              ; preds = %214, %212
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %4, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %251

251:                                              ; preds = %247, %243
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %252

252:                                              ; preds = %251, %239
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %253

253:                                              ; preds = %252, %235
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %263

254:                                              ; preds = %260, %258, %224, %222, %215
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %4, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %263

258:                                              ; preds = %218
  %259 = invoke noundef ptr @_ZN3sim1LEv()
          to label %260 unwind label %254

260:                                              ; preds = %258
  invoke void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %259, ptr noundef @.str.28, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %261 unwind label %254

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261, %225
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %265

263:                                              ; preds = %254, %253
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %264

264:                                              ; preds = %263, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %343

265:                                              ; preds = %262, %200, %195
  %266 = invoke noundef ptr @_ZN3sim1PEv()
          to label %267 unwind label %43

267:                                              ; preds = %265
  %268 = invoke noundef zeroext i1 @_ZN3sim5Param12mazeMirroredEv(ptr noundef nonnull align 8 dereferenceable(1056) %266)
          to label %269 unwind label %43

269:                                              ; preds = %267
  br i1 %268, label %270, label %280

270:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  invoke void @_ZN3sim4Maze20mirrorAcrossVerticalERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %271 unwind label %276

271:                                              ; preds = %270
  %272 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  %273 = invoke noundef ptr @_ZN3sim1LEv()
          to label %274 unwind label %43

274:                                              ; preds = %271
  invoke void @_ZN2el6Logger4infoIA40_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728) %273, ptr noundef nonnull align 1 dereferenceable(40) @.str.29)
          to label %275 unwind label %43

275:                                              ; preds = %274
  br label %280

276:                                              ; preds = %270
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %4, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  br label %343

280:                                              ; preds = %275, %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !23
  br label %281

281:                                              ; preds = %301, %280
  %282 = load i32, ptr %25, align 4, !tbaa !23
  %283 = invoke noundef ptr @_ZN3sim1PEv()
          to label %284 unwind label %289

284:                                              ; preds = %281
  %285 = invoke noundef i32 @_ZN3sim5Param13mazeRotationsEv(ptr noundef nonnull align 8 dereferenceable(1056) %283)
          to label %286 unwind label %289

286:                                              ; preds = %284
  %287 = icmp slt i32 %282, %285
  br i1 %287, label %293, label %288

288:                                              ; preds = %286
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %313

289:                                              ; preds = %294, %284, %281
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %4, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %5, align 4
  br label %312

293:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  invoke void @_ZN3sim4Maze22rotateCounterClockwiseERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %294 unwind label %304

294:                                              ; preds = %293
  %295 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  %296 = invoke noundef ptr @_ZN3sim1LEv()
          to label %297 unwind label %289

297:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %298 = load i32, ptr %25, align 4, !tbaa !23
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %27, align 4, !tbaa !23
  invoke void @_ZN2el6Logger4infoIiJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %296, ptr noundef @.str.30, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %300 unwind label %308

300:                                              ; preds = %297
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %25, align 4, !tbaa !23
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %25, align 4, !tbaa !23
  br label %281, !llvm.loop !25

304:                                              ; preds = %293
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %4, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %312

308:                                              ; preds = %297
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %4, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %312

312:                                              ; preds = %308, %304, %289
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %343

313:                                              ; preds = %288
  %314 = getelementptr inbounds %"class.sim::Maze", ptr %29, i32 0, i32 1
  %315 = load i8, ptr %314, align 8, !tbaa !11, !range !18, !noundef !19
  %316 = trunc i8 %315 to i1
  br i1 %316, label %317, label %320

317:                                              ; preds = %313
  %318 = invoke noundef zeroext i1 @_ZN3sim11MazeChecker14isOfficialMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %319 unwind label %43

319:                                              ; preds = %317
  br label %320

320:                                              ; preds = %319, %313
  %321 = phi i1 [ false, %313 ], [ %318, %319 ]
  %322 = getelementptr inbounds %"class.sim::Maze", ptr %29, i32 0, i32 2
  %323 = zext i1 %321 to i8
  store i8 %323, ptr %322, align 1, !tbaa !27
  %324 = getelementptr inbounds %"class.sim::Maze", ptr %29, i32 0, i32 1
  %325 = load i8, ptr %324, align 8, !tbaa !11, !range !18, !noundef !19
  %326 = trunc i8 %325 to i1
  br i1 %326, label %327, label %335

327:                                              ; preds = %320
  %328 = getelementptr inbounds %"class.sim::Maze", ptr %29, i32 0, i32 2
  %329 = load i8, ptr %328, align 1, !tbaa !27, !range !18, !noundef !19
  %330 = trunc i8 %329 to i1
  br i1 %330, label %335, label %331

331:                                              ; preds = %327
  %332 = invoke noundef ptr @_ZN3sim1LEv()
          to label %333 unwind label %43

333:                                              ; preds = %331
  invoke void @_ZN2el6Logger4warnIA52_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728) %332, ptr noundef nonnull align 1 dereferenceable(52) @.str.31)
          to label %334 unwind label %43

334:                                              ; preds = %333
  br label %335

335:                                              ; preds = %334, %327, %320
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #6
  invoke void @_ZN3sim4Maze23initializeFromBasicMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind writable sret(%"class.std::vector.74") align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %336 unwind label %339

336:                                              ; preds = %335
  %337 = getelementptr inbounds %"class.sim::Maze", ptr %29, i32 0, i32 0
  %338 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %337, ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  call void @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  ret void

339:                                              ; preds = %335
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %4, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  br label %343

343:                                              ; preds = %339, %312, %276, %264, %178, %161, %131, %122, %98, %43
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  br label %344

344:                                              ; preds = %343
  %345 = load ptr, ptr %4, align 8
  %346 = load i32, ptr %5, align 4
  %347 = insertvalue { ptr, i32 } poison, ptr %345, 0
  %348 = insertvalue { ptr, i32 } %347, i32 %346, 1
  resume { ptr, i32 } %348

349:                                              ; preds = %91
  %350 = landingpad { ptr, i32 }
          catch ptr null
  %351 = extractvalue { ptr, i32 } %350, 0
  call void @__clang_call_terminate(ptr %351) #7
  unreachable
}

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

declare noundef ptr @_ZN3sim1PEv() #3

declare noundef zeroext i1 @_ZN3sim5Param11useMazeFileEv(ptr noundef nonnull align 8 dereferenceable(1056)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare void @_ZN3sim9Directory19getResMazeDirectoryB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8) #3

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

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

declare void @_ZN3sim17MazeFileUtilities8loadMazeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24), 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

declare ptr @__cxa_begin_catch(ptr)

declare noundef zeroext i1 @_ZN3sim12SimUtilities6isFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; 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

declare noundef ptr @_ZN3sim1LEv() #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger5errorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS7_EEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

declare void @_ZN3sim12SimUtilities4quitEv() #3

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #5

declare noundef zeroext i1 @_ZN14MazeAlgorithms15isMazeAlgorithmERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger5errorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim4Maze17getBlankBasicMazeEii(ptr dead_on_unwind noalias writable sret(%"class.std::vector.79") align 8, i32 noundef, i32 noundef) #1 align 2

declare noundef i32 @_ZN3sim5Param18generatedMazeWidthEv(ptr noundef nonnull align 8 dereferenceable(1056)) #3

declare noundef i32 @_ZN3sim5Param19generatedMazeHeightEv(ptr noundef nonnull align 8 dereferenceable(1056)) #3

declare void @_ZN3sim13MazeInterfaceC1EPSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3

declare noundef ptr @_ZN14MazeAlgorithms16getMazeAlgorithmERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

declare noundef zeroext i1 @_ZN3sim11MazeChecker11isValidMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4warnIA66_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef nonnull align 1 dereferenceable(66)) #4 align 2

declare noundef zeroext i1 @_ZN3sim5Param17saveGeneratedMazeEv(ptr noundef nonnull align 8 dereferenceable(1056)) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

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

declare noundef zeroext i1 @_ZN3sim17MazeFileUtilities8saveMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_12MazeFileTypeE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4infoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

declare noundef zeroext i1 @_ZN3sim5Param12mazeMirroredEv(ptr noundef nonnull align 8 dereferenceable(1056)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim4Maze20mirrorAcrossVerticalERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.79") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4infoIA40_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef nonnull align 1 dereferenceable(40)) #4 align 2

declare noundef i32 @_ZN3sim5Param13mazeRotationsEv(ptr noundef nonnull align 8 dereferenceable(1056)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim4Maze22rotateCounterClockwiseERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.79") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

declare noundef zeroext i1 @_ZN3sim11MazeChecker14isOfficialMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4warnIA52_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef nonnull align 1 dereferenceable(52)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim4Maze23initializeFromBasicMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.74") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { "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 = { 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 #5 = { noinline noreturn nounwind uwtable "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 }
attributes #7 = { noreturn 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 = !{!12, !17, i64 24}
!12 = !{!"_ZTSN3sim4MazeE", !13, i64 0, !17, i64 24, !17, i64 25}
!13 = !{!"_ZTSSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseISt6vectorIN3sim4TileESaIS2_EESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN3sim4TileESaIS2_EESaIS4_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN3sim4TileESaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTSN3sim12MazeFileTypeE", !7, i64 0}
!22 = !{!17, !17, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !17, i64 25}


; 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::map.69" = type { %"class.std::_Rb_tree.70" }
%"class.std::_Rb_tree.70" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, sim::MazeFileType>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, sim::MazeFileType>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, sim::MazeFileType>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, sim::MazeFileType>>, std::less<std::__cxx11::basic_string<char>>>::_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.std::map.55" = type { %"class.std::_Rb_tree.56" }
%"class.std::_Rb_tree.56" = type { %"struct.std::_Rb_tree<sim::MazeFileType, std::pair<const sim::MazeFileType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const sim::MazeFileType, std::__cxx11::basic_string<char>>>, std::less<sim::MazeFileType>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::MazeFileType, std::pair<const sim::MazeFileType, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const sim::MazeFileType, std::__cxx11::basic_string<char>>>, std::less<sim::MazeFileType>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.79" = type { %"struct.std::_Vector_base.80" }
%"struct.std::_Vector_base.80" = 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::__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.sim::MazeInterface" = type { ptr }
%"class.std::vector.74" = type { %"struct.std::_Vector_base.75" }
%"struct.std::_Vector_base.75" = type { %"struct.std::_Vector_base<std::vector<sim::Tile>, std::allocator<std::vector<sim::Tile>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<sim::Tile>, std::allocator<std::vector<sim::Tile>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<sim::Tile>, std::allocator<std::vector<sim::Tile>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<sim::Tile>, std::allocator<std::vector<sim::Tile>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZN3simL24STRING_TO_MAZE_FILE_TYPEB5cxx11E = external hidden global %"class.std::map.69", align 8
@_ZN3simL24MAZE_FILE_TYPE_TO_SUFFIXB5cxx11E = external hidden global %"class.std::map.55", align 8
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [52 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 @_ZN3sim4MazeC2Ev(ptr noundef nonnull align 8 dereferenceable(26) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.79", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::vector.79", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.26", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::vector.79", align 8
  %12 = alloca %"class.sim::MazeInterface", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::vector.79", align 8
  %21 = alloca %"class.std::vector.79", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::vector.74", align 8
  tail call void @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %24 = invoke noundef ptr @_ZN3sim1PEv()
          to label %25 unwind label %36

25:                                               ; preds = %1
  %26 = invoke noundef zeroext i1 @_ZN3sim5Param11useMazeFileEv(ptr noundef nonnull align 8 dereferenceable(1056) %24)
          to label %27 unwind label %36

27:                                               ; preds = %25
  br i1 %26, label %28, label %70

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN3sim9Directory19getResMazeDirectoryB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4)
          to label %29 unwind label %38

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %30 = invoke noundef ptr @_ZN3sim1PEv()
          to label %31 unwind label %40

31:                                               ; preds = %29
  invoke void @_ZN3sim5Param8mazeFileB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(1056) %30)
          to label %32 unwind label %40

32:                                               ; preds = %31
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %33 unwind label %42

33:                                               ; preds = %32
  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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  invoke void @_ZN3sim17MazeFileUtilities8loadMazeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.79") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %34 unwind label %46

34:                                               ; preds = %33
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %58

36:                                               ; preds = %236, %234, %229, %203, %200, %196, %194, %146, %144, %141, %139, %138, %136, %131, %82, %76, %25, %1
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %242

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

40:                                               ; preds = %31, %29
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %32
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %44

44:                                               ; preds = %42, %40
  %.pn31 = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %45

45:                                               ; preds = %44, %38
  %.pn31.pn = phi { ptr, i32 } [ %.pn31, %44 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %69

46:                                               ; preds = %33
  %47 = landingpad { ptr, i32 }
          catch ptr null
  %48 = extractvalue { ptr, i32 } %47, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  %49 = call ptr @__cxa_begin_catch(ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %50 = invoke noundef zeroext i1 @_ZN3sim12SimUtilities6isFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %51 unwind label %59

51:                                               ; preds = %46
  %52 = select i1 %50, ptr @.str.22, ptr @.str.23
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull %52, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %53 unwind label %61

53:                                               ; preds = %51
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  %54 = invoke noundef ptr @_ZN3sim1LEv()
          to label %55 unwind label %63

55:                                               ; preds = %53
  invoke void @_ZN2el6Logger5errorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS7_EEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %54, ptr noundef nonnull @.str.24, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %56 unwind label %63

56:                                               ; preds = %55
  invoke void @_ZN3sim12SimUtilities4quitEv()
          to label %57 unwind label %63

57:                                               ; preds = %56
  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
  invoke void @__cxa_end_catch()
          to label %58 unwind label %66

58:                                               ; preds = %57, %34
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %131

59:                                               ; preds = %46
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %65

61:                                               ; preds = %51
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %65

63:                                               ; preds = %56, %55, %53
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %65

65:                                               ; preds = %63, %61, %59
  %.pn34 = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  invoke void @__cxa_end_catch()
          to label %68 unwind label %243

66:                                               ; preds = %57
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %68

68:                                               ; preds = %65, %66
  %.pn36 = phi { ptr, i32 } [ %67, %66 ], [ %.pn34, %65 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %69

69:                                               ; preds = %68, %45
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %68 ], [ %.pn31.pn, %45 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %242

70:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  %71 = invoke noundef ptr @_ZN3sim1PEv()
          to label %72 unwind label %83

72:                                               ; preds = %70
  invoke void @_ZN3sim5Param13mazeAlgorithmB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(1056) %71)
          to label %73 unwind label %83

73:                                               ; preds = %72
  %74 = invoke noundef zeroext i1 @_ZN14MazeAlgorithms15isMazeAlgorithmERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %75 unwind label %85

75:                                               ; preds = %73
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br i1 %74, label %93, label %76

76:                                               ; preds = %75
  %77 = invoke noundef ptr @_ZN3sim1LEv()
          to label %78 unwind label %36

78:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  %79 = invoke noundef ptr @_ZN3sim1PEv()
          to label %80 unwind label %88

80:                                               ; preds = %78
  invoke void @_ZN3sim5Param13mazeAlgorithmB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(1056) %79)
          to label %81 unwind label %88

81:                                               ; preds = %80
  invoke void @_ZN2el6Logger5errorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %77, ptr noundef nonnull @.str.25, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %82 unwind label %90

82:                                               ; preds = %81
  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
  invoke void @_ZN3sim12SimUtilities4quitEv()
          to label %93 unwind label %36

83:                                               ; preds = %72, %70
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %87

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

87:                                               ; preds = %85, %83
  %.pn = phi { ptr, i32 } [ %86, %85 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %242

88:                                               ; preds = %80, %78
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %81
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %92

92:                                               ; preds = %90, %88
  %.pn26 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %242

93:                                               ; preds = %82, %75
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  %94 = invoke noundef ptr @_ZN3sim1PEv()
          to label %95 unwind label %121

95:                                               ; preds = %93
  %96 = invoke noundef i32 @_ZN3sim5Param18generatedMazeWidthEv(ptr noundef nonnull align 8 dereferenceable(1056) %94)
          to label %97 unwind label %121

97:                                               ; preds = %95
  %98 = invoke noundef ptr @_ZN3sim1PEv()
          to label %99 unwind label %121

99:                                               ; preds = %97
  %100 = invoke noundef i32 @_ZN3sim5Param19generatedMazeHeightEv(ptr noundef nonnull align 8 dereferenceable(1056) %98)
          to label %101 unwind label %121

101:                                              ; preds = %99
  invoke void @_ZN3sim4Maze17getBlankBasicMazeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.79") align 8 %11, i32 noundef %96, i32 noundef %100)
          to label %102 unwind label %121

102:                                              ; preds = %101
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  invoke void @_ZN3sim13MazeInterfaceC1EPSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull %2)
          to label %104 unwind label %123

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  %105 = invoke noundef ptr @_ZN3sim1PEv()
          to label %106 unwind label %125

106:                                              ; preds = %104
  invoke void @_ZN3sim5Param13mazeAlgorithmB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(1056) %105)
          to label %107 unwind label %125

107:                                              ; preds = %106
  %108 = invoke noundef ptr @_ZN14MazeAlgorithms16getMazeAlgorithmERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %109 unwind label %127

109:                                              ; preds = %107
  %110 = invoke noundef ptr @_ZN3sim1PEv()
          to label %111 unwind label %127

111:                                              ; preds = %109
  %112 = invoke noundef i32 @_ZN3sim5Param18generatedMazeWidthEv(ptr noundef nonnull align 8 dereferenceable(1056) %110)
          to label %113 unwind label %127

113:                                              ; preds = %111
  %114 = invoke noundef ptr @_ZN3sim1PEv()
          to label %115 unwind label %127

115:                                              ; preds = %113
  %116 = invoke noundef i32 @_ZN3sim5Param19generatedMazeHeightEv(ptr noundef nonnull align 8 dereferenceable(1056) %114)
          to label %117 unwind label %127

117:                                              ; preds = %115
  %118 = load ptr, ptr %108, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8
  invoke void %119(ptr noundef nonnull align 8 dereferenceable(8) %108, i32 noundef %112, i32 noundef %116, ptr noundef nonnull %12)
          to label %120 unwind label %127

120:                                              ; preds = %117
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %131

121:                                              ; preds = %101, %99, %97, %95, %93
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %242

123:                                              ; preds = %102
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %130

125:                                              ; preds = %106, %104
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %117, %115, %113, %111, %109, %107
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %129

129:                                              ; preds = %127, %125
  %.pn28 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %130

130:                                              ; preds = %129, %123
  %.pn28.pn = phi { ptr, i32 } [ %.pn28, %129 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %242

131:                                              ; preds = %120, %58
  %132 = invoke noundef zeroext i1 @_ZN3sim11MazeChecker11isValidMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %133 unwind label %36

133:                                              ; preds = %131
  %134 = getelementptr inbounds i8, ptr %0, i64 24
  %135 = zext i1 %132 to i8
  store i8 %135, ptr %134, align 8, !tbaa !8
  br i1 %132, label %139, label %136

136:                                              ; preds = %133
  %137 = invoke noundef ptr @_ZN3sim1LEv()
          to label %138 unwind label %36

138:                                              ; preds = %136
  invoke void @_ZN2el6Logger4warnIA66_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728) %137, ptr noundef nonnull align 1 dereferenceable(66) @.str.26)
          to label %139 unwind label %36

139:                                              ; preds = %138, %133
  %140 = invoke noundef ptr @_ZN3sim1PEv()
          to label %141 unwind label %36

141:                                              ; preds = %139
  %142 = invoke noundef zeroext i1 @_ZN3sim5Param11useMazeFileEv(ptr noundef nonnull align 8 dereferenceable(1056) %140)
          to label %143 unwind label %36

143:                                              ; preds = %141
  br i1 %142, label %194, label %144

144:                                              ; preds = %143
  %145 = invoke noundef ptr @_ZN3sim1PEv()
          to label %146 unwind label %36

146:                                              ; preds = %144
  %147 = invoke noundef zeroext i1 @_ZN3sim5Param17saveGeneratedMazeEv(ptr noundef nonnull align 8 dereferenceable(1056) %145)
          to label %148 unwind label %36

148:                                              ; preds = %146
  br i1 %147, label %149, label %194

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  %150 = invoke noundef ptr @_ZN3sim1PEv()
          to label %151 unwind label %170

151:                                              ; preds = %149
  invoke void @_ZN3sim5Param17generatedMazeTypeB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(1056) %150)
          to label %152 unwind label %170

152:                                              ; preds = %151
  %153 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3sim12MazeFileTypeESt4lessIS5_ESaISt4pairIKS5_S7_EEE2atERSB_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL24STRING_TO_MAZE_FILE_TYPEB5cxx11E, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %154 unwind label %172

154:                                              ; preds = %152
  %155 = load i32, ptr %153, align 4, !tbaa !17
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  store i32 %155, ptr %14, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  invoke void @_ZN3sim9Directory19getResMazeDirectoryB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %18)
          to label %156 unwind label %175

156:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  %157 = invoke noundef ptr @_ZN3sim1PEv()
          to label %158 unwind label %177

158:                                              ; preds = %156
  invoke void @_ZN3sim5Param17generatedMazeFileB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(1056) %157)
          to label %159 unwind label %177

159:                                              ; preds = %158
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %160 unwind label %179

160:                                              ; preds = %159
  %161 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt3mapIN3sim12MazeFileTypeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS1_ESaISt4pairIKS1_S7_EEE2atERSB_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL24MAZE_FILE_TYPE_TO_SUFFIXB5cxx11E, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %162 unwind label %181

162:                                              ; preds = %160
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %161)
          to label %163 unwind label %181

163:                                              ; preds = %162
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  %164 = load i32, ptr %14, align 4, !tbaa !17
  %165 = invoke noundef zeroext i1 @_ZN3sim17MazeFileUtilities8saveMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_12MazeFileTypeE(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef %164)
          to label %166 unwind label %186

166:                                              ; preds = %163
  br i1 %165, label %167, label %188

167:                                              ; preds = %166
  %168 = invoke noundef ptr @_ZN3sim1LEv()
          to label %169 unwind label %186

169:                                              ; preds = %167
  invoke void @_ZN2el6Logger4infoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %168, ptr noundef nonnull @.str.27, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %191 unwind label %186

170:                                              ; preds = %151, %149
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %174

172:                                              ; preds = %152
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %174

174:                                              ; preds = %172, %170
  %.pn39 = phi { ptr, i32 } [ %173, %172 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %193

175:                                              ; preds = %154
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %185

177:                                              ; preds = %158, %156
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %184

179:                                              ; preds = %159
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %183

181:                                              ; preds = %162, %160
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %183

183:                                              ; preds = %181, %179
  %.pn41 = phi { ptr, i32 } [ %182, %181 ], [ %180, %179 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %184

184:                                              ; preds = %183, %177
  %.pn41.pn = phi { ptr, i32 } [ %.pn41, %183 ], [ %178, %177 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %185

185:                                              ; preds = %184, %175
  %.pn41.pn.pn = phi { ptr, i32 } [ %.pn41.pn, %184 ], [ %176, %175 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %192

186:                                              ; preds = %190, %188, %169, %167, %163
  %187 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %192

188:                                              ; preds = %166
  %189 = invoke noundef ptr @_ZN3sim1LEv()
          to label %190 unwind label %186

190:                                              ; preds = %188
  invoke void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %189, ptr noundef nonnull @.str.28, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %191 unwind label %186

191:                                              ; preds = %190, %169
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %194

192:                                              ; preds = %186, %185
  %.pn45 = phi { ptr, i32 } [ %187, %186 ], [ %.pn41.pn.pn, %185 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  br label %193

193:                                              ; preds = %192, %174
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %192 ], [ %.pn39, %174 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %242

194:                                              ; preds = %191, %148, %143
  %195 = invoke noundef ptr @_ZN3sim1PEv()
          to label %196 unwind label %36

196:                                              ; preds = %194
  %197 = invoke noundef zeroext i1 @_ZN3sim5Param12mazeMirroredEv(ptr noundef nonnull align 8 dereferenceable(1056) %195)
          to label %198 unwind label %36

198:                                              ; preds = %196
  br i1 %197, label %199, label %.preheader

.preheader:                                       ; preds = %203, %198
  br label %206

199:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #6
  invoke void @_ZN3sim4Maze20mirrorAcrossVerticalERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.79") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %200 unwind label %204

200:                                              ; preds = %199
  %201 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  %202 = invoke noundef ptr @_ZN3sim1LEv()
          to label %203 unwind label %36

203:                                              ; preds = %200
  invoke void @_ZN2el6Logger4infoIA40_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728) %202, ptr noundef nonnull align 1 dereferenceable(40) @.str.29)
          to label %.preheader unwind label %36

204:                                              ; preds = %199
  %205 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  br label %242

206:                                              ; preds = %.preheader, %224
  %.0 = phi i32 [ %223, %224 ], [ 0, %.preheader ]
  %207 = invoke noundef ptr @_ZN3sim1PEv()
          to label %208 unwind label %216

208:                                              ; preds = %206
  %209 = invoke noundef i32 @_ZN3sim5Param13mazeRotationsEv(ptr noundef nonnull align 8 dereferenceable(1056) %207)
          to label %210 unwind label %216

210:                                              ; preds = %208
  %211 = icmp slt i32 %.0, %209
  br i1 %211, label %218, label %212

212:                                              ; preds = %210
  %213 = load i8, ptr %134, align 8, !tbaa !8, !range !19, !noundef !20
  %214 = trunc nuw i8 %213 to i1
  br i1 %214, label %229, label %.thread

.thread:                                          ; preds = %212
  %215 = getelementptr inbounds i8, ptr %0, i64 25
  store i8 0, ptr %215, align 1, !tbaa !21
  br label %237

216:                                              ; preds = %219, %208, %206
  %217 = landingpad { ptr, i32 }
          cleanup
  br label %242

218:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #6
  invoke void @_ZN3sim4Maze22rotateCounterClockwiseERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.79") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %219 unwind label %225

219:                                              ; preds = %218
  %220 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #6
  %221 = invoke noundef ptr @_ZN3sim1LEv()
          to label %222 unwind label %216

222:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  %223 = add nuw nsw i32 %.0, 1
  store i32 %223, ptr %22, align 4, !tbaa !22
  invoke void @_ZN2el6Logger4infoIiJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728) %221, ptr noundef nonnull @.str.30, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %224 unwind label %227

224:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  br label %206, !llvm.loop !24

225:                                              ; preds = %218
  %226 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #6
  br label %242

227:                                              ; preds = %222
  %228 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  br label %242

229:                                              ; preds = %212
  %230 = invoke noundef zeroext i1 @_ZN3sim11MazeChecker14isOfficialMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %231 unwind label %36

231:                                              ; preds = %229
  %.pre = load i8, ptr %134, align 8, !tbaa !8, !range !19
  %.pre51 = trunc nuw i8 %.pre to i1
  %232 = getelementptr inbounds i8, ptr %0, i64 25
  %233 = zext i1 %230 to i8
  store i8 %233, ptr %232, align 1, !tbaa !21
  %.not = xor i1 %.pre51, true
  %brmerge = or i1 %230, %.not
  br i1 %brmerge, label %237, label %234

234:                                              ; preds = %231
  %235 = invoke noundef ptr @_ZN3sim1LEv()
          to label %236 unwind label %36

236:                                              ; preds = %234
  invoke void @_ZN2el6Logger4warnIA52_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728) %235, ptr noundef nonnull align 1 dereferenceable(52) @.str.31)
          to label %237 unwind label %36

237:                                              ; preds = %.thread, %231, %236
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #6
  invoke void @_ZN3sim4Maze23initializeFromBasicMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.74") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %238 unwind label %240

238:                                              ; preds = %237
  %239 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret void

240:                                              ; preds = %237
  %241 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  br label %242

242:                                              ; preds = %216, %225, %227, %240, %204, %193, %130, %121, %92, %87, %69, %36
  %.pn48.pn = phi { ptr, i32 } [ %241, %240 ], [ %37, %36 ], [ %205, %204 ], [ %.pn45.pn, %193 ], [ %.pn36.pn, %69 ], [ %.pn28.pn, %130 ], [ %122, %121 ], [ %.pn26, %92 ], [ %.pn, %87 ], [ %228, %227 ], [ %217, %216 ], [ %226, %225 ]
  call void @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn48.pn

243:                                              ; preds = %65
  %244 = landingpad { ptr, i32 }
          catch ptr null
  %245 = extractvalue { ptr, i32 } %244, 0
  call void @__clang_call_terminate(ptr %245) #7
  unreachable
}

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

declare noundef ptr @_ZN3sim1PEv() local_unnamed_addr #3

declare noundef zeroext i1 @_ZN3sim5Param11useMazeFileEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare void @_ZN3sim9Directory19getResMazeDirectoryB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8) local_unnamed_addr #3

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

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

declare void @_ZN3sim17MazeFileUtilities8loadMazeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.79") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sim9BasicTileESaIS1_EESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24), 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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare noundef zeroext i1 @_ZN3sim12SimUtilities6isFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; 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

declare noundef ptr @_ZN3sim1LEv() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger5errorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS7_EEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

declare void @_ZN3sim12SimUtilities4quitEv() local_unnamed_addr #3

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #5

declare noundef zeroext i1 @_ZN14MazeAlgorithms15isMazeAlgorithmERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger5errorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim4Maze17getBlankBasicMazeEii(ptr dead_on_unwind noalias writable sret(%"class.std::vector.79") align 8, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

declare noundef i32 @_ZN3sim5Param18generatedMazeWidthEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #3

declare noundef i32 @_ZN3sim5Param19generatedMazeHeightEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #3

declare void @_ZN3sim13MazeInterfaceC1EPSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3

declare noundef ptr @_ZN14MazeAlgorithms16getMazeAlgorithmERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN3sim11MazeChecker11isValidMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4warnIA66_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef nonnull align 1 dereferenceable(66)) local_unnamed_addr #4 align 2

declare noundef zeroext i1 @_ZN3sim5Param17saveGeneratedMazeEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

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

declare noundef zeroext i1 @_ZN3sim17MazeFileUtilities8saveMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_12MazeFileTypeE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4infoINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4warnINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEEEvPKcRKT_DpRKT0_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

declare noundef zeroext i1 @_ZN3sim5Param12mazeMirroredEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim4Maze20mirrorAcrossVerticalERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.79") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4infoIA40_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef nonnull align 1 dereferenceable(40)) local_unnamed_addr #4 align 2

declare noundef i32 @_ZN3sim5Param13mazeRotationsEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim4Maze22rotateCounterClockwiseERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.79") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

declare noundef zeroext i1 @_ZN3sim11MazeChecker14isOfficialMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2el6Logger4warnIA52_cEEvRKT_(ptr noundef nonnull align 8 dereferenceable(728), ptr noundef nonnull align 1 dereferenceable(52)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3sim4Maze23initializeFromBasicMazeERKSt6vectorIS1_INS_9BasicTileESaIS2_EESaIS4_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.74") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IN3sim4TileESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { "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 = { 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 #5 = { noinline noreturn nounwind uwtable "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 }
attributes #7 = { noreturn nounwind }

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

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass