; LLVM IR from balintbalazs/B3D :: source/src/B3D_cudaCompress/B3D (B3DcompressFunctions)

; 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.cudaCompress::BitStreamReadOnly" = type <{ ptr, ptr, i32, i32, i32, [4 x i8] }>

@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14__cudaCheckMsgPKcS0_i(ptr noundef, ptr noundef, i32 noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #0

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12cudaCompress17BitStreamReadOnlyC2EPKjj(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef) unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util18unPredictor7_tilesEPKsPsiiii(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util3u2fEPtPfi(ptr noundef, ptr noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef, ptr noundef, float noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef, ptr noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef, ptr noundef, float noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12cudaCompress15decompressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i64 noundef %9, float noundef %10, float noundef %11, i32 noundef %12, float noundef %13, float noundef %14) #5 personality ptr @__gxx_personality_v0 {
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca %"class.cudaCompress::BitStreamReadOnly", align 8
  %32 = alloca [1 x ptr], align 8
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca %"class.cudaCompress::BitStreamReadOnly", align 8
  %36 = alloca i32, align 4
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store ptr %2, ptr %18, align 8, !tbaa !5
  store ptr %3, ptr %19, align 8, !tbaa !5
  store ptr %4, ptr %20, align 8, !tbaa !5
  store ptr %5, ptr %21, align 8, !tbaa !5
  store i32 %6, ptr %22, align 4, !tbaa !9
  store i32 %7, ptr %23, align 4, !tbaa !9
  store i32 %8, ptr %24, align 4, !tbaa !9
  store i64 %9, ptr %25, align 8, !tbaa !11
  store float %10, ptr %26, align 4, !tbaa !13
  store float %11, ptr %27, align 4, !tbaa !13
  store i32 %12, ptr %28, align 4, !tbaa !9
  store float %13, ptr %29, align 4, !tbaa !13
  store float %14, ptr %30, align 4, !tbaa !13
  %37 = load i32, ptr %23, align 4, !tbaa !9
  %38 = load i32, ptr %24, align 4, !tbaa !9
  %39 = mul nsw i32 %37, %38
  store i32 %39, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %40 = load i64, ptr %25, align 8, !tbaa !11
  %41 = icmp ugt i64 %40, 0
  br i1 %41, label %42, label %393

42:                                               ; preds = %15
  %43 = load i64, ptr %25, align 8, !tbaa !11
  %44 = icmp ult i64 %43, 100
  br i1 %44, label %45, label %393

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  %46 = load ptr, ptr %17, align 8, !tbaa !5
  %47 = call noundef ptr @_ZNSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = mul i64 %49, 4
  %51 = mul i64 %50, 8
  %52 = trunc i64 %51 to i32
  call void @_ZN12cudaCompress17BitStreamReadOnlyC2EPKjj(ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef %47, i32 noundef %52)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %53 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %53, ptr %32, align 8, !tbaa !5
  %54 = load i64, ptr %25, align 8, !tbaa !11
  switch i64 %54, label %390 [
    i64 1, label %55
    i64 11, label %55
    i64 2, label %105
    i64 3, label %157
    i64 27, label %219
    i64 7, label %219
    i64 17, label %276
    i64 37, label %332
  ]

55:                                               ; preds = %45, %45
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  %57 = getelementptr inbounds [1 x ptr], ptr %32, i64 0, i64 0
  %58 = load i32, ptr %22, align 4, !tbaa !9
  %59 = load i32, ptr %23, align 4, !tbaa !9
  %60 = mul nsw i32 %58, %59
  %61 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %56, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef %57, i32 noundef 1, i32 noundef %60)
          to label %62 unwind label %101

62:                                               ; preds = %55
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  %64 = load ptr, ptr %21, align 8, !tbaa !5
  %65 = load i32, ptr %22, align 4, !tbaa !9
  %66 = load i32, ptr %23, align 4, !tbaa !9
  %67 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %63, ptr noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef 0, i32 noundef 0)
          to label %68 unwind label %101

68:                                               ; preds = %62
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = load ptr, ptr %19, align 8, !tbaa !5
  %71 = load i32, ptr %22, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = mul i64 %72, 2
  %74 = trunc i64 %73 to i32
  %75 = load i32, ptr %22, align 4, !tbaa !9
  %76 = load i32, ptr %23, align 4, !tbaa !9
  %77 = load i32, ptr %28, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef %69, ptr noundef %70, i32 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77)
          to label %78 unwind label %101

78:                                               ; preds = %68
  %79 = load ptr, ptr %19, align 8, !tbaa !5
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  %81 = load float, ptr %26, align 4, !tbaa !13
  %82 = load i32, ptr %22, align 4, !tbaa !9
  %83 = load i32, ptr %23, align 4, !tbaa !9
  %84 = mul nsw i32 %82, %83
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %79, ptr noundef %80, float noundef %81, i32 noundef %84)
          to label %85 unwind label %101

85:                                               ; preds = %78
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = load ptr, ptr %19, align 8, !tbaa !5
  %88 = load i32, ptr %22, align 4, !tbaa !9
  %89 = load i32, ptr %23, align 4, !tbaa !9
  %90 = mul nsw i32 %88, %89
  %91 = load float, ptr %27, align 4, !tbaa !13
  %92 = load float, ptr %29, align 4, !tbaa !13
  %93 = load float, ptr %30, align 4, !tbaa !13
  invoke void @_ZN12cudaCompress4util6invVstEPfS1_ifff(ptr noundef %86, ptr noundef %87, i32 noundef %90, float noundef %91, float noundef %92, float noundef %93)
          to label %94 unwind label %101

94:                                               ; preds = %85
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  %97 = load i32, ptr %22, align 4, !tbaa !9
  %98 = load i32, ptr %23, align 4, !tbaa !9
  %99 = mul nsw i32 %97, %98
  invoke void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef %95, ptr noundef %96, i32 noundef %99)
          to label %100 unwind label %101

100:                                              ; preds = %94
  br label %391

101:                                              ; preds = %391, %383, %376, %369, %363, %355, %345, %339, %332, %325, %318, %312, %305, %299, %289, %283, %276, %269, %262, %255, %249, %242, %232, %226, %219, %212, %196, %187, %180, %170, %164, %157, %150, %141, %134, %128, %118, %112, %105, %94, %85, %78, %68, %62, %55
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %33, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @_ZN12cudaCompress17BitStreamReadOnlyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  br label %465

105:                                              ; preds = %45
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = getelementptr inbounds [1 x ptr], ptr %32, i64 0, i64 0
  %108 = load i32, ptr %22, align 4, !tbaa !9
  %109 = load i32, ptr %23, align 4, !tbaa !9
  %110 = mul nsw i32 %108, %109
  %111 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %106, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef %107, i32 noundef 1, i32 noundef %110)
          to label %112 unwind label %101

112:                                              ; preds = %105
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = load i32, ptr %22, align 4, !tbaa !9
  %116 = load i32, ptr %23, align 4, !tbaa !9
  %117 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %113, ptr noundef %114, i32 noundef %115, i32 noundef %116, i32 noundef %117, i32 noundef 0, i32 noundef 0)
          to label %118 unwind label %101

118:                                              ; preds = %112
  %119 = load ptr, ptr %18, align 8, !tbaa !5
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load i32, ptr %22, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = mul i64 %122, 2
  %124 = trunc i64 %123 to i32
  %125 = load i32, ptr %22, align 4, !tbaa !9
  %126 = load i32, ptr %23, align 4, !tbaa !9
  %127 = load i32, ptr %28, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util18unPredictor7_tilesEPKsPsiiii(ptr noundef %119, ptr noundef %120, i32 noundef %124, i32 noundef %125, i32 noundef %126, i32 noundef %127)
          to label %128 unwind label %101

128:                                              ; preds = %118
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = load i32, ptr %22, align 4, !tbaa !9
  %132 = load i32, ptr %23, align 4, !tbaa !9
  %133 = mul nsw i32 %131, %132
  invoke void @_ZN12cudaCompress4util3u2fEPtPfi(ptr noundef %129, ptr noundef %130, i32 noundef %133)
          to label %134 unwind label %101

134:                                              ; preds = %128
  %135 = load ptr, ptr %19, align 8, !tbaa !5
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = load float, ptr %26, align 4, !tbaa !13
  %138 = load i32, ptr %22, align 4, !tbaa !9
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = mul nsw i32 %138, %139
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %135, ptr noundef %136, float noundef %137, i32 noundef %140)
          to label %141 unwind label %101

141:                                              ; preds = %134
  %142 = load ptr, ptr %19, align 8, !tbaa !5
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  %144 = load i32, ptr %22, align 4, !tbaa !9
  %145 = load i32, ptr %23, align 4, !tbaa !9
  %146 = mul nsw i32 %144, %145
  %147 = load float, ptr %27, align 4, !tbaa !13
  %148 = load float, ptr %29, align 4, !tbaa !13
  %149 = load float, ptr %30, align 4, !tbaa !13
  invoke void @_ZN12cudaCompress4util6invVstEPfS1_ifff(ptr noundef %142, ptr noundef %143, i32 noundef %146, float noundef %147, float noundef %148, float noundef %149)
          to label %150 unwind label %101

150:                                              ; preds = %141
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = load ptr, ptr %18, align 8, !tbaa !5
  %153 = load i32, ptr %22, align 4, !tbaa !9
  %154 = load i32, ptr %23, align 4, !tbaa !9
  %155 = mul nsw i32 %153, %154
  invoke void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef %151, ptr noundef %152, i32 noundef %155)
          to label %156 unwind label %101

156:                                              ; preds = %150
  br label %391

157:                                              ; preds = %45
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = getelementptr inbounds [1 x ptr], ptr %32, i64 0, i64 0
  %160 = load i32, ptr %22, align 4, !tbaa !9
  %161 = load i32, ptr %23, align 4, !tbaa !9
  %162 = mul nsw i32 %160, %161
  %163 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %158, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef %159, i32 noundef 1, i32 noundef %162)
          to label %164 unwind label %101

164:                                              ; preds = %157
  %165 = load ptr, ptr %18, align 8, !tbaa !5
  %166 = load ptr, ptr %21, align 8, !tbaa !5
  %167 = load i32, ptr %22, align 4, !tbaa !9
  %168 = load i32, ptr %23, align 4, !tbaa !9
  %169 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %165, ptr noundef %166, i32 noundef %167, i32 noundef %168, i32 noundef %169, i32 noundef 0, i32 noundef 0)
          to label %170 unwind label %101

170:                                              ; preds = %164
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = load ptr, ptr %19, align 8, !tbaa !5
  %173 = load i32, ptr %22, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = mul i64 %174, 2
  %176 = trunc i64 %175 to i32
  %177 = load i32, ptr %22, align 4, !tbaa !9
  %178 = load i32, ptr %23, align 4, !tbaa !9
  %179 = load i32, ptr %28, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef %171, ptr noundef %172, i32 noundef %176, i32 noundef %177, i32 noundef %178, i32 noundef %179)
          to label %180 unwind label %101

180:                                              ; preds = %170
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = load float, ptr %26, align 4, !tbaa !13
  %184 = load i32, ptr %22, align 4, !tbaa !9
  %185 = load i32, ptr %23, align 4, !tbaa !9
  %186 = mul nsw i32 %184, %185
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %181, ptr noundef %182, float noundef %183, i32 noundef %186)
          to label %187 unwind label %101

187:                                              ; preds = %180
  %188 = load ptr, ptr %19, align 8, !tbaa !5
  %189 = load ptr, ptr %19, align 8, !tbaa !5
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = load i32, ptr %23, align 4, !tbaa !9
  %192 = mul nsw i32 %190, %191
  %193 = load float, ptr %27, align 4, !tbaa !13
  %194 = load float, ptr %29, align 4, !tbaa !13
  %195 = load float, ptr %30, align 4, !tbaa !13
  invoke void @_ZN12cudaCompress4util6invVstEPfS1_ifff(ptr noundef %188, ptr noundef %189, i32 noundef %192, float noundef %193, float noundef %194, float noundef %195)
          to label %196 unwind label %101

196:                                              ; preds = %187
  %197 = load ptr, ptr %19, align 8, !tbaa !5
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = load float, ptr %26, align 4, !tbaa !13
  %200 = fneg float %199
  %201 = load float, ptr %26, align 4, !tbaa !13
  %202 = fmul float %200, %201
  %203 = fpext float %202 to double
  %204 = load float, ptr %29, align 4, !tbaa !13
  %205 = fpext float %204 to double
  %206 = fmul double 1.200000e+01, %205
  %207 = fdiv double %203, %206
  %208 = fptrunc double %207 to float
  %209 = load i32, ptr %22, align 4, !tbaa !9
  %210 = load i32, ptr %23, align 4, !tbaa !9
  %211 = mul nsw i32 %209, %210
  invoke void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef %197, ptr noundef %198, float noundef %208, i32 noundef %211)
          to label %212 unwind label %101

212:                                              ; preds = %196
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = load ptr, ptr %18, align 8, !tbaa !5
  %215 = load i32, ptr %22, align 4, !tbaa !9
  %216 = load i32, ptr %23, align 4, !tbaa !9
  %217 = mul nsw i32 %215, %216
  invoke void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef %213, ptr noundef %214, i32 noundef %217)
          to label %218 unwind label %101

218:                                              ; preds = %212
  br label %391

219:                                              ; preds = %45, %45
  %220 = load ptr, ptr %16, align 8, !tbaa !5
  %221 = getelementptr inbounds [1 x ptr], ptr %32, i64 0, i64 0
  %222 = load i32, ptr %22, align 4, !tbaa !9
  %223 = load i32, ptr %23, align 4, !tbaa !9
  %224 = mul nsw i32 %222, %223
  %225 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %220, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef %221, i32 noundef 1, i32 noundef %224)
          to label %226 unwind label %101

226:                                              ; preds = %219
  %227 = load ptr, ptr %18, align 8, !tbaa !5
  %228 = load ptr, ptr %21, align 8, !tbaa !5
  %229 = load i32, ptr %22, align 4, !tbaa !9
  %230 = load i32, ptr %23, align 4, !tbaa !9
  %231 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %227, ptr noundef %228, i32 noundef %229, i32 noundef %230, i32 noundef %231, i32 noundef 0, i32 noundef 0)
          to label %232 unwind label %101

232:                                              ; preds = %226
  %233 = load ptr, ptr %18, align 8, !tbaa !5
  %234 = load ptr, ptr %19, align 8, !tbaa !5
  %235 = load i32, ptr %22, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = mul i64 %236, 2
  %238 = trunc i64 %237 to i32
  %239 = load i32, ptr %22, align 4, !tbaa !9
  %240 = load i32, ptr %23, align 4, !tbaa !9
  %241 = load i32, ptr %28, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef %233, ptr noundef %234, i32 noundef %238, i32 noundef %239, i32 noundef %240, i32 noundef %241)
          to label %242 unwind label %101

242:                                              ; preds = %232
  %243 = load ptr, ptr %19, align 8, !tbaa !5
  %244 = load ptr, ptr %19, align 8, !tbaa !5
  %245 = load float, ptr %26, align 4, !tbaa !13
  %246 = load i32, ptr %22, align 4, !tbaa !9
  %247 = load i32, ptr %23, align 4, !tbaa !9
  %248 = mul nsw i32 %246, %247
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %243, ptr noundef %244, float noundef %245, i32 noundef %248)
          to label %249 unwind label %101

249:                                              ; preds = %242
  %250 = load ptr, ptr %19, align 8, !tbaa !5
  %251 = load ptr, ptr %19, align 8, !tbaa !5
  %252 = load i32, ptr %22, align 4, !tbaa !9
  %253 = load i32, ptr %23, align 4, !tbaa !9
  %254 = mul nsw i32 %252, %253
  invoke void @_ZN12cudaCompress4util8sqrArrayEPfS1_i(ptr noundef %250, ptr noundef %251, i32 noundef %254)
          to label %255 unwind label %101

255:                                              ; preds = %249
  %256 = load ptr, ptr %19, align 8, !tbaa !5
  %257 = load ptr, ptr %19, align 8, !tbaa !5
  %258 = load float, ptr %29, align 4, !tbaa !13
  %259 = load i32, ptr %22, align 4, !tbaa !9
  %260 = load i32, ptr %23, align 4, !tbaa !9
  %261 = mul nsw i32 %259, %260
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %256, ptr noundef %257, float noundef %258, i32 noundef %261)
          to label %262 unwind label %101

262:                                              ; preds = %255
  %263 = load ptr, ptr %19, align 8, !tbaa !5
  %264 = load ptr, ptr %19, align 8, !tbaa !5
  %265 = load float, ptr %27, align 4, !tbaa !13
  %266 = load i32, ptr %22, align 4, !tbaa !9
  %267 = load i32, ptr %23, align 4, !tbaa !9
  %268 = mul nsw i32 %266, %267
  invoke void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef %263, ptr noundef %264, float noundef %265, i32 noundef %268)
          to label %269 unwind label %101

269:                                              ; preds = %262
  %270 = load ptr, ptr %19, align 8, !tbaa !5
  %271 = load ptr, ptr %18, align 8, !tbaa !5
  %272 = load i32, ptr %22, align 4, !tbaa !9
  %273 = load i32, ptr %23, align 4, !tbaa !9
  %274 = mul nsw i32 %272, %273
  invoke void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef %270, ptr noundef %271, i32 noundef %274)
          to label %275 unwind label %101

275:                                              ; preds = %269
  br label %391

276:                                              ; preds = %45
  %277 = load ptr, ptr %16, align 8, !tbaa !5
  %278 = getelementptr inbounds [1 x ptr], ptr %32, i64 0, i64 0
  %279 = load i32, ptr %22, align 4, !tbaa !9
  %280 = load i32, ptr %23, align 4, !tbaa !9
  %281 = mul nsw i32 %279, %280
  %282 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %277, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef %278, i32 noundef 1, i32 noundef %281)
          to label %283 unwind label %101

283:                                              ; preds = %276
  %284 = load ptr, ptr %18, align 8, !tbaa !5
  %285 = load ptr, ptr %21, align 8, !tbaa !5
  %286 = load i32, ptr %22, align 4, !tbaa !9
  %287 = load i32, ptr %23, align 4, !tbaa !9
  %288 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %284, ptr noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef 0, i32 noundef 0)
          to label %289 unwind label %101

289:                                              ; preds = %283
  %290 = load ptr, ptr %18, align 8, !tbaa !5
  %291 = load ptr, ptr %20, align 8, !tbaa !5
  %292 = load i32, ptr %22, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = mul i64 %293, 2
  %295 = trunc i64 %294 to i32
  %296 = load i32, ptr %22, align 4, !tbaa !9
  %297 = load i32, ptr %23, align 4, !tbaa !9
  %298 = load i32, ptr %28, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util18unPredictor7_tilesEPKsPsiiii(ptr noundef %290, ptr noundef %291, i32 noundef %295, i32 noundef %296, i32 noundef %297, i32 noundef %298)
          to label %299 unwind label %101

299:                                              ; preds = %289
  %300 = load ptr, ptr %20, align 8, !tbaa !5
  %301 = load ptr, ptr %19, align 8, !tbaa !5
  %302 = load i32, ptr %22, align 4, !tbaa !9
  %303 = load i32, ptr %23, align 4, !tbaa !9
  %304 = mul nsw i32 %302, %303
  invoke void @_ZN12cudaCompress4util3u2fEPtPfi(ptr noundef %300, ptr noundef %301, i32 noundef %304)
          to label %305 unwind label %101

305:                                              ; preds = %299
  %306 = load ptr, ptr %19, align 8, !tbaa !5
  %307 = load ptr, ptr %19, align 8, !tbaa !5
  %308 = load float, ptr %26, align 4, !tbaa !13
  %309 = load i32, ptr %22, align 4, !tbaa !9
  %310 = load i32, ptr %23, align 4, !tbaa !9
  %311 = mul nsw i32 %309, %310
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %306, ptr noundef %307, float noundef %308, i32 noundef %311)
          to label %312 unwind label %101

312:                                              ; preds = %305
  %313 = load ptr, ptr %19, align 8, !tbaa !5
  %314 = load ptr, ptr %19, align 8, !tbaa !5
  %315 = load i32, ptr %22, align 4, !tbaa !9
  %316 = load i32, ptr %23, align 4, !tbaa !9
  %317 = mul nsw i32 %315, %316
  invoke void @_ZN12cudaCompress4util8sqrArrayEPfS1_i(ptr noundef %313, ptr noundef %314, i32 noundef %317)
          to label %318 unwind label %101

318:                                              ; preds = %312
  %319 = load ptr, ptr %19, align 8, !tbaa !5
  %320 = load ptr, ptr %19, align 8, !tbaa !5
  %321 = load float, ptr %27, align 4, !tbaa !13
  %322 = load i32, ptr %22, align 4, !tbaa !9
  %323 = load i32, ptr %23, align 4, !tbaa !9
  %324 = mul nsw i32 %322, %323
  invoke void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef %319, ptr noundef %320, float noundef %321, i32 noundef %324)
          to label %325 unwind label %101

325:                                              ; preds = %318
  %326 = load ptr, ptr %19, align 8, !tbaa !5
  %327 = load ptr, ptr %18, align 8, !tbaa !5
  %328 = load i32, ptr %22, align 4, !tbaa !9
  %329 = load i32, ptr %23, align 4, !tbaa !9
  %330 = mul nsw i32 %328, %329
  invoke void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef %326, ptr noundef %327, i32 noundef %330)
          to label %331 unwind label %101

331:                                              ; preds = %325
  br label %391

332:                                              ; preds = %45
  %333 = load ptr, ptr %16, align 8, !tbaa !5
  %334 = getelementptr inbounds [1 x ptr], ptr %32, i64 0, i64 0
  %335 = load i32, ptr %22, align 4, !tbaa !9
  %336 = load i32, ptr %23, align 4, !tbaa !9
  %337 = mul nsw i32 %335, %336
  %338 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %333, ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef %334, i32 noundef 1, i32 noundef %337)
          to label %339 unwind label %101

339:                                              ; preds = %332
  %340 = load ptr, ptr %18, align 8, !tbaa !5
  %341 = load ptr, ptr %21, align 8, !tbaa !5
  %342 = load i32, ptr %22, align 4, !tbaa !9
  %343 = load i32, ptr %23, align 4, !tbaa !9
  %344 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %340, ptr noundef %341, i32 noundef %342, i32 noundef %343, i32 noundef %344, i32 noundef 0, i32 noundef 0)
          to label %345 unwind label %101

345:                                              ; preds = %339
  %346 = load ptr, ptr %18, align 8, !tbaa !5
  %347 = load ptr, ptr %19, align 8, !tbaa !5
  %348 = load i32, ptr %22, align 4, !tbaa !9
  %349 = sext i32 %348 to i64
  %350 = mul i64 %349, 2
  %351 = trunc i64 %350 to i32
  %352 = load i32, ptr %22, align 4, !tbaa !9
  %353 = load i32, ptr %23, align 4, !tbaa !9
  %354 = load i32, ptr %28, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef %346, ptr noundef %347, i32 noundef %351, i32 noundef %352, i32 noundef %353, i32 noundef %354)
          to label %355 unwind label %101

355:                                              ; preds = %345
  %356 = load ptr, ptr %19, align 8, !tbaa !5
  %357 = load ptr, ptr %19, align 8, !tbaa !5
  %358 = load float, ptr %26, align 4, !tbaa !13
  %359 = fmul float 2.000000e+00, %358
  %360 = load i32, ptr %22, align 4, !tbaa !9
  %361 = load i32, ptr %23, align 4, !tbaa !9
  %362 = mul nsw i32 %360, %361
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %356, ptr noundef %357, float noundef %359, i32 noundef %362)
          to label %363 unwind label %101

363:                                              ; preds = %355
  %364 = load ptr, ptr %19, align 8, !tbaa !5
  %365 = load ptr, ptr %19, align 8, !tbaa !5
  %366 = load i32, ptr %22, align 4, !tbaa !9
  %367 = load i32, ptr %23, align 4, !tbaa !9
  %368 = mul nsw i32 %366, %367
  invoke void @_ZN12cudaCompress4util11invAnscombeEPfS1_if(ptr noundef %364, ptr noundef %365, i32 noundef %368, float noundef 0.000000e+00)
          to label %369 unwind label %101

369:                                              ; preds = %363
  %370 = load ptr, ptr %19, align 8, !tbaa !5
  %371 = load ptr, ptr %19, align 8, !tbaa !5
  %372 = load float, ptr %29, align 4, !tbaa !13
  %373 = load i32, ptr %22, align 4, !tbaa !9
  %374 = load i32, ptr %23, align 4, !tbaa !9
  %375 = mul nsw i32 %373, %374
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %370, ptr noundef %371, float noundef %372, i32 noundef %375)
          to label %376 unwind label %101

376:                                              ; preds = %369
  %377 = load ptr, ptr %19, align 8, !tbaa !5
  %378 = load ptr, ptr %19, align 8, !tbaa !5
  %379 = load float, ptr %27, align 4, !tbaa !13
  %380 = load i32, ptr %22, align 4, !tbaa !9
  %381 = load i32, ptr %23, align 4, !tbaa !9
  %382 = mul nsw i32 %380, %381
  invoke void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef %377, ptr noundef %378, float noundef %379, i32 noundef %382)
          to label %383 unwind label %101

383:                                              ; preds = %376
  %384 = load ptr, ptr %19, align 8, !tbaa !5
  %385 = load ptr, ptr %18, align 8, !tbaa !5
  %386 = load i32, ptr %22, align 4, !tbaa !9
  %387 = load i32, ptr %23, align 4, !tbaa !9
  %388 = mul nsw i32 %386, %387
  invoke void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef %384, ptr noundef %385, i32 noundef %388)
          to label %389 unwind label %101

389:                                              ; preds = %383
  br label %391

390:                                              ; preds = %45
  br label %391

391:                                              ; preds = %390, %389, %331, %275, %218, %156, %100
  invoke void @_Z14__cudaCheckMsgPKcS0_i(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 360)
          to label %392 unwind label %101

392:                                              ; preds = %391
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @_ZN12cudaCompress17BitStreamReadOnlyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  br label %464

393:                                              ; preds = %42, %15
  %394 = load i64, ptr %25, align 8, !tbaa !11
  %395 = sub i64 %394, 100
  store i64 %395, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #6
  %396 = load ptr, ptr %17, align 8, !tbaa !5
  %397 = call noundef ptr @_ZNSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %396) #6
  %398 = load ptr, ptr %17, align 8, !tbaa !5
  %399 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %398) #6
  %400 = mul i64 %399, 4
  %401 = mul i64 %400, 8
  %402 = trunc i64 %401 to i32
  call void @_ZN12cudaCompress17BitStreamReadOnlyC2EPKjj(ptr noundef nonnull align 8 dereferenceable(28) %35, ptr noundef %397, i32 noundef %402)
  %403 = load ptr, ptr %16, align 8, !tbaa !5
  %404 = load i32, ptr %22, align 4, !tbaa !9
  %405 = load i32, ptr %23, align 4, !tbaa !9
  %406 = mul nsw i32 %404, %405
  %407 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %403, ptr noundef nonnull align 8 dereferenceable(28) %35, ptr noundef %21, i32 noundef 1, i32 noundef %406)
          to label %408 unwind label %422

408:                                              ; preds = %393
  %409 = load ptr, ptr %19, align 8, !tbaa !5
  %410 = load ptr, ptr %21, align 8, !tbaa !5
  %411 = load i32, ptr %22, align 4, !tbaa !9
  %412 = load i32, ptr %23, align 4, !tbaa !9
  %413 = load float, ptr %26, align 4, !tbaa !13
  invoke void @_ZN12cudaCompress4util23unquantizeFromSymbols2DEPfPKtjjfjNS0_13EQuantizeTypeE(ptr noundef %409, ptr noundef %410, i32 noundef %411, i32 noundef %412, float noundef %413, i32 noundef 0, i32 noundef 0)
          to label %414 unwind label %422

414:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %415 = load i64, ptr %25, align 8, !tbaa !11
  %416 = sub i64 %415, 1
  %417 = trunc i64 %416 to i32
  store i32 %417, ptr %36, align 4, !tbaa !9
  br label %418

418:                                              ; preds = %447, %414
  %419 = load i32, ptr %36, align 4, !tbaa !9
  %420 = icmp sgt i32 %419, 0
  br i1 %420, label %426, label %421

421:                                              ; preds = %418
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %454

422:                                              ; preds = %454, %408, %393
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %33, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %34, align 4
  br label %463

426:                                              ; preds = %418
  %427 = load ptr, ptr %19, align 8, !tbaa !5
  %428 = load ptr, ptr %20, align 8, !tbaa !5
  %429 = load ptr, ptr %19, align 8, !tbaa !5
  %430 = load i32, ptr %22, align 4, !tbaa !9
  %431 = sitofp i32 %430 to double
  %432 = load i32, ptr %36, align 4, !tbaa !9
  %433 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef 2.000000e+00, i32 noundef %432)
          to label %434 unwind label %450

434:                                              ; preds = %426
  %435 = fdiv double %431, %433
  %436 = fptosi double %435 to i32
  %437 = load i32, ptr %23, align 4, !tbaa !9
  %438 = sitofp i32 %437 to double
  %439 = load i32, ptr %36, align 4, !tbaa !9
  %440 = invoke noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef 2.000000e+00, i32 noundef %439)
          to label %441 unwind label %450

441:                                              ; preds = %434
  %442 = fdiv double %438, %440
  %443 = fptosi double %442 to i32
  %444 = load i32, ptr %22, align 4, !tbaa !9
  %445 = load i32, ptr %22, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util17dwtFloat2DInverseEPfS1_PKfiiiiiP11CUstream_st(ptr noundef %427, ptr noundef %428, ptr noundef %429, i32 noundef %436, i32 noundef %443, i32 noundef 1, i32 noundef %444, i32 noundef %445, ptr noundef null)
          to label %446 unwind label %450

446:                                              ; preds = %441
  br label %447

447:                                              ; preds = %446
  %448 = load i32, ptr %36, align 4, !tbaa !9
  %449 = add nsw i32 %448, -1
  store i32 %449, ptr %36, align 4, !tbaa !9
  br label %418, !llvm.loop !15

450:                                              ; preds = %441, %434, %426
  %451 = landingpad { ptr, i32 }
          cleanup
  %452 = extractvalue { ptr, i32 } %451, 0
  store ptr %452, ptr %33, align 8
  %453 = extractvalue { ptr, i32 } %451, 1
  store i32 %453, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %463

454:                                              ; preds = %421
  %455 = load ptr, ptr %18, align 8, !tbaa !5
  %456 = load ptr, ptr %20, align 8, !tbaa !5
  %457 = load ptr, ptr %19, align 8, !tbaa !5
  %458 = load i32, ptr %22, align 4, !tbaa !9
  %459 = load i32, ptr %23, align 4, !tbaa !9
  %460 = load i32, ptr %22, align 4, !tbaa !9
  %461 = load i32, ptr %22, align 4, !tbaa !9
  invoke void @_ZN12cudaCompress4util25dwtFloat2DInverseToUshortEPtPfPKfiiiiiP11CUstream_st(ptr noundef %455, ptr noundef %456, ptr noundef %457, i32 noundef %458, i32 noundef %459, i32 noundef 1, i32 noundef %460, i32 noundef %461, ptr noundef null)
          to label %462 unwind label %422

462:                                              ; preds = %454
  call void @_ZN12cudaCompress17BitStreamReadOnlyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  br label %464

463:                                              ; preds = %450, %422
  call void @_ZN12cudaCompress17BitStreamReadOnlyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  br label %465

464:                                              ; preds = %462, %392
  ret void

465:                                              ; preds = %463, %101
  %466 = load ptr, ptr %33, align 8
  %467 = load i32, ptr %34, align 4
  %468 = insertvalue { ptr, i32 } poison, ptr %466, 0
  %469 = insertvalue { ptr, i32 } %468, i32 %467, 1
  resume { ptr, i32 } %469
}

declare void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util6invVstEPfS1_ifff(ptr noundef, ptr noundef, i32 noundef, float noundef, float noundef, float noundef) #4

declare void @_ZN12cudaCompress4util8sqrArrayEPfS1_i(ptr noundef, ptr noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util11invAnscombeEPfS1_if(ptr noundef, ptr noundef, i32 noundef, float noundef) #4

declare void @_ZN12cudaCompress4util23unquantizeFromSymbols2DEPfPKtjjfjNS0_13EQuantizeTypeE(ptr noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, i32 noundef, i32 noundef) #4

declare void @_ZN12cudaCompress4util17dwtFloat2DInverseEPfS1_PKfiiiiiP11CUstream_st(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

declare void @_ZN12cudaCompress4util25dwtFloat2DInverseToUshortEPtPfPKfiiiiiP11CUstream_st(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

%"class.cudaCompress::BitStreamReadOnly" = type <{ ptr, ptr, i32, i32, i32, [4 x i8] }>

@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14__cudaCheckMsgPKcS0_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12cudaCompress17BitStreamReadOnlyC2EPKjj(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef) unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util18unPredictor7_tilesEPKsPsiiii(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util3u2fEPtPfi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef, ptr noundef, float noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef, ptr noundef, float noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12cudaCompress15decompressImageEPNS_8InstanceERSt6vectorIjSaIjEEPsPfS7_Ptiiimffiff(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i64 noundef %9, float noundef %10, float noundef %11, i32 noundef %12, float noundef %13, float noundef %14) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %16 = alloca ptr, align 8
  %17 = alloca %"class.cudaCompress::BitStreamReadOnly", align 8
  %18 = alloca [1 x ptr], align 8
  %19 = alloca %"class.cudaCompress::BitStreamReadOnly", align 8
  store ptr %5, ptr %16, align 8, !tbaa !5
  %20 = mul nsw i32 %8, %7
  %21 = add i64 %9, -1
  %or.cond = icmp ult i64 %21, 99
  br i1 %or.cond, label %22, label %95

22:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  %23 = tail call noundef ptr @_ZNSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %24 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.tr248 = trunc i64 %24 to i32
  %25 = shl i32 %.tr248, 5
  call void @_ZN12cudaCompress17BitStreamReadOnlyC2EPKjj(ptr noundef nonnull align 8 dereferenceable(28) %17, ptr noundef %23, i32 noundef %25)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  store ptr %5, ptr %18, align 8, !tbaa !5
  switch i64 %9, label %93 [
    i64 1, label %26
    i64 11, label %26
    i64 2, label %36
    i64 3, label %45
    i64 27, label %61
    i64 7, label %61
    i64 17, label %71
    i64 37, label %81
  ]

26:                                               ; preds = %22, %22
  %27 = mul nsw i32 %20, %6
  %28 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(28) %17, ptr noundef nonnull %18, i32 noundef 1, i32 noundef %27)
          to label %29 unwind label %34

29:                                               ; preds = %26
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %2, ptr noundef %5, i32 noundef %6, i32 noundef %20, i32 noundef 1, i32 noundef 0, i32 noundef 0)
          to label %30 unwind label %34

30:                                               ; preds = %29
  %31 = shl i32 %6, 1
  invoke void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef %2, ptr noundef %3, i32 noundef %31, i32 noundef %6, i32 noundef %20, i32 noundef %12)
          to label %32 unwind label %34

32:                                               ; preds = %30
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %10, i32 noundef %27)
          to label %33 unwind label %34

33:                                               ; preds = %32
  invoke void @_ZN12cudaCompress4util6invVstEPfS1_ifff(ptr noundef %3, ptr noundef %3, i32 noundef %27, float noundef %11, float noundef %13, float noundef %14)
          to label %.invoke unwind label %34

34:                                               ; preds = %.invoke, %93, %91, %90, %89, %87, %85, %84, %81, %80, %79, %78, %77, %75, %74, %71, %70, %69, %68, %67, %65, %64, %61, %53, %52, %51, %49, %48, %45, %44, %43, %42, %40, %39, %36, %33, %32, %30, %29, %26
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZN12cudaCompress17BitStreamReadOnlyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %126

36:                                               ; preds = %22
  %37 = mul nsw i32 %20, %6
  %38 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(28) %17, ptr noundef nonnull %18, i32 noundef 1, i32 noundef %37)
          to label %39 unwind label %34

39:                                               ; preds = %36
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %2, ptr noundef %5, i32 noundef %6, i32 noundef %20, i32 noundef 1, i32 noundef 0, i32 noundef 0)
          to label %40 unwind label %34

40:                                               ; preds = %39
  %41 = shl i32 %6, 1
  invoke void @_ZN12cudaCompress4util18unPredictor7_tilesEPKsPsiiii(ptr noundef %2, ptr noundef %4, i32 noundef %41, i32 noundef %6, i32 noundef %20, i32 noundef %12)
          to label %42 unwind label %34

42:                                               ; preds = %40
  invoke void @_ZN12cudaCompress4util3u2fEPtPfi(ptr noundef %4, ptr noundef %3, i32 noundef %37)
          to label %43 unwind label %34

43:                                               ; preds = %42
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %10, i32 noundef %37)
          to label %44 unwind label %34

44:                                               ; preds = %43
  invoke void @_ZN12cudaCompress4util6invVstEPfS1_ifff(ptr noundef %3, ptr noundef %3, i32 noundef %37, float noundef %11, float noundef %13, float noundef %14)
          to label %.invoke unwind label %34

45:                                               ; preds = %22
  %46 = mul nsw i32 %20, %6
  %47 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(28) %17, ptr noundef nonnull %18, i32 noundef 1, i32 noundef %46)
          to label %48 unwind label %34

48:                                               ; preds = %45
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %2, ptr noundef %5, i32 noundef %6, i32 noundef %20, i32 noundef 1, i32 noundef 0, i32 noundef 0)
          to label %49 unwind label %34

49:                                               ; preds = %48
  %50 = shl i32 %6, 1
  invoke void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef %2, ptr noundef %3, i32 noundef %50, i32 noundef %6, i32 noundef %20, i32 noundef %12)
          to label %51 unwind label %34

51:                                               ; preds = %49
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %10, i32 noundef %46)
          to label %52 unwind label %34

52:                                               ; preds = %51
  invoke void @_ZN12cudaCompress4util6invVstEPfS1_ifff(ptr noundef %3, ptr noundef %3, i32 noundef %46, float noundef %11, float noundef %13, float noundef %14)
          to label %53 unwind label %34

53:                                               ; preds = %52
  %54 = fneg float %10
  %55 = fmul float %54, %10
  %56 = fpext float %55 to double
  %57 = fpext float %13 to double
  %58 = fmul double %57, 1.200000e+01
  %59 = fdiv double %56, %58
  %60 = fptrunc double %59 to float
  invoke void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %60, i32 noundef %46)
          to label %.invoke unwind label %34

61:                                               ; preds = %22, %22
  %62 = mul nsw i32 %20, %6
  %63 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(28) %17, ptr noundef nonnull %18, i32 noundef 1, i32 noundef %62)
          to label %64 unwind label %34

64:                                               ; preds = %61
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %2, ptr noundef %5, i32 noundef %6, i32 noundef %20, i32 noundef 1, i32 noundef 0, i32 noundef 0)
          to label %65 unwind label %34

65:                                               ; preds = %64
  %66 = shl i32 %6, 1
  invoke void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef %2, ptr noundef %3, i32 noundef %66, i32 noundef %6, i32 noundef %20, i32 noundef %12)
          to label %67 unwind label %34

67:                                               ; preds = %65
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %10, i32 noundef %62)
          to label %68 unwind label %34

68:                                               ; preds = %67
  invoke void @_ZN12cudaCompress4util8sqrArrayEPfS1_i(ptr noundef %3, ptr noundef %3, i32 noundef %62)
          to label %69 unwind label %34

69:                                               ; preds = %68
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %13, i32 noundef %62)
          to label %70 unwind label %34

70:                                               ; preds = %69
  invoke void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %11, i32 noundef %62)
          to label %.invoke unwind label %34

71:                                               ; preds = %22
  %72 = mul nsw i32 %20, %6
  %73 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(28) %17, ptr noundef nonnull %18, i32 noundef 1, i32 noundef %72)
          to label %74 unwind label %34

74:                                               ; preds = %71
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %2, ptr noundef %5, i32 noundef %6, i32 noundef %20, i32 noundef 1, i32 noundef 0, i32 noundef 0)
          to label %75 unwind label %34

75:                                               ; preds = %74
  %76 = shl i32 %6, 1
  invoke void @_ZN12cudaCompress4util18unPredictor7_tilesEPKsPsiiii(ptr noundef %2, ptr noundef %4, i32 noundef %76, i32 noundef %6, i32 noundef %20, i32 noundef %12)
          to label %77 unwind label %34

77:                                               ; preds = %75
  invoke void @_ZN12cudaCompress4util3u2fEPtPfi(ptr noundef %4, ptr noundef %3, i32 noundef %72)
          to label %78 unwind label %34

78:                                               ; preds = %77
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %10, i32 noundef %72)
          to label %79 unwind label %34

79:                                               ; preds = %78
  invoke void @_ZN12cudaCompress4util8sqrArrayEPfS1_i(ptr noundef %3, ptr noundef %3, i32 noundef %72)
          to label %80 unwind label %34

80:                                               ; preds = %79
  invoke void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %11, i32 noundef %72)
          to label %.invoke unwind label %34

81:                                               ; preds = %22
  %82 = mul nsw i32 %20, %6
  %83 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(28) %17, ptr noundef nonnull %18, i32 noundef 1, i32 noundef %82)
          to label %84 unwind label %34

84:                                               ; preds = %81
  invoke void @_ZN12cudaCompress4util11unsymbolizeEPsPKtjjjjj(ptr noundef %2, ptr noundef %5, i32 noundef %6, i32 noundef %20, i32 noundef 1, i32 noundef 0, i32 noundef 0)
          to label %85 unwind label %34

85:                                               ; preds = %84
  %86 = shl i32 %6, 1
  invoke void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef %2, ptr noundef %3, i32 noundef %86, i32 noundef %6, i32 noundef %20, i32 noundef %12)
          to label %87 unwind label %34

87:                                               ; preds = %85
  %88 = fmul float %10, 2.000000e+00
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %88, i32 noundef %82)
          to label %89 unwind label %34

89:                                               ; preds = %87
  invoke void @_ZN12cudaCompress4util11invAnscombeEPfS1_if(ptr noundef %3, ptr noundef %3, i32 noundef %82, float noundef 0.000000e+00)
          to label %90 unwind label %34

90:                                               ; preds = %89
  invoke void @_ZN12cudaCompress4util8multiplyEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %13, i32 noundef %82)
          to label %91 unwind label %34

91:                                               ; preds = %90
  invoke void @_ZN12cudaCompress4util6offsetEPfS1_fi(ptr noundef %3, ptr noundef %3, float noundef %11, i32 noundef %82)
          to label %.invoke unwind label %34

.invoke:                                          ; preds = %33, %91, %80, %70, %53, %44
  %92 = phi i32 [ %37, %44 ], [ %46, %53 ], [ %62, %70 ], [ %72, %80 ], [ %82, %91 ], [ %27, %33 ]
  invoke void @_ZN12cudaCompress4util3f2uEPfPti(ptr noundef %3, ptr noundef %2, i32 noundef %92)
          to label %93 unwind label %34

93:                                               ; preds = %.invoke, %22
  invoke void @_Z14__cudaCheckMsgPKcS0_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 360)
          to label %94 unwind label %34

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @_ZN12cudaCompress17BitStreamReadOnlyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  br label %125

95:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  %96 = tail call noundef ptr @_ZNSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %97 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.tr = trunc i64 %97 to i32
  %98 = shl i32 %.tr, 5
  call void @_ZN12cudaCompress17BitStreamReadOnlyC2EPKjj(ptr noundef nonnull align 8 dereferenceable(28) %19, ptr noundef %96, i32 noundef %98)
  %99 = mul nsw i32 %20, %6
  %100 = invoke noundef zeroext i1 @_ZN12cudaCompress12decodeRLHuffEPNS_8InstanceERNS_17BitStreamReadOnlyEPPtjj(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(28) %19, ptr noundef nonnull %16, i32 noundef 1, i32 noundef %99)
          to label %101 unwind label %109

101:                                              ; preds = %95
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN12cudaCompress4util23unquantizeFromSymbols2DEPfPKtjjfjNS0_13EQuantizeTypeE(ptr noundef %3, ptr noundef %102, i32 noundef %6, i32 noundef %20, float noundef %10, i32 noundef 0, i32 noundef 0)
          to label %103 unwind label %109

103:                                              ; preds = %101
  %104 = trunc i64 %9 to i32
  %105 = add i32 %104, -101
  %106 = icmp sgt i32 %105, 0
  br i1 %106, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %103
  %107 = sitofp i32 %6 to double
  %108 = sitofp i32 %20 to double
  br label %111

._crit_edge:                                      ; preds = %118, %103
  invoke void @_ZN12cudaCompress4util25dwtFloat2DInverseToUshortEPtPfPKfiiiiiP11CUstream_st(ptr noundef %2, ptr noundef %4, ptr noundef %3, i32 noundef %6, i32 noundef %20, i32 noundef 1, i32 noundef %6, i32 noundef %6, ptr noundef null)
          to label %123 unwind label %109

109:                                              ; preds = %._crit_edge, %101, %95
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %124

111:                                              ; preds = %.lr.ph, %118
  %.0251 = phi i32 [ %105, %.lr.ph ], [ %119, %118 ]
  %112 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef 2.000000e+00, i32 noundef %.0251)
  %113 = fdiv double %107, %112
  %114 = fptosi double %113 to i32
  %115 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef 2.000000e+00, i32 noundef %.0251)
  %116 = fdiv double %108, %115
  %117 = fptosi double %116 to i32
  invoke void @_ZN12cudaCompress4util17dwtFloat2DInverseEPfS1_PKfiiiiiP11CUstream_st(ptr noundef %3, ptr noundef %4, ptr noundef %3, i32 noundef %114, i32 noundef %117, i32 noundef 1, i32 noundef %6, i32 noundef %6, ptr noundef null)
          to label %118 unwind label %121

118:                                              ; preds = %111
  %119 = add nsw i32 %.0251, -1
  %120 = icmp sgt i32 %.0251, 1
  br i1 %120, label %111, label %._crit_edge, !llvm.loop !9

121:                                              ; preds = %111
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %124

123:                                              ; preds = %._crit_edge
  call void @_ZN12cudaCompress17BitStreamReadOnlyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %125

124:                                              ; preds = %121, %109
  %.pn = phi { ptr, i32 } [ %122, %121 ], [ %110, %109 ]
  call void @_ZN12cudaCompress17BitStreamReadOnlyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %126

125:                                              ; preds = %123, %94
  ret void

126:                                              ; preds = %124, %34
  %.pn249 = phi { ptr, i32 } [ %35, %34 ], [ %.pn, %124 ]
  resume { ptr, i32 } %.pn249
}

declare void @_ZN12cudaCompress4util23unPredictor7_tiles_wnllEPKsPfiiii(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util6invVstEPfS1_ifff(ptr noundef, ptr noundef, i32 noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util8sqrArrayEPfS1_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util11invAnscombeEPfS1_if(ptr noundef, ptr noundef, i32 noundef, float noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util23unquantizeFromSymbols2DEPfPKtjjfjNS0_13EQuantizeTypeE(ptr noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util17dwtFloat2DInverseEPfS1_PKfiiiiiP11CUstream_st(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN12cudaCompress4util25dwtFloat2DInverseToUshortEPtPfPKfiiiiiP11CUstream_st(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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