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

@liquid_autotest_verbose = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 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 i32 @printf(ptr 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

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_compand_cfloat() #4 {
  %1 = alloca { float, float }, align 4
  %2 = alloca float, align 4
  %3 = alloca i32, align 4
  %4 = alloca { float, float }, align 4
  %5 = alloca { float, float }, align 4
  %6 = alloca { float, float }, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca { float, float }, align 4
  %10 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  %11 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %12 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  store float 0xBFE69FBE80000000, ptr %11, align 4
  store float 0xBFE69FBE80000000, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store float 2.550000e+02, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 30, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %13 = load i32, ptr %3, align 4, !tbaa !9
  %14 = uitofp i32 %13 to float
  %15 = fdiv float 0x3FF69FBE80000000, %14
  %16 = fdiv float 0x3FF69FBE80000000, %14
  %17 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 0
  %18 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 1
  store float %15, ptr %17, align 4
  store float %16, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store float 0x3EB0C6F7A0000000, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %323, %0
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = icmp ult i32 %20, %21
  br i1 %22, label %23, label %326

23:                                               ; preds = %19
  %24 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %25 = load float, ptr %24, align 4
  %26 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %27 = load float, ptr %26, align 4
  %28 = load float, ptr %2, align 4, !tbaa !5
  %29 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %30 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  store float %25, ptr %29, align 4
  store float %27, ptr %30, align 4
  %31 = load <2 x float>, ptr %9, align 4
  %32 = call i32 @compress_cf_mulaw(<2 x float> noundef %31, float noundef %28, ptr noundef %5)
  %33 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %34 = load float, ptr %33, align 4
  %35 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %36 = load float, ptr %35, align 4
  %37 = load float, ptr %2, align 4, !tbaa !5
  %38 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %39 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float %34, ptr %38, align 4
  store float %36, ptr %39, align 4
  %40 = load <2 x float>, ptr %10, align 4
  %41 = call i32 @expand_cf_mulaw(<2 x float> noundef %40, float noundef %37, ptr noundef %6)
  %42 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %78

44:                                               ; preds = %23
  %45 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %46 = load float, ptr %45, align 4
  %47 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %48 = load float, ptr %47, align 4
  %49 = fpext float %46 to double
  %50 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %51 = load float, ptr %50, align 4
  %52 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %53 = load float, ptr %52, align 4
  %54 = fpext float %53 to double
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %49, double noundef %54)
  %56 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %57 = load float, ptr %56, align 4
  %58 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %59 = load float, ptr %58, align 4
  %60 = fpext float %57 to double
  %61 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %62 = load float, ptr %61, align 4
  %63 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %64 = load float, ptr %63, align 4
  %65 = fpext float %64 to double
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %60, double noundef %65)
  %67 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %68 = load float, ptr %67, align 4
  %69 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %70 = load float, ptr %69, align 4
  %71 = fpext float %68 to double
  %72 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %73 = load float, ptr %72, align 4
  %74 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %75 = load float, ptr %74, align 4
  %76 = fpext float %75 to double
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %71, double noundef %76)
  br label %78

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

124:                                              ; preds = %78
  %125 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %126 = load float, ptr %125, align 4
  %127 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %128 = load float, ptr %127, align 4
  %129 = call i1 @llvm.is.fpclass.f32(float %126, i32 3)
  br i1 %129, label %148, label %130

130:                                              ; preds = %124
  %131 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %132 = load float, ptr %131, align 4
  %133 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  %135 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %135, label %148, label %136

136:                                              ; preds = %130
  %137 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %138 = load float, ptr %137, align 4
  %139 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %140 = load float, ptr %139, align 4
  %141 = call i1 @llvm.is.fpclass.f32(float %138, i32 3)
  br i1 %141, label %148, label %142

142:                                              ; preds = %136
  %143 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %144 = load float, ptr %143, align 4
  %145 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %146 = load float, ptr %145, align 4
  %147 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %147, label %148, label %193

148:                                              ; preds = %142, %136, %130, %124, %78
  %149 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %150 = load float, ptr %149, align 4
  %151 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %152 = load float, ptr %151, align 4
  %153 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %154 = load float, ptr %153, align 4
  %155 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %156 = load float, ptr %155, align 4
  %157 = fsub float %150, %154
  %158 = fpext float %157 to double
  %159 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %160 = load float, ptr %159, align 4
  %161 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %162 = load float, ptr %161, align 4
  %163 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %164 = load float, ptr %163, align 4
  %165 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %166 = load float, ptr %165, align 4
  %167 = fsub float %160, %164
  %168 = fpext float %167 to double
  %169 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %170 = load float, ptr %169, align 4
  %171 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %172 = load float, ptr %171, align 4
  %173 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %174 = load float, ptr %173, align 4
  %175 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %176 = load float, ptr %175, align 4
  %177 = fsub float %170, %174
  %178 = fpext float %177 to double
  %179 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %180 = load float, ptr %179, align 4
  %181 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %182 = load float, ptr %181, align 4
  %183 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %184 = load float, ptr %183, align 4
  %185 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %186 = load float, ptr %185, align 4
  %187 = fsub float %180, %184
  %188 = fpext float %187 to double
  %189 = call double @llvm.fmuladd.f64(double %158, double %168, double 0.000000e+00)
  %190 = call double @sqrt(double noundef %189) #5
  %191 = load float, ptr %7, align 4, !tbaa !5
  %192 = fpext float %191 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 73, ptr noundef @.str.7, double noundef %190, ptr noundef @.str.3, ptr noundef @.str.4, double noundef %192)
  br label %194

193:                                              ; preds = %142
  call void (...) @liquid_autotest_passed()
  br label %194

194:                                              ; preds = %193, %148
  %195 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %196 = load float, ptr %195, align 4
  %197 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %198 = load float, ptr %197, align 4
  %199 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %200 = load float, ptr %199, align 4
  %201 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %202 = load float, ptr %201, align 4
  %203 = fsub float %198, %202
  %204 = fpext float %203 to double
  %205 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %206 = load float, ptr %205, align 4
  %207 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %208 = load float, ptr %207, align 4
  %209 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %210 = load float, ptr %209, align 4
  %211 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %212 = load float, ptr %211, align 4
  %213 = fsub float %208, %212
  %214 = fpext float %213 to double
  %215 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %216 = load float, ptr %215, align 4
  %217 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %218 = load float, ptr %217, align 4
  %219 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %220 = load float, ptr %219, align 4
  %221 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %222 = load float, ptr %221, align 4
  %223 = fsub float %218, %222
  %224 = fpext float %223 to double
  %225 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %226 = load float, ptr %225, align 4
  %227 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %228 = load float, ptr %227, align 4
  %229 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %230 = load float, ptr %229, align 4
  %231 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %232 = load float, ptr %231, align 4
  %233 = fsub float %228, %232
  %234 = fpext float %233 to double
  %235 = call double @llvm.fmuladd.f64(double %204, double %214, double 0.000000e+00)
  %236 = call double @sqrt(double noundef %235) #5
  %237 = load float, ptr %7, align 4, !tbaa !5
  %238 = fpext float %237 to double
  %239 = fcmp ogt double %236, %238
  br i1 %239, label %264, label %240

240:                                              ; preds = %194
  %241 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %242 = load float, ptr %241, align 4
  %243 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %244 = load float, ptr %243, align 4
  %245 = call i1 @llvm.is.fpclass.f32(float %244, i32 3)
  br i1 %245, label %264, label %246

246:                                              ; preds = %240
  %247 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %248 = load float, ptr %247, align 4
  %249 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %250 = load float, ptr %249, align 4
  %251 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %251, label %264, label %252

252:                                              ; preds = %246
  %253 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %254 = load float, ptr %253, align 4
  %255 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %256 = load float, ptr %255, align 4
  %257 = call i1 @llvm.is.fpclass.f32(float %256, i32 3)
  br i1 %257, label %264, label %258

258:                                              ; preds = %252
  %259 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %260 = load float, ptr %259, align 4
  %261 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %262 = load float, ptr %261, align 4
  %263 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %263, label %264, label %309

264:                                              ; preds = %258, %252, %246, %240, %194
  %265 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %266 = load float, ptr %265, align 4
  %267 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %268 = load float, ptr %267, align 4
  %269 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %270 = load float, ptr %269, align 4
  %271 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %272 = load float, ptr %271, align 4
  %273 = fsub float %268, %272
  %274 = fpext float %273 to double
  %275 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %276 = load float, ptr %275, align 4
  %277 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %278 = load float, ptr %277, align 4
  %279 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %280 = load float, ptr %279, align 4
  %281 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %282 = load float, ptr %281, align 4
  %283 = fsub float %278, %282
  %284 = fpext float %283 to double
  %285 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %286 = load float, ptr %285, align 4
  %287 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %288 = load float, ptr %287, align 4
  %289 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %290 = load float, ptr %289, align 4
  %291 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %292 = load float, ptr %291, align 4
  %293 = fsub float %288, %292
  %294 = fpext float %293 to double
  %295 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %296 = load float, ptr %295, align 4
  %297 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %298 = load float, ptr %297, align 4
  %299 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %300 = load float, ptr %299, align 4
  %301 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %302 = load float, ptr %301, align 4
  %303 = fsub float %298, %302
  %304 = fpext float %303 to double
  %305 = call double @llvm.fmuladd.f64(double %274, double %284, double 0.000000e+00)
  %306 = call double @sqrt(double noundef %305) #5
  %307 = load float, ptr %7, align 4, !tbaa !5
  %308 = fpext float %307 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 74, ptr noundef @.str.8, double noundef %306, ptr noundef @.str.3, ptr noundef @.str.4, double noundef %308)
  br label %310

309:                                              ; preds = %258
  call void (...) @liquid_autotest_passed()
  br label %310

310:                                              ; preds = %309, %264
  %311 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 0
  %312 = load float, ptr %311, align 4
  %313 = getelementptr inbounds { float, float }, ptr %4, i32 0, i32 1
  %314 = load float, ptr %313, align 4
  %315 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %316 = load float, ptr %315, align 4
  %317 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  %318 = load float, ptr %317, align 4
  %319 = fadd float %316, %312
  %320 = fadd float %318, %314
  %321 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 0
  %322 = getelementptr inbounds { float, float }, ptr %1, i32 0, i32 1
  store float %319, ptr %321, align 4
  store float %320, ptr %322, align 4
  br label %323

323:                                              ; preds = %310
  %324 = load i32, ptr %8, align 4, !tbaa !9
  %325 = add i32 %324, 1
  store i32 %325, ptr %8, align 4, !tbaa !9
  br label %19, !llvm.loop !11

326:                                              ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

declare i32 @compress_cf_mulaw(<2 x float> noundef, float noundef, ptr noundef) #1

declare i32 @expand_cf_mulaw(<2 x float> noundef, float noundef, ptr noundef) #1

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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_compand_cfloat() local_unnamed_addr #4 {
  %1 = alloca { float, float }, align 8
  %2 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %3 = getelementptr inbounds i8, ptr %1, i64 4
  %4 = getelementptr inbounds i8, ptr %2, i64 4
  br label %5

5:                                                ; preds = %0, %49
  %.070 = phi i32 [ 0, %0 ], [ %51, %49 ]
  %6 = phi <2 x float> [ <float 0xBFE69FBE80000000, float 0xBFE69FBE80000000>, %0 ], [ %50, %49 ]
  %7 = call i32 @compress_cf_mulaw(<2 x float> noundef %6, float noundef 2.550000e+02, ptr noundef nonnull %1) #6
  %8 = load <2 x float>, ptr %1, align 8
  %9 = call i32 @expand_cf_mulaw(<2 x float> noundef %8, float noundef 2.550000e+02, ptr noundef nonnull %2) #6
  %10 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %27, label %11

11:                                               ; preds = %5
  %12 = extractelement <2 x float> %6, i64 0
  %13 = fpext float %12 to double
  %14 = extractelement <2 x float> %6, i64 1
  %15 = fpext float %14 to double
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %13, double noundef %15)
  %17 = load float, ptr %1, align 8
  %18 = fpext float %17 to double
  %19 = load float, ptr %3, align 4
  %20 = fpext float %19 to double
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %18, double noundef %20)
  %22 = load float, ptr %2, align 4
  %23 = fpext float %22 to double
  %24 = load float, ptr %4, align 4
  %25 = fpext float %24 to double
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %23, double noundef %25)
  br label %27

27:                                               ; preds = %11, %5
  %28 = load float, ptr %2, align 4
  %29 = extractelement <2 x float> %6, i64 0
  %30 = fsub float %29, %28
  %31 = fpext float %30 to double
  %32 = call double @llvm.fmuladd.f64(double %31, double %31, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %32)
  %33 = fcmp ogt double %sqrt, 0x3EB0C6F7A0000000
  %34 = fcmp uno float %29, 0.000000e+00
  %or.cond = or i1 %33, %34
  %35 = fcmp uno float %28, 0.000000e+00
  %or.cond61 = select i1 %or.cond, i1 true, i1 %35
  br i1 %or.cond61, label %36, label %37

36:                                               ; preds = %27
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 73, ptr noundef nonnull @.str.7, double noundef %sqrt, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3EB0C6F7A0000000) #6
  br label %38

37:                                               ; preds = %27
  call void (...) @liquid_autotest_passed() #6
  br label %38

38:                                               ; preds = %37, %36
  %39 = load float, ptr %4, align 4
  %40 = extractelement <2 x float> %6, i64 1
  %41 = fsub float %40, %39
  %42 = fpext float %41 to double
  %43 = call double @llvm.fmuladd.f64(double %42, double %42, double 0.000000e+00)
  %sqrt66 = call double @llvm.sqrt.f64(double %43)
  %44 = fcmp ogt double %sqrt66, 0x3EB0C6F7A0000000
  %45 = fcmp uno float %40, 0.000000e+00
  %or.cond62 = or i1 %44, %45
  %46 = fcmp uno float %39, 0.000000e+00
  %or.cond64 = select i1 %or.cond62, i1 true, i1 %46
  br i1 %or.cond64, label %47, label %48

47:                                               ; preds = %38
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 74, ptr noundef nonnull @.str.8, double noundef %sqrt66, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3EB0C6F7A0000000) #6
  br label %49

48:                                               ; preds = %38
  call void (...) @liquid_autotest_passed() #6
  br label %49

49:                                               ; preds = %48, %47
  %50 = fadd <2 x float> %6, <float 0x3FA821DC40000000, float 0x3FA821DC40000000>
  %51 = add nuw nsw i32 %.070, 1
  %exitcond.not = icmp eq i32 %51, 30
  br i1 %exitcond.not, label %52, label %5, !llvm.loop !9

52:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret void
}

declare i32 @compress_cf_mulaw(<2 x float> noundef, float noundef, ptr noundef) local_unnamed_addr #3

declare i32 @expand_cf_mulaw(<2 x float> noundef, float noundef, ptr noundef) local_unnamed_addr #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass