; LLVM IR from jgaeddert/liquid-dsp :: examples (nyquist_filter_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.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@stderr = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [12 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 [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.42 = 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 i64, align 8
  %15 = alloca i32, align 4
  %16 = 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) #8
  store i32 2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 4, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store float 0x3FD51EB860000000, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  br label %17

17:                                               ; preds = %79, %2
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = call i32 @getopt(i32 noundef %18, ptr noundef %19, ptr noundef @.str.6) #8
  store i32 %20, ptr %10, align 4, !tbaa !5
  %21 = icmp ne i32 %20, -1
  br i1 %21, label %22, label %80

22:                                               ; preds = %17
  %23 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %23, label %78 [
    i32 117, label %24
    i32 104, label %24
    i32 116, label %25
    i32 107, label %68
    i32 109, label %71
    i32 98, label %74
  ]

24:                                               ; preds = %22, %22
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %212

25:                                               ; preds = %22
  %26 = load ptr, ptr @optarg, align 8, !tbaa !9
  %27 = call i32 @strcmp(ptr noundef %26, ptr noundef @.str.7) #9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %67

30:                                               ; preds = %25
  %31 = load ptr, ptr @optarg, align 8, !tbaa !9
  %32 = call i32 @strcmp(ptr noundef %31, ptr noundef @.str.8) #9
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %30
  store i32 2, ptr %9, align 4, !tbaa !5
  br label %66

35:                                               ; preds = %30
  %36 = load ptr, ptr @optarg, align 8, !tbaa !9
  %37 = call i32 @strcmp(ptr noundef %36, ptr noundef @.str.9) #9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %35
  store i32 3, ptr %9, align 4, !tbaa !5
  br label %65

40:                                               ; preds = %35
  %41 = load ptr, ptr @optarg, align 8, !tbaa !9
  %42 = call i32 @strcmp(ptr noundef %41, ptr noundef @.str.10) #9
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  store i32 4, ptr %9, align 4, !tbaa !5
  br label %64

45:                                               ; preds = %40
  %46 = load ptr, ptr @optarg, align 8, !tbaa !9
  %47 = call i32 @strcmp(ptr noundef %46, ptr noundef @.str.11) #9
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %45
  store i32 5, ptr %9, align 4, !tbaa !5
  br label %63

50:                                               ; preds = %45
  %51 = load ptr, ptr @optarg, align 8, !tbaa !9
  %52 = call i32 @strcmp(ptr noundef %51, ptr noundef @.str.12) #9
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %50
  store i32 6, ptr %9, align 4, !tbaa !5
  br label %62

55:                                               ; preds = %50
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 0
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = load ptr, ptr @optarg, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.13, ptr noundef %59, ptr noundef %60) #8
  call void @exit(i32 noundef 1) #10
  unreachable

62:                                               ; preds = %54
  br label %63

63:                                               ; preds = %62, %49
  br label %64

64:                                               ; preds = %63, %44
  br label %65

65:                                               ; preds = %64, %39
  br label %66

66:                                               ; preds = %65, %34
  br label %67

67:                                               ; preds = %66, %29
  br label %79

68:                                               ; preds = %22
  %69 = load ptr, ptr @optarg, align 8, !tbaa !9
  %70 = call i32 @atoi(ptr noundef %69) #9
  store i32 %70, ptr %6, align 4, !tbaa !5
  br label %79

71:                                               ; preds = %22
  %72 = load ptr, ptr @optarg, align 8, !tbaa !9
  %73 = call i32 @atoi(ptr noundef %72) #9
  store i32 %73, ptr %7, align 4, !tbaa !5
  br label %79

74:                                               ; preds = %22
  %75 = load ptr, ptr @optarg, align 8, !tbaa !9
  %76 = call double @atof(ptr noundef %75) #9
  %77 = fptrunc double %76 to float
  store float %77, ptr %8, align 4, !tbaa !11
  br label %79

78:                                               ; preds = %22
  call void @exit(i32 noundef 1) #10
  unreachable

79:                                               ; preds = %74, %71, %68, %67
  br label %17, !llvm.loop !13

80:                                               ; preds = %17
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = icmp ult i32 %81, 2
  br i1 %82, label %83, label %89

83:                                               ; preds = %80
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 0
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.14, ptr noundef %87) #8
  call void @exit(i32 noundef 1) #10
  unreachable

89:                                               ; preds = %80
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = icmp ult i32 %90, 1
  br i1 %91, label %92, label %98

92:                                               ; preds = %89
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = load ptr, ptr %5, align 8, !tbaa !9
  %95 = getelementptr inbounds ptr, ptr %94, i64 0
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.15, ptr noundef %96) #8
  call void @exit(i32 noundef 1) #10
  unreachable

98:                                               ; preds = %89
  %99 = load float, ptr %8, align 4, !tbaa !11
  %100 = fcmp ole float %99, 0.000000e+00
  br i1 %100, label %104, label %101

101:                                              ; preds = %98
  %102 = load float, ptr %8, align 4, !tbaa !11
  %103 = fcmp oge float %102, 1.000000e+00
  br i1 %103, label %104, label %110

104:                                              ; preds = %101, %98
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %106, i64 0
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.16, ptr noundef %108) #8
  call void @exit(i32 noundef 1) #10
  unreachable

110:                                              ; preds = %101
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = mul i32 2, %113
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = mul i32 %114, %115
  %117 = add i32 %116, 1
  store i32 %117, ptr %12, align 4, !tbaa !5
  %118 = load i32, ptr %12, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = call ptr @llvm.stacksave.p0()
  store ptr %120, ptr %13, align 8
  %121 = alloca float, i64 %119, align 16
  store i64 %119, ptr %14, align 8
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = load float, ptr %8, align 4, !tbaa !11
  %126 = call i32 @liquid_firdes_prototype(i32 noundef %122, i32 noundef %123, i32 noundef %124, float noundef %125, float noundef 0.000000e+00, ptr noundef %121)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %140, %112
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = load i32, ptr %12, align 4, !tbaa !5
  %130 = icmp ult i32 %128, %129
  br i1 %130, label %131, label %143

131:                                              ; preds = %127
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = add i32 %132, 1
  %134 = load i32, ptr %15, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds float, ptr %121, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fpext float %137 to double
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %133, double noundef %138)
  br label %140

140:                                              ; preds = %131
  %141 = load i32, ptr %15, align 4, !tbaa !5
  %142 = add i32 %141, 1
  store i32 %142, ptr %15, align 4, !tbaa !5
  br label %127, !llvm.loop !15

143:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %144 = call noalias ptr @fopen(ptr noundef @.str.18, ptr noundef @.str.19)
  store ptr %144, ptr %16, align 8, !tbaa !9
  %145 = load ptr, ptr %16, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.20, ptr noundef @.str.18) #8
  %147 = load ptr, ptr %16, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.21) #8
  %149 = load ptr, ptr %16, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.22) #8
  %151 = load ptr, ptr %16, align 8, !tbaa !9
  %152 = load i32, ptr %6, align 4, !tbaa !5
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.23, i32 noundef %152) #8
  %154 = load ptr, ptr %16, align 8, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !5
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str.24, i32 noundef %155) #8
  %157 = load ptr, ptr %16, align 8, !tbaa !9
  %158 = load float, ptr %8, align 4, !tbaa !11
  %159 = fpext float %158 to double
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.25, double noundef %159) #8
  %161 = load ptr, ptr %16, align 8, !tbaa !9
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.26) #8
  %163 = load ptr, ptr %16, align 8, !tbaa !9
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.27) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %179, %143
  %166 = load i32, ptr %15, align 4, !tbaa !5
  %167 = load i32, ptr %12, align 4, !tbaa !5
  %168 = icmp ult i32 %166, %167
  br i1 %168, label %169, label %182

169:                                              ; preds = %165
  %170 = load ptr, ptr %16, align 8, !tbaa !9
  %171 = load i32, ptr %15, align 4, !tbaa !5
  %172 = add i32 %171, 1
  %173 = load i32, ptr %15, align 4, !tbaa !5
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds float, ptr %121, i64 %174
  %176 = load float, ptr %175, align 4, !tbaa !11
  %177 = fpext float %176 to double
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.28, i32 noundef %172, double noundef %177) #8
  br label %179

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

182:                                              ; preds = %165
  %183 = load ptr, ptr %16, align 8, !tbaa !9
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.29) #8
  %185 = load ptr, ptr %16, align 8, !tbaa !9
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str.30) #8
  %187 = load ptr, ptr %16, align 8, !tbaa !9
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.31) #8
  %189 = load ptr, ptr %16, align 8, !tbaa !9
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.32) #8
  %191 = load ptr, ptr %16, align 8, !tbaa !9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.33) #8
  %193 = load ptr, ptr %16, align 8, !tbaa !9
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.34) #8
  %195 = load ptr, ptr %16, align 8, !tbaa !9
  %196 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %195, ptr noundef @.str.35) #8
  %197 = load ptr, ptr %16, align 8, !tbaa !9
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.36) #8
  %199 = load ptr, ptr %16, align 8, !tbaa !9
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.37) #8
  %201 = load ptr, ptr %16, align 8, !tbaa !9
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.38) #8
  %203 = load ptr, ptr %16, align 8, !tbaa !9
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.39) #8
  %205 = load ptr, ptr %16, align 8, !tbaa !9
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.40) #8
  %207 = load ptr, ptr %16, align 8, !tbaa !9
  %208 = call i32 @fclose(ptr noundef %207)
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.41, ptr noundef @.str.18)
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  %211 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %211)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %212

212:                                              ; preds = %182, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %213 = load i32, ptr %3, align 4
  ret i32 %213
}

; 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: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

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

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

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

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

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

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

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

declare i32 @fclose(ptr noundef) #1

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

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

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


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

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

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

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

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

3:                                                ; preds = %.backedge, %2
  %.062 = phi i32 [ 3, %2 ], [ %.062.be, %.backedge ]
  %.060 = phi float [ 0x3FD51EB860000000, %2 ], [ %.060.be, %.backedge ]
  %.058 = phi i32 [ 4, %2 ], [ %.058.be, %.backedge ]
  %.056 = phi i32 [ 2, %2 ], [ %.056.be, %.backedge ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.6) #8
  switch i32 %4, label %39 [
    i32 -1, label %40
    i32 117, label %5
    i32 104, label %5
    i32 116, label %6
    i32 107, label %29
    i32 109, label %32
    i32 98, label %35
  ]

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

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !5
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.7) #9
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %.backedge, label %10

10:                                               ; preds = %6
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.8) #9
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %.backedge, label %13

13:                                               ; preds = %10
  %14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.9) #9
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %.backedge, label %16

16:                                               ; preds = %13
  %17 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %.backedge, label %19

19:                                               ; preds = %16
  %20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.11) #9
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %.backedge, label %22

22:                                               ; preds = %19
  %23 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.12) #9
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %.backedge, label %25

.backedge:                                        ; preds = %22, %19, %16, %13, %10, %6, %35, %32, %29
  %.062.be = phi i32 [ %.062, %35 ], [ %.062, %32 ], [ %.062, %29 ], [ 1, %6 ], [ 2, %10 ], [ 3, %13 ], [ 4, %16 ], [ 5, %19 ], [ 6, %22 ]
  %.060.be = phi float [ %38, %35 ], [ %.060, %32 ], [ %.060, %29 ], [ %.060, %6 ], [ %.060, %10 ], [ %.060, %13 ], [ %.060, %16 ], [ %.060, %19 ], [ %.060, %22 ]
  %.058.be = phi i32 [ %.058, %35 ], [ %34, %32 ], [ %.058, %29 ], [ %.058, %6 ], [ %.058, %10 ], [ %.058, %13 ], [ %.058, %16 ], [ %.058, %19 ], [ %.058, %22 ]
  %.056.be = phi i32 [ %.056, %35 ], [ %.056, %32 ], [ %31, %29 ], [ %.056, %6 ], [ %.056, %10 ], [ %.056, %13 ], [ %.056, %16 ], [ %.056, %19 ], [ %.056, %22 ]
  br label %3, !llvm.loop !9

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

29:                                               ; preds = %3
  %30 = load ptr, ptr @optarg, align 8, !tbaa !5
  %31 = tail call i32 @atoi(ptr nocapture noundef %30) #9
  br label %.backedge

32:                                               ; preds = %3
  %33 = load ptr, ptr @optarg, align 8, !tbaa !5
  %34 = tail call i32 @atoi(ptr nocapture noundef %33) #9
  br label %.backedge

35:                                               ; preds = %3
  %36 = load ptr, ptr @optarg, align 8, !tbaa !5
  %37 = tail call double @atof(ptr noundef %36) #9
  %38 = fptrunc double %37 to float
  br label %.backedge

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

40:                                               ; preds = %3
  %41 = icmp ult i32 %.056, 2
  br i1 %41, label %42, label %46

42:                                               ; preds = %40
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = load ptr, ptr %1, align 8, !tbaa !5
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.14, ptr noundef %44) #10
  tail call void @exit(i32 noundef 1) #11
  unreachable

46:                                               ; preds = %40
  %47 = icmp eq i32 %.058, 0
  br i1 %47, label %48, label %52

48:                                               ; preds = %46
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = load ptr, ptr %1, align 8, !tbaa !5
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.15, ptr noundef %50) #10
  tail call void @exit(i32 noundef 1) #11
  unreachable

52:                                               ; preds = %46
  %53 = fcmp ole float %.060, 0.000000e+00
  %54 = fcmp oge float %.060, 1.000000e+00
  %or.cond = or i1 %53, %54
  br i1 %or.cond, label %55, label %59

55:                                               ; preds = %52
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = load ptr, ptr %1, align 8, !tbaa !5
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.16, ptr noundef %57) #10
  tail call void @exit(i32 noundef 1) #11
  unreachable

59:                                               ; preds = %52
  %60 = shl i32 %.056, 1
  %61 = mul i32 %60, %.058
  %62 = or disjoint i32 %61, 1
  %63 = zext i32 %62 to i64
  %64 = tail call ptr @llvm.stacksave.p0()
  %65 = alloca float, i64 %63, align 16
  %66 = call i32 @liquid_firdes_prototype(i32 noundef %.062, i32 noundef %.056, i32 noundef %.058, float noundef %.060, float noundef 0.000000e+00, ptr noundef nonnull %65) #8
  %67 = or disjoint i32 %61, 1
  %wide.trip.count = zext i32 %67 to i64
  br label %68

68:                                               ; preds = %59, %68
  %indvars.iv = phi i64 [ 0, %59 ], [ %indvars.iv.next, %68 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %69 = getelementptr inbounds float, ptr %65, i64 %indvars.iv
  %70 = load float, ptr %69, align 4, !tbaa !11
  %71 = fpext float %70 to double
  %72 = trunc nuw i64 %indvars.iv.next to i32
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %72, double noundef %71)
  %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond, label %74, label %68, !llvm.loop !13

74:                                               ; preds = %68
  %75 = call noalias ptr @fopen(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19)
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.18) #8
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.21) #8
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.22) #8
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.23, i32 noundef %.056) #8
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.24, i32 noundef %.058) #8
  %81 = fpext float %.060 to double
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.25, double noundef %81) #8
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.26) #8
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.27) #8
  br label %85

85:                                               ; preds = %74, %85
  %indvars.iv94 = phi i64 [ 0, %74 ], [ %indvars.iv.next95, %85 ]
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %86 = getelementptr inbounds float, ptr %65, i64 %indvars.iv94
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = fpext float %87 to double
  %89 = trunc nuw i64 %indvars.iv.next95 to i32
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.28, i32 noundef %89, double noundef %88) #8
  %exitcond98 = icmp eq i64 %indvars.iv.next95, %wide.trip.count
  br i1 %exitcond98, label %91, label %85, !llvm.loop !14

91:                                               ; preds = %85
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.29) #8
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.30) #8
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.31) #8
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.32) #8
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.33) #8
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.34) #8
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.35) #8
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.36) #8
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.37) #8
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.38) #8
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.39) #8
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.40) #8
  %104 = call i32 @fclose(ptr noundef %75)
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef nonnull @.str.18)
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  call void @llvm.stackrestore.p0(ptr %64)
  br label %107

107:                                              ; preds = %91, %5
  ret i32 0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture 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: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { cold nounwind }
attributes #11 = { noreturn nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass