; LLVM IR from Optiroc/SuperFamiconv :: src/Tiles.ll (ZN3sfc7TilesetC2ERKSt6vectorIhSaIhEENS_4ModeEjjjb)

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

%"struct.sfc::Tile" = type { i32, i32, i32, i32, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<sfc::Tile, std::allocator<sfc::Tile>>::_Vector_impl" }
%"struct.std::_Vector_base<sfc::Tile, std::allocator<sfc::Tile>>::_Vector_impl" = type { %"struct.std::_Vector_base<sfc::Tile, std::allocator<sfc::Tile>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sfc::Tile, std::allocator<sfc::Tile>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.sfc::Tileset" = type { i32, i32, i32, i32, i32, i8, i8, i8, i32, %"class.std::vector.13" }

@_ZTISt13runtime_error = external constant ptr
@.str.2 = external hidden unnamed_addr constant [65 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(88)) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sfc7TilesetC2ERKSt6vectorIhSaIhEENS_4ModeEjjjb(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.sfc::Tile", align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca %"class.std::vector.13", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !11
  store i32 %4, ptr %12, align 4, !tbaa !11
  store i32 %5, ptr %13, align 4, !tbaa !11
  %24 = zext i1 %6 to i8
  store i8 %24, ptr %14, align 1, !tbaa !13
  %25 = load ptr, ptr %8, align 8
  %26 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 0
  store i32 0, ptr %26, align 8, !tbaa !15
  %27 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 1
  store i32 1, ptr %27, align 4, !tbaa !21
  %28 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 2
  store i32 4, ptr %28, align 8, !tbaa !22
  %29 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 3
  store i32 8, ptr %29, align 4, !tbaa !23
  %30 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 4
  store i32 8, ptr %30, align 8, !tbaa !24
  %31 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 5
  store i8 0, ptr %31, align 4, !tbaa !25
  %32 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 6
  store i8 0, ptr %32, align 1, !tbaa !26
  %33 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 7
  store i8 0, ptr %33, align 2, !tbaa !27
  %34 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 8
  store i32 0, ptr %34, align 8, !tbaa !28
  %35 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 9
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 1
  store i32 %36, ptr %37, align 4, !tbaa !21
  %38 = load i32, ptr %11, align 4, !tbaa !11
  %39 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 2
  store i32 %38, ptr %39, align 8, !tbaa !22
  %40 = load i32, ptr %12, align 4, !tbaa !11
  %41 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 3
  store i32 %40, ptr %41, align 4, !tbaa !23
  %42 = load i32, ptr %13, align 4, !tbaa !11
  %43 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 4
  store i32 %42, ptr %43, align 8, !tbaa !24
  %44 = load i8, ptr %14, align 1, !tbaa !13, !range !29, !noundef !30
  %45 = trunc i8 %44 to i1
  %46 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 6
  %47 = zext i1 %45 to i8
  store i8 %47, ptr %46, align 1, !tbaa !26
  %48 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !21
  %50 = icmp eq i32 %49, 9
  br i1 %50, label %51, label %52

51:                                               ; preds = %7
  br label %144

52:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %53 = load i32, ptr %11, align 4, !tbaa !11
  %54 = shl i32 %53, 3
  store i32 %54, ptr %15, align 4, !tbaa !11
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  %57 = load i32, ptr %15, align 4, !tbaa !11
  %58 = zext i32 %57 to i64
  %59 = urem i64 %56, %58
  %60 = icmp ne i64 %59, 0
  br i1 %60, label %61, label %72

61:                                               ; preds = %52
  %62 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef @.str.2)
          to label %63 unwind label %64

63:                                               ; preds = %61
  invoke void @__cxa_throw(ptr %62, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
          to label %150 unwind label %68

64:                                               ; preds = %61
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %16, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %17, align 4
  call void @__cxa_free_exception(ptr %62) #6
  br label %143

68:                                               ; preds = %63
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %16, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %17, align 4
  br label %143

72:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #6
  %75 = trunc i64 %74 to i32
  %76 = load i32, ptr %15, align 4, !tbaa !11
  %77 = udiv i32 %75, %76
  store i32 %77, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %105, %72
  %79 = load i32, ptr %19, align 4, !tbaa !11
  %80 = load i32, ptr %18, align 4, !tbaa !11
  %81 = icmp ult i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %122

83:                                               ; preds = %78
  %84 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 9
  call void @llvm.lifetime.start.p0(i64 88, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load i32, ptr %19, align 4, !tbaa !11
  %87 = load i32, ptr %15, align 4, !tbaa !11
  %88 = mul i32 %86, %87
  %89 = zext i32 %88 to i64
  %90 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %89) #6
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load i32, ptr %19, align 4, !tbaa !11
  %93 = add i32 %92, 1
  %94 = load i32, ptr %15, align 4, !tbaa !11
  %95 = mul i32 %93, %94
  %96 = zext i32 %95 to i64
  %97 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %96) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt6vectorIhSaIhEEC2IPKhvEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef %90, ptr noundef %97, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %98 unwind label %108

98:                                               ; preds = %83
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = load i32, ptr %11, align 4, !tbaa !11
  %101 = load i8, ptr %14, align 1, !tbaa !13, !range !29, !noundef !30
  %102 = trunc i8 %101 to i1
  invoke void @_ZN3sfc4TileC1ERKSt6vectorIhSaIhEENS_4ModeEjbjj(ptr noundef nonnull align 8 dereferenceable(88) %20, ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef %99, i32 noundef %100, i1 noundef zeroext %102, i32 noundef 8, i32 noundef 8)
          to label %103 unwind label %112

103:                                              ; preds = %98
  invoke void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(88) %20)
          to label %104 unwind label %116

104:                                              ; preds = %103
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %20) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %20) #6
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %19, align 4, !tbaa !11
  %107 = add i32 %106, 1
  store i32 %107, ptr %19, align 4, !tbaa !11
  br label %78, !llvm.loop !31

108:                                              ; preds = %83
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %16, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %17, align 4
  br label %121

112:                                              ; preds = %98
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %16, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %17, align 4
  br label %120

116:                                              ; preds = %103
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %16, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %17, align 4
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %20) #6
  br label %120

120:                                              ; preds = %116, %112
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %121

121:                                              ; preds = %120, %108
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %142

122:                                              ; preds = %82
  %123 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 3
  %124 = load i32, ptr %123, align 4, !tbaa !23
  %125 = icmp ne i32 %124, 8
  br i1 %125, label %130, label %126

126:                                              ; preds = %122
  %127 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 4
  %128 = load i32, ptr %127, align 8, !tbaa !24
  %129 = icmp ne i32 %128, 8
  br i1 %129, label %130, label %141

130:                                              ; preds = %126, %122
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  %131 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 9
  %132 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 1
  %133 = load i32, ptr %132, align 4, !tbaa !21
  invoke void @_ZNK3sfc7Tileset21remap_tiles_for_inputERKSt6vectorINS_4TileESaIS2_EENS_4ModeE(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8 %23, ptr noundef nonnull align 8 dereferenceable(56) %25, ptr noundef nonnull align 8 dereferenceable(24) %131, i32 noundef %133)
          to label %134 unwind label %137

134:                                              ; preds = %130
  %135 = getelementptr inbounds %"struct.sfc::Tileset", ptr %25, i32 0, i32 9
  %136 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3sfc4TileESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  br label %141

137:                                              ; preds = %130
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %16, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  br label %142

141:                                              ; preds = %134, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %144

142:                                              ; preds = %137, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %143

143:                                              ; preds = %142, %68, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  br label %145

144:                                              ; preds = %141, %51
  ret void

145:                                              ; preds = %143
  %146 = load ptr, ptr %16, align 8
  %147 = load i32, ptr %17, align 4
  %148 = insertvalue { ptr, i32 } poison, ptr %146, 0
  %149 = insertvalue { ptr, i32 } %148, i32 %147, 1
  resume { ptr, i32 } %149

150:                                              ; preds = %63
  unreachable
}

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

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

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

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

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

declare void @_ZN3sfc4TileC1ERKSt6vectorIhSaIhEENS_4ModeEjbjj(ptr, ptr, i32, i32, i1, i32, i32)

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

!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 = !{!"_ZTSN3sfc4ModeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSN3sfc7TilesetE", !12, i64 0, !10, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !14, i64 20, !14, i64 21, !14, i64 22, !12, i64 24, !17, i64 32}
!17 = !{!"_ZTSSt6vectorIN3sfc4TileESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN3sfc4TileESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN3sfc4TileESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN3sfc4TileESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!16, !10, i64 4}
!22 = !{!16, !12, i64 8}
!23 = !{!16, !12, i64 12}
!24 = !{!16, !12, i64 16}
!25 = !{!16, !14, i64 20}
!26 = !{!16, !14, i64 21}
!27 = !{!16, !14, i64 22}
!28 = !{!16, !12, i64 24}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


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

%"struct.sfc::Tile" = type { i32, i32, i32, i32, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<sfc::Tile, std::allocator<sfc::Tile>>::_Vector_impl" }
%"struct.std::_Vector_base<sfc::Tile, std::allocator<sfc::Tile>>::_Vector_impl" = type { %"struct.std::_Vector_base<sfc::Tile, std::allocator<sfc::Tile>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sfc::Tile, std::allocator<sfc::Tile>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt13runtime_error = external constant ptr
@.str.2 = external hidden unnamed_addr constant [65 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sfc7TilesetC2ERKSt6vectorIhSaIhEENS_4ModeEjjjb(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"struct.sfc::Tile", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::vector.13", align 8
  %12 = zext i1 %6 to i8
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = getelementptr inbounds i8, ptr %0, i64 12
  store <4 x i32> <i32 0, i32 1, i32 4, i32 8>, ptr %0, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 8, ptr %16, align 8, !tbaa !8
  %17 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 0, ptr %17, align 4, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %0, i64 21
  store i8 0, ptr %18, align 1, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %0, i64 22
  store i8 0, ptr %19, align 2, !tbaa !20
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %20, align 8, !tbaa !21
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt6vectorIN3sfc4TileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  store i32 %2, ptr %13, align 4, !tbaa !22
  store i32 %3, ptr %14, align 8, !tbaa !23
  store i32 %4, ptr %15, align 4, !tbaa !24
  store i32 %5, ptr %16, align 8, !tbaa !8
  store i8 %12, ptr %18, align 1, !tbaa !19
  %22 = icmp eq i32 %2, 9
  br i1 %22, label %69, label %23

23:                                               ; preds = %7
  %24 = shl i32 %3, 3
  %25 = tail call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %26 = zext i32 %24 to i64
  %27 = urem i64 %25, %26
  %.not = icmp eq i64 %27, 0
  br i1 %.not, label %35, label %28

28:                                               ; preds = %23
  %29 = tail call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull @.str.2)
          to label %30 unwind label %31

30:                                               ; preds = %28
  invoke void @__cxa_throw(ptr nonnull %29, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #7
          to label %70 unwind label %33

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %29) #6
  br label %68

33:                                               ; preds = %30
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %68

35:                                               ; preds = %23
  %36 = tail call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %37 = trunc i64 %36 to i32
  %.not37 = icmp ugt i32 %24, %37
  br i1 %.not37, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %35
  %38 = udiv i32 %37, %24
  %39 = zext i32 %38 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %52, %35
  %40 = load i32, ptr %15, align 4, !tbaa !24
  %.not29 = icmp eq i32 %40, 8
  %41 = load i32, ptr %16, align 8
  %.not30 = icmp eq i32 %41, 8
  %or.cond = select i1 %.not29, i1 %.not30, i1 false
  br i1 %or.cond, label %69, label %62

.lr.ph:                                           ; preds = %.lr.ph.preheader, %52
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %52 ]
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  %42 = trunc nuw i64 %indvars.iv to i32
  %43 = mul i32 %24, %42
  %44 = zext i32 %43 to i64
  %45 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %44) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = trunc nuw i64 %indvars.iv.next to i32
  %47 = mul i32 %24, %46
  %48 = zext i32 %47 to i64
  %49 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %48) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorIhSaIhEEC2IPKhvEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull %45, ptr noundef nonnull %49, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %50 unwind label %54

50:                                               ; preds = %.lr.ph
  invoke void @_ZN3sfc4TileC1ERKSt6vectorIhSaIhEENS_4ModeEjbjj(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %6, i32 noundef 8, i32 noundef 8)
          to label %51 unwind label %56

51:                                               ; preds = %50
  invoke void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %52 unwind label %58

52:                                               ; preds = %51
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #6
  %53 = icmp ult i64 %indvars.iv.next, %39
  br i1 %53, label %.lr.ph, label %._crit_edge, !llvm.loop !25

54:                                               ; preds = %.lr.ph
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %61

56:                                               ; preds = %50
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %51
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #6
  br label %60

60:                                               ; preds = %58, %56
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %61

61:                                               ; preds = %60, %54
  %.pn.pn = phi { ptr, i32 } [ %.pn, %60 ], [ %55, %54 ]
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #6
  br label %68

62:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  %63 = load i32, ptr %13, align 4, !tbaa !22
  invoke void @_ZNK3sfc7Tileset21remap_tiles_for_inputERKSt6vectorINS_4TileESaIS2_EENS_4ModeE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.13") align 8 %11, ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef %63)
          to label %64 unwind label %66

64:                                               ; preds = %62
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3sfc4TileESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %69

66:                                               ; preds = %62
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %68

68:                                               ; preds = %61, %66, %33, %31
  %.pn34 = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ], [ %.pn.pn, %61 ], [ %67, %66 ]
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  resume { ptr, i32 } %.pn34

69:                                               ; preds = %64, %._crit_edge, %7
  ret void

70:                                               ; preds = %30
  unreachable
}

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

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

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

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

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

declare void @_ZN3sfc4TileC1ERKSt6vectorIhSaIhEENS_4ModeEjbjj(ptr, ptr, i32, i32, i1, i32, i32) local_unnamed_addr

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 16}
!9 = !{!"_ZTSN3sfc7TilesetE", !10, i64 0, !11, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !12, i64 20, !12, i64 21, !12, i64 22, !10, i64 24, !13, i64 32}
!10 = !{!"int", !6, i64 0}
!11 = !{!"_ZTSN3sfc4ModeE", !6, i64 0}
!12 = !{!"bool", !6, i64 0}
!13 = !{!"_ZTSSt6vectorIN3sfc4TileESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN3sfc4TileESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3sfc4TileESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN3sfc4TileESaIS1_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !6, i64 0}
!18 = !{!9, !12, i64 20}
!19 = !{!9, !12, i64 21}
!20 = !{!9, !12, i64 22}
!21 = !{!9, !10, i64 24}
!22 = !{!9, !11, i64 4}
!23 = !{!9, !10, i64 8}
!24 = !{!9, !10, i64 12}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass