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

; 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.5 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 50, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 29, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store float 1.000000e+00, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  br label %27

27:                                               ; preds = %66, %2
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  %30 = call i32 @getopt(i32 noundef %28, ptr noundef %29, ptr noundef @.str.5) #9
  store i32 %30, ptr %9, align 4, !tbaa !5
  %31 = icmp ne i32 %30, -1
  br i1 %31, label %32, label %67

32:                                               ; preds = %27
  %33 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %33, label %65 [
    i32 117, label %34
    i32 104, label %34
    i32 109, label %35
    i32 114, label %48
    i32 97, label %61
  ]

34:                                               ; preds = %32, %32
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %364

35:                                               ; preds = %32
  %36 = load ptr, ptr @optarg, align 8, !tbaa !9
  %37 = call i32 @liquid_getopt_str2mod(ptr noundef %36)
  store i32 %37, ptr %6, align 4, !tbaa !5
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %47

40:                                               ; preds = %35
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 0
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.6, ptr noundef %44, ptr noundef %45) #9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %364

47:                                               ; preds = %35
  br label %66

48:                                               ; preds = %32
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  %50 = call i32 @liquid_getopt_str2mod(ptr noundef %49)
  store i32 %50, ptr %7, align 4, !tbaa !5
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %60

53:                                               ; preds = %48
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = getelementptr inbounds ptr, ptr %55, i64 0
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = load ptr, ptr @optarg, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.6, ptr noundef %57, ptr noundef %58) #9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %364

60:                                               ; preds = %48
  br label %66

61:                                               ; preds = %32
  %62 = load ptr, ptr @optarg, align 8, !tbaa !9
  %63 = call double @atof(ptr noundef %62) #10
  %64 = fptrunc double %63 to float
  store float %64, ptr %8, align 4, !tbaa !11
  br label %66

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

66:                                               ; preds = %61, %60, %47
  br label %27, !llvm.loop !13

67:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = call ptr @modemcf_create(i32 noundef %68)
  store ptr %69, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %70 = load ptr, ptr %13, align 8, !tbaa !9
  %71 = call i32 @modemcf_get_bps(ptr noundef %70)
  store i32 %71, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = shl i32 1, %72
  store i32 %73, ptr %15, align 4, !tbaa !5
  %74 = load i32, ptr %15, align 4, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = call ptr @llvm.stacksave.p0()
  store ptr %76, ptr %16, align 8
  %77 = alloca { float, float }, i64 %75, align 16
  store i64 %75, ptr %17, align 8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %101, %67
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = icmp ult i32 %79, %80
  br i1 %81, label %82, label %104

82:                                               ; preds = %78
  %83 = load ptr, ptr %13, align 8, !tbaa !9
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = load i32, ptr %11, align 4, !tbaa !5
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds { float, float }, ptr %77, i64 %86
  %88 = call i32 @modemcf_modulate(ptr noundef %83, i32 noundef %84, ptr noundef %87)
  %89 = load float, ptr %8, align 4, !tbaa !11
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds { float, float }, ptr %77, i64 %91
  %93 = getelementptr inbounds { float, float }, ptr %92, i32 0, i32 0
  %94 = load float, ptr %93, align 8
  %95 = getelementptr inbounds { float, float }, ptr %92, i32 0, i32 1
  %96 = load float, ptr %95, align 4
  %97 = fmul float %94, %89
  %98 = fmul float %96, %89
  %99 = getelementptr inbounds { float, float }, ptr %92, i32 0, i32 0
  %100 = getelementptr inbounds { float, float }, ptr %92, i32 0, i32 1
  store float %97, ptr %99, align 8
  store float %98, ptr %100, align 4
  br label %101

101:                                              ; preds = %82
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = add i32 %102, 1
  store i32 %103, ptr %11, align 4, !tbaa !5
  br label %78, !llvm.loop !15

104:                                              ; preds = %78
  %105 = load ptr, ptr %13, align 8, !tbaa !9
  %106 = call i32 @modemcf_destroy(ptr noundef %105)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = call ptr @modemcf_create(i32 noundef %107)
  store ptr %108, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %109 = load ptr, ptr %18, align 8, !tbaa !9
  %110 = call i32 @modemcf_get_bps(ptr noundef %109)
  store i32 %110, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %111 = load i32, ptr %19, align 4, !tbaa !5
  %112 = shl i32 1, %111
  store i32 %112, ptr %20, align 4, !tbaa !5
  %113 = load i32, ptr %20, align 4, !tbaa !5
  %114 = zext i32 %113 to i64
  %115 = alloca { float, float }, i64 %114, align 16
  store i64 %114, ptr %21, align 8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %127, %104
  %117 = load i32, ptr %11, align 4, !tbaa !5
  %118 = load i32, ptr %20, align 4, !tbaa !5
  %119 = icmp ult i32 %117, %118
  br i1 %119, label %120, label %130

120:                                              ; preds = %116
  %121 = load ptr, ptr %18, align 8, !tbaa !9
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds { float, float }, ptr %115, i64 %124
  %126 = call i32 @modemcf_modulate(ptr noundef %121, i32 noundef %122, ptr noundef %125)
  br label %127

127:                                              ; preds = %120
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = add i32 %128, 1
  store i32 %129, ptr %11, align 4, !tbaa !5
  br label %116, !llvm.loop !16

130:                                              ; preds = %116
  %131 = load ptr, ptr %18, align 8, !tbaa !9
  %132 = call i32 @modemcf_destroy(ptr noundef %131)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  store ptr null, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %133 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %133, ptr %23, align 4, !tbaa !5
  %134 = load i32, ptr %20, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = alloca i8, i64 %135, align 16
  store i64 %135, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %159, %130
  %138 = load i32, ptr %25, align 4, !tbaa !5
  %139 = add i32 %138, 1
  store i32 %139, ptr %25, align 4, !tbaa !5
  %140 = load ptr, ptr %22, align 8, !tbaa !9
  %141 = load i32, ptr %15, align 4, !tbaa !5
  %142 = load i32, ptr %25, align 4, !tbaa !5
  %143 = mul i32 %141, %142
  %144 = zext i32 %143 to i64
  %145 = call ptr @realloc(ptr noundef %140, i64 noundef %144) #12
  store ptr %145, ptr %22, align 8, !tbaa !9
  %146 = load i32, ptr %20, align 4, !tbaa !5
  %147 = load i32, ptr %15, align 4, !tbaa !5
  %148 = load ptr, ptr %22, align 8, !tbaa !9
  %149 = load i32, ptr %25, align 4, !tbaa !5
  call void @modemcf_arbref_search(ptr noundef %115, i32 noundef %146, ptr noundef %77, i32 noundef %147, ptr noundef %148, i32 noundef %149)
  %150 = load ptr, ptr %22, align 8, !tbaa !9
  %151 = load i32, ptr %20, align 4, !tbaa !5
  %152 = load i32, ptr %15, align 4, !tbaa !5
  %153 = load i32, ptr %25, align 4, !tbaa !5
  %154 = call i32 @modemcf_arbref_search_unassigned(ptr noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153, ptr noundef %136)
  store i32 %154, ptr %23, align 4, !tbaa !5
  %155 = load i32, ptr %25, align 4, !tbaa !5
  %156 = load i32, ptr %23, align 4, !tbaa !5
  %157 = load i32, ptr %20, align 4, !tbaa !5
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %155, i32 noundef %156, i32 noundef %157)
  br label %159

159:                                              ; preds = %137
  %160 = load i32, ptr %23, align 4, !tbaa !5
  %161 = icmp ugt i32 %160, 0
  br i1 %161, label %137, label %162, !llvm.loop !17

162:                                              ; preds = %159
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %164 = load i32, ptr %15, align 4, !tbaa !5
  %165 = load i32, ptr %25, align 4, !tbaa !5
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %164, i32 noundef %165)
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %206, %162
  %168 = load i32, ptr %11, align 4, !tbaa !5
  %169 = load i32, ptr %15, align 4, !tbaa !5
  %170 = icmp ult i32 %168, %169
  br i1 %170, label %171, label %209

171:                                              ; preds = %167
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %195, %171
  %174 = load i32, ptr %12, align 4, !tbaa !5
  %175 = load i32, ptr %25, align 4, !tbaa !5
  %176 = icmp ult i32 %174, %175
  br i1 %176, label %177, label %198

177:                                              ; preds = %173
  %178 = load ptr, ptr %22, align 8, !tbaa !9
  %179 = load i32, ptr %11, align 4, !tbaa !5
  %180 = load i32, ptr %25, align 4, !tbaa !5
  %181 = mul i32 %179, %180
  %182 = load i32, ptr %12, align 4, !tbaa !5
  %183 = add i32 %181, %182
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds i8, ptr %178, i64 %184
  %186 = load i8, ptr %185, align 1, !tbaa !18
  %187 = zext i8 %186 to i32
  %188 = load i32, ptr %12, align 4, !tbaa !5
  %189 = load i32, ptr %25, align 4, !tbaa !5
  %190 = sub i32 %189, 1
  %191 = icmp eq i32 %188, %190
  %192 = zext i1 %191 to i64
  %193 = select i1 %191, ptr @.str.12, ptr @.str.13
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %187, ptr noundef %193)
  br label %195

195:                                              ; preds = %177
  %196 = load i32, ptr %12, align 4, !tbaa !5
  %197 = add i32 %196, 1
  store i32 %197, ptr %12, align 4, !tbaa !5
  br label %173, !llvm.loop !19

198:                                              ; preds = %173
  %199 = load i32, ptr %11, align 4, !tbaa !5
  %200 = load i32, ptr %15, align 4, !tbaa !5
  %201 = sub i32 %200, 1
  %202 = icmp eq i32 %199, %201
  %203 = zext i1 %202 to i64
  %204 = select i1 %202, ptr @.str.15, ptr @.str.16
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %204)
  br label %206

206:                                              ; preds = %198
  %207 = load i32, ptr %11, align 4, !tbaa !5
  %208 = add i32 %207, 1
  store i32 %208, ptr %11, align 4, !tbaa !5
  br label %167, !llvm.loop !20

209:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %210 = call noalias ptr @fopen(ptr noundef @.str.17, ptr noundef @.str.18)
  store ptr %210, ptr %26, align 8, !tbaa !9
  %211 = load ptr, ptr %26, align 8, !tbaa !9
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef @.str.19, ptr noundef @.str.17) #9
  %213 = load ptr, ptr %26, align 8, !tbaa !9
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.20) #9
  %215 = load ptr, ptr %26, align 8, !tbaa !9
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.21) #9
  %217 = load ptr, ptr %26, align 8, !tbaa !9
  %218 = load i32, ptr %19, align 4, !tbaa !5
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.22, i32 noundef %218) #9
  %220 = load ptr, ptr %26, align 8, !tbaa !9
  %221 = load i32, ptr %20, align 4, !tbaa !5
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.23, i32 noundef %221) #9
  %223 = load ptr, ptr %26, align 8, !tbaa !9
  %224 = load i32, ptr %15, align 4, !tbaa !5
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef @.str.24, i32 noundef %224) #9
  %226 = load ptr, ptr %26, align 8, !tbaa !9
  %227 = load i32, ptr %25, align 4, !tbaa !5
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef @.str.25, i32 noundef %227) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %254, %209
  %230 = load i32, ptr %11, align 4, !tbaa !5
  %231 = load i32, ptr %20, align 4, !tbaa !5
  %232 = icmp ult i32 %230, %231
  br i1 %232, label %233, label %257

233:                                              ; preds = %229
  %234 = load ptr, ptr %26, align 8, !tbaa !9
  %235 = load i32, ptr %11, align 4, !tbaa !5
  %236 = add i32 %235, 1
  %237 = load i32, ptr %11, align 4, !tbaa !5
  %238 = zext i32 %237 to i64
  %239 = getelementptr inbounds { float, float }, ptr %115, i64 %238
  %240 = getelementptr inbounds { float, float }, ptr %239, i32 0, i32 0
  %241 = load float, ptr %240, align 8
  %242 = getelementptr inbounds { float, float }, ptr %239, i32 0, i32 1
  %243 = load float, ptr %242, align 4
  %244 = fpext float %241 to double
  %245 = load i32, ptr %11, align 4, !tbaa !5
  %246 = zext i32 %245 to i64
  %247 = getelementptr inbounds { float, float }, ptr %115, i64 %246
  %248 = getelementptr inbounds { float, float }, ptr %247, i32 0, i32 0
  %249 = load float, ptr %248, align 8
  %250 = getelementptr inbounds { float, float }, ptr %247, i32 0, i32 1
  %251 = load float, ptr %250, align 4
  %252 = fpext float %251 to double
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.26, i32 noundef %236, double noundef %244, double noundef %252) #9
  br label %254

254:                                              ; preds = %233
  %255 = load i32, ptr %11, align 4, !tbaa !5
  %256 = add i32 %255, 1
  store i32 %256, ptr %11, align 4, !tbaa !5
  br label %229, !llvm.loop !21

257:                                              ; preds = %229
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %258

258:                                              ; preds = %283, %257
  %259 = load i32, ptr %11, align 4, !tbaa !5
  %260 = load i32, ptr %15, align 4, !tbaa !5
  %261 = icmp ult i32 %259, %260
  br i1 %261, label %262, label %286

262:                                              ; preds = %258
  %263 = load ptr, ptr %26, align 8, !tbaa !9
  %264 = load i32, ptr %11, align 4, !tbaa !5
  %265 = add i32 %264, 1
  %266 = load i32, ptr %11, align 4, !tbaa !5
  %267 = zext i32 %266 to i64
  %268 = getelementptr inbounds { float, float }, ptr %77, i64 %267
  %269 = getelementptr inbounds { float, float }, ptr %268, i32 0, i32 0
  %270 = load float, ptr %269, align 8
  %271 = getelementptr inbounds { float, float }, ptr %268, i32 0, i32 1
  %272 = load float, ptr %271, align 4
  %273 = fpext float %270 to double
  %274 = load i32, ptr %11, align 4, !tbaa !5
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds { float, float }, ptr %77, i64 %275
  %277 = getelementptr inbounds { float, float }, ptr %276, i32 0, i32 0
  %278 = load float, ptr %277, align 8
  %279 = getelementptr inbounds { float, float }, ptr %276, i32 0, i32 1
  %280 = load float, ptr %279, align 4
  %281 = fpext float %280 to double
  %282 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.27, i32 noundef %265, double noundef %273, double noundef %281) #9
  br label %283

283:                                              ; preds = %262
  %284 = load i32, ptr %11, align 4, !tbaa !5
  %285 = add i32 %284, 1
  store i32 %285, ptr %11, align 4, !tbaa !5
  br label %258, !llvm.loop !22

286:                                              ; preds = %258
  %287 = load ptr, ptr %26, align 8, !tbaa !9
  %288 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %287, ptr noundef @.str.28) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %320, %286
  %290 = load i32, ptr %11, align 4, !tbaa !5
  %291 = load i32, ptr %15, align 4, !tbaa !5
  %292 = icmp ult i32 %290, %291
  br i1 %292, label %293, label %323

293:                                              ; preds = %289
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %294

294:                                              ; preds = %316, %293
  %295 = load i32, ptr %12, align 4, !tbaa !5
  %296 = load i32, ptr %25, align 4, !tbaa !5
  %297 = icmp ult i32 %295, %296
  br i1 %297, label %298, label %319

298:                                              ; preds = %294
  %299 = load ptr, ptr %26, align 8, !tbaa !9
  %300 = load i32, ptr %11, align 4, !tbaa !5
  %301 = add i32 %300, 1
  %302 = load i32, ptr %12, align 4, !tbaa !5
  %303 = add i32 %302, 1
  %304 = load ptr, ptr %22, align 8, !tbaa !9
  %305 = load i32, ptr %11, align 4, !tbaa !5
  %306 = load i32, ptr %25, align 4, !tbaa !5
  %307 = mul i32 %305, %306
  %308 = load i32, ptr %12, align 4, !tbaa !5
  %309 = add i32 %307, %308
  %310 = zext i32 %309 to i64
  %311 = getelementptr inbounds i8, ptr %304, i64 %310
  %312 = load i8, ptr %311, align 1, !tbaa !18
  %313 = zext i8 %312 to i32
  %314 = add nsw i32 %313, 1
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %299, ptr noundef @.str.29, i32 noundef %301, i32 noundef %303, i32 noundef %314) #9
  br label %316

316:                                              ; preds = %298
  %317 = load i32, ptr %12, align 4, !tbaa !5
  %318 = add i32 %317, 1
  store i32 %318, ptr %12, align 4, !tbaa !5
  br label %294, !llvm.loop !23

319:                                              ; preds = %294
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %11, align 4, !tbaa !5
  %322 = add i32 %321, 1
  store i32 %322, ptr %11, align 4, !tbaa !5
  br label %289, !llvm.loop !24

323:                                              ; preds = %289
  %324 = load ptr, ptr %26, align 8, !tbaa !9
  %325 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %324, ptr noundef @.str.30) #9
  %326 = load ptr, ptr %26, align 8, !tbaa !9
  %327 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %326, ptr noundef @.str.31) #9
  %328 = load ptr, ptr %26, align 8, !tbaa !9
  %329 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %328, ptr noundef @.str.32) #9
  %330 = load ptr, ptr %26, align 8, !tbaa !9
  %331 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %330, ptr noundef @.str.33) #9
  %332 = load ptr, ptr %26, align 8, !tbaa !9
  %333 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %332, ptr noundef @.str.34) #9
  %334 = load ptr, ptr %26, align 8, !tbaa !9
  %335 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %334, ptr noundef @.str.35) #9
  %336 = load ptr, ptr %26, align 8, !tbaa !9
  %337 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %336, ptr noundef @.str.36) #9
  %338 = load ptr, ptr %26, align 8, !tbaa !9
  %339 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %338, ptr noundef @.str.37) #9
  %340 = load ptr, ptr %26, align 8, !tbaa !9
  %341 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %340, ptr noundef @.str.38) #9
  %342 = load ptr, ptr %26, align 8, !tbaa !9
  %343 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %342, ptr noundef @.str.39) #9
  %344 = load ptr, ptr %26, align 8, !tbaa !9
  %345 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %344, ptr noundef @.str.40) #9
  %346 = load ptr, ptr %26, align 8, !tbaa !9
  %347 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %346, ptr noundef @.str.41) #9
  %348 = load ptr, ptr %26, align 8, !tbaa !9
  %349 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %348, ptr noundef @.str.42) #9
  %350 = load ptr, ptr %26, align 8, !tbaa !9
  %351 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %350, ptr noundef @.str.43) #9
  %352 = load ptr, ptr %26, align 8, !tbaa !9
  %353 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %352, ptr noundef @.str.44) #9
  %354 = load ptr, ptr %26, align 8, !tbaa !9
  %355 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %354, ptr noundef @.str.45) #9
  %356 = load ptr, ptr %26, align 8, !tbaa !9
  %357 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %356, ptr noundef @.str.46) #9
  %358 = load ptr, ptr %26, align 8, !tbaa !9
  %359 = call i32 @fclose(ptr noundef %358)
  %360 = call i32 (ptr, ...) @printf(ptr noundef @.str.47, ptr noundef @.str.17)
  %361 = call i32 (ptr, ...) @printf(ptr noundef @.str.48)
  %362 = load ptr, ptr %22, align 8, !tbaa !9
  call void @free(ptr noundef %362) #9
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  %363 = load ptr, ptr %16, align 8
  call void @llvm.stackrestore.p0(ptr %363)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, 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
  br label %364

364:                                              ; preds = %323, %53, %40, %34
  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
  %365 = load i32, ptr %3, align 4
  ret i32 %365
}

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

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

declare i32 @liquid_getopt_str2mod(ptr noundef) #1

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

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

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

declare ptr @modemcf_create(i32 noundef) #1

declare i32 @modemcf_get_bps(ptr noundef) #1

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

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

declare i32 @modemcf_destroy(ptr noundef) #1

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #7

; Function Attrs: nounwind uwtable
declare dso_local void @modemcf_arbref_search(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #8

; Function Attrs: nounwind uwtable
declare dso_local i32 @modemcf_arbref_search_unassigned(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #0

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

declare i32 @fclose(ptr noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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

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

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

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

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

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

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

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

.outer:                                           ; preds = %24, %2
  %.0129.ph = phi float [ %27, %24 ], [ 1.000000e+00, %2 ]
  %.0127.ph = phi i32 [ %.0127.ph252, %24 ], [ 29, %2 ]
  %.0125.ph = phi i32 [ %.0125, %24 ], [ 50, %2 ]
  br label %.outer251

.outer251:                                        ; preds = %.outer, %15
  %.0127.ph252 = phi i32 [ %.0127.ph, %.outer ], [ %17, %15 ]
  %.0125.ph253 = phi i32 [ %.0125.ph, %.outer ], [ %.0125, %15 ]
  br label %3

3:                                                ; preds = %.outer251, %6
  %.0125 = phi i32 [ %8, %6 ], [ %.0125.ph253, %.outer251 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.5) #10
  switch i32 %4, label %28 [
    i32 -1, label %29
    i32 117, label %5
    i32 104, label %5
    i32 109, label %6
    i32 114, label %15
    i32 97, label %24
  ]

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

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !5
  %8 = tail call i32 @liquid_getopt_str2mod(ptr noundef %7) #10
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %3, !llvm.loop !9

10:                                               ; preds = %6
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  %13 = load ptr, ptr @optarg, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.6, ptr noundef %12, ptr noundef %13) #11
  br label %150

15:                                               ; preds = %3
  %16 = load ptr, ptr @optarg, align 8, !tbaa !5
  %17 = tail call i32 @liquid_getopt_str2mod(ptr noundef %16) #10
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %.outer251, !llvm.loop !9

19:                                               ; preds = %15
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  %22 = load ptr, ptr @optarg, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.6, ptr noundef %21, ptr noundef %22) #11
  br label %150

24:                                               ; preds = %3
  %25 = load ptr, ptr @optarg, align 8, !tbaa !5
  %26 = tail call double @atof(ptr noundef %25) #12
  %27 = fptrunc double %26 to float
  br label %.outer, !llvm.loop !9

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

29:                                               ; preds = %3
  %30 = tail call ptr @modemcf_create(i32 noundef %.0127.ph252) #10
  %31 = tail call i32 @modemcf_get_bps(ptr noundef %30) #10
  %32 = shl nuw i32 1, %31
  %33 = zext i32 %32 to i64
  %34 = tail call ptr @llvm.stacksave.p0()
  %35 = alloca { float, float }, i64 %33, align 16
  %36 = insertelement <2 x float> poison, float %.0129.ph, i64 0
  %37 = shufflevector <2 x float> %36, <2 x float> poison, <2 x i32> zeroinitializer
  br label %38

38:                                               ; preds = %29, %38
  %indvars.iv = phi i64 [ 0, %29 ], [ %indvars.iv.next, %38 ]
  %39 = getelementptr inbounds { float, float }, ptr %35, i64 %indvars.iv
  %40 = trunc nuw i64 %indvars.iv to i32
  %41 = call i32 @modemcf_modulate(ptr noundef %30, i32 noundef %40, ptr noundef nonnull %39) #10
  %42 = load <2 x float>, ptr %39, align 8
  %43 = fmul <2 x float> %37, %42
  store <2 x float> %43, ptr %39, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %33
  br i1 %exitcond.not, label %44, label %38, !llvm.loop !11

44:                                               ; preds = %38
  %45 = call i32 @modemcf_destroy(ptr noundef %30) #10
  %46 = call ptr @modemcf_create(i32 noundef %.0125) #10
  %47 = call i32 @modemcf_get_bps(ptr noundef %46) #10
  %48 = shl nuw i32 1, %47
  %49 = zext i32 %48 to i64
  %50 = alloca { float, float }, i64 %49, align 16
  br label %51

51:                                               ; preds = %44, %51
  %indvars.iv189 = phi i64 [ 0, %44 ], [ %indvars.iv.next190, %51 ]
  %52 = getelementptr inbounds { float, float }, ptr %50, i64 %indvars.iv189
  %53 = trunc nuw i64 %indvars.iv189 to i32
  %54 = call i32 @modemcf_modulate(ptr noundef %46, i32 noundef %53, ptr noundef nonnull %52) #10
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond194.not = icmp eq i64 %indvars.iv.next190, %49
  br i1 %exitcond194.not, label %55, label %51, !llvm.loop !12

55:                                               ; preds = %51
  %56 = call i32 @modemcf_destroy(ptr noundef %46) #10
  %57 = alloca i8, i64 %49, align 16
  br label %58

58:                                               ; preds = %58, %55
  %indvars.iv198 = phi i32 [ %indvars.iv.next199, %58 ], [ 1, %55 ]
  %.0126 = phi ptr [ %62, %58 ], [ null, %55 ]
  %.0124 = phi i32 [ %59, %58 ], [ 0, %55 ]
  %59 = add i32 %.0124, 1
  %60 = shl i32 %59, %31
  %61 = zext i32 %60 to i64
  %62 = call ptr @realloc(ptr noundef %.0126, i64 noundef %61) #14
  call void @modemcf_arbref_search(ptr noundef nonnull %50, i32 noundef %48, ptr noundef nonnull %35, i32 noundef %32, ptr noundef %62, i32 noundef %59)
  %63 = call i32 @modemcf_arbref_search_unassigned(ptr noundef %62, i32 noundef %48, i32 noundef %32, i32 noundef %59, ptr noundef nonnull %57)
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %59, i32 noundef %63, i32 noundef %48)
  %.not142 = icmp eq i32 %63, 0
  %indvars.iv.next199 = add i32 %indvars.iv198, 1
  br i1 %.not142, label %65, label %58, !llvm.loop !13

65:                                               ; preds = %58
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %32, i32 noundef %59)
  %.not = icmp eq i32 %59, 0
  %68 = add i32 %32, -1
  br i1 %.not, label %.split, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %65
  %69 = zext i32 %.0124 to i64
  %wide.trip.count200 = zext i32 %indvars.iv198 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.2160.us = phi i32 [ %85, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %71 = mul i32 %.2160.us, %59
  br label %72

72:                                               ; preds = %.lr.ph.us, %72
  %indvars.iv195 = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next196, %72 ]
  %73 = trunc nuw i64 %indvars.iv195 to i32
  %74 = add i32 %71, %73
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds i8, ptr %62, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !14
  %78 = zext i8 %77 to i32
  %79 = icmp eq i64 %indvars.iv195, %69
  %80 = select i1 %79, ptr @.str.12, ptr @.str.13
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %78, ptr noundef nonnull %80)
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %exitcond201.not = icmp eq i64 %indvars.iv.next196, %wide.trip.count200
  br i1 %exitcond201.not, label %._crit_edge.us, label %72, !llvm.loop !15

._crit_edge.us:                                   ; preds = %72
  %82 = icmp eq i32 %.2160.us, %68
  %83 = select i1 %82, ptr @.str.15, ptr @.str.16
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull %83)
  %85 = add nuw i32 %.2160.us, 1
  %exitcond202.not = icmp eq i32 %85, %32
  br i1 %exitcond202.not, label %.split162.us, label %.lr.ph.us, !llvm.loop !16

.split:                                           ; preds = %65, %.split
  %.2160 = phi i32 [ %90, %.split ], [ 0, %65 ]
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %87 = icmp eq i32 %.2160, %68
  %88 = select i1 %87, ptr @.str.15, ptr @.str.16
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull %88)
  %90 = add nuw i32 %.2160, 1
  %exitcond203.not = icmp eq i32 %90, %32
  br i1 %exitcond203.not, label %.split162.us, label %.split, !llvm.loop !16

.split162.us:                                     ; preds = %._crit_edge.us, %.split
  %91 = call noalias ptr @fopen(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.18)
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.17) #10
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.20) #10
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.21) #10
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.22, i32 noundef %47) #10
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.23, i32 noundef %48) #10
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.24, i32 noundef %32) #10
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.25, i32 noundef %59) #10
  br label %99

99:                                               ; preds = %.split162.us, %99
  %indvars.iv204 = phi i64 [ 0, %.split162.us ], [ %indvars.iv.next205, %99 ]
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %100 = getelementptr inbounds { float, float }, ptr %50, i64 %indvars.iv204
  %101 = load float, ptr %100, align 8
  %102 = getelementptr inbounds i8, ptr %100, i64 4
  %103 = fpext float %101 to double
  %104 = load float, ptr %102, align 4
  %105 = fpext float %104 to double
  %106 = trunc nuw i64 %indvars.iv.next205 to i32
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.26, i32 noundef %106, double noundef %103, double noundef %105) #10
  %exitcond208.not = icmp eq i64 %indvars.iv.next205, %49
  br i1 %exitcond208.not, label %.preheader143, label %99, !llvm.loop !17

.preheader143:                                    ; preds = %99, %.preheader143
  %indvars.iv209 = phi i64 [ %indvars.iv.next210, %.preheader143 ], [ 0, %99 ]
  %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1
  %108 = getelementptr inbounds { float, float }, ptr %35, i64 %indvars.iv209
  %109 = load float, ptr %108, align 8
  %110 = getelementptr inbounds i8, ptr %108, i64 4
  %111 = fpext float %109 to double
  %112 = load float, ptr %110, align 4
  %113 = fpext float %112 to double
  %114 = trunc nuw i64 %indvars.iv.next210 to i32
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.27, i32 noundef %114, double noundef %111, double noundef %113) #10
  %exitcond213.not = icmp eq i64 %indvars.iv.next210, %33
  br i1 %exitcond213.not, label %116, label %.preheader143, !llvm.loop !18

116:                                              ; preds = %.preheader143
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.28) #10
  br i1 %.not, label %.split171.us, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %116
  %wide.trip.count218 = zext i32 %indvars.iv198 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us169
  %.5166.us = phi i32 [ %118, %._crit_edge.us169 ], [ 0, %.preheader.us.preheader ]
  %118 = add nuw i32 %.5166.us, 1
  %119 = mul i32 %.5166.us, %59
  br label %120

120:                                              ; preds = %.preheader.us, %120
  %indvars.iv214 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next215, %120 ]
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
  %121 = trunc nuw i64 %indvars.iv214 to i32
  %122 = add i32 %119, %121
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds i8, ptr %62, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !14
  %126 = zext i8 %125 to i32
  %127 = add nuw nsw i32 %126, 1
  %128 = trunc nuw i64 %indvars.iv.next215 to i32
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.29, i32 noundef %118, i32 noundef %128, i32 noundef %127) #10
  %exitcond219.not = icmp eq i64 %indvars.iv.next215, %wide.trip.count218
  br i1 %exitcond219.not, label %._crit_edge.us169, label %120, !llvm.loop !19

._crit_edge.us169:                                ; preds = %120
  %exitcond220.not = icmp eq i32 %118, %32
  br i1 %exitcond220.not, label %.split171.us, label %.preheader.us, !llvm.loop !20

.split171.us:                                     ; preds = %._crit_edge.us169, %116
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.30) #10
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.31) #10
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.32) #10
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.33) #10
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.34) #10
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.35) #10
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.36) #10
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.37) #10
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.38) #10
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.39) #10
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.40) #10
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.41) #10
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.42) #10
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.43) #10
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.44) #10
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.45) #10
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.46) #10
  %147 = call i32 @fclose(ptr noundef %91)
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47, ptr noundef nonnull @.str.17)
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48)
  call void @free(ptr noundef %62) #10
  call void @llvm.stackrestore.p0(ptr %34)
  br label %150

150:                                              ; preds = %.split171.us, %19, %10, %5
  %.0 = phi i32 [ 1, %19 ], [ 1, %10 ], [ 0, %5 ], [ 0, %.split171.us ]
  ret i32 %.0
}

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

declare i32 @liquid_getopt_str2mod(ptr noundef) local_unnamed_addr #3

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

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

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

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #3

declare i32 @modemcf_get_bps(ptr noundef) local_unnamed_addr #3

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

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

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
declare dso_local void @modemcf_arbref_search(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #8

; Function Attrs: nounwind uwtable
declare dso_local i32 @modemcf_arbref_search_unassigned(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #9

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 "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 = { "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 nocallback nofree nosync nounwind willreturn }
attributes #7 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #9 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #10 = { nounwind }
attributes #11 = { cold nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { noreturn nounwind }
attributes #14 = { nounwind allocsize(1) }

!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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


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