; LLVM IR from jgaeddert/liquid-dsp :: src/nco/tests (nco_crcf_phase_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.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [27 x i8], align 1

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

declare ptr @nco_crcf_create(i32 noundef) #1

declare i32 @nco_crcf_set_phase(ptr noundef, float noundef) #1

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

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

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

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

declare void @liquid_autotest_passed(...) #1

declare i32 @nco_crcf_destroy(ptr noundef) #1

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

declare i32 @nco_crcf_set_frequency(ptr noundef, float noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_nco_block_mixing() #4 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca { float, float }, align 4
  %9 = alloca { float, float }, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store float 0x3FB99999A0000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store float 0x400921FB60000000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store float 0x3FA99999A0000000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1024, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %13 = load i32, ptr %5, align 4, !tbaa !9
  %14 = zext i32 %13 to i64
  %15 = mul i64 %14, 8
  %16 = call noalias ptr @malloc(i64 noundef %15) #7
  store ptr %16, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = mul i64 %18, 8
  %20 = call noalias ptr @malloc(i64 noundef %19) #7
  store ptr %20, ptr %7, align 8, !tbaa !11
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %47, %0
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = icmp ult i32 %22, %23
  br i1 %24, label %25, label %50

25:                                               ; preds = %21
  %26 = load float, ptr %1, align 4, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = uitofp i32 %27 to float
  %29 = load float, ptr %2, align 4, !tbaa !5
  %30 = call float @llvm.fmuladd.f32(float %26, float %28, float %29)
  %31 = fmul float 0.000000e+00, %30
  %32 = fmul float 1.000000e+00, %30
  %33 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %34 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  store float %31, ptr %33, align 4
  store float %32, ptr %34, align 4
  %35 = load <2 x float>, ptr %8, align 4
  %36 = call <2 x float> @cexpf(<2 x float> noundef %35) #6
  store <2 x float> %36, ptr %9, align 4
  %37 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %38 = load float, ptr %37, align 4
  %39 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  %40 = load float, ptr %39, align 4
  %41 = load ptr, ptr %6, align 8, !tbaa !11
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds { float, float }, ptr %41, i64 %43
  %45 = getelementptr inbounds { float, float }, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds { float, float }, ptr %44, i32 0, i32 1
  store float %38, ptr %45, align 4
  store float %40, ptr %46, align 4
  br label %47

47:                                               ; preds = %25
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = add i32 %48, 1
  store i32 %49, ptr %4, align 4, !tbaa !9
  br label %21, !llvm.loop !13

50:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %51 = call ptr @nco_crcf_create(i32 noundef 0)
  store ptr %51, ptr %10, align 8, !tbaa !11
  %52 = load ptr, ptr %10, align 8, !tbaa !11
  %53 = load float, ptr %1, align 4, !tbaa !5
  %54 = call i32 @nco_crcf_set_frequency(ptr noundef %52, float noundef %53)
  %55 = load ptr, ptr %10, align 8, !tbaa !11
  %56 = load float, ptr %2, align 4, !tbaa !5
  %57 = call i32 @nco_crcf_set_phase(ptr noundef %55, float noundef %56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %58 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %58, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %68, %50
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = icmp ugt i32 %60, 0
  br i1 %61, label %62, label %87

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = icmp ult i32 7, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  br label %68

66:                                               ; preds = %62
  %67 = load i32, ptr %11, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %66, %65
  %69 = phi i32 [ 7, %65 ], [ %67, %66 ]
  store i32 %69, ptr %12, align 4, !tbaa !9
  %70 = load ptr, ptr %10, align 8, !tbaa !11
  %71 = load ptr, ptr %6, align 8, !tbaa !11
  %72 = load i32, ptr %4, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds { float, float }, ptr %71, i64 %73
  %75 = load ptr, ptr %7, align 8, !tbaa !11
  %76 = load i32, ptr %4, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds { float, float }, ptr %75, i64 %77
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = call i32 @nco_crcf_mix_block_down(ptr noundef %70, ptr noundef %74, ptr noundef %78, i32 noundef %79)
  %81 = load i32, ptr %12, align 4, !tbaa !9
  %82 = load i32, ptr %4, align 4, !tbaa !9
  %83 = add i32 %82, %81
  store i32 %83, ptr %4, align 4, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = sub i32 %85, %84
  store i32 %86, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %59, !llvm.loop !15

87:                                               ; preds = %59
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %325, %87
  %89 = load i32, ptr %4, align 4, !tbaa !9
  %90 = load i32, ptr %5, align 4, !tbaa !9
  %91 = icmp ult i32 %89, %90
  br i1 %91, label %92, label %328

92:                                               ; preds = %88
  %93 = load ptr, ptr %7, align 8, !tbaa !11
  %94 = load i32, ptr %4, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds { float, float }, ptr %93, i64 %95
  %97 = getelementptr inbounds { float, float }, ptr %96, i32 0, i32 0
  %98 = load float, ptr %97, align 4
  %99 = getelementptr inbounds { float, float }, ptr %96, i32 0, i32 1
  %100 = load float, ptr %99, align 4
  %101 = fsub float %98, 1.000000e+00
  %102 = fpext float %101 to double
  %103 = load ptr, ptr %7, align 8, !tbaa !11
  %104 = load i32, ptr %4, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds { float, float }, ptr %103, i64 %105
  %107 = getelementptr inbounds { float, float }, ptr %106, i32 0, i32 0
  %108 = load float, ptr %107, align 4
  %109 = getelementptr inbounds { float, float }, ptr %106, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  %111 = fsub float %108, 1.000000e+00
  %112 = fpext float %111 to double
  %113 = load ptr, ptr %7, align 8, !tbaa !11
  %114 = load i32, ptr %4, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds { float, float }, ptr %113, i64 %115
  %117 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 0
  %118 = load float, ptr %117, align 4
  %119 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 1
  %120 = load float, ptr %119, align 4
  %121 = fsub float %118, 1.000000e+00
  %122 = fpext float %121 to double
  %123 = load ptr, ptr %7, align 8, !tbaa !11
  %124 = load i32, ptr %4, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds { float, float }, ptr %123, i64 %125
  %127 = getelementptr inbounds { float, float }, ptr %126, i32 0, i32 0
  %128 = load float, ptr %127, align 4
  %129 = getelementptr inbounds { float, float }, ptr %126, i32 0, i32 1
  %130 = load float, ptr %129, align 4
  %131 = fsub float %128, 1.000000e+00
  %132 = fpext float %131 to double
  %133 = call double @llvm.fmuladd.f64(double %102, double %112, double 0.000000e+00)
  %134 = call double @sqrt(double noundef %133) #6
  %135 = load float, ptr %3, align 4, !tbaa !5
  %136 = fpext float %135 to double
  %137 = fcmp ogt double %134, %136
  br i1 %137, label %162, label %138

138:                                              ; preds = %92
  %139 = load ptr, ptr %7, align 8, !tbaa !11
  %140 = load i32, ptr %4, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds { float, float }, ptr %139, i64 %141
  %143 = getelementptr inbounds { float, float }, ptr %142, i32 0, i32 0
  %144 = load float, ptr %143, align 4
  %145 = getelementptr inbounds { float, float }, ptr %142, i32 0, i32 1
  %146 = load float, ptr %145, align 4
  %147 = call i1 @llvm.is.fpclass.f32(float %144, i32 3)
  br i1 %147, label %162, label %148

148:                                              ; preds = %138
  %149 = load ptr, ptr %7, align 8, !tbaa !11
  %150 = load i32, ptr %4, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds { float, float }, ptr %149, i64 %151
  %153 = getelementptr inbounds { float, float }, ptr %152, i32 0, i32 0
  %154 = load float, ptr %153, align 4
  %155 = getelementptr inbounds { float, float }, ptr %152, i32 0, i32 1
  %156 = load float, ptr %155, align 4
  %157 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %157, label %162, label %158

158:                                              ; preds = %148
  %159 = call i1 @llvm.is.fpclass.f32(float 1.000000e+00, i32 3)
  br i1 %159, label %162, label %160

160:                                              ; preds = %158
  %161 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %161, label %162, label %207

162:                                              ; preds = %160, %158, %148, %138, %92
  %163 = load ptr, ptr %7, align 8, !tbaa !11
  %164 = load i32, ptr %4, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds { float, float }, ptr %163, i64 %165
  %167 = getelementptr inbounds { float, float }, ptr %166, i32 0, i32 0
  %168 = load float, ptr %167, align 4
  %169 = getelementptr inbounds { float, float }, ptr %166, i32 0, i32 1
  %170 = load float, ptr %169, align 4
  %171 = fsub float %168, 1.000000e+00
  %172 = fpext float %171 to double
  %173 = load ptr, ptr %7, align 8, !tbaa !11
  %174 = load i32, ptr %4, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds { float, float }, ptr %173, i64 %175
  %177 = getelementptr inbounds { float, float }, ptr %176, i32 0, i32 0
  %178 = load float, ptr %177, align 4
  %179 = getelementptr inbounds { float, float }, ptr %176, i32 0, i32 1
  %180 = load float, ptr %179, align 4
  %181 = fsub float %178, 1.000000e+00
  %182 = fpext float %181 to double
  %183 = load ptr, ptr %7, align 8, !tbaa !11
  %184 = load i32, ptr %4, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds { float, float }, ptr %183, i64 %185
  %187 = getelementptr inbounds { float, float }, ptr %186, i32 0, i32 0
  %188 = load float, ptr %187, align 4
  %189 = getelementptr inbounds { float, float }, ptr %186, i32 0, i32 1
  %190 = load float, ptr %189, align 4
  %191 = fsub float %188, 1.000000e+00
  %192 = fpext float %191 to double
  %193 = load ptr, ptr %7, align 8, !tbaa !11
  %194 = load i32, ptr %4, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds { float, float }, ptr %193, i64 %195
  %197 = getelementptr inbounds { float, float }, ptr %196, i32 0, i32 0
  %198 = load float, ptr %197, align 4
  %199 = getelementptr inbounds { float, float }, ptr %196, i32 0, i32 1
  %200 = load float, ptr %199, align 4
  %201 = fsub float %198, 1.000000e+00
  %202 = fpext float %201 to double
  %203 = call double @llvm.fmuladd.f64(double %172, double %182, double 0.000000e+00)
  %204 = call double @sqrt(double noundef %203) #6
  %205 = load float, ptr %3, align 4, !tbaa !5
  %206 = fpext float %205 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 226, ptr noundef @.str.19, double noundef %204, ptr noundef @.str.3, ptr noundef @.str.7, double noundef %206)
  br label %208

207:                                              ; preds = %160
  call void (...) @liquid_autotest_passed()
  br label %208

208:                                              ; preds = %207, %162
  %209 = load ptr, ptr %7, align 8, !tbaa !11
  %210 = load i32, ptr %4, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds { float, float }, ptr %209, i64 %211
  %213 = getelementptr inbounds { float, float }, ptr %212, i32 0, i32 0
  %214 = load float, ptr %213, align 4
  %215 = getelementptr inbounds { float, float }, ptr %212, i32 0, i32 1
  %216 = load float, ptr %215, align 4
  %217 = fsub float %216, 0.000000e+00
  %218 = fpext float %217 to double
  %219 = load ptr, ptr %7, align 8, !tbaa !11
  %220 = load i32, ptr %4, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds { float, float }, ptr %219, i64 %221
  %223 = getelementptr inbounds { float, float }, ptr %222, i32 0, i32 0
  %224 = load float, ptr %223, align 4
  %225 = getelementptr inbounds { float, float }, ptr %222, i32 0, i32 1
  %226 = load float, ptr %225, align 4
  %227 = fsub float %226, 0.000000e+00
  %228 = fpext float %227 to double
  %229 = load ptr, ptr %7, align 8, !tbaa !11
  %230 = load i32, ptr %4, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds { float, float }, ptr %229, i64 %231
  %233 = getelementptr inbounds { float, float }, ptr %232, i32 0, i32 0
  %234 = load float, ptr %233, align 4
  %235 = getelementptr inbounds { float, float }, ptr %232, i32 0, i32 1
  %236 = load float, ptr %235, align 4
  %237 = fsub float %236, 0.000000e+00
  %238 = fpext float %237 to double
  %239 = load ptr, ptr %7, align 8, !tbaa !11
  %240 = load i32, ptr %4, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = getelementptr inbounds { float, float }, ptr %239, i64 %241
  %243 = getelementptr inbounds { float, float }, ptr %242, i32 0, i32 0
  %244 = load float, ptr %243, align 4
  %245 = getelementptr inbounds { float, float }, ptr %242, i32 0, i32 1
  %246 = load float, ptr %245, align 4
  %247 = fsub float %246, 0.000000e+00
  %248 = fpext float %247 to double
  %249 = call double @llvm.fmuladd.f64(double %218, double %228, double 0.000000e+00)
  %250 = call double @sqrt(double noundef %249) #6
  %251 = load float, ptr %3, align 4, !tbaa !5
  %252 = fpext float %251 to double
  %253 = fcmp ogt double %250, %252
  br i1 %253, label %278, label %254

254:                                              ; preds = %208
  %255 = load ptr, ptr %7, align 8, !tbaa !11
  %256 = load i32, ptr %4, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = getelementptr inbounds { float, float }, ptr %255, i64 %257
  %259 = getelementptr inbounds { float, float }, ptr %258, i32 0, i32 0
  %260 = load float, ptr %259, align 4
  %261 = getelementptr inbounds { float, float }, ptr %258, i32 0, i32 1
  %262 = load float, ptr %261, align 4
  %263 = call i1 @llvm.is.fpclass.f32(float %262, i32 3)
  br i1 %263, label %278, label %264

264:                                              ; preds = %254
  %265 = load ptr, ptr %7, align 8, !tbaa !11
  %266 = load i32, ptr %4, align 4, !tbaa !9
  %267 = zext i32 %266 to i64
  %268 = getelementptr inbounds { float, float }, ptr %265, i64 %267
  %269 = getelementptr inbounds { float, float }, ptr %268, i32 0, i32 0
  %270 = load float, ptr %269, align 4
  %271 = getelementptr inbounds { float, float }, ptr %268, i32 0, i32 1
  %272 = load float, ptr %271, align 4
  %273 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %273, label %278, label %274

274:                                              ; preds = %264
  %275 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %275, label %278, label %276

276:                                              ; preds = %274
  %277 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %277, label %278, label %323

278:                                              ; preds = %276, %274, %264, %254, %208
  %279 = load ptr, ptr %7, align 8, !tbaa !11
  %280 = load i32, ptr %4, align 4, !tbaa !9
  %281 = zext i32 %280 to i64
  %282 = getelementptr inbounds { float, float }, ptr %279, i64 %281
  %283 = getelementptr inbounds { float, float }, ptr %282, i32 0, i32 0
  %284 = load float, ptr %283, align 4
  %285 = getelementptr inbounds { float, float }, ptr %282, i32 0, i32 1
  %286 = load float, ptr %285, align 4
  %287 = fsub float %286, 0.000000e+00
  %288 = fpext float %287 to double
  %289 = load ptr, ptr %7, align 8, !tbaa !11
  %290 = load i32, ptr %4, align 4, !tbaa !9
  %291 = zext i32 %290 to i64
  %292 = getelementptr inbounds { float, float }, ptr %289, i64 %291
  %293 = getelementptr inbounds { float, float }, ptr %292, i32 0, i32 0
  %294 = load float, ptr %293, align 4
  %295 = getelementptr inbounds { float, float }, ptr %292, i32 0, i32 1
  %296 = load float, ptr %295, align 4
  %297 = fsub float %296, 0.000000e+00
  %298 = fpext float %297 to double
  %299 = load ptr, ptr %7, align 8, !tbaa !11
  %300 = load i32, ptr %4, align 4, !tbaa !9
  %301 = zext i32 %300 to i64
  %302 = getelementptr inbounds { float, float }, ptr %299, i64 %301
  %303 = getelementptr inbounds { float, float }, ptr %302, i32 0, i32 0
  %304 = load float, ptr %303, align 4
  %305 = getelementptr inbounds { float, float }, ptr %302, i32 0, i32 1
  %306 = load float, ptr %305, align 4
  %307 = fsub float %306, 0.000000e+00
  %308 = fpext float %307 to double
  %309 = load ptr, ptr %7, align 8, !tbaa !11
  %310 = load i32, ptr %4, align 4, !tbaa !9
  %311 = zext i32 %310 to i64
  %312 = getelementptr inbounds { float, float }, ptr %309, i64 %311
  %313 = getelementptr inbounds { float, float }, ptr %312, i32 0, i32 0
  %314 = load float, ptr %313, align 4
  %315 = getelementptr inbounds { float, float }, ptr %312, i32 0, i32 1
  %316 = load float, ptr %315, align 4
  %317 = fsub float %316, 0.000000e+00
  %318 = fpext float %317 to double
  %319 = call double @llvm.fmuladd.f64(double %288, double %298, double 0.000000e+00)
  %320 = call double @sqrt(double noundef %319) #6
  %321 = load float, ptr %3, align 4, !tbaa !5
  %322 = fpext float %321 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 227, ptr noundef @.str.20, double noundef %320, ptr noundef @.str.3, ptr noundef @.str.7, double noundef %322)
  br label %324

323:                                              ; preds = %276
  call void (...) @liquid_autotest_passed()
  br label %324

324:                                              ; preds = %323, %278
  br label %325

325:                                              ; preds = %324
  %326 = load i32, ptr %4, align 4, !tbaa !9
  %327 = add i32 %326, 1
  store i32 %327, ptr %4, align 4, !tbaa !9
  br label %88, !llvm.loop !16

328:                                              ; preds = %88
  %329 = load ptr, ptr %6, align 8, !tbaa !11
  call void @free(ptr noundef %329) #6
  %330 = load ptr, ptr %7, align 8, !tbaa !11
  call void @free(ptr noundef %330) #6
  %331 = load ptr, ptr %10, align 8, !tbaa !11
  %332 = call i32 @nco_crcf_destroy(ptr noundef %331)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) #2

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

declare i32 @nco_crcf_mix_block_down(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 speculatable willreturn memory(none) }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="64" "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 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !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.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [27 x i8], align 1

declare ptr @nco_crcf_create(i32 noundef) local_unnamed_addr #0

declare i32 @nco_crcf_set_phase(ptr noundef, float noundef) local_unnamed_addr #0

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

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

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

declare i32 @nco_crcf_destroy(ptr noundef) local_unnamed_addr #0

declare i32 @nco_crcf_set_frequency(ptr noundef, float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @autotest_nco_block_mixing() local_unnamed_addr #2 {
  %1 = tail call noalias dereferenceable_or_null(8192) ptr @malloc(i64 noundef 8192) #7
  %2 = tail call noalias dereferenceable_or_null(8192) ptr @malloc(i64 noundef 8192) #7
  br label %3

3:                                                ; preds = %0, %3
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %3 ]
  %4 = trunc nuw nsw i64 %indvars.iv to i32
  %5 = uitofp nneg i32 %4 to float
  %6 = tail call float @llvm.fmuladd.f32(float %5, float 0x3FB99999A0000000, float 0x400921FB60000000)
  %7 = fmul float %6, 0.000000e+00
  %.sroa.010.0.vec.insert = insertelement <2 x float> poison, float %7, i64 0
  %.sroa.010.4.vec.insert = insertelement <2 x float> %.sroa.010.0.vec.insert, float %6, i64 1
  %8 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.010.4.vec.insert) #8
  %9 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv
  store <2 x float> %8, ptr %9, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1024
  br i1 %exitcond.not, label %10, label %3, !llvm.loop !5

10:                                               ; preds = %3
  %11 = tail call ptr @nco_crcf_create(i32 noundef 0) #8
  %12 = tail call i32 @nco_crcf_set_frequency(ptr noundef %11, float noundef 0x3FB99999A0000000) #8
  %13 = tail call i32 @nco_crcf_set_phase(ptr noundef %11, float noundef 0x400921FB60000000) #8
  br label %14

14:                                               ; preds = %10, %14
  %.185 = phi i32 [ 0, %10 ], [ %20, %14 ]
  %.07984 = phi i32 [ 1024, %10 ], [ %21, %14 ]
  %15 = tail call i32 @llvm.umin.i32(i32 %.07984, i32 7)
  %16 = zext i32 %.185 to i64
  %17 = getelementptr inbounds { float, float }, ptr %1, i64 %16
  %18 = getelementptr inbounds { float, float }, ptr %2, i64 %16
  %19 = tail call i32 @nco_crcf_mix_block_down(ptr noundef %11, ptr noundef %17, ptr noundef %18, i32 noundef %15) #8
  %20 = add i32 %.185, %15
  %21 = sub i32 %.07984, %15
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %.preheader, label %14, !llvm.loop !7

.preheader:                                       ; preds = %14, %40
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %40 ], [ 0, %14 ]
  %22 = getelementptr inbounds { float, float }, ptr %2, i64 %indvars.iv88
  %23 = load float, ptr %22, align 4
  %24 = getelementptr inbounds i8, ptr %22, i64 4
  %25 = fadd float %23, -1.000000e+00
  %26 = fpext float %25 to double
  %27 = tail call double @llvm.fmuladd.f64(double %26, double %26, double 0.000000e+00)
  %sqrt = tail call double @llvm.sqrt.f64(double %27)
  %28 = fcmp ogt double %sqrt, 0x3FA99999A0000000
  %29 = fcmp uno float %23, 0.000000e+00
  %or.cond = select i1 %28, i1 true, i1 %29
  br i1 %or.cond, label %30, label %31

30:                                               ; preds = %.preheader
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 226, ptr noundef nonnull @.str.19, double noundef %sqrt, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.7, double noundef 0x3FA99999A0000000) #8
  br label %32

31:                                               ; preds = %.preheader
  tail call void (...) @liquid_autotest_passed() #8
  br label %32

32:                                               ; preds = %31, %30
  %33 = load float, ptr %24, align 4
  %34 = fpext float %33 to double
  %35 = tail call double @llvm.fmuladd.f64(double %34, double %34, double 0.000000e+00)
  %sqrt81 = tail call double @llvm.sqrt.f64(double %35)
  %36 = fcmp ogt double %sqrt81, 0x3FA99999A0000000
  %37 = fcmp uno float %33, 0.000000e+00
  %or.cond92 = select i1 %36, i1 true, i1 %37
  br i1 %or.cond92, label %38, label %39

38:                                               ; preds = %32
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 227, ptr noundef nonnull @.str.20, double noundef %sqrt81, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.7, double noundef 0x3FA99999A0000000) #8
  br label %40

39:                                               ; preds = %32
  tail call void (...) @liquid_autotest_passed() #8
  br label %40

40:                                               ; preds = %38, %39
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next89, 1024
  br i1 %exitcond91.not, label %41, label %.preheader, !llvm.loop !8

41:                                               ; preds = %40
  tail call void @free(ptr noundef %1) #8
  tail call void @free(ptr noundef nonnull %2) #8
  %42 = tail call i32 @nco_crcf_destroy(ptr noundef %11) #8
  ret void
}

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

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) local_unnamed_addr #4

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

declare i32 @nco_crcf_mix_block_down(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #6

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

attributes #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 speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="64" "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 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 #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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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 = distinct !{!7, !6}
!8 = distinct !{!8, !6}


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