; LLVM IR from jgaeddert/liquid-dsp :: src/multichannel/tests (ofdmframe_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 [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [98 x i8], align 1
@__PRETTY_FUNCTION__.ofdmframesync_acquire_test = external hidden unnamed_addr constant [74 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmframesync_autotest_callback(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @ofdmframesync_acquire_test(i32 noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca { float, float }, align 4
  %24 = alloca { float, float }, align 4
  %25 = alloca { float, float }, align 4
  %26 = alloca { float, float }, align 4
  %27 = alloca float, align 4
  %28 = alloca { float, float }, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %29 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %29, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %30 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %30, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %31 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %31, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store float 0x3F847AE140000000, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = uitofp i32 %32 to float
  %34 = fdiv float 1.000000e+00, %33
  store float %34, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = zext i32 %35 to i64
  %37 = call ptr @llvm.stacksave.p0()
  store ptr %37, ptr %12, align 8
  %38 = alloca i8, i64 %36, align 16
  store i64 %36, ptr %13, align 8
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = call i32 @ofdmframe_init_default_sctype(i32 noundef %39, ptr noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = add i32 %41, %42
  %44 = mul i32 4, %43
  store i32 %44, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = call ptr @ofdmframegen_create(i32 noundef %45, i32 noundef %46, i32 noundef %47, ptr noundef %38)
  store ptr %48, ptr %15, align 8, !tbaa !11
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = zext i32 %49 to i64
  %51 = alloca { float, float }, i64 %50, align 16
  store i64 %50, ptr %16, align 8
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = zext i32 %52 to i64
  %54 = alloca { float, float }, i64 %53, align 16
  store i64 %53, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = call ptr @ofdmframesync_create(i32 noundef %55, i32 noundef %56, i32 noundef %57, ptr noundef %38, ptr noundef @ofdmframesync_autotest_callback, ptr noundef %54)
  store ptr %58, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %59 = load i32, ptr %14, align 4, !tbaa !5
  %60 = zext i32 %59 to i64
  %61 = alloca { float, float }, i64 %60, align 16
  store i64 %60, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !5
  %62 = load ptr, ptr %15, align 8, !tbaa !11
  %63 = load i32, ptr %21, align 4, !tbaa !5
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds { float, float }, ptr %61, i64 %64
  %66 = call i32 @ofdmframegen_write_S0a(ptr noundef %62, ptr noundef %65)
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = add i32 %67, %68
  %70 = load i32, ptr %21, align 4, !tbaa !5
  %71 = add i32 %70, %69
  store i32 %71, ptr %21, align 4, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !11
  %73 = load i32, ptr %21, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds { float, float }, ptr %61, i64 %74
  %76 = call i32 @ofdmframegen_write_S0b(ptr noundef %72, ptr noundef %75)
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = add i32 %77, %78
  %80 = load i32, ptr %21, align 4, !tbaa !5
  %81 = add i32 %80, %79
  store i32 %81, ptr %21, align 4, !tbaa !5
  %82 = load ptr, ptr %15, align 8, !tbaa !11
  %83 = load i32, ptr %21, align 4, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds { float, float }, ptr %61, i64 %84
  %86 = call i32 @ofdmframegen_write_S1(ptr noundef %82, ptr noundef %85)
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = load i32, ptr %8, align 4, !tbaa !5
  %89 = add i32 %87, %88
  %90 = load i32, ptr %21, align 4, !tbaa !5
  %91 = add i32 %90, %89
  store i32 %91, ptr %21, align 4, !tbaa !5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %121, %3
  %93 = load i32, ptr %19, align 4, !tbaa !5
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = icmp ult i32 %93, %94
  br i1 %95, label %96, label %124

96:                                               ; preds = %92
  %97 = call float (...) @randf()
  %98 = fpext float %97 to double
  %99 = fmul double 0.000000e+00, %98
  %100 = fmul double 0x401921FB54442D18, %98
  %101 = fptrunc double %99 to float
  %102 = fptrunc double %100 to float
  %103 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %104 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  store float %101, ptr %103, align 4
  store float %102, ptr %104, align 4
  %105 = load <2 x float>, ptr %22, align 4
  %106 = call <2 x float> @cexpf(<2 x float> noundef %105) #8
  store <2 x float> %106, ptr %23, align 4
  %107 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 0
  %108 = load float, ptr %107, align 4
  %109 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  %111 = load i32, ptr %19, align 4, !tbaa !5
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds { float, float }, ptr %51, i64 %112
  %114 = getelementptr inbounds { float, float }, ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds { float, float }, ptr %113, i32 0, i32 1
  store float %108, ptr %114, align 8
  store float %110, ptr %115, align 4
  %116 = load i32, ptr %19, align 4, !tbaa !5
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds { float, float }, ptr %54, i64 %117
  %119 = getelementptr inbounds { float, float }, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds { float, float }, ptr %118, i32 0, i32 1
  store float 0.000000e+00, ptr %119, align 8
  store float 0.000000e+00, ptr %120, align 4
  br label %121

121:                                              ; preds = %96
  %122 = load i32, ptr %19, align 4, !tbaa !5
  %123 = add i32 %122, 1
  store i32 %123, ptr %19, align 4, !tbaa !5
  br label %92, !llvm.loop !13

124:                                              ; preds = %92
  %125 = load ptr, ptr %15, align 8, !tbaa !11
  %126 = load i32, ptr %21, align 4, !tbaa !5
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds { float, float }, ptr %61, i64 %127
  %129 = call i32 @ofdmframegen_writesymbol(ptr noundef %125, ptr noundef %51, ptr noundef %128)
  %130 = load i32, ptr %7, align 4, !tbaa !5
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = add i32 %130, %131
  %133 = load i32, ptr %21, align 4, !tbaa !5
  %134 = add i32 %133, %132
  store i32 %134, ptr %21, align 4, !tbaa !5
  %135 = load i32, ptr %21, align 4, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !5
  %137 = icmp eq i32 %135, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %124
  br label %140

139:                                              ; preds = %124
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 119, ptr noundef @__PRETTY_FUNCTION__.ofdmframesync_acquire_test) #9
  unreachable

140:                                              ; preds = %138
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %188, %140
  %142 = load i32, ptr %19, align 4, !tbaa !5
  %143 = load i32, ptr %14, align 4, !tbaa !5
  %144 = icmp ult i32 %142, %143
  br i1 %144, label %145, label %191

145:                                              ; preds = %141
  %146 = load float, ptr %11, align 4, !tbaa !9
  %147 = fmul float 0.000000e+00, %146
  %148 = fmul float 1.000000e+00, %146
  %149 = load i32, ptr %19, align 4, !tbaa !5
  %150 = uitofp i32 %149 to float
  %151 = fmul float %147, %150
  %152 = fmul float %148, %150
  %153 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %154 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  store float %151, ptr %153, align 4
  store float %152, ptr %154, align 4
  %155 = load <2 x float>, ptr %24, align 4
  %156 = call <2 x float> @cexpf(<2 x float> noundef %155) #8
  store <2 x float> %156, ptr %25, align 4
  %157 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %158 = load float, ptr %157, align 4
  %159 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  %160 = load float, ptr %159, align 4
  %161 = load i32, ptr %19, align 4, !tbaa !5
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds { float, float }, ptr %61, i64 %162
  %164 = getelementptr inbounds { float, float }, ptr %163, i32 0, i32 0
  %165 = load float, ptr %164, align 8
  %166 = getelementptr inbounds { float, float }, ptr %163, i32 0, i32 1
  %167 = load float, ptr %166, align 4
  %168 = fmul float %165, %158
  %169 = fmul float %167, %160
  %170 = fmul float %165, %160
  %171 = fmul float %167, %158
  %172 = fsub float %168, %169
  %173 = fadd float %170, %171
  %174 = fcmp uno float %172, %172
  br i1 %174, label %175, label %183, !prof !15

175:                                              ; preds = %145
  %176 = fcmp uno float %173, %173
  br i1 %176, label %177, label %183, !prof !15

177:                                              ; preds = %175
  %178 = call <2 x float> @__mulsc3(float noundef %165, float noundef %167, float noundef %158, float noundef %160) #8
  store <2 x float> %178, ptr %26, align 4
  %179 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %180 = load float, ptr %179, align 4
  %181 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  %182 = load float, ptr %181, align 4
  br label %183

183:                                              ; preds = %177, %175, %145
  %184 = phi float [ %172, %145 ], [ %172, %175 ], [ %180, %177 ]
  %185 = phi float [ %173, %145 ], [ %173, %175 ], [ %182, %177 ]
  %186 = getelementptr inbounds { float, float }, ptr %163, i32 0, i32 0
  %187 = getelementptr inbounds { float, float }, ptr %163, i32 0, i32 1
  store float %184, ptr %186, align 8
  store float %185, ptr %187, align 4
  br label %188

188:                                              ; preds = %183
  %189 = load i32, ptr %19, align 4, !tbaa !5
  %190 = add i32 %189, 1
  store i32 %190, ptr %19, align 4, !tbaa !5
  br label %141, !llvm.loop !16

191:                                              ; preds = %141
  %192 = load ptr, ptr %18, align 8, !tbaa !11
  %193 = load i32, ptr %14, align 4, !tbaa !5
  %194 = call i32 @ofdmframesync_execute(ptr noundef %192, ptr noundef %61, i32 noundef %193)
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %315, %191
  %196 = load i32, ptr %19, align 4, !tbaa !5
  %197 = load i32, ptr %7, align 4, !tbaa !5
  %198 = icmp ult i32 %196, %197
  br i1 %198, label %199, label %318

199:                                              ; preds = %195
  %200 = load i32, ptr %19, align 4, !tbaa !5
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds i8, ptr %38, i64 %201
  %203 = load i8, ptr %202, align 1, !tbaa !17
  %204 = zext i8 %203 to i32
  %205 = icmp eq i32 %204, 2
  br i1 %205, label %206, label %314

206:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %207 = load i32, ptr %19, align 4, !tbaa !5
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds { float, float }, ptr %51, i64 %208
  %210 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 0
  %211 = load float, ptr %210, align 8
  %212 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 1
  %213 = load float, ptr %212, align 4
  %214 = load i32, ptr %19, align 4, !tbaa !5
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds { float, float }, ptr %54, i64 %215
  %217 = getelementptr inbounds { float, float }, ptr %216, i32 0, i32 0
  %218 = load float, ptr %217, align 8
  %219 = getelementptr inbounds { float, float }, ptr %216, i32 0, i32 1
  %220 = load float, ptr %219, align 4
  %221 = fsub float %211, %218
  %222 = fsub float %213, %220
  %223 = load i32, ptr %19, align 4, !tbaa !5
  %224 = zext i32 %223 to i64
  %225 = getelementptr inbounds { float, float }, ptr %51, i64 %224
  %226 = getelementptr inbounds { float, float }, ptr %225, i32 0, i32 0
  %227 = load float, ptr %226, align 8
  %228 = getelementptr inbounds { float, float }, ptr %225, i32 0, i32 1
  %229 = load float, ptr %228, align 4
  %230 = load i32, ptr %19, align 4, !tbaa !5
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds { float, float }, ptr %54, i64 %231
  %233 = getelementptr inbounds { float, float }, ptr %232, i32 0, i32 0
  %234 = load float, ptr %233, align 8
  %235 = getelementptr inbounds { float, float }, ptr %232, i32 0, i32 1
  %236 = load float, ptr %235, align 4
  %237 = fsub float %227, %234
  %238 = fsub float %229, %236
  %239 = fneg float %238
  %240 = fmul float %221, %237
  %241 = fmul float %222, %239
  %242 = fmul float %221, %239
  %243 = fmul float %222, %237
  %244 = fsub float %240, %241
  %245 = fadd float %242, %243
  %246 = fcmp uno float %244, %244
  br i1 %246, label %247, label %255, !prof !15

247:                                              ; preds = %206
  %248 = fcmp uno float %245, %245
  br i1 %248, label %249, label %255, !prof !15

249:                                              ; preds = %247
  %250 = call <2 x float> @__mulsc3(float noundef %221, float noundef %222, float noundef %237, float noundef %239) #8
  store <2 x float> %250, ptr %28, align 4
  %251 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %252 = load float, ptr %251, align 4
  %253 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %254 = load float, ptr %253, align 4
  br label %255

255:                                              ; preds = %249, %247, %206
  %256 = phi float [ %244, %206 ], [ %244, %247 ], [ %252, %249 ]
  %257 = phi float [ %245, %206 ], [ %245, %247 ], [ %254, %249 ]
  store float %256, ptr %27, align 4, !tbaa !9
  %258 = load float, ptr %27, align 4, !tbaa !9
  %259 = call float @llvm.fabs.f32(float %258)
  %260 = fsub float %259, 0.000000e+00
  %261 = fpext float %260 to double
  %262 = load float, ptr %27, align 4, !tbaa !9
  %263 = call float @llvm.fabs.f32(float %262)
  %264 = fsub float %263, 0.000000e+00
  %265 = fpext float %264 to double
  %266 = load float, ptr %27, align 4, !tbaa !9
  %267 = call float @llvm.fabs.f32(float %266)
  %268 = fsub float %267, 0.000000e+00
  %269 = fpext float %268 to double
  %270 = load float, ptr %27, align 4, !tbaa !9
  %271 = call float @llvm.fabs.f32(float %270)
  %272 = fsub float %271, 0.000000e+00
  %273 = fpext float %272 to double
  %274 = call double @llvm.fmuladd.f64(double %261, double %265, double 0.000000e+00)
  %275 = call double @sqrt(double noundef %274) #8
  %276 = load float, ptr %10, align 4, !tbaa !9
  %277 = fpext float %276 to double
  %278 = fcmp ogt double %275, %277
  br i1 %278, label %291, label %279

279:                                              ; preds = %255
  %280 = load float, ptr %27, align 4, !tbaa !9
  %281 = call float @llvm.fabs.f32(float %280)
  %282 = call i1 @llvm.is.fpclass.f32(float %281, i32 3)
  br i1 %282, label %291, label %283

283:                                              ; preds = %279
  %284 = load float, ptr %27, align 4, !tbaa !9
  %285 = call float @llvm.fabs.f32(float %284)
  %286 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %286, label %291, label %287

287:                                              ; preds = %283
  %288 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %288, label %291, label %289

289:                                              ; preds = %287
  %290 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %290, label %291, label %312

291:                                              ; preds = %289, %287, %283, %279, %255
  %292 = load float, ptr %27, align 4, !tbaa !9
  %293 = call float @llvm.fabs.f32(float %292)
  %294 = fsub float %293, 0.000000e+00
  %295 = fpext float %294 to double
  %296 = load float, ptr %27, align 4, !tbaa !9
  %297 = call float @llvm.fabs.f32(float %296)
  %298 = fsub float %297, 0.000000e+00
  %299 = fpext float %298 to double
  %300 = load float, ptr %27, align 4, !tbaa !9
  %301 = call float @llvm.fabs.f32(float %300)
  %302 = fsub float %301, 0.000000e+00
  %303 = fpext float %302 to double
  %304 = load float, ptr %27, align 4, !tbaa !9
  %305 = call float @llvm.fabs.f32(float %304)
  %306 = fsub float %305, 0.000000e+00
  %307 = fpext float %306 to double
  %308 = call double @llvm.fmuladd.f64(double %295, double %299, double 0.000000e+00)
  %309 = call double @sqrt(double noundef %308) #8
  %310 = load float, ptr %10, align 4, !tbaa !9
  %311 = fpext float %310 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 132, ptr noundef @.str.3, double noundef %309, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %311)
  br label %313

312:                                              ; preds = %289
  call void (...) @liquid_autotest_passed()
  br label %313

313:                                              ; preds = %312, %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %314

314:                                              ; preds = %313, %199
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %19, align 4, !tbaa !5
  %317 = add i32 %316, 1
  store i32 %317, ptr %19, align 4, !tbaa !5
  br label %195, !llvm.loop !18

318:                                              ; preds = %195
  %319 = load ptr, ptr %15, align 8, !tbaa !11
  %320 = call i32 @ofdmframegen_destroy(ptr noundef %319)
  %321 = load ptr, ptr %18, align 8, !tbaa !11
  %322 = call i32 @ofdmframesync_destroy(ptr noundef %321)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  %323 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %323)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  ret void
}

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

declare i32 @ofdmframe_init_default_sctype(i32 noundef, ptr noundef) #4

declare ptr @ofdmframegen_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

declare ptr @ofdmframesync_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @ofdmframegen_write_S0a(ptr noundef, ptr noundef) #4

declare i32 @ofdmframegen_write_S0b(ptr noundef, ptr noundef) #4

declare i32 @ofdmframegen_write_S1(ptr noundef, ptr noundef) #4

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

declare float @randf(...) #4

declare i32 @ofdmframegen_writesymbol(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

declare <2 x float> @__mulsc3(float, float, float, float)

declare i32 @ofdmframesync_execute(ptr noundef, ptr noundef, i32 noundef) #4

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

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

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

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

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

declare void @liquid_autotest_passed(...) #4

declare i32 @ofdmframegen_destroy(ptr noundef) #4

declare i32 @ofdmframesync_destroy(ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { 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 = { nocallback nofree nosync nounwind willreturn }
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 = { 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 = { noreturn 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"branch_weights", i32 1, i32 1048575}
!16 = distinct !{!16, !14}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !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.2 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmframesync_autotest_callback(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @ofdmframesync_acquire_test(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = uitofp i32 %0 to float
  %5 = fdiv float 1.000000e+00, %4
  %6 = zext i32 %0 to i64
  %7 = alloca i8, i64 %6, align 16
  %8 = call i32 @ofdmframe_init_default_sctype(i32 noundef %0, ptr noundef nonnull %7) #6
  %9 = add i32 %1, %0
  %10 = shl i32 %9, 2
  %11 = call ptr @ofdmframegen_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull %7) #6
  %12 = alloca { float, float }, i64 %6, align 16
  %13 = alloca { float, float }, i64 %6, align 16
  %14 = call ptr @ofdmframesync_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull %7, ptr noundef nonnull @ofdmframesync_autotest_callback, ptr noundef nonnull %13) #6
  %15 = zext i32 %10 to i64
  %16 = alloca { float, float }, i64 %15, align 16
  %17 = call i32 @ofdmframegen_write_S0a(ptr noundef %11, ptr noundef nonnull %16) #6
  %18 = zext i32 %9 to i64
  %19 = getelementptr inbounds { float, float }, ptr %16, i64 %18
  %20 = call i32 @ofdmframegen_write_S0b(ptr noundef %11, ptr noundef nonnull %19) #6
  %21 = shl i32 %9, 1
  %22 = zext i32 %21 to i64
  %23 = getelementptr inbounds { float, float }, ptr %16, i64 %22
  %24 = call i32 @ofdmframegen_write_S1(ptr noundef %11, ptr noundef nonnull %23) #6
  %25 = mul i32 %9, 3
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %3 ]
  %26 = call float (...) @randf() #6
  %27 = fpext float %26 to double
  %28 = fmul double %27, 0x401921FB54442D18
  %29 = fmul float %26, 0.000000e+00
  %30 = fptrunc double %28 to float
  %.sroa.015.0.vec.insert = insertelement <2 x float> poison, float %29, i64 0
  %.sroa.015.4.vec.insert = insertelement <2 x float> %.sroa.015.0.vec.insert, float %30, i64 1
  %31 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.015.4.vec.insert) #6
  %32 = getelementptr inbounds { float, float }, ptr %12, i64 %indvars.iv
  store <2 x float> %31, ptr %32, align 8
  %33 = getelementptr inbounds { float, float }, ptr %13, i64 %indvars.iv
  store <2 x float> zeroinitializer, ptr %33, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %3
  %34 = zext i32 %25 to i64
  %35 = getelementptr inbounds { float, float }, ptr %16, i64 %34
  %36 = call i32 @ofdmframegen_writesymbol(ptr noundef %11, ptr noundef nonnull %12, ptr noundef nonnull %35) #6
  %.not93 = icmp eq i32 %10, 0
  br i1 %.not93, label %._crit_edge88, label %.lr.ph87

.lr.ph87:                                         ; preds = %._crit_edge
  %37 = fmul float %5, 0.000000e+00
  %38 = insertelement <2 x float> poison, float %37, i64 0
  %39 = insertelement <2 x float> %38, float %5, i64 1
  br label %40

40:                                               ; preds = %.lr.ph87, %66
  %indvars.iv96 = phi i64 [ 0, %.lr.ph87 ], [ %indvars.iv.next97, %66 ]
  %41 = trunc nuw i64 %indvars.iv96 to i32
  %42 = uitofp i32 %41 to float
  %43 = insertelement <2 x float> poison, float %42, i64 0
  %44 = shufflevector <2 x float> %43, <2 x float> poison, <2 x i32> zeroinitializer
  %45 = fmul <2 x float> %39, %44
  %46 = call <2 x float> @cexpf(<2 x float> noundef %45) #6
  %47 = getelementptr inbounds { float, float }, ptr %16, i64 %indvars.iv96
  %48 = getelementptr inbounds i8, ptr %47, i64 4
  %49 = load <2 x float>, ptr %47, align 8
  %50 = fmul <2 x float> %49, %46
  %51 = shufflevector <2 x float> %46, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %52 = fmul <2 x float> %51, %49
  %shift = shufflevector <2 x float> %50, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %53 = fsub <2 x float> %50, %shift
  %54 = extractelement <2 x float> %53, i64 0
  %shift106 = shufflevector <2 x float> %52, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %55 = fadd <2 x float> %52, %shift106
  %56 = extractelement <2 x float> %55, i64 0
  %57 = fcmp uno float %54, 0.000000e+00
  br i1 %57, label %58, label %66, !prof !7

58:                                               ; preds = %40
  %59 = fcmp uno float %56, 0.000000e+00
  br i1 %59, label %60, label %66, !prof !7

60:                                               ; preds = %58
  %61 = extractelement <2 x float> %49, i64 0
  %62 = extractelement <2 x float> %49, i64 1
  %63 = extractelement <2 x float> %46, i64 0
  %64 = extractelement <2 x float> %46, i64 1
  %65 = call <2 x float> @__mulsc3(float noundef %61, float noundef %62, float noundef %63, float noundef %64) #6
  %.sroa.010.0.vec.extract = extractelement <2 x float> %65, i64 0
  %.sroa.010.4.vec.extract = extractelement <2 x float> %65, i64 1
  br label %66

66:                                               ; preds = %60, %58, %40
  %67 = phi float [ %54, %40 ], [ %54, %58 ], [ %.sroa.010.0.vec.extract, %60 ]
  %68 = phi float [ %56, %40 ], [ %56, %58 ], [ %.sroa.010.4.vec.extract, %60 ]
  store float %67, ptr %47, align 8
  store float %68, ptr %48, align 4
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next97, %15
  br i1 %exitcond100.not, label %._crit_edge88, label %40, !llvm.loop !8

._crit_edge88:                                    ; preds = %66, %._crit_edge
  %69 = call i32 @ofdmframesync_execute(ptr noundef %14, ptr noundef nonnull %16, i32 noundef %10) #6
  br i1 %.not, label %._crit_edge92, label %.lr.ph91

.lr.ph91:                                         ; preds = %._crit_edge88, %101
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %101 ], [ 0, %._crit_edge88 ]
  %70 = getelementptr inbounds i8, ptr %7, i64 %indvars.iv101
  %71 = load i8, ptr %70, align 1, !tbaa !9
  %72 = icmp eq i8 %71, 2
  br i1 %72, label %73, label %101

73:                                               ; preds = %.lr.ph91
  %74 = getelementptr inbounds { float, float }, ptr %12, i64 %indvars.iv101
  %75 = getelementptr inbounds { float, float }, ptr %13, i64 %indvars.iv101
  %76 = load <2 x float>, ptr %74, align 8
  %77 = load <2 x float>, ptr %75, align 8
  %78 = fsub <2 x float> %76, %77
  %79 = extractelement <2 x float> %78, i64 1
  %80 = fneg float %79
  %81 = fmul <2 x float> %78, %78
  %shift107 = shufflevector <2 x float> %81, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %82 = fadd <2 x float> %81, %shift107
  %83 = extractelement <2 x float> %82, i64 0
  %84 = fcmp uno float %83, 0.000000e+00
  br i1 %84, label %85, label %92, !prof !7

85:                                               ; preds = %73
  %86 = extractelement <2 x float> %78, i64 0
  %87 = fmul float %86, %79
  %88 = fsub float %87, %87
  %89 = fcmp uno float %88, 0.000000e+00
  br i1 %89, label %90, label %92, !prof !7

90:                                               ; preds = %85
  %91 = call <2 x float> @__mulsc3(float noundef %86, float noundef %79, float noundef %86, float noundef %80) #6
  %.sroa.0.0.vec.extract = extractelement <2 x float> %91, i64 0
  br label %92

92:                                               ; preds = %90, %85, %73
  %93 = phi float [ %83, %73 ], [ %83, %85 ], [ %.sroa.0.0.vec.extract, %90 ]
  %94 = call float @llvm.fabs.f32(float %93)
  %95 = fpext float %94 to double
  %96 = call double @llvm.fmuladd.f64(double %95, double %95, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %96)
  %97 = fcmp ogt double %sqrt, 0x3F847AE140000000
  %98 = fcmp uno float %93, 0.000000e+00
  %or.cond = select i1 %97, i1 true, i1 %98
  br i1 %or.cond, label %99, label %100

99:                                               ; preds = %92
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 132, ptr noundef nonnull @.str.3, double noundef %sqrt, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F847AE140000000) #6
  br label %101

100:                                              ; preds = %92
  call void (...) @liquid_autotest_passed() #6
  br label %101

101:                                              ; preds = %99, %100, %.lr.ph91
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond105.not = icmp eq i64 %indvars.iv.next102, %6
  br i1 %exitcond105.not, label %._crit_edge92, label %.lr.ph91, !llvm.loop !12

._crit_edge92:                                    ; preds = %101, %._crit_edge88
  %102 = call i32 @ofdmframegen_destroy(ptr noundef %11) #6
  %103 = call i32 @ofdmframesync_destroy(ptr noundef %14) #6
  ret void
}

declare i32 @ofdmframe_init_default_sctype(i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ofdmframegen_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ofdmframesync_create(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @ofdmframegen_write_S0a(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @ofdmframegen_write_S0b(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @ofdmframegen_write_S1(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare float @randf(...) local_unnamed_addr #2

declare i32 @ofdmframegen_writesymbol(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare <2 x float> @__mulsc3(float, float, float, float) local_unnamed_addr

declare i32 @ofdmframesync_execute(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

declare i32 @ofdmframegen_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @ofdmframesync_destroy(ptr noundef) local_unnamed_addr #2

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

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


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