; LLVM IR from jgaeddert/liquid-dsp :: examples (gmskmodem_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 [13 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [25 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 float, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca { float, float }, align 4
  %27 = alloca { float, float }, align 4
  %28 = alloca { float, float }, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i64, 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) #9
  store i32 4, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 3, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store float 0x3FD3333340000000, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 200, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store float 3.000000e+01, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store float 0.000000e+00, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store float 0.000000e+00, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  br label %33

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

38:                                               ; preds = %33
  %39 = load i32, ptr %13, align 4, !tbaa !5
  switch i32 %39, label %58 [
    i32 117, label %40
    i32 104, label %40
    i32 107, label %41
    i32 109, label %44
    i32 110, label %47
    i32 98, label %50
    i32 115, label %54
  ]

40:                                               ; preds = %38, %38
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %406

41:                                               ; preds = %38
  %42 = load ptr, ptr @optarg, align 8, !tbaa !9
  %43 = call i32 @atoi(ptr noundef %42) #10
  store i32 %43, ptr %6, align 4, !tbaa !5
  br label %59

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

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

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

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

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

59:                                               ; preds = %54, %50, %47, %44, %41
  br label %33, !llvm.loop !13

60:                                               ; preds = %33
  %61 = load float, ptr %8, align 4, !tbaa !11
  %62 = fcmp ole float %61, 0.000000e+00
  br i1 %62, label %66, label %63

63:                                               ; preds = %60
  %64 = load float, ptr %8, align 4, !tbaa !11
  %65 = fcmp oge float %64, 1.000000e+00
  br i1 %65, label %66, label %72

66:                                               ; preds = %63, %60
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %68, i64 0
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.9, ptr noundef %70) #9
  call void @exit(i32 noundef 1) #11
  unreachable

72:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = mul i32 2, %74
  %76 = add i32 %73, %75
  store i32 %76, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = load i32, ptr %15, align 4, !tbaa !5
  %79 = mul i32 %77, %78
  store i32 %79, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %80 = load float, ptr %10, align 4, !tbaa !11
  %81 = fneg float %80
  %82 = fdiv float %81, 2.000000e+01
  %83 = call float @powf(float noundef 1.000000e+01, float noundef %82) #9
  store float %83, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = load float, ptr %8, align 4, !tbaa !11
  %87 = call ptr @gmskmod_create(i32 noundef %84, i32 noundef %85, float noundef %86)
  store ptr %87, ptr %18, align 8, !tbaa !9
  %88 = load ptr, ptr %18, align 8, !tbaa !9
  %89 = call i32 @gmskmod_print(ptr noundef %88)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = load float, ptr %8, align 4, !tbaa !11
  %93 = call ptr @gmskdem_create(i32 noundef %90, i32 noundef %91, float noundef %92)
  store ptr %93, ptr %19, align 8, !tbaa !9
  %94 = load ptr, ptr %19, align 8, !tbaa !9
  %95 = call i32 @gmskdem_set_eq_bw(ptr noundef %94, float noundef 0x3F847AE140000000)
  %96 = load ptr, ptr %19, align 8, !tbaa !9
  %97 = call i32 @gmskdem_print(ptr noundef %96)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %98 = load i32, ptr %15, align 4, !tbaa !5
  %99 = zext i32 %98 to i64
  %100 = call ptr @llvm.stacksave.p0()
  store ptr %100, ptr %21, align 8
  %101 = alloca i32, i64 %99, align 16
  store i64 %99, ptr %22, align 8
  %102 = load i32, ptr %16, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = alloca { float, float }, i64 %103, align 16
  store i64 %103, ptr %23, align 8
  %105 = load i32, ptr %16, align 4, !tbaa !5
  %106 = zext i32 %105 to i64
  %107 = alloca { float, float }, i64 %106, align 16
  store i64 %106, ptr %24, align 8
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = zext i32 %108 to i64
  %110 = alloca i32, i64 %109, align 16
  store i64 %109, ptr %25, align 8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %121, %72
  %112 = load i32, ptr %20, align 4, !tbaa !5
  %113 = load i32, ptr %15, align 4, !tbaa !5
  %114 = icmp ult i32 %112, %113
  br i1 %114, label %115, label %124

115:                                              ; preds = %111
  %116 = call i32 @rand() #9
  %117 = srem i32 %116, 2
  %118 = load i32, ptr %20, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %101, i64 %119
  store i32 %117, ptr %120, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %115
  %122 = load i32, ptr %20, align 4, !tbaa !5
  %123 = add i32 %122, 1
  store i32 %123, ptr %20, align 4, !tbaa !5
  br label %111, !llvm.loop !15

124:                                              ; preds = %111
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %141, %124
  %126 = load i32, ptr %20, align 4, !tbaa !5
  %127 = load i32, ptr %15, align 4, !tbaa !5
  %128 = icmp ult i32 %126, %127
  br i1 %128, label %129, label %144

129:                                              ; preds = %125
  %130 = load ptr, ptr %18, align 8, !tbaa !9
  %131 = load i32, ptr %20, align 4, !tbaa !5
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %101, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = load i32, ptr %6, align 4, !tbaa !5
  %136 = load i32, ptr %20, align 4, !tbaa !5
  %137 = mul i32 %135, %136
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds { float, float }, ptr %104, i64 %138
  %140 = call i32 @gmskmod_modulate(ptr noundef %130, i32 noundef %134, ptr noundef %139)
  br label %141

141:                                              ; preds = %129
  %142 = load i32, ptr %20, align 4, !tbaa !5
  %143 = add i32 %142, 1
  store i32 %143, ptr %20, align 4, !tbaa !5
  br label %125, !llvm.loop !16

144:                                              ; preds = %125
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %222, %144
  %146 = load i32, ptr %20, align 4, !tbaa !5
  %147 = load i32, ptr %16, align 4, !tbaa !5
  %148 = icmp ult i32 %146, %147
  br i1 %148, label %149, label %225

149:                                              ; preds = %145
  %150 = load i32, ptr %20, align 4, !tbaa !5
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds { float, float }, ptr %104, i64 %151
  %153 = getelementptr inbounds { float, float }, ptr %152, i32 0, i32 0
  %154 = load float, ptr %153, align 8
  %155 = getelementptr inbounds { float, float }, ptr %152, i32 0, i32 1
  %156 = load float, ptr %155, align 4
  %157 = load float, ptr %11, align 4, !tbaa !11
  %158 = load i32, ptr %20, align 4, !tbaa !5
  %159 = uitofp i32 %158 to float
  %160 = load float, ptr %12, align 4, !tbaa !11
  %161 = call float @llvm.fmuladd.f32(float %159, float %160, float %157)
  %162 = fmul float 0.000000e+00, %161
  %163 = fmul float 1.000000e+00, %161
  %164 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %165 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  store float %162, ptr %164, align 4
  store float %163, ptr %165, align 4
  %166 = load <2 x float>, ptr %26, align 4
  %167 = call <2 x float> @cexpf(<2 x float> noundef %166) #9
  store <2 x float> %167, ptr %27, align 4
  %168 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 0
  %169 = load float, ptr %168, align 4
  %170 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 1
  %171 = load float, ptr %170, align 4
  %172 = fmul float %154, %169
  %173 = fmul float %156, %171
  %174 = fmul float %154, %171
  %175 = fmul float %156, %169
  %176 = fsub float %172, %173
  %177 = fadd float %174, %175
  %178 = fcmp uno float %176, %176
  br i1 %178, label %179, label %187, !prof !17

179:                                              ; preds = %149
  %180 = fcmp uno float %177, %177
  br i1 %180, label %181, label %187, !prof !17

181:                                              ; preds = %179
  %182 = call <2 x float> @__mulsc3(float noundef %154, float noundef %156, float noundef %169, float noundef %171) #9
  store <2 x float> %182, ptr %28, align 4
  %183 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %184 = load float, ptr %183, align 4
  %185 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %186 = load float, ptr %185, align 4
  br label %187

187:                                              ; preds = %181, %179, %149
  %188 = phi float [ %176, %149 ], [ %176, %179 ], [ %184, %181 ]
  %189 = phi float [ %177, %149 ], [ %177, %179 ], [ %186, %181 ]
  %190 = load i32, ptr %20, align 4, !tbaa !5
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds { float, float }, ptr %107, i64 %191
  %193 = getelementptr inbounds { float, float }, ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds { float, float }, ptr %192, i32 0, i32 1
  store float %188, ptr %193, align 8
  store float %189, ptr %194, align 4
  %195 = load float, ptr %17, align 4, !tbaa !11
  %196 = call float (...) @randnf()
  %197 = call float (...) @randnf()
  %198 = fmul float 0.000000e+00, %197
  %199 = fmul float 1.000000e+00, %197
  %200 = fadd float %196, %198
  %201 = fmul float %195, %200
  %202 = fmul float %195, %199
  %203 = fpext float %201 to double
  %204 = fpext float %202 to double
  %205 = fmul double %203, 0x3FE6A09E667F3BCD
  %206 = fmul double %204, 0x3FE6A09E667F3BCD
  %207 = load i32, ptr %20, align 4, !tbaa !5
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds { float, float }, ptr %107, i64 %208
  %210 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 0
  %211 = load float, ptr %210, align 8
  %212 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 1
  %213 = load float, ptr %212, align 4
  %214 = fpext float %211 to double
  %215 = fpext float %213 to double
  %216 = fadd double %214, %205
  %217 = fadd double %215, %206
  %218 = fptrunc double %216 to float
  %219 = fptrunc double %217 to float
  %220 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 0
  %221 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 1
  store float %218, ptr %220, align 8
  store float %219, ptr %221, align 4
  br label %222

222:                                              ; preds = %187
  %223 = load i32, ptr %20, align 4, !tbaa !5
  %224 = add i32 %223, 1
  store i32 %224, ptr %20, align 4, !tbaa !5
  br label %145, !llvm.loop !18

225:                                              ; preds = %145
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %226

226:                                              ; preds = %241, %225
  %227 = load i32, ptr %20, align 4, !tbaa !5
  %228 = load i32, ptr %15, align 4, !tbaa !5
  %229 = icmp ult i32 %227, %228
  br i1 %229, label %230, label %244

230:                                              ; preds = %226
  %231 = load ptr, ptr %19, align 8, !tbaa !9
  %232 = load i32, ptr %6, align 4, !tbaa !5
  %233 = load i32, ptr %20, align 4, !tbaa !5
  %234 = mul i32 %232, %233
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds { float, float }, ptr %107, i64 %235
  %237 = load i32, ptr %20, align 4, !tbaa !5
  %238 = zext i32 %237 to i64
  %239 = getelementptr inbounds i32, ptr %110, i64 %238
  %240 = call i32 @gmskdem_demodulate(ptr noundef %231, ptr noundef %236, ptr noundef %239)
  br label %241

241:                                              ; preds = %230
  %242 = load i32, ptr %20, align 4, !tbaa !5
  %243 = add i32 %242, 1
  store i32 %243, ptr %20, align 4, !tbaa !5
  br label %226, !llvm.loop !19

244:                                              ; preds = %226
  %245 = load ptr, ptr %18, align 8, !tbaa !9
  %246 = call i32 @gmskmod_destroy(ptr noundef %245)
  %247 = load ptr, ptr %19, align 8, !tbaa !9
  %248 = call i32 @gmskdem_destroy(ptr noundef %247)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  %249 = load i32, ptr %7, align 4, !tbaa !5
  %250 = mul i32 2, %249
  store i32 %250, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 0, ptr %30, align 4, !tbaa !5
  %251 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %251, ptr %20, align 4, !tbaa !5
  br label %252

252:                                              ; preds = %272, %244
  %253 = load i32, ptr %20, align 4, !tbaa !5
  %254 = load i32, ptr %15, align 4, !tbaa !5
  %255 = icmp ult i32 %253, %254
  br i1 %255, label %256, label %275

256:                                              ; preds = %252
  %257 = load i32, ptr %20, align 4, !tbaa !5
  %258 = load i32, ptr %29, align 4, !tbaa !5
  %259 = sub i32 %257, %258
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds i32, ptr %101, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = load i32, ptr %20, align 4, !tbaa !5
  %264 = zext i32 %263 to i64
  %265 = getelementptr inbounds i32, ptr %110, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = icmp eq i32 %262, %266
  %268 = zext i1 %267 to i64
  %269 = select i1 %267, i32 0, i32 1
  %270 = load i32, ptr %30, align 4, !tbaa !5
  %271 = add i32 %270, %269
  store i32 %271, ptr %30, align 4, !tbaa !5
  br label %272

272:                                              ; preds = %256
  %273 = load i32, ptr %20, align 4, !tbaa !5
  %274 = add i32 %273, 1
  store i32 %274, ptr %20, align 4, !tbaa !5
  br label %252, !llvm.loop !20

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

306:                                              ; preds = %351, %275
  %307 = load i32, ptr %20, align 4, !tbaa !5
  %308 = load i32, ptr %16, align 4, !tbaa !5
  %309 = icmp ult i32 %307, %308
  br i1 %309, label %310, label %354

310:                                              ; preds = %306
  %311 = load ptr, ptr %31, align 8, !tbaa !9
  %312 = load i32, ptr %20, align 4, !tbaa !5
  %313 = add i32 %312, 1
  %314 = load i32, ptr %20, align 4, !tbaa !5
  %315 = zext i32 %314 to i64
  %316 = getelementptr inbounds { float, float }, ptr %104, i64 %315
  %317 = getelementptr inbounds { float, float }, ptr %316, i32 0, i32 0
  %318 = load float, ptr %317, align 8
  %319 = getelementptr inbounds { float, float }, ptr %316, i32 0, i32 1
  %320 = load float, ptr %319, align 4
  %321 = fpext float %318 to double
  %322 = load i32, ptr %20, align 4, !tbaa !5
  %323 = zext i32 %322 to i64
  %324 = getelementptr inbounds { float, float }, ptr %104, i64 %323
  %325 = getelementptr inbounds { float, float }, ptr %324, i32 0, i32 0
  %326 = load float, ptr %325, align 8
  %327 = getelementptr inbounds { float, float }, ptr %324, i32 0, i32 1
  %328 = load float, ptr %327, align 4
  %329 = fpext float %328 to double
  %330 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %311, ptr noundef @.str.23, i32 noundef %313, double noundef %321, double noundef %329) #9
  %331 = load ptr, ptr %31, align 8, !tbaa !9
  %332 = load i32, ptr %20, align 4, !tbaa !5
  %333 = add i32 %332, 1
  %334 = load i32, ptr %20, align 4, !tbaa !5
  %335 = zext i32 %334 to i64
  %336 = getelementptr inbounds { float, float }, ptr %107, i64 %335
  %337 = getelementptr inbounds { float, float }, ptr %336, i32 0, i32 0
  %338 = load float, ptr %337, align 8
  %339 = getelementptr inbounds { float, float }, ptr %336, i32 0, i32 1
  %340 = load float, ptr %339, align 4
  %341 = fpext float %338 to double
  %342 = load i32, ptr %20, align 4, !tbaa !5
  %343 = zext i32 %342 to i64
  %344 = getelementptr inbounds { float, float }, ptr %107, i64 %343
  %345 = getelementptr inbounds { float, float }, ptr %344, i32 0, i32 0
  %346 = load float, ptr %345, align 8
  %347 = getelementptr inbounds { float, float }, ptr %344, i32 0, i32 1
  %348 = load float, ptr %347, align 4
  %349 = fpext float %348 to double
  %350 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef @.str.24, i32 noundef %333, double noundef %341, double noundef %349) #9
  br label %351

351:                                              ; preds = %310
  %352 = load i32, ptr %20, align 4, !tbaa !5
  %353 = add i32 %352, 1
  store i32 %353, ptr %20, align 4, !tbaa !5
  br label %306, !llvm.loop !21

354:                                              ; preds = %306
  %355 = load ptr, ptr %31, align 8, !tbaa !9
  %356 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %355, ptr noundef @.str.25) #9
  %357 = load ptr, ptr %31, align 8, !tbaa !9
  %358 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %357, ptr noundef @.str.26) #9
  %359 = load ptr, ptr %31, align 8, !tbaa !9
  %360 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %359, ptr noundef @.str.27) #9
  %361 = load i32, ptr %6, align 4, !tbaa !5
  %362 = mul i32 2, %361
  %363 = load i32, ptr %7, align 4, !tbaa !5
  %364 = mul i32 %362, %363
  %365 = add i32 %364, 1
  %366 = zext i32 %365 to i64
  %367 = alloca float, i64 %366, align 16
  store i64 %366, ptr %32, align 8
  %368 = load i32, ptr %6, align 4, !tbaa !5
  %369 = load i32, ptr %7, align 4, !tbaa !5
  %370 = load float, ptr %8, align 4, !tbaa !11
  %371 = call i32 @liquid_firdes_gmskrx(i32 noundef %368, i32 noundef %369, float noundef %370, float noundef 0.000000e+00, ptr noundef %367)
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %372

372:                                              ; preds = %390, %354
  %373 = load i32, ptr %20, align 4, !tbaa !5
  %374 = load i32, ptr %6, align 4, !tbaa !5
  %375 = mul i32 2, %374
  %376 = load i32, ptr %7, align 4, !tbaa !5
  %377 = mul i32 %375, %376
  %378 = add i32 %377, 1
  %379 = icmp ult i32 %373, %378
  br i1 %379, label %380, label %393

380:                                              ; preds = %372
  %381 = load ptr, ptr %31, align 8, !tbaa !9
  %382 = load i32, ptr %20, align 4, !tbaa !5
  %383 = add i32 %382, 1
  %384 = load i32, ptr %20, align 4, !tbaa !5
  %385 = zext i32 %384 to i64
  %386 = getelementptr inbounds float, ptr %367, i64 %385
  %387 = load float, ptr %386, align 4, !tbaa !11
  %388 = fpext float %387 to double
  %389 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %381, ptr noundef @.str.28, i32 noundef %383, double noundef %388) #9
  br label %390

390:                                              ; preds = %380
  %391 = load i32, ptr %20, align 4, !tbaa !5
  %392 = add i32 %391, 1
  store i32 %392, ptr %20, align 4, !tbaa !5
  br label %372, !llvm.loop !22

393:                                              ; preds = %372
  %394 = load ptr, ptr %31, align 8, !tbaa !9
  %395 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %394, ptr noundef @.str.29) #9
  %396 = load ptr, ptr %31, align 8, !tbaa !9
  %397 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %396, ptr noundef @.str.26) #9
  %398 = load ptr, ptr %31, align 8, !tbaa !9
  %399 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %398, ptr noundef @.str.30) #9
  %400 = load ptr, ptr %31, align 8, !tbaa !9
  %401 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %400, ptr noundef @.str.31) #9
  %402 = load ptr, ptr %31, align 8, !tbaa !9
  %403 = call i32 @fclose(ptr noundef %402)
  %404 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef @.str.11)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  %405 = load ptr, ptr %21, align 8
  call void @llvm.stackrestore.p0(ptr %405)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %406

406:                                              ; preds = %393, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  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
  %407 = load i32, ptr %3, align 4
  ret i32 %407
}

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

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

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

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

declare i32 @gmskmod_print(ptr noundef) #1

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

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

declare i32 @gmskdem_print(ptr noundef) #1

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

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

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

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

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

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

declare float @randnf(...) #1

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

declare i32 @gmskmod_destroy(ptr noundef) #1

declare i32 @gmskdem_destroy(ptr noundef) #1

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

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

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) #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 = { 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 = { 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}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !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 [13 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [25 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 = %19, %2
  %.0124.ph = phi float [ %22, %19 ], [ 3.000000e+01, %2 ]
  %.0122.ph = phi i32 [ %.0122.ph237, %19 ], [ 200, %2 ]
  %.0120.ph = phi float [ %.0120.ph242, %19 ], [ 0x3FD3333340000000, %2 ]
  %.0118.ph = phi i32 [ %.0118.ph246, %19 ], [ 3, %2 ]
  %.0116.ph = phi i32 [ %.0116, %19 ], [ 4, %2 ]
  br label %.outer236

.outer236:                                        ; preds = %.outer, %12
  %.0122.ph237 = phi i32 [ %.0122.ph, %.outer ], [ %14, %12 ]
  %.0120.ph238 = phi float [ %.0120.ph, %.outer ], [ %.0120.ph242, %12 ]
  %.0118.ph239 = phi i32 [ %.0118.ph, %.outer ], [ %.0118.ph246, %12 ]
  %.0116.ph240 = phi i32 [ %.0116.ph, %.outer ], [ %.0116, %12 ]
  br label %.outer241

.outer241:                                        ; preds = %.outer236, %15
  %.0120.ph242 = phi float [ %.0120.ph238, %.outer236 ], [ %18, %15 ]
  %.0118.ph243 = phi i32 [ %.0118.ph239, %.outer236 ], [ %.0118.ph246, %15 ]
  %.0116.ph244 = phi i32 [ %.0116.ph240, %.outer236 ], [ %.0116, %15 ]
  br label %.outer245

.outer245:                                        ; preds = %.outer241, %9
  %.0118.ph246 = phi i32 [ %.0118.ph243, %.outer241 ], [ %11, %9 ]
  %.0116.ph247 = phi i32 [ %.0116.ph244, %.outer241 ], [ %.0116, %9 ]
  br label %3

3:                                                ; preds = %.outer245, %6
  %.0116 = phi i32 [ %8, %6 ], [ %.0116.ph247, %.outer245 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8) #10
  switch i32 %4, label %23 [
    i32 -1, label %24
    i32 117, label %5
    i32 104, label %5
    i32 107, label %6
    i32 109, label %9
    i32 110, label %12
    i32 98, label %15
    i32 115, label %19
  ]

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

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

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

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

15:                                               ; preds = %3
  %16 = load ptr, ptr @optarg, align 8, !tbaa !5
  %17 = tail call double @atof(ptr noundef %16) #11
  %18 = fptrunc double %17 to float
  br label %.outer241, !llvm.loop !9

19:                                               ; preds = %3
  %20 = load ptr, ptr @optarg, align 8, !tbaa !5
  %21 = tail call double @atof(ptr noundef %20) #11
  %22 = fptrunc double %21 to float
  br label %.outer, !llvm.loop !9

23:                                               ; preds = %3
  tail call void @exit(i32 noundef 1) #12
  unreachable

24:                                               ; preds = %3
  %25 = fcmp ole float %.0120.ph242, 0.000000e+00
  %26 = fcmp oge float %.0120.ph242, 1.000000e+00
  %or.cond = or i1 %25, %26
  br i1 %or.cond, label %27, label %31

27:                                               ; preds = %24
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = load ptr, ptr %1, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.9, ptr noundef %29) #13
  tail call void @exit(i32 noundef 1) #12
  unreachable

31:                                               ; preds = %24
  %32 = shl i32 %.0118.ph246, 1
  %33 = add i32 %32, %.0122.ph237
  %34 = mul i32 %33, %.0116
  %35 = fdiv float %.0124.ph, -2.000000e+01
  %36 = tail call float @powf(float noundef 1.000000e+01, float noundef %35) #10
  %37 = tail call ptr @gmskmod_create(i32 noundef %.0116, i32 noundef %.0118.ph246, float noundef %.0120.ph242) #10
  %38 = tail call i32 @gmskmod_print(ptr noundef %37) #10
  %39 = tail call ptr @gmskdem_create(i32 noundef %.0116, i32 noundef %.0118.ph246, float noundef %.0120.ph242) #10
  %40 = tail call i32 @gmskdem_set_eq_bw(ptr noundef %39, float noundef 0x3F847AE140000000) #10
  %41 = tail call i32 @gmskdem_print(ptr noundef %39) #10
  %42 = zext i32 %33 to i64
  %43 = tail call ptr @llvm.stacksave.p0()
  %44 = alloca i32, i64 %42, align 16
  %45 = zext i32 %34 to i64
  %46 = alloca { float, float }, i64 %45, align 16
  %47 = alloca { float, float }, i64 %45, align 16
  %48 = alloca i32, i64 %42, align 16
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.preheader132:                                    ; preds = %.lr.ph
  br i1 %.not, label %._crit_edge, label %.lr.ph145

.lr.ph:                                           ; preds = %31, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %31 ]
  %49 = tail call i32 @rand() #10
  %50 = srem i32 %49, 2
  %51 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv
  store i32 %50, ptr %51, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %42
  br i1 %exitcond.not, label %.preheader132, label %.lr.ph, !llvm.loop !13

.preheader131:                                    ; preds = %.lr.ph145
  %.not161 = icmp eq i32 %34, 0
  br i1 %.not161, label %.preheader, label %.lr.ph147.preheader

.lr.ph147.preheader:                              ; preds = %.preheader131
  %52 = insertelement <2 x float> poison, float %36, i64 0
  %53 = shufflevector <2 x float> %52, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.lr.ph147

.lr.ph145:                                        ; preds = %.preheader132, %.lr.ph145
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %.lr.ph145 ], [ 0, %.preheader132 ]
  %54 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv175
  %55 = load i32, ptr %54, align 4, !tbaa !11
  %56 = trunc nuw i64 %indvars.iv175 to i32
  %57 = mul i32 %.0116, %56
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds { float, float }, ptr %46, i64 %58
  %60 = call i32 @gmskmod_modulate(ptr noundef %37, i32 noundef %55, ptr noundef nonnull %59) #10
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond179.not = icmp eq i64 %indvars.iv.next176, %42
  br i1 %exitcond179.not, label %.preheader131, label %.lr.ph145, !llvm.loop !14

.preheader:                                       ; preds = %85, %.preheader131
  %.not161206 = phi i1 [ true, %.preheader131 ], [ %.not161, %85 ]
  br i1 %.not, label %._crit_edge, label %.lr.ph149

.lr.ph147:                                        ; preds = %.lr.ph147.preheader, %85
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %85 ], [ 0, %.lr.ph147.preheader ]
  %61 = getelementptr inbounds { float, float }, ptr %46, i64 %indvars.iv180
  %62 = load float, ptr %61, align 8
  %63 = getelementptr inbounds i8, ptr %61, i64 4
  %64 = load float, ptr %63, align 4
  %65 = call <2 x float> @cexpf(<2 x float> noundef zeroinitializer) #10
  %66 = insertelement <2 x float> poison, float %62, i64 0
  %67 = shufflevector <2 x float> %66, <2 x float> poison, <2 x i32> zeroinitializer
  %68 = fmul <2 x float> %67, %65
  %69 = insertelement <2 x float> poison, float %64, i64 0
  %70 = shufflevector <2 x float> %69, <2 x float> poison, <2 x i32> zeroinitializer
  %71 = fmul <2 x float> %70, %65
  %72 = shufflevector <2 x float> %71, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %73 = fsub <2 x float> %68, %72
  %74 = fadd <2 x float> %68, %72
  %75 = shufflevector <2 x float> %73, <2 x float> %74, <2 x i32> <i32 0, i32 3>
  %76 = extractelement <2 x float> %73, i64 0
  %77 = fcmp uno float %76, 0.000000e+00
  br i1 %77, label %78, label %85, !prof !15

78:                                               ; preds = %.lr.ph147
  %79 = extractelement <2 x float> %74, i64 1
  %80 = fcmp uno float %79, 0.000000e+00
  br i1 %80, label %81, label %85, !prof !15

81:                                               ; preds = %78
  %82 = extractelement <2 x float> %65, i64 0
  %83 = extractelement <2 x float> %65, i64 1
  %84 = call <2 x float> @__mulsc3(float noundef %62, float noundef %64, float noundef %82, float noundef %83) #10
  br label %85

85:                                               ; preds = %81, %78, %.lr.ph147
  %86 = phi <2 x float> [ %75, %.lr.ph147 ], [ %75, %78 ], [ %84, %81 ]
  %87 = getelementptr inbounds { float, float }, ptr %47, i64 %indvars.iv180
  %88 = call float (...) @randnf() #10
  %89 = call float (...) @randnf() #10
  %90 = fmul float %89, 0.000000e+00
  %91 = fadd float %88, %90
  %92 = fpext <2 x float> %86 to <2 x double>
  %93 = insertelement <2 x float> poison, float %91, i64 0
  %94 = insertelement <2 x float> %93, float %89, i64 1
  %95 = fmul <2 x float> %53, %94
  %96 = fpext <2 x float> %95 to <2 x double>
  %97 = fmul <2 x double> %96, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %98 = fadd <2 x double> %97, %92
  %99 = fptrunc <2 x double> %98 to <2 x float>
  store <2 x float> %99, ptr %87, align 8
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %exitcond184.not = icmp eq i64 %indvars.iv.next181, %45
  br i1 %exitcond184.not, label %.preheader, label %.lr.ph147, !llvm.loop !16

.lr.ph149:                                        ; preds = %.preheader, %.lr.ph149
  %indvars.iv185 = phi i64 [ %indvars.iv.next186, %.lr.ph149 ], [ 0, %.preheader ]
  %100 = trunc nuw i64 %indvars.iv185 to i32
  %101 = mul i32 %.0116, %100
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds { float, float }, ptr %47, i64 %102
  %104 = getelementptr inbounds i32, ptr %48, i64 %indvars.iv185
  %105 = call i32 @gmskdem_demodulate(ptr noundef %39, ptr noundef nonnull %103, ptr noundef nonnull %104) #10
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %exitcond189.not = icmp eq i64 %indvars.iv.next186, %42
  br i1 %exitcond189.not, label %._crit_edge, label %.lr.ph149, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph149, %.preheader132, %31, %.preheader
  %.not161206208 = phi i1 [ %.not161206, %.preheader ], [ true, %31 ], [ true, %.preheader132 ], [ %.not161206, %.lr.ph149 ]
  %106 = call i32 @gmskmod_destroy(ptr noundef %37) #10
  %107 = call i32 @gmskdem_destroy(ptr noundef %39) #10
  %108 = icmp ult i32 %32, %33
  br i1 %108, label %.lr.ph153.preheader, label %._crit_edge154

.lr.ph153.preheader:                              ; preds = %._crit_edge
  %109 = zext i32 %32 to i64
  %110 = sub nsw i64 %42, %109
  %min.iters.check = icmp ult i64 %110, 8
  br i1 %min.iters.check, label %.lr.ph153.preheader233, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph153.preheader
  %n.vec = and i64 %110, -8
  %ind.end = add nsw i64 %n.vec, %109
  %invariant.gep = getelementptr i32, ptr %48, i64 %109
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %118, %vector.body ]
  %vec.phi229 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %119, %vector.body ]
  %111 = getelementptr inbounds i32, ptr %44, i64 %index
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %wide.load = load <4 x i32>, ptr %111, align 16, !tbaa !11
  %wide.load230 = load <4 x i32>, ptr %112, align 16, !tbaa !11
  %gep = getelementptr i32, ptr %invariant.gep, i64 %index
  %113 = getelementptr inbounds i8, ptr %gep, i64 16
  %wide.load231 = load <4 x i32>, ptr %gep, align 8, !tbaa !11
  %wide.load232 = load <4 x i32>, ptr %113, align 8, !tbaa !11
  %114 = icmp ne <4 x i32> %wide.load, %wide.load231
  %115 = icmp ne <4 x i32> %wide.load230, %wide.load232
  %116 = zext <4 x i1> %114 to <4 x i32>
  %117 = zext <4 x i1> %115 to <4 x i32>
  %118 = add <4 x i32> %vec.phi, %116
  %119 = add <4 x i32> %vec.phi229, %117
  %index.next = add nuw i64 %index, 8
  %120 = icmp eq i64 %index.next, %n.vec
  br i1 %120, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %119, %118
  %121 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %110, %n.vec
  br i1 %cmp.n, label %._crit_edge154, label %.lr.ph153.preheader233

.lr.ph153.preheader233:                           ; preds = %middle.block, %.lr.ph153.preheader
  %indvars.iv190.ph = phi i64 [ %109, %.lr.ph153.preheader ], [ %ind.end, %middle.block ]
  %.0117151.ph = phi i32 [ 0, %.lr.ph153.preheader ], [ %121, %middle.block ]
  br label %.lr.ph153

.lr.ph153:                                        ; preds = %.lr.ph153.preheader233, %.lr.ph153
  %indvars.iv190 = phi i64 [ %indvars.iv.next191, %.lr.ph153 ], [ %indvars.iv190.ph, %.lr.ph153.preheader233 ]
  %.0117151 = phi i32 [ %129, %.lr.ph153 ], [ %.0117151.ph, %.lr.ph153.preheader233 ]
  %122 = sub nuw nsw i64 %indvars.iv190, %109
  %123 = getelementptr inbounds i32, ptr %44, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !11
  %125 = getelementptr inbounds i32, ptr %48, i64 %indvars.iv190
  %126 = load i32, ptr %125, align 4, !tbaa !11
  %127 = icmp ne i32 %124, %126
  %128 = zext i1 %127 to i32
  %129 = add i32 %.0117151, %128
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %exitcond194.not = icmp eq i64 %indvars.iv.next191, %42
  br i1 %exitcond194.not, label %._crit_edge154, label %.lr.ph153, !llvm.loop !21

._crit_edge154:                                   ; preds = %.lr.ph153, %middle.block, %._crit_edge
  %.0117.lcssa = phi i32 [ 0, %._crit_edge ], [ %121, %middle.block ], [ %129, %.lr.ph153 ]
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %.0117.lcssa, i32 noundef %.0122.ph237)
  %131 = call noalias ptr @fopen(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12)
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.11) #10
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.14) #10
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.15) #10
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.16, i32 noundef %.0116) #10
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.17, i32 noundef %.0118.ph246) #10
  %137 = fpext float %.0120.ph242 to double
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.18, double noundef %137) #10
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.19, i32 noundef %33) #10
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.20, i32 noundef %34) #10
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.21) #10
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.22) #10
  br i1 %.not161206208, label %._crit_edge158, label %.lr.ph157

.lr.ph157:                                        ; preds = %._crit_edge154, %.lr.ph157
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %.lr.ph157 ], [ 0, %._crit_edge154 ]
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %143 = getelementptr inbounds { float, float }, ptr %46, i64 %indvars.iv195
  %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.next196 to i32
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.23, i32 noundef %149, double noundef %146, double noundef %148) #10
  %151 = getelementptr inbounds { float, float }, ptr %47, i64 %indvars.iv195
  %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.24, i32 noundef %149, double noundef %154, double noundef %156) #10
  %exitcond199.not = icmp eq i64 %indvars.iv.next196, %45
  br i1 %exitcond199.not, label %._crit_edge158, label %.lr.ph157, !llvm.loop !22

._crit_edge158:                                   ; preds = %.lr.ph157, %._crit_edge154
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.25) #10
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.26) #10
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.27) #10
  %161 = shl i32 %.0116, 1
  %162 = mul i32 %161, %.0118.ph246
  %163 = or disjoint i32 %162, 1
  %164 = zext i32 %163 to i64
  %165 = alloca float, i64 %164, align 16
  %166 = call i32 @liquid_firdes_gmskrx(i32 noundef %.0116, i32 noundef %.0118.ph246, float noundef %.0120.ph242, float noundef 0.000000e+00, ptr noundef nonnull %165) #10
  %167 = or disjoint i32 %162, 1
  %wide.trip.count203 = zext i32 %167 to i64
  br label %168

168:                                              ; preds = %._crit_edge158, %168
  %indvars.iv200 = phi i64 [ 0, %._crit_edge158 ], [ %indvars.iv.next201, %168 ]
  %indvars.iv.next201 = add nuw nsw i64 %indvars.iv200, 1
  %169 = getelementptr inbounds float, ptr %165, i64 %indvars.iv200
  %170 = load float, ptr %169, align 4, !tbaa !23
  %171 = fpext float %170 to double
  %172 = trunc nuw i64 %indvars.iv.next201 to i32
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.28, i32 noundef %172, double noundef %171) #10
  %exitcond204 = icmp eq i64 %indvars.iv.next201, %wide.trip.count203
  br i1 %exitcond204, label %174, label %168, !llvm.loop !25

174:                                              ; preds = %168
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.29) #10
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.26) #10
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.30) #10
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef nonnull @.str.31) #10
  %179 = call i32 @fclose(ptr noundef %131)
  %180 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef nonnull @.str.11)
  call void @llvm.stackrestore.p0(ptr %43)
  br label %181

181:                                              ; preds = %174, %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 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

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

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

declare ptr @gmskmod_create(i32 noundef, i32 noundef, float noundef) local_unnamed_addr #7

declare i32 @gmskmod_print(ptr noundef) local_unnamed_addr #7

declare ptr @gmskdem_create(i32 noundef, i32 noundef, float noundef) local_unnamed_addr #7

declare i32 @gmskdem_set_eq_bw(ptr noundef, float noundef) local_unnamed_addr #7

declare i32 @gmskdem_print(ptr noundef) local_unnamed_addr #7

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

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

declare i32 @gmskmod_modulate(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

declare i32 @gmskdem_demodulate(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

declare i32 @gmskmod_destroy(ptr noundef) local_unnamed_addr #7

declare i32 @gmskdem_destroy(ptr noundef) local_unnamed_addr #7

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

declare i32 @liquid_firdes_gmskrx(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #7

; 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) #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #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 = { 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 = { 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 #7 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { noreturn nounwind }
attributes #13 = { cold 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 = !{!"int", !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, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !10, !20, !19}
!22 = distinct !{!22, !10}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !10}


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