; LLVM IR from redhatdragon/EchoEngine :: HAL/ExampleImplimentations/Windows/OpenMP3 (openmp3)

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

%"struct.OpenMP3::ScaleFactorBandIndices" = type { [23 x i32], [14 x i32] }
%"struct.OpenMP3::FrameData" = type { i32, [2 x [4 x i32]], [2 x [2 x i32]], [2 x [2 x i32]], [2 x [2 x float]], [2 x [2 x i32]], [2 x [2 x i8]], [2 x [2 x i8]], [2 x [2 x i32]], [2 x [2 x [3 x i32]]], [2 x [2 x [3 x float]]], [2 x [2 x i32]], [2 x [2 x i32]], [2 x [2 x i32]], [2 x [2 x i32]], [2 x [2 x i32]], [2 x [2 x i32]], [2 x [2 x [21 x i32]]], [2 x [2 x [12 x [3 x i32]]]], [2 x [2 x [576 x float]]] }

@_ZN7OpenMP323kScaleFactorBandIndicesE = external dso_local constant [3 x %"struct.OpenMP3::ScaleFactorBandIndices"], align 16

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7OpenMP39Reservoir11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(8216)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7OpenMP311ReadHuffmanERNS_9ReservoirEjRKNS_9FrameDataEjjjPf(ptr noundef nonnull align 8 dereferenceable(8216) %0, i32 noundef %1, ptr noundef nonnull align 4 dereferenceable(10444) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #2 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %28, i32 0, i32 2
  %30 = load i32, ptr %13, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [2 x [2 x i32]], ptr %29, i64 0, i64 %31
  %33 = load i32, ptr %14, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds [2 x i32], ptr %32, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %52

38:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %48, %38
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = icmp ult i32 %40, 576
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %51

43:                                               ; preds = %39
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  %45 = load i32, ptr %16, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %44, i64 %46
  store float 0.000000e+00, ptr %47, align 4, !tbaa !11
  br label %48

48:                                               ; preds = %43
  %49 = load i32, ptr %16, align 4, !tbaa !9
  %50 = add i32 %49, 1
  store i32 %50, ptr %16, align 4, !tbaa !9
  br label %39, !llvm.loop !13

51:                                               ; preds = %42
  store i32 0, ptr %8, align 4
  br label %283

52:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %54, i32 0, i32 2
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds [2 x [2 x i32]], ptr %55, i64 0, i64 %57
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds [2 x i32], ptr %58, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = add i32 %53, %62
  %64 = sub i32 %63, 1
  store i32 %64, ptr %25, align 4, !tbaa !9
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %65, i32 0, i32 6
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds [2 x [2 x i8]], ptr %66, i64 0, i64 %68
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds [2 x i8], ptr %69, i64 0, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !15, !range !17, !noundef !18
  %74 = trunc i8 %73 to i1
  br i1 %74, label %75, label %87

75:                                               ; preds = %52
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %76, i32 0, i32 8
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [2 x [2 x i32]], ptr %77, i64 0, i64 %79
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds [2 x i32], ptr %80, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = icmp eq i32 %84, 2
  br i1 %85, label %86, label %87

86:                                               ; preds = %75
  store i32 36, ptr %23, align 4, !tbaa !9
  store i32 576, ptr %24, align 4, !tbaa !9
  br label %132

87:                                               ; preds = %75, %52
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds [3 x %"struct.OpenMP3::ScaleFactorBandIndices"], ptr @_ZN7OpenMP323kScaleFactorBandIndicesE, i64 0, i64 %89
  %91 = getelementptr inbounds %"struct.OpenMP3::ScaleFactorBandIndices", ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %92, i32 0, i32 11
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds [2 x [2 x i32]], ptr %93, i64 0, i64 %95
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds [2 x i32], ptr %96, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = add i32 %100, 1
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds [23 x i32], ptr %91, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !9
  store i32 %104, ptr %23, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds [3 x %"struct.OpenMP3::ScaleFactorBandIndices"], ptr @_ZN7OpenMP323kScaleFactorBandIndicesE, i64 0, i64 %106
  %108 = getelementptr inbounds %"struct.OpenMP3::ScaleFactorBandIndices", ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %109, i32 0, i32 11
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds [2 x [2 x i32]], ptr %110, i64 0, i64 %112
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [2 x i32], ptr %113, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %118, i32 0, i32 12
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds [2 x [2 x i32]], ptr %119, i64 0, i64 %121
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds [2 x i32], ptr %122, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = add i32 %117, %126
  %128 = add i32 %127, 2
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds [23 x i32], ptr %108, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !9
  store i32 %131, ptr %24, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %87, %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %133, i32 0, i32 9
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds [2 x [2 x [3 x i32]]], ptr %134, i64 0, i64 %136
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds [2 x [3 x i32]], ptr %137, i64 0, i64 %139
  %141 = getelementptr inbounds [3 x i32], ptr %140, i64 0, i64 0
  store ptr %141, ptr %26, align 8, !tbaa !5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %176, %132
  %143 = load i32, ptr %22, align 4, !tbaa !9
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %144, i32 0, i32 3
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds [2 x [2 x i32]], ptr %145, i64 0, i64 %147
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds [2 x i32], ptr %148, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = mul i32 %152, 2
  %154 = icmp ult i32 %143, %153
  br i1 %154, label %155, label %193

155:                                              ; preds = %142
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = load i32, ptr %23, align 4, !tbaa !9
  %158 = icmp ult i32 %156, %157
  br i1 %158, label %159, label %163

159:                                              ; preds = %155
  %160 = load ptr, ptr %26, align 8, !tbaa !5
  %161 = getelementptr inbounds i32, ptr %160, i64 0
  %162 = load i32, ptr %161, align 4, !tbaa !9
  store i32 %162, ptr %21, align 4, !tbaa !9
  br label %176

163:                                              ; preds = %155
  %164 = load i32, ptr %22, align 4, !tbaa !9
  %165 = load i32, ptr %24, align 4, !tbaa !9
  %166 = icmp ult i32 %164, %165
  br i1 %166, label %167, label %171

167:                                              ; preds = %163
  %168 = load ptr, ptr %26, align 8, !tbaa !5
  %169 = getelementptr inbounds i32, ptr %168, i64 1
  %170 = load i32, ptr %169, align 4, !tbaa !9
  store i32 %170, ptr %21, align 4, !tbaa !9
  br label %175

171:                                              ; preds = %163
  %172 = load ptr, ptr %26, align 8, !tbaa !5
  %173 = getelementptr inbounds i32, ptr %172, i64 2
  %174 = load i32, ptr %173, align 4, !tbaa !9
  store i32 %174, ptr %21, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %171, %167
  br label %176

176:                                              ; preds = %175, %159
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = load i32, ptr %21, align 4, !tbaa !9
  call void @_ZN7OpenMP313HuffmanDecodeERNS_9ReservoirEjPiS2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8216) %177, i32 noundef %178, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20)
  %179 = load i32, ptr %17, align 4, !tbaa !9
  %180 = sitofp i32 %179 to float
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = load i32, ptr %22, align 4, !tbaa !9
  %183 = add i32 %182, 1
  store i32 %183, ptr %22, align 4, !tbaa !9
  %184 = zext i32 %182 to i64
  %185 = getelementptr inbounds float, ptr %181, i64 %184
  store float %180, ptr %185, align 4, !tbaa !11
  %186 = load i32, ptr %18, align 4, !tbaa !9
  %187 = sitofp i32 %186 to float
  %188 = load ptr, ptr %15, align 8, !tbaa !5
  %189 = load i32, ptr %22, align 4, !tbaa !9
  %190 = add i32 %189, 1
  store i32 %190, ptr %22, align 4, !tbaa !9
  %191 = zext i32 %189 to i64
  %192 = getelementptr inbounds float, ptr %188, i64 %191
  store float %187, ptr %192, align 4, !tbaa !11
  br label %142, !llvm.loop !19

193:                                              ; preds = %142
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %194, i32 0, i32 15
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds [2 x [2 x i32]], ptr %195, i64 0, i64 %197
  %199 = load i32, ptr %14, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = getelementptr inbounds [2 x i32], ptr %198, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = add i32 %202, 32
  store i32 %203, ptr %21, align 4, !tbaa !9
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.OpenMP3::FrameData", ptr %204, i32 0, i32 3
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds [2 x [2 x i32]], ptr %205, i64 0, i64 %207
  %209 = load i32, ptr %14, align 4, !tbaa !9
  %210 = zext i32 %209 to i64
  %211 = getelementptr inbounds [2 x i32], ptr %208, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %213 = mul i32 %212, 2
  store i32 %213, ptr %22, align 4, !tbaa !9
  br label %214

214:                                              ; preds = %224, %193
  %215 = load i32, ptr %22, align 4, !tbaa !9
  %216 = icmp ule i32 %215, 572
  br i1 %216, label %217, label %222

217:                                              ; preds = %214
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = call noundef i32 @_ZN7OpenMP39Reservoir11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(8216) %218)
  %220 = load i32, ptr %25, align 4, !tbaa !9
  %221 = icmp ule i32 %219, %220
  br label %222

222:                                              ; preds = %217, %214
  %223 = phi i1 [ false, %214 ], [ %221, %217 ]
  br i1 %223, label %224, label %255

224:                                              ; preds = %222
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = load i32, ptr %21, align 4, !tbaa !9
  call void @_ZN7OpenMP313HuffmanDecodeERNS_9ReservoirEjPiS2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8216) %225, i32 noundef %226, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20)
  %227 = load i32, ptr %19, align 4, !tbaa !9
  %228 = sitofp i32 %227 to float
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = load i32, ptr %22, align 4, !tbaa !9
  %231 = add i32 %230, 1
  store i32 %231, ptr %22, align 4, !tbaa !9
  %232 = zext i32 %230 to i64
  %233 = getelementptr inbounds float, ptr %229, i64 %232
  store float %228, ptr %233, align 4, !tbaa !11
  %234 = load i32, ptr %20, align 4, !tbaa !9
  %235 = sitofp i32 %234 to float
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = load i32, ptr %22, align 4, !tbaa !9
  %238 = add i32 %237, 1
  store i32 %238, ptr %22, align 4, !tbaa !9
  %239 = zext i32 %237 to i64
  %240 = getelementptr inbounds float, ptr %236, i64 %239
  store float %235, ptr %240, align 4, !tbaa !11
  %241 = load i32, ptr %17, align 4, !tbaa !9
  %242 = sitofp i32 %241 to float
  %243 = load ptr, ptr %15, align 8, !tbaa !5
  %244 = load i32, ptr %22, align 4, !tbaa !9
  %245 = add i32 %244, 1
  store i32 %245, ptr %22, align 4, !tbaa !9
  %246 = zext i32 %244 to i64
  %247 = getelementptr inbounds float, ptr %243, i64 %246
  store float %242, ptr %247, align 4, !tbaa !11
  %248 = load i32, ptr %18, align 4, !tbaa !9
  %249 = sitofp i32 %248 to float
  %250 = load ptr, ptr %15, align 8, !tbaa !5
  %251 = load i32, ptr %22, align 4, !tbaa !9
  %252 = add i32 %251, 1
  store i32 %252, ptr %22, align 4, !tbaa !9
  %253 = zext i32 %251 to i64
  %254 = getelementptr inbounds float, ptr %250, i64 %253
  store float %249, ptr %254, align 4, !tbaa !11
  br label %214, !llvm.loop !20

255:                                              ; preds = %222
  %256 = load ptr, ptr %9, align 8, !tbaa !5
  %257 = call noundef i32 @_ZN7OpenMP39Reservoir11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(8216) %256)
  %258 = load i32, ptr %25, align 4, !tbaa !9
  %259 = add i32 %258, 1
  %260 = icmp ugt i32 %257, %259
  br i1 %260, label %261, label %264

261:                                              ; preds = %255
  %262 = load i32, ptr %22, align 4, !tbaa !9
  %263 = sub i32 %262, 4
  store i32 %263, ptr %22, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %261, %255
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %265 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %265, ptr %27, align 4, !tbaa !9
  br label %266

266:                                              ; preds = %275, %264
  %267 = load i32, ptr %27, align 4, !tbaa !9
  %268 = icmp ult i32 %267, 576
  br i1 %268, label %270, label %269

269:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %278

270:                                              ; preds = %266
  %271 = load ptr, ptr %15, align 8, !tbaa !5
  %272 = load i32, ptr %27, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = getelementptr inbounds float, ptr %271, i64 %273
  store float 0.000000e+00, ptr %274, align 4, !tbaa !11
  br label %275

275:                                              ; preds = %270
  %276 = load i32, ptr %27, align 4, !tbaa !9
  %277 = add i32 %276, 1
  store i32 %277, ptr %27, align 4, !tbaa !9
  br label %266, !llvm.loop !21

278:                                              ; preds = %269
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = load i32, ptr %25, align 4, !tbaa !9
  %281 = add i32 %280, 1
  call void @_ZN7OpenMP39Reservoir11SetPositionEj(ptr noundef nonnull align 8 dereferenceable(8216) %279, i32 noundef %281)
  %282 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %282, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %283

283:                                              ; preds = %278, %51
  %284 = load i32, ptr %8, align 4
  ret i32 %284
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7OpenMP39Reservoir11SetPositionEj(ptr noundef nonnull align 8 dereferenceable(8216), i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


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

%"struct.OpenMP3::ScaleFactorBandIndices" = type { [23 x i32], [14 x i32] }

@_ZN7OpenMP323kScaleFactorBandIndicesE = external dso_local local_unnamed_addr constant [3 x %"struct.OpenMP3::ScaleFactorBandIndices"], align 16

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7OpenMP39Reservoir11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(8216)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7OpenMP311ReadHuffmanERNS_9ReservoirEjRKNS_9FrameDataEjjjPf(ptr noundef nonnull align 8 dereferenceable(8216) %0, i32 noundef %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(10444) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #2 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = getelementptr inbounds i8, ptr %2, i64 36
  %13 = zext i32 %4 to i64
  %14 = zext i32 %5 to i64
  %15 = getelementptr inbounds [2 x [2 x i32]], ptr %12, i64 0, i64 %13, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %.preheader.preheader, label %18

.preheader.preheader:                             ; preds = %7
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(2304) %6, i8 0, i64 2304, i1 false), !tbaa !9
  br label %.loopexit

18:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %19 = add i32 %16, %3
  %20 = add i32 %19, -1
  %21 = getelementptr inbounds i8, ptr %2, i64 100
  %22 = getelementptr inbounds [2 x [2 x i8]], ptr %21, i64 0, i64 %13, i64 %14
  %23 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %25, label %30

25:                                               ; preds = %18
  %26 = getelementptr inbounds i8, ptr %2, i64 108
  %27 = getelementptr inbounds [2 x [2 x i32]], ptr %26, i64 0, i64 %13, i64 %14
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp eq i32 %28, 2
  br i1 %29, label %50, label %30

30:                                               ; preds = %25, %18
  %31 = zext i32 %1 to i64
  %32 = getelementptr inbounds [3 x %"struct.OpenMP3::ScaleFactorBandIndices"], ptr @_ZN7OpenMP323kScaleFactorBandIndicesE, i64 0, i64 %31
  %33 = getelementptr inbounds i8, ptr %2, i64 220
  %34 = getelementptr inbounds [2 x [2 x i32]], ptr %33, i64 0, i64 %13, i64 %14
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add i32 %35, 1
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds [23 x i32], ptr %32, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %2, i64 236
  %41 = getelementptr inbounds [2 x [2 x i32]], ptr %40, i64 0, i64 %13, i64 %14
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = add i32 %35, 2
  %44 = add i32 %43, %42
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds [23 x i32], ptr %32, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = zext i32 %47 to i64
  %49 = zext i32 %39 to i64
  br label %50

50:                                               ; preds = %25, %30
  %.081 = phi i64 [ %49, %30 ], [ 36, %25 ]
  %.080 = phi i64 [ %48, %30 ], [ 576, %25 ]
  %51 = getelementptr inbounds i8, ptr %2, i64 124
  %52 = getelementptr inbounds [2 x [2 x [3 x i32]]], ptr %51, i64 0, i64 %13, i64 %14
  %53 = getelementptr inbounds i8, ptr %2, i64 52
  %54 = getelementptr inbounds [2 x [2 x i32]], ptr %53, i64 0, i64 %13, i64 %14
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %.mask = and i32 %55, 2147483647
  %.not96 = icmp eq i32 %.mask, 0
  br i1 %.not96, label %.lr.ph88.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %50, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %50 ]
  %56 = icmp ult i64 %indvars.iv, %.081
  %57 = icmp ult i64 %indvars.iv, %.080
  %..v = select i1 %57, i64 4, i64 8
  %.083.in.idx = select i1 %56, i64 0, i64 %..v
  %.083.in = getelementptr inbounds i8, ptr %52, i64 %.083.in.idx
  %.083 = load i32, ptr %.083.in, align 4, !tbaa !5
  call void @_ZN7OpenMP313HuffmanDecodeERNS_9ReservoirEjPiS2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8216) %0, i32 noundef %.083, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = getelementptr inbounds float, ptr %6, i64 %indvars.iv
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %61 = insertelement <2 x i32> poison, i32 %58, i64 0
  %62 = insertelement <2 x i32> %61, i32 %60, i64 1
  %63 = sitofp <2 x i32> %62 to <2 x float>
  store <2 x float> %63, ptr %59, align 4, !tbaa !9
  %64 = load i32, ptr %54, align 4, !tbaa !5
  %65 = shl i32 %64, 1
  %66 = zext i32 %65 to i64
  %67 = icmp ult i64 %indvars.iv.next, %66
  br i1 %67, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph
  %68 = icmp ult i32 %65, 573
  br i1 %68, label %.lr.ph88.preheader, label %.critedge

.lr.ph88.preheader:                               ; preds = %50, %._crit_edge
  %.lcssa111 = phi i32 [ %65, %._crit_edge ], [ 0, %50 ]
  %.pn = getelementptr inbounds i8, ptr %2, i64 284
  %.in.in = getelementptr inbounds [2 x [2 x i32]], ptr %.pn, i64 0, i64 %13, i64 %14
  %.in = load i32, ptr %.in.in, align 4, !tbaa !5
  %69 = add i32 %.in, 32
  %70 = zext nneg i32 %.lcssa111 to i64
  br label %.lr.ph88

.lr.ph88:                                         ; preds = %.lr.ph88.preheader, %72
  %indvars.iv99 = phi i64 [ %70, %.lr.ph88.preheader ], [ %indvars.iv.next100, %72 ]
  %71 = call noundef i32 @_ZN7OpenMP39Reservoir11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(8216) %0)
  %.not = icmp ugt i32 %71, %20
  br i1 %.not, label %.critedge.loopexit, label %72

72:                                               ; preds = %.lr.ph88
  call void @_ZN7OpenMP313HuffmanDecodeERNS_9ReservoirEjPiS2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8216) %0, i32 noundef %69, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = getelementptr inbounds float, ptr %6, i64 %indvars.iv99
  %75 = load i32, ptr %11, align 4, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 4
  %78 = insertelement <4 x i32> poison, i32 %73, i64 0
  %79 = insertelement <4 x i32> %78, i32 %75, i64 1
  %80 = insertelement <4 x i32> %79, i32 %76, i64 2
  %81 = insertelement <4 x i32> %80, i32 %77, i64 3
  %82 = sitofp <4 x i32> %81 to <4 x float>
  store <4 x float> %82, ptr %74, align 4, !tbaa !9
  %83 = icmp ult i64 %indvars.iv99, 569
  br i1 %83, label %.lr.ph88, label %.critedge.loopexit, !llvm.loop !17

.critedge.loopexit:                               ; preds = %72, %.lr.ph88
  %.1.lcssa.ph.in = phi i64 [ %indvars.iv99, %.lr.ph88 ], [ %indvars.iv.next100, %72 ]
  %.1.lcssa.ph = trunc i64 %.1.lcssa.ph.in to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %._crit_edge
  %.1.lcssa = phi i32 [ %65, %._crit_edge ], [ %.1.lcssa.ph, %.critedge.loopexit ]
  %84 = call noundef i32 @_ZN7OpenMP39Reservoir11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(8216) %0)
  %85 = icmp ugt i32 %84, %19
  %86 = add i32 %.1.lcssa, -4
  %spec.select = select i1 %85, i32 %86, i32 %.1.lcssa
  %87 = icmp ult i32 %spec.select, 576
  br i1 %87, label %.lr.ph93.preheader, label %._crit_edge94

.lr.ph93.preheader:                               ; preds = %.critedge
  %88 = shl nuw nsw i32 %spec.select, 2
  %89 = zext nneg i32 %88 to i64
  %scevgep = getelementptr i8, ptr %6, i64 %89
  %90 = shl nuw nsw i32 %spec.select, 2
  %91 = sub nsw i32 2300, %90
  %92 = zext i32 %91 to i64
  %93 = add nuw nsw i64 %92, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %scevgep, i8 0, i64 %93, i1 false), !tbaa !9
  br label %._crit_edge94

._crit_edge94:                                    ; preds = %.lr.ph93.preheader, %.critedge
  call void @_ZN7OpenMP39Reservoir11SetPositionEj(ptr noundef nonnull align 8 dereferenceable(8216) %0, i32 noundef %19)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader.preheader, %._crit_edge94
  %.078 = phi i32 [ %spec.select, %._crit_edge94 ], [ 0, %.preheader.preheader ]
  ret i32 %.078
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7OpenMP39Reservoir11SetPositionEj(ptr noundef nonnull align 8 dereferenceable(8216), i32 noundef) local_unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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