; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Descriptors (ImageIO)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.BitmapFileHeader_Struct = type { i16, i32, i16, i16, i32 }
%union.DibHeader_Union = type { %struct.BitmapInfoHeader_Struct }
%struct.BitmapInfoHeader_Struct = type { i32, i32, i32, i16, i16, i32, i32, i32, i32, i32, i32 }
%"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" }
%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 }
%union.anon = type { i32 }
%"class.std::shared_ptr.7" = type { %"class.std::__shared_ptr.8" }
%"class.std::__shared_ptr.8" = type { ptr, %"class.std::__shared_count" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4seekRSt14basic_ifstreamIcSt11char_traitsIcEEl(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef) #0

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp8bmp_loadERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.0") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.BitmapFileHeader_Struct, align 4
  %6 = alloca %union.DibHeader_Union, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::basic_ifstream", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i1, align 1
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::shared_ptr.7", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 520, ptr %8) #7
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %8, ptr noundef %21, i32 noundef 4)
  %22 = load ptr, ptr %8, align 8, !tbaa !9
  %23 = getelementptr i8, ptr %22, i64 -24
  %24 = load i64, ptr %23, align 8
  %25 = getelementptr inbounds i8, ptr %8, i64 %24
  %26 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %25)
          to label %27 unwind label %41

27:                                               ; preds = %2
  br i1 %26, label %28, label %45

28:                                               ; preds = %27
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %30 unwind label %41

30:                                               ; preds = %28
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %33 unwind label %41

33:                                               ; preds = %30
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef @.str.4)
          to label %35 unwind label %41

35:                                               ; preds = %33
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %38 unwind label %41

38:                                               ; preds = %35
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %40 unwind label %41

40:                                               ; preds = %38
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #7
  store i32 1, ptr %11, align 4
  br label %238

41:                                               ; preds = %96, %93, %91, %88, %86, %74, %72, %70, %67, %65, %62, %60, %57, %55, %50, %45, %38, %35, %33, %30, %28, %2
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %9, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %10, align 4
  br label %239

45:                                               ; preds = %27
  %46 = invoke noundef signext i8 @_Z4readIcET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %47 unwind label %41

47:                                               ; preds = %45
  %48 = sext i8 %46 to i32
  %49 = icmp ne i32 %48, 66
  br i1 %49, label %55, label %50

50:                                               ; preds = %47
  %51 = invoke noundef signext i8 @_Z4readIcET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %52 unwind label %41

52:                                               ; preds = %50
  %53 = sext i8 %51 to i32
  %54 = icmp ne i32 %53, 77
  br i1 %54, label %55, label %65

55:                                               ; preds = %52, %47
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
          to label %57 unwind label %41

57:                                               ; preds = %55
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(32) %58)
          to label %60 unwind label %41

60:                                               ; preds = %57
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @.str.5)
          to label %62 unwind label %41

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %64 unwind label %41

64:                                               ; preds = %62
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #7
  store i32 1, ptr %11, align 4
  br label %238

65:                                               ; preds = %52
  %66 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %67 unwind label %41

67:                                               ; preds = %65
  %68 = getelementptr inbounds %struct.BitmapFileHeader_Struct, ptr %5, i32 0, i32 1
  store i32 %66, ptr %68, align 4, !tbaa !11
  %69 = invoke noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %70 unwind label %41

70:                                               ; preds = %67
  %71 = invoke noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %72 unwind label %41

72:                                               ; preds = %70
  %73 = invoke noundef i32 @_Z4readIjET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %74 unwind label %41

74:                                               ; preds = %72
  %75 = getelementptr inbounds %struct.BitmapFileHeader_Struct, ptr %5, i32 0, i32 4
  store i32 %73, ptr %75, align 4, !tbaa !15
  %76 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %77 unwind label %41

77:                                               ; preds = %74
  store i32 %76, ptr %7, align 4, !tbaa !16
  %78 = load i32, ptr %7, align 4, !tbaa !16
  %79 = icmp ne i32 %78, 40
  br i1 %79, label %80, label %99

80:                                               ; preds = %77
  %81 = load i32, ptr %7, align 4, !tbaa !16
  %82 = icmp ne i32 %81, 108
  br i1 %82, label %83, label %99

83:                                               ; preds = %80
  %84 = load i32, ptr %7, align 4, !tbaa !16
  %85 = icmp ne i32 %84, 124
  br i1 %85, label %86, label %99

86:                                               ; preds = %83
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
          to label %88 unwind label %41

88:                                               ; preds = %86
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull align 8 dereferenceable(32) %89)
          to label %91 unwind label %41

91:                                               ; preds = %88
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef @.str.6)
          to label %93 unwind label %41

93:                                               ; preds = %91
  %94 = load i32, ptr %7, align 4, !tbaa !16
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %92, i32 noundef %94)
          to label %96 unwind label %41

96:                                               ; preds = %93
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %98 unwind label %41

98:                                               ; preds = %96
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #7
  store i32 1, ptr %11, align 4
  br label %238

99:                                               ; preds = %83, %80, %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr %6, ptr %12, align 8, !tbaa !5
  %100 = load i32, ptr %7, align 4, !tbaa !16
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %101, i32 0, i32 0
  store i32 %100, ptr %102, align 4, !tbaa !17
  %103 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %104 unwind label %160

104:                                              ; preds = %99
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %105, i32 0, i32 1
  store i32 %103, ptr %106, align 4, !tbaa !19
  %107 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %108 unwind label %160

108:                                              ; preds = %104
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %109, i32 0, i32 2
  store i32 %107, ptr %110, align 4, !tbaa !20
  %111 = invoke noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %112 unwind label %160

112:                                              ; preds = %108
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %113, i32 0, i32 3
  store i16 %111, ptr %114, align 4, !tbaa !21
  %115 = invoke noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %116 unwind label %160

116:                                              ; preds = %112
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %117, i32 0, i32 4
  store i16 %115, ptr %118, align 2, !tbaa !22
  %119 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %120 unwind label %160

120:                                              ; preds = %116
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %121, i32 0, i32 5
  store i32 %119, ptr %122, align 4, !tbaa !23
  %123 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %124 unwind label %160

124:                                              ; preds = %120
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %125, i32 0, i32 6
  store i32 %123, ptr %126, align 4, !tbaa !24
  %127 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %128 unwind label %160

128:                                              ; preds = %124
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %129, i32 0, i32 7
  store i32 %127, ptr %130, align 4, !tbaa !25
  %131 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %132 unwind label %160

132:                                              ; preds = %128
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %133, i32 0, i32 8
  store i32 %131, ptr %134, align 4, !tbaa !26
  %135 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %136 unwind label %160

136:                                              ; preds = %132
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %137, i32 0, i32 9
  store i32 %135, ptr %138, align 4, !tbaa !27
  %139 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %8)
          to label %140 unwind label %160

140:                                              ; preds = %136
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %141, i32 0, i32 10
  store i32 %139, ptr %142, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %143, i32 0, i32 4
  %145 = load i16, ptr %144, align 2, !tbaa !22
  %146 = zext i16 %145 to i32
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %147, i32 0, i32 1
  %149 = load i32, ptr %148, align 4, !tbaa !19
  %150 = mul nsw i32 %146, %149
  %151 = add nsw i32 %150, 31
  %152 = sdiv i32 %151, 32
  %153 = mul i32 %152, 4
  store i32 %153, ptr %13, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 3, ptr %14, align 4, !tbaa !16
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %154, i32 0, i32 4
  %156 = load i16, ptr %155, align 2, !tbaa !22
  %157 = zext i16 %156 to i32
  %158 = icmp eq i32 %157, 24
  br i1 %158, label %159, label %164

159:                                              ; preds = %140
  store i32 3, ptr %14, align 4, !tbaa !16
  br label %172

160:                                              ; preds = %136, %132, %128, %124, %120, %116, %112, %108, %104, %99
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  br label %237

164:                                              ; preds = %140
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %165, i32 0, i32 4
  %167 = load i16, ptr %166, align 2, !tbaa !22
  %168 = zext i16 %167 to i32
  %169 = icmp eq i32 %168, 32
  br i1 %169, label %170, label %171

170:                                              ; preds = %164
  store i32 4, ptr %14, align 4, !tbaa !16
  br label %171

171:                                              ; preds = %170, %164
  br label %172

172:                                              ; preds = %171, %159
  %173 = getelementptr inbounds %struct.BitmapFileHeader_Struct, ptr %5, i32 0, i32 4
  %174 = load i32, ptr %173, align 4, !tbaa !15
  %175 = zext i32 %174 to i64
  invoke void @_Z4seekRSt14basic_ifstreamIcSt11char_traitsIcEEl(ptr noundef nonnull align 8 dereferenceable(256) %8, i64 noundef %175)
          to label %176 unwind label %193

176:                                              ; preds = %172
  store i1 false, ptr %15, align 1
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %177, i32 0, i32 1
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %179, i32 0, i32 2
  invoke void @_ZN3imp5Image6createIJRiS2_S2_EEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.0") align 8 %0, ptr noundef nonnull align 4 dereferenceable(4) %178, ptr noundef nonnull align 4 dereferenceable(4) %180, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %181 unwind label %193

181:                                              ; preds = %176
  %182 = load i32, ptr %13, align 4, !tbaa !16
  %183 = zext i32 %182 to i64
  %184 = call ptr @llvm.stacksave.p0()
  store ptr %184, ptr %16, align 8
  %185 = alloca i8, i64 %183, align 16
  store i64 %183, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !16
  br label %186

186:                                              ; preds = %214, %181
  %187 = load i32, ptr %18, align 4, !tbaa !16
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.BitmapInfoHeader_Struct, ptr %188, i32 0, i32 2
  %190 = load i32, ptr %189, align 4, !tbaa !20
  %191 = icmp slt i32 %187, %190
  br i1 %191, label %197, label %192

192:                                              ; preds = %186
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %231

193:                                              ; preds = %176, %172
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  br label %236

197:                                              ; preds = %186
  %198 = load i32, ptr %13, align 4, !tbaa !16
  %199 = zext i32 %198 to i64
  %200 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %185, i64 noundef %199)
          to label %201 unwind label %217

201:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %202 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #7
  invoke void @_ZNK3imp5Image6asGridEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.7") align 8 %19, ptr noundef nonnull align 8 dereferenceable(88) %202)
          to label %203 unwind label %221

203:                                              ; preds = %201
  %204 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp4GridILi3EhEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  %205 = invoke noundef ptr @_ZN3imp4GridILi3EhE4dataEv(ptr noundef nonnull align 8 dereferenceable(128) %204)
          to label %206 unwind label %225

206:                                              ; preds = %203
  %207 = load i32, ptr %18, align 4, !tbaa !16
  %208 = load i32, ptr %13, align 4, !tbaa !16
  %209 = mul i32 %207, %208
  %210 = zext i32 %209 to i64
  %211 = getelementptr inbounds i8, ptr %205, i64 %210
  %212 = load i32, ptr %13, align 4, !tbaa !16
  %213 = zext i32 %212 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %211, ptr align 16 %185, i64 %213, i1 false)
  call void @_ZNSt12__shared_ptrIN3imp4GridILi3EhEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br label %214

214:                                              ; preds = %206
  %215 = load i32, ptr %18, align 4, !tbaa !16
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %18, align 4, !tbaa !16
  br label %186, !llvm.loop !29

217:                                              ; preds = %197
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %9, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %10, align 4
  br label %230

221:                                              ; preds = %201
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %9, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %10, align 4
  br label %229

225:                                              ; preds = %203
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %9, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3imp4GridILi3EhEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  br label %229

229:                                              ; preds = %225, %221
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br label %230

230:                                              ; preds = %229, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  br label %236

231:                                              ; preds = %192
  store i1 true, ptr %15, align 1
  store i32 1, ptr %11, align 4
  %232 = load ptr, ptr %16, align 8
  call void @llvm.stackrestore.p0(ptr %232)
  %233 = load i1, ptr %15, align 1
  br i1 %233, label %235, label %234

234:                                              ; preds = %231
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  br label %235

235:                                              ; preds = %234, %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %238

236:                                              ; preds = %230, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %237

237:                                              ; preds = %236, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %239

238:                                              ; preds = %235, %98, %64, %40
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  ret void

239:                                              ; preds = %237, %41
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  br label %240

240:                                              ; preds = %239
  %241 = load ptr, ptr %9, align 8
  %242 = load i32, ptr %10, align 4
  %243 = insertvalue { ptr, i32 } poison, ptr %241, 0
  %244 = insertvalue { ptr, i32 } %243, i32 %242, 1
  resume { ptr, i32 } %244
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #4 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 noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

declare void @_ZNK3imp5Image6asGridEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.7") align 8, ptr noundef nonnull align 8 dereferenceable(88)) #2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i8 @_Z4readIcET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256)) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256)) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256)) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4readIjET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256)) #0

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp5Image6createIJRiS2_S2_EEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.0") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !14, i64 4}
!12 = !{!"_ZTS23BitmapFileHeader_Struct", !13, i64 0, !14, i64 4, !13, i64 8, !13, i64 10, !14, i64 12}
!13 = !{!"short", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !14, i64 12}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !14, i64 0}
!18 = !{!"_ZTS23BitmapInfoHeader_Struct", !14, i64 0, !14, i64 4, !14, i64 8, !13, i64 12, !13, i64 14, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36}
!19 = !{!18, !14, i64 4}
!20 = !{!18, !14, i64 8}
!21 = !{!18, !13, i64 12}
!22 = !{!18, !13, i64 14}
!23 = !{!18, !14, i64 16}
!24 = !{!18, !14, i64 20}
!25 = !{!18, !14, i64 24}
!26 = !{!18, !14, i64 28}
!27 = !{!18, !14, i64 32}
!28 = !{!18, !14, i64 36}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%union.DibHeader_Union = type { %struct.BitmapInfoHeader_Struct }
%struct.BitmapInfoHeader_Struct = type { i32, i32, i32, i16, i16, i32, i32, i32, i32, i32, i32 }
%"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" }
%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 }
%union.anon = type { i32 }
%"class.std::shared_ptr.7" = type { %"class.std::__shared_ptr.8" }
%"class.std::__shared_ptr.8" = type { ptr, %"class.std::__shared_count" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4seekRSt14basic_ifstreamIcSt11char_traitsIcEEl(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef) local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp8bmp_loadERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.0") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %union.DibHeader_Union, align 4
  %4 = alloca %"class.std::basic_ifstream", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::shared_ptr.7", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %4) #7
  %7 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef %7, i32 noundef 4)
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr %4, i64 %10
  %12 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %11)
          to label %13 unwind label %25

13:                                               ; preds = %2
  br i1 %12, label %14, label %27

14:                                               ; preds = %13
  %15 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %16 unwind label %25

16:                                               ; preds = %14
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %18 unwind label %25

18:                                               ; preds = %16
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str.4)
          to label %20 unwind label %25

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %22 unwind label %25

22:                                               ; preds = %20
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %24 unwind label %25

24:                                               ; preds = %22
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #7
  br label %131

25:                                               ; preds = %61, %59, %57, %55, %53, %50, %48, %46, %44, %42, %39, %37, %35, %33, %30, %27, %22, %20, %18, %16, %14, %2
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %132

27:                                               ; preds = %13
  %28 = invoke noundef signext i8 @_Z4readIcET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %29 unwind label %25

29:                                               ; preds = %27
  %.not = icmp eq i8 %28, 66
  br i1 %.not, label %30, label %33

30:                                               ; preds = %29
  %31 = invoke noundef signext i8 @_Z4readIcET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %32 unwind label %25

32:                                               ; preds = %30
  %.not49 = icmp eq i8 %31, 77
  br i1 %.not49, label %42, label %33

33:                                               ; preds = %32, %29
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.3)
          to label %35 unwind label %25

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %37 unwind label %25

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @.str.5)
          to label %39 unwind label %25

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %41 unwind label %25

41:                                               ; preds = %39
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #7
  br label %131

42:                                               ; preds = %32
  %43 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %44 unwind label %25

44:                                               ; preds = %42
  %45 = invoke noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %46 unwind label %25

46:                                               ; preds = %44
  %47 = invoke noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %48 unwind label %25

48:                                               ; preds = %46
  %49 = invoke noundef i32 @_Z4readIjET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %50 unwind label %25

50:                                               ; preds = %48
  %51 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %52 unwind label %25

52:                                               ; preds = %50
  switch i32 %51, label %53 [
    i32 124, label %64
    i32 108, label %64
    i32 40, label %64
  ]

53:                                               ; preds = %52
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.3)
          to label %55 unwind label %25

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %57 unwind label %25

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str.6)
          to label %59 unwind label %25

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %58, i32 noundef %51)
          to label %61 unwind label %25

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %63 unwind label %25

63:                                               ; preds = %61
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #7
  br label %131

64:                                               ; preds = %52, %52, %52
  store i32 %51, ptr %3, align 4, !tbaa !8
  %65 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %66 unwind label %101

66:                                               ; preds = %64
  %67 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 %65, ptr %67, align 4, !tbaa !13
  %68 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %69 unwind label %101

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %68, ptr %70, align 4, !tbaa !14
  %71 = invoke noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %72 unwind label %101

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %3, i64 12
  store i16 %71, ptr %73, align 4, !tbaa !15
  %74 = invoke noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %75 unwind label %101

75:                                               ; preds = %72
  %76 = getelementptr inbounds i8, ptr %3, i64 14
  store i16 %74, ptr %76, align 2, !tbaa !16
  %77 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %78 unwind label %101

78:                                               ; preds = %75
  %79 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 %77, ptr %79, align 4, !tbaa !17
  %80 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %81 unwind label %101

81:                                               ; preds = %78
  %82 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 %80, ptr %82, align 4, !tbaa !18
  %83 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %84 unwind label %101

84:                                               ; preds = %81
  %85 = getelementptr inbounds i8, ptr %3, i64 24
  store i32 %83, ptr %85, align 4, !tbaa !19
  %86 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %87 unwind label %101

87:                                               ; preds = %84
  %88 = getelementptr inbounds i8, ptr %3, i64 28
  store i32 %86, ptr %88, align 4, !tbaa !20
  %89 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %90 unwind label %101

90:                                               ; preds = %87
  %91 = getelementptr inbounds i8, ptr %3, i64 32
  store i32 %89, ptr %91, align 4, !tbaa !21
  %92 = invoke noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256) %4)
          to label %93 unwind label %101

93:                                               ; preds = %90
  %94 = getelementptr inbounds i8, ptr %3, i64 36
  store i32 %92, ptr %94, align 4, !tbaa !22
  %95 = zext i16 %74 to i32
  %96 = mul nsw i32 %65, %95
  %97 = add nsw i32 %96, 31
  %98 = sdiv i32 %97, 32
  %99 = shl nsw i32 %98, 2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %cond = icmp eq i16 %74, 32
  %spec.store.select = select i1 %cond, i32 4, i32 3
  store i32 %spec.store.select, ptr %5, align 4
  %100 = zext i32 %49 to i64
  invoke void @_Z4seekRSt14basic_ifstreamIcSt11char_traitsIcEEl(ptr noundef nonnull align 8 dereferenceable(256) %4, i64 noundef %100)
          to label %103 unwind label %110

101:                                              ; preds = %90, %87, %84, %81, %78, %75, %72, %69, %66, %64
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %132

103:                                              ; preds = %93
  invoke void @_ZN3imp5Image6createIJRiS2_S2_EEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.0") align 8 %0, ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %104 unwind label %110

104:                                              ; preds = %103
  %105 = zext i32 %99 to i64
  %106 = call ptr @llvm.stacksave.p0()
  %107 = alloca i8, i64 %105, align 16
  %108 = load i32, ptr %70, align 4, !tbaa !14
  %109 = icmp sgt i32 %108, 0
  br i1 %109, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %115, %104
  call void @llvm.stackrestore.p0(ptr %106)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %131

110:                                              ; preds = %103, %93
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %130

.lr.ph:                                           ; preds = %104, %115
  %indvars.iv = phi i64 [ %indvars.iv.next, %115 ], [ 0, %104 ]
  %112 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %107, i64 noundef %105)
          to label %113 unwind label %125

113:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %114 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #7
  invoke void @_ZNK3imp5Image6asGridEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.7") align 8 %6, ptr noundef nonnull align 8 dereferenceable(88) %114)
          to label %115 unwind label %127

115:                                              ; preds = %113
  %116 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp4GridILi3EhEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  %117 = call noundef ptr @_ZN3imp4GridILi3EhE4dataEv(ptr noundef nonnull align 8 dereferenceable(128) %116)
  %118 = trunc nuw nsw i64 %indvars.iv to i32
  %119 = mul i32 %99, %118
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %117, i64 %120
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %121, ptr nonnull align 16 %107, i64 %105, i1 false)
  call void @_ZNSt12__shared_ptrIN3imp4GridILi3EhEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %122 = load i32, ptr %70, align 4, !tbaa !14
  %123 = sext i32 %122 to i64
  %124 = icmp slt i64 %indvars.iv.next, %123
  br i1 %124, label %.lr.ph, label %._crit_edge, !llvm.loop !23

125:                                              ; preds = %.lr.ph
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %113
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %129

129:                                              ; preds = %127, %125
  %.pn = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  br label %130

130:                                              ; preds = %129, %110
  %.pn.pn = phi { ptr, i32 } [ %.pn, %129 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %132

131:                                              ; preds = %._crit_edge, %63, %41, %24
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  ret void

132:                                              ; preds = %101, %130, %25
  %.pn53 = phi { ptr, i32 } [ %26, %25 ], [ %.pn.pn, %130 ], [ %102, %101 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn53
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 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 noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

declare void @_ZNK3imp5Image6asGridEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.7") align 8, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i8 @_Z4readIcET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4readIiET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef signext i16 @_Z4readIsET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4readIjET_RSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp5Image6createIJRiS2_S2_EEESt10shared_ptrIS0_EDpOT_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.0") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTS23BitmapInfoHeader_Struct", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 12, !12, i64 14, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"short", !11, i64 0}
!13 = !{!9, !10, i64 4}
!14 = !{!9, !10, i64 8}
!15 = !{!9, !12, i64 12}
!16 = !{!9, !12, i64 14}
!17 = !{!9, !10, i64 16}
!18 = !{!9, !10, i64 20}
!19 = !{!9, !10, i64 24}
!20 = !{!9, !10, i64 28}
!21 = !{!9, !10, i64 32}
!22 = !{!9, !10, i64 36}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass