; LLVM IR from suxiaojack/sapDecoder :: src/equalizer.ll (ZN9Equalizer7EqzInitEv)

; 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.eqz_config_t = type { i32, [10 x %struct.anon] }
%struct.anon = type { float, float, float, float }
%class.Equalizer = type { ptr }
%struct.eq_param_t = type { i32, ptr, ptr, ptr, ptr, float, [32 x [2 x float]], [32 x [128 x [2 x float]]], [32 x [2 x float]], [32 x [128 x [2 x float]]], i32 }

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN9Equalizer7EqzInitEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #1 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %struct.eqz_config_t, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 164, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 44100, ptr %7, align 4, !tbaa !9
  %10 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN9Equalizer9EqzCoeffsEifP12eqz_config_t(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %10, float noundef 1.000000e+00, ptr noundef %4)
  %11 = getelementptr inbounds %struct.eqz_config_t, ptr %4, i32 0, i32 0
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds %struct.eq_param_t, ptr %14, i32 0, i32 0
  store i32 %12, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = getelementptr inbounds %struct.eq_param_t, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !15
  %20 = sext i32 %19 to i64
  %21 = mul i64 %20, 4
  %22 = call noalias ptr @malloc(i64 noundef %21) #6
  %23 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds %struct.eq_param_t, ptr %24, i32 0, i32 1
  store ptr %22, ptr %25, align 8, !tbaa !18
  %26 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %28 = getelementptr inbounds %struct.eq_param_t, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !15
  %30 = sext i32 %29 to i64
  %31 = mul i64 %30, 4
  %32 = call noalias ptr @malloc(i64 noundef %31) #6
  %33 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds %struct.eq_param_t, ptr %34, i32 0, i32 2
  store ptr %32, ptr %35, align 8, !tbaa !19
  %36 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = getelementptr inbounds %struct.eq_param_t, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !15
  %40 = sext i32 %39 to i64
  %41 = mul i64 %40, 4
  %42 = call noalias ptr @malloc(i64 noundef %41) #6
  %43 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %struct.eq_param_t, ptr %44, i32 0, i32 3
  store ptr %42, ptr %45, align 8, !tbaa !20
  %46 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = getelementptr inbounds %struct.eq_param_t, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %63

51:                                               ; preds = %1
  %52 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = getelementptr inbounds %struct.eq_param_t, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %63

57:                                               ; preds = %51
  %58 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = getelementptr inbounds %struct.eq_param_t, ptr %59, i32 0, i32 3
  %61 = load ptr, ptr %60, align 8, !tbaa !20
  %62 = icmp ne ptr %61, null
  br i1 %62, label %64, label %63

63:                                               ; preds = %57, %51, %1
  br label %249

64:                                               ; preds = %57
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %112, %64
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  %69 = getelementptr inbounds %struct.eq_param_t, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !15
  %71 = icmp slt i32 %66, %70
  br i1 %71, label %72, label %115

72:                                               ; preds = %65
  %73 = getelementptr inbounds %struct.eqz_config_t, ptr %4, i32 0, i32 1
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [10 x %struct.anon], ptr %73, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.anon, ptr %76, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !21
  %79 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = getelementptr inbounds %struct.eq_param_t, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %82, i64 %84
  store float %78, ptr %85, align 4, !tbaa !23
  %86 = getelementptr inbounds %struct.eqz_config_t, ptr %4, i32 0, i32 1
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [10 x %struct.anon], ptr %86, i64 0, i64 %88
  %90 = getelementptr inbounds %struct.anon, ptr %89, i32 0, i32 2
  %91 = load float, ptr %90, align 4, !tbaa !24
  %92 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = getelementptr inbounds %struct.eq_param_t, ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %96 = load i32, ptr %5, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds float, ptr %95, i64 %97
  store float %91, ptr %98, align 4, !tbaa !23
  %99 = getelementptr inbounds %struct.eqz_config_t, ptr %4, i32 0, i32 1
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [10 x %struct.anon], ptr %99, i64 0, i64 %101
  %103 = getelementptr inbounds %struct.anon, ptr %102, i32 0, i32 3
  %104 = load float, ptr %103, align 4, !tbaa !25
  %105 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = getelementptr inbounds %struct.eq_param_t, ptr %106, i32 0, i32 3
  %108 = load ptr, ptr %107, align 8, !tbaa !20
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %108, i64 %110
  store float %104, ptr %111, align 4, !tbaa !23
  br label %112

112:                                              ; preds = %72
  %113 = load i32, ptr %5, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %5, align 4, !tbaa !9
  br label %65, !llvm.loop !26

115:                                              ; preds = %65
  %116 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !13
  %118 = getelementptr inbounds %struct.eq_param_t, ptr %117, i32 0, i32 10
  store i32 0, ptr %118, align 4, !tbaa !28
  %119 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !13
  %121 = getelementptr inbounds %struct.eq_param_t, ptr %120, i32 0, i32 5
  store float 1.000000e+00, ptr %121, align 8, !tbaa !29
  %122 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = getelementptr inbounds %struct.eq_param_t, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !15
  %126 = sext i32 %125 to i64
  %127 = mul i64 %126, 4
  %128 = call noalias ptr @malloc(i64 noundef %127) #6
  %129 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = getelementptr inbounds %struct.eq_param_t, ptr %130, i32 0, i32 4
  store ptr %128, ptr %131, align 8, !tbaa !30
  %132 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !13
  %134 = getelementptr inbounds %struct.eq_param_t, ptr %133, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !30
  %136 = icmp ne ptr %135, null
  br i1 %136, label %138, label %137

137:                                              ; preds = %115
  br label %249

138:                                              ; preds = %115
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %154, %138
  %140 = load i32, ptr %5, align 4, !tbaa !9
  %141 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !13
  %143 = getelementptr inbounds %struct.eq_param_t, ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 8, !tbaa !15
  %145 = icmp slt i32 %140, %144
  br i1 %145, label %146, label %157

146:                                              ; preds = %139
  %147 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %148 = load ptr, ptr %147, align 8, !tbaa !13
  %149 = getelementptr inbounds %struct.eq_param_t, ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !30
  %151 = load i32, ptr %5, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds float, ptr %150, i64 %152
  store float 0.000000e+00, ptr %153, align 4, !tbaa !23
  br label %154

154:                                              ; preds = %146
  %155 = load i32, ptr %5, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %5, align 4, !tbaa !9
  br label %139, !llvm.loop !31

157:                                              ; preds = %139
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %242, %157
  %159 = load i32, ptr %6, align 4, !tbaa !9
  %160 = icmp slt i32 %159, 32
  br i1 %160, label %161, label %245

161:                                              ; preds = %158
  %162 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8, !tbaa !13
  %164 = getelementptr inbounds %struct.eq_param_t, ptr %163, i32 0, i32 8
  %165 = load i32, ptr %6, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [32 x [2 x float]], ptr %164, i64 0, i64 %166
  %168 = getelementptr inbounds [2 x float], ptr %167, i64 0, i64 1
  store float 0.000000e+00, ptr %168, align 4, !tbaa !23
  %169 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !13
  %171 = getelementptr inbounds %struct.eq_param_t, ptr %170, i32 0, i32 8
  %172 = load i32, ptr %6, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [32 x [2 x float]], ptr %171, i64 0, i64 %173
  %175 = getelementptr inbounds [2 x float], ptr %174, i64 0, i64 0
  store float 0.000000e+00, ptr %175, align 4, !tbaa !23
  %176 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !13
  %178 = getelementptr inbounds %struct.eq_param_t, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %6, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [32 x [2 x float]], ptr %178, i64 0, i64 %180
  %182 = getelementptr inbounds [2 x float], ptr %181, i64 0, i64 1
  store float 0.000000e+00, ptr %182, align 4, !tbaa !23
  %183 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8, !tbaa !13
  %185 = getelementptr inbounds %struct.eq_param_t, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %6, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [32 x [2 x float]], ptr %185, i64 0, i64 %187
  %189 = getelementptr inbounds [2 x float], ptr %188, i64 0, i64 0
  store float 0.000000e+00, ptr %189, align 4, !tbaa !23
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %238, %161
  %191 = load i32, ptr %5, align 4, !tbaa !9
  %192 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !13
  %194 = getelementptr inbounds %struct.eq_param_t, ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 8, !tbaa !15
  %196 = icmp slt i32 %191, %195
  br i1 %196, label %197, label %241

197:                                              ; preds = %190
  %198 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = getelementptr inbounds %struct.eq_param_t, ptr %199, i32 0, i32 9
  %201 = load i32, ptr %6, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %200, i64 0, i64 %202
  %204 = load i32, ptr %5, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [128 x [2 x float]], ptr %203, i64 0, i64 %205
  %207 = getelementptr inbounds [2 x float], ptr %206, i64 0, i64 1
  store float 0.000000e+00, ptr %207, align 4, !tbaa !23
  %208 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !13
  %210 = getelementptr inbounds %struct.eq_param_t, ptr %209, i32 0, i32 9
  %211 = load i32, ptr %6, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %210, i64 0, i64 %212
  %214 = load i32, ptr %5, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [128 x [2 x float]], ptr %213, i64 0, i64 %215
  %217 = getelementptr inbounds [2 x float], ptr %216, i64 0, i64 0
  store float 0.000000e+00, ptr %217, align 4, !tbaa !23
  %218 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %219 = load ptr, ptr %218, align 8, !tbaa !13
  %220 = getelementptr inbounds %struct.eq_param_t, ptr %219, i32 0, i32 7
  %221 = load i32, ptr %6, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %220, i64 0, i64 %222
  %224 = load i32, ptr %5, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [128 x [2 x float]], ptr %223, i64 0, i64 %225
  %227 = getelementptr inbounds [2 x float], ptr %226, i64 0, i64 1
  store float 0.000000e+00, ptr %227, align 4, !tbaa !23
  %228 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !13
  %230 = getelementptr inbounds %struct.eq_param_t, ptr %229, i32 0, i32 7
  %231 = load i32, ptr %6, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %230, i64 0, i64 %232
  %234 = load i32, ptr %5, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [128 x [2 x float]], ptr %233, i64 0, i64 %235
  %237 = getelementptr inbounds [2 x float], ptr %236, i64 0, i64 0
  store float 0.000000e+00, ptr %237, align 4, !tbaa !23
  br label %238

238:                                              ; preds = %197
  %239 = load i32, ptr %5, align 4, !tbaa !9
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %5, align 4, !tbaa !9
  br label %190, !llvm.loop !32

241:                                              ; preds = %190
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %6, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %6, align 4, !tbaa !9
  br label %158, !llvm.loop !33

245:                                              ; preds = %158
  %246 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8, !tbaa !13
  %248 = getelementptr inbounds %struct.eq_param_t, ptr %247, i32 0, i32 10
  store i32 0, ptr %248, align 4, !tbaa !28
  store i32 1, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %262

249:                                              ; preds = %137, %63
  %250 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8, !tbaa !13
  %252 = getelementptr inbounds %struct.eq_param_t, ptr %251, i32 0, i32 1
  %253 = load ptr, ptr %252, align 8, !tbaa !18
  call void @free(ptr noundef %253) #5
  %254 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8, !tbaa !13
  %256 = getelementptr inbounds %struct.eq_param_t, ptr %255, i32 0, i32 2
  %257 = load ptr, ptr %256, align 8, !tbaa !19
  call void @free(ptr noundef %257) #5
  %258 = getelementptr inbounds %class.Equalizer, ptr %9, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8, !tbaa !13
  %260 = getelementptr inbounds %struct.eq_param_t, ptr %259, i32 0, i32 3
  %261 = load ptr, ptr %260, align 8, !tbaa !20
  call void @free(ptr noundef %261) #5
  store i32 0, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %262

262:                                              ; preds = %249, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 164, ptr %4) #5
  %263 = load i32, ptr %2, align 4
  ret i32 %263
}

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9Equalizer9EqzCoeffsEifP12eqz_config_t(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, float noundef, ptr noundef) #4 align 2

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

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

!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, !10, i64 0}
!12 = !{!"_ZTS12eqz_config_t", !10, i64 0, !7, i64 4}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS9Equalizer", !6, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTS10eq_param_t", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !17, i64 40, !7, i64 44, !7, i64 300, !7, i64 33068, !7, i64 33324, !10, i64 66092}
!17 = !{!"float", !7, i64 0}
!18 = !{!16, !6, i64 8}
!19 = !{!16, !6, i64 16}
!20 = !{!16, !6, i64 24}
!21 = !{!22, !17, i64 4}
!22 = !{!"_ZTSN12eqz_config_tUt_E", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!23 = !{!17, !17, i64 0}
!24 = !{!22, !17, i64 8}
!25 = !{!22, !17, i64 12}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!16, !10, i64 66092}
!29 = !{!16, !17, i64 40}
!30 = !{!16, !6, i64 32}
!31 = distinct !{!31, !27}
!32 = distinct !{!32, !27}
!33 = distinct !{!33, !27}


; 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.eqz_config_t = type { i32, [10 x %struct.anon] }
%struct.anon = type { float, float, float, float }

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN9Equalizer7EqzInitEv(ptr noundef nonnull align 8 dereferenceable(8) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %struct.eqz_config_t, align 4
  call void @llvm.lifetime.start.p0(i64 164, ptr nonnull %2) #5
  call void @_ZN9Equalizer9EqzCoeffsEifP12eqz_config_t(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef 44100, float noundef 1.000000e+00, ptr noundef nonnull %2)
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = load ptr, ptr %0, align 8, !tbaa !10
  store i32 %3, ptr %4, align 8, !tbaa !13
  %5 = sext i32 %3 to i64
  %6 = shl nsw i64 %5, 2
  %7 = call noalias ptr @malloc(i64 noundef %6) #6
  %8 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %7, ptr %8, align 8, !tbaa !16
  %9 = call noalias ptr @malloc(i64 noundef %6) #6
  %10 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %9, ptr %10, align 8, !tbaa !17
  %11 = call noalias ptr @malloc(i64 noundef %6) #6
  %12 = getelementptr inbounds i8, ptr %4, i64 24
  store ptr %11, ptr %12, align 8, !tbaa !18
  %.not = icmp eq ptr %7, null
  %.not31 = icmp eq ptr %9, null
  %or.cond = or i1 %.not, %.not31
  %.not32 = icmp eq ptr %11, null
  %or.cond34 = or i1 %or.cond, %.not32
  br i1 %or.cond34, label %95, label %.preheader36

.preheader36:                                     ; preds = %1
  %13 = icmp sgt i32 %3, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader36
  %14 = getelementptr inbounds i8, ptr %2, i64 4
  %wide.trip.count = zext nneg i32 %3 to i64
  %min.iters.check = icmp ult i32 %3, 5
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.mod.vf = and i64 %wide.trip.count, 3
  %15 = icmp eq i64 %n.mod.vf, 0
  %16 = select i1 %15, i64 4, i64 %n.mod.vf
  %n.vec = sub nsw i64 %wide.trip.count, %16
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %17 = or disjoint i64 %index, 1
  %18 = or disjoint i64 %index, 2
  %19 = or disjoint i64 %index, 3
  %20 = getelementptr inbounds [10 x %struct.anon], ptr %14, i64 0, i64 %index
  %21 = getelementptr inbounds [10 x %struct.anon], ptr %14, i64 0, i64 %17
  %22 = getelementptr inbounds [10 x %struct.anon], ptr %14, i64 0, i64 %18
  %23 = getelementptr inbounds [10 x %struct.anon], ptr %14, i64 0, i64 %19
  %24 = getelementptr inbounds i8, ptr %20, i64 4
  %25 = getelementptr inbounds i8, ptr %21, i64 4
  %26 = getelementptr inbounds i8, ptr %22, i64 4
  %27 = getelementptr inbounds i8, ptr %23, i64 4
  %28 = load float, ptr %24, align 4, !tbaa !19
  %29 = load float, ptr %25, align 4, !tbaa !19
  %30 = load float, ptr %26, align 4, !tbaa !19
  %31 = load float, ptr %27, align 4, !tbaa !19
  %32 = insertelement <4 x float> poison, float %28, i64 0
  %33 = insertelement <4 x float> %32, float %29, i64 1
  %34 = insertelement <4 x float> %33, float %30, i64 2
  %35 = insertelement <4 x float> %34, float %31, i64 3
  %36 = getelementptr inbounds float, ptr %7, i64 %index
  store <4 x float> %35, ptr %36, align 4, !tbaa !21
  %37 = getelementptr inbounds i8, ptr %20, i64 8
  %38 = getelementptr inbounds i8, ptr %21, i64 8
  %39 = getelementptr inbounds i8, ptr %22, i64 8
  %40 = getelementptr inbounds i8, ptr %23, i64 8
  %41 = load float, ptr %37, align 4, !tbaa !22
  %42 = load float, ptr %38, align 4, !tbaa !22
  %43 = load float, ptr %39, align 4, !tbaa !22
  %44 = load float, ptr %40, align 4, !tbaa !22
  %45 = insertelement <4 x float> poison, float %41, i64 0
  %46 = insertelement <4 x float> %45, float %42, i64 1
  %47 = insertelement <4 x float> %46, float %43, i64 2
  %48 = insertelement <4 x float> %47, float %44, i64 3
  %49 = getelementptr inbounds float, ptr %9, i64 %index
  store <4 x float> %48, ptr %49, align 4, !tbaa !21
  %50 = getelementptr inbounds i8, ptr %20, i64 12
  %51 = getelementptr inbounds i8, ptr %21, i64 12
  %52 = getelementptr inbounds i8, ptr %22, i64 12
  %53 = getelementptr inbounds i8, ptr %23, i64 12
  %54 = load float, ptr %50, align 4, !tbaa !23
  %55 = load float, ptr %51, align 4, !tbaa !23
  %56 = load float, ptr %52, align 4, !tbaa !23
  %57 = load float, ptr %53, align 4, !tbaa !23
  %58 = insertelement <4 x float> poison, float %54, i64 0
  %59 = insertelement <4 x float> %58, float %55, i64 1
  %60 = insertelement <4 x float> %59, float %56, i64 2
  %61 = insertelement <4 x float> %60, float %57, i64 3
  %62 = getelementptr inbounds float, ptr %11, i64 %index
  store <4 x float> %61, ptr %62, align 4, !tbaa !21
  %index.next = add nuw i64 %index, 4
  %63 = icmp eq i64 %index.next, %n.vec
  br i1 %63, label %scalar.ph.preheader, label %vector.body, !llvm.loop !24

scalar.ph.preheader:                              ; preds = %vector.body, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %vector.body ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %64 = getelementptr inbounds [10 x %struct.anon], ptr %14, i64 0, i64 %indvars.iv
  %65 = getelementptr inbounds i8, ptr %64, i64 4
  %66 = load float, ptr %65, align 4, !tbaa !19
  %67 = getelementptr inbounds float, ptr %7, i64 %indvars.iv
  store float %66, ptr %67, align 4, !tbaa !21
  %68 = getelementptr inbounds i8, ptr %64, i64 8
  %69 = load float, ptr %68, align 4, !tbaa !22
  %70 = getelementptr inbounds float, ptr %9, i64 %indvars.iv
  store float %69, ptr %70, align 4, !tbaa !21
  %71 = getelementptr inbounds i8, ptr %64, i64 12
  %72 = load float, ptr %71, align 4, !tbaa !23
  %73 = getelementptr inbounds float, ptr %11, i64 %indvars.iv
  store float %72, ptr %73, align 4, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !28

._crit_edge:                                      ; preds = %scalar.ph, %.preheader36
  %74 = getelementptr inbounds i8, ptr %4, i64 66092
  store i32 0, ptr %74, align 4, !tbaa !29
  %75 = getelementptr inbounds i8, ptr %4, i64 40
  store float 1.000000e+00, ptr %75, align 8, !tbaa !30
  %76 = call noalias ptr @malloc(i64 noundef %6) #6
  %77 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %76, ptr %77, align 8, !tbaa !31
  %.not33 = icmp eq ptr %76, null
  br i1 %.not33, label %95, label %.preheader35

.preheader35:                                     ; preds = %._crit_edge
  br i1 %13, label %.lr.ph42.us.preheader, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader35
  %78 = getelementptr i8, ptr %4, i64 33068
  %79 = getelementptr i8, ptr %4, i64 44
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(256) %79, i8 0, i64 256, i1 false), !tbaa !21
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(256) %78, i8 0, i64 256, i1 false)
  br label %.split.us

.lr.ph42.us.preheader:                            ; preds = %.preheader35
  %80 = zext nneg i32 %3 to i64
  %81 = shl nuw nsw i64 %80, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %76, i8 0, i64 %81, i1 false), !tbaa !21
  %82 = getelementptr i8, ptr %4, i64 33068
  %83 = getelementptr i8, ptr %4, i64 44
  %84 = getelementptr inbounds i8, ptr %4, i64 33324
  %85 = getelementptr inbounds i8, ptr %4, i64 300
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(256) %83, i8 0, i64 256, i1 false), !tbaa !21
  %wide.trip.count57 = zext nneg i32 %3 to i64
  %min.iters.check65 = icmp ult i32 %3, 4
  %n.vec68 = and i64 %wide.trip.count57, 2147483644
  %cmp.n = icmp eq i64 %n.vec68, %wide.trip.count57
  br label %.lr.ph42.us

.lr.ph42.us:                                      ; preds = %.lr.ph42.us.preheader, %._crit_edge43.us
  %indvars.iv59 = phi i64 [ 0, %.lr.ph42.us.preheader ], [ %indvars.iv.next60, %._crit_edge43.us ]
  %86 = getelementptr inbounds [32 x [2 x float]], ptr %82, i64 0, i64 %indvars.iv59
  store <2 x float> zeroinitializer, ptr %86, align 4, !tbaa !21
  br i1 %min.iters.check65, label %scalar.ph64.preheader, label %vector.body70

vector.body70:                                    ; preds = %.lr.ph42.us, %vector.body70
  %index71 = phi i64 [ %index.next72, %vector.body70 ], [ 0, %.lr.ph42.us ]
  %87 = or disjoint i64 %index71, 2
  %88 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %84, i64 0, i64 %indvars.iv59, i64 %index71
  %89 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %84, i64 0, i64 %indvars.iv59, i64 %87
  store <4 x float> zeroinitializer, ptr %88, align 4, !tbaa !21
  store <4 x float> zeroinitializer, ptr %89, align 4, !tbaa !21
  %90 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %85, i64 0, i64 %indvars.iv59, i64 %index71
  %91 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %85, i64 0, i64 %indvars.iv59, i64 %87
  store <4 x float> zeroinitializer, ptr %90, align 4, !tbaa !21
  store <4 x float> zeroinitializer, ptr %91, align 4, !tbaa !21
  %index.next72 = add nuw i64 %index71, 4
  %92 = icmp eq i64 %index.next72, %n.vec68
  br i1 %92, label %middle.block63, label %vector.body70, !llvm.loop !32

middle.block63:                                   ; preds = %vector.body70
  br i1 %cmp.n, label %._crit_edge43.us, label %scalar.ph64.preheader

scalar.ph64.preheader:                            ; preds = %middle.block63, %.lr.ph42.us
  %indvars.iv54.ph = phi i64 [ 0, %.lr.ph42.us ], [ %n.vec68, %middle.block63 ]
  br label %scalar.ph64

scalar.ph64:                                      ; preds = %scalar.ph64.preheader, %scalar.ph64
  %indvars.iv54 = phi i64 [ %indvars.iv.next55, %scalar.ph64 ], [ %indvars.iv54.ph, %scalar.ph64.preheader ]
  %93 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %84, i64 0, i64 %indvars.iv59, i64 %indvars.iv54
  store <2 x float> zeroinitializer, ptr %93, align 4, !tbaa !21
  %94 = getelementptr inbounds [32 x [128 x [2 x float]]], ptr %85, i64 0, i64 %indvars.iv59, i64 %indvars.iv54
  store <2 x float> zeroinitializer, ptr %94, align 4, !tbaa !21
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %exitcond58.not = icmp eq i64 %indvars.iv.next55, %wide.trip.count57
  br i1 %exitcond58.not, label %._crit_edge43.us, label %scalar.ph64, !llvm.loop !33

._crit_edge43.us:                                 ; preds = %scalar.ph64, %middle.block63
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next60, 32
  br i1 %exitcond62.not, label %.split.us, label %.lr.ph42.us, !llvm.loop !34

.split.us:                                        ; preds = %._crit_edge43.us, %.preheader.split.preheader
  store i32 0, ptr %74, align 4, !tbaa !29
  br label %96

95:                                               ; preds = %._crit_edge, %1
  call void @free(ptr noundef %7) #5
  call void @free(ptr noundef %9) #5
  call void @free(ptr noundef %11) #5
  br label %96

96:                                               ; preds = %95, %.split.us
  %.0 = phi i32 [ 1, %.split.us ], [ 0, %95 ]
  call void @llvm.lifetime.end.p0(i64 164, ptr nonnull %2) #5
  ret i32 %.0
}

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS12eqz_config_t", !7, i64 0, !8, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTS9Equalizer", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTS10eq_param_t", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !15, i64 40, !8, i64 44, !8, i64 300, !8, i64 33068, !8, i64 33324, !7, i64 66092}
!15 = !{!"float", !8, i64 0}
!16 = !{!14, !12, i64 8}
!17 = !{!14, !12, i64 16}
!18 = !{!14, !12, i64 24}
!19 = !{!20, !15, i64 4}
!20 = !{!"_ZTSN12eqz_config_tUt_E", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!21 = !{!15, !15, i64 0}
!22 = !{!20, !15, i64 8}
!23 = !{!20, !15, i64 12}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !25, !27, !26}
!29 = !{!14, !7, i64 66092}
!30 = !{!14, !15, i64 40}
!31 = !{!14, !12, i64 32}
!32 = distinct !{!32, !25, !26, !27}
!33 = distinct !{!33, !25, !27, !26}
!34 = distinct !{!34, !25}


; Effective O3 passes: ADCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass