; LLVM IR from jgaeddert/liquid-dsp :: sandbox (cpmodem_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.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.38 = 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 float, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca { float, float }, align 4
  %28 = alloca { float, float }, align 4
  %29 = alloca { float, float }, align 4
  %30 = alloca { float, float }, align 4
  %31 = alloca { float, float }, align 4
  %32 = alloca { float, float }, align 4
  %33 = alloca { float, float }, align 4
  %34 = 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
  %35 = call i64 @time(ptr noundef null) #9
  %36 = trunc i64 %35 to i32
  call void @srand(i32 noundef %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store float 0x3FE921FB60000000, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store float 0x3FB99999A0000000, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 2, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 20, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  br label %37

37:                                               ; preds = %60, %2
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = call i32 @getopt(i32 noundef %38, ptr noundef %39, ptr noundef @.str.6) #9
  store i32 %40, ptr %10, align 4, !tbaa !5
  %41 = icmp ne i32 %40, -1
  br i1 %41, label %42, label %61

42:                                               ; preds = %37
  %43 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %43, label %59 [
    i32 104, label %44
    i32 109, label %45
    i32 110, label %48
    i32 112, label %51
    i32 102, label %55
  ]

44:                                               ; preds = %42
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %409

45:                                               ; preds = %42
  %46 = load ptr, ptr @optarg, align 8, !tbaa !9
  %47 = call i32 @atoi(ptr noundef %46) #10
  store i32 %47, ptr %8, align 4, !tbaa !5
  br label %60

48:                                               ; preds = %42
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  %50 = call i32 @atoi(ptr noundef %49) #10
  store i32 %50, ptr %9, align 4, !tbaa !5
  br label %60

51:                                               ; preds = %42
  %52 = load ptr, ptr @optarg, align 8, !tbaa !9
  %53 = call double @atof(ptr noundef %52) #10
  %54 = fptrunc double %53 to float
  store float %54, ptr %6, align 4, !tbaa !11
  br label %60

55:                                               ; preds = %42
  %56 = load ptr, ptr @optarg, align 8, !tbaa !9
  %57 = call double @atof(ptr noundef %56) #10
  %58 = fptrunc double %57 to float
  store float %58, ptr %7, align 4, !tbaa !11
  br label %60

59:                                               ; preds = %42
  call void @exit(i32 noundef 1) #11
  unreachable

60:                                               ; preds = %55, %51, %48, %45
  br label %37, !llvm.loop !13

61:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = shl i32 1, %62
  store i32 %63, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = mul i32 4, %64
  store i32 %65, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = load i32, ptr %13, align 4, !tbaa !5
  %68 = mul i32 %66, %67
  store i32 %68, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store float 0x3FB99999A0000000, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %69 = call ptr @nco_crcf_create(i32 noundef 1)
  store ptr %69, ptr %16, align 8, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = call ptr @llvm.stacksave.p0()
  store ptr %72, ptr %17, align 8
  %73 = alloca float, i64 %71, align 16
  store i64 %71, ptr %18, 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 %19, align 8
  %77 = load i32, ptr %14, align 4, !tbaa !5
  %78 = zext i32 %77 to i64
  %79 = alloca { float, float }, i64 %78, align 16
  store i64 %78, ptr %20, align 8
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = zext i32 %80 to i64
  %82 = alloca float, i64 %81, align 16
  store i64 %81, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %130, %61
  %84 = load i32, ptr %23, align 4, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = icmp ult i32 %84, %85
  br i1 %86, label %87, label %133

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %88 = call i32 @rand() #9
  %89 = load i32, ptr %12, align 4, !tbaa !5
  %90 = urem i32 %88, %89
  store i32 %90, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %91 = load i32, ptr %25, align 4, !tbaa !5
  %92 = uitofp i32 %91 to float
  %93 = load i32, ptr %12, align 4, !tbaa !5
  %94 = uitofp i32 %93 to float
  %95 = fneg float %94
  %96 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %92, float %95)
  %97 = fadd float %96, 1.000000e+00
  %98 = fpext float %97 to double
  %99 = fmul double %98, 0x400921FB54442D18
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = uitofp i32 %100 to float
  %102 = fpext float %101 to double
  %103 = fdiv double %99, %102
  %104 = fptrunc double %103 to float
  store float %104, ptr %26, align 4, !tbaa !11
  %105 = load ptr, ptr %16, align 8, !tbaa !9
  %106 = load float, ptr %26, align 4, !tbaa !11
  %107 = call i32 @nco_crcf_set_frequency(ptr noundef %105, float noundef %106)
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %126, %87
  %109 = load i32, ptr %24, align 4, !tbaa !5
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = icmp ult i32 %109, %110
  br i1 %111, label %112, label %129

112:                                              ; preds = %108
  %113 = load ptr, ptr %16, align 8, !tbaa !9
  %114 = load i32, ptr %22, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds { float, float }, ptr %76, i64 %115
  %117 = call i32 @nco_crcf_cexpf(ptr noundef %113, ptr noundef %116)
  %118 = load ptr, ptr %16, align 8, !tbaa !9
  %119 = call i32 @nco_crcf_step(ptr noundef %118)
  %120 = load float, ptr %26, align 4, !tbaa !11
  %121 = load i32, ptr %22, align 4, !tbaa !5
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds float, ptr %73, i64 %122
  store float %120, ptr %123, align 4, !tbaa !11
  %124 = load i32, ptr %22, align 4, !tbaa !5
  %125 = add i32 %124, 1
  store i32 %125, ptr %22, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %112
  %127 = load i32, ptr %24, align 4, !tbaa !5
  %128 = add i32 %127, 1
  store i32 %128, ptr %24, align 4, !tbaa !5
  br label %108, !llvm.loop !15

129:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %23, align 4, !tbaa !5
  %132 = add i32 %131, 1
  store i32 %132, ptr %23, align 4, !tbaa !5
  br label %83, !llvm.loop !16

133:                                              ; preds = %83
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %211, %133
  %135 = load i32, ptr %24, align 4, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !5
  %137 = icmp ult i32 %135, %136
  br i1 %137, label %138, label %214

138:                                              ; preds = %134
  %139 = load i32, ptr %24, align 4, !tbaa !5
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds { float, float }, ptr %76, i64 %140
  %142 = getelementptr inbounds { float, float }, ptr %141, i32 0, i32 0
  %143 = load float, ptr %142, align 8
  %144 = getelementptr inbounds { float, float }, ptr %141, i32 0, i32 1
  %145 = load float, ptr %144, align 4
  %146 = load float, ptr %7, align 4, !tbaa !11
  %147 = load i32, ptr %24, align 4, !tbaa !5
  %148 = uitofp i32 %147 to float
  %149 = load float, ptr %6, align 4, !tbaa !11
  %150 = call float @llvm.fmuladd.f32(float %146, float %148, float %149)
  %151 = fmul float 0.000000e+00, %150
  %152 = fmul float 1.000000e+00, %150
  %153 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 0
  %154 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 1
  store float %151, ptr %153, align 4
  store float %152, ptr %154, align 4
  %155 = load <2 x float>, ptr %27, align 4
  %156 = call <2 x float> @cexpf(<2 x float> noundef %155) #9
  store <2 x float> %156, ptr %28, align 4
  %157 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %158 = load float, ptr %157, align 4
  %159 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %160 = load float, ptr %159, align 4
  %161 = fmul float %143, %158
  %162 = fmul float %145, %160
  %163 = fmul float %143, %160
  %164 = fmul float %145, %158
  %165 = fsub float %161, %162
  %166 = fadd float %163, %164
  %167 = fcmp uno float %165, %165
  br i1 %167, label %168, label %176, !prof !17

168:                                              ; preds = %138
  %169 = fcmp uno float %166, %166
  br i1 %169, label %170, label %176, !prof !17

170:                                              ; preds = %168
  %171 = call <2 x float> @__mulsc3(float noundef %143, float noundef %145, float noundef %158, float noundef %160) #9
  store <2 x float> %171, ptr %29, align 4
  %172 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %173 = load float, ptr %172, align 4
  %174 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  %175 = load float, ptr %174, align 4
  br label %176

176:                                              ; preds = %170, %168, %138
  %177 = phi float [ %165, %138 ], [ %165, %168 ], [ %173, %170 ]
  %178 = phi float [ %166, %138 ], [ %166, %168 ], [ %175, %170 ]
  %179 = load i32, ptr %24, align 4, !tbaa !5
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds { float, float }, ptr %79, i64 %180
  %182 = getelementptr inbounds { float, float }, ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds { float, float }, ptr %181, i32 0, i32 1
  store float %177, ptr %182, align 8
  store float %178, ptr %183, align 4
  %184 = load float, ptr %15, align 4, !tbaa !11
  %185 = call float (...) @randnf()
  %186 = call float (...) @randnf()
  %187 = fmul float 0.000000e+00, %186
  %188 = fmul float 1.000000e+00, %186
  %189 = fadd float %185, %187
  %190 = fmul float %184, %189
  %191 = fmul float %184, %188
  %192 = fpext float %190 to double
  %193 = fpext float %191 to double
  %194 = fmul double %192, 0x3FE6A09E667F3BCD
  %195 = fmul double %193, 0x3FE6A09E667F3BCD
  %196 = load i32, ptr %24, align 4, !tbaa !5
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds { float, float }, ptr %79, i64 %197
  %199 = getelementptr inbounds { float, float }, ptr %198, i32 0, i32 0
  %200 = load float, ptr %199, align 8
  %201 = getelementptr inbounds { float, float }, ptr %198, i32 0, i32 1
  %202 = load float, ptr %201, align 4
  %203 = fpext float %200 to double
  %204 = fpext float %202 to double
  %205 = fadd double %203, %194
  %206 = fadd double %204, %195
  %207 = fptrunc double %205 to float
  %208 = fptrunc double %206 to float
  %209 = getelementptr inbounds { float, float }, ptr %198, i32 0, i32 0
  %210 = getelementptr inbounds { float, float }, ptr %198, i32 0, i32 1
  store float %207, ptr %209, align 8
  store float %208, ptr %210, align 4
  br label %211

211:                                              ; preds = %176
  %212 = load i32, ptr %24, align 4, !tbaa !5
  %213 = add i32 %212, 1
  store i32 %213, ptr %24, align 4, !tbaa !5
  br label %134, !llvm.loop !18

214:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %215 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %216 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  store float 0.000000e+00, ptr %215, align 4
  store float 0.000000e+00, ptr %216, align 4
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %274, %214
  %218 = load i32, ptr %24, align 4, !tbaa !5
  %219 = load i32, ptr %14, align 4, !tbaa !5
  %220 = icmp ult i32 %218, %219
  br i1 %220, label %221, label %277

221:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %222 = load i32, ptr %24, align 4, !tbaa !5
  %223 = zext i32 %222 to i64
  %224 = getelementptr inbounds { float, float }, ptr %79, i64 %223
  %225 = getelementptr inbounds { float, float }, ptr %224, i32 0, i32 0
  %226 = load float, ptr %225, align 8
  %227 = getelementptr inbounds { float, float }, ptr %224, i32 0, i32 1
  %228 = load float, ptr %227, align 4
  %229 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %230 = load float, ptr %229, align 4
  %231 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  %232 = load float, ptr %231, align 4
  %233 = fneg float %232
  %234 = fmul float %226, %230
  %235 = fmul float %228, %233
  %236 = fmul float %226, %233
  %237 = fmul float %228, %230
  %238 = fsub float %234, %235
  %239 = fadd float %236, %237
  %240 = fcmp uno float %238, %238
  br i1 %240, label %241, label %249, !prof !17

241:                                              ; preds = %221
  %242 = fcmp uno float %239, %239
  br i1 %242, label %243, label %249, !prof !17

243:                                              ; preds = %241
  %244 = call <2 x float> @__mulsc3(float noundef %226, float noundef %228, float noundef %230, float noundef %233) #9
  store <2 x float> %244, ptr %32, align 4
  %245 = getelementptr inbounds { float, float }, ptr %32, i32 0, i32 0
  %246 = load float, ptr %245, align 4
  %247 = getelementptr inbounds { float, float }, ptr %32, i32 0, i32 1
  %248 = load float, ptr %247, align 4
  br label %249

249:                                              ; preds = %243, %241, %221
  %250 = phi float [ %238, %221 ], [ %238, %241 ], [ %246, %243 ]
  %251 = phi float [ %239, %221 ], [ %239, %241 ], [ %248, %243 ]
  %252 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %253 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  store float %250, ptr %252, align 4
  store float %251, ptr %253, align 4
  %254 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %255 = load float, ptr %254, align 4
  %256 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  %257 = load float, ptr %256, align 4
  %258 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 0
  %259 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 1
  store float %255, ptr %258, align 4
  store float %257, ptr %259, align 4
  %260 = load <2 x float>, ptr %33, align 4
  %261 = call float @cargf(<2 x float> noundef %260) #9
  %262 = load i32, ptr %24, align 4, !tbaa !5
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds float, ptr %82, i64 %263
  store float %261, ptr %264, align 4, !tbaa !11
  %265 = load i32, ptr %24, align 4, !tbaa !5
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds { float, float }, ptr %79, i64 %266
  %268 = getelementptr inbounds { float, float }, ptr %267, i32 0, i32 0
  %269 = load float, ptr %268, align 8
  %270 = getelementptr inbounds { float, float }, ptr %267, i32 0, i32 1
  %271 = load float, ptr %270, align 4
  %272 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %273 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  store float %269, ptr %272, align 4
  store float %271, ptr %273, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %274

274:                                              ; preds = %249
  %275 = load i32, ptr %24, align 4, !tbaa !5
  %276 = add i32 %275, 1
  store i32 %276, ptr %24, align 4, !tbaa !5
  br label %217, !llvm.loop !19

277:                                              ; preds = %217
  %278 = load ptr, ptr %16, align 8, !tbaa !9
  %279 = call i32 @nco_crcf_destroy(ptr noundef %278)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %280 = call noalias ptr @fopen(ptr noundef @.str.7, ptr noundef @.str.8)
  store ptr %280, ptr %34, align 8, !tbaa !9
  %281 = load ptr, ptr %34, align 8, !tbaa !9
  %282 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %281, ptr noundef @.str.9, ptr noundef @.str.7) #9
  %283 = load ptr, ptr %34, align 8, !tbaa !9
  %284 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %283, ptr noundef @.str.10) #9
  %285 = load ptr, ptr %34, align 8, !tbaa !9
  %286 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %285, ptr noundef @.str.11) #9
  %287 = load ptr, ptr %34, align 8, !tbaa !9
  %288 = load i32, ptr %8, align 4, !tbaa !5
  %289 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %287, ptr noundef @.str.12, i32 noundef %288) #9
  %290 = load ptr, ptr %34, align 8, !tbaa !9
  %291 = load i32, ptr %12, align 4, !tbaa !5
  %292 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str.13, i32 noundef %291) #9
  %293 = load ptr, ptr %34, align 8, !tbaa !9
  %294 = load i32, ptr %13, align 4, !tbaa !5
  %295 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %293, ptr noundef @.str.14, i32 noundef %294) #9
  %296 = load ptr, ptr %34, align 8, !tbaa !9
  %297 = load i32, ptr %14, align 4, !tbaa !5
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %296, ptr noundef @.str.15, i32 noundef %297) #9
  %299 = load ptr, ptr %34, align 8, !tbaa !9
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %299, ptr noundef @.str.16) #9
  %301 = load ptr, ptr %34, align 8, !tbaa !9
  %302 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %301, ptr noundef @.str.17) #9
  %303 = load ptr, ptr %34, align 8, !tbaa !9
  %304 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef @.str.18) #9
  %305 = load ptr, ptr %34, align 8, !tbaa !9
  %306 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %305, ptr noundef @.str.19) #9
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %307

307:                                              ; preds = %370, %277
  %308 = load i32, ptr %24, align 4, !tbaa !5
  %309 = load i32, ptr %22, align 4, !tbaa !5
  %310 = icmp ult i32 %308, %309
  br i1 %310, label %311, label %373

311:                                              ; preds = %307
  %312 = load ptr, ptr %34, align 8, !tbaa !9
  %313 = load i32, ptr %24, align 4, !tbaa !5
  %314 = add i32 %313, 1
  %315 = load i32, ptr %24, align 4, !tbaa !5
  %316 = zext i32 %315 to i64
  %317 = getelementptr inbounds { float, float }, ptr %76, i64 %316
  %318 = getelementptr inbounds { float, float }, ptr %317, i32 0, i32 0
  %319 = load float, ptr %318, align 8
  %320 = getelementptr inbounds { float, float }, ptr %317, i32 0, i32 1
  %321 = load float, ptr %320, align 4
  %322 = fpext float %319 to double
  %323 = load i32, ptr %24, align 4, !tbaa !5
  %324 = zext i32 %323 to i64
  %325 = getelementptr inbounds { float, float }, ptr %76, i64 %324
  %326 = getelementptr inbounds { float, float }, ptr %325, i32 0, i32 0
  %327 = load float, ptr %326, align 8
  %328 = getelementptr inbounds { float, float }, ptr %325, i32 0, i32 1
  %329 = load float, ptr %328, align 4
  %330 = fpext float %329 to double
  %331 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %312, ptr noundef @.str.20, i32 noundef %314, double noundef %322, double noundef %330) #9
  %332 = load ptr, ptr %34, align 8, !tbaa !9
  %333 = load i32, ptr %24, align 4, !tbaa !5
  %334 = add i32 %333, 1
  %335 = load i32, ptr %24, align 4, !tbaa !5
  %336 = zext i32 %335 to i64
  %337 = getelementptr inbounds { float, float }, ptr %79, i64 %336
  %338 = getelementptr inbounds { float, float }, ptr %337, i32 0, i32 0
  %339 = load float, ptr %338, align 8
  %340 = getelementptr inbounds { float, float }, ptr %337, i32 0, i32 1
  %341 = load float, ptr %340, align 4
  %342 = fpext float %339 to double
  %343 = load i32, ptr %24, align 4, !tbaa !5
  %344 = zext i32 %343 to i64
  %345 = getelementptr inbounds { float, float }, ptr %79, i64 %344
  %346 = getelementptr inbounds { float, float }, ptr %345, i32 0, i32 0
  %347 = load float, ptr %346, align 8
  %348 = getelementptr inbounds { float, float }, ptr %345, i32 0, i32 1
  %349 = load float, ptr %348, align 4
  %350 = fpext float %349 to double
  %351 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %332, ptr noundef @.str.21, i32 noundef %334, double noundef %342, double noundef %350) #9
  %352 = load ptr, ptr %34, align 8, !tbaa !9
  %353 = load i32, ptr %24, align 4, !tbaa !5
  %354 = add i32 %353, 1
  %355 = load i32, ptr %24, align 4, !tbaa !5
  %356 = zext i32 %355 to i64
  %357 = getelementptr inbounds float, ptr %73, i64 %356
  %358 = load float, ptr %357, align 4, !tbaa !11
  %359 = fpext float %358 to double
  %360 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %352, ptr noundef @.str.22, i32 noundef %354, double noundef %359) #9
  %361 = load ptr, ptr %34, align 8, !tbaa !9
  %362 = load i32, ptr %24, align 4, !tbaa !5
  %363 = add i32 %362, 1
  %364 = load i32, ptr %24, align 4, !tbaa !5
  %365 = zext i32 %364 to i64
  %366 = getelementptr inbounds float, ptr %82, i64 %365
  %367 = load float, ptr %366, align 4, !tbaa !11
  %368 = fpext float %367 to double
  %369 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %361, ptr noundef @.str.23, i32 noundef %363, double noundef %368) #9
  br label %370

370:                                              ; preds = %311
  %371 = load i32, ptr %24, align 4, !tbaa !5
  %372 = add i32 %371, 1
  store i32 %372, ptr %24, align 4, !tbaa !5
  br label %307, !llvm.loop !20

373:                                              ; preds = %307
  %374 = load ptr, ptr %34, align 8, !tbaa !9
  %375 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %374, ptr noundef @.str.24) #9
  %376 = load ptr, ptr %34, align 8, !tbaa !9
  %377 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %376, ptr noundef @.str.25) #9
  %378 = load ptr, ptr %34, align 8, !tbaa !9
  %379 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %378, ptr noundef @.str.26) #9
  %380 = load ptr, ptr %34, align 8, !tbaa !9
  %381 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %380, ptr noundef @.str.27) #9
  %382 = load ptr, ptr %34, align 8, !tbaa !9
  %383 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %382, ptr noundef @.str.28) #9
  %384 = load ptr, ptr %34, align 8, !tbaa !9
  %385 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %384, ptr noundef @.str.29) #9
  %386 = load ptr, ptr %34, align 8, !tbaa !9
  %387 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %386, ptr noundef @.str.30) #9
  %388 = load ptr, ptr %34, align 8, !tbaa !9
  %389 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %388, ptr noundef @.str.31) #9
  %390 = load ptr, ptr %34, align 8, !tbaa !9
  %391 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %390, ptr noundef @.str.28) #9
  %392 = load ptr, ptr %34, align 8, !tbaa !9
  %393 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %392, ptr noundef @.str.32) #9
  %394 = load ptr, ptr %34, align 8, !tbaa !9
  %395 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %394, ptr noundef @.str.25) #9
  %396 = load ptr, ptr %34, align 8, !tbaa !9
  %397 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %396, ptr noundef @.str.33) #9
  %398 = load ptr, ptr %34, align 8, !tbaa !9
  %399 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %398, ptr noundef @.str.34) #9
  %400 = load ptr, ptr %34, align 8, !tbaa !9
  %401 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %400, ptr noundef @.str.35) #9
  %402 = load ptr, ptr %34, align 8, !tbaa !9
  %403 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %402, ptr noundef @.str.36) #9
  %404 = load ptr, ptr %34, align 8, !tbaa !9
  %405 = call i32 @fclose(ptr noundef %404)
  %406 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, ptr noundef @.str.7)
  %407 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  %408 = load ptr, ptr %17, align 8
  call void @llvm.stackrestore.p0(ptr %408)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %409

409:                                              ; preds = %373, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  %410 = load i32, ptr %3, align 4
  ret i32 %410
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

declare ptr @nco_crcf_create(i32 noundef) #1

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

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

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

declare i32 @nco_crcf_set_frequency(ptr noundef, float noundef) #1

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

declare i32 @nco_crcf_step(ptr noundef) #1

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

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

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

declare float @randnf(...) #1

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

declare i32 @nco_crcf_destroy(ptr noundef) #1

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

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

declare i32 @fclose(ptr noundef) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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 = !{!"branch_weights", i32 1, i32 1048575}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !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.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.38 = 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 {
  %3 = tail call i64 @time(ptr noundef null) #9
  %4 = trunc i64 %3 to i32
  tail call void @srand(i32 noundef %4) #9
  br label %.outer

.outer:                                           ; preds = %11, %2
  %.0108.ph = phi i32 [ %13, %11 ], [ 20, %2 ]
  %.0106.ph = phi i32 [ %.0106.fr.le233, %11 ], [ 2, %2 ]
  %.0104.ph = phi float [ %.0104.ph198, %11 ], [ 0x3FB99999A0000000, %2 ]
  %.0103.ph = phi float [ %.0103.ph202, %11 ], [ 0x3FE921FB60000000, %2 ]
  br label %.outer196

.outer196:                                        ; preds = %.outer, %18
  %.0106.ph197 = phi i32 [ %.0106.ph, %.outer ], [ %.0106.fr.le, %18 ]
  %.0104.ph198 = phi float [ %.0104.ph, %.outer ], [ %21, %18 ]
  %.0103.ph199 = phi float [ %.0103.ph, %.outer ], [ %.0103.ph202, %18 ]
  br label %.outer200

.outer200:                                        ; preds = %.outer196, %14
  %.0106.ph201 = phi i32 [ %.0106.ph197, %.outer196 ], [ %.0106.fr.le231, %14 ]
  %.0103.ph202 = phi float [ %.0103.ph199, %.outer196 ], [ %17, %14 ]
  br label %5

5:                                                ; preds = %.outer200, %8
  %.0106 = phi i32 [ %10, %8 ], [ %.0106.ph201, %.outer200 ]
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.6) #9
  switch i32 %6, label %22 [
    i32 -1, label %23
    i32 104, label %7
    i32 109, label %8
    i32 110, label %11
    i32 112, label %14
    i32 102, label %18
  ]

7:                                                ; preds = %5
  tail call void @usage()
  br label %184

8:                                                ; preds = %5
  %9 = load ptr, ptr @optarg, align 8, !tbaa !5
  %10 = tail call i32 @atoi(ptr nocapture noundef %9) #10
  br label %5, !llvm.loop !9

11:                                               ; preds = %5
  %.0106.fr.le233 = freeze i32 %.0106
  %12 = load ptr, ptr @optarg, align 8, !tbaa !5
  %13 = tail call i32 @atoi(ptr nocapture noundef %12) #10
  br label %.outer, !llvm.loop !9

14:                                               ; preds = %5
  %.0106.fr.le231 = freeze i32 %.0106
  %15 = load ptr, ptr @optarg, align 8, !tbaa !5
  %16 = tail call double @atof(ptr noundef %15) #10
  %17 = fptrunc double %16 to float
  br label %.outer200, !llvm.loop !9

18:                                               ; preds = %5
  %.0106.fr.le = freeze i32 %.0106
  %19 = load ptr, ptr @optarg, align 8, !tbaa !5
  %20 = tail call double @atof(ptr noundef %19) #10
  %21 = fptrunc double %20 to float
  br label %.outer196, !llvm.loop !9

22:                                               ; preds = %5
  tail call void @exit(i32 noundef 1) #11
  unreachable

23:                                               ; preds = %5
  %.0106.fr.le235 = freeze i32 %.0106
  %24 = shl nuw i32 1, %.0106.fr.le235
  %25 = shl i32 %.0106.fr.le235, 2
  %26 = mul i32 %25, %.0108.ph
  %27 = tail call ptr @nco_crcf_create(i32 noundef 1) #9
  %28 = zext i32 %26 to i64
  %29 = tail call ptr @llvm.stacksave.p0()
  %30 = alloca float, i64 %28, align 16
  %31 = alloca { float, float }, i64 %28, align 16
  %32 = alloca { float, float }, i64 %28, align 16
  %33 = alloca float, i64 %28, align 16
  %.not = icmp eq i32 %.0108.ph, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph130

.lr.ph130:                                        ; preds = %23
  %34 = add i32 %24, -1
  %35 = uitofp i32 %24 to float
  %36 = fneg float %35
  %37 = fpext float %35 to double
  %.not142 = icmp eq i32 %25, 0
  br i1 %.not142, label %.lr.ph130.split.preheader, label %.lr.ph.us

.lr.ph130.split.preheader:                        ; preds = %.lr.ph130
  %38 = fsub float 0.000000e+00, %35
  %39 = fadd float %38, 1.000000e+00
  %40 = fpext float %39 to double
  %41 = fmul double %40, 0x400921FB54442D18
  %42 = fdiv double %41, %37
  %43 = fptrunc double %42 to float
  br label %.lr.ph130.split

.lr.ph.us:                                        ; preds = %.lr.ph130, %._crit_edge.us
  %.0110128.us = phi i32 [ %54, %._crit_edge.us ], [ 0, %.lr.ph130 ]
  %.0112127.us = phi i32 [ %62, %._crit_edge.us ], [ 0, %.lr.ph130 ]
  %44 = call i32 @rand() #9
  %45 = and i32 %44, %34
  %46 = uitofp i32 %45 to float
  %47 = call float @llvm.fmuladd.f32(float %46, float 2.000000e+00, float %36)
  %48 = fadd float %47, 1.000000e+00
  %49 = fpext float %48 to double
  %50 = fmul double %49, 0x400921FB54442D18
  %51 = fdiv double %50, %37
  %52 = fptrunc double %51 to float
  %53 = call i32 @nco_crcf_set_frequency(ptr noundef %27, float noundef %52) #9
  %54 = add i32 %25, %.0110128.us
  br label %55

55:                                               ; preds = %.lr.ph.us, %55
  %.1111126.us = phi i32 [ %.0110128.us, %.lr.ph.us ], [ %61, %55 ]
  %56 = zext i32 %.1111126.us to i64
  %57 = getelementptr inbounds { float, float }, ptr %31, i64 %56
  %58 = call i32 @nco_crcf_cexpf(ptr noundef %27, ptr noundef nonnull %57) #9
  %59 = call i32 @nco_crcf_step(ptr noundef %27) #9
  %60 = getelementptr inbounds float, ptr %30, i64 %56
  store float %52, ptr %60, align 4, !tbaa !11
  %61 = add i32 %.1111126.us, 1
  %exitcond.not = icmp eq i32 %61, %54
  br i1 %exitcond.not, label %._crit_edge.us, label %55, !llvm.loop !13

._crit_edge.us:                                   ; preds = %55
  %62 = add nuw i32 %.0112127.us, 1
  %exitcond155.not = icmp eq i32 %62, %.0108.ph
  br i1 %exitcond155.not, label %.preheader116, label %.lr.ph.us, !llvm.loop !14

.preheader116:                                    ; preds = %._crit_edge.us, %.lr.ph130.split
  %.0110.lcssa = phi i32 [ 0, %.lr.ph130.split ], [ %54, %._crit_edge.us ]
  %.not143 = icmp eq i32 %26, 0
  br i1 %.not143, label %._crit_edge, label %.lr.ph

.lr.ph130.split:                                  ; preds = %.lr.ph130.split.preheader, %.lr.ph130.split
  %.0112127 = phi i32 [ %65, %.lr.ph130.split ], [ 0, %.lr.ph130.split.preheader ]
  %63 = tail call i32 @rand() #9
  %64 = tail call i32 @nco_crcf_set_frequency(ptr noundef %27, float noundef %43) #9
  %65 = add nuw i32 %.0112127, 1
  %exitcond156.not = icmp eq i32 %65, %.0108.ph
  br i1 %exitcond156.not, label %.preheader116, label %.lr.ph130.split, !llvm.loop !14

.preheader:                                       ; preds = %94
  br i1 %.not143, label %._crit_edge, label %.lr.ph136

.lr.ph:                                           ; preds = %.preheader116, %94
  %indvars.iv = phi i64 [ %indvars.iv.next, %94 ], [ 0, %.preheader116 ]
  %66 = getelementptr inbounds { float, float }, ptr %31, i64 %indvars.iv
  %67 = load float, ptr %66, align 8
  %68 = getelementptr inbounds i8, ptr %66, i64 4
  %69 = load float, ptr %68, align 4
  %70 = trunc nuw i64 %indvars.iv to i32
  %71 = uitofp i32 %70 to float
  %72 = call float @llvm.fmuladd.f32(float %.0104.ph198, float %71, float %.0103.ph202)
  %73 = fmul float %72, 0.000000e+00
  %.sroa.037.0.vec.insert = insertelement <2 x float> poison, float %73, i64 0
  %.sroa.037.4.vec.insert = insertelement <2 x float> %.sroa.037.0.vec.insert, float %72, i64 1
  %74 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.037.4.vec.insert) #9
  %75 = insertelement <2 x float> poison, float %67, i64 0
  %76 = shufflevector <2 x float> %75, <2 x float> poison, <2 x i32> zeroinitializer
  %77 = fmul <2 x float> %76, %74
  %78 = insertelement <2 x float> poison, float %69, i64 0
  %79 = shufflevector <2 x float> %78, <2 x float> poison, <2 x i32> zeroinitializer
  %80 = fmul <2 x float> %79, %74
  %81 = shufflevector <2 x float> %80, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %82 = fsub <2 x float> %77, %81
  %83 = fadd <2 x float> %77, %81
  %84 = shufflevector <2 x float> %82, <2 x float> %83, <2 x i32> <i32 0, i32 3>
  %85 = extractelement <2 x float> %82, i64 0
  %86 = fcmp uno float %85, 0.000000e+00
  br i1 %86, label %87, label %94, !prof !15

87:                                               ; preds = %.lr.ph
  %88 = extractelement <2 x float> %83, i64 1
  %89 = fcmp uno float %88, 0.000000e+00
  br i1 %89, label %90, label %94, !prof !15

90:                                               ; preds = %87
  %91 = extractelement <2 x float> %74, i64 0
  %92 = extractelement <2 x float> %74, i64 1
  %93 = call <2 x float> @__mulsc3(float noundef %67, float noundef %69, float noundef %91, float noundef %92) #9
  br label %94

94:                                               ; preds = %90, %87, %.lr.ph
  %95 = phi <2 x float> [ %84, %.lr.ph ], [ %84, %87 ], [ %93, %90 ]
  %96 = getelementptr inbounds { float, float }, ptr %32, i64 %indvars.iv
  %97 = call float (...) @randnf() #9
  %98 = call float (...) @randnf() #9
  %99 = fmul float %98, 0.000000e+00
  %100 = fadd float %97, %99
  %101 = fpext <2 x float> %95 to <2 x double>
  %102 = insertelement <2 x float> poison, float %100, i64 0
  %103 = insertelement <2 x float> %102, float %98, i64 1
  %104 = fmul <2 x float> %103, <float 0x3FB99999A0000000, float 0x3FB99999A0000000>
  %105 = fpext <2 x float> %104 to <2 x double>
  %106 = fmul <2 x double> %105, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %107 = fadd <2 x double> %106, %101
  %108 = fptrunc <2 x double> %107 to <2 x float>
  store <2 x float> %108, ptr %96, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond158.not = icmp eq i64 %indvars.iv.next, %28
  br i1 %exitcond158.not, label %.preheader, label %.lr.ph, !llvm.loop !16

.lr.ph136:                                        ; preds = %.preheader, %125
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %125 ], [ 0, %.preheader ]
  %.sroa.034.0135 = phi float [ %110, %125 ], [ 0.000000e+00, %.preheader ]
  %.sroa.5.0134 = phi float [ %112, %125 ], [ 0.000000e+00, %.preheader ]
  %109 = getelementptr inbounds { float, float }, ptr %32, i64 %indvars.iv159
  %110 = load float, ptr %109, align 8
  %111 = getelementptr inbounds i8, ptr %109, i64 4
  %112 = load float, ptr %111, align 4
  %113 = fneg float %.sroa.5.0134
  %114 = fmul float %.sroa.034.0135, %110
  %115 = fmul float %.sroa.034.0135, %112
  %116 = fmul float %.sroa.5.0134, %112
  %117 = fadd float %114, %116
  %118 = fmul float %.sroa.5.0134, %110
  %119 = fsub float %115, %118
  %120 = fcmp uno float %117, 0.000000e+00
  br i1 %120, label %121, label %125, !prof !15

121:                                              ; preds = %.lr.ph136
  %122 = fcmp uno float %119, 0.000000e+00
  br i1 %122, label %123, label %125, !prof !15

123:                                              ; preds = %121
  %124 = call <2 x float> @__mulsc3(float noundef %110, float noundef %112, float noundef %.sroa.034.0135, float noundef %113) #9
  %.sroa.032.0.vec.extract = extractelement <2 x float> %124, i64 0
  %.sroa.032.4.vec.extract = extractelement <2 x float> %124, i64 1
  br label %125

125:                                              ; preds = %123, %121, %.lr.ph136
  %126 = phi float [ %117, %.lr.ph136 ], [ %117, %121 ], [ %.sroa.032.0.vec.extract, %123 ]
  %127 = phi float [ %119, %.lr.ph136 ], [ %119, %121 ], [ %.sroa.032.4.vec.extract, %123 ]
  %.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %126, i64 0
  %.sroa.0.4.vec.insert = insertelement <2 x float> %.sroa.0.0.vec.insert, float %127, i64 1
  %128 = call float @cargf(<2 x float> noundef %.sroa.0.4.vec.insert) #9
  %129 = getelementptr inbounds float, ptr %33, i64 %indvars.iv159
  store float %128, ptr %129, align 4, !tbaa !11
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next160, %28
  br i1 %exitcond163.not, label %._crit_edge, label %.lr.ph136, !llvm.loop !17

._crit_edge:                                      ; preds = %125, %.preheader116, %23, %.preheader
  %.0110.lcssa171175 = phi i32 [ %.0110.lcssa, %.preheader ], [ 0, %23 ], [ %.0110.lcssa, %.preheader116 ], [ %.0110.lcssa, %125 ]
  %130 = call i32 @nco_crcf_destroy(ptr noundef %27) #9
  %131 = call noalias ptr @fopen(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8)
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.7) #9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.10) #9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.11) #9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.12, i32 noundef %.0106.fr.le235) #9
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.13, i32 noundef %24) #9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.14, i32 noundef %25) #9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.15, i32 noundef %26) #9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.16) #9
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.17) #9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.18) #9
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.19) #9
  %.not145 = icmp eq i32 %.0110.lcssa171175, 0
  br i1 %.not145, label %._crit_edge140, label %.lr.ph139.preheader

.lr.ph139.preheader:                              ; preds = %._crit_edge
  %wide.trip.count167 = zext i32 %.0110.lcssa171175 to i64
  br label %.lr.ph139

.lr.ph139:                                        ; preds = %.lr.ph139.preheader, %.lr.ph139
  %indvars.iv164 = phi i64 [ 0, %.lr.ph139.preheader ], [ %indvars.iv.next165, %.lr.ph139 ]
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %143 = getelementptr inbounds { float, float }, ptr %31, i64 %indvars.iv164
  %144 = load float, ptr %143, align 8
  %145 = getelementptr inbounds i8, ptr %143, i64 4
  %146 = fpext float %144 to double
  %147 = load float, ptr %145, align 4
  %148 = fpext float %147 to double
  %149 = trunc nuw i64 %indvars.iv.next165 to i32
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.20, i32 noundef %149, double noundef %146, double noundef %148) #9
  %151 = getelementptr inbounds { float, float }, ptr %32, i64 %indvars.iv164
  %152 = load float, ptr %151, align 8
  %153 = getelementptr inbounds i8, ptr %151, i64 4
  %154 = fpext float %152 to double
  %155 = load float, ptr %153, align 4
  %156 = fpext float %155 to double
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.21, i32 noundef %149, double noundef %154, double noundef %156) #9
  %158 = getelementptr inbounds float, ptr %30, i64 %indvars.iv164
  %159 = load float, ptr %158, align 4, !tbaa !11
  %160 = fpext float %159 to double
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.22, i32 noundef %149, double noundef %160) #9
  %162 = getelementptr inbounds float, ptr %33, i64 %indvars.iv164
  %163 = load float, ptr %162, align 4, !tbaa !11
  %164 = fpext float %163 to double
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.23, i32 noundef %149, double noundef %164) #9
  %exitcond168.not = icmp eq i64 %indvars.iv.next165, %wide.trip.count167
  br i1 %exitcond168.not, label %._crit_edge140, label %.lr.ph139, !llvm.loop !18

._crit_edge140:                                   ; preds = %.lr.ph139, %._crit_edge
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.24) #9
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.25) #9
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.26) #9
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.27) #9
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.28) #9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.29) #9
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.30) #9
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.31) #9
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.28) #9
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.32) #9
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.25) #9
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.33) #9
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.34) #9
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.35) #9
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.36) #9
  %181 = call i32 @fclose(ptr noundef %131)
  %182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef nonnull @.str.7)
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38)
  call void @llvm.stackrestore.p0(ptr %29)
  br label %184

184:                                              ; preds = %._crit_edge140, %7
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3

; 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 i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

declare ptr @nco_crcf_create(i32 noundef) local_unnamed_addr #6

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

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

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

declare i32 @nco_crcf_set_frequency(ptr noundef, float noundef) local_unnamed_addr #6

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

declare i32 @nco_crcf_step(ptr noundef) local_unnamed_addr #6

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

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

declare float @randnf(...) local_unnamed_addr #6

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

declare i32 @nco_crcf_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) #7

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 nocallback nofree nosync nounwind willreturn }
attributes #8 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass