; LLVM IR from jgaeddert/liquid-dsp :: sandbox (resamp2_crcf_interp_recreate_test)

; 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 [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca [2 x { float, float }], align 16
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca { float, float }, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca { float, float }, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 5, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 4, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = mul i32 4, %24
  %26 = add i32 %25, 1
  store i32 %26, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = mul i32 4, %27
  %29 = add i32 %28, 1
  store i32 %29, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store float 0x3FB99999A0000000, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 32, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store float 6.000000e+01, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = load float, ptr %8, align 4, !tbaa !9
  %32 = call ptr @resamp2_cccf_create(i32 noundef %30, float noundef 0.000000e+00, float noundef %31)
  store ptr %32, ptr %9, align 8, !tbaa !11
  %33 = load ptr, ptr %9, align 8, !tbaa !11
  %34 = call i32 @resamp2_cccf_print(ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %35 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %35, ptr %10, align 8, !tbaa !11
  %36 = load ptr, ptr %10, align 8, !tbaa !11
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.2, ptr noundef @.str) #4
  %38 = load ptr, ptr %10, align 8, !tbaa !11
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.3) #4
  %40 = load ptr, ptr %10, align 8, !tbaa !11
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.4, i32 noundef %41) #4
  %43 = load ptr, ptr %10, align 8, !tbaa !11
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.5, i32 noundef %44) #4
  %46 = load ptr, ptr %10, align 8, !tbaa !11
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.6, i32 noundef %47) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store float 0.000000e+00, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %49 = load float, ptr %6, align 4, !tbaa !9
  %50 = fpext float %49 to double
  %51 = fmul double 0x401921FB54442D18, %50
  %52 = fptrunc double %51 to float
  store float %52, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %169, %0
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = udiv i32 %55, 2
  %57 = icmp ult i32 %54, %56
  br i1 %57, label %58, label %172

58:                                               ; preds = %53
  %59 = load float, ptr %12, align 4, !tbaa !9
  %60 = fmul float 0.000000e+00, %59
  %61 = fmul float 1.000000e+00, %59
  %62 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %63 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %60, ptr %62, align 4
  store float %61, ptr %63, align 4
  %64 = load <2 x float>, ptr %18, align 4
  %65 = call <2 x float> @cexpf(<2 x float> noundef %64) #4
  store <2 x float> %65, ptr %19, align 4
  %66 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %67 = load float, ptr %66, align 4
  %68 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %69 = load float, ptr %68, align 4
  %70 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %71 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %67, ptr %70, align 4
  store float %69, ptr %71, align 4
  %72 = load float, ptr %13, align 4, !tbaa !9
  %73 = load float, ptr %12, align 4, !tbaa !9
  %74 = fadd float %73, %72
  store float %74, ptr %12, align 4, !tbaa !9
  %75 = load ptr, ptr %9, align 8, !tbaa !11
  %76 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %77 = load float, ptr %76, align 4
  %78 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %79 = load float, ptr %78, align 4
  %80 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %81 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %82 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  store float %77, ptr %81, align 4
  store float %79, ptr %82, align 4
  %83 = load <2 x float>, ptr %20, align 4
  %84 = call i32 @resamp2_cccf_interp_execute(ptr noundef %75, <2 x float> noundef %83, ptr noundef %80)
  %85 = load i32, ptr %14, align 4, !tbaa !5
  %86 = add i32 %85, 1
  store i32 %86, ptr %14, align 4, !tbaa !5
  %87 = load i32, ptr %15, align 4, !tbaa !5
  %88 = add i32 %87, 1
  store i32 %88, ptr %15, align 4, !tbaa !5
  %89 = load ptr, ptr %10, align 8, !tbaa !11
  %90 = load i32, ptr %14, align 4, !tbaa !5
  %91 = add i32 %90, 1
  %92 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %93 = load float, ptr %92, align 4
  %94 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %95 = load float, ptr %94, align 4
  %96 = fpext float %93 to double
  %97 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %98 = load float, ptr %97, align 4
  %99 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %100 = load float, ptr %99, align 4
  %101 = fpext float %100 to double
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.7, i32 noundef %91, double noundef %96, double noundef %101) #4
  %103 = load ptr, ptr %10, align 8, !tbaa !11
  %104 = load i32, ptr %15, align 4, !tbaa !5
  %105 = mul i32 2, %104
  %106 = add i32 %105, 1
  %107 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %108 = getelementptr inbounds { float, float }, ptr %107, i32 0, i32 0
  %109 = load float, ptr %108, align 16
  %110 = getelementptr inbounds { float, float }, ptr %107, i32 0, i32 1
  %111 = load float, ptr %110, align 4
  %112 = fpext float %109 to double
  %113 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %114 = getelementptr inbounds { float, float }, ptr %113, i32 0, i32 0
  %115 = load float, ptr %114, align 16
  %116 = getelementptr inbounds { float, float }, ptr %113, i32 0, i32 1
  %117 = load float, ptr %116, align 4
  %118 = fpext float %117 to double
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.8, i32 noundef %106, double noundef %112, double noundef %118) #4
  %120 = load ptr, ptr %10, align 8, !tbaa !11
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = mul i32 2, %121
  %123 = add i32 %122, 2
  %124 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 1
  %125 = getelementptr inbounds { float, float }, ptr %124, i32 0, i32 0
  %126 = load float, ptr %125, align 8
  %127 = getelementptr inbounds { float, float }, ptr %124, i32 0, i32 1
  %128 = load float, ptr %127, align 4
  %129 = fpext float %126 to double
  %130 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 1
  %131 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 0
  %132 = load float, ptr %131, align 8
  %133 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  %135 = fpext float %134 to double
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.8, i32 noundef %123, double noundef %129, double noundef %135) #4
  %137 = load i32, ptr %15, align 4, !tbaa !5
  %138 = mul i32 2, %137
  %139 = add i32 %138, 1
  %140 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %141 = getelementptr inbounds { float, float }, ptr %140, i32 0, i32 0
  %142 = load float, ptr %141, align 16
  %143 = getelementptr inbounds { float, float }, ptr %140, i32 0, i32 1
  %144 = load float, ptr %143, align 4
  %145 = fpext float %142 to double
  %146 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %147 = getelementptr inbounds { float, float }, ptr %146, i32 0, i32 0
  %148 = load float, ptr %147, align 16
  %149 = getelementptr inbounds { float, float }, ptr %146, i32 0, i32 1
  %150 = load float, ptr %149, align 4
  %151 = fpext float %150 to double
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %139, double noundef %145, double noundef %151)
  %153 = load i32, ptr %15, align 4, !tbaa !5
  %154 = mul i32 2, %153
  %155 = add i32 %154, 2
  %156 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 1
  %157 = getelementptr inbounds { float, float }, ptr %156, i32 0, i32 0
  %158 = load float, ptr %157, align 8
  %159 = getelementptr inbounds { float, float }, ptr %156, i32 0, i32 1
  %160 = load float, ptr %159, align 4
  %161 = fpext float %158 to double
  %162 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 1
  %163 = getelementptr inbounds { float, float }, ptr %162, i32 0, i32 0
  %164 = load float, ptr %163, align 8
  %165 = getelementptr inbounds { float, float }, ptr %162, i32 0, i32 1
  %166 = load float, ptr %165, align 4
  %167 = fpext float %166 to double
  %168 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %155, double noundef %161, double noundef %167)
  br label %169

169:                                              ; preds = %58
  %170 = load i32, ptr %11, align 4, !tbaa !5
  %171 = add i32 %170, 1
  store i32 %171, ptr %11, align 4, !tbaa !5
  br label %53, !llvm.loop !13

172:                                              ; preds = %53
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %174 = load ptr, ptr %9, align 8, !tbaa !11
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = load float, ptr %8, align 4, !tbaa !9
  %177 = call ptr @resamp2_cccf_recreate(ptr noundef %174, i32 noundef %175, float noundef 0.000000e+00, float noundef %176)
  store ptr %177, ptr %9, align 8, !tbaa !11
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %178

178:                                              ; preds = %294, %172
  %179 = load i32, ptr %11, align 4, !tbaa !5
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = udiv i32 %180, 2
  %182 = icmp ult i32 %179, %181
  br i1 %182, label %183, label %297

183:                                              ; preds = %178
  %184 = load float, ptr %12, align 4, !tbaa !9
  %185 = fmul float 0.000000e+00, %184
  %186 = fmul float 1.000000e+00, %184
  %187 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %188 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %185, ptr %187, align 4
  store float %186, ptr %188, align 4
  %189 = load <2 x float>, ptr %21, align 4
  %190 = call <2 x float> @cexpf(<2 x float> noundef %189) #4
  store <2 x float> %190, ptr %22, align 4
  %191 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %192 = load float, ptr %191, align 4
  %193 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  %194 = load float, ptr %193, align 4
  %195 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %196 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %192, ptr %195, align 4
  store float %194, ptr %196, align 4
  %197 = load float, ptr %13, align 4, !tbaa !9
  %198 = load float, ptr %12, align 4, !tbaa !9
  %199 = fadd float %198, %197
  store float %199, ptr %12, align 4, !tbaa !9
  %200 = load ptr, ptr %9, align 8, !tbaa !11
  %201 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %202 = load float, ptr %201, align 4
  %203 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %204 = load float, ptr %203, align 4
  %205 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %206 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 0
  %207 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 1
  store float %202, ptr %206, align 4
  store float %204, ptr %207, align 4
  %208 = load <2 x float>, ptr %23, align 4
  %209 = call i32 @resamp2_cccf_interp_execute(ptr noundef %200, <2 x float> noundef %208, ptr noundef %205)
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = add i32 %210, 1
  store i32 %211, ptr %14, align 4, !tbaa !5
  %212 = load i32, ptr %15, align 4, !tbaa !5
  %213 = add i32 %212, 1
  store i32 %213, ptr %15, align 4, !tbaa !5
  %214 = load ptr, ptr %10, align 8, !tbaa !11
  %215 = load i32, ptr %14, align 4, !tbaa !5
  %216 = add i32 %215, 1
  %217 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %218 = load float, ptr %217, align 4
  %219 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %220 = load float, ptr %219, align 4
  %221 = fpext float %218 to double
  %222 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %223 = load float, ptr %222, align 4
  %224 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  %225 = load float, ptr %224, align 4
  %226 = fpext float %225 to double
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.7, i32 noundef %216, double noundef %221, double noundef %226) #4
  %228 = load ptr, ptr %10, align 8, !tbaa !11
  %229 = load i32, ptr %15, align 4, !tbaa !5
  %230 = mul i32 2, %229
  %231 = add i32 %230, 1
  %232 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %233 = getelementptr inbounds { float, float }, ptr %232, i32 0, i32 0
  %234 = load float, ptr %233, align 16
  %235 = getelementptr inbounds { float, float }, ptr %232, i32 0, i32 1
  %236 = load float, ptr %235, align 4
  %237 = fpext float %234 to double
  %238 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %239 = getelementptr inbounds { float, float }, ptr %238, i32 0, i32 0
  %240 = load float, ptr %239, align 16
  %241 = getelementptr inbounds { float, float }, ptr %238, i32 0, i32 1
  %242 = load float, ptr %241, align 4
  %243 = fpext float %242 to double
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef @.str.8, i32 noundef %231, double noundef %237, double noundef %243) #4
  %245 = load ptr, ptr %10, align 8, !tbaa !11
  %246 = load i32, ptr %15, align 4, !tbaa !5
  %247 = mul i32 2, %246
  %248 = add i32 %247, 2
  %249 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 1
  %250 = getelementptr inbounds { float, float }, ptr %249, i32 0, i32 0
  %251 = load float, ptr %250, align 8
  %252 = getelementptr inbounds { float, float }, ptr %249, i32 0, i32 1
  %253 = load float, ptr %252, align 4
  %254 = fpext float %251 to double
  %255 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 1
  %256 = getelementptr inbounds { float, float }, ptr %255, i32 0, i32 0
  %257 = load float, ptr %256, align 8
  %258 = getelementptr inbounds { float, float }, ptr %255, i32 0, i32 1
  %259 = load float, ptr %258, align 4
  %260 = fpext float %259 to double
  %261 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str.8, i32 noundef %248, double noundef %254, double noundef %260) #4
  %262 = load i32, ptr %15, align 4, !tbaa !5
  %263 = mul i32 2, %262
  %264 = add i32 %263, 1
  %265 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %266 = getelementptr inbounds { float, float }, ptr %265, i32 0, i32 0
  %267 = load float, ptr %266, align 16
  %268 = getelementptr inbounds { float, float }, ptr %265, i32 0, i32 1
  %269 = load float, ptr %268, align 4
  %270 = fpext float %267 to double
  %271 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 0
  %272 = getelementptr inbounds { float, float }, ptr %271, i32 0, i32 0
  %273 = load float, ptr %272, align 16
  %274 = getelementptr inbounds { float, float }, ptr %271, i32 0, i32 1
  %275 = load float, ptr %274, align 4
  %276 = fpext float %275 to double
  %277 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %264, double noundef %270, double noundef %276)
  %278 = load i32, ptr %15, align 4, !tbaa !5
  %279 = mul i32 2, %278
  %280 = add i32 %279, 2
  %281 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 1
  %282 = getelementptr inbounds { float, float }, ptr %281, i32 0, i32 0
  %283 = load float, ptr %282, align 8
  %284 = getelementptr inbounds { float, float }, ptr %281, i32 0, i32 1
  %285 = load float, ptr %284, align 4
  %286 = fpext float %283 to double
  %287 = getelementptr inbounds [2 x { float, float }], ptr %17, i64 0, i64 1
  %288 = getelementptr inbounds { float, float }, ptr %287, i32 0, i32 0
  %289 = load float, ptr %288, align 8
  %290 = getelementptr inbounds { float, float }, ptr %287, i32 0, i32 1
  %291 = load float, ptr %290, align 4
  %292 = fpext float %291 to double
  %293 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %280, double noundef %286, double noundef %292)
  br label %294

294:                                              ; preds = %183
  %295 = load i32, ptr %11, align 4, !tbaa !5
  %296 = add i32 %295, 1
  store i32 %296, ptr %11, align 4, !tbaa !5
  br label %178, !llvm.loop !15

297:                                              ; preds = %178
  %298 = load ptr, ptr %10, align 8, !tbaa !11
  %299 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %298, ptr noundef @.str.10) #4
  %300 = load ptr, ptr %10, align 8, !tbaa !11
  %301 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %300, ptr noundef @.str.11) #4
  %302 = load ptr, ptr %10, align 8, !tbaa !11
  %303 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %302, ptr noundef @.str.12) #4
  %304 = load ptr, ptr %10, align 8, !tbaa !11
  %305 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %304, ptr noundef @.str.13) #4
  %306 = load ptr, ptr %10, align 8, !tbaa !11
  %307 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %306, ptr noundef @.str.14) #4
  %308 = load ptr, ptr %10, align 8, !tbaa !11
  %309 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %308, ptr noundef @.str.15) #4
  %310 = load ptr, ptr %10, align 8, !tbaa !11
  %311 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %310, ptr noundef @.str.16) #4
  %312 = load ptr, ptr %10, align 8, !tbaa !11
  %313 = call i32 @fclose(ptr noundef %312)
  %314 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef @.str)
  %315 = load ptr, ptr %9, align 8, !tbaa !11
  %316 = call i32 @resamp2_cccf_destroy(ptr noundef %315)
  %317 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

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

declare ptr @resamp2_cccf_create(i32 noundef, float noundef, float noundef) #2

declare i32 @resamp2_cccf_print(ptr noundef) #2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

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

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

declare ptr @resamp2_cccf_recreate(ptr noundef, i32 noundef, float noundef, float noundef) #2

declare i32 @fclose(ptr noundef) #2

declare i32 @resamp2_cccf_destroy(ptr noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="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 = { "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 = { 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 = distinct !{!15, !14}


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

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [2 x { float, float }], align 16
  %2 = tail call ptr @resamp2_cccf_create(i32 noundef 21, float noundef 0.000000e+00, float noundef 6.000000e+01) #5
  %3 = tail call i32 @resamp2_cccf_print(ptr noundef %2) #5
  %4 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %5 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.3) #5
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.4, i32 noundef 21) #5
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.5, i32 noundef 17) #5
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.6, i32 noundef 32) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  %10 = getelementptr inbounds i8, ptr %1, i64 4
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = getelementptr inbounds i8, ptr %1, i64 12
  br label %13

13:                                               ; preds = %0, %13
  %.088 = phi i32 [ 0, %0 ], [ %18, %13 ]
  %.08385 = phi float [ 0.000000e+00, %0 ], [ %16, %13 ]
  %14 = fmul float %.08385, 0.000000e+00
  %.sroa.08.0.vec.insert = insertelement <2 x float> poison, float %14, i64 0
  %.sroa.08.4.vec.insert = insertelement <2 x float> %.sroa.08.0.vec.insert, float %.08385, i64 1
  %15 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.08.4.vec.insert) #5
  %.sroa.07.0.vec.extract = extractelement <2 x float> %15, i64 0
  %.sroa.07.4.vec.extract = extractelement <2 x float> %15, i64 1
  %16 = fadd float %.08385, 0x3FE41B2F80000000
  %17 = call i32 @resamp2_cccf_interp_execute(ptr noundef %2, <2 x float> noundef %15, ptr noundef nonnull %1) #5
  %18 = add nuw nsw i32 %.088, 1
  %19 = add nuw nsw i32 %.088, 2
  %20 = fpext float %.sroa.07.0.vec.extract to double
  %21 = fpext float %.sroa.07.4.vec.extract to double
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.7, i32 noundef %19, double noundef %20, double noundef %21) #5
  %23 = shl nuw i32 %18, 1
  %24 = or disjoint i32 %23, 1
  %25 = load float, ptr %1, align 16
  %26 = fpext float %25 to double
  %27 = load float, ptr %10, align 4
  %28 = fpext float %27 to double
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.8, i32 noundef %24, double noundef %26, double noundef %28) #5
  %30 = add nuw nsw i32 %23, 2
  %31 = load float, ptr %11, align 8
  %32 = fpext float %31 to double
  %33 = load float, ptr %12, align 4
  %34 = fpext float %33 to double
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.8, i32 noundef %30, double noundef %32, double noundef %34) #5
  %36 = load float, ptr %1, align 16
  %37 = fpext float %36 to double
  %38 = load float, ptr %10, align 4
  %39 = fpext float %38 to double
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %24, double noundef %37, double noundef %39)
  %41 = load float, ptr %11, align 8
  %42 = fpext float %41 to double
  %43 = load float, ptr %12, align 4
  %44 = fpext float %43 to double
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %30, double noundef %42, double noundef %44)
  %exitcond.not = icmp eq i32 %18, 16
  br i1 %exitcond.not, label %46, label %13, !llvm.loop !5

46:                                               ; preds = %13
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %48 = call ptr @resamp2_cccf_recreate(ptr noundef %2, i32 noundef 17, float noundef 0.000000e+00, float noundef 6.000000e+01) #5
  br label %49

49:                                               ; preds = %46, %49
  %.18091 = phi i32 [ 16, %46 ], [ %54, %49 ]
  %.18489 = phi float [ %16, %46 ], [ %52, %49 ]
  %50 = fmul float %.18489, 0.000000e+00
  %.sroa.03.0.vec.insert = insertelement <2 x float> poison, float %50, i64 0
  %.sroa.03.4.vec.insert = insertelement <2 x float> %.sroa.03.0.vec.insert, float %.18489, i64 1
  %51 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.03.4.vec.insert) #5
  %.sroa.02.0.vec.extract = extractelement <2 x float> %51, i64 0
  %.sroa.02.4.vec.extract = extractelement <2 x float> %51, i64 1
  %52 = fadd float %.18489, 0x3FE41B2F80000000
  %53 = call i32 @resamp2_cccf_interp_execute(ptr noundef %48, <2 x float> noundef %51, ptr noundef nonnull %1) #5
  %54 = add nuw nsw i32 %.18091, 1
  %55 = add nuw nsw i32 %.18091, 2
  %56 = fpext float %.sroa.02.0.vec.extract to double
  %57 = fpext float %.sroa.02.4.vec.extract to double
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.7, i32 noundef %55, double noundef %56, double noundef %57) #5
  %59 = shl nuw i32 %54, 1
  %60 = or disjoint i32 %59, 1
  %61 = load float, ptr %1, align 16
  %62 = fpext float %61 to double
  %63 = load float, ptr %10, align 4
  %64 = fpext float %63 to double
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.8, i32 noundef %60, double noundef %62, double noundef %64) #5
  %66 = add nuw nsw i32 %59, 2
  %67 = load float, ptr %11, align 8
  %68 = fpext float %67 to double
  %69 = load float, ptr %12, align 4
  %70 = fpext float %69 to double
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.8, i32 noundef %66, double noundef %68, double noundef %70) #5
  %72 = load float, ptr %1, align 16
  %73 = fpext float %72 to double
  %74 = load float, ptr %10, align 4
  %75 = fpext float %74 to double
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %60, double noundef %73, double noundef %75)
  %77 = load float, ptr %11, align 8
  %78 = fpext float %77 to double
  %79 = load float, ptr %12, align 4
  %80 = fpext float %79 to double
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %66, double noundef %78, double noundef %80)
  %exitcond95.not = icmp eq i32 %54, 32
  br i1 %exitcond95.not, label %82, label %49, !llvm.loop !7

82:                                               ; preds = %49
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.10) #5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.11) #5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.12) #5
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.13) #5
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.14) #5
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.15) #5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.16) #5
  %90 = call i32 @fclose(ptr noundef %4)
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef nonnull @.str)
  %92 = call i32 @resamp2_cccf_destroy(ptr noundef %48) #5
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  ret i32 0
}

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

declare ptr @resamp2_cccf_create(i32 noundef, float noundef, float noundef) local_unnamed_addr #2

declare i32 @resamp2_cccf_print(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

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

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

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

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

declare ptr @resamp2_cccf_recreate(ptr noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

declare i32 @resamp2_cccf_destroy(ptr noundef) local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


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