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

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

%"class.std::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::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 }
%"struct.sfc::Tileset" = type { i32, i32, i32, i32, i32, i8, i8, i8, i32, %"class.std::vector.13" }

@_ZTISt13runtime_error = external constant ptr
@.str.5 = external hidden unnamed_addr constant [69 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: 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 #1

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3sfc7Tileset21remap_tiles_for_inputERKSt6vectorINS_4TileESaIS2_EENS_4ModeE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.13") align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i1, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.13", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.sfc::Tile", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %20 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %21 = load i32, ptr %8, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %31

23:                                               ; preds = %4
  %24 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 3
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = icmp eq i32 %25, 16
  br i1 %26, label %41, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 4
  %29 = load i32, ptr %28, align 8, !tbaa !19
  %30 = icmp eq i32 %29, 16
  br i1 %30, label %41, label %31

31:                                               ; preds = %27, %4
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 3
  br i1 %33, label %37, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 4
  br i1 %36, label %37, label %141

37:                                               ; preds = %34, %31
  %38 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 4
  %39 = load i32, ptr %38, align 8, !tbaa !19
  %40 = icmp eq i32 %39, 16
  br i1 %40, label %41, label %141

41:                                               ; preds = %37, %27, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %42 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 3
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = udiv i32 %43, 8
  store i32 %44, ptr %10, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %45 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 4
  %46 = load i32, ptr %45, align 8, !tbaa !19
  %47 = udiv i32 %46, 8
  store i32 %47, ptr %11, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !20
  br label %48

48:                                               ; preds = %136, %41
  %49 = load i32, ptr %12, align 4, !tbaa !20
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 9
  %52 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  %53 = icmp ult i64 %50, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %48
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %140

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !20
  br label %56

56:                                               ; preds = %106, %55
  %57 = load i32, ptr %15, align 4, !tbaa !20
  %58 = load i32, ptr %11, align 4, !tbaa !20
  %59 = icmp ult i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %109

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !20
  br label %62

62:                                               ; preds = %102, %61
  %63 = load i32, ptr %16, align 4, !tbaa !20
  %64 = load i32, ptr %10, align 4, !tbaa !20
  %65 = icmp ult i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %105

67:                                               ; preds = %62
  %68 = load i32, ptr %12, align 4, !tbaa !20
  %69 = load i32, ptr %15, align 4, !tbaa !20
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 1
  %72 = zext i1 %71 to i64
  %73 = select i1 %71, i32 16, i32 1
  %74 = mul i32 %69, %73
  %75 = add i32 %68, %74
  %76 = load i32, ptr %16, align 4, !tbaa !20
  %77 = add i32 %75, %76
  %78 = zext i32 %77 to i64
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #6
  %81 = icmp ult i64 %78, %80
  br i1 %81, label %82, label %101

82:                                               ; preds = %67
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = load i32, ptr %12, align 4, !tbaa !20
  %85 = load i32, ptr %15, align 4, !tbaa !20
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = icmp eq i32 %86, 1
  %88 = zext i1 %87 to i64
  %89 = select i1 %87, i32 16, i32 1
  %90 = mul i32 %85, %89
  %91 = add i32 %84, %90
  %92 = load i32, ptr %16, align 4, !tbaa !20
  %93 = add i32 %91, %92
  %94 = zext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN3sfc4TileESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %94) #6
  invoke void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(88) %95)
          to label %96 unwind label %97

96:                                               ; preds = %82
  br label %101

97:                                               ; preds = %82
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %17, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %139

101:                                              ; preds = %96, %67
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %16, align 4, !tbaa !20
  %104 = add i32 %103, 1
  store i32 %104, ptr %16, align 4, !tbaa !20
  br label %62, !llvm.loop !21

105:                                              ; preds = %66
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %15, align 4, !tbaa !20
  %108 = add i32 %107, 1
  store i32 %108, ptr %15, align 4, !tbaa !20
  br label %56, !llvm.loop !23

109:                                              ; preds = %60
  %110 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %111 = load i32, ptr %10, align 4, !tbaa !20
  %112 = load i32, ptr %11, align 4, !tbaa !20
  %113 = mul i32 %111, %112
  %114 = zext i32 %113 to i64
  %115 = icmp eq i64 %110, %114
  br i1 %115, label %116, label %135

116:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 88, ptr %19) #6
  %117 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 6
  %118 = load i8, ptr %117, align 1, !tbaa !24, !range !25, !noundef !26
  %119 = trunc i8 %118 to i1
  %120 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 3
  %121 = load i32, ptr %120, align 4, !tbaa !11
  %122 = getelementptr inbounds %"struct.sfc::Tileset", ptr %20, i32 0, i32 4
  %123 = load i32, ptr %122, align 8, !tbaa !19
  invoke void @_ZN3sfc4TileC1ERKSt6vectorIS0_SaIS0_EEbjj(ptr noundef nonnull align 8 dereferenceable(88) %19, ptr noundef nonnull align 8 dereferenceable(24) %14, i1 noundef zeroext %119, i32 noundef %121, i32 noundef %123)
          to label %124 unwind label %126

124:                                              ; preds = %116
  invoke void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(88) %19)
          to label %125 unwind label %130

125:                                              ; preds = %124
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %19) #6
  br label %135

126:                                              ; preds = %116
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %17, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %18, align 4
  br label %134

130:                                              ; preds = %124
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %17, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %18, align 4
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19) #6
  br label %134

134:                                              ; preds = %130, %126
  call void @llvm.lifetime.end.p0(i64 88, ptr %19) #6
  br label %139

135:                                              ; preds = %125, %109
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %12, align 4, !tbaa !20
  %138 = add i32 %137, 1
  store i32 %138, ptr %12, align 4, !tbaa !20
  br label %48, !llvm.loop !27

139:                                              ; preds = %134, %97
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %156

140:                                              ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %152

141:                                              ; preds = %37, %34
  %142 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %142, ptr noundef @.str.5)
          to label %143 unwind label %144

143:                                              ; preds = %141
  invoke void @__cxa_throw(ptr %142, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
          to label %162 unwind label %148

144:                                              ; preds = %141
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %17, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %18, align 4
  call void @__cxa_free_exception(ptr %142) #6
  br label %156

148:                                              ; preds = %143
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %17, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %18, align 4
  br label %156

152:                                              ; preds = %140
  store i1 true, ptr %9, align 1
  store i32 1, ptr %13, align 4
  %153 = load i1, ptr %9, align 1
  br i1 %153, label %155, label %154

154:                                              ; preds = %152
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %155

155:                                              ; preds = %154, %152
  ret void

156:                                              ; preds = %148, %144, %139
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %157

157:                                              ; preds = %156
  %158 = load ptr, ptr %17, align 8
  %159 = load i32, ptr %18, align 4
  %160 = insertvalue { ptr, i32 } poison, ptr %158, 0
  %161 = insertvalue { ptr, i32 } %160, i32 %159, 1
  resume { ptr, i32 } %161

162:                                              ; preds = %143
  unreachable
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #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, !13, i64 12}
!12 = !{!"_ZTSN3sfc7TilesetE", !13, i64 0, !10, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !14, i64 20, !14, i64 21, !14, i64 22, !13, i64 24, !15, i64 32}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN3sfc4TileESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN3sfc4TileESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3sfc4TileESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3sfc4TileESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!12, !13, i64 16}
!20 = !{!13, !13, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!12, !14, i64 21}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !22}


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

%"class.std::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::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 }

@_ZTISt13runtime_error = external constant ptr
@.str.5 = external hidden unnamed_addr constant [69 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 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 #1

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 #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN3sfc4TileESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 #3 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 #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3sfc7Tileset21remap_tiles_for_inputERKSt6vectorINS_4TileESaIS2_EENS_4ModeE(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.13") align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.13", align 8
  %6 = alloca %"struct.sfc::Tile", align 8
  tail call void @_ZNSt6vectorIN3sfc4TileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %7 = icmp eq i32 %3, 1
  br i1 %7, label %8, label %15

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %1, i64 12
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp eq i32 %10, 16
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = load i32, ptr %12, align 8
  %14 = icmp eq i32 %13, 16
  %or.cond41 = select i1 %11, i1 true, i1 %14
  br i1 %or.cond41, label %20, label %.thread

15:                                               ; preds = %4
  %16 = add i32 %3, -3
  %or.cond = icmp ult i32 %16, 2
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load i32, ptr %17, align 8
  %19 = icmp eq i32 %18, 16
  %or.cond44 = select i1 %or.cond, i1 %19, i1 false
  br i1 %or.cond44, label %._crit_edge70, label %.thread

._crit_edge70:                                    ; preds = %15
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 12
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %._crit_edge70, %8
  %21 = phi i32 [ 16, %._crit_edge70 ], [ %13, %8 ]
  %22 = phi i32 [ %.pre, %._crit_edge70 ], [ %10, %8 ]
  %23 = getelementptr inbounds i8, ptr %1, i64 12
  %.fr = freeze i32 %22
  %24 = lshr i32 %.fr, 3
  %25 = getelementptr inbounds i8, ptr %1, i64 16
  %.fr65 = freeze i32 %21
  %26 = lshr i32 %.fr65, 3
  %27 = getelementptr inbounds i8, ptr %1, i64 32
  %28 = tail call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %.not = icmp eq i64 %28, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %20
  %29 = icmp ugt i32 %.fr65, 7
  %30 = select i1 %7, i32 4, i32 0
  %31 = mul i32 %26, %24
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds i8, ptr %1, i64 21
  br i1 %29, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %34 = icmp ugt i32 %.fr, 7
  br i1 %34, label %.preheader.lr.ph.us.us.preheader, label %.preheader.lr.ph.us

.preheader.lr.ph.us.us.preheader:                 ; preds = %.lr.ph.split.us
  %wide.trip.count = zext nneg i32 %24 to i64
  br label %.preheader.lr.ph.us.us

.preheader.lr.ph.us.us:                           ; preds = %.preheader.lr.ph.us.us.preheader, %42
  %.03250.us.us = phi i32 [ %43, %42 ], [ 0, %.preheader.lr.ph.us.us.preheader ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %.preheader.us.us.us

35:                                               ; preds = %._crit_edge49.split.us.us.us
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #6
  %36 = load i8, ptr %33, align 1, !tbaa !17, !range !18, !noundef !19
  %37 = trunc nuw i8 %36 to i1
  %38 = load i32, ptr %23, align 4, !tbaa !5
  %39 = load i32, ptr %25, align 8, !tbaa !20
  invoke void @_ZN3sfc4TileC1ERKSt6vectorIS0_SaIS0_EEbjj(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext %37, i32 noundef %38, i32 noundef %39)
          to label %40 unwind label %.split.us56.split.us

40:                                               ; preds = %35
  invoke void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %41 unwind label %.split58.us.split.us

41:                                               ; preds = %40
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #6
  br label %42

42:                                               ; preds = %._crit_edge49.split.us.us.us, %41
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %43 = add i32 %.03250.us.us, 1
  %44 = zext i32 %43 to i64
  %45 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %46 = icmp ugt i64 %45, %44
  br i1 %46, label %.preheader.lr.ph.us.us, label %._crit_edge, !llvm.loop !21

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader.lr.ph.us.us
  %.03148.us.us.us = phi i32 [ 0, %.preheader.lr.ph.us.us ], [ %58, %._crit_edge.us.us.us ]
  %47 = shl i32 %.03148.us.us.us, %30
  %48 = add i32 %47, %.03250.us.us
  br label %49

49:                                               ; preds = %57, %.preheader.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %57 ], [ 0, %.preheader.us.us.us ]
  %50 = trunc nuw nsw i64 %indvars.iv to i32
  %51 = add i32 %48, %50
  %52 = zext i32 %51 to i64
  %53 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %54 = icmp ugt i64 %53, %52
  br i1 %54, label %55, label %57

55:                                               ; preds = %49
  %56 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN3sfc4TileESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %52) #6
  invoke void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(88) %56)
          to label %57 unwind label %.split.us.split.us.split.us

57:                                               ; preds = %55, %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us.us.us, label %49, !llvm.loop !23

._crit_edge.us.us.us:                             ; preds = %57
  %58 = add nuw nsw i32 %.03148.us.us.us, 1
  %exitcond69.not = icmp eq i32 %58, %26
  br i1 %exitcond69.not, label %._crit_edge49.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !24

._crit_edge49.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %59 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %60 = icmp eq i64 %59, %32
  br i1 %60, label %35, label %42

.split.us56.split.us:                             ; preds = %35
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us56

.split58.us.split.us:                             ; preds = %40
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %.split58.us

.split.us.split.us.split.us:                      ; preds = %55
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %96

.preheader.lr.ph.us:                              ; preds = %.lr.ph.split.us, %73
  %.03250.us = phi i32 [ %74, %73 ], [ 0, %.lr.ph.split.us ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %64 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %65 = icmp eq i64 %64, %32
  br i1 %65, label %66, label %73

66:                                               ; preds = %.preheader.lr.ph.us
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #6
  %67 = load i8, ptr %33, align 1, !tbaa !17, !range !18, !noundef !19
  %68 = trunc nuw i8 %67 to i1
  %69 = load i32, ptr %23, align 4, !tbaa !5
  %70 = load i32, ptr %25, align 8, !tbaa !20
  invoke void @_ZN3sfc4TileC1ERKSt6vectorIS0_SaIS0_EEbjj(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext %68, i32 noundef %69, i32 noundef %70)
          to label %71 unwind label %.split.us56.split

71:                                               ; preds = %66
  invoke void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %72 unwind label %.split58.us.split

72:                                               ; preds = %71
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #6
  br label %73

73:                                               ; preds = %72, %.preheader.lr.ph.us
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %74 = add i32 %.03250.us, 1
  %75 = zext i32 %74 to i64
  %76 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %77 = icmp ugt i64 %76, %75
  br i1 %77, label %.preheader.lr.ph.us, label %._crit_edge, !llvm.loop !21

.split.us56.split:                                ; preds = %66
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us56

.split58.us.split:                                ; preds = %71
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %.split58.us

.lr.ph.split:                                     ; preds = %.lr.ph, %91
  %.03250 = phi i32 [ %92, %91 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %80 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %81 = icmp eq i64 %80, %32
  br i1 %81, label %82, label %91

82:                                               ; preds = %.lr.ph.split
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #6
  %83 = load i8, ptr %33, align 1, !tbaa !17, !range !18, !noundef !19
  %84 = trunc nuw i8 %83 to i1
  %85 = load i32, ptr %23, align 4, !tbaa !5
  %86 = load i32, ptr %25, align 8, !tbaa !20
  invoke void @_ZN3sfc4TileC1ERKSt6vectorIS0_SaIS0_EEbjj(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext %84, i32 noundef %85, i32 noundef %86)
          to label %87 unwind label %.split

87:                                               ; preds = %82
  invoke void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %88 unwind label %.split58

88:                                               ; preds = %87
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #6
  br label %91

.split:                                           ; preds = %82
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us56

.split58:                                         ; preds = %87
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %.split58.us

.split58.us:                                      ; preds = %.split58.us.split, %.split58.us.split.us, %.split58
  %.us-phi59 = phi { ptr, i32 } [ %90, %.split58 ], [ %79, %.split58.us.split ], [ %62, %.split58.us.split.us ]
  call void @_ZN3sfc4TileD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #6
  br label %.split.us56

.split.us56:                                      ; preds = %.split, %.split.us56.split.us, %.split.us56.split, %.split58.us
  %.pn = phi { ptr, i32 } [ %.us-phi59, %.split58.us ], [ %89, %.split ], [ %78, %.split.us56.split ], [ %61, %.split.us56.split.us ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #6
  br label %96

91:                                               ; preds = %88, %.lr.ph.split
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %92 = add i32 %.03250, 1
  %93 = zext i32 %92 to i64
  %94 = call noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %95 = icmp ugt i64 %94, %93
  br i1 %95, label %.lr.ph.split, label %._crit_edge, !llvm.loop !21

96:                                               ; preds = %.split.us56, %.split.us.split.us.split.us
  %.pn36 = phi { ptr, i32 } [ %63, %.split.us.split.us.split.us ], [ %.pn, %.split.us56 ]
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %103

.thread:                                          ; preds = %8, %15
  %97 = tail call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %97, ptr noundef nonnull @.str.5)
          to label %98 unwind label %99

98:                                               ; preds = %.thread
  invoke void @__cxa_throw(ptr nonnull %97, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #7
          to label %104 unwind label %101

99:                                               ; preds = %.thread
  %100 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %97) #6
  br label %103

101:                                              ; preds = %98
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %103

._crit_edge:                                      ; preds = %91, %73, %42, %20
  ret void

103:                                              ; preds = %101, %99, %96
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %96 ], [ %102, %101 ], [ %100, %99 ]
  call void @_ZNSt6vectorIN3sfc4TileESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn36.pn

104:                                              ; preds = %98
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3sfc4TileESaIS1_EE9push_backERKS1_(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 noundef i64 @_ZNKSt6vectorIN3sfc4TileESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #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, !7, i64 12}
!6 = !{!"_ZTSN3sfc7TilesetE", !7, i64 0, !10, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !11, i64 20, !11, i64 21, !11, i64 22, !7, i64 24, !12, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3sfc4ModeE", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIN3sfc4TileESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN3sfc4TileESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3sfc4TileESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3sfc4TileESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!6, !11, i64 21}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!6, !7, i64 16}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass