; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (filter_crosscorr_autotest)

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

@__const.autotest_filter_crosscorr_rrrf.x = external hidden unnamed_addr constant [16 x float], align 16
@__const.autotest_filter_crosscorr_rrrf.y = external hidden unnamed_addr constant [8 x float], align 16
@__const.autotest_filter_crosscorr_rrrf.rxy_test = external hidden unnamed_addr constant [23 x float], align 16
@liquid_autotest_verbose = external global i32, align 4
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.autotest_filter_crosscorr_rrrf.ryx_test = external hidden unnamed_addr constant [23 x float], align 16
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_filter_crosscorr_rrrf() #0 {
  %1 = alloca float, align 4
  %2 = alloca i32, align 4
  %3 = alloca [16 x float], align 16
  %4 = alloca i32, align 4
  %5 = alloca [8 x float], align 16
  %6 = alloca i32, align 4
  %7 = alloca [23 x float], align 16
  %8 = alloca [23 x float], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [23 x float], align 16
  %13 = alloca [23 x float], align 16
  %14 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store float 0x3F50624DE0000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 16, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.autotest_filter_crosscorr_rrrf.x, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 8, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.autotest_filter_crosscorr_rrrf.y, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %15 = load i32, ptr %2, align 4, !tbaa !9
  %16 = load i32, ptr %4, align 4, !tbaa !9
  %17 = add nsw i32 %15, %16
  %18 = sub nsw i32 %17, 1
  store i32 %18, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 92, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 92, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.autotest_filter_crosscorr_rrrf.rxy_test, i64 92, i1 false)
  %19 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %0
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %23

23:                                               ; preds = %21, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %68, %23
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = icmp ult i32 %25, %26
  br i1 %27, label %28, label %71

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = load i32, ptr %4, align 4, !tbaa !9
  %31 = sub nsw i32 %29, %30
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %10, align 4, !tbaa !9
  %33 = getelementptr inbounds [16 x float], ptr %3, i64 0, i64 0
  %34 = load i32, ptr %2, align 4, !tbaa !9
  %35 = getelementptr inbounds [8 x float], ptr %5, i64 0, i64 0
  %36 = load i32, ptr %4, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = call float @liquid_filter_crosscorr(ptr noundef %33, i32 noundef %34, ptr noundef %35, i32 noundef %36, i32 noundef %37)
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %40
  store float %38, ptr %41, align 4, !tbaa !5
  %42 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %67

44:                                               ; preds = %28
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = fpext float %49 to double
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fpext float %54 to double
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = fsub float %59, %63
  %65 = fpext float %64 to double
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %45, double noundef %50, double noundef %55, double noundef %65)
  br label %67

67:                                               ; preds = %44, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %9, align 4, !tbaa !9
  br label %24, !llvm.loop !11

71:                                               ; preds = %24
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %193, %71
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = icmp ult i32 %73, %74
  br i1 %75, label %76, label %196

76:                                               ; preds = %72
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %82
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = fsub float %80, %84
  %86 = fpext float %85 to double
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !5
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !5
  %95 = fsub float %90, %94
  %96 = fpext float %95 to double
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %102
  %104 = load float, ptr %103, align 4, !tbaa !5
  %105 = fsub float %100, %104
  %106 = fpext float %105 to double
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %108
  %110 = load float, ptr %109, align 4, !tbaa !5
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %112
  %114 = load float, ptr %113, align 4, !tbaa !5
  %115 = fsub float %110, %114
  %116 = fpext float %115 to double
  %117 = call double @llvm.fmuladd.f64(double %86, double %96, double 0.000000e+00)
  %118 = call double @sqrt(double noundef %117) #6
  %119 = load float, ptr %1, align 4, !tbaa !5
  %120 = fpext float %119 to double
  %121 = fcmp ogt double %118, %120
  br i1 %121, label %146, label %122

122:                                              ; preds = %76
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !5
  %127 = call i1 @llvm.is.fpclass.f32(float %126, i32 3)
  br i1 %127, label %146, label %128

128:                                              ; preds = %122
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %130
  %132 = load float, ptr %131, align 4, !tbaa !5
  %133 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %133, label %146, label %134

134:                                              ; preds = %128
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %136
  %138 = load float, ptr %137, align 4, !tbaa !5
  %139 = call i1 @llvm.is.fpclass.f32(float %138, i32 3)
  br i1 %139, label %146, label %140

140:                                              ; preds = %134
  %141 = load i32, ptr %9, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %142
  %144 = load float, ptr %143, align 4, !tbaa !5
  %145 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %145, label %146, label %191

146:                                              ; preds = %140, %134, %128, %122, %76
  %147 = load i32, ptr %9, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %148
  %150 = load float, ptr %149, align 4, !tbaa !5
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %152
  %154 = load float, ptr %153, align 4, !tbaa !5
  %155 = fsub float %150, %154
  %156 = fpext float %155 to double
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %158
  %160 = load float, ptr %159, align 4, !tbaa !5
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %162
  %164 = load float, ptr %163, align 4, !tbaa !5
  %165 = fsub float %160, %164
  %166 = fpext float %165 to double
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %168
  %170 = load float, ptr %169, align 4, !tbaa !5
  %171 = load i32, ptr %9, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %172
  %174 = load float, ptr %173, align 4, !tbaa !5
  %175 = fsub float %170, %174
  %176 = fpext float %175 to double
  %177 = load i32, ptr %9, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [23 x float], ptr %7, i64 0, i64 %178
  %180 = load float, ptr %179, align 4, !tbaa !5
  %181 = load i32, ptr %9, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [23 x float], ptr %8, i64 0, i64 %182
  %184 = load float, ptr %183, align 4, !tbaa !5
  %185 = fsub float %180, %184
  %186 = fpext float %185 to double
  %187 = call double @llvm.fmuladd.f64(double %156, double %166, double 0.000000e+00)
  %188 = call double @sqrt(double noundef %187) #6
  %189 = load float, ptr %1, align 4, !tbaa !5
  %190 = fpext float %189 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 71, ptr noundef @.str.3, double noundef %188, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %190)
  br label %192

191:                                              ; preds = %140
  call void (...) @liquid_autotest_passed()
  br label %192

192:                                              ; preds = %191, %146
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %9, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %9, align 4, !tbaa !9
  br label %72, !llvm.loop !13

196:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %197 = load i32, ptr %2, align 4, !tbaa !9
  %198 = load i32, ptr %4, align 4, !tbaa !9
  %199 = add nsw i32 %197, %198
  %200 = sub nsw i32 %199, 1
  store i32 %200, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 92, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 92, ptr %13) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.autotest_filter_crosscorr_rrrf.ryx_test, i64 92, i1 false)
  %201 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %205

203:                                              ; preds = %196
  %204 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %205

205:                                              ; preds = %203, %196
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %206

206:                                              ; preds = %250, %205
  %207 = load i32, ptr %9, align 4, !tbaa !9
  %208 = load i32, ptr %11, align 4, !tbaa !9
  %209 = icmp ult i32 %207, %208
  br i1 %209, label %210, label %253

210:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %211 = load i32, ptr %9, align 4, !tbaa !9
  %212 = load i32, ptr %2, align 4, !tbaa !9
  %213 = sub nsw i32 %211, %212
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %14, align 4, !tbaa !9
  %215 = getelementptr inbounds [8 x float], ptr %5, i64 0, i64 0
  %216 = load i32, ptr %4, align 4, !tbaa !9
  %217 = getelementptr inbounds [16 x float], ptr %3, i64 0, i64 0
  %218 = load i32, ptr %2, align 4, !tbaa !9
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = call float @liquid_filter_crosscorr(ptr noundef %215, i32 noundef %216, ptr noundef %217, i32 noundef %218, i32 noundef %219)
  %221 = load i32, ptr %9, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %222
  store float %220, ptr %223, align 4, !tbaa !5
  %224 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %249

226:                                              ; preds = %210
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = load i32, ptr %9, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %229
  %231 = load float, ptr %230, align 4, !tbaa !5
  %232 = fpext float %231 to double
  %233 = load i32, ptr %9, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %234
  %236 = load float, ptr %235, align 4, !tbaa !5
  %237 = fpext float %236 to double
  %238 = load i32, ptr %9, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %239
  %241 = load float, ptr %240, align 4, !tbaa !5
  %242 = load i32, ptr %9, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %243
  %245 = load float, ptr %244, align 4, !tbaa !5
  %246 = fsub float %241, %245
  %247 = fpext float %246 to double
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %227, double noundef %232, double noundef %237, double noundef %247)
  br label %249

249:                                              ; preds = %226, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr %9, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %9, align 4, !tbaa !9
  br label %206, !llvm.loop !14

253:                                              ; preds = %206
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %254

254:                                              ; preds = %375, %253
  %255 = load i32, ptr %9, align 4, !tbaa !9
  %256 = load i32, ptr %11, align 4, !tbaa !9
  %257 = icmp ult i32 %255, %256
  br i1 %257, label %258, label %378

258:                                              ; preds = %254
  %259 = load i32, ptr %9, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %260
  %262 = load float, ptr %261, align 4, !tbaa !5
  %263 = load i32, ptr %9, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %264
  %266 = load float, ptr %265, align 4, !tbaa !5
  %267 = fsub float %262, %266
  %268 = fpext float %267 to double
  %269 = load i32, ptr %9, align 4, !tbaa !9
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %270
  %272 = load float, ptr %271, align 4, !tbaa !5
  %273 = load i32, ptr %9, align 4, !tbaa !9
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %274
  %276 = load float, ptr %275, align 4, !tbaa !5
  %277 = fsub float %272, %276
  %278 = fpext float %277 to double
  %279 = load i32, ptr %9, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %280
  %282 = load float, ptr %281, align 4, !tbaa !5
  %283 = load i32, ptr %9, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %284
  %286 = load float, ptr %285, align 4, !tbaa !5
  %287 = fsub float %282, %286
  %288 = fpext float %287 to double
  %289 = load i32, ptr %9, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %290
  %292 = load float, ptr %291, align 4, !tbaa !5
  %293 = load i32, ptr %9, align 4, !tbaa !9
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %294
  %296 = load float, ptr %295, align 4, !tbaa !5
  %297 = fsub float %292, %296
  %298 = fpext float %297 to double
  %299 = call double @llvm.fmuladd.f64(double %268, double %278, double 0.000000e+00)
  %300 = call double @sqrt(double noundef %299) #6
  %301 = load float, ptr %1, align 4, !tbaa !5
  %302 = fpext float %301 to double
  %303 = fcmp ogt double %300, %302
  br i1 %303, label %328, label %304

304:                                              ; preds = %258
  %305 = load i32, ptr %9, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %306
  %308 = load float, ptr %307, align 4, !tbaa !5
  %309 = call i1 @llvm.is.fpclass.f32(float %308, i32 3)
  br i1 %309, label %328, label %310

310:                                              ; preds = %304
  %311 = load i32, ptr %9, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %312
  %314 = load float, ptr %313, align 4, !tbaa !5
  %315 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %315, label %328, label %316

316:                                              ; preds = %310
  %317 = load i32, ptr %9, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %318
  %320 = load float, ptr %319, align 4, !tbaa !5
  %321 = call i1 @llvm.is.fpclass.f32(float %320, i32 3)
  br i1 %321, label %328, label %322

322:                                              ; preds = %316
  %323 = load i32, ptr %9, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %324
  %326 = load float, ptr %325, align 4, !tbaa !5
  %327 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %327, label %328, label %373

328:                                              ; preds = %322, %316, %310, %304, %258
  %329 = load i32, ptr %9, align 4, !tbaa !9
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %330
  %332 = load float, ptr %331, align 4, !tbaa !5
  %333 = load i32, ptr %9, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %334
  %336 = load float, ptr %335, align 4, !tbaa !5
  %337 = fsub float %332, %336
  %338 = fpext float %337 to double
  %339 = load i32, ptr %9, align 4, !tbaa !9
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %340
  %342 = load float, ptr %341, align 4, !tbaa !5
  %343 = load i32, ptr %9, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %344
  %346 = load float, ptr %345, align 4, !tbaa !5
  %347 = fsub float %342, %346
  %348 = fpext float %347 to double
  %349 = load i32, ptr %9, align 4, !tbaa !9
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %350
  %352 = load float, ptr %351, align 4, !tbaa !5
  %353 = load i32, ptr %9, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %354
  %356 = load float, ptr %355, align 4, !tbaa !5
  %357 = fsub float %352, %356
  %358 = fpext float %357 to double
  %359 = load i32, ptr %9, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [23 x float], ptr %12, i64 0, i64 %360
  %362 = load float, ptr %361, align 4, !tbaa !5
  %363 = load i32, ptr %9, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [23 x float], ptr %13, i64 0, i64 %364
  %366 = load float, ptr %365, align 4, !tbaa !5
  %367 = fsub float %362, %366
  %368 = fpext float %367 to double
  %369 = call double @llvm.fmuladd.f64(double %338, double %348, double 0.000000e+00)
  %370 = call double @sqrt(double noundef %369) #6
  %371 = load float, ptr %1, align 4, !tbaa !5
  %372 = fpext float %371 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 98, ptr noundef @.str.8, double noundef %370, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %372)
  br label %374

373:                                              ; preds = %322
  call void (...) @liquid_autotest_passed()
  br label %374

374:                                              ; preds = %373, %328
  br label %375

375:                                              ; preds = %374
  %376 = load i32, ptr %9, align 4, !tbaa !9
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %9, align 4, !tbaa !9
  br label %254, !llvm.loop !15

378:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 92, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 92, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 92, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare float @liquid_filter_crosscorr(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #5

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #3

declare void @liquid_autotest_passed(...) #3

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

@__const.autotest_filter_crosscorr_rrrf.x = external hidden unnamed_addr constant [16 x float], align 16
@__const.autotest_filter_crosscorr_rrrf.y = external hidden unnamed_addr constant [8 x float], align 16
@__const.autotest_filter_crosscorr_rrrf.rxy_test = external hidden unnamed_addr constant [23 x float], align 16
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.autotest_filter_crosscorr_rrrf.ryx_test = external hidden unnamed_addr constant [23 x float], align 16
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_filter_crosscorr_rrrf() local_unnamed_addr #0 {
  %1 = alloca [16 x float], align 16
  %2 = alloca [8 x float], align 16
  %3 = alloca [23 x float], align 16
  %4 = alloca [23 x float], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) @__const.autotest_filter_crosscorr_rrrf.x, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull align 16 dereferenceable(32) @__const.autotest_filter_crosscorr_rrrf.y, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %3) #7
  %5 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %.preheader109, label %6

6:                                                ; preds = %0
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %.preheader109

.preheader109:                                    ; preds = %6, %0
  br label %8

8:                                                ; preds = %.preheader109, %22
  %indvars.iv = phi i64 [ %indvars.iv.next, %22 ], [ 0, %.preheader109 ]
  %9 = trunc i64 %indvars.iv to i32
  %10 = add i32 %9, -7
  %11 = call float @liquid_filter_crosscorr(ptr noundef nonnull %1, i32 noundef 16, ptr noundef nonnull %2, i32 noundef 8, i32 noundef %10) #7
  %12 = getelementptr inbounds [23 x float], ptr %3, i64 0, i64 %indvars.iv
  store float %11, ptr %12, align 4, !tbaa !9
  %13 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not83 = icmp eq i32 %13, 0
  br i1 %.not83, label %22, label %14

14:                                               ; preds = %8
  %15 = fpext float %11 to double
  %16 = getelementptr inbounds [23 x float], ptr @__const.autotest_filter_crosscorr_rrrf.rxy_test, i64 0, i64 %indvars.iv
  %17 = load float, ptr %16, align 4, !tbaa !9
  %18 = fpext float %17 to double
  %19 = fsub float %11, %17
  %20 = fpext float %19 to double
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %10, double noundef %15, double noundef %18, double noundef %20)
  br label %22

22:                                               ; preds = %14, %8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 23
  br i1 %exitcond.not, label %.preheader90, label %8, !llvm.loop !11

.preheader90:                                     ; preds = %22, %35
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %35 ], [ 0, %22 ]
  %23 = getelementptr inbounds [23 x float], ptr %3, i64 0, i64 %indvars.iv96
  %24 = load float, ptr %23, align 4, !tbaa !9
  %25 = getelementptr inbounds [23 x float], ptr @__const.autotest_filter_crosscorr_rrrf.rxy_test, i64 0, i64 %indvars.iv96
  %26 = load float, ptr %25, align 4, !tbaa !9
  %27 = fsub float %24, %26
  %28 = fpext float %27 to double
  %29 = call double @llvm.fmuladd.f64(double %28, double %28, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %29)
  %30 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %31 = fcmp uno float %24, 0.000000e+00
  %or.cond = select i1 %30, i1 true, i1 %31
  %32 = fcmp uno float %26, 0.000000e+00
  %or.cond84 = select i1 %or.cond, i1 true, i1 %32
  br i1 %or.cond84, label %33, label %34

33:                                               ; preds = %.preheader90
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 71, ptr noundef nonnull @.str.3, double noundef %sqrt, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %35

34:                                               ; preds = %.preheader90
  call void (...) @liquid_autotest_passed() #7
  br label %35

35:                                               ; preds = %33, %34
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond99.not = icmp eq i64 %indvars.iv.next97, 23
  br i1 %exitcond99.not, label %36, label %.preheader90, !llvm.loop !13

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %4) #7
  %37 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not81 = icmp eq i32 %37, 0
  br i1 %.not81, label %.preheader108, label %38

38:                                               ; preds = %36
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %.preheader108

.preheader108:                                    ; preds = %38, %36
  br label %40

40:                                               ; preds = %.preheader108, %54
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %54 ], [ 0, %.preheader108 ]
  %41 = trunc i64 %indvars.iv100 to i32
  %42 = add i32 %41, -15
  %43 = call float @liquid_filter_crosscorr(ptr noundef nonnull %2, i32 noundef 8, ptr noundef nonnull %1, i32 noundef 16, i32 noundef %42) #7
  %44 = getelementptr inbounds [23 x float], ptr %4, i64 0, i64 %indvars.iv100
  store float %43, ptr %44, align 4, !tbaa !9
  %45 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not82 = icmp eq i32 %45, 0
  br i1 %.not82, label %54, label %46

46:                                               ; preds = %40
  %47 = fpext float %43 to double
  %48 = getelementptr inbounds [23 x float], ptr @__const.autotest_filter_crosscorr_rrrf.ryx_test, i64 0, i64 %indvars.iv100
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = fpext float %49 to double
  %51 = fsub float %43, %49
  %52 = fpext float %51 to double
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %42, double noundef %47, double noundef %50, double noundef %52)
  br label %54

54:                                               ; preds = %46, %40
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next101, 23
  br i1 %exitcond103.not, label %.preheader, label %40, !llvm.loop !14

.preheader:                                       ; preds = %54, %67
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %67 ], [ 0, %54 ]
  %55 = getelementptr inbounds [23 x float], ptr %4, i64 0, i64 %indvars.iv104
  %56 = load float, ptr %55, align 4, !tbaa !9
  %57 = getelementptr inbounds [23 x float], ptr @__const.autotest_filter_crosscorr_rrrf.ryx_test, i64 0, i64 %indvars.iv104
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = fsub float %56, %58
  %60 = fpext float %59 to double
  %61 = call double @llvm.fmuladd.f64(double %60, double %60, double 0.000000e+00)
  %sqrt88 = call double @llvm.sqrt.f64(double %61)
  %62 = fcmp ogt double %sqrt88, 0x3F50624DE0000000
  %63 = fcmp uno float %56, 0.000000e+00
  %or.cond85 = select i1 %62, i1 true, i1 %63
  %64 = fcmp uno float %58, 0.000000e+00
  %or.cond86 = select i1 %or.cond85, i1 true, i1 %64
  br i1 %or.cond86, label %65, label %66

65:                                               ; preds = %.preheader
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 98, ptr noundef nonnull @.str.8, double noundef %sqrt88, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %67

66:                                               ; preds = %.preheader
  call void (...) @liquid_autotest_passed() #7
  br label %67

67:                                               ; preds = %65, %66
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next105, 23
  br i1 %exitcond107.not, label %68, label %.preheader, !llvm.loop !15

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #7
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

declare void @liquid_autotest_passed(...) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #6

attributes #0 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass