; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (qdetector_cccf_copy_autotest)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 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
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_qdetector_cccf_copy() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca { float, float }, align 4
  %7 = alloca { float, float }, align 4
  %8 = alloca ptr, align 8
  %9 = alloca { float, float }, align 4
  %10 = alloca { float, float }, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 64, ptr %1, align 4, !tbaa !5
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = zext i32 %21 to i64
  %23 = call ptr @llvm.stacksave.p0()
  store ptr %23, ptr %2, align 8
  %24 = alloca { float, float }, i64 %22, align 16
  store i64 %22, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %58, %0
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = icmp ult i32 %26, %27
  br i1 %28, label %29, label %61

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = uitofp i32 %30 to float
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = uitofp i32 %32 to float
  %34 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %33, float %31)
  store float %34, ptr %5, align 4, !tbaa !9
  %35 = load float, ptr %5, align 4, !tbaa !9
  %36 = fpext float %35 to double
  %37 = fmul double 0.000000e+00, %36
  %38 = fmul double 2.000000e-02, %36
  %39 = load float, ptr %5, align 4, !tbaa !9
  %40 = fpext float %39 to double
  %41 = fmul double %37, %40
  %42 = fmul double %38, %40
  %43 = fptrunc double %41 to float
  %44 = fptrunc double %42 to float
  %45 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %46 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  store float %43, ptr %45, align 4
  store float %44, ptr %46, align 4
  %47 = load <2 x float>, ptr %6, align 4
  %48 = call <2 x float> @cexpf(<2 x float> noundef %47) #6
  store <2 x float> %48, ptr %7, align 4
  %49 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %50 = load float, ptr %49, align 4
  %51 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  %52 = load float, ptr %51, align 4
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds { float, float }, ptr %24, i64 %54
  %56 = getelementptr inbounds { float, float }, ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds { float, float }, ptr %55, i32 0, i32 1
  store float %50, ptr %56, align 8
  store float %52, ptr %57, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %58

58:                                               ; preds = %29
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = add i32 %59, 1
  store i32 %60, ptr %4, align 4, !tbaa !5
  br label %25, !llvm.loop !11

61:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = call ptr @qdetector_cccf_create(ptr noundef %24, i32 noundef %62)
  store ptr %63, ptr %8, align 8, !tbaa !13
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %85, %61
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = icmp ult i32 %65, 347
  br i1 %66, label %67, label %88

67:                                               ; preds = %64
  %68 = load ptr, ptr %8, align 8, !tbaa !13
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = uitofp i32 %69 to float
  %71 = fmul float 0.000000e+00, %70
  %72 = fmul float 1.000000e+00, %70
  %73 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %74 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  store float %71, ptr %73, align 4
  store float %72, ptr %74, align 4
  %75 = load <2 x float>, ptr %9, align 4
  %76 = call <2 x float> @cexpf(<2 x float> noundef %75) #6
  store <2 x float> %76, ptr %10, align 4
  %77 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %78 = load float, ptr %77, align 4
  %79 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %80 = load float, ptr %79, align 4
  %81 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %82 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %78, ptr %81, align 4
  store float %80, ptr %82, align 4
  %83 = load <2 x float>, ptr %11, align 4
  %84 = call ptr @qdetector_cccf_execute(ptr noundef %68, <2 x float> noundef %83)
  br label %85

85:                                               ; preds = %67
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = add i32 %86, 1
  store i32 %87, ptr %4, align 4, !tbaa !5
  br label %64, !llvm.loop !15

88:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %89 = load ptr, ptr %8, align 8, !tbaa !13
  %90 = call ptr @qdetector_cccf_copy(ptr noundef %89)
  store ptr %90, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr null, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store ptr null, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %239, %88
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = add i32 %93, 80
  %95 = icmp ult i32 %92, %94
  br i1 %95, label %96, label %242

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = load i32, ptr %1, align 4, !tbaa !5
  %99 = icmp ult i32 %97, %98
  br i1 %99, label %100, label %108

100:                                              ; preds = %96
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds { float, float }, ptr %24, i64 %102
  %104 = getelementptr inbounds { float, float }, ptr %103, i32 0, i32 0
  %105 = load float, ptr %104, align 8
  %106 = getelementptr inbounds { float, float }, ptr %103, i32 0, i32 1
  %107 = load float, ptr %106, align 4
  br label %121

108:                                              ; preds = %96
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = uitofp i32 %109 to float
  %111 = fmul float 0.000000e+00, %110
  %112 = fmul float 1.000000e+00, %110
  %113 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %114 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  store float %111, ptr %113, align 4
  store float %112, ptr %114, align 4
  %115 = load <2 x float>, ptr %17, align 4
  %116 = call <2 x float> @cexpf(<2 x float> noundef %115) #6
  store <2 x float> %116, ptr %18, align 4
  %117 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %118 = load float, ptr %117, align 4
  %119 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %120 = load float, ptr %119, align 4
  br label %121

121:                                              ; preds = %108, %100
  %122 = phi float [ %105, %100 ], [ %118, %108 ]
  %123 = phi float [ %107, %100 ], [ %120, %108 ]
  %124 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %125 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %122, ptr %124, align 4
  store float %123, ptr %125, align 4
  %126 = load ptr, ptr %8, align 8, !tbaa !13
  %127 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %128 = load float, ptr %127, align 4
  %129 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %130 = load float, ptr %129, align 4
  %131 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %132 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float %128, ptr %131, align 4
  store float %130, ptr %132, align 4
  %133 = load <2 x float>, ptr %19, align 4
  %134 = call ptr @qdetector_cccf_execute(ptr noundef %126, <2 x float> noundef %133)
  store ptr %134, ptr %13, align 8, !tbaa !13
  %135 = load ptr, ptr %12, align 8, !tbaa !13
  %136 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %137 = load float, ptr %136, align 4
  %138 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %139 = load float, ptr %138, align 4
  %140 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %141 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  store float %137, ptr %140, align 4
  store float %139, ptr %141, align 4
  %142 = load <2 x float>, ptr %20, align 4
  %143 = call ptr @qdetector_cccf_execute(ptr noundef %135, <2 x float> noundef %142)
  store ptr %143, ptr %14, align 8, !tbaa !13
  %144 = load ptr, ptr %13, align 8, !tbaa !13
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %149

146:                                              ; preds = %121
  %147 = load i32, ptr %4, align 4, !tbaa !5
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %147)
  br label %149

149:                                              ; preds = %146, %121
  %150 = load ptr, ptr %14, align 8, !tbaa !13
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %155

152:                                              ; preds = %149
  %153 = load i32, ptr %4, align 4, !tbaa !5
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %153)
  br label %155

155:                                              ; preds = %152, %149
  %156 = load ptr, ptr %13, align 8, !tbaa !13
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %222

158:                                              ; preds = %155
  %159 = load ptr, ptr %14, align 8, !tbaa !13
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %222

161:                                              ; preds = %158
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %162)
  %164 = load i32, ptr %15, align 4, !tbaa !5
  %165 = add i32 %164, 1
  store i32 %165, ptr %15, align 4, !tbaa !5
  %166 = load ptr, ptr %8, align 8, !tbaa !13
  %167 = call float @qdetector_cccf_get_tau(ptr noundef %166)
  %168 = load ptr, ptr %12, align 8, !tbaa !13
  %169 = call float @qdetector_cccf_get_tau(ptr noundef %168)
  %170 = fcmp une float %167, %169
  br i1 %170, label %171, label %178

171:                                              ; preds = %161
  %172 = load ptr, ptr %8, align 8, !tbaa !13
  %173 = call float @qdetector_cccf_get_tau(ptr noundef %172)
  %174 = fpext float %173 to double
  %175 = load ptr, ptr %12, align 8, !tbaa !13
  %176 = call float @qdetector_cccf_get_tau(ptr noundef %175)
  %177 = fpext float %176 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.3, i32 noundef 71, ptr noundef @.str.4, double noundef %174, ptr noundef @.str.5, ptr noundef @.str.6, double noundef %177)
  br label %179

178:                                              ; preds = %161
  call void (...) @liquid_autotest_passed()
  br label %179

179:                                              ; preds = %178, %171
  %180 = load ptr, ptr %8, align 8, !tbaa !13
  %181 = call float @qdetector_cccf_get_gamma(ptr noundef %180)
  %182 = load ptr, ptr %12, align 8, !tbaa !13
  %183 = call float @qdetector_cccf_get_gamma(ptr noundef %182)
  %184 = fcmp une float %181, %183
  br i1 %184, label %185, label %192

185:                                              ; preds = %179
  %186 = load ptr, ptr %8, align 8, !tbaa !13
  %187 = call float @qdetector_cccf_get_gamma(ptr noundef %186)
  %188 = fpext float %187 to double
  %189 = load ptr, ptr %12, align 8, !tbaa !13
  %190 = call float @qdetector_cccf_get_gamma(ptr noundef %189)
  %191 = fpext float %190 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.3, i32 noundef 72, ptr noundef @.str.7, double noundef %188, ptr noundef @.str.5, ptr noundef @.str.8, double noundef %191)
  br label %193

192:                                              ; preds = %179
  call void (...) @liquid_autotest_passed()
  br label %193

193:                                              ; preds = %192, %185
  %194 = load ptr, ptr %8, align 8, !tbaa !13
  %195 = call float @qdetector_cccf_get_dphi(ptr noundef %194)
  %196 = load ptr, ptr %12, align 8, !tbaa !13
  %197 = call float @qdetector_cccf_get_dphi(ptr noundef %196)
  %198 = fcmp une float %195, %197
  br i1 %198, label %199, label %206

199:                                              ; preds = %193
  %200 = load ptr, ptr %8, align 8, !tbaa !13
  %201 = call float @qdetector_cccf_get_dphi(ptr noundef %200)
  %202 = fpext float %201 to double
  %203 = load ptr, ptr %12, align 8, !tbaa !13
  %204 = call float @qdetector_cccf_get_dphi(ptr noundef %203)
  %205 = fpext float %204 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.3, i32 noundef 73, ptr noundef @.str.9, double noundef %202, ptr noundef @.str.5, ptr noundef @.str.10, double noundef %205)
  br label %207

206:                                              ; preds = %193
  call void (...) @liquid_autotest_passed()
  br label %207

207:                                              ; preds = %206, %199
  %208 = load ptr, ptr %8, align 8, !tbaa !13
  %209 = call float @qdetector_cccf_get_phi(ptr noundef %208)
  %210 = load ptr, ptr %12, align 8, !tbaa !13
  %211 = call float @qdetector_cccf_get_phi(ptr noundef %210)
  %212 = fcmp une float %209, %211
  br i1 %212, label %213, label %220

213:                                              ; preds = %207
  %214 = load ptr, ptr %8, align 8, !tbaa !13
  %215 = call float @qdetector_cccf_get_phi(ptr noundef %214)
  %216 = fpext float %215 to double
  %217 = load ptr, ptr %12, align 8, !tbaa !13
  %218 = call float @qdetector_cccf_get_phi(ptr noundef %217)
  %219 = fpext float %218 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.3, i32 noundef 74, ptr noundef @.str.11, double noundef %216, ptr noundef @.str.5, ptr noundef @.str.12, double noundef %219)
  br label %221

220:                                              ; preds = %207
  call void (...) @liquid_autotest_passed()
  br label %221

221:                                              ; preds = %220, %213
  br label %238

222:                                              ; preds = %158, %155
  %223 = load ptr, ptr %13, align 8, !tbaa !13
  %224 = icmp ne ptr %223, null
  br i1 %224, label %225, label %229

225:                                              ; preds = %222
  %226 = load ptr, ptr %14, align 8, !tbaa !13
  %227 = icmp eq ptr %226, null
  br i1 %227, label %228, label %229

228:                                              ; preds = %225
  call void @liquid_autotest_failed_msg(ptr noundef @.str.3, i32 noundef 76, ptr noundef @.str.13)
  br label %237

229:                                              ; preds = %225, %222
  %230 = load ptr, ptr %13, align 8, !tbaa !13
  %231 = icmp eq ptr %230, null
  br i1 %231, label %232, label %236

232:                                              ; preds = %229
  %233 = load ptr, ptr %14, align 8, !tbaa !13
  %234 = icmp ne ptr %233, null
  br i1 %234, label %235, label %236

235:                                              ; preds = %232
  call void @liquid_autotest_failed_msg(ptr noundef @.str.3, i32 noundef 78, ptr noundef @.str.14)
  br label %236

236:                                              ; preds = %235, %232, %229
  br label %237

237:                                              ; preds = %236, %228
  br label %238

238:                                              ; preds = %237, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %4, align 4, !tbaa !5
  %241 = add i32 %240, 1
  store i32 %241, ptr %4, align 4, !tbaa !5
  br label %91, !llvm.loop !16

242:                                              ; preds = %91
  %243 = load i32, ptr %15, align 4, !tbaa !5
  %244 = icmp ne i32 %243, 1
  br i1 %244, label %245, label %248

245:                                              ; preds = %242
  %246 = load i32, ptr %15, align 4, !tbaa !5
  %247 = uitofp i32 %246 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.3, i32 noundef 81, ptr noundef @.str.15, double noundef %247, ptr noundef @.str.5, ptr noundef @.str.16, double noundef 1.000000e+00)
  br label %249

248:                                              ; preds = %242
  call void (...) @liquid_autotest_passed()
  br label %249

249:                                              ; preds = %248, %245
  %250 = load ptr, ptr %8, align 8, !tbaa !13
  %251 = call i32 @qdetector_cccf_destroy(ptr noundef %250)
  %252 = load ptr, ptr %12, align 8, !tbaa !13
  %253 = call i32 @qdetector_cccf_destroy(ptr noundef %252)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %254 = load ptr, ptr %2, align 8
  call void @llvm.stackrestore.p0(ptr %254)
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

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

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

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

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

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

declare ptr @qdetector_cccf_execute(ptr noundef, <2 x float> noundef) #5

declare ptr @qdetector_cccf_copy(ptr noundef) #5

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

declare float @qdetector_cccf_get_tau(ptr noundef) #5

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

declare void @liquid_autotest_passed(...) #5

declare float @qdetector_cccf_get_gamma(ptr noundef) #5

declare float @qdetector_cccf_get_dphi(ptr noundef) #5

declare float @qdetector_cccf_get_phi(ptr noundef) #5

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) #5

declare i32 @qdetector_cccf_destroy(ptr noundef) #5

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 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
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_qdetector_cccf_copy() local_unnamed_addr #0 {
  %1 = alloca [64 x { float, float }], align 16
  br label %2

2:                                                ; preds = %0, %2
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %2 ]
  %3 = trunc nuw nsw i64 %indvars.iv to i32
  %4 = uitofp nneg i32 %3 to float
  %5 = fadd float %4, -3.200000e+01
  %6 = fpext float %5 to double
  %7 = insertelement <2 x double> poison, double %6, i64 0
  %8 = shufflevector <2 x double> %7, <2 x double> poison, <2 x i32> zeroinitializer
  %9 = fmul <2 x double> %8, <double 0.000000e+00, double 2.000000e-02>
  %10 = fmul <2 x double> %9, %8
  %11 = fptrunc <2 x double> %10 to <2 x float>
  %12 = tail call <2 x float> @cexpf(<2 x float> noundef %11) #4
  %13 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv
  store <2 x float> %12, ptr %13, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 64
  br i1 %exitcond.not, label %14, label %2, !llvm.loop !5

14:                                               ; preds = %2
  %15 = call ptr @qdetector_cccf_create(ptr noundef nonnull %1, i32 noundef 64) #4
  br label %16

16:                                               ; preds = %14, %16
  %.186 = phi i32 [ 0, %14 ], [ %20, %16 ]
  %17 = uitofp nneg i32 %.186 to float
  %.sroa.037.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %17, i64 1
  %18 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.037.4.vec.insert) #4
  %19 = call ptr @qdetector_cccf_execute(ptr noundef %15, <2 x float> noundef %18) #4
  %20 = add nuw nsw i32 %.186, 1
  %exitcond92.not = icmp eq i32 %20, 347
  br i1 %exitcond92.not, label %21, label %16, !llvm.loop !7

21:                                               ; preds = %16
  %22 = call ptr @qdetector_cccf_copy(ptr noundef %15) #4
  br label %23

23:                                               ; preds = %21, %.thread83
  %indvars.iv93 = phi i64 [ 0, %21 ], [ %indvars.iv.next94, %.thread83 ]
  %.07887 = phi i32 [ 0, %21 ], [ %.179, %.thread83 ]
  %24 = icmp ult i64 %indvars.iv93, 64
  br i1 %24, label %25, label %28

25:                                               ; preds = %23
  %26 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv93
  %27 = load <2 x float>, ptr %26, align 8
  br label %32

28:                                               ; preds = %23
  %29 = trunc nuw nsw i64 %indvars.iv93 to i32
  %30 = uitofp nneg i32 %29 to float
  %.sroa.010.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %30, i64 1
  %31 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.010.4.vec.insert) #4
  br label %32

32:                                               ; preds = %28, %25
  %33 = phi <2 x float> [ %27, %25 ], [ %31, %28 ]
  %34 = call ptr @qdetector_cccf_execute(ptr noundef %15, <2 x float> noundef %33) #4
  %35 = call ptr @qdetector_cccf_execute(ptr noundef %22, <2 x float> noundef %33) #4
  %.not89 = icmp eq ptr %34, null
  br i1 %.not89, label %36, label %.thread

36:                                               ; preds = %32
  %.not90 = icmp eq ptr %35, null
  br i1 %.not90, label %.thread83, label %84

.thread:                                          ; preds = %32
  %37 = trunc nuw nsw i64 %indvars.iv93 to i32
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %37)
  %.not9097 = icmp eq ptr %35, null
  br i1 %.not9097, label %83, label %39

39:                                               ; preds = %.thread
  %40 = trunc nuw nsw i64 %indvars.iv93 to i32
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %40)
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %40)
  %43 = add i32 %.07887, 1
  %44 = call float @qdetector_cccf_get_tau(ptr noundef %15) #4
  %45 = call float @qdetector_cccf_get_tau(ptr noundef %22) #4
  %46 = fcmp une float %44, %45
  br i1 %46, label %47, label %52

47:                                               ; preds = %39
  %48 = call float @qdetector_cccf_get_tau(ptr noundef %15) #4
  %49 = fpext float %48 to double
  %50 = call float @qdetector_cccf_get_tau(ptr noundef %22) #4
  %51 = fpext float %50 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.3, i32 noundef 71, ptr noundef nonnull @.str.4, double noundef %49, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, double noundef %51) #4
  br label %53

52:                                               ; preds = %39
  call void (...) @liquid_autotest_passed() #4
  br label %53

53:                                               ; preds = %52, %47
  %54 = call float @qdetector_cccf_get_gamma(ptr noundef %15) #4
  %55 = call float @qdetector_cccf_get_gamma(ptr noundef %22) #4
  %56 = fcmp une float %54, %55
  br i1 %56, label %57, label %62

57:                                               ; preds = %53
  %58 = call float @qdetector_cccf_get_gamma(ptr noundef %15) #4
  %59 = fpext float %58 to double
  %60 = call float @qdetector_cccf_get_gamma(ptr noundef %22) #4
  %61 = fpext float %60 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.3, i32 noundef 72, ptr noundef nonnull @.str.7, double noundef %59, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.8, double noundef %61) #4
  br label %63

62:                                               ; preds = %53
  call void (...) @liquid_autotest_passed() #4
  br label %63

63:                                               ; preds = %62, %57
  %64 = call float @qdetector_cccf_get_dphi(ptr noundef %15) #4
  %65 = call float @qdetector_cccf_get_dphi(ptr noundef %22) #4
  %66 = fcmp une float %64, %65
  br i1 %66, label %67, label %72

67:                                               ; preds = %63
  %68 = call float @qdetector_cccf_get_dphi(ptr noundef %15) #4
  %69 = fpext float %68 to double
  %70 = call float @qdetector_cccf_get_dphi(ptr noundef %22) #4
  %71 = fpext float %70 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.3, i32 noundef 73, ptr noundef nonnull @.str.9, double noundef %69, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.10, double noundef %71) #4
  br label %73

72:                                               ; preds = %63
  call void (...) @liquid_autotest_passed() #4
  br label %73

73:                                               ; preds = %72, %67
  %74 = call float @qdetector_cccf_get_phi(ptr noundef %15) #4
  %75 = call float @qdetector_cccf_get_phi(ptr noundef %22) #4
  %76 = fcmp une float %74, %75
  br i1 %76, label %77, label %82

77:                                               ; preds = %73
  %78 = call float @qdetector_cccf_get_phi(ptr noundef %15) #4
  %79 = fpext float %78 to double
  %80 = call float @qdetector_cccf_get_phi(ptr noundef %22) #4
  %81 = fpext float %80 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.3, i32 noundef 74, ptr noundef nonnull @.str.11, double noundef %79, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.12, double noundef %81) #4
  br label %.thread83

82:                                               ; preds = %73
  call void (...) @liquid_autotest_passed() #4
  br label %.thread83

83:                                               ; preds = %.thread
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str.3, i32 noundef 76, ptr noundef nonnull @.str.13) #4
  br label %.thread83

84:                                               ; preds = %36
  %85 = trunc nuw nsw i64 %indvars.iv93 to i32
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %85)
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str.3, i32 noundef 78, ptr noundef nonnull @.str.14) #4
  br label %.thread83

.thread83:                                        ; preds = %36, %83, %84, %77, %82
  %.179 = phi i32 [ %43, %77 ], [ %43, %82 ], [ %.07887, %83 ], [ %.07887, %84 ], [ %.07887, %36 ]
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond96.not = icmp eq i64 %indvars.iv.next94, 144
  br i1 %exitcond96.not, label %87, label %23, !llvm.loop !8

87:                                               ; preds = %.thread83
  %.not = icmp eq i32 %.179, 1
  br i1 %.not, label %90, label %88

88:                                               ; preds = %87
  %89 = uitofp i32 %.179 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.3, i32 noundef 81, ptr noundef nonnull @.str.15, double noundef %89, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.16, double noundef 1.000000e+00) #4
  br label %91

90:                                               ; preds = %87
  call void (...) @liquid_autotest_passed() #4
  br label %91

91:                                               ; preds = %90, %88
  %92 = call i32 @qdetector_cccf_destroy(ptr noundef %15) #4
  %93 = call i32 @qdetector_cccf_destroy(ptr noundef %22) #4
  ret void
}

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

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

declare ptr @qdetector_cccf_execute(ptr noundef, <2 x float> noundef) local_unnamed_addr #2

declare ptr @qdetector_cccf_copy(ptr noundef) local_unnamed_addr #2

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

declare float @qdetector_cccf_get_tau(ptr noundef) local_unnamed_addr #2

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 float @qdetector_cccf_get_gamma(ptr noundef) local_unnamed_addr #2

declare float @qdetector_cccf_get_dphi(ptr noundef) local_unnamed_addr #2

declare float @qdetector_cccf_get_phi(ptr noundef) local_unnamed_addr #2

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

declare i32 @qdetector_cccf_destroy(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { 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 = { "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass