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

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

@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [23 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 i32, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca float, align 4
  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) #7
  store i32 5, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 4, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 15, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store float 0x3FC3333340000000, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 800, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  br label %23

23:                                               ; preds = %45, %2
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = call i32 @getopt(i32 noundef %24, ptr noundef %25, ptr noundef @.str.8) #7
  store i32 %26, ptr %11, align 4, !tbaa !5
  %27 = icmp ne i32 %26, -1
  br i1 %27, label %28, label %46

28:                                               ; preds = %23
  %29 = load i32, ptr %11, align 4, !tbaa !5
  switch i32 %29, label %44 [
    i32 104, label %30
    i32 80, label %31
    i32 81, label %34
    i32 109, label %37
    i32 98, label %40
  ]

30:                                               ; preds = %28
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %304

31:                                               ; preds = %28
  %32 = load ptr, ptr @optarg, align 8, !tbaa !9
  %33 = call i32 @atoi(ptr noundef %32) #8
  store i32 %33, ptr %6, align 4, !tbaa !5
  br label %45

34:                                               ; preds = %28
  %35 = load ptr, ptr @optarg, align 8, !tbaa !9
  %36 = call i32 @atoi(ptr noundef %35) #8
  store i32 %36, ptr %7, align 4, !tbaa !5
  br label %45

37:                                               ; preds = %28
  %38 = load ptr, ptr @optarg, align 8, !tbaa !9
  %39 = call i32 @atoi(ptr noundef %38) #8
  store i32 %39, ptr %8, align 4, !tbaa !5
  br label %45

40:                                               ; preds = %28
  %41 = load ptr, ptr @optarg, align 8, !tbaa !9
  %42 = call double @atof(ptr noundef %41) #8
  %43 = fptrunc double %42 to float
  store float %43, ptr %9, align 4, !tbaa !11
  br label %45

44:                                               ; preds = %28
  call void @exit(i32 noundef 1) #9
  unreachable

45:                                               ; preds = %40, %37, %34, %31
  br label %23, !llvm.loop !13

46:                                               ; preds = %23
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %52, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = icmp ugt i32 %50, 1000
  br i1 %51, label %52, label %58

52:                                               ; preds = %49, %46
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 0
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.9, ptr noundef %56) #7
  call void @exit(i32 noundef 1) #9
  unreachable

58:                                               ; preds = %49
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %64, label %61

61:                                               ; preds = %58
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = icmp ugt i32 %62, 1000
  br i1 %63, label %64, label %70

64:                                               ; preds = %61, %58
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 0
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.10, ptr noundef %68) #7
  call void @exit(i32 noundef 1) #9
  unreachable

70:                                               ; preds = %61
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = icmp ugt i32 %71, %72
  br i1 %73, label %74, label %80

74:                                               ; preds = %70
  %75 = load ptr, ptr @stderr, align 8, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %76, i64 0
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.11, ptr noundef %78) #7
  call void @exit(i32 noundef 1) #9
  unreachable

80:                                               ; preds = %70
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = load float, ptr %9, align 4, !tbaa !11
  %87 = call ptr @rresamp_crcf_create_prototype(i32 noundef 7, i32 noundef %83, i32 noundef %84, i32 noundef %85, float noundef %86)
  store ptr %87, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = load float, ptr %9, align 4, !tbaa !11
  %92 = call ptr @rresamp_crcf_create_prototype(i32 noundef 7, i32 noundef %88, i32 noundef %89, i32 noundef %90, float noundef %91)
  store ptr %92, ptr %14, align 8, !tbaa !9
  %93 = load ptr, ptr %13, align 8, !tbaa !9
  %94 = call i32 @rresamp_crcf_print(ptr noundef %93)
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = zext i32 %95 to i64
  %97 = call ptr @llvm.stacksave.p0()
  store ptr %97, ptr %15, align 8
  %98 = alloca { float, float }, i64 %96, align 16
  store i64 %96, ptr %16, align 8
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = zext i32 %99 to i64
  %101 = alloca { float, float }, i64 %100, align 16
  store i64 %100, ptr %17, align 8
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = alloca { float, float }, i64 %103, align 16
  store i64 %103, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %105 = call noalias ptr @fopen(ptr noundef @.str.12, ptr noundef @.str.13)
  store ptr %105, ptr %21, align 8, !tbaa !9
  %106 = load ptr, ptr %21, align 8, !tbaa !9
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.14) #7
  %108 = load ptr, ptr %21, align 8, !tbaa !9
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.15) #7
  %110 = load ptr, ptr %21, align 8, !tbaa !9
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store float 0x3FE6A09E60000000, ptr %22, align 4, !tbaa !11
  br label %112

112:                                              ; preds = %244, %82
  %113 = load i32, ptr %20, align 4, !tbaa !5
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = icmp ult i32 %113, %114
  br i1 %115, label %116, label %245

116:                                              ; preds = %112
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = load i32, ptr %20, align 4, !tbaa !5
  %119 = add i32 %118, %117
  store i32 %119, ptr %20, align 4, !tbaa !5
  %120 = load i32, ptr %20, align 4, !tbaa !5
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = mul i32 2, %122
  %124 = sub i32 %121, %123
  %125 = icmp ugt i32 %120, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %116
  store float 0.000000e+00, ptr %22, align 4, !tbaa !11
  br label %127

127:                                              ; preds = %126, %116
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %156, %127
  %129 = load i32, ptr %19, align 4, !tbaa !5
  %130 = load i32, ptr %7, align 4, !tbaa !5
  %131 = icmp ult i32 %129, %130
  br i1 %131, label %132, label %159

132:                                              ; preds = %128
  %133 = load float, ptr %22, align 4, !tbaa !11
  %134 = call i32 @rand() #7
  %135 = and i32 %134, 1
  %136 = icmp ne i32 %135, 0
  %137 = zext i1 %136 to i64
  %138 = select i1 %136, i32 1, i32 -1
  %139 = sitofp i32 %138 to float
  %140 = call i32 @rand() #7
  %141 = and i32 %140, 1
  %142 = icmp ne i32 %141, 0
  %143 = zext i1 %142 to i64
  %144 = select i1 %142, i32 1, i32 -1
  %145 = sitofp i32 %144 to float
  %146 = fmul float %145, 0.000000e+00
  %147 = fmul float %145, 1.000000e+00
  %148 = fadd float %139, %146
  %149 = fmul float %133, %148
  %150 = fmul float %133, %147
  %151 = load i32, ptr %19, align 4, !tbaa !5
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds { float, float }, ptr %98, i64 %152
  %154 = getelementptr inbounds { float, float }, ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds { float, float }, ptr %153, i32 0, i32 1
  store float %149, ptr %154, align 8
  store float %150, ptr %155, align 4
  br label %156

156:                                              ; preds = %132
  %157 = load i32, ptr %19, align 4, !tbaa !5
  %158 = add i32 %157, 1
  store i32 %158, ptr %19, align 4, !tbaa !5
  br label %128, !llvm.loop !15

159:                                              ; preds = %128
  %160 = load ptr, ptr %13, align 8, !tbaa !9
  %161 = call i32 @rresamp_crcf_execute(ptr noundef %160, ptr noundef %98, ptr noundef %101)
  %162 = load ptr, ptr %14, align 8, !tbaa !9
  %163 = call i32 @rresamp_crcf_execute(ptr noundef %162, ptr noundef %101, ptr noundef %104)
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %187, %159
  %165 = load i32, ptr %19, align 4, !tbaa !5
  %166 = load i32, ptr %7, align 4, !tbaa !5
  %167 = icmp ult i32 %165, %166
  br i1 %167, label %168, label %190

168:                                              ; preds = %164
  %169 = load ptr, ptr %21, align 8, !tbaa !9
  %170 = load i32, ptr %19, align 4, !tbaa !5
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds { float, float }, ptr %98, i64 %171
  %173 = getelementptr inbounds { float, float }, ptr %172, i32 0, i32 0
  %174 = load float, ptr %173, align 8
  %175 = getelementptr inbounds { float, float }, ptr %172, i32 0, i32 1
  %176 = load float, ptr %175, align 4
  %177 = fpext float %174 to double
  %178 = load i32, ptr %19, align 4, !tbaa !5
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds { float, float }, ptr %98, i64 %179
  %181 = getelementptr inbounds { float, float }, ptr %180, i32 0, i32 0
  %182 = load float, ptr %181, align 8
  %183 = getelementptr inbounds { float, float }, ptr %180, i32 0, i32 1
  %184 = load float, ptr %183, align 4
  %185 = fpext float %184 to double
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.17, double noundef %177, double noundef %185) #7
  br label %187

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

190:                                              ; preds = %164
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %214, %190
  %192 = load i32, ptr %19, align 4, !tbaa !5
  %193 = load i32, ptr %6, align 4, !tbaa !5
  %194 = icmp ult i32 %192, %193
  br i1 %194, label %195, label %217

195:                                              ; preds = %191
  %196 = load ptr, ptr %21, align 8, !tbaa !9
  %197 = load i32, ptr %19, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds { float, float }, ptr %101, i64 %198
  %200 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 0
  %201 = load float, ptr %200, align 8
  %202 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 1
  %203 = load float, ptr %202, align 4
  %204 = fpext float %201 to double
  %205 = load i32, ptr %19, align 4, !tbaa !5
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds { float, float }, ptr %101, i64 %206
  %208 = getelementptr inbounds { float, float }, ptr %207, i32 0, i32 0
  %209 = load float, ptr %208, align 8
  %210 = getelementptr inbounds { float, float }, ptr %207, i32 0, i32 1
  %211 = load float, ptr %210, align 4
  %212 = fpext float %211 to double
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.18, double noundef %204, double noundef %212) #7
  br label %214

214:                                              ; preds = %195
  %215 = load i32, ptr %19, align 4, !tbaa !5
  %216 = add i32 %215, 1
  store i32 %216, ptr %19, align 4, !tbaa !5
  br label %191, !llvm.loop !17

217:                                              ; preds = %191
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %241, %217
  %219 = load i32, ptr %19, align 4, !tbaa !5
  %220 = load i32, ptr %7, align 4, !tbaa !5
  %221 = icmp ult i32 %219, %220
  br i1 %221, label %222, label %244

222:                                              ; preds = %218
  %223 = load ptr, ptr %21, align 8, !tbaa !9
  %224 = load i32, ptr %19, align 4, !tbaa !5
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds { float, float }, ptr %104, i64 %225
  %227 = getelementptr inbounds { float, float }, ptr %226, i32 0, i32 0
  %228 = load float, ptr %227, align 8
  %229 = getelementptr inbounds { float, float }, ptr %226, i32 0, i32 1
  %230 = load float, ptr %229, align 4
  %231 = fpext float %228 to double
  %232 = load i32, ptr %19, align 4, !tbaa !5
  %233 = zext i32 %232 to i64
  %234 = getelementptr inbounds { float, float }, ptr %104, i64 %233
  %235 = getelementptr inbounds { float, float }, ptr %234, i32 0, i32 0
  %236 = load float, ptr %235, align 8
  %237 = getelementptr inbounds { float, float }, ptr %234, i32 0, i32 1
  %238 = load float, ptr %237, align 4
  %239 = fpext float %238 to double
  %240 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef @.str.19, double noundef %231, double noundef %239) #7
  br label %241

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

244:                                              ; preds = %218
  br label %112, !llvm.loop !19

245:                                              ; preds = %112
  %246 = load ptr, ptr %21, align 8, !tbaa !9
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.20) #7
  %248 = load ptr, ptr %21, align 8, !tbaa !9
  %249 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %248, ptr noundef @.str.21) #7
  %250 = load ptr, ptr %21, align 8, !tbaa !9
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.22) #7
  %252 = load ptr, ptr %21, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef @.str.23) #7
  %254 = load ptr, ptr %21, align 8, !tbaa !9
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef @.str.24) #7
  %256 = load ptr, ptr %21, align 8, !tbaa !9
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.25) #7
  %258 = load ptr, ptr %21, align 8, !tbaa !9
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %258, ptr noundef @.str.26) #7
  %260 = load ptr, ptr %21, align 8, !tbaa !9
  %261 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef @.str.27) #7
  %262 = load ptr, ptr %21, align 8, !tbaa !9
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef @.str.28) #7
  %264 = load ptr, ptr %21, align 8, !tbaa !9
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef @.str.29) #7
  %266 = load ptr, ptr %21, align 8, !tbaa !9
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.30) #7
  %268 = load ptr, ptr %21, align 8, !tbaa !9
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %268, ptr noundef @.str.31) #7
  %270 = load ptr, ptr %21, align 8, !tbaa !9
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.32) #7
  %272 = load ptr, ptr %21, align 8, !tbaa !9
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %272, ptr noundef @.str.33) #7
  %274 = load ptr, ptr %21, align 8, !tbaa !9
  %275 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.27) #7
  %276 = load ptr, ptr %21, align 8, !tbaa !9
  %277 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %276, ptr noundef @.str.34) #7
  %278 = load ptr, ptr %21, align 8, !tbaa !9
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef @.str.35) #7
  %280 = load ptr, ptr %21, align 8, !tbaa !9
  %281 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.36) #7
  %282 = load ptr, ptr %21, align 8, !tbaa !9
  %283 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %282, ptr noundef @.str.37) #7
  %284 = load ptr, ptr %21, align 8, !tbaa !9
  %285 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %284, ptr noundef @.str.38) #7
  %286 = load ptr, ptr %21, align 8, !tbaa !9
  %287 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %286, ptr noundef @.str.39) #7
  %288 = load ptr, ptr %21, align 8, !tbaa !9
  %289 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %288, ptr noundef @.str.27) #7
  %290 = load ptr, ptr %21, align 8, !tbaa !9
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str.40) #7
  %292 = load ptr, ptr %21, align 8, !tbaa !9
  %293 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %292, ptr noundef @.str.41) #7
  %294 = load ptr, ptr %21, align 8, !tbaa !9
  %295 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str.42) #7
  %296 = load ptr, ptr %21, align 8, !tbaa !9
  %297 = call i32 @fclose(ptr noundef %296)
  %298 = load ptr, ptr %13, align 8, !tbaa !9
  %299 = call i32 @rresamp_crcf_destroy(ptr noundef %298)
  %300 = load ptr, ptr %14, align 8, !tbaa !9
  %301 = call i32 @rresamp_crcf_destroy(ptr noundef %300)
  %302 = call i32 (ptr, ...) @printf(ptr noundef @.str.43, ptr noundef @.str.12)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  %303 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %303)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %304

304:                                              ; preds = %245, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %305 = load i32, ptr %3, align 4
  ret i32 %305
}

; 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

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

; 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

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

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

declare i32 @rresamp_crcf_print(ptr noundef) #1

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

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

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

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

declare i32 @fclose(ptr noundef) #1

declare i32 @rresamp_crcf_destroy(ptr 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: 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 }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

.outer:                                           ; preds = %15, %2
  %.0101.ph = phi float [ %18, %15 ], [ 0x3FC3333340000000, %2 ]
  %.099.ph = phi i32 [ %.099.ph169, %15 ], [ 15, %2 ]
  %.097.ph = phi i32 [ %.097.ph173, %15 ], [ 4, %2 ]
  %.095.ph = phi i32 [ %.095, %15 ], [ 5, %2 ]
  br label %.outer168

.outer168:                                        ; preds = %.outer, %12
  %.099.ph169 = phi i32 [ %.099.ph, %.outer ], [ %14, %12 ]
  %.097.ph170 = phi i32 [ %.097.ph, %.outer ], [ %.097.ph173, %12 ]
  %.095.ph171 = phi i32 [ %.095.ph, %.outer ], [ %.095, %12 ]
  br label %.outer172

.outer172:                                        ; preds = %.outer168, %9
  %.097.ph173 = phi i32 [ %.097.ph170, %.outer168 ], [ %11, %9 ]
  %.095.ph174 = phi i32 [ %.095.ph171, %.outer168 ], [ %.095, %9 ]
  br label %3

3:                                                ; preds = %.outer172, %6
  %.095 = phi i32 [ %8, %6 ], [ %.095.ph174, %.outer172 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8) #8
  switch i32 %4, label %19 [
    i32 -1, label %20
    i32 104, label %5
    i32 80, label %6
    i32 81, label %9
    i32 109, label %12
    i32 98, label %15
  ]

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

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

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

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

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

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

20:                                               ; preds = %3
  %21 = add i32 %.095, -1001
  %or.cond = icmp ult i32 %21, -1000
  br i1 %or.cond, label %22, label %26

22:                                               ; preds = %20
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = load ptr, ptr %1, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.9, ptr noundef %24) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

26:                                               ; preds = %20
  %27 = add i32 %.097.ph173, -1001
  %or.cond3 = icmp ult i32 %27, -1000
  br i1 %or.cond3, label %28, label %32

28:                                               ; preds = %26
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.10, ptr noundef %30) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

32:                                               ; preds = %26
  %33 = icmp ugt i32 %.097.ph173, %.095
  br i1 %33, label %34, label %38

34:                                               ; preds = %32
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = load ptr, ptr %1, align 8, !tbaa !5
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.11, ptr noundef %36) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

38:                                               ; preds = %32
  %39 = tail call ptr @rresamp_crcf_create_prototype(i32 noundef 7, i32 noundef %.095, i32 noundef %.097.ph173, i32 noundef %.099.ph169, float noundef %.0101.ph) #8
  %40 = tail call ptr @rresamp_crcf_create_prototype(i32 noundef 7, i32 noundef %.097.ph173, i32 noundef %.095, i32 noundef %.099.ph169, float noundef %.0101.ph) #8
  %41 = tail call i32 @rresamp_crcf_print(ptr noundef %39) #8
  %42 = zext nneg i32 %.097.ph173 to i64
  %43 = tail call ptr @llvm.stacksave.p0()
  %44 = alloca { float, float }, i64 %42, align 16
  %45 = zext nneg i32 %.095 to i64
  %46 = alloca { float, float }, i64 %45, align 16
  %47 = alloca { float, float }, i64 %42, align 16
  %48 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.13)
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.14) #8
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.15) #8
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.16) #8
  %52 = shl i32 %.099.ph169, 1
  %53 = sub i32 800, %52
  br label %.lr.ph.preheader

.loopexit:                                        ; preds = %.lr.ph122
  %54 = icmp ult i32 %55, 800
  br i1 %54, label %.lr.ph.preheader, label %96, !llvm.loop !11

.lr.ph.preheader:                                 ; preds = %38, %.loopexit
  %.0124 = phi float [ 0x3FE6A09E60000000, %38 ], [ %.1, %.loopexit ]
  %.092123 = phi i32 [ 0, %38 ], [ %55, %.loopexit ]
  %55 = add nuw nsw i32 %.092123, %.097.ph173
  %56 = icmp ugt i32 %55, %53
  %.1 = select i1 %56, float 0.000000e+00, float %.0124
  %57 = insertelement <2 x float> poison, float %.1, i64 0
  %58 = shufflevector <2 x float> %57, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %59 = call i32 @rand() #8
  %60 = and i32 %59, 1
  %.not104 = icmp eq i32 %60, 0
  %61 = select i1 %.not104, i32 -1, i32 1
  %62 = sitofp i32 %61 to float
  %63 = call i32 @rand() #8
  %64 = and i32 %63, 1
  %.not105 = icmp eq i32 %64, 0
  %65 = select i1 %.not105, i32 -1, i32 1
  %66 = sitofp i32 %65 to float
  %67 = call float @llvm.copysign.f32(float 0.000000e+00, float %66)
  %68 = fadd float %67, %62
  %69 = getelementptr inbounds { float, float }, ptr %44, i64 %indvars.iv
  %70 = insertelement <2 x float> poison, float %68, i64 0
  %71 = insertelement <2 x float> %70, float %66, i64 1
  %72 = fmul <2 x float> %58, %71
  store <2 x float> %72, ptr %69, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %42
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph
  %73 = call i32 @rresamp_crcf_execute(ptr noundef %39, ptr noundef nonnull %44, ptr noundef nonnull %46) #8
  %74 = call i32 @rresamp_crcf_execute(ptr noundef %40, ptr noundef nonnull %46, ptr noundef nonnull %47) #8
  br label %.lr.ph118

.lr.ph118:                                        ; preds = %._crit_edge, %.lr.ph118
  %indvars.iv137 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next138, %.lr.ph118 ]
  %75 = getelementptr inbounds { float, float }, ptr %44, i64 %indvars.iv137
  %76 = load float, ptr %75, align 8
  %77 = getelementptr inbounds i8, ptr %75, i64 4
  %78 = fpext float %76 to double
  %79 = load float, ptr %77, align 4
  %80 = fpext float %79 to double
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.17, double noundef %78, double noundef %80) #8
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %exitcond141.not = icmp eq i64 %indvars.iv.next138, %42
  br i1 %exitcond141.not, label %.lr.ph120, label %.lr.ph118, !llvm.loop !13

.lr.ph120:                                        ; preds = %.lr.ph118, %.lr.ph120
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %.lr.ph120 ], [ 0, %.lr.ph118 ]
  %82 = getelementptr inbounds { float, float }, ptr %46, i64 %indvars.iv142
  %83 = load float, ptr %82, align 8
  %84 = getelementptr inbounds i8, ptr %82, i64 4
  %85 = fpext float %83 to double
  %86 = load float, ptr %84, align 4
  %87 = fpext float %86 to double
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.18, double noundef %85, double noundef %87) #8
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next143, %45
  br i1 %exitcond146.not, label %.lr.ph122, label %.lr.ph120, !llvm.loop !14

.lr.ph122:                                        ; preds = %.lr.ph120, %.lr.ph122
  %indvars.iv147 = phi i64 [ %indvars.iv.next148, %.lr.ph122 ], [ 0, %.lr.ph120 ]
  %89 = getelementptr inbounds { float, float }, ptr %47, i64 %indvars.iv147
  %90 = load float, ptr %89, align 8
  %91 = getelementptr inbounds i8, ptr %89, i64 4
  %92 = fpext float %90 to double
  %93 = load float, ptr %91, align 4
  %94 = fpext float %93 to double
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.19, double noundef %92, double noundef %94) #8
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond151.not = icmp eq i64 %indvars.iv.next148, %42
  br i1 %exitcond151.not, label %.loopexit, label %.lr.ph122, !llvm.loop !15

96:                                               ; preds = %.loopexit
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.20) #8
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.21) #8
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.22) #8
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.23) #8
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.24) #8
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.25) #8
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.26) #8
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.27) #8
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.28) #8
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.29) #8
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.30) #8
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.31) #8
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.32) #8
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.33) #8
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.27) #8
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.34) #8
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.35) #8
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.36) #8
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.37) #8
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.38) #8
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.39) #8
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.27) #8
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.40) #8
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.41) #8
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.42) #8
  %122 = call i32 @fclose(ptr noundef %48)
  %123 = call i32 @rresamp_crcf_destroy(ptr noundef %39) #8
  %124 = call i32 @rresamp_crcf_destroy(ptr noundef %40) #8
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43, ptr noundef nonnull @.str.12)
  call void @llvm.stackrestore.p0(ptr %43)
  br label %126

126:                                              ; preds = %96, %5
  ret i32 0
}

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

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

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

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

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

declare ptr @rresamp_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #5

declare i32 @rresamp_crcf_print(ptr noundef) local_unnamed_addr #5

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

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

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

declare i32 @rresamp_crcf_execute(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

declare i32 @rresamp_crcf_destroy(ptr noundef) local_unnamed_addr #5

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

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

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

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

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


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