; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (symsync_rrrf_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"

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @symsync_rrrf_test(ptr noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, float noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  %29 = alloca float, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca float, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !11
  store float %4, ptr %11, align 4, !tbaa !11
  store float %5, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store float 0x3FC99999A0000000, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %48 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %48, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %49 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %49, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %50 = load float, ptr %10, align 4, !tbaa !11
  store float %50, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 32, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 400, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 100, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = call i32 @strcmp(ptr noundef %51, ptr noundef @.str) #7
  %53 = icmp eq i32 %52, 0
  %54 = zext i1 %53 to i64
  %55 = select i1 %53, i32 7, i32 1
  store i32 %55, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store float 0x3F847AE140000000, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %56 = load float, ptr %11, align 4, !tbaa !11
  store float %56, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %57 = load float, ptr %12, align 4, !tbaa !11
  store float %57, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %58 = load i32, ptr %18, align 4, !tbaa !9
  %59 = load i32, ptr %19, align 4, !tbaa !9
  %60 = add i32 %58, %59
  store i32 %60, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %24, align 4, !tbaa !9
  %63 = mul i32 %61, %62
  store i32 %63, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %64 = load i32, ptr %25, align 4, !tbaa !9
  %65 = uitofp i32 %64 to float
  %66 = load float, ptr %23, align 4, !tbaa !11
  %67 = fmul float %65, %66
  %68 = fmul float %67, 0x3FF19999A0000000
  %69 = call float @llvm.ceil.f32(float %68)
  %70 = fptoui float %69 to i32
  %71 = add i32 %70, 4
  store i32 %71, ptr %26, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %75, %6
  %73 = load float, ptr %22, align 4, !tbaa !11
  %74 = fcmp olt float %73, 0.000000e+00
  br i1 %74, label %75, label %78

75:                                               ; preds = %72
  %76 = load float, ptr %22, align 4, !tbaa !11
  %77 = fadd float %76, 1.000000e+00
  store float %77, ptr %22, align 4, !tbaa !11
  br label %72, !llvm.loop !13

78:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = uitofp i32 %79 to float
  %81 = load float, ptr %22, align 4, !tbaa !11
  %82 = fmul float %80, %81
  store float %82, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %83 = load float, ptr %27, align 4, !tbaa !11
  %84 = call float @llvm.floor.f32(float %83)
  %85 = fptosi float %84 to i32
  store i32 %85, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %86 = load float, ptr %27, align 4, !tbaa !11
  %87 = load i32, ptr %28, align 4, !tbaa !9
  %88 = sitofp i32 %87 to float
  %89 = fsub float %86, %88
  store float %89, ptr %29, align 4, !tbaa !11
  %90 = load float, ptr %29, align 4, !tbaa !11
  %91 = fcmp ogt float %90, 5.000000e-01
  br i1 %91, label %92, label %97

92:                                               ; preds = %78
  %93 = load float, ptr %29, align 4, !tbaa !11
  %94 = fsub float %93, 1.000000e+00
  store float %94, ptr %29, align 4, !tbaa !11
  %95 = load i32, ptr %28, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %28, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %92, %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %98 = load i32, ptr %24, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = call ptr @llvm.stacksave.p0()
  store ptr %100, ptr %31, align 8
  %101 = alloca float, i64 %99, align 16
  store i64 %99, ptr %32, align 8
  %102 = load i32, ptr %25, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = alloca float, i64 %103, align 16
  store i64 %103, ptr %33, align 8
  %105 = load i32, ptr %26, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = alloca float, i64 %106, align 16
  store i64 %106, ptr %34, align 8
  %108 = load i32, ptr %24, align 4, !tbaa !9
  %109 = add i32 %108, 64
  %110 = zext i32 %109 to i64
  %111 = alloca float, i64 %110, align 16
  store i64 %110, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %112 = call ptr @msequence_create_default(i32 noundef 10)
  store ptr %112, ptr %36, align 8, !tbaa !5
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %126, %97
  %114 = load i32, ptr %30, align 4, !tbaa !9
  %115 = load i32, ptr %24, align 4, !tbaa !9
  %116 = icmp ult i32 %114, %115
  br i1 %116, label %117, label %129

117:                                              ; preds = %113
  %118 = load ptr, ptr %36, align 8, !tbaa !5
  %119 = call i32 @msequence_generate_symbol(ptr noundef %118, i32 noundef 1)
  %120 = icmp ne i32 %119, 0
  %121 = zext i1 %120 to i64
  %122 = select i1 %120, float -1.000000e+00, float 1.000000e+00
  %123 = load i32, ptr %30, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds float, ptr %101, i64 %124
  store float %122, ptr %125, align 4, !tbaa !11
  br label %126

126:                                              ; preds = %117
  %127 = load i32, ptr %30, align 4, !tbaa !9
  %128 = add i32 %127, 1
  store i32 %128, ptr %30, align 4, !tbaa !9
  br label %113, !llvm.loop !15

129:                                              ; preds = %113
  %130 = load ptr, ptr %36, align 8, !tbaa !5
  %131 = call i32 @msequence_destroy(ptr noundef %130)
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %132 = load i32, ptr %20, align 4, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = load float, ptr %16, align 4, !tbaa !11
  %136 = load float, ptr %29, align 4, !tbaa !11
  %137 = call ptr @firinterp_rrrf_create_prototype(i32 noundef %132, i32 noundef %133, i32 noundef %134, float noundef %135, float noundef %136)
  store ptr %137, ptr %37, align 8, !tbaa !5
  %138 = load ptr, ptr %37, align 8, !tbaa !5
  %139 = load i32, ptr %24, align 4, !tbaa !9
  %140 = call i32 @firinterp_rrrf_execute_block(ptr noundef %138, ptr noundef %101, i32 noundef %139, ptr noundef %104)
  %141 = load ptr, ptr %37, align 8, !tbaa !5
  %142 = call i32 @firinterp_rrrf_destroy(ptr noundef %141)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = mul i32 10, %143
  store i32 %144, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store float 0x3FDCCCCCC0000000, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store float 6.000000e+01, ptr %40, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 64, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %145 = load float, ptr %23, align 4, !tbaa !11
  %146 = load i32, ptr %38, align 4, !tbaa !9
  %147 = load float, ptr %39, align 4, !tbaa !11
  %148 = load float, ptr %40, align 4, !tbaa !11
  %149 = load i32, ptr %41, align 4, !tbaa !9
  %150 = call ptr @resamp_rrrf_create(float noundef %145, i32 noundef %146, float noundef %147, float noundef %148, i32 noundef %149)
  store ptr %150, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %151 = load ptr, ptr %42, align 8, !tbaa !5
  %152 = load i32, ptr %25, align 4, !tbaa !9
  %153 = call i32 @resamp_rrrf_execute_block(ptr noundef %151, ptr noundef %104, i32 noundef %152, ptr noundef %107, ptr noundef %43)
  %154 = load ptr, ptr %42, align 8, !tbaa !5
  %155 = call i32 @resamp_rrrf_destroy(ptr noundef %154)
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  store ptr null, ptr %44, align 8, !tbaa !5
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = call i32 @strcmp(ptr noundef %156, ptr noundef @.str) #7
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %166

159:                                              ; preds = %129
  %160 = load i32, ptr %20, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %15, align 4, !tbaa !9
  %163 = load float, ptr %16, align 4, !tbaa !11
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = call ptr @symsync_rrrf_create_rnyquist(i32 noundef %160, i32 noundef %161, i32 noundef %162, float noundef %163, i32 noundef %164)
  store ptr %165, ptr %44, align 8, !tbaa !5
  br label %172

166:                                              ; preds = %129
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = load float, ptr %16, align 4, !tbaa !11
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = call ptr @symsync_rrrf_create_kaiser(i32 noundef %167, i32 noundef %168, float noundef %169, i32 noundef %170)
  store ptr %171, ptr %44, align 8, !tbaa !5
  br label %172

172:                                              ; preds = %166, %159
  %173 = load ptr, ptr %44, align 8, !tbaa !5
  %174 = load float, ptr %21, align 4, !tbaa !11
  %175 = call i32 @symsync_rrrf_set_lf_bw(ptr noundef %173, float noundef %174)
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %176 = load ptr, ptr %44, align 8, !tbaa !5
  %177 = load i32, ptr %43, align 4, !tbaa !9
  %178 = call i32 @symsync_rrrf_execute(ptr noundef %176, ptr noundef %107, i32 noundef %177, ptr noundef %111, ptr noundef %45)
  %179 = load ptr, ptr %44, align 8, !tbaa !5
  %180 = call i32 @symsync_rrrf_destroy(ptr noundef %179)
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = add i32 %181, 10
  %183 = load i32, ptr %15, align 4, !tbaa !9
  %184 = add i32 %182, %183
  store i32 %184, ptr %46, align 4, !tbaa !9
  %185 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %187, label %203

187:                                              ; preds = %172
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %189)
  %191 = load i32, ptr %15, align 4, !tbaa !9
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %191)
  %193 = load float, ptr %16, align 4, !tbaa !11
  %194 = fpext float %193 to double
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %194)
  %196 = load float, ptr %22, align 4, !tbaa !11
  %197 = fpext float %196 to double
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %197)
  %199 = load float, ptr %23, align 4, !tbaa !11
  %200 = fpext float %199 to double
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %200)
  %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %203

203:                                              ; preds = %187, %172
  %204 = load i32, ptr %45, align 4, !tbaa !9
  %205 = load i32, ptr %19, align 4, !tbaa !9
  %206 = sub i32 %204, %205
  store i32 %206, ptr %30, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %260, %203
  %208 = load i32, ptr %30, align 4, !tbaa !9
  %209 = load i32, ptr %45, align 4, !tbaa !9
  %210 = icmp ult i32 %208, %209
  br i1 %210, label %211, label %263

211:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  %212 = load i32, ptr %30, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds float, ptr %111, i64 %213
  %215 = load float, ptr %214, align 4, !tbaa !11
  %216 = load i32, ptr %30, align 4, !tbaa !9
  %217 = load i32, ptr %46, align 4, !tbaa !9
  %218 = sub i32 %216, %217
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds float, ptr %101, i64 %219
  %221 = load float, ptr %220, align 4, !tbaa !11
  %222 = fsub float %215, %221
  %223 = call float @llvm.fabs.f32(float %222)
  store float %223, ptr %47, align 4, !tbaa !11
  %224 = load float, ptr %47, align 4, !tbaa !11
  %225 = load float, ptr %13, align 4, !tbaa !11
  %226 = fcmp oge float %224, %225
  br i1 %226, label %227, label %232

227:                                              ; preds = %211
  %228 = load float, ptr %47, align 4, !tbaa !11
  %229 = fpext float %228 to double
  %230 = load float, ptr %13, align 4, !tbaa !11
  %231 = fpext float %230 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.8, i32 noundef 158, ptr noundef @.str.9, double noundef %229, ptr noundef @.str.10, ptr noundef @.str.11, double noundef %231)
  br label %233

232:                                              ; preds = %211
  call void (...) @liquid_autotest_passed()
  br label %233

233:                                              ; preds = %232, %227
  %234 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %259

236:                                              ; preds = %233
  %237 = load i32, ptr %30, align 4, !tbaa !9
  %238 = add i32 %237, 1
  %239 = load i32, ptr %30, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds float, ptr %111, i64 %240
  %242 = load float, ptr %241, align 4, !tbaa !11
  %243 = fpext float %242 to double
  %244 = load i32, ptr %30, align 4, !tbaa !9
  %245 = load i32, ptr %46, align 4, !tbaa !9
  %246 = sub i32 %244, %245
  %247 = zext i32 %246 to i64
  %248 = getelementptr inbounds float, ptr %101, i64 %247
  %249 = load float, ptr %248, align 4, !tbaa !11
  %250 = fpext float %249 to double
  %251 = load float, ptr %47, align 4, !tbaa !11
  %252 = fpext float %251 to double
  %253 = load float, ptr %47, align 4, !tbaa !11
  %254 = load float, ptr %13, align 4, !tbaa !11
  %255 = fcmp olt float %253, %254
  %256 = zext i1 %255 to i64
  %257 = select i1 %255, ptr @.str.13, ptr @.str.14
  %258 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %238, double noundef %243, double noundef %250, double noundef %252, ptr noundef %257)
  br label %259

259:                                              ; preds = %236, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %30, align 4, !tbaa !9
  %262 = add i32 %261, 1
  store i32 %262, ptr %30, align 4, !tbaa !9
  br label %207, !llvm.loop !16

263:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  %264 = load ptr, ptr %31, align 8
  call void @llvm.stackrestore.p0(ptr %264)
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #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: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.ceil.f32(float) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.floor.f32(float) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

declare ptr @msequence_create_default(i32 noundef) #5

declare i32 @msequence_generate_symbol(ptr noundef, i32 noundef) #5

declare i32 @msequence_destroy(ptr noundef) #5

declare ptr @firinterp_rrrf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) #5

declare i32 @firinterp_rrrf_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

declare i32 @firinterp_rrrf_destroy(ptr noundef) #5

declare ptr @resamp_rrrf_create(float noundef, i32 noundef, float noundef, float noundef, i32 noundef) #5

declare i32 @resamp_rrrf_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #5

declare i32 @resamp_rrrf_destroy(ptr noundef) #5

declare ptr @symsync_rrrf_create_rnyquist(i32 noundef, i32 noundef, i32 noundef, float noundef, i32 noundef) #5

declare ptr @symsync_rrrf_create_kaiser(i32 noundef, i32 noundef, float noundef, i32 noundef) #5

declare i32 @symsync_rrrf_set_lf_bw(ptr noundef, float noundef) #5

declare i32 @symsync_rrrf_execute(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #5

declare i32 @symsync_rrrf_destroy(ptr noundef) #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

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

declare void @liquid_autotest_passed(...) #5

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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 = { nounwind willreturn memory(read) "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 speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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/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 = distinct !{!15, !14}
!16 = distinct !{!16, !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"

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @symsync_rrrf_test(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, float noundef %5) local_unnamed_addr #0 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str) #6
  %10 = icmp eq i32 %9, 0
  %11 = select i1 %10, i32 7, i32 1
  %12 = mul i32 %1, 500
  %13 = uitofp i32 %12 to float
  %14 = fmul float %13, %5
  %15 = fmul float %14, 0x3FF19999A0000000
  %16 = tail call float @llvm.ceil.f32(float %15)
  %17 = fptoui float %16 to i32
  %18 = add i32 %17, 4
  %19 = fcmp olt float %4, 0.000000e+00
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6, %.lr.ph
  %.095 = phi float [ %20, %.lr.ph ], [ %4, %6 ]
  %20 = fadd float %.095, 1.000000e+00
  %21 = fcmp olt float %20, 0.000000e+00
  br i1 %21, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %6
  %.0.lcssa = phi float [ %4, %6 ], [ %20, %.lr.ph ]
  %22 = uitofp i32 %1 to float
  %23 = fmul float %.0.lcssa, %22
  %24 = tail call float @llvm.floor.f32(float %23)
  %25 = fptosi float %24 to i32
  %26 = sitofp i32 %25 to float
  %27 = fsub float %23, %26
  %28 = fadd float %27, -1.000000e+00
  %29 = alloca [500 x float], align 16
  %30 = zext i32 %12 to i64
  %31 = alloca float, i64 %30, align 16
  %32 = zext i32 %18 to i64
  %33 = alloca float, i64 %32, align 16
  %34 = alloca [564 x float], align 16
  %35 = tail call ptr @msequence_create_default(i32 noundef 10) #7
  br label %36

36:                                               ; preds = %._crit_edge, %36
  %indvars.iv = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next, %36 ]
  %37 = tail call i32 @msequence_generate_symbol(ptr noundef %35, i32 noundef 1) #7
  %.not94 = icmp eq i32 %37, 0
  %38 = select i1 %.not94, float 1.000000e+00, float -1.000000e+00
  %39 = getelementptr inbounds float, ptr %29, i64 %indvars.iv
  store float %38, ptr %39, align 4, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 500
  br i1 %exitcond.not, label %40, label %36, !llvm.loop !11

40:                                               ; preds = %36
  %41 = fcmp ogt float %27, 5.000000e-01
  %.088 = select i1 %41, float %28, float %27
  %42 = tail call i32 @msequence_destroy(ptr noundef %35) #7
  %43 = tail call ptr @firinterp_rrrf_create_prototype(i32 noundef %11, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %.088) #7
  %44 = call i32 @firinterp_rrrf_execute_block(ptr noundef %43, ptr noundef nonnull %29, i32 noundef 500, ptr noundef nonnull %31) #7
  %45 = call i32 @firinterp_rrrf_destroy(ptr noundef %43) #7
  %46 = mul i32 %1, 10
  %47 = call ptr @resamp_rrrf_create(float noundef %5, i32 noundef %46, float noundef 0x3FDCCCCCC0000000, float noundef 6.000000e+01, i32 noundef 64) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %48 = call i32 @resamp_rrrf_execute_block(ptr noundef %47, ptr noundef nonnull %31, i32 noundef %12, ptr noundef nonnull %33, ptr noundef nonnull %7) #7
  %49 = call i32 @resamp_rrrf_destroy(ptr noundef %47) #7
  %50 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str) #6
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %54

52:                                               ; preds = %40
  %53 = call ptr @symsync_rrrf_create_rnyquist(i32 noundef %11, i32 noundef %1, i32 noundef %2, float noundef %3, i32 noundef 32) #7
  br label %56

54:                                               ; preds = %40
  %55 = call ptr @symsync_rrrf_create_kaiser(i32 noundef %1, i32 noundef %2, float noundef %3, i32 noundef 32) #7
  br label %56

56:                                               ; preds = %54, %52
  %.087 = phi ptr [ %53, %52 ], [ %55, %54 ]
  %57 = call i32 @symsync_rrrf_set_lf_bw(ptr noundef %.087, float noundef 0x3F847AE140000000) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %58 = load i32, ptr %7, align 4, !tbaa !12
  %59 = call i32 @symsync_rrrf_execute(ptr noundef %.087, ptr noundef nonnull %33, i32 noundef %58, ptr noundef nonnull %34, ptr noundef nonnull %8) #7
  %60 = call i32 @symsync_rrrf_destroy(ptr noundef %.087) #7
  %61 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !12
  %.not = icmp eq i32 %61, 0
  br i1 %.not, label %73, label %62

62:                                               ; preds = %56
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %1)
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %2)
  %66 = fpext float %3 to double
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %66)
  %68 = fpext float %.0.lcssa to double
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %68)
  %70 = fpext float %5 to double
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %70)
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %73

73:                                               ; preds = %62, %56
  %74 = load i32, ptr %8, align 4, !tbaa !12
  %75 = icmp ugt i32 %74, 99
  br i1 %75, label %.lr.ph99, label %._crit_edge100

.lr.ph99:                                         ; preds = %73
  %76 = add i32 %74, -100
  %77 = shl i32 %2, 1
  %78 = zext i32 %76 to i64
  br label %79

79:                                               ; preds = %.lr.ph99, %._crit_edge105
  %indvars.iv102 = phi i64 [ %78, %.lr.ph99 ], [ %.pre, %._crit_edge105 ]
  %80 = getelementptr inbounds float, ptr %34, i64 %indvars.iv102
  %81 = load float, ptr %80, align 4, !tbaa !7
  %82 = trunc nuw i64 %indvars.iv102 to i32
  %reass.sub = sub i32 %82, %77
  %83 = add i32 %reass.sub, -10
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %29, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !7
  %87 = fsub float %81, %86
  %88 = call float @llvm.fabs.f32(float %87)
  %89 = fcmp ult float %88, 0x3FC99999A0000000
  br i1 %89, label %92, label %90

90:                                               ; preds = %79
  %91 = fpext float %88 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.8, i32 noundef 158, ptr noundef nonnull @.str.9, double noundef %91, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11, double noundef 0x3FC99999A0000000) #7
  br label %93

92:                                               ; preds = %79
  call void (...) @liquid_autotest_passed() #7
  br label %93

93:                                               ; preds = %92, %90
  %94 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !12
  %.not93 = icmp eq i32 %94, 0
  %.pre = add nuw nsw i64 %indvars.iv102, 1
  br i1 %.not93, label %._crit_edge105, label %95

95:                                               ; preds = %93
  %96 = load float, ptr %80, align 4, !tbaa !7
  %97 = fpext float %96 to double
  %98 = load float, ptr %85, align 4, !tbaa !7
  %99 = fpext float %98 to double
  %100 = fpext float %88 to double
  %101 = fcmp olt float %88, 0x3FC99999A0000000
  %102 = select i1 %101, ptr @.str.13, ptr @.str.14
  %103 = trunc nuw i64 %.pre to i32
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %103, double noundef %97, double noundef %99, double noundef %100, ptr noundef nonnull %102)
  br label %._crit_edge105

._crit_edge105:                                   ; preds = %93, %95
  %105 = load i32, ptr %8, align 4, !tbaa !12
  %106 = zext i32 %105 to i64
  %107 = icmp ult i64 %.pre, %106
  br i1 %107, label %79, label %._crit_edge100, !llvm.loop !14

._crit_edge100:                                   ; preds = %._crit_edge105, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #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 nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.ceil.f32(float) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.floor.f32(float) #3

declare ptr @msequence_create_default(i32 noundef) local_unnamed_addr #4

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

declare i32 @msequence_destroy(ptr noundef) local_unnamed_addr #4

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

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

declare i32 @firinterp_rrrf_destroy(ptr noundef) local_unnamed_addr #4

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

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

declare i32 @resamp_rrrf_destroy(ptr noundef) local_unnamed_addr #4

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

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

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

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

declare i32 @symsync_rrrf_destroy(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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 nofree nounwind willreturn memory(argmem: read) "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 speculatable willreturn memory(none) }
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 = { 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 #6 = { nounwind willreturn memory(read) }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = distinct !{!14, !6}


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