; LLVM IR from jgaeddert/liquid-dsp :: examples (autocorr_cccf_example)

; 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.8 = external hidden unnamed_addr constant [14 x i8], align 1
@optarg = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca float, align 4
  %24 = alloca { float, float }, align 4
  %25 = alloca { float, float }, align 4
  %26 = alloca { float, float }, align 4
  %27 = alloca { float, float }, align 4
  %28 = alloca { float, float }, align 4
  %29 = alloca { float, float }, align 4
  %30 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 32, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 8, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 64, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %31 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %31, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store float 2.000000e+01, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  br label %32

32:                                               ; preds = %61, %2
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = call i32 @getopt(i32 noundef %33, ptr noundef %34, ptr noundef @.str.8) #8
  store i32 %35, ptr %12, align 4, !tbaa !5
  %36 = icmp ne i32 %35, -1
  br i1 %36, label %37, label %62

37:                                               ; preds = %32
  %38 = load i32, ptr %12, align 4, !tbaa !5
  switch i32 %38, label %61 [
    i32 117, label %39
    i32 104, label %39
    i32 109, label %40
    i32 110, label %44
    i32 119, label %48
    i32 100, label %52
    i32 101, label %56
    i32 115, label %57
  ]

39:                                               ; preds = %37, %37
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %344

40:                                               ; preds = %37
  %41 = load ptr, ptr @optarg, align 8, !tbaa !9
  %42 = call double @atof(ptr noundef %41) #9
  %43 = fptoui double %42 to i32
  store i32 %43, ptr %6, align 4, !tbaa !5
  br label %61

44:                                               ; preds = %37
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  %46 = call double @atof(ptr noundef %45) #9
  %47 = fptoui double %46 to i32
  store i32 %47, ptr %7, align 4, !tbaa !5
  br label %61

48:                                               ; preds = %37
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  %50 = call double @atof(ptr noundef %49) #9
  %51 = fptoui double %50 to i32
  store i32 %51, ptr %8, align 4, !tbaa !5
  br label %61

52:                                               ; preds = %37
  %53 = load ptr, ptr @optarg, align 8, !tbaa !9
  %54 = call double @atof(ptr noundef %53) #9
  %55 = fptoui double %54 to i32
  store i32 %55, ptr %9, align 4, !tbaa !5
  br label %61

56:                                               ; preds = %37
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %61

57:                                               ; preds = %37
  %58 = load ptr, ptr @optarg, align 8, !tbaa !9
  %59 = call i32 @atoi(ptr noundef %58) #9
  %60 = sitofp i32 %59 to float
  store float %60, ptr %11, align 4, !tbaa !11
  br label %61

61:                                               ; preds = %57, %56, %52, %48, %44, %40, %37
  br label %32, !llvm.loop !13

62:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = add i32 %64, 2
  %66 = mul i32 %63, %65
  store i32 %66, ptr %14, align 4, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = zext i32 %67 to i64
  %69 = call ptr @llvm.stacksave.p0()
  store ptr %69, ptr %15, align 8
  %70 = alloca { float, float }, i64 %68, align 16
  store i64 %68, ptr %16, align 8
  %71 = load i32, ptr %14, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = alloca { float, float }, i64 %72, align 16
  store i64 %72, ptr %17, align 8
  %74 = load i32, ptr %14, align 4, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = alloca { float, float }, i64 %75, align 16
  store i64 %75, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = call ptr @autocorr_cccf_create(i32 noundef %77, i32 noundef %78)
  store ptr %79, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %80 = call ptr @modemcf_create(i32 noundef 40)
  store ptr %80, ptr %21, align 8, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %93, %62
  %82 = load i32, ptr %20, align 4, !tbaa !5
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = icmp ult i32 %82, %83
  br i1 %84, label %85, label %96

85:                                               ; preds = %81
  %86 = load ptr, ptr %21, align 8, !tbaa !9
  %87 = call i32 @rand() #8
  %88 = srem i32 %87, 4
  %89 = load i32, ptr %20, align 4, !tbaa !5
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds { float, float }, ptr %70, i64 %90
  %92 = call i32 @modemcf_modulate(ptr noundef %86, i32 noundef %88, ptr noundef %91)
  br label %93

93:                                               ; preds = %85
  %94 = load i32, ptr %20, align 4, !tbaa !5
  %95 = add i32 %94, 1
  store i32 %95, ptr %20, align 4, !tbaa !5
  br label %81, !llvm.loop !15

96:                                               ; preds = %81
  %97 = load ptr, ptr %21, align 8, !tbaa !9
  %98 = call i32 @modemcf_destroy(ptr noundef %97)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %113, %96
  %100 = load i32, ptr %20, align 4, !tbaa !5
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = icmp ult i32 %100, %101
  br i1 %102, label %103, label %116

103:                                              ; preds = %99
  %104 = load i32, ptr %22, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds { float, float }, ptr %73, i64 %105
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = mul i64 %108, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %106, ptr align 16 %70, i64 %109, i1 false)
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = load i32, ptr %22, align 4, !tbaa !5
  %112 = add i32 %111, %110
  store i32 %112, ptr %22, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %103
  %114 = load i32, ptr %20, align 4, !tbaa !5
  %115 = add i32 %114, 1
  store i32 %115, ptr %20, align 4, !tbaa !5
  br label %99, !llvm.loop !16

116:                                              ; preds = %99
  %117 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %117, ptr %20, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %128, %116
  %119 = load i32, ptr %20, align 4, !tbaa !5
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = icmp ult i32 %119, %120
  br i1 %121, label %122, label %131

122:                                              ; preds = %118
  %123 = load i32, ptr %20, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds { float, float }, ptr %73, i64 %124
  %126 = getelementptr inbounds { float, float }, ptr %125, i32 0, i32 0
  %127 = getelementptr inbounds { float, float }, ptr %125, i32 0, i32 1
  store float 0.000000e+00, ptr %126, align 8
  store float 0.000000e+00, ptr %127, align 4
  br label %128

128:                                              ; preds = %122
  %129 = load i32, ptr %20, align 4, !tbaa !5
  %130 = add i32 %129, 1
  store i32 %130, ptr %20, align 4, !tbaa !5
  br label %118, !llvm.loop !17

131:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %132 = load float, ptr %11, align 4, !tbaa !11
  %133 = fneg float %132
  %134 = fdiv float %133, 2.000000e+01
  %135 = call float @powf(float noundef 1.000000e+01, float noundef %134) #8
  store float %135, ptr %23, align 4, !tbaa !11
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %145, %131
  %137 = load i32, ptr %20, align 4, !tbaa !5
  %138 = load i32, ptr %14, align 4, !tbaa !5
  %139 = icmp ult i32 %137, %138
  br i1 %139, label %140, label %148

140:                                              ; preds = %136
  %141 = load i32, ptr %20, align 4, !tbaa !5
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds { float, float }, ptr %73, i64 %142
  %144 = load float, ptr %23, align 4, !tbaa !11
  call void @cawgn(ptr noundef %143, float noundef %144)
  br label %145

145:                                              ; preds = %140
  %146 = load i32, ptr %20, align 4, !tbaa !5
  %147 = add i32 %146, 1
  store i32 %147, ptr %20, align 4, !tbaa !5
  br label %136, !llvm.loop !18

148:                                              ; preds = %136
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %188, %148
  %150 = load i32, ptr %20, align 4, !tbaa !5
  %151 = load i32, ptr %14, align 4, !tbaa !5
  %152 = icmp ult i32 %150, %151
  br i1 %152, label %153, label %191

153:                                              ; preds = %149
  %154 = load ptr, ptr %19, align 8, !tbaa !9
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds { float, float }, ptr %73, i64 %156
  %158 = getelementptr inbounds { float, float }, ptr %157, i32 0, i32 0
  %159 = load float, ptr %158, align 8
  %160 = getelementptr inbounds { float, float }, ptr %157, i32 0, i32 1
  %161 = load float, ptr %160, align 4
  %162 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %163 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  store float %159, ptr %162, align 4
  store float %161, ptr %163, align 4
  %164 = load <2 x float>, ptr %24, align 4
  %165 = call i32 @autocorr_cccf_push(ptr noundef %154, <2 x float> noundef %164)
  %166 = load ptr, ptr %19, align 8, !tbaa !9
  %167 = load i32, ptr %20, align 4, !tbaa !5
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds { float, float }, ptr %76, i64 %168
  %170 = call i32 @autocorr_cccf_execute(ptr noundef %166, ptr noundef %169)
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %187

173:                                              ; preds = %153
  %174 = load ptr, ptr %19, align 8, !tbaa !9
  %175 = call float @autocorr_cccf_get_energy(ptr noundef %174)
  %176 = load i32, ptr %20, align 4, !tbaa !5
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds { float, float }, ptr %76, i64 %177
  %179 = getelementptr inbounds { float, float }, ptr %178, i32 0, i32 0
  %180 = load float, ptr %179, align 8
  %181 = getelementptr inbounds { float, float }, ptr %178, i32 0, i32 1
  %182 = load float, ptr %181, align 4
  %183 = fdiv float %180, %175
  %184 = fdiv float %182, %175
  %185 = getelementptr inbounds { float, float }, ptr %178, i32 0, i32 0
  %186 = getelementptr inbounds { float, float }, ptr %178, i32 0, i32 1
  store float %183, ptr %185, align 8
  store float %184, ptr %186, align 4
  br label %187

187:                                              ; preds = %173, %153
  br label %188

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

191:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %192 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %193 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  store float 0.000000e+00, ptr %192, align 4
  store float 0.000000e+00, ptr %193, align 4
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %233, %191
  %195 = load i32, ptr %20, align 4, !tbaa !5
  %196 = load i32, ptr %14, align 4, !tbaa !5
  %197 = icmp ult i32 %195, %196
  br i1 %197, label %198, label %236

198:                                              ; preds = %194
  %199 = load i32, ptr %20, align 4, !tbaa !5
  %200 = icmp eq i32 %199, 0
  br i1 %200, label %222, label %201

201:                                              ; preds = %198
  %202 = load i32, ptr %20, align 4, !tbaa !5
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds { float, float }, ptr %76, i64 %203
  %205 = getelementptr inbounds { float, float }, ptr %204, i32 0, i32 0
  %206 = load float, ptr %205, align 8
  %207 = getelementptr inbounds { float, float }, ptr %204, i32 0, i32 1
  %208 = load float, ptr %207, align 4
  %209 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %210 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  store float %206, ptr %209, align 4
  store float %208, ptr %210, align 4
  %211 = load <2 x float>, ptr %26, align 4
  %212 = call float @cabsf(<2 x float> noundef %211) #8
  %213 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %214 = load float, ptr %213, align 4
  %215 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  %216 = load float, ptr %215, align 4
  %217 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 0
  %218 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 1
  store float %214, ptr %217, align 4
  store float %216, ptr %218, align 4
  %219 = load <2 x float>, ptr %27, align 4
  %220 = call float @cabsf(<2 x float> noundef %219) #8
  %221 = fcmp ogt float %212, %220
  br i1 %221, label %222, label %232

222:                                              ; preds = %201, %198
  %223 = load i32, ptr %20, align 4, !tbaa !5
  %224 = zext i32 %223 to i64
  %225 = getelementptr inbounds { float, float }, ptr %76, i64 %224
  %226 = getelementptr inbounds { float, float }, ptr %225, i32 0, i32 0
  %227 = load float, ptr %226, align 8
  %228 = getelementptr inbounds { float, float }, ptr %225, i32 0, i32 1
  %229 = load float, ptr %228, align 4
  %230 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %231 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  store float %227, ptr %230, align 4
  store float %229, ptr %231, align 4
  br label %232

232:                                              ; preds = %222, %201
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %20, align 4, !tbaa !5
  %235 = add i32 %234, 1
  store i32 %235, ptr %20, align 4, !tbaa !5
  br label %194, !llvm.loop !20

236:                                              ; preds = %194
  %237 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %238 = load float, ptr %237, align 4
  %239 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  %240 = load float, ptr %239, align 4
  %241 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %242 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  store float %238, ptr %241, align 4
  store float %240, ptr %242, align 4
  %243 = load <2 x float>, ptr %28, align 4
  %244 = call float @cabsf(<2 x float> noundef %243) #8
  %245 = fpext float %244 to double
  %246 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %247 = load float, ptr %246, align 4
  %248 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  %249 = load float, ptr %248, align 4
  %250 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %251 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  store float %247, ptr %250, align 4
  store float %249, ptr %251, align 4
  %252 = load <2 x float>, ptr %29, align 4
  %253 = call float @cargf(<2 x float> noundef %252) #8
  %254 = fpext float %253 to double
  %255 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %245, double noundef %254)
  %256 = load ptr, ptr %19, align 8, !tbaa !9
  %257 = call i32 @autocorr_cccf_destroy(ptr noundef %256)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %258 = call noalias ptr @fopen(ptr noundef @.str.10, ptr noundef @.str.11)
  store ptr %258, ptr %30, align 8, !tbaa !9
  %259 = load ptr, ptr %30, align 8, !tbaa !9
  %260 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.12, ptr noundef @.str.10) #8
  %261 = load ptr, ptr %30, align 8, !tbaa !9
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef @.str.13) #8
  %263 = load ptr, ptr %30, align 8, !tbaa !9
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.14) #8
  %265 = load ptr, ptr %30, align 8, !tbaa !9
  %266 = load i32, ptr %14, align 4, !tbaa !5
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.15, i32 noundef %266) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %268

268:                                              ; preds = %313, %236
  %269 = load i32, ptr %20, align 4, !tbaa !5
  %270 = load i32, ptr %14, align 4, !tbaa !5
  %271 = icmp ult i32 %269, %270
  br i1 %271, label %272, label %316

272:                                              ; preds = %268
  %273 = load ptr, ptr %30, align 8, !tbaa !9
  %274 = load i32, ptr %20, align 4, !tbaa !5
  %275 = add i32 %274, 1
  %276 = load i32, ptr %20, align 4, !tbaa !5
  %277 = zext i32 %276 to i64
  %278 = getelementptr inbounds { float, float }, ptr %73, i64 %277
  %279 = getelementptr inbounds { float, float }, ptr %278, i32 0, i32 0
  %280 = load float, ptr %279, align 8
  %281 = getelementptr inbounds { float, float }, ptr %278, i32 0, i32 1
  %282 = load float, ptr %281, align 4
  %283 = fpext float %280 to double
  %284 = load i32, ptr %20, align 4, !tbaa !5
  %285 = zext i32 %284 to i64
  %286 = getelementptr inbounds { float, float }, ptr %73, i64 %285
  %287 = getelementptr inbounds { float, float }, ptr %286, i32 0, i32 0
  %288 = load float, ptr %287, align 8
  %289 = getelementptr inbounds { float, float }, ptr %286, i32 0, i32 1
  %290 = load float, ptr %289, align 4
  %291 = fpext float %290 to double
  %292 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.16, i32 noundef %275, double noundef %283, double noundef %291) #8
  %293 = load ptr, ptr %30, align 8, !tbaa !9
  %294 = load i32, ptr %20, align 4, !tbaa !5
  %295 = add i32 %294, 1
  %296 = load i32, ptr %20, align 4, !tbaa !5
  %297 = zext i32 %296 to i64
  %298 = getelementptr inbounds { float, float }, ptr %76, i64 %297
  %299 = getelementptr inbounds { float, float }, ptr %298, i32 0, i32 0
  %300 = load float, ptr %299, align 8
  %301 = getelementptr inbounds { float, float }, ptr %298, i32 0, i32 1
  %302 = load float, ptr %301, align 4
  %303 = fpext float %300 to double
  %304 = load i32, ptr %20, align 4, !tbaa !5
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds { float, float }, ptr %76, i64 %305
  %307 = getelementptr inbounds { float, float }, ptr %306, i32 0, i32 0
  %308 = load float, ptr %307, align 8
  %309 = getelementptr inbounds { float, float }, ptr %306, i32 0, i32 1
  %310 = load float, ptr %309, align 4
  %311 = fpext float %310 to double
  %312 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %293, ptr noundef @.str.17, i32 noundef %295, double noundef %303, double noundef %311) #8
  br label %313

313:                                              ; preds = %272
  %314 = load i32, ptr %20, align 4, !tbaa !5
  %315 = add i32 %314, 1
  store i32 %315, ptr %20, align 4, !tbaa !5
  br label %268, !llvm.loop !21

316:                                              ; preds = %268
  %317 = load ptr, ptr %30, align 8, !tbaa !9
  %318 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %317, ptr noundef @.str.18) #8
  %319 = load ptr, ptr %30, align 8, !tbaa !9
  %320 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %319, ptr noundef @.str.19) #8
  %321 = load ptr, ptr %30, align 8, !tbaa !9
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %321, ptr noundef @.str.20) #8
  %323 = load ptr, ptr %30, align 8, !tbaa !9
  %324 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %323, ptr noundef @.str.21) #8
  %325 = load ptr, ptr %30, align 8, !tbaa !9
  %326 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %325, ptr noundef @.str.22) #8
  %327 = load ptr, ptr %30, align 8, !tbaa !9
  %328 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %327, ptr noundef @.str.23) #8
  %329 = load ptr, ptr %30, align 8, !tbaa !9
  %330 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %329, ptr noundef @.str.24) #8
  %331 = load ptr, ptr %30, align 8, !tbaa !9
  %332 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef @.str.25) #8
  %333 = load ptr, ptr %30, align 8, !tbaa !9
  %334 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %333, ptr noundef @.str.26) #8
  %335 = load ptr, ptr %30, align 8, !tbaa !9
  %336 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %335, ptr noundef @.str.22) #8
  %337 = load ptr, ptr %30, align 8, !tbaa !9
  %338 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %337, ptr noundef @.str.27) #8
  %339 = load ptr, ptr %30, align 8, !tbaa !9
  %340 = call i32 @fclose(ptr noundef %339)
  %341 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef @.str.10)
  %342 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %343 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %343)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %344

344:                                              ; preds = %316, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %345 = load i32, ptr %3, align 4
  ret i32 %345
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #5

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

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

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

declare ptr @modemcf_create(i32 noundef) #1

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

; Function Attrs: nounwind
declare i32 @rand() #4

declare i32 @modemcf_destroy(ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #7

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #4

declare void @cawgn(ptr noundef, float noundef) #1

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

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

declare float @autocorr_cccf_get_energy(ptr noundef) #1

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

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

declare i32 @autocorr_cccf_destroy(ptr noundef) #1

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

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

declare i32 @fclose(ptr noundef) #1

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

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

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

!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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !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.8 = external hidden unnamed_addr constant [14 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  br label %.outer

.outer:                                           ; preds = %23, %2
  %.0107.ph = phi float [ %26, %23 ], [ 2.000000e+01, %2 ]
  %.0105.ph = phi i32 [ %.0105.ph204, %23 ], [ 0, %2 ]
  %.0103.ph = phi i32 [ %.0103.ph210, %23 ], [ 32, %2 ]
  %.0101.ph = phi i32 [ %.0101.ph215, %23 ], [ 64, %2 ]
  %.097.ph = phi i32 [ %.097.ph219, %23 ], [ 8, %2 ]
  %.095.ph = phi i32 [ %.095.ph222, %23 ], [ 32, %2 ]
  br label %.outer203

.outer203:                                        ; preds = %.outer, %22
  %.0105.ph204 = phi i32 [ %.0105.ph, %.outer ], [ 1, %22 ]
  %.0103.ph205 = phi i32 [ %.0103.ph, %.outer ], [ %.0103.ph210, %22 ]
  %.0101.ph206 = phi i32 [ %.0101.ph, %.outer ], [ %.0101.ph215, %22 ]
  %.097.ph207 = phi i32 [ %.097.ph, %.outer ], [ %.097.ph219, %22 ]
  %.095.ph208 = phi i32 [ %.095.ph, %.outer ], [ %.095.ph222, %22 ]
  br label %.outer209

.outer209:                                        ; preds = %.outer203, %18
  %.0103.ph210 = phi i32 [ %.0103.ph205, %.outer203 ], [ %21, %18 ]
  %.0101.ph211 = phi i32 [ %.0101.ph206, %.outer203 ], [ %.0101.ph215, %18 ]
  %.097.ph212 = phi i32 [ %.097.ph207, %.outer203 ], [ %.097.ph219, %18 ]
  %.095.ph213 = phi i32 [ %.095.ph208, %.outer203 ], [ %.095.ph222, %18 ]
  br label %.outer214

.outer214:                                        ; preds = %.outer209, %14
  %.0101.ph215 = phi i32 [ %.0101.ph211, %.outer209 ], [ %17, %14 ]
  %.097.ph216 = phi i32 [ %.097.ph212, %.outer209 ], [ %.097.ph219, %14 ]
  %.095.ph217 = phi i32 [ %.095.ph213, %.outer209 ], [ %.095.ph222, %14 ]
  br label %.outer218

.outer218:                                        ; preds = %.outer214, %10
  %.097.ph219 = phi i32 [ %.097.ph216, %.outer214 ], [ %13, %10 ]
  %.095.ph220 = phi i32 [ %.095.ph217, %.outer214 ], [ %.095.ph222, %10 ]
  br label %.outer221

.outer221:                                        ; preds = %.outer218, %6
  %.095.ph222 = phi i32 [ %.095.ph220, %.outer218 ], [ %9, %6 ]
  br label %3

3:                                                ; preds = %.outer221, %3
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8) #10
  switch i32 %4, label %3 [
    i32 -1, label %27
    i32 117, label %5
    i32 104, label %5
    i32 109, label %6
    i32 110, label %10
    i32 119, label %14
    i32 100, label %18
    i32 101, label %22
    i32 115, label %23
  ], !llvm.loop !5

5:                                                ; preds = %3, %3
  tail call void @usage()
  br label %141

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !7
  %8 = tail call double @atof(ptr noundef %7) #11
  %9 = fptoui double %8 to i32
  br label %.outer221, !llvm.loop !5

10:                                               ; preds = %3
  %11 = load ptr, ptr @optarg, align 8, !tbaa !7
  %12 = tail call double @atof(ptr noundef %11) #11
  %13 = fptoui double %12 to i32
  br label %.outer218, !llvm.loop !5

14:                                               ; preds = %3
  %15 = load ptr, ptr @optarg, align 8, !tbaa !7
  %16 = tail call double @atof(ptr noundef %15) #11
  %17 = fptoui double %16 to i32
  br label %.outer214, !llvm.loop !5

18:                                               ; preds = %3
  %19 = load ptr, ptr @optarg, align 8, !tbaa !7
  %20 = tail call double @atof(ptr noundef %19) #11
  %21 = fptoui double %20 to i32
  br label %.outer209, !llvm.loop !5

22:                                               ; preds = %3
  br label %.outer203, !llvm.loop !5

23:                                               ; preds = %3
  %24 = load ptr, ptr @optarg, align 8, !tbaa !7
  %25 = tail call i32 @atoi(ptr nocapture noundef %24) #11
  %26 = sitofp i32 %25 to float
  br label %.outer, !llvm.loop !5

27:                                               ; preds = %3
  %28 = add i32 %.097.ph219, 2
  %29 = mul i32 %.095.ph222, %28
  %30 = zext i32 %.095.ph222 to i64
  %31 = tail call ptr @llvm.stacksave.p0()
  %32 = alloca { float, float }, i64 %30, align 16
  %33 = zext i32 %29 to i64
  %34 = alloca { float, float }, i64 %33, align 16
  %35 = alloca { float, float }, i64 %33, align 16
  %36 = tail call ptr @autocorr_cccf_create(i32 noundef %.0101.ph215, i32 noundef %.0103.ph210) #10
  %37 = tail call ptr @modemcf_create(i32 noundef 40) #10
  %.not = icmp eq i32 %.095.ph222, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %27, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %27 ]
  %38 = call i32 @rand() #10
  %39 = srem i32 %38, 4
  %40 = getelementptr inbounds { float, float }, ptr %32, i64 %indvars.iv
  %41 = call i32 @modemcf_modulate(ptr noundef %37, i32 noundef %39, ptr noundef nonnull %40) #10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %30
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %27
  %42 = call i32 @modemcf_destroy(ptr noundef %37) #10
  %.not143 = icmp eq i32 %.097.ph219, 0
  br i1 %.not143, label %.preheader112, label %.lr.ph123

.lr.ph123:                                        ; preds = %._crit_edge
  %43 = shl nuw nsw i64 %30, 3
  %xtraiter = and i32 %.097.ph219, 3
  %44 = icmp ult i32 %.097.ph219, 4
  br i1 %44, label %.preheader112.loopexit.unr-lcssa, label %.lr.ph123.new

.lr.ph123.new:                                    ; preds = %.lr.ph123
  %unroll_iter = and i32 %.097.ph219, -4
  br label %58

.preheader112.loopexit.unr-lcssa:                 ; preds = %58, %.lr.ph123
  %.lcssa202.ph = phi i32 [ poison, %.lr.ph123 ], [ %70, %58 ]
  %.096121.unr = phi i32 [ 0, %.lr.ph123 ], [ %70, %58 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader112, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader112.loopexit.unr-lcssa, %.epil.preheader
  %.096121.epil = phi i32 [ %47, %.epil.preheader ], [ %.096121.unr, %.preheader112.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader112.loopexit.unr-lcssa ]
  %45 = zext i32 %.096121.epil to i64
  %46 = getelementptr inbounds { float, float }, ptr %34, i64 %45
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %46, ptr nonnull align 16 %32, i64 %43, i1 false)
  %47 = add i32 %.096121.epil, %.095.ph222
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader112, label %.epil.preheader, !llvm.loop !12

.preheader112:                                    ; preds = %.preheader112.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge
  %.096.lcssa = phi i32 [ 0, %._crit_edge ], [ %.lcssa202.ph, %.preheader112.loopexit.unr-lcssa ], [ %47, %.epil.preheader ]
  %48 = icmp ult i32 %.096.lcssa, %29
  br i1 %48, label %._crit_edge126.thread, label %._crit_edge126

._crit_edge126.thread:                            ; preds = %.preheader112
  %49 = zext i32 %.096.lcssa to i64
  %50 = shl nuw nsw i64 %49, 3
  %scevgep = getelementptr i8, ptr %34, i64 %50
  %51 = xor i32 %.096.lcssa, -1
  %52 = add i32 %29, %51
  %53 = zext i32 %52 to i64
  %54 = shl nuw nsw i64 %53, 3
  %55 = add nuw nsw i64 %54, 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %scevgep, i8 0, i64 %55, i1 false)
  %56 = fdiv float %.0107.ph, -2.000000e+01
  %57 = call float @powf(float noundef 1.000000e+01, float noundef %56) #10
  br label %.lr.ph129.preheader

58:                                               ; preds = %58, %.lr.ph123.new
  %.096121 = phi i32 [ 0, %.lr.ph123.new ], [ %70, %58 ]
  %niter = phi i32 [ 0, %.lr.ph123.new ], [ %niter.next.3, %58 ]
  %59 = zext i32 %.096121 to i64
  %60 = getelementptr inbounds { float, float }, ptr %34, i64 %59
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %60, ptr nonnull align 16 %32, i64 %43, i1 false)
  %61 = add i32 %.096121, %.095.ph222
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds { float, float }, ptr %34, i64 %62
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %63, ptr nonnull align 16 %32, i64 %43, i1 false)
  %64 = add i32 %61, %.095.ph222
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds { float, float }, ptr %34, i64 %65
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %66, ptr nonnull align 16 %32, i64 %43, i1 false)
  %67 = add i32 %64, %.095.ph222
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds { float, float }, ptr %34, i64 %68
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %69, ptr nonnull align 16 %32, i64 %43, i1 false)
  %70 = add i32 %67, %.095.ph222
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader112.loopexit.unr-lcssa, label %58, !llvm.loop !14

._crit_edge126:                                   ; preds = %.preheader112
  %71 = fdiv float %.0107.ph, -2.000000e+01
  %72 = call float @powf(float noundef 1.000000e+01, float noundef %71) #10
  %.not144 = icmp eq i32 %29, 0
  br i1 %.not144, label %._crit_edge136, label %.lr.ph129.preheader

.lr.ph129.preheader:                              ; preds = %._crit_edge126.thread, %._crit_edge126
  %73 = phi float [ %57, %._crit_edge126.thread ], [ %72, %._crit_edge126 ]
  br label %.lr.ph129

.lr.ph131:                                        ; preds = %.lr.ph129
  %.not110 = icmp eq i32 %.0105.ph204, 0
  br label %76

.lr.ph129:                                        ; preds = %.lr.ph129.preheader, %.lr.ph129
  %indvars.iv159 = phi i64 [ 0, %.lr.ph129.preheader ], [ %indvars.iv.next160, %.lr.ph129 ]
  %74 = getelementptr inbounds { float, float }, ptr %34, i64 %indvars.iv159
  call void @cawgn(ptr noundef nonnull %74, float noundef %73) #10
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next160, %33
  br i1 %exitcond163.not, label %.lr.ph131, label %.lr.ph129, !llvm.loop !15

.preheader:                                       ; preds = %88
  %75 = load <2 x float>, ptr %35, align 16
  %exitcond173.peel.not = icmp eq i32 %29, 1
  br i1 %exitcond173.peel.not, label %._crit_edge136, label %.lr.ph135.peel.next

76:                                               ; preds = %.lr.ph131, %88
  %indvars.iv164 = phi i64 [ 0, %.lr.ph131 ], [ %indvars.iv.next165, %88 ]
  %77 = getelementptr inbounds { float, float }, ptr %34, i64 %indvars.iv164
  %78 = load <2 x float>, ptr %77, align 8
  %79 = call i32 @autocorr_cccf_push(ptr noundef %36, <2 x float> noundef %78) #10
  %80 = getelementptr inbounds { float, float }, ptr %35, i64 %indvars.iv164
  %81 = call i32 @autocorr_cccf_execute(ptr noundef %36, ptr noundef nonnull %80) #10
  br i1 %.not110, label %88, label %82

82:                                               ; preds = %76
  %83 = call float @autocorr_cccf_get_energy(ptr noundef %36) #10
  %84 = load <2 x float>, ptr %80, align 8
  %85 = insertelement <2 x float> poison, float %83, i64 0
  %86 = shufflevector <2 x float> %85, <2 x float> poison, <2 x i32> zeroinitializer
  %87 = fdiv <2 x float> %84, %86
  store <2 x float> %87, ptr %80, align 8
  br label %88

88:                                               ; preds = %76, %82
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond168.not = icmp eq i64 %indvars.iv.next165, %33
  br i1 %exitcond168.not, label %.preheader, label %76, !llvm.loop !16

.lr.ph135.peel.next:                              ; preds = %.preheader, %98
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %98 ], [ 1, %.preheader ]
  %89 = phi <2 x float> [ %99, %98 ], [ %75, %.preheader ]
  %90 = getelementptr inbounds { float, float }, ptr %35, i64 %indvars.iv169
  %91 = load <2 x float>, ptr %90, align 8
  %92 = call float @cabsf(<2 x float> noundef %91) #10
  %93 = call float @cabsf(<2 x float> noundef %89) #10
  %94 = fcmp ogt float %92, %93
  br i1 %94, label %95, label %98

95:                                               ; preds = %.lr.ph135.peel.next
  %96 = getelementptr inbounds { float, float }, ptr %35, i64 %indvars.iv169
  %97 = load <2 x float>, ptr %96, align 8
  br label %98

98:                                               ; preds = %.lr.ph135.peel.next, %95
  %99 = phi <2 x float> [ %97, %95 ], [ %89, %.lr.ph135.peel.next ]
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %exitcond173.not = icmp eq i64 %indvars.iv.next170, %33
  br i1 %exitcond173.not, label %._crit_edge136, label %.lr.ph135.peel.next, !llvm.loop !17

._crit_edge136:                                   ; preds = %98, %._crit_edge126, %.preheader
  %.not144185187189 = phi i1 [ false, %.preheader ], [ true, %._crit_edge126 ], [ false, %98 ]
  %100 = phi <2 x float> [ %75, %.preheader ], [ zeroinitializer, %._crit_edge126 ], [ %99, %98 ]
  %101 = call float @cabsf(<2 x float> noundef %100) #10
  %102 = fpext float %101 to double
  %103 = call float @cargf(<2 x float> noundef %100) #10
  %104 = fpext float %103 to double
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %102, double noundef %104)
  %106 = call i32 @autocorr_cccf_destroy(ptr noundef %36) #10
  %107 = call noalias ptr @fopen(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11)
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.10) #10
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.13) #10
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.14) #10
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.15, i32 noundef %29) #10
  br i1 %.not144185187189, label %._crit_edge142, label %.lr.ph141

.lr.ph141:                                        ; preds = %._crit_edge136, %.lr.ph141
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %.lr.ph141 ], [ 0, %._crit_edge136 ]
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %112 = getelementptr inbounds { float, float }, ptr %34, i64 %indvars.iv175
  %113 = load float, ptr %112, align 8
  %114 = getelementptr inbounds i8, ptr %112, i64 4
  %115 = fpext float %113 to double
  %116 = load float, ptr %114, align 4
  %117 = fpext float %116 to double
  %118 = trunc nuw i64 %indvars.iv.next176 to i32
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.16, i32 noundef %118, double noundef %115, double noundef %117) #10
  %120 = getelementptr inbounds { float, float }, ptr %35, i64 %indvars.iv175
  %121 = load float, ptr %120, align 8
  %122 = getelementptr inbounds i8, ptr %120, i64 4
  %123 = fpext float %121 to double
  %124 = load float, ptr %122, align 4
  %125 = fpext float %124 to double
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.17, i32 noundef %118, double noundef %123, double noundef %125) #10
  %exitcond179.not = icmp eq i64 %indvars.iv.next176, %33
  br i1 %exitcond179.not, label %._crit_edge142, label %.lr.ph141, !llvm.loop !19

._crit_edge142:                                   ; preds = %.lr.ph141, %._crit_edge136
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.18) #10
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.19) #10
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.20) #10
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.21) #10
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.22) #10
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.23) #10
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.24) #10
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.25) #10
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.26) #10
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.22) #10
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.27) #10
  %138 = call i32 @fclose(ptr noundef %107)
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.10)
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  call void @llvm.stackrestore.p0(ptr %31)
  br label %141

141:                                              ; preds = %._crit_edge142, %5
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

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

declare ptr @autocorr_cccf_create(i32 noundef, i32 noundef) local_unnamed_addr #6

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #6

declare i32 @modemcf_modulate(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float noundef) local_unnamed_addr #7

declare void @cawgn(ptr noundef, float noundef) local_unnamed_addr #6

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

declare i32 @autocorr_cccf_execute(ptr noundef, ptr noundef) local_unnamed_addr #6

declare float @autocorr_cccf_get_energy(ptr noundef) local_unnamed_addr #6

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

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

declare i32 @autocorr_cccf_destroy(ptr noundef) local_unnamed_addr #6

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #9

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nofree nounwind willreturn memory(write) "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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!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 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6, !18}
!18 = !{!"llvm.loop.peeled.count", i32 1}
!19 = distinct !{!19, !6}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass