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

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca { float, float }, align 4
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %25 = call i64 @time(ptr noundef null) #6
  %26 = trunc i64 %25 to i32
  call void @srand(i32 noundef %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 27, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %27 = getelementptr inbounds { float, float }, ptr %3, i32 0, i32 0
  %28 = getelementptr inbounds { float, float }, ptr %3, i32 0, i32 1
  store float 0x3FB99999A0000000, ptr %27, align 4
  store float 0x3FC99999A0000000, ptr %28, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store float 0x3FC99999A0000000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = call ptr @modemcf_create(i32 noundef %29)
  store ptr %30, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %31 = load ptr, ptr %6, align 8, !tbaa !11
  %32 = call i32 @modemcf_get_bps(ptr noundef %31)
  store i32 %32, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = shl i32 1, %33
  store i32 %34, ptr %8, align 4, !tbaa !5
  %35 = load i32, ptr %8, align 4, !tbaa !5
  %36 = zext i32 %35 to i64
  %37 = call ptr @llvm.stacksave.p0()
  store ptr %37, ptr %9, align 8
  %38 = alloca { float, float }, i64 %36, align 16
  store i64 %36, ptr %10, align 8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %50, %0
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = icmp ult i32 %40, %41
  br i1 %42, label %43, label %53

43:                                               ; preds = %39
  %44 = load ptr, ptr %6, align 8, !tbaa !11
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds { float, float }, ptr %38, i64 %47
  %49 = call i32 @modemcf_modulate(ptr noundef %44, i32 noundef %45, ptr noundef %48)
  br label %50

50:                                               ; preds = %43
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = add i32 %51, 1
  store i32 %52, ptr %4, align 4, !tbaa !5
  br label %39, !llvm.loop !13

53:                                               ; preds = %39
  %54 = load ptr, ptr %6, align 8, !tbaa !11
  %55 = call i32 @modemcf_destroy(ptr noundef %54)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %56 = call i32 @rand() #6
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = urem i32 %56, %57
  store i32 %58, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds { float, float }, ptr %38, i64 %60
  %62 = getelementptr inbounds { float, float }, ptr %61, i32 0, i32 0
  %63 = load float, ptr %62, align 8
  %64 = getelementptr inbounds { float, float }, ptr %61, i32 0, i32 1
  %65 = load float, ptr %64, align 4
  %66 = getelementptr inbounds { float, float }, ptr %3, i32 0, i32 0
  %67 = load float, ptr %66, align 4
  %68 = getelementptr inbounds { float, float }, ptr %3, i32 0, i32 1
  %69 = load float, ptr %68, align 4
  %70 = fadd float %63, %67
  %71 = fadd float %65, %69
  %72 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %73 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  store float %70, ptr %72, align 4
  store float %71, ptr %73, align 4
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = alloca float, i64 %75, align 16
  store i64 %75, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %228, %53
  %78 = load i32, ptr %14, align 4, !tbaa !5
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = icmp ult i32 %78, %79
  br i1 %80, label %81, label %231

81:                                               ; preds = %77
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %83)
  %85 = load i32, ptr %14, align 4, !tbaa !5
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds float, ptr %76, i64 %86
  store float 0.000000e+00, ptr %87, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store float 0.000000e+00, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 0.000000e+00, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %211, %81
  %89 = load i32, ptr %4, align 4, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = icmp ult i32 %89, %90
  br i1 %91, label %92, label %214

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %93 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %94 = load float, ptr %93, align 4
  %95 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  %96 = load float, ptr %95, align 4
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds { float, float }, ptr %38, i64 %98
  %100 = getelementptr inbounds { float, float }, ptr %99, i32 0, i32 0
  %101 = load float, ptr %100, align 8
  %102 = getelementptr inbounds { float, float }, ptr %99, i32 0, i32 1
  %103 = load float, ptr %102, align 4
  %104 = fsub float %94, %101
  %105 = fsub float %96, %103
  %106 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %107 = load float, ptr %106, align 4
  %108 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  %109 = load float, ptr %108, align 4
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds { float, float }, ptr %38, i64 %111
  %113 = getelementptr inbounds { float, float }, ptr %112, i32 0, i32 0
  %114 = load float, ptr %113, align 8
  %115 = getelementptr inbounds { float, float }, ptr %112, i32 0, i32 1
  %116 = load float, ptr %115, align 4
  %117 = fsub float %107, %114
  %118 = fsub float %109, %116
  %119 = fneg float %118
  %120 = fmul float %104, %117
  %121 = fmul float %105, %119
  %122 = fmul float %104, %119
  %123 = fmul float %105, %117
  %124 = fsub float %120, %121
  %125 = fadd float %122, %123
  %126 = fcmp uno float %124, %124
  br i1 %126, label %127, label %135, !prof !15

127:                                              ; preds = %92
  %128 = fcmp uno float %125, %125
  br i1 %128, label %129, label %135, !prof !15

129:                                              ; preds = %127
  %130 = call <2 x float> @__mulsc3(float noundef %104, float noundef %105, float noundef %117, float noundef %119) #6
  store <2 x float> %130, ptr %18, align 4
  %131 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %132 = load float, ptr %131, align 4
  %133 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  br label %135

135:                                              ; preds = %129, %127, %92
  %136 = phi float [ %124, %92 ], [ %124, %127 ], [ %132, %129 ]
  %137 = phi float [ %125, %92 ], [ %125, %127 ], [ %134, %129 ]
  store float %136, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %138 = load float, ptr %17, align 4, !tbaa !9
  %139 = fneg float %138
  %140 = load float, ptr %5, align 4, !tbaa !9
  %141 = fmul float 2.000000e+00, %140
  %142 = load float, ptr %5, align 4, !tbaa !9
  %143 = fmul float %141, %142
  %144 = fdiv float %139, %143
  %145 = call float @expf(float noundef %144) #6, !tbaa !5
  store float %145, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %146 = load i32, ptr %4, align 4, !tbaa !5
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = load i32, ptr %14, align 4, !tbaa !5
  %149 = sub i32 %147, %148
  %150 = sub i32 %149, 1
  %151 = lshr i32 %146, %150
  %152 = and i32 %151, 1
  store i32 %152, ptr %20, align 4, !tbaa !5
  %153 = load i32, ptr %20, align 4, !tbaa !5
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %159

155:                                              ; preds = %135
  %156 = load float, ptr %19, align 4, !tbaa !9
  %157 = load float, ptr %16, align 4, !tbaa !9
  %158 = fadd float %157, %156
  store float %158, ptr %16, align 4, !tbaa !9
  br label %163

159:                                              ; preds = %135
  %160 = load float, ptr %19, align 4, !tbaa !9
  %161 = load float, ptr %15, align 4, !tbaa !9
  %162 = fadd float %161, %160
  store float %162, ptr %15, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %159, %155
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %181, %163
  %166 = load i32, ptr %21, align 4, !tbaa !5
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = icmp ult i32 %166, %167
  br i1 %168, label %169, label %184

169:                                              ; preds = %165
  %170 = load i32, ptr %4, align 4, !tbaa !5
  %171 = load i32, ptr %7, align 4, !tbaa !5
  %172 = load i32, ptr %21, align 4, !tbaa !5
  %173 = sub i32 %171, %172
  %174 = sub i32 %173, 1
  %175 = lshr i32 %170, %174
  %176 = and i32 %175, 1
  %177 = icmp ne i32 %176, 0
  %178 = zext i1 %177 to i64
  %179 = select i1 %177, i32 49, i32 48
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %179)
  br label %181

181:                                              ; preds = %169
  %182 = load i32, ptr %21, align 4, !tbaa !5
  %183 = add i32 %182, 1
  store i32 %183, ptr %21, align 4, !tbaa !5
  br label %165, !llvm.loop !16

184:                                              ; preds = %165
  %185 = load i32, ptr %20, align 4, !tbaa !5
  %186 = icmp ne i32 %185, 0
  %187 = zext i1 %186 to i64
  %188 = select i1 %186, i32 49, i32 48
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %188)
  %190 = load i32, ptr %4, align 4, !tbaa !5
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds { float, float }, ptr %38, i64 %191
  %193 = getelementptr inbounds { float, float }, ptr %192, i32 0, i32 0
  %194 = load float, ptr %193, align 8
  %195 = getelementptr inbounds { float, float }, ptr %192, i32 0, i32 1
  %196 = load float, ptr %195, align 4
  %197 = fpext float %194 to double
  %198 = load i32, ptr %4, align 4, !tbaa !5
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds { float, float }, ptr %38, i64 %199
  %201 = getelementptr inbounds { float, float }, ptr %200, i32 0, i32 0
  %202 = load float, ptr %201, align 8
  %203 = getelementptr inbounds { float, float }, ptr %200, i32 0, i32 1
  %204 = load float, ptr %203, align 4
  %205 = fpext float %204 to double
  %206 = load float, ptr %17, align 4, !tbaa !9
  %207 = fpext float %206 to double
  %208 = load float, ptr %19, align 4, !tbaa !9
  %209 = fpext float %208 to double
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %197, double noundef %205, double noundef %207, double noundef %209)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %211

211:                                              ; preds = %184
  %212 = load i32, ptr %4, align 4, !tbaa !5
  %213 = add i32 %212, 1
  store i32 %213, ptr %4, align 4, !tbaa !5
  br label %88, !llvm.loop !17

214:                                              ; preds = %88
  %215 = load float, ptr %16, align 4, !tbaa !9
  %216 = call float @logf(float noundef %215) #6
  %217 = load float, ptr %15, align 4, !tbaa !9
  %218 = call float @logf(float noundef %217) #6
  %219 = fsub float %216, %218
  %220 = load i32, ptr %14, align 4, !tbaa !5
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds float, ptr %76, i64 %221
  store float %219, ptr %222, align 4, !tbaa !9
  %223 = load float, ptr %15, align 4, !tbaa !9
  %224 = fpext float %223 to double
  %225 = load float, ptr %16, align 4, !tbaa !9
  %226 = fpext float %225 to double
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %224, double noundef %226)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %228

228:                                              ; preds = %214
  %229 = load i32, ptr %14, align 4, !tbaa !5
  %230 = add i32 %229, 1
  store i32 %230, ptr %14, align 4, !tbaa !5
  br label %77, !llvm.loop !18

231:                                              ; preds = %77
  %232 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %250, %231
  %235 = load i32, ptr %14, align 4, !tbaa !5
  %236 = load i32, ptr %7, align 4, !tbaa !5
  %237 = icmp ult i32 %235, %236
  br i1 %237, label %238, label %253

238:                                              ; preds = %234
  %239 = load i32, ptr %11, align 4, !tbaa !5
  %240 = load i32, ptr %7, align 4, !tbaa !5
  %241 = load i32, ptr %14, align 4, !tbaa !5
  %242 = sub i32 %240, %241
  %243 = sub i32 %242, 1
  %244 = lshr i32 %239, %243
  %245 = and i32 %244, 1
  %246 = icmp ne i32 %245, 0
  %247 = zext i1 %246 to i64
  %248 = select i1 %246, i32 49, i32 48
  %249 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %248)
  br label %250

250:                                              ; preds = %238
  %251 = load i32, ptr %14, align 4, !tbaa !5
  %252 = add i32 %251, 1
  store i32 %252, ptr %14, align 4, !tbaa !5
  br label %234, !llvm.loop !19

253:                                              ; preds = %234
  %254 = load i32, ptr %11, align 4, !tbaa !5
  %255 = zext i32 %254 to i64
  %256 = getelementptr inbounds { float, float }, ptr %38, i64 %255
  %257 = getelementptr inbounds { float, float }, ptr %256, i32 0, i32 0
  %258 = load float, ptr %257, align 8
  %259 = getelementptr inbounds { float, float }, ptr %256, i32 0, i32 1
  %260 = load float, ptr %259, align 4
  %261 = fpext float %258 to double
  %262 = load i32, ptr %11, align 4, !tbaa !5
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds { float, float }, ptr %38, i64 %263
  %265 = getelementptr inbounds { float, float }, ptr %264, i32 0, i32 0
  %266 = load float, ptr %265, align 8
  %267 = getelementptr inbounds { float, float }, ptr %264, i32 0, i32 1
  %268 = load float, ptr %267, align 4
  %269 = fpext float %268 to double
  %270 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %261, double noundef %269)
  %271 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %272

272:                                              ; preds = %312, %253
  %273 = load i32, ptr %14, align 4, !tbaa !5
  %274 = load i32, ptr %7, align 4, !tbaa !5
  %275 = icmp ult i32 %273, %274
  br i1 %275, label %276, label %315

276:                                              ; preds = %272
  %277 = load i32, ptr %11, align 4, !tbaa !5
  %278 = load i32, ptr %7, align 4, !tbaa !5
  %279 = load i32, ptr %14, align 4, !tbaa !5
  %280 = sub i32 %278, %279
  %281 = sub i32 %280, 1
  %282 = lshr i32 %277, %281
  %283 = and i32 %282, 1
  %284 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %283)
  %285 = load i32, ptr %14, align 4, !tbaa !5
  %286 = zext i32 %285 to i64
  %287 = getelementptr inbounds float, ptr %76, i64 %286
  %288 = load float, ptr %287, align 4, !tbaa !9
  %289 = fpext float %288 to double
  %290 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %289)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %291 = load i32, ptr %14, align 4, !tbaa !5
  %292 = zext i32 %291 to i64
  %293 = getelementptr inbounds float, ptr %76, i64 %292
  %294 = load float, ptr %293, align 4, !tbaa !9
  %295 = call float @llvm.fmuladd.f32(float %294, float 1.600000e+01, float 1.270000e+02)
  %296 = fptosi float %295 to i32
  store i32 %296, ptr %22, align 4, !tbaa !5
  %297 = load i32, ptr %22, align 4, !tbaa !5
  %298 = icmp sgt i32 %297, 255
  br i1 %298, label %299, label %300

299:                                              ; preds = %276
  store i32 255, ptr %22, align 4, !tbaa !5
  br label %300

300:                                              ; preds = %299, %276
  %301 = load i32, ptr %22, align 4, !tbaa !5
  %302 = icmp slt i32 %301, 0
  br i1 %302, label %303, label %304

303:                                              ; preds = %300
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %303, %300
  %305 = load i32, ptr %22, align 4, !tbaa !5
  %306 = load i32, ptr %22, align 4, !tbaa !5
  %307 = and i32 %306, 128
  %308 = icmp ne i32 %307, 0
  %309 = zext i1 %308 to i64
  %310 = select i1 %308, i32 1, i32 0
  %311 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %305, i32 noundef %310)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %312

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

315:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %316 = call noalias ptr @fopen(ptr noundef @.str.13, ptr noundef @.str.14)
  store ptr %316, ptr %23, align 8, !tbaa !11
  %317 = load ptr, ptr %23, align 8, !tbaa !11
  %318 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %317, ptr noundef @.str.15, ptr noundef @.str.13) #6
  %319 = load ptr, ptr %23, align 8, !tbaa !11
  %320 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %319, ptr noundef @.str.16) #6
  %321 = load ptr, ptr %23, align 8, !tbaa !11
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %321, ptr noundef @.str.17) #6
  %323 = load ptr, ptr %23, align 8, !tbaa !11
  %324 = load i32, ptr %7, align 4, !tbaa !5
  %325 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %323, ptr noundef @.str.18, i32 noundef %324) #6
  %326 = load ptr, ptr %23, align 8, !tbaa !11
  %327 = load i32, ptr %7, align 4, !tbaa !5
  %328 = shl i32 1, %327
  %329 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %326, ptr noundef @.str.19, i32 noundef %328) #6
  %330 = load ptr, ptr %23, align 8, !tbaa !11
  %331 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %330, ptr noundef @.str.20) #6
  %332 = load ptr, ptr %23, align 8, !tbaa !11
  %333 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %332, ptr noundef @.str.21) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %334

334:                                              ; preds = %386, %315
  %335 = load i32, ptr %4, align 4, !tbaa !5
  %336 = load i32, ptr %8, align 4, !tbaa !5
  %337 = icmp ult i32 %335, %336
  br i1 %337, label %338, label %389

338:                                              ; preds = %334
  %339 = load ptr, ptr %23, align 8, !tbaa !11
  %340 = load i32, ptr %4, align 4, !tbaa !5
  %341 = add i32 %340, 1
  %342 = load i32, ptr %4, align 4, !tbaa !5
  %343 = zext i32 %342 to i64
  %344 = getelementptr inbounds { float, float }, ptr %38, 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 %346 to double
  %350 = load i32, ptr %4, align 4, !tbaa !5
  %351 = zext i32 %350 to i64
  %352 = getelementptr inbounds { float, float }, ptr %38, i64 %351
  %353 = getelementptr inbounds { float, float }, ptr %352, i32 0, i32 0
  %354 = load float, ptr %353, align 8
  %355 = getelementptr inbounds { float, float }, ptr %352, i32 0, i32 1
  %356 = load float, ptr %355, align 4
  %357 = fpext float %356 to double
  %358 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %339, ptr noundef @.str.22, i32 noundef %341, double noundef %349, double noundef %357) #6
  %359 = load ptr, ptr %23, align 8, !tbaa !11
  %360 = load i32, ptr %4, align 4, !tbaa !5
  %361 = add i32 %360, 1
  %362 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %359, ptr noundef @.str.23, i32 noundef %361) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %363

363:                                              ; preds = %380, %338
  %364 = load i32, ptr %24, align 4, !tbaa !5
  %365 = load i32, ptr %7, align 4, !tbaa !5
  %366 = icmp ult i32 %364, %365
  br i1 %366, label %367, label %383

367:                                              ; preds = %363
  %368 = load ptr, ptr %23, align 8, !tbaa !11
  %369 = load i32, ptr %4, align 4, !tbaa !5
  %370 = load i32, ptr %7, align 4, !tbaa !5
  %371 = load i32, ptr %24, align 4, !tbaa !5
  %372 = sub i32 %370, %371
  %373 = sub i32 %372, 1
  %374 = lshr i32 %369, %373
  %375 = and i32 %374, 1
  %376 = icmp ne i32 %375, 0
  %377 = zext i1 %376 to i64
  %378 = select i1 %376, i32 49, i32 48
  %379 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %368, ptr noundef @.str.3, i32 noundef %378) #6
  br label %380

380:                                              ; preds = %367
  %381 = load i32, ptr %24, align 4, !tbaa !5
  %382 = add i32 %381, 1
  store i32 %382, ptr %24, align 4, !tbaa !5
  br label %363, !llvm.loop !21

383:                                              ; preds = %363
  %384 = load ptr, ptr %23, align 8, !tbaa !11
  %385 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %384, ptr noundef @.str.24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %386

386:                                              ; preds = %383
  %387 = load i32, ptr %4, align 4, !tbaa !5
  %388 = add i32 %387, 1
  store i32 %388, ptr %4, align 4, !tbaa !5
  br label %334, !llvm.loop !22

389:                                              ; preds = %334
  %390 = load ptr, ptr %23, align 8, !tbaa !11
  %391 = load i32, ptr %11, align 4, !tbaa !5
  %392 = zext i32 %391 to i64
  %393 = getelementptr inbounds { float, float }, ptr %38, i64 %392
  %394 = getelementptr inbounds { float, float }, ptr %393, i32 0, i32 0
  %395 = load float, ptr %394, align 8
  %396 = getelementptr inbounds { float, float }, ptr %393, i32 0, i32 1
  %397 = load float, ptr %396, align 4
  %398 = fpext float %395 to double
  %399 = load i32, ptr %11, align 4, !tbaa !5
  %400 = zext i32 %399 to i64
  %401 = getelementptr inbounds { float, float }, ptr %38, i64 %400
  %402 = getelementptr inbounds { float, float }, ptr %401, i32 0, i32 0
  %403 = load float, ptr %402, align 8
  %404 = getelementptr inbounds { float, float }, ptr %401, i32 0, i32 1
  %405 = load float, ptr %404, align 4
  %406 = fpext float %405 to double
  %407 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %390, ptr noundef @.str.25, double noundef %398, double noundef %406) #6
  %408 = load ptr, ptr %23, align 8, !tbaa !11
  %409 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %410 = load float, ptr %409, align 4
  %411 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  %412 = load float, ptr %411, align 4
  %413 = fpext float %410 to double
  %414 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %415 = load float, ptr %414, align 4
  %416 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  %417 = load float, ptr %416, align 4
  %418 = fpext float %417 to double
  %419 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %408, ptr noundef @.str.26, double noundef %413, double noundef %418) #6
  %420 = load ptr, ptr %23, align 8, !tbaa !11
  %421 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %420, ptr noundef @.str.27) #6
  %422 = load ptr, ptr %23, align 8, !tbaa !11
  %423 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %422, ptr noundef @.str.28) #6
  %424 = load ptr, ptr %23, align 8, !tbaa !11
  %425 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %424, ptr noundef @.str.29) #6
  %426 = load ptr, ptr %23, align 8, !tbaa !11
  %427 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %426, ptr noundef @.str.30) #6
  %428 = load ptr, ptr %23, align 8, !tbaa !11
  %429 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %428, ptr noundef @.str.31) #6
  %430 = load ptr, ptr %23, align 8, !tbaa !11
  %431 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %430, ptr noundef @.str.32) #6
  %432 = load ptr, ptr %23, align 8, !tbaa !11
  %433 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %432, ptr noundef @.str.33) #6
  %434 = load ptr, ptr %23, align 8, !tbaa !11
  %435 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %434, ptr noundef @.str.34) #6
  %436 = load ptr, ptr %23, align 8, !tbaa !11
  %437 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %436, ptr noundef @.str.35) #6
  %438 = load ptr, ptr %23, align 8, !tbaa !11
  %439 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %438, ptr noundef @.str.36) #6
  %440 = load ptr, ptr %23, align 8, !tbaa !11
  %441 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %440, ptr noundef @.str.37) #6
  %442 = load ptr, ptr %23, align 8, !tbaa !11
  %443 = call i32 @fclose(ptr noundef %442)
  %444 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, ptr noundef @.str.13)
  %445 = call i32 (ptr, ...) @printf(ptr noundef @.str.39)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %446 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %446)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %447 = load i32, ptr %1, align 4
  ret i32 %447
}

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

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

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

declare ptr @modemcf_create(i32 noundef) #3

declare i32 @modemcf_get_bps(ptr noundef) #3

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

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

declare i32 @modemcf_destroy(ptr noundef) #3

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

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

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

; Function Attrs: nounwind
declare float @expf(float noundef) #1

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

; Function Attrs: nounwind
declare float @logf(float noundef) #1

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

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

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

declare i32 @fclose(ptr noundef) #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"branch_weights", i32 1, i32 1048575}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!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 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i64 @time(ptr noundef null) #7
  %2 = trunc i64 %1 to i32
  tail call void @srand(i32 noundef %2) #7
  %3 = tail call ptr @modemcf_create(i32 noundef 27) #7
  %4 = tail call i32 @modemcf_get_bps(ptr noundef %3) #7
  %.fr162 = freeze i32 %4
  %5 = shl nuw i32 1, %.fr162
  %6 = zext i32 %5 to i64
  %7 = alloca { float, float }, i64 %6, align 16
  br label %8

8:                                                ; preds = %0, %8
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %8 ]
  %9 = getelementptr inbounds { float, float }, ptr %7, i64 %indvars.iv
  %10 = trunc nuw i64 %indvars.iv to i32
  %11 = call i32 @modemcf_modulate(ptr noundef %3, i32 noundef %10, ptr noundef nonnull %9) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %12, label %8, !llvm.loop !5

12:                                               ; preds = %8
  %13 = call i32 @modemcf_destroy(ptr noundef %3) #7
  %14 = call i32 @rand() #7
  %15 = add i32 %5, -1
  %16 = and i32 %14, %15
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds { float, float }, ptr %7, i64 %17
  %19 = getelementptr inbounds i8, ptr %18, i64 4
  %20 = load <2 x float>, ptr %18, align 8
  %21 = fadd <2 x float> %20, <float 0x3FB99999A0000000, float 0x3FC99999A0000000>
  %22 = zext i32 %.fr162 to i64
  %23 = alloca float, i64 %22, align 16
  %.not = icmp eq i32 %.fr162, 0
  br i1 %.not, label %._crit_edge148.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %12, %76
  %indvars.iv172 = phi i64 [ %indvars.iv.next173, %76 ], [ 0, %12 ]
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %25 = trunc nuw i64 %indvars.iv172 to i32
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %25)
  %27 = getelementptr inbounds float, ptr %23, i64 %indvars.iv172
  %28 = xor i32 %25, -1
  %29 = add i32 %.fr162, %28
  %30 = shl nuw i32 1, %29
  br label %31

31:                                               ; preds = %.lr.ph, %65
  %indvars.iv167 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next168, %65 ]
  %.0128142 = phi float [ 0.000000e+00, %.lr.ph ], [ %.1129, %65 ]
  %.0130141 = phi float [ 0.000000e+00, %.lr.ph ], [ %.1131, %65 ]
  %32 = getelementptr inbounds { float, float }, ptr %7, i64 %indvars.iv167
  %33 = getelementptr inbounds i8, ptr %32, i64 4
  %34 = load <2 x float>, ptr %32, align 8
  %35 = fsub <2 x float> %21, %34
  %36 = extractelement <2 x float> %35, i64 1
  %37 = fneg float %36
  %38 = fmul <2 x float> %35, %35
  %shift = shufflevector <2 x float> %38, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %39 = fadd <2 x float> %38, %shift
  %40 = extractelement <2 x float> %39, i64 0
  %41 = fcmp uno float %40, 0.000000e+00
  br i1 %41, label %42, label %49, !prof !7

42:                                               ; preds = %31
  %43 = extractelement <2 x float> %35, i64 0
  %44 = fmul float %43, %36
  %45 = fsub float %44, %44
  %46 = fcmp uno float %45, 0.000000e+00
  br i1 %46, label %47, label %49, !prof !7

47:                                               ; preds = %42
  %48 = call <2 x float> @__mulsc3(float noundef %43, float noundef %36, float noundef %43, float noundef %37) #7
  %.sroa.0.0.vec.extract = extractelement <2 x float> %48, i64 0
  br label %49

49:                                               ; preds = %47, %42, %31
  %50 = phi float [ %40, %31 ], [ %40, %42 ], [ %.sroa.0.0.vec.extract, %47 ]
  %51 = fdiv float %50, 0xBFB47AE160000000
  %52 = call float @expf(float noundef %51) #7, !tbaa !8
  %53 = trunc nuw i64 %indvars.iv167 to i32
  %54 = and i32 %30, %53
  %.not137 = icmp eq i32 %54, 0
  %55 = fadd float %.0130141, %52
  %.1131 = select i1 %.not137, float %.0130141, float %55
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %57

57:                                               ; preds = %49, %57
  %.0124140 = phi i32 [ 0, %49 ], [ %64, %57 ]
  %58 = xor i32 %.0124140, -1
  %59 = add i32 %.fr162, %58
  %60 = shl nuw i32 1, %59
  %61 = and i32 %60, %53
  %.not138 = icmp eq i32 %61, 0
  %62 = select i1 %.not138, i32 48, i32 49
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %62)
  %64 = add nuw i32 %.0124140, 1
  %exitcond166.not = icmp eq i32 %64, %.fr162
  br i1 %exitcond166.not, label %65, label %57, !llvm.loop !12

65:                                               ; preds = %57
  %66 = fadd float %.0128142, %52
  %.1129 = select i1 %.not137, float %66, float %.0128142
  %67 = select i1 %.not137, i32 48, i32 49
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %67)
  %69 = load float, ptr %32, align 8
  %70 = fpext float %69 to double
  %71 = load float, ptr %33, align 4
  %72 = fpext float %71 to double
  %73 = fpext float %50 to double
  %74 = fpext float %52 to double
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %70, double noundef %72, double noundef %73, double noundef %74)
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next168, %6
  br i1 %exitcond171.not, label %76, label %31, !llvm.loop !13

76:                                               ; preds = %65
  %77 = call float @logf(float noundef %.1131) #7
  %78 = call float @logf(float noundef %.1129) #7
  %79 = fsub float %77, %78
  store float %79, ptr %27, align 4, !tbaa !14
  %80 = fpext float %.1129 to double
  %81 = fpext float %.1131 to double
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %80, double noundef %81)
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond176.not = icmp eq i64 %indvars.iv.next173, %22
  br i1 %exitcond176.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %76
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br i1 %.not, label %._crit_edge152.critedge, label %.lr.ph147

.lr.ph147:                                        ; preds = %._crit_edge, %.lr.ph147
  %.1126145 = phi i32 [ %91, %.lr.ph147 ], [ 0, %._crit_edge ]
  %85 = xor i32 %.1126145, -1
  %86 = add i32 %.fr162, %85
  %87 = shl nuw i32 1, %86
  %88 = and i32 %87, %16
  %.not136 = icmp eq i32 %88, 0
  %89 = select i1 %.not136, i32 48, i32 49
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %89)
  %91 = add nuw i32 %.1126145, 1
  %exitcond177.not = icmp eq i32 %91, %.fr162
  br i1 %exitcond177.not, label %._crit_edge148, label %.lr.ph147, !llvm.loop !17

._crit_edge148.critedge:                          ; preds = %12
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %._crit_edge148

._crit_edge148:                                   ; preds = %.lr.ph147, %._crit_edge148.critedge
  %94 = load float, ptr %18, align 8
  %95 = fpext float %94 to double
  %96 = load float, ptr %19, align 4
  %97 = fpext float %96 to double
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %95, double noundef %97)
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br i1 %.not, label %._crit_edge152, label %.lr.ph151

.lr.ph151:                                        ; preds = %._crit_edge148, %.lr.ph151
  %indvars.iv178 = phi i64 [ %indvars.iv.next179, %.lr.ph151 ], [ 0, %._crit_edge148 ]
  %100 = trunc nuw i64 %indvars.iv178 to i32
  %101 = xor i32 %100, -1
  %102 = add i32 %.fr162, %101
  %103 = lshr i32 %16, %102
  %104 = and i32 %103, 1
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %104)
  %106 = getelementptr inbounds float, ptr %23, i64 %indvars.iv178
  %107 = load float, ptr %106, align 4, !tbaa !14
  %108 = fpext float %107 to double
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %108)
  %110 = call float @llvm.fmuladd.f32(float %107, float 1.600000e+01, float 1.270000e+02)
  %111 = fptosi float %110 to i32
  %spec.store.select = call i32 @llvm.smin.i32(i32 %111, i32 255)
  %spec.store.select1 = call i32 @llvm.smax.i32(i32 %spec.store.select, i32 0)
  %112 = lshr i32 %spec.store.select1, 7
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %spec.store.select1, i32 noundef %112)
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %exitcond182.not = icmp eq i64 %indvars.iv.next179, %22
  br i1 %exitcond182.not, label %._crit_edge152, label %.lr.ph151, !llvm.loop !18

._crit_edge152.critedge:                          ; preds = %._crit_edge
  %114 = load float, ptr %18, align 8
  %115 = fpext float %114 to double
  %116 = load float, ptr %19, align 4
  %117 = fpext float %116 to double
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %115, double noundef %117)
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %._crit_edge152

._crit_edge152:                                   ; preds = %.lr.ph151, %._crit_edge152.critedge, %._crit_edge148
  %120 = call noalias ptr @fopen(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14)
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.13) #7
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.16) #7
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.17) #7
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.18, i32 noundef %.fr162) #7
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.19, i32 noundef %5) #7
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.20) #7
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.21) #7
  br i1 %.not, label %.split, label %.lr.ph155.us

.lr.ph155.us:                                     ; preds = %._crit_edge152, %._crit_edge156.us
  %indvars.iv184 = phi i64 [ %indvars.iv.next185, %._crit_edge156.us ], [ 0, %._crit_edge152 ]
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %128 = getelementptr inbounds { float, float }, ptr %7, i64 %indvars.iv184
  %129 = load float, ptr %128, align 8
  %130 = getelementptr inbounds i8, ptr %128, i64 4
  %131 = fpext float %129 to double
  %132 = load float, ptr %130, align 4
  %133 = fpext float %132 to double
  %134 = trunc nuw i64 %indvars.iv.next185 to i32
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.22, i32 noundef %134, double noundef %131, double noundef %133) #7
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.23, i32 noundef %134) #7
  %137 = trunc nuw i64 %indvars.iv184 to i32
  br label %138

138:                                              ; preds = %.lr.ph155.us, %138
  %.0153.us = phi i32 [ 0, %.lr.ph155.us ], [ %145, %138 ]
  %139 = xor i32 %.0153.us, -1
  %140 = add i32 %.fr162, %139
  %141 = shl nuw i32 1, %140
  %142 = and i32 %141, %137
  %.not.us = icmp eq i32 %142, 0
  %143 = select i1 %.not.us, i32 48, i32 49
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.3, i32 noundef %143) #7
  %145 = add nuw i32 %.0153.us, 1
  %exitcond183.not = icmp eq i32 %145, %.fr162
  br i1 %exitcond183.not, label %._crit_edge156.us, label %138, !llvm.loop !19

._crit_edge156.us:                                ; preds = %138
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.24) #7
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %6
  br i1 %exitcond188.not, label %.split159.us, label %.lr.ph155.us, !llvm.loop !20

.split:                                           ; preds = %._crit_edge152, %.split
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %.split ], [ 0, %._crit_edge152 ]
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %147 = getelementptr inbounds { float, float }, ptr %7, i64 %indvars.iv189
  %148 = load float, ptr %147, align 8
  %149 = getelementptr inbounds i8, ptr %147, i64 4
  %150 = fpext float %148 to double
  %151 = load float, ptr %149, align 4
  %152 = fpext float %151 to double
  %153 = trunc nuw i64 %indvars.iv.next190 to i32
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.22, i32 noundef %153, double noundef %150, double noundef %152) #7
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.23, i32 noundef %153) #7
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.24) #7
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %6
  br i1 %exitcond193.not, label %.split159.us, label %.split, !llvm.loop !20

.split159.us:                                     ; preds = %._crit_edge156.us, %.split
  %157 = load float, ptr %18, align 8
  %158 = fpext float %157 to double
  %159 = load float, ptr %19, align 4
  %160 = fpext float %159 to double
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.25, double noundef %158, double noundef %160) #7
  %162 = extractelement <2 x float> %21, i64 0
  %163 = fpext float %162 to double
  %164 = extractelement <2 x float> %21, i64 1
  %165 = fpext float %164 to double
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.26, double noundef %163, double noundef %165) #7
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.27) #7
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.28) #7
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.29) #7
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.30) #7
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.31) #7
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.32) #7
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.33) #7
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.34) #7
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.35) #7
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.36) #7
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.37) #7
  %178 = call i32 @fclose(ptr noundef %120)
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef nonnull @.str.13)
  %180 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39)
  ret i32 0
}

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

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

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #2

declare i32 @modemcf_get_bps(ptr noundef) local_unnamed_addr #2

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

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @expf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @logf(float noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

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

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

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


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