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

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #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: mustprogress uwtable
define dso_local void @_ZN6tomasz19TomaszMazeGenerator10makeCenterEv(ptr noundef nonnull align 8 dereferenceable(160) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %6 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %5, i32 0, i32 7
  %7 = load i32, ptr %6, align 8, !tbaa !9
  %8 = sitofp i32 %7 to double
  %9 = fdiv double %8, 2.000000e+00
  %10 = call double @llvm.round.f64(double %9)
  %11 = fsub double %10, 1.000000e+00
  %12 = fptosi double %11 to i32
  store i32 %12, ptr %3, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %13 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %5, i32 0, i32 8
  %14 = load i32, ptr %13, align 4, !tbaa !27
  %15 = sitofp i32 %14 to double
  %16 = fdiv double %15, 2.000000e+00
  %17 = call double @llvm.round.f64(double %16)
  %18 = fsub double %17, 1.000000e+00
  %19 = fptosi double %18 to i32
  store i32 %19, ptr %4, align 4, !tbaa !26
  %20 = load i32, ptr %3, align 4, !tbaa !26
  %21 = load i32, ptr %4, align 4, !tbaa !26
  %22 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %5, i32 noundef %20, i32 noundef %21, i32 noundef 4)
  %23 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %22, i32 0, i32 4
  store i8 1, ptr %23, align 1, !tbaa !28
  %24 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %5, i32 0, i32 7
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %26 = srem i32 %25, 2
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %48

28:                                               ; preds = %1
  %29 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %5, i32 0, i32 8
  %30 = load i32, ptr %29, align 4, !tbaa !27
  %31 = srem i32 %30, 2
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %48

33:                                               ; preds = %28
  %34 = load i32, ptr %3, align 4, !tbaa !26
  %35 = add nsw i32 %34, 1
  %36 = load i32, ptr %4, align 4, !tbaa !26
  %37 = add nsw i32 %36, 1
  call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %5, i32 noundef %35, i32 noundef %37, i32 noundef 2, i1 noundef zeroext false)
  %38 = load i32, ptr %3, align 4, !tbaa !26
  %39 = add nsw i32 %38, 1
  %40 = load i32, ptr %4, align 4, !tbaa !26
  %41 = add nsw i32 %40, 1
  call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %5, i32 noundef %39, i32 noundef %41, i32 noundef 3, i1 noundef zeroext false)
  %42 = load i32, ptr %3, align 4, !tbaa !26
  %43 = add nsw i32 %42, 1
  %44 = load i32, ptr %4, align 4, !tbaa !26
  %45 = add nsw i32 %44, 1
  %46 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %5, i32 noundef %43, i32 noundef %45, i32 noundef 4)
  %47 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %46, i32 0, i32 4
  store i8 1, ptr %47, align 1, !tbaa !28
  br label %48

48:                                               ; preds = %33, %28, %1
  %49 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %5, i32 0, i32 7
  %50 = load i32, ptr %49, align 8, !tbaa !9
  %51 = srem i32 %50, 2
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %60

53:                                               ; preds = %48
  %54 = load i32, ptr %3, align 4, !tbaa !26
  %55 = load i32, ptr %4, align 4, !tbaa !26
  call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %5, i32 noundef %54, i32 noundef %55, i32 noundef 1, i1 noundef zeroext false)
  %56 = load i32, ptr %3, align 4, !tbaa !26
  %57 = load i32, ptr %4, align 4, !tbaa !26
  %58 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %5, i32 noundef %56, i32 noundef %57, i32 noundef 1)
  %59 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %58, i32 0, i32 4
  store i8 1, ptr %59, align 1, !tbaa !28
  br label %60

60:                                               ; preds = %53, %48
  %61 = getelementptr inbounds %"class.tomasz::TomaszMazeGenerator", ptr %5, i32 0, i32 8
  %62 = load i32, ptr %61, align 4, !tbaa !27
  %63 = srem i32 %62, 2
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %72

65:                                               ; preds = %60
  %66 = load i32, ptr %3, align 4, !tbaa !26
  %67 = load i32, ptr %4, align 4, !tbaa !26
  call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %5, i32 noundef %66, i32 noundef %67, i32 noundef 0, i1 noundef zeroext false)
  %68 = load i32, ptr %3, align 4, !tbaa !26
  %69 = load i32, ptr %4, align 4, !tbaa !26
  %70 = call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %5, i32 noundef %68, i32 noundef %69, i32 noundef 0)
  %71 = getelementptr inbounds %"struct.tomasz::TomaszMazeGenerator::TomMazeGenTile", ptr %70, i32 0, i32 4
  store i8 1, ptr %71, align 1, !tbaa !28
  br label %72

72:                                               ; preds = %65, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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 }

!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, !13, i64 136}
!10 = !{!"_ZTSN6tomasz19TomaszMazeGeneratorE", !11, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 28, !14, i64 32, !18, i64 56, !13, i64 136, !13, i64 140, !25, i64 144, !6, i64 152}
!11 = !{!"_ZTS14IMazeAlgorithm"}
!12 = !{!"double", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIS_IN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS2_EESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt5stackIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESt5dequeIS3_SaIS3_EEE", !19, i64 0}
!19 = !{!"_ZTSSt5dequeIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE11_Deque_implE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileESaIS3_EE16_Deque_impl_dataE", !6, i64 0, !23, i64 8, !24, i64 16, !24, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt15_Deque_iteratorIPN6tomasz19TomaszMazeGenerator14TomMazeGenTileERS3_PS3_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSN6tomasz9DirectionE", !7, i64 0}
!26 = !{!13, !13, i64 0}
!27 = !{!10, !13, i64 140}
!28 = !{!29, !30, i64 13}
!29 = !{!"_ZTSN6tomasz19TomaszMazeGenerator14TomMazeGenTileE", !13, i64 0, !13, i64 4, !13, i64 8, !30, i64 12, !30, i64 13, !31, i64 16}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSSt3mapIN6tomasz9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE", !32, i64 0}
!32 = !{!"_ZTSSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSNSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !34, i64 0, !36, i64 8}
!34 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN6tomasz9DirectionEEE", !35, i64 0}
!35 = !{!"_ZTSSt4lessIN6tomasz9DirectionEE"}
!36 = !{!"_ZTSSt15_Rb_tree_header", !37, i64 0, !23, i64 32}
!37 = !{!"_ZTSSt18_Rb_tree_node_base", !38, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!38 = !{!"_ZTSSt14_Rb_tree_color", !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"

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #1

; 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: mustprogress uwtable
define dso_local void @_ZN6tomasz19TomaszMazeGenerator10makeCenterEv(ptr noundef nonnull align 8 dereferenceable(160) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 136
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = sitofp i32 %3 to double
  %5 = fmul double %4, 5.000000e-01
  %6 = tail call double @llvm.round.f64(double %5)
  %7 = fadd double %6, -1.000000e+00
  %8 = fptosi double %7 to i32
  %9 = getelementptr inbounds i8, ptr %0, i64 140
  %10 = load i32, ptr %9, align 4, !tbaa !25
  %11 = sitofp i32 %10 to double
  %12 = fmul double %11, 5.000000e-01
  %13 = tail call double @llvm.round.f64(double %12)
  %14 = fadd double %13, -1.000000e+00
  %15 = fptosi double %14 to i32
  %16 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %8, i32 noundef %15, i32 noundef 4)
  %17 = getelementptr inbounds i8, ptr %16, i64 13
  store i8 1, ptr %17, align 1, !tbaa !26
  %18 = load i32, ptr %2, align 8, !tbaa !5
  %19 = and i32 %18, 1
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %30

21:                                               ; preds = %1
  %22 = load i32, ptr %9, align 4, !tbaa !25
  %23 = and i32 %22, 1
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %21
  %26 = add nsw i32 %8, 1
  %27 = add nsw i32 %15, 1
  tail call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %26, i32 noundef %27, i32 noundef 2, i1 noundef zeroext false)
  tail call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %26, i32 noundef %27, i32 noundef 3, i1 noundef zeroext false)
  %28 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %26, i32 noundef %27, i32 noundef 4)
  %29 = getelementptr inbounds i8, ptr %28, i64 13
  store i8 1, ptr %29, align 1, !tbaa !26
  %.pre = load i32, ptr %2, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %25, %21, %1
  %31 = phi i32 [ %.pre, %25 ], [ %18, %21 ], [ %18, %1 ]
  %32 = and i32 %31, 1
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %30
  tail call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %8, i32 noundef %15, i32 noundef 1, i1 noundef zeroext false)
  %35 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %8, i32 noundef %15, i32 noundef 1)
  %36 = getelementptr inbounds i8, ptr %35, i64 13
  store i8 1, ptr %36, align 1, !tbaa !26
  br label %37

37:                                               ; preds = %34, %30
  %38 = load i32, ptr %9, align 4, !tbaa !25
  %39 = and i32 %38, 1
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %44

41:                                               ; preds = %37
  tail call void @_ZN6tomasz19TomaszMazeGenerator7setWallEiiNS_9DirectionEb(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %8, i32 noundef %15, i32 noundef 0, i1 noundef zeroext false)
  %42 = tail call noundef ptr @_ZN6tomasz19TomaszMazeGenerator7getTileEiiNS_9DirectionE(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %8, i32 noundef %15, i32 noundef 0)
  %43 = getelementptr inbounds i8, ptr %42, i64 13
  store i8 1, ptr %43, align 1, !tbaa !26
  br label %44

44:                                               ; preds = %41, %37
  ret void
}

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 136}
!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 140}
!26 = !{!27, !28, i64 13}
!27 = !{!"_ZTSN6tomasz19TomaszMazeGenerator14TomMazeGenTileE", !11, i64 0, !11, i64 4, !11, i64 8, !28, i64 12, !28, i64 13, !29, i64 16}
!28 = !{!"bool", !9, i64 0}
!29 = !{!"_ZTSSt3mapIN6tomasz9DirectionEbSt4lessIS1_ESaISt4pairIKS1_bEEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIN6tomasz9DirectionESt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN6tomasz9DirectionEEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessIN6tomasz9DirectionEE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !22, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass