; LLVM IR from Razakhel/RaZ :: src/RaZ/Data/TgaFormat.ll (ZN3Raz9TgaFormat4loadERKNS_8FilePathEb)

; 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.Raz::Image" = type { i32, i32, i32, i32, i8, %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.2 }
%union.anon.2 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.std::array" = type { [2 x i8] }
%"struct.std::array.4" = type { [5 x i8] }
%"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::allocator.5" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz9TgaFormat4loadERKNS_8FilePathEb(ptr dead_on_unwind noalias writable sret(%"class.Raz::Image") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i1 noundef zeroext %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::basic_ifstream", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i1, align 1
  %15 = alloca %"struct.std::array", align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::array.4", align 1
  %21 = alloca i16, align 2
  %22 = alloca i16, align 2
  %23 = alloca i16, align 2
  %24 = alloca i16, align 2
  %25 = alloca i8, align 1
  %26 = alloca i1, align 1
  %27 = alloca ptr, align 8
  %28 = alloca %"class.std::vector", align 8
  %29 = alloca %"class.std::allocator.5", align 1
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  %38 = zext i1 %2 to i8
  store i8 %38, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #9
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3RazplB5cxx11EPKcRKNS_8FilePathE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(32) %39)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.1)
          to label %40 unwind label %56

40:                                               ; preds = %3
  invoke void @_ZN3Raz6Logger5debugERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %41 unwind label %60

41:                                               ; preds = %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 520, ptr %11) #9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = call noundef ptr @_ZNK3Raz8FilePathcvPKcEv(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %11, ptr noundef %43, i32 noundef 4)
  %44 = load ptr, ptr %11, align 8, !tbaa !11
  %45 = getelementptr i8, ptr %44, i64 -24
  %46 = load i64, ptr %45, align 8
  %47 = getelementptr inbounds i8, ptr %11, i64 %46
  %48 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %47)
          to label %49 unwind label %65

49:                                               ; preds = %41
  br i1 %48, label %50, label %86

50:                                               ; preds = %49
  store i1 true, ptr %14, align 1
  %51 = call ptr @__cxa_allocate_exception(i64 16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #9
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3RazplB5cxx11EPKcRKNS_8FilePathE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef @.str.2, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %53 unwind label %69

53:                                               ; preds = %50
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.3)
          to label %54 unwind label %73

54:                                               ; preds = %53
  invoke void @_ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %55 unwind label %77

55:                                               ; preds = %54
  store i1 false, ptr %14, align 1
  invoke void @__cxa_throw(ptr %51, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #10
          to label %346 unwind label %77

56:                                               ; preds = %3
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  br label %64

60:                                               ; preds = %40
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  br label %64

64:                                               ; preds = %60, %56
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #9
  br label %341

65:                                               ; preds = %41
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %340

69:                                               ; preds = %50
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %82

73:                                               ; preds = %53
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  br label %81

77:                                               ; preds = %55, %54
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %81

81:                                               ; preds = %77, %73
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %82

82:                                               ; preds = %81, %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  %83 = load i1, ptr %14, align 1
  br i1 %83, label %84, label %85

84:                                               ; preds = %82
  call void @__cxa_free_exception(ptr %51) #9
  br label %85

85:                                               ; preds = %84, %82
  br label %340

86:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #9
  call void @llvm.memset.p0.i64(ptr align 1 %15, i8 0, i64 2, i1 false)
  %87 = call noundef ptr @_ZNSt5arrayIhLm2EE4dataEv(ptr noundef nonnull align 1 dereferenceable(2) %15) #11
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %87, i64 noundef 1)
          to label %89 unwind label %104

89:                                               ; preds = %86
  %90 = call noundef ptr @_ZNSt5arrayIhLm2EE4dataEv(ptr noundef nonnull align 1 dereferenceable(2) %15) #11
  %91 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %90, i64 noundef 1)
          to label %92 unwind label %104

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #9
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %15, i64 noundef 0) #9
  %94 = load i8, ptr %93, align 1, !tbaa !13
  %95 = zext i8 %94 to i32
  %96 = icmp eq i32 %95, 1
  %97 = zext i1 %96 to i8
  store i8 %97, ptr %16, align 1, !tbaa !9
  %98 = call noundef ptr @_ZNSt5arrayIhLm2EE4dataEv(ptr noundef nonnull align 1 dereferenceable(2) %15) #11
  %99 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %98, i64 noundef 1)
          to label %100 unwind label %108

100:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  store i8 0, ptr %17, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #9
  store i8 0, ptr %18, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !14
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %15, i64 noundef 0) #9
  %102 = load i8, ptr %101, align 1, !tbaa !13
  %103 = zext i8 %102 to i32
  switch i32 %103, label %127 [
    i32 0, label %112
    i32 9, label %123
    i32 10, label %123
    i32 1, label %124
    i32 2, label %124
    i32 11, label %125
    i32 3, label %126
  ]

104:                                              ; preds = %89, %86
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %9, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %10, align 4
  br label %339

108:                                              ; preds = %92
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %9, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %10, align 4
  br label %338

112:                                              ; preds = %100
  %113 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef @.str.4)
          to label %114 unwind label %115

114:                                              ; preds = %112
  invoke void @__cxa_throw(ptr %113, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %346 unwind label %119

115:                                              ; preds = %112
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %9, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %10, align 4
  call void @__cxa_free_exception(ptr %113) #9
  br label %337

119:                                              ; preds = %145, %129, %114
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %9, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %10, align 4
  br label %337

123:                                              ; preds = %100, %100
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %124

124:                                              ; preds = %123, %100, %100
  store i8 3, ptr %18, align 1, !tbaa !13
  store i32 2, ptr %19, align 4, !tbaa !14
  br label %134

125:                                              ; preds = %100
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %126

126:                                              ; preds = %125, %100
  store i8 1, ptr %18, align 1, !tbaa !13
  store i32 0, ptr %19, align 4, !tbaa !14
  br label %134

127:                                              ; preds = %100
  %128 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %128, ptr noundef @.str.5)
          to label %129 unwind label %130

129:                                              ; preds = %127
  invoke void @__cxa_throw(ptr %128, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %346 unwind label %119

130:                                              ; preds = %127
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %9, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %10, align 4
  call void @__cxa_free_exception(ptr %128) #9
  br label %337

134:                                              ; preds = %126, %124
  %135 = load i8, ptr %16, align 1, !tbaa !9, !range !16, !noundef !17
  %136 = trunc i8 %135 to i1
  br i1 %136, label %137, label %145

137:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 5, ptr %20) #9
  call void @llvm.memset.p0.i64(ptr align 1 %20, i8 0, i64 5, i1 false)
  %138 = call noundef ptr @_ZNSt5arrayIcLm5EE4dataEv(ptr noundef nonnull align 1 dereferenceable(5) %20) #11
  %139 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %138, i64 noundef 5)
          to label %140 unwind label %141

140:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 5, ptr %20) #9
  br label %148

141:                                              ; preds = %137
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %20) #9
  br label %337

145:                                              ; preds = %134
  %146 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEl(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef 5)
          to label %147 unwind label %119

147:                                              ; preds = %145
  br label %148

148:                                              ; preds = %147, %140
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #9
  store i16 0, ptr %21, align 2, !tbaa !18
  %149 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %21, i64 noundef 2)
          to label %150 unwind label %204

150:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #9
  store i16 0, ptr %22, align 2, !tbaa !18
  %151 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %22, i64 noundef 2)
          to label %152 unwind label %208

152:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #9
  store i16 0, ptr %23, align 2, !tbaa !18
  %153 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %23, i64 noundef 2)
          to label %154 unwind label %212

154:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #9
  store i16 0, ptr %24, align 2, !tbaa !18
  %155 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %24, i64 noundef 2)
          to label %156 unwind label %216

156:                                              ; preds = %154
  %157 = call noundef ptr @_ZNSt5arrayIhLm2EE4dataEv(ptr noundef nonnull align 1 dereferenceable(2) %15) #11
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %157, i64 noundef 1)
          to label %159 unwind label %216

159:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #9
  %160 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %15, i64 noundef 0) #9
  %161 = load i8, ptr %160, align 1, !tbaa !13
  %162 = zext i8 %161 to i32
  %163 = load i8, ptr %18, align 1, !tbaa !13
  %164 = zext i8 %163 to i32
  %165 = sdiv i32 %162, %164
  %166 = trunc i32 %165 to i8
  store i8 %166, ptr %25, align 1, !tbaa !13
  %167 = call noundef ptr @_ZNSt5arrayIhLm2EE4dataEv(ptr noundef nonnull align 1 dereferenceable(2) %15) #11
  %168 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %167, i64 noundef 1)
          to label %169 unwind label %220

169:                                              ; preds = %159
  store i1 false, ptr %26, align 1
  %170 = load i16, ptr %23, align 2, !tbaa !18
  %171 = zext i16 %170 to i32
  %172 = load i16, ptr %24, align 2, !tbaa !18
  %173 = zext i16 %172 to i32
  %174 = load i32, ptr %19, align 4, !tbaa !14
  invoke void @_ZN3Raz5ImageC1EjjNS_15ImageColorspaceENS_13ImageDataTypeE(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %171, i32 noundef %173, i32 noundef %174, i32 noundef 0)
          to label %175 unwind label %220

175:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %176 = call noundef ptr @_ZN3Raz5Image10getDataPtrEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  store ptr %176, ptr %27, align 8, !tbaa !5
  %177 = load i8, ptr %17, align 1, !tbaa !9, !range !16, !noundef !17
  %178 = trunc i8 %177 to i1
  br i1 %178, label %315, label %179

179:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #9
  %180 = load i16, ptr %23, align 2, !tbaa !18
  %181 = zext i16 %180 to i32
  %182 = load i16, ptr %24, align 2, !tbaa !18
  %183 = zext i16 %182 to i32
  %184 = mul nsw i32 %181, %183
  %185 = load i8, ptr %18, align 1, !tbaa !13
  %186 = zext i8 %185 to i32
  %187 = mul nsw i32 %184, %186
  %188 = sext i32 %187 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #9
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %188, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %189 unwind label %224

189:                                              ; preds = %179
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #9
  %190 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  %191 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  %192 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %190, i64 noundef %191)
          to label %193 unwind label %228

193:                                              ; preds = %189
  %194 = load i8, ptr %18, align 1, !tbaa !13
  %195 = zext i8 %194 to i32
  %196 = icmp eq i32 %195, 3
  br i1 %196, label %197, label %301

197:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  store i64 0, ptr %30, align 8, !tbaa !20
  br label %198

198:                                              ; preds = %297, %197
  %199 = load i64, ptr %30, align 8, !tbaa !20
  %200 = load i16, ptr %24, align 2, !tbaa !18
  %201 = zext i16 %200 to i64
  %202 = icmp ult i64 %199, %201
  br i1 %202, label %232, label %203

203:                                              ; preds = %198
  store i32 3, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %300

204:                                              ; preds = %148
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %9, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %10, align 4
  br label %336

208:                                              ; preds = %150
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %9, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %10, align 4
  br label %335

212:                                              ; preds = %152
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %9, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %10, align 4
  br label %334

216:                                              ; preds = %156, %154
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %9, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %10, align 4
  br label %333

220:                                              ; preds = %169, %159
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %9, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %10, align 4
  br label %332

224:                                              ; preds = %179
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %9, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #9
  br label %314

228:                                              ; preds = %301, %189
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %9, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %10, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  br label %314

232:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %233 = load i8, ptr %6, align 1, !tbaa !9, !range !16, !noundef !17
  %234 = trunc i8 %233 to i1
  br i1 %234, label %235, label %237

235:                                              ; preds = %232
  %236 = load i64, ptr %30, align 8, !tbaa !20
  br label %244

237:                                              ; preds = %232
  %238 = load i16, ptr %24, align 2, !tbaa !18
  %239 = zext i16 %238 to i32
  %240 = sub nsw i32 %239, 1
  %241 = sext i32 %240 to i64
  %242 = load i64, ptr %30, align 8, !tbaa !20
  %243 = sub i64 %241, %242
  br label %244

244:                                              ; preds = %237, %235
  %245 = phi i64 [ %236, %235 ], [ %243, %237 ]
  store i64 %245, ptr %32, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  store i64 0, ptr %33, align 8, !tbaa !20
  br label %246

246:                                              ; preds = %293, %244
  %247 = load i64, ptr %33, align 8, !tbaa !20
  %248 = load i16, ptr %23, align 2, !tbaa !18
  %249 = zext i16 %248 to i64
  %250 = icmp ult i64 %247, %249
  br i1 %250, label %252, label %251

251:                                              ; preds = %246
  store i32 6, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %296

252:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %253 = load i64, ptr %30, align 8, !tbaa !20
  %254 = load i16, ptr %23, align 2, !tbaa !18
  %255 = zext i16 %254 to i64
  %256 = mul i64 %253, %255
  %257 = load i64, ptr %33, align 8, !tbaa !20
  %258 = add i64 %256, %257
  %259 = load i8, ptr %18, align 1, !tbaa !13
  %260 = zext i8 %259 to i64
  %261 = mul i64 %258, %260
  store i64 %261, ptr %34, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %262 = load i64, ptr %32, align 8, !tbaa !20
  %263 = load i16, ptr %23, align 2, !tbaa !18
  %264 = zext i16 %263 to i64
  %265 = mul i64 %262, %264
  %266 = load i64, ptr %33, align 8, !tbaa !20
  %267 = add i64 %265, %266
  %268 = load i8, ptr %18, align 1, !tbaa !13
  %269 = zext i8 %268 to i64
  %270 = mul i64 %267, %269
  store i64 %270, ptr %35, align 8, !tbaa !20
  %271 = load i64, ptr %34, align 8, !tbaa !20
  %272 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %271) #9
  %273 = load i8, ptr %272, align 1, !tbaa !13
  %274 = load ptr, ptr %27, align 8, !tbaa !5
  %275 = load i64, ptr %35, align 8, !tbaa !20
  %276 = add i64 %275, 2
  %277 = getelementptr inbounds i8, ptr %274, i64 %276
  store i8 %273, ptr %277, align 1, !tbaa !13
  %278 = load i64, ptr %34, align 8, !tbaa !20
  %279 = add i64 %278, 1
  %280 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %279) #9
  %281 = load i8, ptr %280, align 1, !tbaa !13
  %282 = load ptr, ptr %27, align 8, !tbaa !5
  %283 = load i64, ptr %35, align 8, !tbaa !20
  %284 = add i64 %283, 1
  %285 = getelementptr inbounds i8, ptr %282, i64 %284
  store i8 %281, ptr %285, align 1, !tbaa !13
  %286 = load i64, ptr %34, align 8, !tbaa !20
  %287 = add i64 %286, 2
  %288 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %287) #9
  %289 = load i8, ptr %288, align 1, !tbaa !13
  %290 = load ptr, ptr %27, align 8, !tbaa !5
  %291 = load i64, ptr %35, align 8, !tbaa !20
  %292 = getelementptr inbounds i8, ptr %290, i64 %291
  store i8 %289, ptr %292, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %293

293:                                              ; preds = %252
  %294 = load i64, ptr %33, align 8, !tbaa !20
  %295 = add i64 %294, 1
  store i64 %295, ptr %33, align 8, !tbaa !20
  br label %246, !llvm.loop !22

296:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %297

297:                                              ; preds = %296
  %298 = load i64, ptr %30, align 8, !tbaa !20
  %299 = add i64 %298, 1
  store i64 %299, ptr %30, align 8, !tbaa !20
  br label %198, !llvm.loop !24

300:                                              ; preds = %203
  br label %313

301:                                              ; preds = %193
  %302 = call ptr @_ZNSt6vectorIhSaIhEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  %303 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %302, ptr %303, align 8
  %304 = call ptr @_ZNSt6vectorIhSaIhEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  %305 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %304, ptr %305, align 8
  %306 = load ptr, ptr %27, align 8, !tbaa !5
  %307 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  %308 = load ptr, ptr %307, align 8
  %309 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  %310 = load ptr, ptr %309, align 8
  %311 = invoke noundef ptr @_ZSt4moveIN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEES2_ET0_T_S8_S7_(ptr %308, ptr %310, ptr noundef %306)
          to label %312 unwind label %228

312:                                              ; preds = %301
  br label %313

313:                                              ; preds = %312, %300
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #9
  br label %326

314:                                              ; preds = %228, %224
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #9
  br label %329

315:                                              ; preds = %175
  %316 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %316, ptr noundef @.str.6)
          to label %317 unwind label %318

317:                                              ; preds = %315
  invoke void @__cxa_throw(ptr %316, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #10
          to label %346 unwind label %322

318:                                              ; preds = %315
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %9, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %10, align 4
  call void @__cxa_free_exception(ptr %316) #9
  br label %329

322:                                              ; preds = %326, %317
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %9, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %10, align 4
  br label %329

326:                                              ; preds = %313
  invoke void @_ZN3Raz6Logger5debugEPKc(ptr noundef @.str.7)
          to label %327 unwind label %322

327:                                              ; preds = %326
  store i1 true, ptr %26, align 1
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  %328 = load i1, ptr %26, align 1
  br i1 %328, label %331, label %330

329:                                              ; preds = %322, %318, %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @_ZN3Raz5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  br label %332

330:                                              ; preds = %327
  call void @_ZN3Raz5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  br label %331

331:                                              ; preds = %330, %327
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %11) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr %11) #9
  ret void

332:                                              ; preds = %329, %220
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #9
  br label %333

333:                                              ; preds = %332, %216
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #9
  br label %334

334:                                              ; preds = %333, %212
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #9
  br label %335

335:                                              ; preds = %334, %208
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #9
  br label %336

336:                                              ; preds = %335, %204
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #9
  br label %337

337:                                              ; preds = %336, %141, %130, %119, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  br label %338

338:                                              ; preds = %337, %108
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #9
  br label %339

339:                                              ; preds = %338, %104
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #9
  br label %340

340:                                              ; preds = %339, %85, %65
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %11) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr %11) #9
  br label %341

341:                                              ; preds = %340, %64
  %342 = load ptr, ptr %9, align 8
  %343 = load i32, ptr %10, align 4
  %344 = insertvalue { ptr, i32 } poison, ptr %342, 0
  %345 = insertvalue { ptr, i32 } %344, i32 %343, 1
  resume { ptr, i32 } %345

346:                                              ; preds = %317, %129, %114, %55
  unreachable
}

declare void @_ZN3Raz6Logger5debugERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN3RazplB5cxx11EPKcRKNS_8FilePathE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3Raz8FilePathcvPKcEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIhLm2EE4dataEv(ptr noundef nonnull align 1 dereferenceable(2)) #7 align 2

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

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

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm5EE4dataEv(ptr noundef nonnull align 1 dereferenceable(5)) #7 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1

declare void @_ZN3Raz5ImageC1EjjNS_15ImageColorspaceENS_13ImageDataTypeE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3Raz5Image10getDataPtrEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4moveIN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEES2_ET0_T_S8_S7_(ptr, ptr, ptr noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz6Logger5debugEPKc(ptr noundef) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { mustprogress nounwind willreturn memory(none) 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { nounwind 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, !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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTSN3Raz15ImageColorspaceE", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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.Raz::Image" = type { i32, i32, i32, i32, i8, %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.2 }
%union.anon.2 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.std::array" = type { [2 x i8] }
%"struct.std::array.4" = type { [5 x i8] }
%"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::allocator.5" = type { i8 }

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZTISt16invalid_argument = external constant ptr
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz9TgaFormat4loadERKNS_8FilePathEb(ptr dead_on_unwind noalias writable sret(%"class.Raz::Image") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i1 noundef zeroext %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::basic_ifstream", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"struct.std::array", align 2
  %10 = alloca %"struct.std::array.4", align 1
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %"class.std::allocator.5", align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @_ZN3RazplB5cxx11EPKcRKNS_8FilePathE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(32) %1)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.1)
          to label %17 unwind label %31

17:                                               ; preds = %3
  invoke void @_ZN3Raz6Logger5debugERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %18 unwind label %33

18:                                               ; preds = %17
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %6) #9
  %19 = call noundef ptr @_ZNK3Raz8FilePathcvPKcEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef %19, i32 noundef 4)
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %6, i64 %22
  %24 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %23)
          to label %25 unwind label %36

25:                                               ; preds = %18
  br i1 %24, label %26, label %43

26:                                               ; preds = %25
  %27 = call ptr @__cxa_allocate_exception(i64 16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  invoke void @_ZN3RazplB5cxx11EPKcRKNS_8FilePathE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull @.str.2, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %28 unwind label %.thread

28:                                               ; preds = %26
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.3)
          to label %29 unwind label %.thread84

29:                                               ; preds = %28
  invoke void @_ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %30 unwind label %40

30:                                               ; preds = %29
  invoke void @__cxa_throw(ptr nonnull %27, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #10
          to label %214 unwind label %40

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %17
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  br label %213

36:                                               ; preds = %18
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %212

.thread:                                          ; preds = %26
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %42

.thread84:                                        ; preds = %28
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %42

40:                                               ; preds = %29, %30
  %.051 = phi i1 [ false, %30 ], [ true, %29 ]
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br i1 %.051, label %42, label %212

42:                                               ; preds = %.thread84, %.thread, %40
  %.pn76.pn83 = phi { ptr, i32 } [ %38, %.thread ], [ %41, %40 ], [ %39, %.thread84 ]
  call void @__cxa_free_exception(ptr %27) #9
  br label %212

43:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %9) #9
  store i16 0, ptr %9, align 2
  %44 = call noundef ptr @_ZNSt5arrayIhLm2EE4dataEv(ptr noundef nonnull align 1 dereferenceable(2) %9) #11
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %44, i64 noundef 1)
          to label %46 unwind label %56

46:                                               ; preds = %43
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %44, i64 noundef 1)
          to label %48 unwind label %56

48:                                               ; preds = %46
  %49 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %9, i64 noundef 0) #9
  %50 = load i8, ptr %49, align 1, !tbaa !8
  %51 = icmp eq i8 %50, 1
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %44, i64 noundef 1)
          to label %53 unwind label %58

53:                                               ; preds = %48
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %9, i64 noundef 0) #9
  %55 = load i8, ptr %54, align 1, !tbaa !8
  switch i8 %55, label %69 [
    i8 0, label %60
    i8 9, label %66
    i8 10, label %66
    i8 1, label %74
    i8 2, label %74
    i8 11, label %67
    i8 3, label %68
  ]

56:                                               ; preds = %46, %43
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %211

58:                                               ; preds = %48
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %211

60:                                               ; preds = %53
  %61 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull @.str.4)
          to label %.invoke unwind label %62

62:                                               ; preds = %60
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %61) #9
  br label %211

64:                                               ; preds = %.invoke, %82
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %211

66:                                               ; preds = %53, %53
  br label %74

67:                                               ; preds = %53
  br label %74

68:                                               ; preds = %53
  br label %74

69:                                               ; preds = %53
  %70 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull @.str.5)
          to label %.invoke unwind label %72

.invoke:                                          ; preds = %60, %69
  %71 = phi ptr [ %70, %69 ], [ %61, %60 ]
  invoke void @__cxa_throw(ptr nonnull %71, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %.cont unwind label %64

.cont:                                            ; preds = %.invoke
  unreachable

72:                                               ; preds = %69
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %70) #9
  br label %211

74:                                               ; preds = %67, %53, %53, %66, %68
  %.060 = phi i32 [ 2, %66 ], [ 2, %53 ], [ 2, %53 ], [ 0, %67 ], [ 0, %68 ]
  %75 = phi i1 [ true, %66 ], [ true, %53 ], [ true, %53 ], [ false, %67 ], [ false, %68 ]
  %.058 = phi i64 [ 3, %66 ], [ 3, %53 ], [ 3, %53 ], [ 1, %67 ], [ 1, %68 ]
  %.256 = phi i1 [ true, %66 ], [ false, %53 ], [ false, %53 ], [ true, %67 ], [ false, %68 ]
  br i1 %51, label %76, label %82

76:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %10) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %10, i8 0, i64 5, i1 false)
  %77 = call noundef ptr @_ZNSt5arrayIcLm5EE4dataEv(ptr noundef nonnull align 1 dereferenceable(5) %10) #11
  %78 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %77, i64 noundef 5)
          to label %79 unwind label %80

79:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %10) #9
  br label %84

80:                                               ; preds = %76
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %10) #9
  br label %211

82:                                               ; preds = %74
  %83 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEl(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 5)
          to label %84 unwind label %64

84:                                               ; preds = %82, %79
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %11) #9
  store i16 0, ptr %11, align 2, !tbaa !10
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull %11, i64 noundef 2)
          to label %86 unwind label %146

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %12) #9
  store i16 0, ptr %12, align 2, !tbaa !10
  %87 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull %12, i64 noundef 2)
          to label %88 unwind label %148

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %13) #9
  store i16 0, ptr %13, align 2, !tbaa !10
  %89 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull %13, i64 noundef 2)
          to label %90 unwind label %150

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %14) #9
  store i16 0, ptr %14, align 2, !tbaa !10
  %91 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull %14, i64 noundef 2)
          to label %92 unwind label %152

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %44, i64 noundef 1)
          to label %94 unwind label %152

94:                                               ; preds = %92
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %9, i64 noundef 0) #9
  %96 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %44, i64 noundef 1)
          to label %97 unwind label %154

97:                                               ; preds = %94
  %98 = load i16, ptr %13, align 2, !tbaa !10
  %99 = zext i16 %98 to i32
  %100 = load i16, ptr %14, align 2, !tbaa !10
  %101 = zext i16 %100 to i32
  invoke void @_ZN3Raz5ImageC1EjjNS_15ImageColorspaceENS_13ImageDataTypeE(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %99, i32 noundef %101, i32 noundef %.060, i32 noundef 0)
          to label %102 unwind label %154

102:                                              ; preds = %97
  %103 = call noundef ptr @_ZN3Raz5Image10getDataPtrEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  br i1 %.256, label %198, label %104

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  %105 = load i16, ptr %13, align 2, !tbaa !10
  %106 = zext i16 %105 to i64
  %107 = load i16, ptr %14, align 2, !tbaa !10
  %108 = zext i16 %107 to i64
  %109 = mul nuw nsw i64 %.058, %106
  %110 = mul nuw nsw i64 %109, %108
  %111 = and i64 %110, 4294967295
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #9
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %111, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %112 unwind label %156

112:                                              ; preds = %104
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  %113 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %114 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %115 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %113, i64 noundef %114)
          to label %116 unwind label %158

116:                                              ; preds = %112
  br i1 %75, label %.preheader, label %193

.preheader:                                       ; preds = %116
  %117 = load i16, ptr %14, align 2, !tbaa !10
  %.not = icmp eq i16 %117, 0
  br i1 %.not, label %.loopexit, label %.lr.ph89

.lr.ph89:                                         ; preds = %.preheader
  br i1 %2, label %.lr.ph89.split.us.preheader, label %.lr.ph89.split.preheader

.lr.ph89.split.preheader:                         ; preds = %.lr.ph89
  %118 = zext i16 %117 to i64
  %.pre = load i16, ptr %13, align 2, !tbaa !10
  br label %.lr.ph89.split

.lr.ph89.split.us.preheader:                      ; preds = %.lr.ph89
  %.pre94 = load i16, ptr %13, align 2, !tbaa !10
  br label %.lr.ph89.split.us

.lr.ph89.split.us:                                ; preds = %.lr.ph89.split.us.preheader, %._crit_edge.us
  %119 = phi i16 [ %122, %._crit_edge.us ], [ %117, %.lr.ph89.split.us.preheader ]
  %120 = phi i16 [ %123, %._crit_edge.us ], [ %.pre94, %.lr.ph89.split.us.preheader ]
  %.05988.us = phi i64 [ %124, %._crit_edge.us ], [ 0, %.lr.ph89.split.us.preheader ]
  %.not91 = icmp eq i16 %120, 0
  br i1 %.not91, label %._crit_edge.us, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.lr.ph89.split.us
  %121 = zext i16 %120 to i64
  br label %.lr.ph.us

._crit_edge.us.loopexit:                          ; preds = %.lr.ph.us
  %.pre95 = load i16, ptr %14, align 2, !tbaa !10
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.loopexit, %.lr.ph89.split.us
  %122 = phi i16 [ %.pre95, %._crit_edge.us.loopexit ], [ %119, %.lr.ph89.split.us ]
  %123 = phi i16 [ %143, %._crit_edge.us.loopexit ], [ 0, %.lr.ph89.split.us ]
  %124 = add nuw nsw i64 %.05988.us, 1
  %125 = zext i16 %122 to i64
  %126 = icmp ult i64 %124, %125
  br i1 %126, label %.lr.ph89.split.us, label %.loopexit, !llvm.loop !12

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %127 = phi i64 [ %144, %.lr.ph.us ], [ %121, %.lr.ph.us.preheader ]
  %.05787.us = phi i64 [ %142, %.lr.ph.us ], [ 0, %.lr.ph.us.preheader ]
  %128 = mul nuw nsw i64 %127, %.05988.us
  %129 = add nuw nsw i64 %128, %.05787.us
  %130 = mul i64 %129, %.058
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %130) #9
  %132 = load i8, ptr %131, align 1, !tbaa !8
  %133 = getelementptr i8, ptr %103, i64 %130
  %134 = getelementptr i8, ptr %133, i64 2
  store i8 %132, ptr %134, align 1, !tbaa !8
  %135 = add nuw nsw i64 %130, 1
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %135) #9
  %137 = load i8, ptr %136, align 1, !tbaa !8
  %138 = getelementptr i8, ptr %133, i64 1
  store i8 %137, ptr %138, align 1, !tbaa !8
  %139 = add nuw nsw i64 %130, 2
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %139) #9
  %141 = load i8, ptr %140, align 1, !tbaa !8
  store i8 %141, ptr %133, align 1, !tbaa !8
  %142 = add nuw nsw i64 %.05787.us, 1
  %143 = load i16, ptr %13, align 2, !tbaa !10
  %144 = zext i16 %143 to i64
  %145 = icmp ult i64 %142, %144
  br i1 %145, label %.lr.ph.us, label %._crit_edge.us.loopexit, !llvm.loop !14

146:                                              ; preds = %84
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %210

148:                                              ; preds = %86
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %209

150:                                              ; preds = %88
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %208

152:                                              ; preds = %92, %90
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %207

154:                                              ; preds = %97, %94
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %207

156:                                              ; preds = %104
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  br label %197

158:                                              ; preds = %193, %112
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  br label %197

.lr.ph89.split:                                   ; preds = %.lr.ph89.split.preheader, %._crit_edge
  %160 = phi i16 [ %166, %._crit_edge ], [ %117, %.lr.ph89.split.preheader ]
  %161 = phi i16 [ %167, %._crit_edge ], [ %.pre, %.lr.ph89.split.preheader ]
  %162 = phi i64 [ %169, %._crit_edge ], [ %118, %.lr.ph89.split.preheader ]
  %.05988 = phi i64 [ %168, %._crit_edge ], [ 0, %.lr.ph89.split.preheader ]
  %163 = xor i64 %.05988, -1
  %164 = add nsw i64 %162, %163
  %.not90 = icmp eq i16 %161, 0
  br i1 %.not90, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph89.split
  %165 = zext i16 %161 to i64
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre93 = load i16, ptr %14, align 2, !tbaa !10
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph89.split
  %166 = phi i16 [ %.pre93, %._crit_edge.loopexit ], [ %160, %.lr.ph89.split ]
  %167 = phi i16 [ %190, %._crit_edge.loopexit ], [ 0, %.lr.ph89.split ]
  %168 = add nuw nsw i64 %.05988, 1
  %169 = zext i16 %166 to i64
  %170 = icmp ult i64 %168, %169
  br i1 %170, label %.lr.ph89.split, label %.loopexit, !llvm.loop !12

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %171 = phi i64 [ %191, %.lr.ph ], [ %165, %.lr.ph.preheader ]
  %.05787 = phi i64 [ %189, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %172 = mul nuw nsw i64 %171, %.05988
  %173 = add nuw nsw i64 %172, %.05787
  %174 = mul nuw nsw i64 %173, %.058
  %175 = mul i64 %171, %164
  %176 = add i64 %175, %.05787
  %177 = mul i64 %176, %.058
  %178 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %174) #9
  %179 = load i8, ptr %178, align 1, !tbaa !8
  %180 = getelementptr i8, ptr %103, i64 %177
  %181 = getelementptr i8, ptr %180, i64 2
  store i8 %179, ptr %181, align 1, !tbaa !8
  %182 = add nuw nsw i64 %174, 1
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %182) #9
  %184 = load i8, ptr %183, align 1, !tbaa !8
  %185 = getelementptr i8, ptr %180, i64 1
  store i8 %184, ptr %185, align 1, !tbaa !8
  %186 = add nuw nsw i64 %174, 2
  %187 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %186) #9
  %188 = load i8, ptr %187, align 1, !tbaa !8
  store i8 %188, ptr %180, align 1, !tbaa !8
  %189 = add nuw nsw i64 %.05787, 1
  %190 = load i16, ptr %13, align 2, !tbaa !10
  %191 = zext i16 %190 to i64
  %192 = icmp ult i64 %189, %191
  br i1 %192, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

193:                                              ; preds = %116
  %194 = call ptr @_ZNSt6vectorIhSaIhEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %195 = call ptr @_ZNSt6vectorIhSaIhEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %196 = invoke noundef ptr @_ZSt4moveIN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEES2_ET0_T_S8_S7_(ptr %194, ptr %195, ptr noundef %103)
          to label %.loopexit unwind label %158

.loopexit:                                        ; preds = %._crit_edge, %._crit_edge.us, %.preheader, %193
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  invoke void @_ZN3Raz6Logger5debugEPKc(ptr noundef nonnull @.str.7)
          to label %206 unwind label %203

197:                                              ; preds = %158, %156
  %.pn63 = phi { ptr, i32 } [ %159, %158 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %205

198:                                              ; preds = %102
  %199 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %199, ptr noundef nonnull @.str.6)
          to label %200 unwind label %201

200:                                              ; preds = %198
  invoke void @__cxa_throw(ptr nonnull %199, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %214 unwind label %203

201:                                              ; preds = %198
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %199) #9
  br label %205

203:                                              ; preds = %.loopexit, %200
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %205

205:                                              ; preds = %203, %201, %197
  %.pn65 = phi { ptr, i32 } [ %204, %203 ], [ %202, %201 ], [ %.pn63, %197 ]
  call void @_ZN3Raz5ImageD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  br label %207

206:                                              ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %9) #9
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %6) #9
  ret void

207:                                              ; preds = %154, %205, %152
  %.pn65.pn.pn = phi { ptr, i32 } [ %153, %152 ], [ %.pn65, %205 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %14) #9
  br label %208

208:                                              ; preds = %207, %150
  %.pn65.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn, %207 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #9
  br label %209

209:                                              ; preds = %208, %148
  %.pn65.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn, %208 ], [ %149, %148 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #9
  br label %210

210:                                              ; preds = %209, %146
  %.pn65.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn.pn, %209 ], [ %147, %146 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #9
  br label %211

211:                                              ; preds = %58, %210, %80, %72, %64, %62, %56
  %.pn72.pn.pn = phi { ptr, i32 } [ %57, %56 ], [ %59, %58 ], [ %65, %64 ], [ %73, %72 ], [ %.pn65.pn.pn.pn.pn.pn, %210 ], [ %81, %80 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %9) #9
  br label %212

212:                                              ; preds = %40, %42, %211, %36
  %.pn76.pn.pn = phi { ptr, i32 } [ %.pn76.pn83, %42 ], [ %41, %40 ], [ %.pn72.pn.pn, %211 ], [ %37, %36 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %6) #9
  br label %213

213:                                              ; preds = %212, %35
  %.pn76.pn.pn.pn = phi { ptr, i32 } [ %.pn76.pn.pn, %212 ], [ %.pn, %35 ]
  resume { ptr, i32 } %.pn76.pn.pn.pn

214:                                              ; preds = %200, %30
  unreachable
}

declare void @_ZN3Raz6Logger5debugERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN3RazplB5cxx11EPKcRKNS_8FilePathE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3Raz8FilePathcvPKcEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIhLm2EE4dataEv(ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #7 align 2

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

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm5EE4dataEv(ptr noundef nonnull align 1 dereferenceable(5)) local_unnamed_addr #7 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1

declare void @_ZN3Raz5ImageC1EjjNS_15ImageColorspaceENS_13ImageDataTypeE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3Raz5Image10getDataPtrEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4moveIN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEES2_ET0_T_S8_S7_(ptr, ptr, ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz6Logger5debugEPKc(ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { nounwind 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, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !9, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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