; LLVM IR from mackorone/mms :: old/v2/src/maze/tomasz (TomaszMazeGenerator)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile" = type { i32, i32, i32, i8, i8, %"class.std::map.64" }
%"class.std::map.64" = type { %"class.std::_Rb_tree.65" }
%"class.std::_Rb_tree.65" = type { %"struct.std::_Rb_tree<tomasz::Direction, std::pair<const tomasz::Direction, bool>, std::_Select1st<std::pair<const tomasz::Direction, bool>>, std::less<tomasz::Direction>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<tomasz::Direction, std::pair<const tomasz::Direction, bool>, std::_Select1st<std::pair<const tomasz::Direction, bool>>, std::less<tomasz::Direction>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.tomasz::TomaszMazeGenerator" = type { %class.IMazeAlgorithm, double, double, i32, i32, %"class.std::vector.55", %"class.std::stack", i32, i32, i32, ptr }
%class.IMazeAlgorithm = type { ptr }
%"class.std::vector.55" = type { %"struct.std::_Vector_base.56" }
%"struct.std::_Vector_base.56" = type { %"struct.std::_Vector_base<std::vector<tomasz::TomaszMazeGenerator::TomMazeGenTile>, std::allocator<std::vector<tomasz::TomaszMazeGenerator::TomMazeGenTile>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<tomasz::TomaszMazeGenerator::TomMazeGenTile>, std::allocator<std::vector<tomasz::TomaszMazeGenerator::TomMazeGenTile>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<tomasz::TomaszMazeGenerator::TomMazeGenTile>, std::allocator<std::vector<tomasz::TomaszMazeGenerator::TomMazeGenTile>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<tomasz::TomaszMazeGenerator::TomMazeGenTile>, std::allocator<std::vector<tomasz::TomaszMazeGenerator::TomMazeGenTile>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<tomasz::TomaszMazeGenerator::TomMazeGenTile *, std::allocator<tomasz::TomaszMazeGenerator::TomMazeGenTile *>>::_Deque_impl" }
%"struct.std::_Deque_base<tomasz::TomaszMazeGenerator::TomMazeGenTile *, std::allocator<tomasz::TomaszMazeGenerator::TomMazeGenTile *>>::_Deque_impl" = type { %"struct.std::_Deque_base<tomasz::TomaszMazeGenerator::TomMazeGenTile *, std::allocator<tomasz::TomaszMazeGenerator::TomMazeGenTile *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<tomasz::TomaszMazeGenerator::TomMazeGenTile *, std::allocator<tomasz::TomaszMazeGenerator::TomMazeGenTile *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold = external hidden global float, align 4
@_ZGVZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold = external hidden global i64, align 8

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

; 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
declare dso_local noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tomasz19TomaszMazeGenerator17breakGradientWallEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %11 = load i32, ptr %5, align 4, !tbaa !9
  %12 = load i32, ptr %6, align 4, !tbaa !9
  %13 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %11, i32 noundef %12, i32 noundef 4)
  %14 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %13, i32 0, i32 2
  %15 = load i32, ptr %14, align 8, !tbaa !11
  store i32 %15, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 4, ptr %9, align 4, !tbaa !23
  %16 = load atomic i8, ptr @_ZGVZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold acquire, align 8
  %17 = icmp eq i8 %16, 0
  br i1 %17, label %18, label %26, !prof !25

18:                                               ; preds = %3
  %19 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold) #3
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %26

21:                                               ; preds = %18
  %22 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %10, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !26
  %24 = sitofp i32 %23 to float
  store float %24, ptr @_ZZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold, align 4, !tbaa !40
  %25 = call ptr @llvm.invariant.start.p0(i64 4, ptr @_ZZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold)
  call void @__cxa_guard_release(ptr @_ZGVZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold) #3
  br label %26

26:                                               ; preds = %21, %18, %3
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %27, i32 noundef %28, i32 noundef 0)
  br i1 %29, label %30, label %51

30:                                               ; preds = %26
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %31, i32 noundef %32, i32 noundef 0)
  %34 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %33, i32 0, i32 2
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = sub nsw i32 %35, %36
  %38 = call i32 @llvm.abs.i32(i32 %37, i1 true)
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = icmp sgt i32 %38, %39
  br i1 %40, label %41, label %50

41:                                               ; preds = %30
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %42, i32 noundef %43, i32 noundef 0)
  %45 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !11
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = sub nsw i32 %46, %47
  %49 = call i32 @llvm.abs.i32(i32 %48, i1 true)
  store i32 %49, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !23
  br label %50

50:                                               ; preds = %41, %30
  br label %51

51:                                               ; preds = %50, %26
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %52, i32 noundef %53, i32 noundef 1)
  br i1 %54, label %55, label %76

55:                                               ; preds = %51
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %56, i32 noundef %57, i32 noundef 1)
  %59 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 8, !tbaa !11
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sub nsw i32 %60, %61
  %63 = call i32 @llvm.abs.i32(i32 %62, i1 true)
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = icmp sgt i32 %63, %64
  br i1 %65, label %66, label %75

66:                                               ; preds = %55
  %67 = load i32, ptr %5, align 4, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %67, i32 noundef %68, i32 noundef 1)
  %70 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !11
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = sub nsw i32 %71, %72
  %74 = call i32 @llvm.abs.i32(i32 %73, i1 true)
  store i32 %74, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !23
  br label %75

75:                                               ; preds = %66, %55
  br label %76

76:                                               ; preds = %75, %51
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = load i32, ptr %6, align 4, !tbaa !9
  %79 = call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %77, i32 noundef %78, i32 noundef 2)
  br i1 %79, label %80, label %101

80:                                               ; preds = %76
  %81 = load i32, ptr %5, align 4, !tbaa !9
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %81, i32 noundef %82, i32 noundef 2)
  %84 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 8, !tbaa !11
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = sub nsw i32 %85, %86
  %88 = call i32 @llvm.abs.i32(i32 %87, i1 true)
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = icmp sgt i32 %88, %89
  br i1 %90, label %91, label %100

91:                                               ; preds = %80
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = load i32, ptr %6, align 4, !tbaa !9
  %94 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %92, i32 noundef %93, i32 noundef 2)
  %95 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !11
  %97 = load i32, ptr %7, align 4, !tbaa !9
  %98 = sub nsw i32 %96, %97
  %99 = call i32 @llvm.abs.i32(i32 %98, i1 true)
  store i32 %99, ptr %8, align 4, !tbaa !9
  store i32 2, ptr %9, align 4, !tbaa !23
  br label %100

100:                                              ; preds = %91, %80
  br label %101

101:                                              ; preds = %100, %76
  %102 = load i32, ptr %5, align 4, !tbaa !9
  %103 = load i32, ptr %6, align 4, !tbaa !9
  %104 = call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %102, i32 noundef %103, i32 noundef 3)
  br i1 %104, label %105, label %126

105:                                              ; preds = %101
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = load i32, ptr %6, align 4, !tbaa !9
  %108 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %106, i32 noundef %107, i32 noundef 3)
  %109 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %108, i32 0, i32 2
  %110 = load i32, ptr %109, align 8, !tbaa !11
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = sub nsw i32 %110, %111
  %113 = call i32 @llvm.abs.i32(i32 %112, i1 true)
  %114 = load i32, ptr %8, align 4, !tbaa !9
  %115 = icmp sgt i32 %113, %114
  br i1 %115, label %116, label %125

116:                                              ; preds = %105
  %117 = load i32, ptr %5, align 4, !tbaa !9
  %118 = load i32, ptr %6, align 4, !tbaa !9
  %119 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %117, i32 noundef %118, i32 noundef 3)
  %120 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %119, i32 0, i32 2
  %121 = load i32, ptr %120, align 8, !tbaa !11
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = sub nsw i32 %121, %122
  %124 = call i32 @llvm.abs.i32(i32 %123, i1 true)
  store i32 %124, ptr %8, align 4, !tbaa !9
  store i32 3, ptr %9, align 4, !tbaa !23
  br label %125

125:                                              ; preds = %116, %105
  br label %126

126:                                              ; preds = %125, %101
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = sitofp i32 %127 to float
  %129 = load float, ptr @_ZZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold, align 4, !tbaa !40
  %130 = fcmp ogt float %128, %129
  br i1 %130, label %131, label %152

131:                                              ; preds = %126
  %132 = load i32, ptr %9, align 4, !tbaa !23
  switch i32 %132, label %151 [
    i32 0, label %133
    i32 2, label %136
    i32 1, label %139
    i32 3, label %142
    i32 4, label %145
  ]

133:                                              ; preds = %131
  %134 = load i32, ptr %5, align 4, !tbaa !9
  %135 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %134, i32 noundef %135, i32 noundef 0, i1 noundef zeroext false)
  br label %151

136:                                              ; preds = %131
  %137 = load i32, ptr %5, align 4, !tbaa !9
  %138 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %137, i32 noundef %138, i32 noundef 2, i1 noundef zeroext false)
  br label %151

139:                                              ; preds = %131
  %140 = load i32, ptr %5, align 4, !tbaa !9
  %141 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %140, i32 noundef %141, i32 noundef 1, i1 noundef zeroext false)
  br label %151

142:                                              ; preds = %131
  %143 = load i32, ptr %5, align 4, !tbaa !9
  %144 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %10, i32 noundef %143, i32 noundef %144, i32 noundef 3, i1 noundef zeroext false)
  br label %151

145:                                              ; preds = %131
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef @.str.15)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @.str.16)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %148, i32 noundef 440)
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %151

151:                                              ; preds = %145, %142, %139, %136, %133, %131
  br label %152

152:                                              ; preds = %151, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #3

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

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #1 align 2

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

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

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
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 = { "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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN6tomasz19TomaszMazeGenerator14TomMazeGenTileE", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 12, !13, i64 13, !14, i64 16}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt3mapIN6tomasz9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN6tomasz9DirectionEEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessIN6tomasz9DirectionEE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !22, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTSN6tomasz9DirectionE", !7, i64 0}
!25 = !{!"branch_weights", i32 1, i32 1048575}
!26 = !{!27, !10, i64 24}
!27 = !{!"_ZTSN6tomasz19TomaszMazeGeneratorE", !28, i64 0, !29, i64 8, !29, i64 16, !10, i64 24, !10, i64 28, !30, i64 32, !34, i64 56, !10, i64 136, !10, i64 140, !24, i64 144, !6, i64 152}
!28 = !{!"_ZTS14IMazeAlgorithm"}
!29 = !{!"double", !7, i64 0}
!30 = !{!"_ZTSSt6vectorIS_IN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS2_EESaIS4_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt5stackIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESt5dequeIS3_SaIS3_EEE", !35, i64 0}
!35 = !{!"_ZTSSt5dequeIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE11_Deque_implE", !38, i64 0}
!38 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE16_Deque_impl_dataE", !6, i64 0, !22, i64 8, !39, i64 16, !39, i64 48}
!39 = !{!"_ZTSSt15_Deque_iteratorIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileERS3_PS3_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!40 = !{!41, !41, i64 0}
!41 = !{!"float", !7, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold = external hidden global float, align 4
@_ZGVZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold = external hidden global i64, align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tomasz19TomaszMazeGenerator17breakGradientWallEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 4)
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = load atomic i8, ptr @_ZGVZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold acquire, align 8
  %8 = icmp eq i8 %7, 0
  br i1 %8, label %9, label %16, !prof !21

9:                                                ; preds = %3
  %10 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold) #6
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %16, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load i32, ptr %12, align 8, !tbaa !22
  %14 = sitofp i32 %13 to float
  store float %14, ptr @_ZZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold, align 4, !tbaa !37
  %15 = tail call ptr @llvm.invariant.start.p0(i64 4, ptr nonnull @_ZZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold)
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold) #6
  br label %16

16:                                               ; preds = %11, %9, %3
  %17 = tail call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 0)
  br i1 %17, label %18, label %28

18:                                               ; preds = %16
  %19 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 0)
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %.not52 = icmp eq i32 %21, %6
  br i1 %.not52, label %28, label %22

22:                                               ; preds = %18
  %23 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 0)
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load i32, ptr %24, align 8, !tbaa !5
  %26 = sub nsw i32 %25, %6
  %27 = tail call i32 @llvm.abs.i32(i32 %26, i1 true)
  br label %28

28:                                               ; preds = %18, %22, %16
  %.048 = phi i32 [ %27, %22 ], [ 0, %18 ], [ 0, %16 ]
  %.0 = phi i32 [ 0, %22 ], [ 4, %18 ], [ 4, %16 ]
  %29 = tail call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 1)
  br i1 %29, label %30, label %43

30:                                               ; preds = %28
  %31 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 1)
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load i32, ptr %32, align 8, !tbaa !5
  %34 = sub nsw i32 %33, %6
  %35 = tail call i32 @llvm.abs.i32(i32 %34, i1 true)
  %36 = icmp ugt i32 %35, %.048
  br i1 %36, label %37, label %43

37:                                               ; preds = %30
  %38 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 1)
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load i32, ptr %39, align 8, !tbaa !5
  %41 = sub nsw i32 %40, %6
  %42 = tail call i32 @llvm.abs.i32(i32 %41, i1 true)
  br label %43

43:                                               ; preds = %30, %37, %28
  %.149 = phi i32 [ %42, %37 ], [ %.048, %30 ], [ %.048, %28 ]
  %.1 = phi i32 [ 1, %37 ], [ %.0, %30 ], [ %.0, %28 ]
  %44 = tail call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 2)
  br i1 %44, label %45, label %58

45:                                               ; preds = %43
  %46 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 2)
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load i32, ptr %47, align 8, !tbaa !5
  %49 = sub nsw i32 %48, %6
  %50 = tail call i32 @llvm.abs.i32(i32 %49, i1 true)
  %51 = icmp ugt i32 %50, %.149
  br i1 %51, label %52, label %58

52:                                               ; preds = %45
  %53 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 2)
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !5
  %56 = sub nsw i32 %55, %6
  %57 = tail call i32 @llvm.abs.i32(i32 %56, i1 true)
  br label %58

58:                                               ; preds = %45, %52, %43
  %.250 = phi i32 [ %57, %52 ], [ %.149, %45 ], [ %.149, %43 ]
  %.2 = phi i32 [ 2, %52 ], [ %.1, %45 ], [ %.1, %43 ]
  %59 = tail call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 3)
  br i1 %59, label %60, label %73

60:                                               ; preds = %58
  %61 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 3)
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = load i32, ptr %62, align 8, !tbaa !5
  %64 = sub nsw i32 %63, %6
  %65 = tail call i32 @llvm.abs.i32(i32 %64, i1 true)
  %66 = icmp ugt i32 %65, %.250
  br i1 %66, label %67, label %73

67:                                               ; preds = %60
  %68 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 3)
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = load i32, ptr %69, align 8, !tbaa !5
  %71 = sub nsw i32 %70, %6
  %72 = tail call i32 @llvm.abs.i32(i32 %71, i1 true)
  br label %73

73:                                               ; preds = %60, %67, %58
  %.351 = phi i32 [ %72, %67 ], [ %.250, %60 ], [ %.250, %58 ]
  %.3 = phi i32 [ 3, %67 ], [ %.2, %60 ], [ %.2, %58 ]
  %74 = uitofp nneg i32 %.351 to float
  %75 = load float, ptr @_ZZN6tomasz19TomaszMazeGenerator17breakGradientWallEiiE14breakThreshold, align 4, !tbaa !37
  %76 = fcmp olt float %75, %74
  br i1 %76, label %77, label %88

77:                                               ; preds = %73
  switch i32 %.3, label %default.unreachable53 [
    i32 0, label %78
    i32 2, label %79
    i32 1, label %80
    i32 3, label %81
    i32 4, label %82
  ]

78:                                               ; preds = %77
  tail call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 0, i1 noundef zeroext false)
  br label %88

79:                                               ; preds = %77
  tail call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 2, i1 noundef zeroext false)
  br label %88

80:                                               ; preds = %77
  tail call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 1, i1 noundef zeroext false)
  br label %88

81:                                               ; preds = %77
  tail call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, i32 noundef %2, i32 noundef 3, i1 noundef zeroext false)
  br label %88

82:                                               ; preds = %77
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.14)
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull @.str.15)
  %85 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @.str.16)
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %85, i32 noundef 440)
  %87 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %88

default.unreachable53:                            ; preds = %77
  unreachable

88:                                               ; preds = %78, %79, %80, %81, %82, %73
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #1

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #2

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTSN6tomasz19TomaszMazeGenerator14TomMazeGenTileE", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !10, i64 13, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt3mapIN6tomasz9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN6tomasz9DirectionEEE", !15, i64 0}
!15 = !{!"_ZTSSt4lessIN6tomasz9DirectionEE"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !20, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !19, i64 8, !19, i64 16, !19, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!"long", !8, i64 0}
!21 = !{!"branch_weights", i32 1, i32 1048575}
!22 = !{!23, !7, i64 24}
!23 = !{!"_ZTSN6tomasz19TomaszMazeGeneratorE", !24, i64 0, !25, i64 8, !25, i64 16, !7, i64 24, !7, i64 28, !26, i64 32, !30, i64 56, !7, i64 136, !7, i64 140, !36, i64 144, !19, i64 152}
!24 = !{!"_ZTS14IMazeAlgorithm"}
!25 = !{!"double", !8, i64 0}
!26 = !{!"_ZTSSt6vectorIS_IN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS2_EESaIS4_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!30 = !{!"_ZTSSt5stackIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESt5dequeIS3_SaIS3_EEE", !31, i64 0}
!31 = !{!"_ZTSSt5dequeIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !32, i64 0}
!32 = !{!"_ZTSSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE11_Deque_implE", !34, i64 0}
!34 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE16_Deque_impl_dataE", !19, i64 0, !20, i64 8, !35, i64 16, !35, i64 48}
!35 = !{!"_ZTSSt15_Deque_iteratorIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileERS3_PS3_E", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24}
!36 = !{!"_ZTSN6tomasz9DirectionE", !8, i64 0}
!37 = !{!38, !38, i64 0}
!38 = !{!"float", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass