; 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.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 }
%"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 }

@__const._ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv.directions = external hidden unnamed_addr constant [4 x i32], align 16

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv(ptr noundef nonnull align 8 dereferenceable(160) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca [4 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const._ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv.directions, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %126, %1
  %15 = load i32, ptr %4, align 4, !tbaa !9
  %16 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %13, i32 0, i32 4
  %17 = load i32, ptr %16, align 4, !tbaa !11
  %18 = icmp slt i32 %15, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %14
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %129

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

21:                                               ; preds = %118, %20
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %13, i32 0, i32 7
  %24 = load i32, ptr %23, align 8, !tbaa !27
  %25 = icmp slt i32 %22, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %21
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %121

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %114, %27
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %13, i32 0, i32 8
  %31 = load i32, ptr %30, align 4, !tbaa !28
  %32 = icmp slt i32 %29, %31
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %28
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  call void @_ZN6tomasz19TomaszMazeGenerator23updateDistanceFromStartEii(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %35, i32 noundef %36)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %110, %34
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = icmp slt i32 %38, 4
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %113

41:                                               ; preds = %37
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %42, i32 noundef %43, i32 noundef 4)
  %45 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %44, i32 0, i32 4
  %46 = load i8, ptr %45, align 1, !tbaa !29, !range !40, !noundef !41
  %47 = trunc i8 %46 to i1
  %48 = zext i1 %47 to i32
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %51

50:                                               ; preds = %41
  br label %110

51:                                               ; preds = %41
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %52, i32 noundef %53, i32 noundef 4)
  %55 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !42
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %66

58:                                               ; preds = %51
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %59, i32 noundef %60, i32 noundef 4)
  %62 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !43
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %58
  br label %110

66:                                               ; preds = %58, %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %67, i32 noundef %68, i32 noundef 4)
  %70 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !44
  store i32 %71, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !45
  %78 = call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %72, i32 noundef %73, i32 noundef %77)
  br i1 %78, label %79, label %109

79:                                               ; preds = %66
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = load i32, ptr %11, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !45
  %86 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %80, i32 noundef %81, i32 noundef %85)
  %87 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %86, i32 0, i32 2
  %88 = load i32, ptr %87, align 8, !tbaa !44
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = sub nsw i32 %88, %89
  %91 = call i32 @llvm.abs.i32(i32 %90, i1 true)
  %92 = load i32, ptr %6, align 4, !tbaa !9
  %93 = icmp sgt i32 %91, %92
  br i1 %93, label %94, label %109

94:                                               ; preds = %79
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !45
  %101 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %95, i32 noundef %96, i32 noundef %100)
  %102 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %101, i32 0, i32 2
  %103 = load i32, ptr %102, align 8, !tbaa !44
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = sub nsw i32 %103, %104
  %106 = call i32 @llvm.abs.i32(i32 %105, i1 true)
  store i32 %106, ptr %6, align 4, !tbaa !9
  %107 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %107, ptr %7, align 4, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %108, ptr %8, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %94, %79, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %110

110:                                              ; preds = %109, %65, %50
  %111 = load i32, ptr %11, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %11, align 4, !tbaa !9
  br label %37, !llvm.loop !46

113:                                              ; preds = %40
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %10, align 4, !tbaa !9
  br label %28, !llvm.loop !48

117:                                              ; preds = %33
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %9, align 4, !tbaa !9
  br label %21, !llvm.loop !49

121:                                              ; preds = %26
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6tomasz19TomaszMazeGenerator23updateDistanceFromStartEii(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %122, i32 noundef %123)
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6tomasz19TomaszMazeGenerator17breakGradientWallEii(ptr noundef nonnull align 8 dereferenceable(160) %13, i32 noundef %124, i32 noundef %125)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %126

126:                                              ; preds = %121
  %127 = load i32, ptr %4, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %4, align 4, !tbaa !9
  br label %14, !llvm.loop !50

129:                                              ; preds = %19
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #4
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 28}
!12 = !{!"_ZTSN6tomasz19TomaszMazeGeneratorE", !13, i64 0, !14, i64 8, !14, i64 16, !10, i64 24, !10, i64 28, !15, i64 32, !19, i64 56, !10, i64 136, !10, i64 140, !26, i64 144, !6, i64 152}
!13 = !{!"_ZTS14IMazeAlgorithm"}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIS_IN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS2_EESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt5stackIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESt5dequeIS3_SaIS3_EEE", !20, i64 0}
!20 = !{!"_ZTSSt5dequeIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE11_Deque_implE", !23, i64 0}
!23 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE16_Deque_impl_dataE", !6, i64 0, !24, i64 8, !25, i64 16, !25, i64 48}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSSt15_Deque_iteratorIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileERS3_PS3_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSN6tomasz9DirectionE", !7, i64 0}
!27 = !{!12, !10, i64 136}
!28 = !{!12, !10, i64 140}
!29 = !{!30, !31, i64 13}
!30 = !{!"_ZTSN6tomasz19TomaszMazeGenerator14TomMazeGenTileE", !10, i64 0, !10, i64 4, !10, i64 8, !31, i64 12, !31, i64 13, !32, i64 16}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSSt3mapIN6tomasz9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !35, i64 0, !37, i64 8}
!35 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN6tomasz9DirectionEEE", !36, i64 0}
!36 = !{!"_ZTSSt4lessIN6tomasz9DirectionEE"}
!37 = !{!"_ZTSSt15_Rb_tree_header", !38, i64 0, !24, i64 32}
!38 = !{!"_ZTSSt18_Rb_tree_node_base", !39, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!39 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!30, !10, i64 0}
!43 = !{!30, !10, i64 4}
!44 = !{!30, !10, i64 8}
!45 = !{!26, !26, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = distinct !{!48, !47}
!49 = distinct !{!49, !47}
!50 = distinct !{!50, !47}


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

@__const._ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv.directions = external hidden unnamed_addr constant [4 x i32], align 16

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv(ptr noundef nonnull align 8 dereferenceable(160) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 28
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.preheader50.lr.ph, label %._crit_edge70

.preheader50.lr.ph:                               ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 136
  %6 = getelementptr inbounds i8, ptr %0, i64 140
  %7 = load i32, ptr @__const._ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv.directions, align 16
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv.directions, i64 4), align 4
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv.directions, i64 8), align 8
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN6tomasz19TomaszMazeGenerator18breakGradientWallsEv.directions, i64 12), align 4
  br label %.preheader50

.preheader50:                                     ; preds = %.preheader50.lr.ph, %._crit_edge65
  %.069 = phi i32 [ 0, %.preheader50.lr.ph ], [ %18, %._crit_edge65 ]
  %11 = load i32, ptr %5, align 8, !tbaa !25
  %12 = icmp sgt i32 %11, 0
  %13 = load i32, ptr %6, align 4
  %14 = icmp sgt i32 %13, 0
  %or.cond = select i1 %12, i1 %14, i1 false
  br i1 %or.cond, label %.preheader, label %._crit_edge65

._crit_edge70:                                    ; preds = %._crit_edge65, %1
  ret void

.preheader:                                       ; preds = %.preheader50, %._crit_edge
  %15 = phi i32 [ %21, %._crit_edge ], [ %11, %.preheader50 ]
  %16 = phi i32 [ %22, %._crit_edge ], [ %13, %.preheader50 ]
  %.03864 = phi i32 [ %23, %._crit_edge ], [ 0, %.preheader50 ]
  %.03963 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 0, %.preheader50 ]
  %.04062 = phi i32 [ %.141.lcssa, %._crit_edge ], [ 0, %.preheader50 ]
  %.04561 = phi i32 [ %.146.lcssa, %._crit_edge ], [ 0, %.preheader50 ]
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge65:                                    ; preds = %._crit_edge, %.preheader50
  %.040.lcssa = phi i32 [ 0, %.preheader50 ], [ %.141.lcssa, %._crit_edge ]
  %.039.lcssa = phi i32 [ 0, %.preheader50 ], [ %.1.lcssa, %._crit_edge ]
  tail call void @_ZN6tomasz19TomaszMazeGenerator23updateDistanceFromStartEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.040.lcssa, i32 noundef %.039.lcssa)
  tail call void @_ZN6tomasz19TomaszMazeGenerator17breakGradientWallEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.040.lcssa, i32 noundef %.039.lcssa)
  %18 = add nuw nsw i32 %.069, 1
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %.preheader50, label %._crit_edge70, !llvm.loop !26

._crit_edge.loopexit:                             ; preds = %152
  %.pre = load i32, ptr %5, align 8, !tbaa !25
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %21 = phi i32 [ %15, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %22 = phi i32 [ %16, %.preheader ], [ %154, %._crit_edge.loopexit ]
  %.146.lcssa = phi i32 [ %.04561, %.preheader ], [ %.449.3, %._crit_edge.loopexit ]
  %.141.lcssa = phi i32 [ %.04062, %.preheader ], [ %.444.3, %._crit_edge.loopexit ]
  %.1.lcssa = phi i32 [ %.03963, %.preheader ], [ %.4.3, %._crit_edge.loopexit ]
  %23 = add nuw nsw i32 %.03864, 1
  %24 = icmp slt i32 %23, %21
  br i1 %24, label %.preheader, label %._crit_edge65, !llvm.loop !28

.lr.ph:                                           ; preds = %.preheader, %152
  %.03758 = phi i32 [ %153, %152 ], [ 0, %.preheader ]
  %.157 = phi i32 [ %.4.3, %152 ], [ %.03963, %.preheader ]
  %.14156 = phi i32 [ %.444.3, %152 ], [ %.04062, %.preheader ]
  %.14655 = phi i32 [ %.449.3, %152 ], [ %.04561, %.preheader ]
  tail call void @_ZN6tomasz19TomaszMazeGenerator23updateDistanceFromStartEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758)
  %25 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %26 = getelementptr inbounds i8, ptr %25, i64 13
  %27 = load i8, ptr %26, align 1, !tbaa !30, !range !41, !noundef !42
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %56, label %29

29:                                               ; preds = %.lr.ph
  %30 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %31 = load i32, ptr %30, align 8, !tbaa !43
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %38

33:                                               ; preds = %29
  %34 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %35 = getelementptr inbounds i8, ptr %34, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !44
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %56, label %38

38:                                               ; preds = %33, %29
  %39 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !45
  %42 = tail call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %7)
  br i1 %42, label %43, label %56

43:                                               ; preds = %38
  %44 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %7)
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !45
  %47 = sub nsw i32 %46, %41
  %48 = tail call i32 @llvm.abs.i32(i32 %47, i1 true)
  %49 = icmp sgt i32 %48, %.14655
  br i1 %49, label %50, label %56

50:                                               ; preds = %43
  %51 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %7)
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load i32, ptr %52, align 8, !tbaa !45
  %54 = sub nsw i32 %53, %41
  %55 = tail call i32 @llvm.abs.i32(i32 %54, i1 true)
  br label %56

56:                                               ; preds = %38, %43, %50, %33, %.lr.ph
  %.449 = phi i32 [ %.14655, %.lr.ph ], [ %.14655, %33 ], [ %55, %50 ], [ %.14655, %43 ], [ %.14655, %38 ]
  %.444 = phi i32 [ %.14156, %.lr.ph ], [ %.14156, %33 ], [ %.03864, %50 ], [ %.14156, %43 ], [ %.14156, %38 ]
  %.4 = phi i32 [ %.157, %.lr.ph ], [ %.157, %33 ], [ %.03758, %50 ], [ %.157, %43 ], [ %.157, %38 ]
  %57 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %58 = getelementptr inbounds i8, ptr %57, i64 13
  %59 = load i8, ptr %58, align 1, !tbaa !30, !range !41, !noundef !42
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %88, label %61

61:                                               ; preds = %56
  %62 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %63 = load i32, ptr %62, align 8, !tbaa !43
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %61
  %66 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %67 = getelementptr inbounds i8, ptr %66, i64 4
  %68 = load i32, ptr %67, align 4, !tbaa !44
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %88, label %70

70:                                               ; preds = %65, %61
  %71 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %72 = getelementptr inbounds i8, ptr %71, i64 8
  %73 = load i32, ptr %72, align 8, !tbaa !45
  %74 = tail call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %8)
  br i1 %74, label %75, label %88

75:                                               ; preds = %70
  %76 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %8)
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = load i32, ptr %77, align 8, !tbaa !45
  %79 = sub nsw i32 %78, %73
  %80 = tail call i32 @llvm.abs.i32(i32 %79, i1 true)
  %81 = icmp sgt i32 %80, %.449
  br i1 %81, label %82, label %88

82:                                               ; preds = %75
  %83 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %8)
  %84 = getelementptr inbounds i8, ptr %83, i64 8
  %85 = load i32, ptr %84, align 8, !tbaa !45
  %86 = sub nsw i32 %85, %73
  %87 = tail call i32 @llvm.abs.i32(i32 %86, i1 true)
  br label %88

88:                                               ; preds = %82, %75, %70, %65, %56
  %.449.1 = phi i32 [ %.449, %56 ], [ %.449, %65 ], [ %87, %82 ], [ %.449, %75 ], [ %.449, %70 ]
  %.444.1 = phi i32 [ %.444, %56 ], [ %.444, %65 ], [ %.03864, %82 ], [ %.444, %75 ], [ %.444, %70 ]
  %.4.1 = phi i32 [ %.4, %56 ], [ %.4, %65 ], [ %.03758, %82 ], [ %.4, %75 ], [ %.4, %70 ]
  %89 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %90 = getelementptr inbounds i8, ptr %89, i64 13
  %91 = load i8, ptr %90, align 1, !tbaa !30, !range !41, !noundef !42
  %92 = trunc nuw i8 %91 to i1
  br i1 %92, label %120, label %93

93:                                               ; preds = %88
  %94 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %95 = load i32, ptr %94, align 8, !tbaa !43
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %102

97:                                               ; preds = %93
  %98 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %99 = getelementptr inbounds i8, ptr %98, i64 4
  %100 = load i32, ptr %99, align 4, !tbaa !44
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %120, label %102

102:                                              ; preds = %97, %93
  %103 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load i32, ptr %104, align 8, !tbaa !45
  %106 = tail call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %9)
  br i1 %106, label %107, label %120

107:                                              ; preds = %102
  %108 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %9)
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = load i32, ptr %109, align 8, !tbaa !45
  %111 = sub nsw i32 %110, %105
  %112 = tail call i32 @llvm.abs.i32(i32 %111, i1 true)
  %113 = icmp sgt i32 %112, %.449.1
  br i1 %113, label %114, label %120

114:                                              ; preds = %107
  %115 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %9)
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = load i32, ptr %116, align 8, !tbaa !45
  %118 = sub nsw i32 %117, %105
  %119 = tail call i32 @llvm.abs.i32(i32 %118, i1 true)
  br label %120

120:                                              ; preds = %114, %107, %102, %97, %88
  %.449.2 = phi i32 [ %.449.1, %88 ], [ %.449.1, %97 ], [ %119, %114 ], [ %.449.1, %107 ], [ %.449.1, %102 ]
  %.444.2 = phi i32 [ %.444.1, %88 ], [ %.444.1, %97 ], [ %.03864, %114 ], [ %.444.1, %107 ], [ %.444.1, %102 ]
  %.4.2 = phi i32 [ %.4.1, %88 ], [ %.4.1, %97 ], [ %.03758, %114 ], [ %.4.1, %107 ], [ %.4.1, %102 ]
  %121 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %122 = getelementptr inbounds i8, ptr %121, i64 13
  %123 = load i8, ptr %122, align 1, !tbaa !30, !range !41, !noundef !42
  %124 = trunc nuw i8 %123 to i1
  br i1 %124, label %152, label %125

125:                                              ; preds = %120
  %126 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %127 = load i32, ptr %126, align 8, !tbaa !43
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %134

129:                                              ; preds = %125
  %130 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %131 = getelementptr inbounds i8, ptr %130, i64 4
  %132 = load i32, ptr %131, align 4, !tbaa !44
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %152, label %134

134:                                              ; preds = %129, %125
  %135 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef 4)
  %136 = getelementptr inbounds i8, ptr %135, i64 8
  %137 = load i32, ptr %136, align 8, !tbaa !45
  %138 = tail call noundef zeroext i1 @_ZN6tomasz19TomaszMazeGenerator19isValidExploredTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %10)
  br i1 %138, label %139, label %152

139:                                              ; preds = %134
  %140 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %10)
  %141 = getelementptr inbounds i8, ptr %140, i64 8
  %142 = load i32, ptr %141, align 8, !tbaa !45
  %143 = sub nsw i32 %142, %137
  %144 = tail call i32 @llvm.abs.i32(i32 %143, i1 true)
  %145 = icmp sgt i32 %144, %.449.2
  br i1 %145, label %146, label %152

146:                                              ; preds = %139
  %147 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %.03864, i32 noundef %.03758, i32 noundef %10)
  %148 = getelementptr inbounds i8, ptr %147, i64 8
  %149 = load i32, ptr %148, align 8, !tbaa !45
  %150 = sub nsw i32 %149, %137
  %151 = tail call i32 @llvm.abs.i32(i32 %150, i1 true)
  br label %152

152:                                              ; preds = %146, %139, %134, %129, %120
  %.449.3 = phi i32 [ %.449.2, %120 ], [ %.449.2, %129 ], [ %151, %146 ], [ %.449.2, %139 ], [ %.449.2, %134 ]
  %.444.3 = phi i32 [ %.444.2, %120 ], [ %.444.2, %129 ], [ %.03864, %146 ], [ %.444.2, %139 ], [ %.444.2, %134 ]
  %.4.3 = phi i32 [ %.4.2, %120 ], [ %.4.2, %129 ], [ %.03758, %146 ], [ %.4.2, %139 ], [ %.4.2, %134 ]
  %153 = add nuw nsw i32 %.03758, 1
  %154 = load i32, ptr %6, align 4, !tbaa !46
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !47
}

; 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

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) }

!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, !11, i64 28}
!6 = !{!"_ZTSN6tomasz19TomaszMazeGeneratorE", !7, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !11, i64 28, !12, i64 32, !17, i64 56, !11, i64 136, !11, i64 140, !24, i64 144, !16, i64 152}
!7 = !{!"_ZTS14IMazeAlgorithm"}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIS_IN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS2_EESaIS4_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !9, i64 0}
!17 = !{!"_ZTSSt5stackIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESt5dequeIS3_SaIS3_EEE", !18, i64 0}
!18 = !{!"_ZTSSt5dequeIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE11_Deque_implE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE16_Deque_impl_dataE", !16, i64 0, !22, i64 8, !23, i64 16, !23, i64 48}
!22 = !{!"long", !9, i64 0}
!23 = !{!"_ZTSSt15_Deque_iteratorIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileERS3_PS3_E", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!24 = !{!"_ZTSN6tomasz9DirectionE", !9, i64 0}
!25 = !{!6, !11, i64 136}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27, !29}
!29 = !{!"llvm.loop.unswitch.partial.disable"}
!30 = !{!31, !32, i64 13}
!31 = !{!"_ZTSN6tomasz19TomaszMazeGenerator14TomMazeGenTileE", !11, i64 0, !11, i64 4, !11, i64 8, !32, i64 12, !32, i64 13, !33, i64 16}
!32 = !{!"bool", !9, i64 0}
!33 = !{!"_ZTSSt3mapIN6tomasz9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !36, i64 0, !38, i64 8}
!36 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN6tomasz9DirectionEEE", !37, i64 0}
!37 = !{!"_ZTSSt4lessIN6tomasz9DirectionEE"}
!38 = !{!"_ZTSSt15_Rb_tree_header", !39, i64 0, !22, i64 32}
!39 = !{!"_ZTSSt18_Rb_tree_node_base", !40, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!40 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!31, !11, i64 0}
!44 = !{!31, !11, i64 4}
!45 = !{!31, !11, i64 8}
!46 = !{!6, !11, i64 140}
!47 = distinct !{!47, !27}


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