; LLVM IR from balintbalazs/B3D :: source/src/examples (direct_example+benchmark)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.3 }
%union.anon.3 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl" }
%"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl" = type { %"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.6" = type { i8 }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.11" = type { i8 }
%struct.cudaPos = type { i64, i64, i64 }

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@__const.main.shapes = external hidden unnamed_addr constant [1 x [3 x i64]], align 16
@__const.main.chunkshapes = external hidden unnamed_addr constant [1 x [3 x i64]], align 16
@__const.main.filters = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.quant_steps = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.tiles = external hidden unnamed_addr constant [3 x i32], align 4
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [37 x i8], align 1
@stdout = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16cutilDeviceInitSi(i32 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare i32 @printf(ptr noundef, ...) #3

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca [1 x %"class.std::__cxx11::basic_string"], align 16
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::allocator.0", align 1
  %16 = alloca i1, align 1
  %17 = alloca [1 x [3 x i64]], align 16
  %18 = alloca [1 x [3 x i64]], align 16
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca [3 x i32], align 4
  %22 = alloca [3 x i32], align 4
  %23 = alloca [3 x i32], align 4
  %24 = alloca [3 x i32], align 4
  %25 = alloca [3 x %"class.std::__cxx11::basic_string"], align 16
  %26 = alloca ptr, align 8
  %27 = alloca %"class.std::allocator.0", align 1
  %28 = alloca %"class.std::allocator.0", align 1
  %29 = alloca %"class.std::allocator.0", align 1
  %30 = alloca i1, align 1
  %31 = alloca %"class.std::basic_ofstream", align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca i64, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i8, align 1
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca %"class.std::vector.4", align 8
  %55 = alloca %"class.std::allocator.6", align 1
  %56 = alloca %"class.std::basic_ifstream", align 8
  %57 = alloca %"class.std::__cxx11::basic_string", align 8
  %58 = alloca %"class.std::__cxx11::basic_string", align 8
  %59 = alloca i64, align 8
  %60 = alloca float, align 4
  %61 = alloca ptr, align 8
  %62 = alloca ptr, align 8
  %63 = alloca ptr, align 8
  %64 = alloca float, align 4
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca i32, align 4
  %68 = alloca %"class.std::vector.9", align 8
  %69 = alloca %"class.std::allocator.11", align 1
  %70 = alloca %struct.cudaPos, align 8
  %71 = alloca i64, align 8
  %72 = alloca i64, align 8
  %73 = alloca i32, align 4
  %74 = alloca i64, align 8
  %75 = alloca float, align 4
  %76 = alloca %"class.std::basic_ofstream", align 8
  %77 = alloca %"class.std::vector.4", align 8
  %78 = alloca %"class.std::allocator.6", align 1
  %79 = alloca i64, align 8
  %80 = alloca i64, align 8
  %81 = alloca double, align 8
  %82 = alloca %"class.std::__cxx11::basic_string", align 8
  %83 = alloca %"class.std::__cxx11::basic_string", align 8
  %84 = alloca %"class.std::__cxx11::basic_string", align 8
  %85 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #10
  store i32 0, ptr %2, align 4, !tbaa !5
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = call noundef i32 @_Z16cutilDeviceInitSi(i32 noundef %86)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %88 = call i32 @cudaEventCreate(ptr noundef %3)
  %89 = call i32 @cudaEventCreate(ptr noundef %4)
  %90 = load ptr, ptr %3, align 8, !tbaa !9
  %91 = call i32 @cudaEventRecord(ptr noundef %90, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  store ptr null, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  store i32 1, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %92 unwind label %106

92:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #10
  store i1 true, ptr %16, align 1
  store ptr %13, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %93 unwind label %110

93:                                               ; preds = %92
  store i1 false, ptr %16, align 1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.shapes, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.main.chunkshapes, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  store float 1.562500e+00, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  store i32 1, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 @__const.main.filters, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 @__const.main.quant_steps, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #10
  call void @llvm.memset.p0.i64(ptr align 4 %23, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 @__const.main.tiles, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr %25) #10
  store i1 true, ptr %30, align 1
  store ptr %25, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %94 unwind label %124

94:                                               ; preds = %93
  %95 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %25, i64 1
  store ptr %95, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %95, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %96 unwind label %128

96:                                               ; preds = %94
  %97 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %25, i64 2
  store ptr %97, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %97, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %98 unwind label %132

98:                                               ; preds = %96
  store i1 false, ptr %30, align 1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 512, ptr %31) #10
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %31, ptr noundef @.str.13, i32 noundef 16)
          to label %99 unwind label %148

99:                                               ; preds = %98
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.14)
          to label %101 unwind label %152

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  store i64 0, ptr %32, align 8, !tbaa !13
  br label %102

102:                                              ; preds = %163, %101
  %103 = load i64, ptr %32, align 8, !tbaa !13
  %104 = icmp ult i64 %103, 3
  br i1 %104, label %156, label %105

105:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %170

106:                                              ; preds = %0
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %11, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #10
  br label %990

110:                                              ; preds = %92
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %11, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #10
  %114 = load i1, ptr %16, align 1
  br i1 %114, label %115, label %123

115:                                              ; preds = %110
  %116 = load ptr, ptr %14, align 8
  %117 = icmp eq ptr %13, %116
  br i1 %117, label %122, label %118

118:                                              ; preds = %118, %115
  %119 = phi ptr [ %116, %115 ], [ %120, %118 ]
  %120 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %119, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %120) #10
  %121 = icmp eq ptr %120, %13
  br i1 %121, label %122, label %118

122:                                              ; preds = %118, %115
  br label %123

123:                                              ; preds = %122, %110
  br label %989

124:                                              ; preds = %93
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %11, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %12, align 4
  br label %137

128:                                              ; preds = %94
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %11, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %12, align 4
  br label %136

132:                                              ; preds = %96
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %11, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #10
  br label %136

136:                                              ; preds = %132, %128
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  br label %137

137:                                              ; preds = %136, %124
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #10
  %138 = load i1, ptr %30, align 1
  br i1 %138, label %139, label %147

139:                                              ; preds = %137
  %140 = load ptr, ptr %26, align 8
  %141 = icmp eq ptr %25, %140
  br i1 %141, label %146, label %142

142:                                              ; preds = %142, %139
  %143 = phi ptr [ %140, %139 ], [ %144, %142 ]
  %144 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %143, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %144) #10
  %145 = icmp eq ptr %144, %25
  br i1 %145, label %146, label %142

146:                                              ; preds = %142, %139
  br label %147

147:                                              ; preds = %146, %137
  br label %975

148:                                              ; preds = %98
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %11, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %12, align 4
  br label %960

152:                                              ; preds = %189, %172, %170, %99
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %11, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %12, align 4
  br label %959

156:                                              ; preds = %102
  %157 = load i64, ptr %32, align 8, !tbaa !13
  %158 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %25, i64 0, i64 %157
  %159 = 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) %31, ptr noundef nonnull align 8 dereferenceable(32) %158)
          to label %160 unwind label %166

160:                                              ; preds = %156
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef @.str.15)
          to label %162 unwind label %166

162:                                              ; preds = %160
  br label %163

163:                                              ; preds = %162
  %164 = load i64, ptr %32, align 8, !tbaa !13
  %165 = add i64 %164, 1
  store i64 %165, ptr %32, align 8, !tbaa !13
  br label %102, !llvm.loop !15

166:                                              ; preds = %160, %156
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %11, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %959

170:                                              ; preds = %105
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.1)
          to label %172 unwind label %152

172:                                              ; preds = %170
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.16)
          to label %174 unwind label %152

174:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  store i64 0, ptr %33, align 8, !tbaa !13
  br label %175

175:                                              ; preds = %182, %174
  %176 = load i64, ptr %33, align 8, !tbaa !13
  %177 = icmp ult i64 %176, 3
  br i1 %177, label %179, label %178

178:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %189

179:                                              ; preds = %175
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.17)
          to label %181 unwind label %185

181:                                              ; preds = %179
  br label %182

182:                                              ; preds = %181
  %183 = load i64, ptr %33, align 8, !tbaa !13
  %184 = add i64 %183, 1
  store i64 %184, ptr %33, align 8, !tbaa !13
  br label %175, !llvm.loop !17

185:                                              ; preds = %179
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %11, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %959

189:                                              ; preds = %178
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.1)
          to label %191 unwind label %152

191:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  store float 0.000000e+00, ptr %34, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  store i64 0, ptr %38, align 8, !tbaa !13
  br label %192

192:                                              ; preds = %930, %191
  %193 = load i64, ptr %38, align 8, !tbaa !13
  %194 = load i32, ptr %20, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = icmp ult i64 %193, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %192
  store i32 8, ptr %39, align 4
  br label %936

198:                                              ; preds = %192
  %199 = load ptr, ptr @stdout, align 8, !tbaa !9
  %200 = load i64, ptr %38, align 8, !tbaa !13
  %201 = getelementptr inbounds [1 x %"class.std::__cxx11::basic_string"], ptr %13, i64 0, i64 %200
  %202 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %201) #10
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.18, ptr noundef %202) #10
  %204 = load i64, ptr %38, align 8, !tbaa !13
  %205 = getelementptr inbounds [1 x %"class.std::__cxx11::basic_string"], ptr %13, i64 0, i64 %204
  %206 = 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) %31, ptr noundef nonnull align 8 dereferenceable(32) %205)
          to label %207 unwind label %284

207:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  %208 = load i64, ptr %38, align 8, !tbaa !13
  %209 = getelementptr inbounds [1 x [3 x i64]], ptr %17, i64 0, i64 %208
  %210 = getelementptr inbounds [3 x i64], ptr %209, i64 0, i64 2
  %211 = load i64, ptr %210, align 8, !tbaa !13
  %212 = trunc i64 %211 to i32
  store i32 %212, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  %213 = load i64, ptr %38, align 8, !tbaa !13
  %214 = getelementptr inbounds [1 x [3 x i64]], ptr %17, i64 0, i64 %213
  %215 = getelementptr inbounds [3 x i64], ptr %214, i64 0, i64 1
  %216 = load i64, ptr %215, align 8, !tbaa !13
  %217 = trunc i64 %216 to i32
  store i32 %217, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  %218 = load i64, ptr %38, align 8, !tbaa !13
  %219 = getelementptr inbounds [1 x [3 x i64]], ptr %17, i64 0, i64 %218
  %220 = getelementptr inbounds [3 x i64], ptr %219, i64 0, i64 0
  %221 = load i64, ptr %220, align 8, !tbaa !13
  %222 = trunc i64 %221 to i32
  store i32 %222, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  %223 = load i64, ptr %38, align 8, !tbaa !13
  %224 = getelementptr inbounds [1 x [3 x i64]], ptr %18, i64 0, i64 %223
  %225 = getelementptr inbounds [3 x i64], ptr %224, i64 0, i64 2
  %226 = load i64, ptr %225, align 8, !tbaa !13
  %227 = trunc i64 %226 to i32
  store i32 %227, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #10
  %228 = load i64, ptr %38, align 8, !tbaa !13
  %229 = getelementptr inbounds [1 x [3 x i64]], ptr %18, i64 0, i64 %228
  %230 = getelementptr inbounds [3 x i64], ptr %229, i64 0, i64 1
  %231 = load i64, ptr %230, align 8, !tbaa !13
  %232 = trunc i64 %231 to i32
  store i32 %232, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #10
  %233 = load i64, ptr %38, align 8, !tbaa !13
  %234 = getelementptr inbounds [1 x [3 x i64]], ptr %18, i64 0, i64 %233
  %235 = getelementptr inbounds [3 x i64], ptr %234, i64 0, i64 0
  %236 = load i64, ptr %235, align 8, !tbaa !13
  %237 = trunc i64 %236 to i32
  store i32 %237, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #10
  store i8 1, ptr %46, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #10
  %238 = load i32, ptr %40, align 4, !tbaa !5
  %239 = load i32, ptr %43, align 4, !tbaa !5
  %240 = add nsw i32 %238, %239
  %241 = sub nsw i32 %240, 1
  %242 = load i32, ptr %43, align 4, !tbaa !5
  %243 = sdiv i32 %241, %242
  store i32 %243, ptr %47, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #10
  %244 = load i32, ptr %41, align 4, !tbaa !5
  %245 = load i32, ptr %44, align 4, !tbaa !5
  %246 = add nsw i32 %244, %245
  %247 = sub nsw i32 %246, 1
  %248 = load i32, ptr %44, align 4, !tbaa !5
  %249 = sdiv i32 %247, %248
  store i32 %249, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #10
  %250 = load i32, ptr %42, align 4, !tbaa !5
  %251 = load i32, ptr %45, align 4, !tbaa !5
  %252 = add nsw i32 %250, %251
  %253 = sub nsw i32 %252, 1
  %254 = load i32, ptr %45, align 4, !tbaa !5
  %255 = sdiv i32 %253, %254
  store i32 %255, ptr %49, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #10
  %256 = load i32, ptr %47, align 4, !tbaa !5
  %257 = load i32, ptr %43, align 4, !tbaa !5
  %258 = mul nsw i32 %256, %257
  store i32 %258, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #10
  %259 = load i32, ptr %48, align 4, !tbaa !5
  %260 = load i32, ptr %44, align 4, !tbaa !5
  %261 = mul nsw i32 %259, %260
  store i32 %261, ptr %51, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #10
  %262 = load i32, ptr %49, align 4, !tbaa !5
  %263 = load i32, ptr %45, align 4, !tbaa !5
  %264 = mul nsw i32 %262, %263
  store i32 %264, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #10
  %265 = load i32, ptr %40, align 4, !tbaa !5
  %266 = load i32, ptr %41, align 4, !tbaa !5
  %267 = mul nsw i32 %265, %266
  %268 = load i32, ptr %42, align 4, !tbaa !5
  %269 = mul nsw i32 %267, %268
  %270 = sext i32 %269 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #10
  call void @_ZNSaIsEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  invoke void @_ZNSt6vectorIsSaIsEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %270, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %271 unwind label %288

271:                                              ; preds = %207
  call void @_ZNSt15__new_allocatorIsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #10
  call void @llvm.lifetime.start.p0(i64 520, ptr %56) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %57) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %58) #10
  %272 = load i64, ptr %38, align 8, !tbaa !13
  %273 = getelementptr inbounds [1 x %"class.std::__cxx11::basic_string"], ptr %13, i64 0, i64 %272
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %58, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %273)
          to label %274 unwind label %292

274:                                              ; preds = %271
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %57, ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef @.str.19)
          to label %275 unwind label %296

275:                                              ; preds = %274
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %56, ptr noundef nonnull align 8 dereferenceable(32) %57, i32 noundef 4)
          to label %276 unwind label %300

276:                                              ; preds = %275
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #10
  %277 = load ptr, ptr %56, align 8, !tbaa !20
  %278 = getelementptr i8, ptr %277, i64 -24
  %279 = load i64, ptr %278, align 8
  %280 = getelementptr inbounds i8, ptr %56, i64 %279
  %281 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %280)
          to label %282 unwind label %306

282:                                              ; preds = %276
  br i1 %281, label %310, label %283

283:                                              ; preds = %282
  store i32 2, ptr %1, align 4
  store i32 1, ptr %39, align 4
  br label %927

284:                                              ; preds = %198
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %11, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %12, align 4
  br label %938

288:                                              ; preds = %207
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %11, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #10
  br label %935

292:                                              ; preds = %271
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %11, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %12, align 4
  br label %305

296:                                              ; preds = %274
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %11, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %12, align 4
  br label %304

300:                                              ; preds = %275
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %11, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #10
  br label %304

304:                                              ; preds = %300, %296
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #10
  br label %305

305:                                              ; preds = %304, %292
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #10
  br label %934

306:                                              ; preds = %924, %320, %310, %276
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %11, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %12, align 4
  br label %933

310:                                              ; preds = %282
  %311 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %312 = load i32, ptr %40, align 4, !tbaa !5
  %313 = load i32, ptr %41, align 4, !tbaa !5
  %314 = mul nsw i32 %312, %313
  %315 = load i32, ptr %42, align 4, !tbaa !5
  %316 = mul nsw i32 %314, %315
  %317 = sext i32 %316 to i64
  %318 = mul i64 %317, 2
  %319 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef %311, i64 noundef %318)
          to label %320 unwind label %306

320:                                              ; preds = %310
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %56)
          to label %321 unwind label %306

321:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #10
  store i64 0, ptr %59, align 8, !tbaa !13
  br label %322

322:                                              ; preds = %882, %321
  %323 = load i64, ptr %59, align 8, !tbaa !13
  %324 = icmp ult i64 %323, 3
  br i1 %324, label %326, label %325

325:                                              ; preds = %322
  store i32 11, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  br label %924

326:                                              ; preds = %322
  %327 = load ptr, ptr @stdout, align 8, !tbaa !9
  %328 = load i64, ptr %59, align 8, !tbaa !13
  %329 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %25, i64 0, i64 %328
  %330 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %329) #10
  %331 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %327, ptr noundef @.str.20, ptr noundef %330) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #10
  %332 = load i64, ptr %59, align 8, !tbaa !13
  %333 = getelementptr inbounds [3 x i32], ptr %22, i64 0, i64 %332
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = uitofp i32 %334 to float
  %336 = fpext float %335 to double
  %337 = fdiv double %336, 1.000000e+03
  %338 = load float, ptr %19, align 4, !tbaa !11
  %339 = invoke noundef float @_ZSt4sqrtf(float noundef %338)
          to label %340 unwind label %421

340:                                              ; preds = %326
  %341 = fpext float %339 to double
  %342 = fmul double %337, %341
  %343 = fmul double %342, 8.000000e-01
  %344 = fptrunc double %343 to float
  store float %344, ptr %60, align 4, !tbaa !11
  %345 = load i32, ptr %2, align 4, !tbaa !5
  %346 = load i32, ptr %43, align 4, !tbaa !5
  %347 = load i32, ptr %44, align 4, !tbaa !5
  %348 = mul nsw i32 %346, %347
  %349 = load i32, ptr %45, align 4, !tbaa !5
  %350 = mul nsw i32 %348, %349
  %351 = sext i32 %350 to i64
  %352 = mul i64 %351, 4
  %353 = trunc i64 %352 to i32
  %354 = invoke noundef ptr @_ZN12cudaCompress14createInstanceEijjjj(i32 noundef %345, i32 noundef 2, i32 noundef %353, i32 noundef 128, i32 noundef 16)
          to label %355 unwind label %421

355:                                              ; preds = %340
  store ptr %354, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #10
  store ptr null, ptr %61, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #10
  store ptr null, ptr %62, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #10
  store ptr null, ptr %63, align 8, !tbaa !9
  %356 = load i32, ptr %40, align 4, !tbaa !5
  %357 = load i32, ptr %41, align 4, !tbaa !5
  %358 = mul nsw i32 %356, %357
  %359 = load i32, ptr %42, align 4, !tbaa !5
  %360 = mul nsw i32 %358, %359
  %361 = sext i32 %360 to i64
  %362 = mul i64 %361, 2
  %363 = invoke noundef i32 @_ZL10cudaMallocIsE9cudaErrorPPT_m(ptr noundef %61, i64 noundef %362)
          to label %364 unwind label %425

364:                                              ; preds = %355
  %365 = load i32, ptr %43, align 4, !tbaa !5
  %366 = load i32, ptr %44, align 4, !tbaa !5
  %367 = mul nsw i32 %365, %366
  %368 = load i32, ptr %45, align 4, !tbaa !5
  %369 = mul nsw i32 %367, %368
  %370 = sext i32 %369 to i64
  %371 = mul i64 %370, 4
  %372 = invoke noundef i32 @_ZL10cudaMallocIsE9cudaErrorPPT_m(ptr noundef %63, i64 noundef %371)
          to label %373 unwind label %425

373:                                              ; preds = %364
  %374 = load i32, ptr %43, align 4, !tbaa !5
  %375 = load i32, ptr %44, align 4, !tbaa !5
  %376 = mul nsw i32 %374, %375
  %377 = load i32, ptr %45, align 4, !tbaa !5
  %378 = mul nsw i32 %376, %377
  %379 = sext i32 %378 to i64
  %380 = mul i64 %379, 4
  %381 = invoke noundef i32 @_ZL10cudaMallocIsE9cudaErrorPPT_m(ptr noundef %62, i64 noundef %380)
          to label %382 unwind label %425

382:                                              ; preds = %373
  %383 = load i32, ptr %43, align 4, !tbaa !5
  %384 = load i32, ptr %44, align 4, !tbaa !5
  %385 = mul nsw i32 %383, %384
  %386 = load i32, ptr %45, align 4, !tbaa !5
  %387 = mul nsw i32 %385, %386
  %388 = sext i32 %387 to i64
  %389 = mul i64 %388, 2
  %390 = invoke noundef i32 @_ZL10cudaMallocItE9cudaErrorPPT_m(ptr noundef %6, i64 noundef %389)
          to label %391 unwind label %425

391:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #10
  %392 = load i32, ptr %40, align 4, !tbaa !5
  %393 = load i32, ptr %41, align 4, !tbaa !5
  %394 = mul nsw i32 %392, %393
  %395 = load i32, ptr %42, align 4, !tbaa !5
  %396 = mul nsw i32 %394, %395
  %397 = sext i32 %396 to i64
  %398 = mul i64 %397, 2
  %399 = uitofp i64 %398 to float
  store float %399, ptr %64, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #10
  %400 = invoke i32 @cudaEventCreate(ptr noundef %65)
          to label %401 unwind label %429

401:                                              ; preds = %391
  %402 = invoke i32 @cudaEventCreate(ptr noundef %66)
          to label %403 unwind label %429

403:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #10
  %404 = load i32, ptr %47, align 4, !tbaa !5
  %405 = load i32, ptr %48, align 4, !tbaa !5
  %406 = mul nsw i32 %404, %405
  %407 = load i32, ptr %49, align 4, !tbaa !5
  %408 = mul nsw i32 %406, %407
  store i32 %408, ptr %67, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %68) #10
  %409 = load i32, ptr %67, align 4, !tbaa !5
  %410 = zext i32 %409 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %69) #10
  call void @_ZNSaISt6vectorIjSaIjEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %69) #10
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %410, ptr noundef nonnull align 1 dereferenceable(1) %69)
          to label %411 unwind label %433

411:                                              ; preds = %403
  call void @_ZNSt15__new_allocatorISt6vectorIjSaIjEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %69) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %69) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %70) #10
  call void @llvm.memset.p0.i64(ptr align 8 %70, i8 0, i64 24, i1 false)
  %412 = load ptr, ptr %65, align 8, !tbaa !9
  %413 = invoke i32 @cudaEventRecord(ptr noundef %412, ptr noundef null)
          to label %414 unwind label %437

414:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #10
  store i64 0, ptr %71, align 8, !tbaa !13
  br label %415

415:                                              ; preds = %546, %414
  %416 = load i64, ptr %71, align 8, !tbaa !13
  %417 = load i32, ptr %7, align 4, !tbaa !5
  %418 = sext i32 %417 to i64
  %419 = icmp ult i64 %416, %418
  br i1 %419, label %441, label %420

420:                                              ; preds = %415
  store i32 14, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #10
  br label %550

421:                                              ; preds = %340, %326
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %11, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %12, align 4
  br label %923

425:                                              ; preds = %382, %373, %364, %355
  %426 = landingpad { ptr, i32 }
          cleanup
  %427 = extractvalue { ptr, i32 } %426, 0
  store ptr %427, ptr %11, align 8
  %428 = extractvalue { ptr, i32 } %426, 1
  store i32 %428, ptr %12, align 4
  br label %922

429:                                              ; preds = %401, %391
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %11, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %12, align 4
  br label %921

433:                                              ; preds = %403
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %11, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %12, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIjSaIjEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %69) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %69) #10
  br label %920

437:                                              ; preds = %556, %553, %550, %411
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %11, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %12, align 4
  br label %919

441:                                              ; preds = %415
  %442 = load ptr, ptr %61, align 8, !tbaa !9
  %443 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %444 = load i32, ptr %40, align 4, !tbaa !5
  %445 = load i32, ptr %41, align 4, !tbaa !5
  %446 = mul nsw i32 %444, %445
  %447 = load i32, ptr %42, align 4, !tbaa !5
  %448 = mul nsw i32 %446, %447
  %449 = sext i32 %448 to i64
  %450 = mul i64 %449, 2
  %451 = invoke i32 @cudaMemcpy(ptr noundef %442, ptr noundef %443, i64 noundef %450, i32 noundef 1)
          to label %452 unwind label %459

452:                                              ; preds = %441
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #10
  store i64 0, ptr %72, align 8, !tbaa !13
  br label %453

453:                                              ; preds = %542, %452
  %454 = load i64, ptr %72, align 8, !tbaa !13
  %455 = load i32, ptr %67, align 4, !tbaa !5
  %456 = zext i32 %455 to i64
  %457 = icmp ult i64 %454, %456
  br i1 %457, label %463, label %458

458:                                              ; preds = %453
  store i32 17, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #10
  br label %545

459:                                              ; preds = %441
  %460 = landingpad { ptr, i32 }
          cleanup
  %461 = extractvalue { ptr, i32 } %460, 0
  store ptr %461, ptr %11, align 8
  %462 = extractvalue { ptr, i32 } %460, 1
  store i32 %462, ptr %12, align 4
  br label %549

463:                                              ; preds = %453
  %464 = load ptr, ptr %6, align 8, !tbaa !9
  %465 = load i32, ptr %43, align 4, !tbaa !5
  %466 = load i32, ptr %44, align 4, !tbaa !5
  %467 = mul nsw i32 %465, %466
  %468 = load i32, ptr %45, align 4, !tbaa !5
  %469 = mul nsw i32 %467, %468
  %470 = sext i32 %469 to i64
  %471 = mul i64 %470, 2
  %472 = invoke i32 @cudaMemset(ptr noundef %464, i32 noundef 0, i64 noundef %471)
          to label %473 unwind label %504

473:                                              ; preds = %463
  %474 = load float, ptr %60, align 4, !tbaa !11
  %475 = fcmp oeq float %474, 0.000000e+00
  br i1 %475, label %476, label %508

476:                                              ; preds = %473
  %477 = load ptr, ptr %5, align 8, !tbaa !9
  %478 = load i64, ptr %72, align 8, !tbaa !13
  %479 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %478) #10
  %480 = load ptr, ptr %61, align 8, !tbaa !9
  %481 = load i32, ptr %43, align 4, !tbaa !5
  %482 = load i32, ptr %44, align 4, !tbaa !5
  %483 = mul nsw i32 %481, %482
  %484 = load i32, ptr %45, align 4, !tbaa !5
  %485 = mul nsw i32 %483, %484
  %486 = sext i32 %485 to i64
  %487 = load i64, ptr %72, align 8, !tbaa !13
  %488 = mul i64 %486, %487
  %489 = getelementptr inbounds i16, ptr %480, i64 %488
  %490 = load ptr, ptr %62, align 8, !tbaa !9
  %491 = load ptr, ptr %63, align 8, !tbaa !9
  %492 = load ptr, ptr %6, align 8, !tbaa !9
  %493 = load i32, ptr %43, align 4, !tbaa !5
  %494 = load i32, ptr %44, align 4, !tbaa !5
  %495 = load i32, ptr %45, align 4, !tbaa !5
  %496 = load i64, ptr %59, align 8, !tbaa !13
  %497 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 %496
  %498 = load i32, ptr %497, align 4, !tbaa !5
  %499 = zext i32 %498 to i64
  %500 = load i64, ptr %59, align 8, !tbaa !13
  %501 = getelementptr inbounds [3 x i32], ptr %24, i64 0, i64 %500
  %502 = load i32, ptr %501, align 4, !tbaa !5
  invoke void @_ZN12cudaCompress15compressImageLLEPNS_8InstanceERSt6vectorIjSaIjEEPsS6_S6_Ptiiimi(ptr noundef %477, ptr noundef nonnull align 8 dereferenceable(24) %479, ptr noundef %489, ptr noundef %490, ptr noundef %491, ptr noundef %492, i32 noundef %493, i32 noundef %494, i32 noundef %495, i64 noundef %499, i32 noundef %502)
          to label %503 unwind label %504

503:                                              ; preds = %476
  br label %541

504:                                              ; preds = %508, %476, %463
  %505 = landingpad { ptr, i32 }
          cleanup
  %506 = extractvalue { ptr, i32 } %505, 0
  store ptr %506, ptr %11, align 8
  %507 = extractvalue { ptr, i32 } %505, 1
  store i32 %507, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #10
  br label %549

508:                                              ; preds = %473
  %509 = load ptr, ptr %5, align 8, !tbaa !9
  %510 = load i64, ptr %72, align 8, !tbaa !13
  %511 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %510) #10
  %512 = load ptr, ptr %61, align 8, !tbaa !9
  %513 = load i32, ptr %43, align 4, !tbaa !5
  %514 = load i32, ptr %44, align 4, !tbaa !5
  %515 = mul nsw i32 %513, %514
  %516 = load i32, ptr %45, align 4, !tbaa !5
  %517 = mul nsw i32 %515, %516
  %518 = sext i32 %517 to i64
  %519 = load i64, ptr %72, align 8, !tbaa !13
  %520 = mul i64 %518, %519
  %521 = getelementptr inbounds i16, ptr %512, i64 %520
  %522 = load ptr, ptr %62, align 8, !tbaa !9
  %523 = load ptr, ptr %63, align 8, !tbaa !9
  %524 = load ptr, ptr %6, align 8, !tbaa !9
  %525 = load i32, ptr %43, align 4, !tbaa !5
  %526 = load i32, ptr %44, align 4, !tbaa !5
  %527 = load i32, ptr %45, align 4, !tbaa !5
  %528 = load i64, ptr %59, align 8, !tbaa !13
  %529 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 %528
  %530 = load i32, ptr %529, align 4, !tbaa !5
  %531 = zext i32 %530 to i64
  %532 = load float, ptr %60, align 4, !tbaa !11
  %533 = load i64, ptr %59, align 8, !tbaa !13
  %534 = getelementptr inbounds [3 x i32], ptr %23, i64 0, i64 %533
  %535 = load i32, ptr %534, align 4, !tbaa !5
  %536 = uitofp i32 %535 to float
  %537 = load i64, ptr %59, align 8, !tbaa !13
  %538 = getelementptr inbounds [3 x i32], ptr %24, i64 0, i64 %537
  %539 = load i32, ptr %538, align 4, !tbaa !5
  invoke void @_ZN12cudaCompress13compressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef %509, ptr noundef nonnull align 8 dereferenceable(24) %511, ptr noundef %521, ptr noundef %522, ptr noundef %523, ptr noundef %524, i32 noundef %525, i32 noundef %526, i32 noundef %527, i64 noundef %531, float noundef %532, float noundef %536, i32 noundef %539, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %540 unwind label %504

540:                                              ; preds = %508
  br label %541

541:                                              ; preds = %540, %503
  br label %542

542:                                              ; preds = %541
  %543 = load i64, ptr %72, align 8, !tbaa !13
  %544 = add i64 %543, 1
  store i64 %544, ptr %72, align 8, !tbaa !13
  br label %453, !llvm.loop !22

545:                                              ; preds = %458
  br label %546

546:                                              ; preds = %545
  %547 = load i64, ptr %71, align 8, !tbaa !13
  %548 = add i64 %547, 1
  store i64 %548, ptr %71, align 8, !tbaa !13
  br label %415, !llvm.loop !23

549:                                              ; preds = %504, %459
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #10
  br label %919

550:                                              ; preds = %420
  %551 = load ptr, ptr %66, align 8, !tbaa !9
  %552 = invoke i32 @cudaEventRecord(ptr noundef %551, ptr noundef null)
          to label %553 unwind label %437

553:                                              ; preds = %550
  %554 = load ptr, ptr %66, align 8, !tbaa !9
  %555 = invoke i32 @cudaEventSynchronize(ptr noundef %554)
          to label %556 unwind label %437

556:                                              ; preds = %553
  %557 = load ptr, ptr %65, align 8, !tbaa !9
  %558 = load ptr, ptr %66, align 8, !tbaa !9
  %559 = invoke i32 @cudaEventElapsedTime(ptr noundef %34, ptr noundef %557, ptr noundef %558)
          to label %560 unwind label %437

560:                                              ; preds = %556
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #10
  store i32 0, ptr %73, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #10
  store i64 0, ptr %74, align 8, !tbaa !13
  br label %561

561:                                              ; preds = %576, %560
  %562 = load i64, ptr %74, align 8, !tbaa !13
  %563 = load i32, ptr %67, align 4, !tbaa !5
  %564 = zext i32 %563 to i64
  %565 = icmp ult i64 %562, %564
  br i1 %565, label %567, label %566

566:                                              ; preds = %561
  store i32 20, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #10
  br label %579

567:                                              ; preds = %561
  %568 = load i64, ptr %74, align 8, !tbaa !13
  %569 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %568) #10
  %570 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %569) #10
  %571 = mul i64 %570, 4
  %572 = load i32, ptr %73, align 4, !tbaa !5
  %573 = zext i32 %572 to i64
  %574 = add i64 %573, %571
  %575 = trunc i64 %574 to i32
  store i32 %575, ptr %73, align 4, !tbaa !5
  br label %576

576:                                              ; preds = %567
  %577 = load i64, ptr %74, align 8, !tbaa !13
  %578 = add i64 %577, 1
  store i64 %578, ptr %74, align 8, !tbaa !13
  br label %561, !llvm.loop !24

579:                                              ; preds = %566
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #10
  %580 = load i32, ptr %73, align 4, !tbaa !5
  %581 = uitofp i32 %580 to float
  %582 = load i32, ptr %40, align 4, !tbaa !5
  %583 = load i32, ptr %41, align 4, !tbaa !5
  %584 = mul nsw i32 %582, %583
  %585 = load i32, ptr %42, align 4, !tbaa !5
  %586 = mul nsw i32 %584, %585
  %587 = sext i32 %586 to i64
  %588 = mul i64 %587, 2
  %589 = uitofp i64 %588 to float
  %590 = fdiv float %581, %589
  store float %590, ptr %75, align 4, !tbaa !11
  %591 = load float, ptr %75, align 4, !tbaa !11
  %592 = fdiv float 1.000000e+00, %591
  store float %592, ptr %37, align 4, !tbaa !11
  %593 = load i32, ptr %73, align 4, !tbaa !5
  %594 = uitofp i32 %593 to float
  %595 = fdiv float %594, 1.024000e+03
  %596 = fpext float %595 to double
  %597 = load float, ptr %75, align 4, !tbaa !11
  %598 = fmul float %597, 1.000000e+02
  %599 = fpext float %598 to double
  %600 = load float, ptr %75, align 4, !tbaa !11
  %601 = fdiv float 1.000000e+00, %600
  %602 = fpext float %601 to double
  %603 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.21, double noundef %596, double noundef %599, double noundef %602)
          to label %604 unwind label %653

604:                                              ; preds = %579
  %605 = load float, ptr %34, align 4, !tbaa !11
  %606 = load i32, ptr %7, align 4, !tbaa !5
  %607 = sitofp i32 %606 to float
  %608 = fdiv float %605, %607
  %609 = fpext float %608 to double
  %610 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.22, double noundef %609)
          to label %611 unwind label %653

611:                                              ; preds = %604
  %612 = load float, ptr %64, align 4, !tbaa !11
  %613 = fpext float %612 to double
  %614 = fdiv double %613, 1.024000e+03
  %615 = fdiv double %614, 1.024000e+03
  %616 = load float, ptr %34, align 4, !tbaa !11
  %617 = fpext float %616 to double
  %618 = fdiv double %615, %617
  %619 = load i32, ptr %7, align 4, !tbaa !5
  %620 = sitofp i32 %619 to double
  %621 = fmul double %618, %620
  %622 = fmul double %621, 1.000000e+03
  %623 = fptrunc double %622 to float
  store float %623, ptr %36, align 4, !tbaa !11
  %624 = load float, ptr %36, align 4, !tbaa !11
  %625 = fpext float %624 to double
  %626 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.23, double noundef %625)
          to label %627 unwind label %653

627:                                              ; preds = %611
  call void @llvm.lifetime.start.p0(i64 512, ptr %76) #10
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %76)
          to label %628 unwind label %657

628:                                              ; preds = %627
  %629 = load ptr, ptr %61, align 8, !tbaa !9
  %630 = load i32, ptr %40, align 4, !tbaa !5
  %631 = load i32, ptr %41, align 4, !tbaa !5
  %632 = mul nsw i32 %630, %631
  %633 = sext i32 %632 to i64
  %634 = mul i64 %633, 2
  %635 = invoke i32 @cudaMemset(ptr noundef %629, i32 noundef 0, i64 noundef %634)
          to label %636 unwind label %661

636:                                              ; preds = %628
  call void @llvm.lifetime.start.p0(i64 24, ptr %77) #10
  %637 = load i32, ptr %40, align 4, !tbaa !5
  %638 = load i32, ptr %41, align 4, !tbaa !5
  %639 = mul nsw i32 %637, %638
  %640 = load i32, ptr %42, align 4, !tbaa !5
  %641 = mul nsw i32 %639, %640
  %642 = sext i32 %641 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %78) #10
  call void @_ZNSaIsEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #10
  invoke void @_ZNSt6vectorIsSaIsEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %642, ptr noundef nonnull align 1 dereferenceable(1) %78)
          to label %643 unwind label %665

643:                                              ; preds = %636
  call void @_ZNSt15__new_allocatorIsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %78) #10
  %644 = load ptr, ptr %65, align 8, !tbaa !9
  %645 = invoke i32 @cudaEventRecord(ptr noundef %644, ptr noundef null)
          to label %646 unwind label %669

646:                                              ; preds = %643
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #10
  store i64 0, ptr %79, align 8, !tbaa !13
  br label %647

647:                                              ; preds = %774, %646
  %648 = load i64, ptr %79, align 8, !tbaa !13
  %649 = load i32, ptr %7, align 4, !tbaa !5
  %650 = sext i32 %649 to i64
  %651 = icmp ult i64 %648, %650
  br i1 %651, label %673, label %652

652:                                              ; preds = %647
  store i32 23, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #10
  br label %782

653:                                              ; preds = %611, %604, %579
  %654 = landingpad { ptr, i32 }
          cleanup
  %655 = extractvalue { ptr, i32 } %654, 0
  store ptr %655, ptr %11, align 8
  %656 = extractvalue { ptr, i32 } %654, 1
  store i32 %656, ptr %12, align 4
  br label %918

657:                                              ; preds = %627
  %658 = landingpad { ptr, i32 }
          cleanup
  %659 = extractvalue { ptr, i32 } %658, 0
  store ptr %659, ptr %11, align 8
  %660 = extractvalue { ptr, i32 } %658, 1
  store i32 %660, ptr %12, align 4
  br label %917

661:                                              ; preds = %628
  %662 = landingpad { ptr, i32 }
          cleanup
  %663 = extractvalue { ptr, i32 } %662, 0
  store ptr %663, ptr %11, align 8
  %664 = extractvalue { ptr, i32 } %662, 1
  store i32 %664, ptr %12, align 4
  br label %916

665:                                              ; preds = %636
  %666 = landingpad { ptr, i32 }
          cleanup
  %667 = extractvalue { ptr, i32 } %666, 0
  store ptr %667, ptr %11, align 8
  %668 = extractvalue { ptr, i32 } %666, 1
  store i32 %668, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %78) #10
  br label %915

669:                                              ; preds = %799, %792, %788, %785, %782, %643
  %670 = landingpad { ptr, i32 }
          cleanup
  %671 = extractvalue { ptr, i32 } %670, 0
  store ptr %671, ptr %11, align 8
  %672 = extractvalue { ptr, i32 } %670, 1
  store i32 %672, ptr %12, align 4
  br label %914

673:                                              ; preds = %647
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #10
  store i64 0, ptr %80, align 8, !tbaa !13
  br label %674

674:                                              ; preds = %759, %673
  %675 = load i64, ptr %80, align 8, !tbaa !13
  %676 = load i32, ptr %67, align 4, !tbaa !5
  %677 = zext i32 %676 to i64
  %678 = icmp ult i64 %675, %677
  br i1 %678, label %680, label %679

679:                                              ; preds = %674
  store i32 26, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #10
  br label %762

680:                                              ; preds = %674
  %681 = load ptr, ptr %6, align 8, !tbaa !9
  %682 = load i32, ptr %43, align 4, !tbaa !5
  %683 = load i32, ptr %44, align 4, !tbaa !5
  %684 = mul nsw i32 %682, %683
  %685 = load i32, ptr %45, align 4, !tbaa !5
  %686 = mul nsw i32 %684, %685
  %687 = sext i32 %686 to i64
  %688 = mul i64 %687, 2
  %689 = invoke i32 @cudaMemset(ptr noundef %681, i32 noundef 0, i64 noundef %688)
          to label %690 unwind label %721

690:                                              ; preds = %680
  %691 = load float, ptr %60, align 4, !tbaa !11
  %692 = fcmp oeq float %691, 0.000000e+00
  br i1 %692, label %693, label %725

693:                                              ; preds = %690
  %694 = load ptr, ptr %5, align 8, !tbaa !9
  %695 = load i64, ptr %80, align 8, !tbaa !13
  %696 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %695) #10
  %697 = load ptr, ptr %61, align 8, !tbaa !9
  %698 = load i32, ptr %43, align 4, !tbaa !5
  %699 = load i32, ptr %44, align 4, !tbaa !5
  %700 = mul nsw i32 %698, %699
  %701 = load i32, ptr %45, align 4, !tbaa !5
  %702 = mul nsw i32 %700, %701
  %703 = sext i32 %702 to i64
  %704 = load i64, ptr %80, align 8, !tbaa !13
  %705 = mul i64 %703, %704
  %706 = getelementptr inbounds i16, ptr %697, i64 %705
  %707 = load ptr, ptr %62, align 8, !tbaa !9
  %708 = load ptr, ptr %63, align 8, !tbaa !9
  %709 = load ptr, ptr %6, align 8, !tbaa !9
  %710 = load i32, ptr %43, align 4, !tbaa !5
  %711 = load i32, ptr %44, align 4, !tbaa !5
  %712 = load i32, ptr %45, align 4, !tbaa !5
  %713 = load i64, ptr %59, align 8, !tbaa !13
  %714 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 %713
  %715 = load i32, ptr %714, align 4, !tbaa !5
  %716 = zext i32 %715 to i64
  %717 = load i64, ptr %59, align 8, !tbaa !13
  %718 = getelementptr inbounds [3 x i32], ptr %24, i64 0, i64 %717
  %719 = load i32, ptr %718, align 4, !tbaa !5
  invoke void @_ZN12cudaCompress17decompressImageLLEPNS_8InstanceERSt6vectorIjSaIjEEPsS6_S6_Ptiiimi(ptr noundef %694, ptr noundef nonnull align 8 dereferenceable(24) %696, ptr noundef %706, ptr noundef %707, ptr noundef %708, ptr noundef %709, i32 noundef %710, i32 noundef %711, i32 noundef %712, i64 noundef %716, i32 noundef %719)
          to label %720 unwind label %721

720:                                              ; preds = %693
  br label %758

721:                                              ; preds = %725, %693, %680
  %722 = landingpad { ptr, i32 }
          cleanup
  %723 = extractvalue { ptr, i32 } %722, 0
  store ptr %723, ptr %11, align 8
  %724 = extractvalue { ptr, i32 } %722, 1
  store i32 %724, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #10
  br label %781

725:                                              ; preds = %690
  %726 = load ptr, ptr %5, align 8, !tbaa !9
  %727 = load i64, ptr %80, align 8, !tbaa !13
  %728 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %727) #10
  %729 = load ptr, ptr %61, align 8, !tbaa !9
  %730 = load i32, ptr %43, align 4, !tbaa !5
  %731 = load i32, ptr %44, align 4, !tbaa !5
  %732 = mul nsw i32 %730, %731
  %733 = load i32, ptr %45, align 4, !tbaa !5
  %734 = mul nsw i32 %732, %733
  %735 = sext i32 %734 to i64
  %736 = load i64, ptr %80, align 8, !tbaa !13
  %737 = mul i64 %735, %736
  %738 = getelementptr inbounds i16, ptr %729, i64 %737
  %739 = load ptr, ptr %62, align 8, !tbaa !9
  %740 = load ptr, ptr %63, align 8, !tbaa !9
  %741 = load ptr, ptr %6, align 8, !tbaa !9
  %742 = load i32, ptr %43, align 4, !tbaa !5
  %743 = load i32, ptr %44, align 4, !tbaa !5
  %744 = load i32, ptr %45, align 4, !tbaa !5
  %745 = load i64, ptr %59, align 8, !tbaa !13
  %746 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 %745
  %747 = load i32, ptr %746, align 4, !tbaa !5
  %748 = zext i32 %747 to i64
  %749 = load float, ptr %60, align 4, !tbaa !11
  %750 = load i64, ptr %59, align 8, !tbaa !13
  %751 = getelementptr inbounds [3 x i32], ptr %23, i64 0, i64 %750
  %752 = load i32, ptr %751, align 4, !tbaa !5
  %753 = uitofp i32 %752 to float
  %754 = load i64, ptr %59, align 8, !tbaa !13
  %755 = getelementptr inbounds [3 x i32], ptr %24, i64 0, i64 %754
  %756 = load i32, ptr %755, align 4, !tbaa !5
  invoke void @_ZN12cudaCompress15decompressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef %726, ptr noundef nonnull align 8 dereferenceable(24) %728, ptr noundef %738, ptr noundef %739, ptr noundef %740, ptr noundef %741, i32 noundef %742, i32 noundef %743, i32 noundef %744, i64 noundef %748, float noundef %749, float noundef %753, i32 noundef %756, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %757 unwind label %721

757:                                              ; preds = %725
  br label %758

758:                                              ; preds = %757, %720
  br label %759

759:                                              ; preds = %758
  %760 = load i64, ptr %80, align 8, !tbaa !13
  %761 = add i64 %760, 1
  store i64 %761, ptr %80, align 8, !tbaa !13
  br label %674, !llvm.loop !25

762:                                              ; preds = %679
  %763 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #10
  %764 = load ptr, ptr %61, align 8, !tbaa !9
  %765 = load i32, ptr %40, align 4, !tbaa !5
  %766 = load i32, ptr %41, align 4, !tbaa !5
  %767 = mul nsw i32 %765, %766
  %768 = load i32, ptr %42, align 4, !tbaa !5
  %769 = mul nsw i32 %767, %768
  %770 = sext i32 %769 to i64
  %771 = mul i64 %770, 2
  %772 = invoke i32 @cudaMemcpy(ptr noundef %763, ptr noundef %764, i64 noundef %771, i32 noundef 2)
          to label %773 unwind label %777

773:                                              ; preds = %762
  br label %774

774:                                              ; preds = %773
  %775 = load i64, ptr %79, align 8, !tbaa !13
  %776 = add i64 %775, 1
  store i64 %776, ptr %79, align 8, !tbaa !13
  br label %647, !llvm.loop !26

777:                                              ; preds = %762
  %778 = landingpad { ptr, i32 }
          cleanup
  %779 = extractvalue { ptr, i32 } %778, 0
  store ptr %779, ptr %11, align 8
  %780 = extractvalue { ptr, i32 } %778, 1
  store i32 %780, ptr %12, align 4
  br label %781

781:                                              ; preds = %777, %721
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #10
  br label %914

782:                                              ; preds = %652
  %783 = load ptr, ptr %66, align 8, !tbaa !9
  %784 = invoke i32 @cudaEventRecord(ptr noundef %783, ptr noundef null)
          to label %785 unwind label %669

785:                                              ; preds = %782
  %786 = load ptr, ptr %66, align 8, !tbaa !9
  %787 = invoke i32 @cudaEventSynchronize(ptr noundef %786)
          to label %788 unwind label %669

788:                                              ; preds = %785
  %789 = load ptr, ptr %65, align 8, !tbaa !9
  %790 = load ptr, ptr %66, align 8, !tbaa !9
  %791 = invoke i32 @cudaEventElapsedTime(ptr noundef %34, ptr noundef %789, ptr noundef %790)
          to label %792 unwind label %669

792:                                              ; preds = %788
  %793 = load float, ptr %34, align 4, !tbaa !11
  %794 = load i32, ptr %7, align 4, !tbaa !5
  %795 = sitofp i32 %794 to float
  %796 = fdiv float %793, %795
  %797 = fpext float %796 to double
  %798 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.24, double noundef %797)
          to label %799 unwind label %669

799:                                              ; preds = %792
  %800 = load float, ptr %64, align 4, !tbaa !11
  %801 = fpext float %800 to double
  %802 = fdiv double %801, 1.024000e+03
  %803 = fdiv double %802, 1.024000e+03
  %804 = load float, ptr %34, align 4, !tbaa !11
  %805 = fpext float %804 to double
  %806 = fdiv double %803, %805
  %807 = load i32, ptr %7, align 4, !tbaa !5
  %808 = sitofp i32 %807 to double
  %809 = fmul double %806, %808
  %810 = fmul double %809, 1.000000e+03
  %811 = fptrunc double %810 to float
  store float %811, ptr %35, align 4, !tbaa !11
  %812 = load float, ptr %35, align 4, !tbaa !11
  %813 = fpext float %812 to double
  %814 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.25, double noundef %813)
          to label %815 unwind label %669

815:                                              ; preds = %799
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #10
  %816 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %817 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #10
  %818 = load i32, ptr %40, align 4, !tbaa !5
  %819 = load i32, ptr %41, align 4, !tbaa !5
  %820 = mul nsw i32 %818, %819
  %821 = load i32, ptr %42, align 4, !tbaa !5
  %822 = mul nsw i32 %820, %821
  %823 = invoke noundef double @_Z11computePSNRIsEdPKT_S2_jjj(ptr noundef %816, ptr noundef %817, i32 noundef %822, i32 noundef 1, i32 noundef 0)
          to label %824 unwind label %885

824:                                              ; preds = %815
  store double %823, ptr %81, align 8, !tbaa !27
  %825 = load double, ptr %81, align 8, !tbaa !27
  %826 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.26, double noundef %825)
          to label %827 unwind label %885

827:                                              ; preds = %824
  call void @llvm.lifetime.start.p0(i64 32, ptr %82) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %83) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %84) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %85) #10
  %828 = load i64, ptr %38, align 8, !tbaa !13
  %829 = getelementptr inbounds [1 x %"class.std::__cxx11::basic_string"], ptr %13, i64 0, i64 %828
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %85, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %829)
          to label %830 unwind label %889

830:                                              ; preds = %827
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %84, ptr noundef nonnull align 8 dereferenceable(32) %85, ptr noundef @.str.27)
          to label %831 unwind label %893

831:                                              ; preds = %830
  %832 = load i64, ptr %59, align 8, !tbaa !13
  %833 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %25, i64 0, i64 %832
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %83, ptr noundef nonnull align 8 dereferenceable(32) %84, ptr noundef nonnull align 8 dereferenceable(32) %833)
          to label %834 unwind label %897

834:                                              ; preds = %831
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %82, ptr noundef nonnull align 8 dereferenceable(32) %83, ptr noundef @.str.19)
          to label %835 unwind label %901

835:                                              ; preds = %834
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %76, ptr noundef nonnull align 8 dereferenceable(32) %82, i32 noundef 4)
          to label %836 unwind label %905

836:                                              ; preds = %835
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %82) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %83) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %84) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %85) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %84) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %83) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %82) #10
  %837 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #10
  %838 = load i32, ptr %40, align 4, !tbaa !5
  %839 = load i32, ptr %41, align 4, !tbaa !5
  %840 = mul nsw i32 %838, %839
  %841 = load i32, ptr %42, align 4, !tbaa !5
  %842 = mul nsw i32 %840, %841
  %843 = sext i32 %842 to i64
  %844 = mul i64 %843, 2
  %845 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef %837, i64 noundef %844)
          to label %846 unwind label %885

846:                                              ; preds = %836
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %76)
          to label %847 unwind label %885

847:                                              ; preds = %846
  %848 = load ptr, ptr %6, align 8, !tbaa !9
  %849 = invoke i32 @cudaFree(ptr noundef %848)
          to label %850 unwind label %885

850:                                              ; preds = %847
  %851 = load ptr, ptr %61, align 8, !tbaa !9
  %852 = invoke i32 @cudaFree(ptr noundef %851)
          to label %853 unwind label %885

853:                                              ; preds = %850
  %854 = load ptr, ptr %62, align 8, !tbaa !9
  %855 = invoke i32 @cudaFree(ptr noundef %854)
          to label %856 unwind label %885

856:                                              ; preds = %853
  %857 = load ptr, ptr %63, align 8, !tbaa !9
  %858 = invoke i32 @cudaFree(ptr noundef %857)
          to label %859 unwind label %885

859:                                              ; preds = %856
  %860 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_ZN12cudaCompress15destroyInstanceEPNS_8InstanceE(ptr noundef %860)
          to label %861 unwind label %885

861:                                              ; preds = %859
  %862 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.14)
          to label %863 unwind label %885

863:                                              ; preds = %861
  %864 = load float, ptr %37, align 4, !tbaa !11
  %865 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %862, float noundef %864)
          to label %866 unwind label %885

866:                                              ; preds = %863
  %867 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %865, ptr noundef @.str.14)
          to label %868 unwind label %885

868:                                              ; preds = %866
  %869 = load float, ptr %36, align 4, !tbaa !11
  %870 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %867, float noundef %869)
          to label %871 unwind label %885

871:                                              ; preds = %868
  %872 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %870, ptr noundef @.str.14)
          to label %873 unwind label %885

873:                                              ; preds = %871
  %874 = load float, ptr %35, align 4, !tbaa !11
  %875 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %872, float noundef %874)
          to label %876 unwind label %885

876:                                              ; preds = %873
  %877 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %875, ptr noundef @.str.14)
          to label %878 unwind label %885

878:                                              ; preds = %876
  %879 = load double, ptr %81, align 8, !tbaa !27
  %880 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %877, double noundef %879)
          to label %881 unwind label %885

881:                                              ; preds = %878
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #10
  call void @_ZNSt6vectorIsSaIsEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %77) #10
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %76) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr %76) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %70) #10
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %68) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #10
  br label %882

882:                                              ; preds = %881
  %883 = load i64, ptr %59, align 8, !tbaa !13
  %884 = add i64 %883, 1
  store i64 %884, ptr %59, align 8, !tbaa !13
  br label %322, !llvm.loop !29

885:                                              ; preds = %878, %876, %873, %871, %868, %866, %863, %861, %859, %856, %853, %850, %847, %846, %836, %824, %815
  %886 = landingpad { ptr, i32 }
          cleanup
  %887 = extractvalue { ptr, i32 } %886, 0
  store ptr %887, ptr %11, align 8
  %888 = extractvalue { ptr, i32 } %886, 1
  store i32 %888, ptr %12, align 4
  br label %913

889:                                              ; preds = %827
  %890 = landingpad { ptr, i32 }
          cleanup
  %891 = extractvalue { ptr, i32 } %890, 0
  store ptr %891, ptr %11, align 8
  %892 = extractvalue { ptr, i32 } %890, 1
  store i32 %892, ptr %12, align 4
  br label %912

893:                                              ; preds = %830
  %894 = landingpad { ptr, i32 }
          cleanup
  %895 = extractvalue { ptr, i32 } %894, 0
  store ptr %895, ptr %11, align 8
  %896 = extractvalue { ptr, i32 } %894, 1
  store i32 %896, ptr %12, align 4
  br label %911

897:                                              ; preds = %831
  %898 = landingpad { ptr, i32 }
          cleanup
  %899 = extractvalue { ptr, i32 } %898, 0
  store ptr %899, ptr %11, align 8
  %900 = extractvalue { ptr, i32 } %898, 1
  store i32 %900, ptr %12, align 4
  br label %910

901:                                              ; preds = %834
  %902 = landingpad { ptr, i32 }
          cleanup
  %903 = extractvalue { ptr, i32 } %902, 0
  store ptr %903, ptr %11, align 8
  %904 = extractvalue { ptr, i32 } %902, 1
  store i32 %904, ptr %12, align 4
  br label %909

905:                                              ; preds = %835
  %906 = landingpad { ptr, i32 }
          cleanup
  %907 = extractvalue { ptr, i32 } %906, 0
  store ptr %907, ptr %11, align 8
  %908 = extractvalue { ptr, i32 } %906, 1
  store i32 %908, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %82) #10
  br label %909

909:                                              ; preds = %905, %901
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %83) #10
  br label %910

910:                                              ; preds = %909, %897
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %84) #10
  br label %911

911:                                              ; preds = %910, %893
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %85) #10
  br label %912

912:                                              ; preds = %911, %889
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %84) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %83) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %82) #10
  br label %913

913:                                              ; preds = %912, %885
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #10
  br label %914

914:                                              ; preds = %913, %781, %669
  call void @_ZNSt6vectorIsSaIsEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #10
  br label %915

915:                                              ; preds = %914, %665
  call void @llvm.lifetime.end.p0(i64 24, ptr %77) #10
  br label %916

916:                                              ; preds = %915, %661
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %76) #10
  br label %917

917:                                              ; preds = %916, %657
  call void @llvm.lifetime.end.p0(i64 512, ptr %76) #10
  br label %918

918:                                              ; preds = %917, %653
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  br label %919

919:                                              ; preds = %918, %549, %437
  call void @llvm.lifetime.end.p0(i64 24, ptr %70) #10
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %68) #10
  br label %920

920:                                              ; preds = %919, %433
  call void @llvm.lifetime.end.p0(i64 24, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  br label %921

921:                                              ; preds = %920, %429
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #10
  br label %922

922:                                              ; preds = %921, %425
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  br label %923

923:                                              ; preds = %922, %421
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  br label %933

924:                                              ; preds = %325
  %925 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.1)
          to label %926 unwind label %306

926:                                              ; preds = %924
  store i32 0, ptr %39, align 4
  br label %927

927:                                              ; preds = %926, %283
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %56) #10
  call void @llvm.lifetime.end.p0(i64 520, ptr %56) #10
  call void @_ZNSt6vectorIsSaIsEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  %928 = load i32, ptr %39, align 4
  switch i32 %928, label %936 [
    i32 0, label %929
  ]

929:                                              ; preds = %927
  br label %930

930:                                              ; preds = %929
  %931 = load i64, ptr %38, align 8, !tbaa !13
  %932 = add i64 %931, 1
  store i64 %932, ptr %38, align 8, !tbaa !13
  br label %192, !llvm.loop !30

933:                                              ; preds = %923, %306
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %56) #10
  br label %934

934:                                              ; preds = %933, %305
  call void @llvm.lifetime.end.p0(i64 520, ptr %56) #10
  call void @_ZNSt6vectorIsSaIsEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  br label %935

935:                                              ; preds = %934, %288
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  br label %938

936:                                              ; preds = %927, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  %937 = load i32, ptr %39, align 4
  switch i32 %937, label %955 [
    i32 8, label %939
  ]

938:                                              ; preds = %935, %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %958

939:                                              ; preds = %936
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %31)
          to label %940 unwind label %951

940:                                              ; preds = %939
  %941 = load ptr, ptr %4, align 8, !tbaa !9
  %942 = invoke i32 @cudaEventRecord(ptr noundef %941, ptr noundef null)
          to label %943 unwind label %951

943:                                              ; preds = %940
  %944 = load ptr, ptr %4, align 8, !tbaa !9
  %945 = invoke i32 @cudaEventSynchronize(ptr noundef %944)
          to label %946 unwind label %951

946:                                              ; preds = %943
  %947 = load ptr, ptr %3, align 8, !tbaa !9
  %948 = load ptr, ptr %4, align 8, !tbaa !9
  %949 = invoke i32 @cudaEventElapsedTime(ptr noundef %34, ptr noundef %947, ptr noundef %948)
          to label %950 unwind label %951

950:                                              ; preds = %946
  store i32 0, ptr %1, align 4
  store i32 1, ptr %39, align 4
  br label %955

951:                                              ; preds = %946, %943, %940, %939
  %952 = landingpad { ptr, i32 }
          cleanup
  %953 = extractvalue { ptr, i32 } %952, 0
  store ptr %953, ptr %11, align 8
  %954 = extractvalue { ptr, i32 } %952, 1
  store i32 %954, ptr %12, align 4
  br label %958

955:                                              ; preds = %950, %936
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %31) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr %31) #10
  %956 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %25, i32 0, i32 0
  %957 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %956, i64 3
  br label %963

958:                                              ; preds = %951, %938
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  br label %959

959:                                              ; preds = %958, %185, %166, %152
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %31) #10
  br label %960

960:                                              ; preds = %959, %148
  call void @llvm.lifetime.end.p0(i64 512, ptr %31) #10
  %961 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %25, i32 0, i32 0
  %962 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %961, i64 3
  br label %970

963:                                              ; preds = %963, %955
  %964 = phi ptr [ %957, %955 ], [ %965, %963 ]
  %965 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %964, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %965) #10
  %966 = icmp eq ptr %965, %956
  br i1 %966, label %967, label %963

967:                                              ; preds = %963
  call void @llvm.lifetime.end.p0(i64 96, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #10
  %968 = getelementptr inbounds [1 x %"class.std::__cxx11::basic_string"], ptr %13, i32 0, i32 0
  %969 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %968, i64 1
  br label %978

970:                                              ; preds = %970, %960
  %971 = phi ptr [ %962, %960 ], [ %972, %970 ]
  %972 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %971, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %972) #10
  %973 = icmp eq ptr %972, %961
  br i1 %973, label %974, label %970

974:                                              ; preds = %970
  br label %975

975:                                              ; preds = %974, %147
  call void @llvm.lifetime.end.p0(i64 96, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #10
  %976 = getelementptr inbounds [1 x %"class.std::__cxx11::basic_string"], ptr %13, i32 0, i32 0
  %977 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %976, i64 1
  br label %984

978:                                              ; preds = %978, %967
  %979 = phi ptr [ %969, %967 ], [ %980, %978 ]
  %980 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %979, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %980) #10
  %981 = icmp eq ptr %980, %968
  br i1 %981, label %982, label %978

982:                                              ; preds = %978
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #10
  %983 = load i32, ptr %1, align 4
  ret i32 %983

984:                                              ; preds = %984, %975
  %985 = phi ptr [ %977, %975 ], [ %986, %984 ]
  %986 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %985, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %986) #10
  %987 = icmp eq ptr %986, %976
  br i1 %987, label %988, label %984

988:                                              ; preds = %984
  br label %989

989:                                              ; preds = %988, %123
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  br label %990

990:                                              ; preds = %989, %106
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #10
  br label %991

991:                                              ; preds = %990
  %992 = load ptr, ptr %11, align 8
  %993 = load i32, ptr %12, align 4
  %994 = insertvalue { ptr, i32 } poison, ptr %992, 0
  %995 = insertvalue { ptr, i32 } %994, i32 %993, 1
  resume { ptr, i32 } %995
}

declare i32 @cudaEventCreate(ptr noundef) #3

declare i32 @cudaEventRecord(ptr noundef, ptr noundef) #3

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #0 align 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) #8

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #9

declare noundef ptr @_ZN12cudaCompress14createInstanceEijjjj(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL10cudaMallocIsE9cudaErrorPPT_m(ptr noundef, i64 noundef) #8

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL10cudaMallocItE9cudaErrorPPT_m(ptr noundef, i64 noundef) #8

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

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

declare i32 @cudaMemcpy(ptr noundef, ptr noundef, i64 noundef, i32 noundef) #3

declare i32 @cudaMemset(ptr noundef, i32 noundef, i64 noundef) #3

declare void @_ZN12cudaCompress15compressImageLLEPNS_8InstanceERSt6vectorIjSaIjEEPsS6_S6_Ptiiimi(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) #3

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

declare void @_ZN12cudaCompress13compressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, float noundef, float noundef, i32 noundef, float noundef, float noundef) #3

declare i32 @cudaEventSynchronize(ptr noundef) #3

declare i32 @cudaEventElapsedTime(ptr noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #0 align 2

declare void @_ZN12cudaCompress17decompressImageLLEPNS_8InstanceERSt6vectorIjSaIjEEPsS6_S6_Ptiiimi(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) #3

declare void @_ZN12cudaCompress15decompressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, float noundef, float noundef, i32 noundef, float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z11computePSNRIsEdPKT_S2_jjj(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) #0 align 2

declare i32 @cudaFree(ptr noundef) #3

declare void @_ZN12cudaCompress15destroyInstanceEPNS_8InstanceE(ptr noundef) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIjSaIjEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 norecurse 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 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !8, i64 0}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !7, i64 0}
!29 = distinct !{!29, !16}
!30 = distinct !{!30, !16}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.3 }
%union.anon.3 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl" }
%"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl" = type { %"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.6" = type { i8 }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.11" = type { i8 }

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@__const.main.shapes = external hidden unnamed_addr constant [1 x [3 x i64]], align 16
@__const.main.chunkshapes = external hidden unnamed_addr constant [1 x [3 x i64]], align 16
@__const.main.filters = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.quant_steps = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.tiles = external hidden unnamed_addr constant [3 x i32], align 4
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [37 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16cutilDeviceInitSi(i32 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 3) i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator.0", align 1
  %6 = alloca [1 x %"class.std::__cxx11::basic_string"], align 16
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca [3 x i32], align 4
  %9 = alloca [3 x %"class.std::__cxx11::basic_string"], align 16
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca %"class.std::allocator.0", align 1
  %12 = alloca %"class.std::allocator.0", align 1
  %13 = alloca %"class.std::basic_ofstream", align 8
  %14 = alloca float, align 4
  %15 = alloca %"class.std::vector.4", align 8
  %16 = alloca %"class.std::allocator.6", align 1
  %17 = alloca %"class.std::basic_ifstream", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::vector.9", align 8
  %26 = alloca %"class.std::allocator.11", align 1
  %27 = alloca %"class.std::basic_ofstream", align 8
  %28 = alloca %"class.std::vector.4", align 8
  %29 = alloca %"class.std::allocator.6", align 1
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = tail call noundef i32 @_Z16cutilDeviceInitSi(i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %35 = call i32 @cudaEventCreate(ptr noundef nonnull %1)
  %36 = call i32 @cudaEventCreate(ptr noundef nonnull %2)
  %37 = load ptr, ptr %1, align 8, !tbaa !5
  %38 = call i32 @cudaEventRecord(ptr noundef %37, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %39 unwind label %49

39:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %40 unwind label %51

40:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %41 unwind label %.thread

41:                                               ; preds = %40
  %42 = getelementptr inbounds i8, ptr %9, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %43 unwind label %54

43:                                               ; preds = %41
  %44 = getelementptr inbounds i8, ptr %9, i64 64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %45 unwind label %56

45:                                               ; preds = %43
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %13) #9
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef nonnull @.str.13, i32 noundef 16)
          to label %46 unwind label %63

46:                                               ; preds = %45
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.14)
          to label %.preheader294.preheader unwind label %65

.preheader294.preheader:                          ; preds = %46
  %48 = 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) %13, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %67 unwind label %77

49:                                               ; preds = %0
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #9
  br label %449

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #9
  br label %.loopexit

.thread:                                          ; preds = %40
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #9
  br label %.loopexit289

54:                                               ; preds = %41
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %43
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #9
  br label %58

58:                                               ; preds = %54, %56
  %.0235 = phi ptr [ %44, %56 ], [ %42, %54 ]
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #9
  br label %59

59:                                               ; preds = %58, %59
  %60 = phi ptr [ %61, %59 ], [ %.0235, %58 ]
  %61 = getelementptr inbounds i8, ptr %60, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #9
  %62 = icmp eq ptr %61, %9
  br i1 %62, label %.loopexit289, label %59

63:                                               ; preds = %45
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit289.loopexit

65:                                               ; preds = %84, %79, %75, %46
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %446

67:                                               ; preds = %.preheader294.preheader
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @.str.15)
          to label %.preheader294.1 unwind label %77

.preheader294.1:                                  ; preds = %67
  %69 = 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) %13, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %70 unwind label %77

70:                                               ; preds = %.preheader294.1
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @.str.15)
          to label %.preheader294.2 unwind label %77

.preheader294.2:                                  ; preds = %70
  %72 = 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) %13, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %73 unwind label %77

73:                                               ; preds = %.preheader294.2
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.15)
          to label %75 unwind label %77

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.1)
          to label %79 unwind label %65

77:                                               ; preds = %73, %.preheader294.2, %70, %.preheader294.1, %67, %.preheader294.preheader
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %446

79:                                               ; preds = %75
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.16)
          to label %.preheader293.preheader unwind label %65

.preheader293.preheader:                          ; preds = %79
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.17)
          to label %.preheader293.1 unwind label %86

.preheader293.1:                                  ; preds = %.preheader293.preheader
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.17)
          to label %.preheader293.2 unwind label %86

.preheader293.2:                                  ; preds = %.preheader293.1
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.17)
          to label %84 unwind label %86

84:                                               ; preds = %.preheader293.2
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.1)
          to label %88 unwind label %65

86:                                               ; preds = %.preheader293.2, %.preheader293.1, %.preheader293.preheader
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %446

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  store float 0.000000e+00, ptr %14, align 4, !tbaa !9
  %89 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.shapes, i64 16), align 16
  %90 = trunc i64 %89 to i32
  %91 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.shapes, i64 8), align 8
  %92 = trunc i64 %91 to i32
  %93 = load i64, ptr @__const.main.shapes, align 16
  %94 = trunc i64 %93 to i32
  %95 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.chunkshapes, i64 16), align 16
  %96 = trunc i64 %95 to i32
  %97 = load i64, ptr getelementptr inbounds (i8, ptr @__const.main.chunkshapes, i64 8), align 8
  %98 = trunc i64 %97 to i32
  %99 = load i64, ptr @__const.main.chunkshapes, align 16
  %100 = trunc i64 %99 to i32
  %101 = add i32 %90, -1
  %102 = add i32 %101, %96
  %103 = add i32 %92, -1
  %104 = add i32 %103, %98
  %105 = add i32 %94, -1
  %106 = add i32 %105, %100
  %107 = mul nsw i32 %92, %90
  %108 = mul nsw i32 %107, %94
  %109 = sext i32 %108 to i64
  %110 = shl nsw i64 %109, 1
  %factor.op.mul = mul i64 %95, %97
  %factor.op.mul335 = mul i64 %factor.op.mul, %99
  %.reass.reass = shl i64 %factor.op.mul335, 32
  %111 = ashr exact i64 %.reass.reass, 32
  %112 = ashr exact i64 %.reass.reass, 30
  %113 = trunc i64 %112 to i32
  %114 = ashr exact i64 %.reass.reass, 31
  %115 = uitofp i64 %110 to float
  %116 = fpext float %115 to double
  %117 = fmul double %116, 0x3F50000000000000
  %118 = fmul double %117, 0x3F50000000000000
  %119 = sext i32 %107 to i64
  %120 = shl nsw i64 %119, 1
  br label %121

121:                                              ; preds = %427, %88
  %122 = phi i1 [ true, %88 ], [ false, %427 ]
  %.0 = phi i32 [ 0, %88 ], [ %.1, %427 ]
  br i1 %122, label %123, label %.thread287

123:                                              ; preds = %121
  %124 = load ptr, ptr @stdout, align 8, !tbaa !5
  %125 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.18, ptr noundef %125) #9
  %127 = 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) %13, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %128 unwind label %141

128:                                              ; preds = %123
  %129 = sdiv i32 %102, %96
  %130 = sdiv i32 %104, %98
  %131 = sdiv i32 %106, %100
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #9
  call void @_ZNSaIsEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  invoke void @_ZNSt6vectorIsSaIsEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %109, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %132 unwind label %143

132:                                              ; preds = %128
  call void @_ZNSt15__new_allocatorIsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %133 unwind label %145

133:                                              ; preds = %132
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.19)
          to label %134 unwind label %147

134:                                              ; preds = %133
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %17, ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef 4)
          to label %135 unwind label %149

135:                                              ; preds = %134
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #9
  %136 = load ptr, ptr %17, align 8, !tbaa !11
  %137 = getelementptr i8, ptr %136, i64 -24
  %138 = load i64, ptr %137, align 8
  %139 = getelementptr inbounds i8, ptr %17, i64 %138
  %140 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %139)
  br i1 %140, label %155, label %427

141:                                              ; preds = %123
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %445

143:                                              ; preds = %128
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  br label %430

145:                                              ; preds = %132
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %152

147:                                              ; preds = %133
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %151

149:                                              ; preds = %134
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  br label %151

151:                                              ; preds = %149, %147
  %.pn249 = phi { ptr, i32 } [ %150, %149 ], [ %148, %147 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %152

152:                                              ; preds = %151, %145
  %.pn249.pn = phi { ptr, i32 } [ %.pn249, %151 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #9
  br label %429

153:                                              ; preds = %160, %158, %155
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %428

155:                                              ; preds = %135
  %156 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %157 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef %156, i64 noundef %110)
          to label %158 unwind label %153

158:                                              ; preds = %155
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %17)
          to label %.preheader292 unwind label %153

.preheader292:                                    ; preds = %158
  %factor.op.mul336 = mul i32 %130, %131
  %.reass = mul i32 %factor.op.mul336, %129
  %159 = zext i32 %.reass to i64
  %.not = icmp eq i32 %.reass, 0
  br label %162

160:                                              ; preds = %401
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.1)
          to label %427 unwind label %153

162:                                              ; preds = %.preheader292, %401
  %.0234337 = phi i64 [ 0, %.preheader292 ], [ %402, %401 ]
  %163 = load ptr, ptr @stdout, align 8, !tbaa !5
  %164 = getelementptr inbounds [3 x %"class.std::__cxx11::basic_string"], ptr %9, i64 0, i64 %.0234337
  %165 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %164) #9
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef nonnull @.str.20, ptr noundef %165) #9
  %167 = getelementptr inbounds [3 x i32], ptr @__const.main.quant_steps, i64 0, i64 %.0234337
  %168 = load i32, ptr %167, align 4, !tbaa !13
  %.fr343 = freeze i32 %168
  %169 = uitofp i32 %.fr343 to float
  %170 = fpext float %169 to double
  %171 = fdiv double %170, 1.000000e+03
  %172 = call noundef float @_ZSt4sqrtf(float noundef 1.562500e+00)
  %173 = fpext float %172 to double
  %174 = fmul double %171, %173
  %175 = fmul double %174, 8.000000e-01
  %176 = fptrunc double %175 to float
  %177 = invoke noundef ptr @_ZN12cudaCompress14createInstanceEijjjj(i32 noundef 0, i32 noundef 2, i32 noundef %113, i32 noundef 128, i32 noundef 16)
          to label %178 unwind label %194

178:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  store ptr null, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  store ptr null, ptr %22, align 8, !tbaa !5
  %179 = invoke noundef i32 @_ZL10cudaMallocIsE9cudaErrorPPT_m(ptr noundef nonnull %20, i64 noundef %110)
          to label %180 unwind label %196

180:                                              ; preds = %178
  %181 = invoke noundef i32 @_ZL10cudaMallocIsE9cudaErrorPPT_m(ptr noundef nonnull %22, i64 noundef %112)
          to label %182 unwind label %196

182:                                              ; preds = %180
  %183 = invoke noundef i32 @_ZL10cudaMallocIsE9cudaErrorPPT_m(ptr noundef nonnull %21, i64 noundef %112)
          to label %184 unwind label %196

184:                                              ; preds = %182
  %185 = invoke noundef i32 @_ZL10cudaMallocItE9cudaErrorPPT_m(ptr noundef nonnull %3, i64 noundef %114)
          to label %186 unwind label %196

186:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #9
  %187 = invoke i32 @cudaEventCreate(ptr noundef nonnull %23)
          to label %188 unwind label %198

188:                                              ; preds = %186
  %189 = invoke i32 @cudaEventCreate(ptr noundef nonnull %24)
          to label %190 unwind label %198

190:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #9
  call void @_ZNSaISt6vectorIjSaIjEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #9
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %159, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %191 unwind label %200

191:                                              ; preds = %190
  call void @_ZNSt15__new_allocatorISt6vectorIjSaIjEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #9
  %192 = load ptr, ptr %23, align 8, !tbaa !5
  %193 = invoke i32 @cudaEventRecord(ptr noundef %192, ptr noundef null)
          to label %204 unwind label %202

194:                                              ; preds = %162
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %428

196:                                              ; preds = %184, %182, %180, %178
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %426

198:                                              ; preds = %188, %186
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %425

200:                                              ; preds = %190
  %201 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIjSaIjEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #9
  br label %424

202:                                              ; preds = %253, %250, %.critedge, %191
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %423

204:                                              ; preds = %191
  %205 = load ptr, ptr %20, align 8, !tbaa !5
  %206 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %207 = invoke i32 @cudaMemcpy(ptr noundef %205, ptr noundef %206, i64 noundef %110, i32 noundef 1)
          to label %.preheader291 unwind label %230

.preheader291:                                    ; preds = %204
  br i1 %.not, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader291
  %208 = fcmp oeq float %176, 0.000000e+00
  %209 = getelementptr inbounds [3 x i32], ptr @__const.main.filters, i64 0, i64 %.0234337
  %210 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 %.0234337
  %211 = getelementptr inbounds [3 x i32], ptr @__const.main.tiles, i64 0, i64 %.0234337
  br i1 %208, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %225
  %.0198324.us = phi i64 [ %226, %225 ], [ 0, %.lr.ph ]
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = invoke i32 @cudaMemset(ptr noundef %212, i32 noundef 0, i64 noundef %114)
          to label %214 unwind label %.split.us

214:                                              ; preds = %.lr.ph.split.us
  %215 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %.0198324.us) #9
  %216 = load ptr, ptr %20, align 8, !tbaa !5
  %217 = mul nsw i64 %.0198324.us, %111
  %218 = getelementptr inbounds i16, ptr %216, i64 %217
  %219 = load ptr, ptr %21, align 8, !tbaa !5
  %220 = load ptr, ptr %22, align 8, !tbaa !5
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = load i32, ptr %209, align 4, !tbaa !13
  %223 = zext i32 %222 to i64
  %224 = load i32, ptr %211, align 4, !tbaa !13
  invoke void @_ZN12cudaCompress15compressImageLLEPNS_8InstanceERSt6vectorIjSaIjEEPsS6_S6_Ptiiimi(ptr noundef %177, ptr noundef nonnull align 8 dereferenceable(24) %215, ptr noundef %218, ptr noundef %219, ptr noundef %220, ptr noundef %221, i32 noundef %96, i32 noundef %98, i32 noundef %100, i64 noundef %223, i32 noundef %224)
          to label %225 unwind label %.split.us

225:                                              ; preds = %214
  %226 = add nuw nsw i64 %.0198324.us, 1
  %exitcond376.not = icmp eq i64 %226, %159
  br i1 %exitcond376.not, label %.critedge, label %.lr.ph.split.us, !llvm.loop !15

.split.us:                                        ; preds = %214, %.lr.ph.split.us
  %227 = landingpad { ptr, i32 }
          cleanup
  br label %423

.critedge:                                        ; preds = %248, %225, %.preheader291
  %228 = load ptr, ptr %24, align 8, !tbaa !5
  %229 = invoke i32 @cudaEventRecord(ptr noundef %228, ptr noundef null)
          to label %250 unwind label %202

230:                                              ; preds = %204
  %231 = landingpad { ptr, i32 }
          cleanup
  br label %423

.lr.ph.split:                                     ; preds = %.lr.ph, %248
  %.0198324 = phi i64 [ %249, %248 ], [ 0, %.lr.ph ]
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = invoke i32 @cudaMemset(ptr noundef %232, i32 noundef 0, i64 noundef %114)
          to label %234 unwind label %.split

234:                                              ; preds = %.lr.ph.split
  %235 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %.0198324) #9
  %236 = load ptr, ptr %20, align 8, !tbaa !5
  %237 = mul nsw i64 %.0198324, %111
  %238 = getelementptr inbounds i16, ptr %236, i64 %237
  %239 = load ptr, ptr %21, align 8, !tbaa !5
  %240 = load ptr, ptr %22, align 8, !tbaa !5
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = load i32, ptr %209, align 4, !tbaa !13
  %243 = zext i32 %242 to i64
  %244 = load i32, ptr %210, align 4, !tbaa !13
  %245 = uitofp i32 %244 to float
  %246 = load i32, ptr %211, align 4, !tbaa !13
  invoke void @_ZN12cudaCompress13compressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef %177, ptr noundef nonnull align 8 dereferenceable(24) %235, ptr noundef %238, ptr noundef %239, ptr noundef %240, ptr noundef %241, i32 noundef %96, i32 noundef %98, i32 noundef %100, i64 noundef %243, float noundef %176, float noundef %245, i32 noundef %246, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %248 unwind label %.split

.split:                                           ; preds = %234, %.lr.ph.split
  %247 = landingpad { ptr, i32 }
          cleanup
  br label %423

248:                                              ; preds = %234
  %249 = add nuw nsw i64 %.0198324, 1
  %exitcond.not = icmp eq i64 %249, %159
  br i1 %exitcond.not, label %.critedge, label %.lr.ph.split, !llvm.loop !15

250:                                              ; preds = %.critedge
  %251 = load ptr, ptr %24, align 8, !tbaa !5
  %252 = invoke i32 @cudaEventSynchronize(ptr noundef %251)
          to label %253 unwind label %202

253:                                              ; preds = %250
  %254 = load ptr, ptr %23, align 8, !tbaa !5
  %255 = load ptr, ptr %24, align 8, !tbaa !5
  %256 = invoke i32 @cudaEventElapsedTime(ptr noundef nonnull %14, ptr noundef %254, ptr noundef %255)
          to label %.preheader290 unwind label %202

.preheader290:                                    ; preds = %253
  br i1 %.not, label %._crit_edge, label %.lr.ph327

._crit_edge:                                      ; preds = %.lr.ph327, %.preheader290
  %.0197.lcssa = phi i32 [ 0, %.preheader290 ], [ %279, %.lr.ph327 ]
  %257 = uitofp i32 %.0197.lcssa to float
  %258 = fdiv float %257, %115
  %259 = fdiv float 1.000000e+00, %258
  %260 = fmul float %257, 0x3F50000000000000
  %261 = fpext float %260 to double
  %262 = fmul float %258, 1.000000e+02
  %263 = fpext float %262 to double
  %264 = fpext float %259 to double
  %265 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, double noundef %261, double noundef %263, double noundef %264)
  %266 = load float, ptr %14, align 4, !tbaa !9
  %267 = fpext float %266 to double
  %268 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, double noundef %267)
  %269 = load float, ptr %14, align 4, !tbaa !9
  %270 = fpext float %269 to double
  %271 = fdiv double %118, %270
  %272 = fmul double %271, 1.000000e+03
  %273 = fptrunc double %272 to float
  %274 = fpext float %273 to double
  %275 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, double noundef %274)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %27) #9
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %27)
          to label %281 unwind label %308

.lr.ph327:                                        ; preds = %.preheader290, %.lr.ph327
  %.0196326 = phi i64 [ %280, %.lr.ph327 ], [ 0, %.preheader290 ]
  %.0197325 = phi i32 [ %279, %.lr.ph327 ], [ 0, %.preheader290 ]
  %276 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %.0196326) #9
  %277 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %276) #9
  %.tr = trunc i64 %277 to i32
  %278 = shl i32 %.tr, 2
  %279 = add i32 %278, %.0197325
  %280 = add nuw nsw i64 %.0196326, 1
  %exitcond377.not = icmp eq i64 %280, %159
  br i1 %exitcond377.not, label %._crit_edge, label %.lr.ph327, !llvm.loop !17

281:                                              ; preds = %._crit_edge
  %282 = load ptr, ptr %20, align 8, !tbaa !5
  %283 = invoke i32 @cudaMemset(ptr noundef %282, i32 noundef 0, i64 noundef %120)
          to label %284 unwind label %310

284:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #9
  call void @_ZNSaIsEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  invoke void @_ZNSt6vectorIsSaIsEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %109, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %285 unwind label %312

285:                                              ; preds = %284
  call void @_ZNSt15__new_allocatorIsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #9
  %286 = load ptr, ptr %23, align 8, !tbaa !5
  %287 = invoke i32 @cudaEventRecord(ptr noundef %286, ptr noundef null)
          to label %.preheader unwind label %314

.preheader:                                       ; preds = %285
  br i1 %.not, label %._crit_edge330, label %.lr.ph329

.lr.ph329:                                        ; preds = %.preheader
  %288 = fcmp oeq float %176, 0.000000e+00
  %289 = getelementptr inbounds [3 x i32], ptr @__const.main.filters, i64 0, i64 %.0234337
  %290 = getelementptr inbounds [3 x i32], ptr %8, i64 0, i64 %.0234337
  %291 = getelementptr inbounds [3 x i32], ptr @__const.main.tiles, i64 0, i64 %.0234337
  br i1 %288, label %.lr.ph329.split.us, label %.lr.ph329.split

.lr.ph329.split.us:                               ; preds = %.lr.ph329, %305
  %.0194328.us = phi i64 [ %306, %305 ], [ 0, %.lr.ph329 ]
  %292 = load ptr, ptr %3, align 8, !tbaa !5
  %293 = invoke i32 @cudaMemset(ptr noundef %292, i32 noundef 0, i64 noundef %114)
          to label %294 unwind label %.split332.us

294:                                              ; preds = %.lr.ph329.split.us
  %295 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %.0194328.us) #9
  %296 = load ptr, ptr %20, align 8, !tbaa !5
  %297 = mul nsw i64 %.0194328.us, %111
  %298 = getelementptr inbounds i16, ptr %296, i64 %297
  %299 = load ptr, ptr %21, align 8, !tbaa !5
  %300 = load ptr, ptr %22, align 8, !tbaa !5
  %301 = load ptr, ptr %3, align 8, !tbaa !5
  %302 = load i32, ptr %289, align 4, !tbaa !13
  %303 = zext i32 %302 to i64
  %304 = load i32, ptr %291, align 4, !tbaa !13
  invoke void @_ZN12cudaCompress17decompressImageLLEPNS_8InstanceERSt6vectorIjSaIjEEPsS6_S6_Ptiiimi(ptr noundef %177, ptr noundef nonnull align 8 dereferenceable(24) %295, ptr noundef %298, ptr noundef %299, ptr noundef %300, ptr noundef %301, i32 noundef %96, i32 noundef %98, i32 noundef %100, i64 noundef %303, i32 noundef %304)
          to label %305 unwind label %.split332.us

305:                                              ; preds = %294
  %306 = add nuw nsw i64 %.0194328.us, 1
  %exitcond379.not = icmp eq i64 %306, %159
  br i1 %exitcond379.not, label %._crit_edge330, label %.lr.ph329.split.us, !llvm.loop !18

.split332.us:                                     ; preds = %294, %.lr.ph329.split.us
  %307 = landingpad { ptr, i32 }
          cleanup
  br label %419

308:                                              ; preds = %._crit_edge
  %309 = landingpad { ptr, i32 }
          cleanup
  br label %422

310:                                              ; preds = %281
  %311 = landingpad { ptr, i32 }
          cleanup
  br label %421

312:                                              ; preds = %284
  %313 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIsED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #9
  br label %420

314:                                              ; preds = %344, %341, %.critedge284, %285
  %315 = landingpad { ptr, i32 }
          cleanup
  br label %419

._crit_edge330:                                   ; preds = %335, %305, %.preheader
  %316 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  %317 = load ptr, ptr %20, align 8, !tbaa !5
  %318 = invoke i32 @cudaMemcpy(ptr noundef %316, ptr noundef %317, i64 noundef %110, i32 noundef 2)
          to label %.critedge284 unwind label %339

.lr.ph329.split:                                  ; preds = %.lr.ph329, %335
  %.0194328 = phi i64 [ %336, %335 ], [ 0, %.lr.ph329 ]
  %319 = load ptr, ptr %3, align 8, !tbaa !5
  %320 = invoke i32 @cudaMemset(ptr noundef %319, i32 noundef 0, i64 noundef %114)
          to label %321 unwind label %.split332

321:                                              ; preds = %.lr.ph329.split
  %322 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %.0194328) #9
  %323 = load ptr, ptr %20, align 8, !tbaa !5
  %324 = mul nsw i64 %.0194328, %111
  %325 = getelementptr inbounds i16, ptr %323, i64 %324
  %326 = load ptr, ptr %21, align 8, !tbaa !5
  %327 = load ptr, ptr %22, align 8, !tbaa !5
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = load i32, ptr %289, align 4, !tbaa !13
  %330 = zext i32 %329 to i64
  %331 = load i32, ptr %290, align 4, !tbaa !13
  %332 = uitofp i32 %331 to float
  %333 = load i32, ptr %291, align 4, !tbaa !13
  invoke void @_ZN12cudaCompress15decompressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef %177, ptr noundef nonnull align 8 dereferenceable(24) %322, ptr noundef %325, ptr noundef %326, ptr noundef %327, ptr noundef %328, i32 noundef %96, i32 noundef %98, i32 noundef %100, i64 noundef %330, float noundef %176, float noundef %332, i32 noundef %333, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %335 unwind label %.split332

.split332:                                        ; preds = %321, %.lr.ph329.split
  %334 = landingpad { ptr, i32 }
          cleanup
  br label %419

335:                                              ; preds = %321
  %336 = add nuw nsw i64 %.0194328, 1
  %exitcond378.not = icmp eq i64 %336, %159
  br i1 %exitcond378.not, label %._crit_edge330, label %.lr.ph329.split, !llvm.loop !18

.critedge284:                                     ; preds = %._crit_edge330
  %337 = load ptr, ptr %24, align 8, !tbaa !5
  %338 = invoke i32 @cudaEventRecord(ptr noundef %337, ptr noundef null)
          to label %341 unwind label %314

339:                                              ; preds = %._crit_edge330
  %340 = landingpad { ptr, i32 }
          cleanup
  br label %419

341:                                              ; preds = %.critedge284
  %342 = load ptr, ptr %24, align 8, !tbaa !5
  %343 = invoke i32 @cudaEventSynchronize(ptr noundef %342)
          to label %344 unwind label %314

344:                                              ; preds = %341
  %345 = load ptr, ptr %23, align 8, !tbaa !5
  %346 = load ptr, ptr %24, align 8, !tbaa !5
  %347 = invoke i32 @cudaEventElapsedTime(ptr noundef nonnull %14, ptr noundef %345, ptr noundef %346)
          to label %348 unwind label %314

348:                                              ; preds = %344
  %349 = load float, ptr %14, align 4, !tbaa !9
  %350 = fpext float %349 to double
  %351 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, double noundef %350)
  %352 = load float, ptr %14, align 4, !tbaa !9
  %353 = fpext float %352 to double
  %354 = fdiv double %118, %353
  %355 = fmul double %354, 1.000000e+03
  %356 = fptrunc double %355 to float
  %357 = fpext float %356 to double
  %358 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, double noundef %357)
  %359 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %360 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  %361 = invoke noundef double @_Z11computePSNRIsEdPKT_S2_jjj(ptr noundef %359, ptr noundef %360, i32 noundef %108, i32 noundef 1, i32 noundef 0)
          to label %362 unwind label %403

362:                                              ; preds = %348
  %363 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, double noundef %361)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %364 unwind label %405

364:                                              ; preds = %362
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.27)
          to label %365 unwind label %407

365:                                              ; preds = %364
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %31, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %164)
          to label %366 unwind label %409

366:                                              ; preds = %365
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.19)
          to label %367 unwind label %411

367:                                              ; preds = %366
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %27, ptr noundef nonnull align 8 dereferenceable(32) %30, i32 noundef 4)
          to label %368 unwind label %413

368:                                              ; preds = %367
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #9
  %369 = call noundef ptr @_ZNSt6vectorIsSaIsEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  %370 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef %369, i64 noundef %110)
          to label %371 unwind label %403

371:                                              ; preds = %368
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %27)
          to label %372 unwind label %403

372:                                              ; preds = %371
  %373 = load ptr, ptr %3, align 8, !tbaa !5
  %374 = invoke i32 @cudaFree(ptr noundef %373)
          to label %375 unwind label %403

375:                                              ; preds = %372
  %376 = load ptr, ptr %20, align 8, !tbaa !5
  %377 = invoke i32 @cudaFree(ptr noundef %376)
          to label %378 unwind label %403

378:                                              ; preds = %375
  %379 = load ptr, ptr %21, align 8, !tbaa !5
  %380 = invoke i32 @cudaFree(ptr noundef %379)
          to label %381 unwind label %403

381:                                              ; preds = %378
  %382 = load ptr, ptr %22, align 8, !tbaa !5
  %383 = invoke i32 @cudaFree(ptr noundef %382)
          to label %384 unwind label %403

384:                                              ; preds = %381
  invoke void @_ZN12cudaCompress15destroyInstanceEPNS_8InstanceE(ptr noundef %177)
          to label %385 unwind label %403

385:                                              ; preds = %384
  %386 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.14)
          to label %387 unwind label %403

387:                                              ; preds = %385
  %388 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %386, float noundef %259)
          to label %389 unwind label %403

389:                                              ; preds = %387
  %390 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %388, ptr noundef nonnull @.str.14)
          to label %391 unwind label %403

391:                                              ; preds = %389
  %392 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %390, float noundef %273)
          to label %393 unwind label %403

393:                                              ; preds = %391
  %394 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %392, ptr noundef nonnull @.str.14)
          to label %395 unwind label %403

395:                                              ; preds = %393
  %396 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %394, float noundef %356)
          to label %397 unwind label %403

397:                                              ; preds = %395
  %398 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %396, ptr noundef nonnull @.str.14)
          to label %399 unwind label %403

399:                                              ; preds = %397
  %400 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %398, double noundef %361)
          to label %401 unwind label %403

401:                                              ; preds = %399
  call void @_ZNSt6vectorIsSaIsEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %27) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %27) #9
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  %402 = add nuw nsw i64 %.0234337, 1
  %exitcond380.not = icmp eq i64 %402, 3
  br i1 %exitcond380.not, label %160, label %162, !llvm.loop !19

403:                                              ; preds = %399, %397, %395, %393, %391, %389, %387, %385, %384, %381, %378, %375, %372, %371, %368, %348
  %404 = landingpad { ptr, i32 }
          cleanup
  br label %419

405:                                              ; preds = %362
  %406 = landingpad { ptr, i32 }
          cleanup
  br label %418

407:                                              ; preds = %364
  %408 = landingpad { ptr, i32 }
          cleanup
  br label %417

409:                                              ; preds = %365
  %410 = landingpad { ptr, i32 }
          cleanup
  br label %416

411:                                              ; preds = %366
  %412 = landingpad { ptr, i32 }
          cleanup
  br label %415

413:                                              ; preds = %367
  %414 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  br label %415

415:                                              ; preds = %413, %411
  %.pn252 = phi { ptr, i32 } [ %414, %413 ], [ %412, %411 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  br label %416

416:                                              ; preds = %415, %409
  %.pn252.pn = phi { ptr, i32 } [ %.pn252, %415 ], [ %410, %409 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  br label %417

417:                                              ; preds = %416, %407
  %.pn252.pn.pn = phi { ptr, i32 } [ %.pn252.pn, %416 ], [ %408, %407 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  br label %418

418:                                              ; preds = %417, %405
  %.pn252.pn.pn.pn = phi { ptr, i32 } [ %.pn252.pn.pn, %417 ], [ %406, %405 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #9
  br label %419

419:                                              ; preds = %.split332, %.split332.us, %403, %418, %339, %314
  %.pn259.pn = phi { ptr, i32 } [ %315, %314 ], [ %340, %339 ], [ %404, %403 ], [ %.pn252.pn.pn.pn, %418 ], [ %334, %.split332 ], [ %307, %.split332.us ]
  call void @_ZNSt6vectorIsSaIsEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  br label %420

420:                                              ; preds = %419, %312
  %.pn259.pn.pn = phi { ptr, i32 } [ %.pn259.pn, %419 ], [ %313, %312 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  br label %421

421:                                              ; preds = %420, %310
  %.pn259.pn.pn.pn = phi { ptr, i32 } [ %.pn259.pn.pn, %420 ], [ %311, %310 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %27) #9
  br label %422

422:                                              ; preds = %421, %308
  %.pn259.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn259.pn.pn.pn, %421 ], [ %309, %308 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %27) #9
  br label %423

423:                                              ; preds = %.split, %.split.us, %230, %422, %202
  %.pn265.pn = phi { ptr, i32 } [ %.pn259.pn.pn.pn.pn, %422 ], [ %203, %202 ], [ %231, %230 ], [ %247, %.split ], [ %227, %.split.us ]
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  br label %424

424:                                              ; preds = %423, %200
  %.pn265.pn.pn = phi { ptr, i32 } [ %.pn265.pn, %423 ], [ %201, %200 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #9
  br label %425

425:                                              ; preds = %424, %198
  %.pn265.pn.pn.pn = phi { ptr, i32 } [ %.pn265.pn.pn, %424 ], [ %199, %198 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  br label %426

426:                                              ; preds = %425, %196
  %.pn265.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn265.pn.pn.pn, %425 ], [ %197, %196 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  br label %428

427:                                              ; preds = %160, %135
  %.1 = phi i32 [ 2, %135 ], [ %.0, %160 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %17) #9
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %17) #9
  call void @_ZNSt6vectorIsSaIsEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br i1 %140, label %121, label %.loopexit383, !llvm.loop !20

428:                                              ; preds = %194, %426, %153
  %.pn265.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %154, %153 ], [ %.pn265.pn.pn.pn.pn, %426 ], [ %195, %194 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %17) #9
  br label %429

429:                                              ; preds = %428, %152
  %.pn265.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn265.pn.pn.pn.pn.pn.pn, %428 ], [ %.pn249.pn, %152 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %17) #9
  call void @_ZNSt6vectorIsSaIsEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  br label %430

430:                                              ; preds = %429, %143
  %.pn265.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn265.pn.pn.pn.pn.pn.pn.pn, %429 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %445

.thread287:                                       ; preds = %121
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %431 unwind label %441

431:                                              ; preds = %.thread287
  %432 = load ptr, ptr %2, align 8, !tbaa !5
  %433 = invoke i32 @cudaEventRecord(ptr noundef %432, ptr noundef null)
          to label %434 unwind label %441

434:                                              ; preds = %431
  %435 = load ptr, ptr %2, align 8, !tbaa !5
  %436 = invoke i32 @cudaEventSynchronize(ptr noundef %435)
          to label %437 unwind label %441

437:                                              ; preds = %434
  %438 = load ptr, ptr %1, align 8, !tbaa !5
  %439 = load ptr, ptr %2, align 8, !tbaa !5
  %440 = invoke i32 @cudaEventElapsedTime(ptr noundef nonnull %14, ptr noundef %438, ptr noundef %439)
          to label %.loopexit383 unwind label %441

441:                                              ; preds = %437, %434, %431, %.thread287
  %442 = landingpad { ptr, i32 }
          cleanup
  br label %445

.loopexit383:                                     ; preds = %427, %437
  %.3 = phi i32 [ 0, %437 ], [ %.1, %427 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %13) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %13) #9
  %443 = getelementptr inbounds i8, ptr %9, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %443) #9
  %444 = getelementptr inbounds i8, ptr %9, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %444) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  ret i32 %.3

445:                                              ; preds = %141, %430, %441
  %.pn265.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %442, %441 ], [ %.pn265.pn.pn.pn.pn.pn.pn.pn.pn, %430 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  br label %446

446:                                              ; preds = %445, %86, %77, %65
  %.pn277 = phi { ptr, i32 } [ %78, %77 ], [ %87, %86 ], [ %.pn265.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %445 ], [ %66, %65 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %13) #9
  br label %.loopexit289.loopexit

.loopexit289.loopexit:                            ; preds = %446, %63
  %.pn277.pn = phi { ptr, i32 } [ %.pn277, %446 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %13) #9
  %447 = getelementptr inbounds i8, ptr %9, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %447) #9
  %448 = getelementptr inbounds i8, ptr %9, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %448) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %.loopexit289

.loopexit289:                                     ; preds = %59, %.loopexit289.loopexit, %.thread
  %.pn277.pn.pn = phi { ptr, i32 } [ %53, %.thread ], [ %.pn277.pn, %.loopexit289.loopexit ], [ %.pn, %59 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit289, %51
  %.pn277.pn.pn.pn = phi { ptr, i32 } [ %52, %51 ], [ %.pn277.pn.pn, %.loopexit289 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  br label %449

449:                                              ; preds = %.loopexit, %49
  %.pn277.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn277.pn.pn.pn, %.loopexit ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn277.pn.pn.pn.pn
}

declare i32 @cudaEventCreate(ptr noundef) local_unnamed_addr #4

declare i32 @cudaEventRecord(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #0 align 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 #7

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #8

declare noundef ptr @_ZN12cudaCompress14createInstanceEijjjj(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL10cudaMallocIsE9cudaErrorPPT_m(ptr noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL10cudaMallocItE9cudaErrorPPT_m(ptr noundef, i64 noundef) local_unnamed_addr #7

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

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

declare i32 @cudaMemcpy(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #4

declare i32 @cudaMemset(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress15compressImageLLEPNS_8InstanceERSt6vectorIjSaIjEEPsS6_S6_Ptiiimi(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #4

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

declare void @_ZN12cudaCompress13compressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, float noundef, float noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #4

declare i32 @cudaEventSynchronize(ptr noundef) local_unnamed_addr #4

declare i32 @cudaEventElapsedTime(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #0 align 2

declare void @_ZN12cudaCompress17decompressImageLLEPNS_8InstanceERSt6vectorIjSaIjEEPsS6_S6_Ptiiimi(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress15decompressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, float noundef, float noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z11computePSNRIsEdPKT_S2_jjj(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #0 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #4

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

declare i32 @cudaFree(ptr noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress15destroyInstanceEPNS_8InstanceE(ptr noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIjSaIjEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress norecurse 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 = { "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 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }

!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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


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