; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmrle (rle)

; 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.rle::pixel_info" = type { i8, i8 }
%"class.rle::rle_encoder" = type { ptr }
%"struct.rle::rle_encoder::internal" = type { %"class.rle::image_info", %"struct.rle::header", ptr, [16 x i32], %"class.std::vector", %"class.std::vector" }
%"class.rle::image_info" = type { i32, i32, %"class.rle::pixel_info", i8, i8 }
%"struct.rle::header" = type { i32, [15 x i32] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [122 x i8], align 1
@__PRETTY_FUNCTION__._ZN3rle11rle_encoder12write_headerERNS_4destE = external hidden unnamed_addr constant [44 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; 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) #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3rle11rle_encoder12write_headerERNS_4destE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.rle::pixel_info", align 1
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca [16 x i32], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [16 x i32], align 16
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %25 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  store ptr %28, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %29 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %30, i32 0, i32 0
  %32 = call noundef i32 @_ZNK3rle10image_info9get_widthEv(ptr noundef nonnull align 4 dereferenceable(12) %31)
  store i32 %32, ptr %6, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %33 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %34, i32 0, i32 0
  %36 = call noundef i32 @_ZNK3rle10image_info10get_heightEv(ptr noundef nonnull align 4 dereferenceable(12) %35)
  store i32 %36, ptr %7, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #8
  %37 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %38, i32 0, i32 0
  %40 = call i16 @_ZNK3rle10image_info14get_pixel_infoEv(ptr noundef nonnull align 4 dereferenceable(12) %39)
  store i16 %40, ptr %8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %41 = call noundef i32 @_ZNK3rle10pixel_info20compute_num_segmentsEv(ptr noundef nonnull align 1 dereferenceable(2) %8)
  store i32 %41, ptr %9, align 4, !tbaa !22
  %42 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %43, i32 0, i32 4
  %45 = load i32, ptr %6, align 4, !tbaa !22
  %46 = load i32, ptr %9, align 4, !tbaa !22
  %47 = mul nsw i32 %45, %46
  %48 = sext i32 %47 to i64
  call void @_ZNSt6vectorIcSaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %48)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %49 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %50, i32 0, i32 4
  %52 = call noundef ptr @_ZNSt6vectorIcSaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #8
  store ptr %52, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %53 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %54, i32 0, i32 4
  %56 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #8
  store i64 %56, ptr %11, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %57 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %58, i32 0, i32 1
  store ptr %59, ptr %12, align 8, !tbaa !5
  %60 = load i32, ptr %9, align 4, !tbaa !22
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.rle::header", ptr %61, i32 0, i32 0
  store i32 %60, ptr %62, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !26
  %65 = getelementptr inbounds ptr, ptr %64, i64 1
  %66 = load ptr, ptr %65, align 8
  %67 = call noundef i32 %66(ptr noundef nonnull align 8 dereferenceable(8) %63)
  store i32 %67, ptr %13, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #8
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !22
  br label %68

68:                                               ; preds = %112, %2
  %69 = load i32, ptr %15, align 4, !tbaa !22
  %70 = load i32, ptr %7, align 4, !tbaa !22
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %115

73:                                               ; preds = %68
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load i64, ptr %11, align 8, !tbaa !23
  %77 = trunc i64 %76 to i32
  %78 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %79, i32 0, i32 0
  %81 = call noundef i32 @_ZN3rle6source18read_into_segmentsEPciRKNS_10image_infoE(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef %75, i32 noundef %77, ptr noundef nonnull align 4 dereferenceable(12) %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !22
  br label %82

82:                                               ; preds = %108, %73
  %83 = load i32, ptr %17, align 4, !tbaa !22
  %84 = load i32, ptr %9, align 4, !tbaa !22
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %111

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load i32, ptr %17, align 4, !tbaa !22
  %90 = load i32, ptr %6, align 4, !tbaa !22
  %91 = mul nsw i32 %89, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %88, i64 %92
  %94 = load i32, ptr %6, align 4, !tbaa !22
  %95 = call noundef i32 @_ZN3rle11rle_encoder25compute_compressed_lengthEPKci(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef %93, i32 noundef %94)
  store i32 %95, ptr %18, align 4, !tbaa !22
  %96 = load i32, ptr %18, align 4, !tbaa !22
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %87
  br label %101

99:                                               ; preds = %87
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 135, ptr noundef @__PRETTY_FUNCTION__._ZN3rle11rle_encoder12write_headerERNS_4destE) #9
  unreachable

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100, %98
  %102 = load i32, ptr %18, align 4, !tbaa !22
  %103 = load i32, ptr %17, align 4, !tbaa !22
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [16 x i32], ptr %14, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !22
  %107 = add i32 %106, %102
  store i32 %107, ptr %105, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %108

108:                                              ; preds = %101
  %109 = load i32, ptr %17, align 4, !tbaa !22
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %17, align 4, !tbaa !22
  br label %82, !llvm.loop !28

111:                                              ; preds = %86
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %15, align 4, !tbaa !22
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %15, align 4, !tbaa !22
  br label %68, !llvm.loop !30

115:                                              ; preds = %72
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.rle::header", ptr %116, i32 0, i32 1
  %118 = getelementptr inbounds [15 x i32], ptr %117, i64 0, i64 0
  store i32 64, ptr %118, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 1, ptr %19, align 4, !tbaa !22
  br label %119

119:                                              ; preds = %145, %115
  %120 = load i32, ptr %19, align 4, !tbaa !22
  %121 = load i32, ptr %9, align 4, !tbaa !22
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %148

124:                                              ; preds = %119
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.rle::header", ptr %125, i32 0, i32 1
  %127 = load i32, ptr %19, align 4, !tbaa !22
  %128 = sub nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [15 x i32], ptr %126, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !22
  %132 = load i32, ptr %19, align 4, !tbaa !22
  %133 = sub nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [16 x i32], ptr %14, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !22
  %137 = add i32 %131, %136
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.rle::header", ptr %138, i32 0, i32 1
  %140 = load i32, ptr %19, align 4, !tbaa !22
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [15 x i32], ptr %139, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !22
  %144 = add i32 %143, %137
  store i32 %144, ptr %142, align 4, !tbaa !22
  br label %145

145:                                              ; preds = %124
  %146 = load i32, ptr %19, align 4, !tbaa !22
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %19, align 4, !tbaa !22
  br label %119, !llvm.loop !31

148:                                              ; preds = %123
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = call noundef zeroext i1 @_ZN3rleL12check_headerERKNS_6headerERNS_10pixel_infoE(ptr noundef nonnull align 4 dereferenceable(64) %149, ptr noundef nonnull align 1 dereferenceable(2) %8)
  br i1 %150, label %151, label %152

151:                                              ; preds = %148
  br label %154

152:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 144, ptr noundef @__PRETTY_FUNCTION__._ZN3rle11rle_encoder12write_headerERNS_4destE) #9
  unreachable

153:                                              ; No predecessors!
  br label %154

154:                                              ; preds = %153, %151
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = load ptr, ptr %155, align 8, !tbaa !26
  %158 = getelementptr inbounds ptr, ptr %157, i64 0
  %159 = load ptr, ptr %158, align 8
  %160 = call noundef i32 %159(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef %156, i32 noundef 64)
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #8
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %161 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !9
  %163 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %162, i32 0, i32 1
  %164 = getelementptr inbounds %"struct.rle::header", ptr %163, i32 0, i32 1
  %165 = getelementptr inbounds [15 x i32], ptr %164, i64 0, i64 0
  store ptr %165, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !22
  br label %166

166:                                              ; preds = %180, %154
  %167 = load i32, ptr %22, align 4, !tbaa !22
  %168 = load i32, ptr %9, align 4, !tbaa !22
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %183

171:                                              ; preds = %166
  %172 = load ptr, ptr %21, align 8, !tbaa !5
  %173 = load i32, ptr %22, align 4, !tbaa !22
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %172, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !22
  %177 = load i32, ptr %22, align 4, !tbaa !22
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [16 x i32], ptr %20, i64 0, i64 %178
  store i32 %176, ptr %179, align 4, !tbaa !22
  br label %180

180:                                              ; preds = %171
  %181 = load i32, ptr %22, align 4, !tbaa !22
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %22, align 4, !tbaa !22
  br label %166, !llvm.loop !32

183:                                              ; preds = %170
  %184 = getelementptr inbounds %"class.rle::rle_encoder", ptr %24, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !9
  %186 = getelementptr inbounds %"struct.rle::rle_encoder::internal", ptr %185, i32 0, i32 3
  %187 = getelementptr inbounds [16 x i32], ptr %186, i64 0, i64 0
  %188 = getelementptr inbounds [16 x i32], ptr %20, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %187, ptr align 16 %188, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = load i32, ptr %13, align 4, !tbaa !22
  %191 = load ptr, ptr %189, align 8, !tbaa !26
  %192 = getelementptr inbounds ptr, ptr %191, i64 2
  %193 = load ptr, ptr %192, align 8
  %194 = call noundef zeroext i1 %193(ptr noundef nonnull align 8 dereferenceable(8) %189, i32 noundef %190)
  %195 = zext i1 %194 to i8
  store i8 %195, ptr %23, align 1, !tbaa !33
  %196 = load i8, ptr %23, align 1, !tbaa !33, !range !34, !noundef !35
  %197 = trunc i8 %196 to i1
  br i1 %197, label %198, label %199

198:                                              ; preds = %183
  br label %201

199:                                              ; preds = %183
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 156, ptr noundef @__PRETTY_FUNCTION__._ZN3rle11rle_encoder12write_headerERNS_4destE) #9
  unreachable

200:                                              ; No predecessors!
  br label %201

201:                                              ; preds = %200, %198
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret i1 true
}

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

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

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

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

declare noundef i32 @_ZNK3rle10pixel_info20compute_num_segmentsEv(ptr noundef nonnull align 1 dereferenceable(2)) #5

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

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

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

declare noundef i32 @_ZN3rle6source18read_into_segmentsEPciRKNS_10image_infoE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(12)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3rle11rle_encoder25compute_compressed_lengthEPKci(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) #2 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3rleL12check_headerERKNS_6headerERNS_10pixel_infoE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 1 dereferenceable(2)) #7

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { noreturn 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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, !6, i64 0}
!10 = !{!"_ZTSN3rle11rle_encoderE", !6, i64 0}
!11 = !{!12, !6, i64 80}
!12 = !{!"_ZTSN3rle11rle_encoder8internalE", !13, i64 0, !17, i64 12, !6, i64 80, !7, i64 88, !18, i64 152, !18, i64 176}
!13 = !{!"_ZTSN3rle10image_infoE", !14, i64 0, !14, i64 4, !15, i64 8, !16, i64 10, !16, i64 11}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN3rle10pixel_infoE", !7, i64 0, !7, i64 1}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN3rle6headerE", !14, i64 0, !7, i64 4}
!18 = !{!"_ZTSSt6vectorIcSaIcEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!14, !14, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!17, !14, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}
!33 = !{!16, !16, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}


; 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.rle::pixel_info" = type { i8, i8 }

@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [122 x i8], align 1
@__PRETTY_FUNCTION__._ZN3rle11rle_encoder12write_headerERNS_4destE = external hidden unnamed_addr constant [44 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; 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) #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3rle11rle_encoder12write_headerERNS_4destE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"class.rle::pixel_info", align 2
  %4 = alloca [16 x i32], align 16
  %5 = alloca [16 x i32], align 16
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 80
  %8 = load ptr, ptr %7, align 8, !tbaa !10
  %9 = tail call noundef i32 @_ZNK3rle10image_info9get_widthEv(ptr noundef nonnull align 4 dereferenceable(12) %6)
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = tail call noundef i32 @_ZNK3rle10image_info10get_heightEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %3) #8
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = tail call i16 @_ZNK3rle10image_info14get_pixel_infoEv(ptr noundef nonnull align 4 dereferenceable(12) %12)
  store i16 %13, ptr %3, align 2
  %14 = call noundef i32 @_ZNK3rle10pixel_info20compute_num_segmentsEv(ptr noundef nonnull align 1 dereferenceable(2) %3)
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 152
  %17 = mul nsw i32 %14, %9
  %18 = sext i32 %17 to i64
  call void @_ZNSt6vectorIcSaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %18)
  %19 = load ptr, ptr %0, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 152
  %21 = call noundef ptr @_ZNSt6vectorIcSaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %22 = load ptr, ptr %0, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 152
  %24 = call noundef i64 @_ZNKSt6vectorIcSaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %25 = load ptr, ptr %0, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 12
  store i32 %14, ptr %26, align 4, !tbaa !21
  %27 = load ptr, ptr %8, align 8, !tbaa !22
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load ptr, ptr %28, align 8
  %30 = call noundef i32 %29(ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %4, i8 0, i64 64, i1 false)
  %31 = icmp sgt i32 %11, 0
  br i1 %31, label %.lr.ph50, label %._crit_edge51

.lr.ph50:                                         ; preds = %2
  %32 = trunc i64 %24 to i32
  %33 = icmp sgt i32 %14, 0
  br i1 %33, label %.lr.ph.us.preheader, label %.lr.ph50.split

.lr.ph.us.preheader:                              ; preds = %.lr.ph50
  %34 = sext i32 %9 to i64
  %wide.trip.count = zext nneg i32 %14 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.048.us = phi i32 [ %46, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %35 = load ptr, ptr %0, align 8, !tbaa !5
  %36 = call noundef i32 @_ZN3rle6source18read_into_segmentsEPciRKNS_10image_infoE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %21, i32 noundef %32, ptr noundef nonnull align 4 dereferenceable(12) %35)
  br label %37

37:                                               ; preds = %.lr.ph.us, %42
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %42 ]
  %38 = mul nsw i64 %indvars.iv, %34
  %39 = getelementptr inbounds i8, ptr %21, i64 %38
  %40 = call noundef i32 @_ZN3rle11rle_encoder25compute_compressed_lengthEPKci(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %39, i32 noundef %9)
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %42, label %.split.us

42:                                               ; preds = %37
  %43 = getelementptr inbounds [16 x i32], ptr %4, i64 0, i64 %indvars.iv
  %44 = load i32, ptr %43, align 4, !tbaa !24
  %45 = add i32 %44, %40
  store i32 %45, ptr %43, align 4, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond59.not, label %._crit_edge.us, label %37, !llvm.loop !25

._crit_edge.us:                                   ; preds = %42
  %46 = add nuw nsw i32 %.048.us, 1
  %exitcond60.not = icmp eq i32 %46, %11
  br i1 %exitcond60.not, label %._crit_edge51, label %.lr.ph.us, !llvm.loop !27

._crit_edge51:                                    ; preds = %.lr.ph50.split, %._crit_edge.us, %2
  %47 = getelementptr inbounds i8, ptr %25, i64 16
  store i32 64, ptr %47, align 4, !tbaa !24
  %48 = icmp sgt i32 %14, 1
  br i1 %48, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %._crit_edge51
  %wide.trip.count64 = zext nneg i32 %14 to i64
  %49 = add nsw i64 %wide.trip.count64, -1
  %xtraiter = and i64 %49, 1
  %50 = icmp eq i32 %14, 2
  br i1 %50, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %49, -2
  br label %.lr.ph

.lr.ph50.split:                                   ; preds = %.lr.ph50, %.lr.ph50.split
  %.048 = phi i32 [ %53, %.lr.ph50.split ], [ 0, %.lr.ph50 ]
  %51 = load ptr, ptr %0, align 8, !tbaa !5
  %52 = call noundef i32 @_ZN3rle6source18read_into_segmentsEPciRKNS_10image_infoE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %21, i32 noundef %32, ptr noundef nonnull align 4 dereferenceable(12) %51)
  %53 = add nuw nsw i32 %.048, 1
  %exitcond.not = icmp eq i32 %53, %11
  br i1 %exitcond.not, label %._crit_edge51, label %.lr.ph50.split, !llvm.loop !27

.split.us:                                        ; preds = %37
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 135, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3rle11rle_encoder12write_headerERNS_4destE) #9
  unreachable

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.unr = phi i32 [ 64, %.lr.ph.preheader ], [ %75, %.lr.ph ]
  %indvars.iv61.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next62.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %54 = add nsw i64 %indvars.iv61.unr, -1
  %55 = getelementptr inbounds [16 x i32], ptr %4, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !24
  %57 = add i32 %56, %.unr
  %58 = getelementptr inbounds [15 x i32], ptr %47, i64 0, i64 %indvars.iv61.unr
  %59 = load i32, ptr %58, align 4, !tbaa !24
  %60 = add i32 %57, %59
  store i32 %60, ptr %58, align 4, !tbaa !24
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %._crit_edge51
  %61 = call noundef zeroext i1 @_ZN3rleL12check_headerERKNS_6headerERNS_10pixel_infoE(ptr noundef nonnull align 4 dereferenceable(64) %26, ptr noundef nonnull align 1 dereferenceable(2) %3)
  br i1 %61, label %77, label %76

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %62 = phi i32 [ 64, %.lr.ph.preheader.new ], [ %75, %.lr.ph ]
  %indvars.iv61 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next62.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %63 = add nsw i64 %indvars.iv61, -1
  %64 = getelementptr inbounds [16 x i32], ptr %4, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !24
  %66 = add i32 %65, %62
  %67 = getelementptr inbounds [15 x i32], ptr %47, i64 0, i64 %indvars.iv61
  %68 = load i32, ptr %67, align 4, !tbaa !24
  %69 = add i32 %66, %68
  store i32 %69, ptr %67, align 4, !tbaa !24
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %70 = getelementptr inbounds [16 x i32], ptr %4, i64 0, i64 %indvars.iv61
  %71 = load i32, ptr %70, align 4, !tbaa !24
  %72 = add i32 %71, %69
  %73 = getelementptr inbounds [15 x i32], ptr %47, i64 0, i64 %indvars.iv.next62
  %74 = load i32, ptr %73, align 4, !tbaa !24
  %75 = add i32 %72, %74
  store i32 %75, ptr %73, align 4, !tbaa !24
  %indvars.iv.next62.1 = add nuw nsw i64 %indvars.iv61, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !28

76:                                               ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 144, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3rle11rle_encoder12write_headerERNS_4destE) #9
  unreachable

77:                                               ; preds = %._crit_edge
  %78 = load ptr, ptr %1, align 8, !tbaa !22
  %79 = load ptr, ptr %78, align 8
  %80 = call noundef i32 %79(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %26, i32 noundef 64)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  %81 = load ptr, ptr %0, align 8, !tbaa !5
  %82 = icmp sgt i32 %14, 0
  br i1 %82, label %.lr.ph55.preheader, label %._crit_edge56

.lr.ph55.preheader:                               ; preds = %77
  %83 = getelementptr i8, ptr %81, i64 16
  %84 = zext nneg i32 %14 to i64
  %85 = shl nuw nsw i64 %84, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %5, ptr align 4 %83, i64 %85, i1 false), !tbaa !24
  br label %._crit_edge56

._crit_edge56:                                    ; preds = %.lr.ph55.preheader, %77
  %86 = getelementptr inbounds i8, ptr %81, i64 88
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %86, ptr noundef nonnull align 16 dereferenceable(64) %5, i64 64, i1 false)
  %87 = load ptr, ptr %8, align 8, !tbaa !22
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %89 = load ptr, ptr %88, align 8
  %90 = call noundef zeroext i1 %89(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %30)
  br i1 %90, label %92, label %91

91:                                               ; preds = %._crit_edge56
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 156, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3rle11rle_encoder12write_headerERNS_4destE) #9
  unreachable

92:                                               ; preds = %._crit_edge56
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %3) #8
  ret i1 true
}

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

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

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

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

declare noundef i32 @_ZNK3rle10pixel_info20compute_num_segmentsEv(ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #5

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

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

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

declare noundef i32 @_ZN3rle6source18read_into_segmentsEPciRKNS_10image_infoE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3rleL12check_headerERKNS_6headerERNS_10pixel_infoE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { noreturn 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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, !7, i64 0}
!6 = !{!"_ZTSN3rle11rle_encoderE", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 80}
!11 = !{!"_ZTSN3rle11rle_encoder8internalE", !12, i64 0, !16, i64 12, !7, i64 80, !8, i64 88, !17, i64 152, !17, i64 176}
!12 = !{!"_ZTSN3rle10image_infoE", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 10, !15, i64 11}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTSN3rle10pixel_infoE", !8, i64 0, !8, i64 1}
!15 = !{!"bool", !8, i64 0}
!16 = !{!"_ZTSN3rle6headerE", !13, i64 0, !8, i64 4}
!17 = !{!"_ZTSSt6vectorIcSaIcEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!21 = !{!16, !13, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !9, i64 0}
!24 = !{!13, !13, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass