#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int getopt(int, char **, char *);
int /*<<< orphan*/ make_rx_filter(int, int, double, double, double, int,
                                  char const *);
int /*<<< orphan*/ make_tx_filter(int, int, double, double, double, int,
                                  char const *);
char *optarg;
scalar_t__ strcmp(char const *, char *);
int /*<<< orphan*/ usage();
int main(int argc, char **argv) {
  int rx_coeff_sets;
  int rx_coeffs_per_filter;
  int tx_coeff_sets;
  int tx_coeffs_per_filter;
  int opt;
  int transmit_modem;
  int fixed_point;
  double carrier;
  double baud_rate;
  double rx_excess_bandwidth;
  double tx_excess_bandwidth;
  const char *rx_tag;
  const char *tx_tag;
  const char *modem;
  fixed_point = 0;
  transmit_modem = 0;
  modem = "";
  while ((opt = getopt(argc, argv, "im:rt")) != -1) {
    switch (opt) {
    case 'i':
      fixed_point = (!0);
      break;
    case 'm':
      modem = optarg;
      break;
    case 'r':
      transmit_modem = 0;
      break;
    case 't':
      transmit_modem = (!0);
      break;
    default:
      usage();
      exit(2);
      break;
    }
  }
  if (strcmp(modem, "V.17") == 0 || strcmp(modem, "V.32bis") == 0) {
    rx_coeff_sets = 192;
    rx_coeffs_per_filter = 27;
    rx_excess_bandwidth = 0.5;
    tx_coeff_sets = 10;
    tx_coeffs_per_filter = 9;
    tx_excess_bandwidth = 0.25;
    carrier = 1800.0;
    baud_rate = 2400.0;
    rx_tag = "";
    tx_tag = "";
  } else if (strcmp(modem, "V.22bis") == 0) {
    rx_coeff_sets = 12;
    rx_coeffs_per_filter = 27;
    rx_excess_bandwidth = 0.75;
    tx_coeff_sets = 40;
    tx_coeffs_per_filter = 9;
    tx_excess_bandwidth = 0.75;
    carrier = 1200.0;
    baud_rate = 600.0;
    rx_tag = "";
    tx_tag = "";
  } else if (strcmp(modem, "V.22bis1200") == 0) {
    rx_coeff_sets = 12;
    rx_coeffs_per_filter = 27;
    rx_excess_bandwidth = 0.75;
    tx_coeff_sets = 40;
    tx_coeffs_per_filter = 9;
    tx_excess_bandwidth = 0.75;
    carrier = 1200.0;
    baud_rate = 600.0;
    rx_tag = "_1200";
    tx_tag = "_1200";
  } else if (strcmp(modem, "V.22bis2400") == 0) {
    rx_coeff_sets = 12;
    rx_coeffs_per_filter = 27;
    rx_excess_bandwidth = 0.75;
    tx_coeff_sets = 40;
    tx_coeffs_per_filter = 9;
    tx_excess_bandwidth = 0.75;
    carrier = 2400.0;
    baud_rate = 600.0;
    rx_tag = "_2400";
    tx_tag = "_2400";
  } else if (strcmp(modem, "V.27ter2400") == 0) {
    rx_coeff_sets = 12;
    rx_coeffs_per_filter = 27;
    rx_excess_bandwidth = 0.5;
    tx_coeff_sets = 20;
    tx_coeffs_per_filter = 9;
    tx_excess_bandwidth = 0.5;
    carrier = 1800.0;
    baud_rate = 1200.0;
    rx_tag = "_2400";
    tx_tag = "_2400";
  } else if (strcmp(modem, "V.27ter4800") == 0) {
    rx_coeff_sets = 8;
    rx_coeffs_per_filter = 27;
    rx_excess_bandwidth = 0.5;
    tx_coeff_sets = 5;
    tx_coeffs_per_filter = 9;
    tx_excess_bandwidth = 0.5;
    carrier = 1800.0;
    baud_rate = 1600.0;
    rx_tag = "_4800";
    tx_tag = "_4800";
  } else if (strcmp(modem, "V.29") == 0) {
    rx_coeff_sets = 48;
    rx_coeffs_per_filter = 27;
    rx_excess_bandwidth = 0.5;
    tx_coeff_sets = 10;
    tx_coeffs_per_filter = 9;
    tx_excess_bandwidth = 0.25;
    carrier = 1700.0;
    baud_rate = 2400.0;
    rx_tag = "";
    tx_tag = "";
  } else {
    usage();
    exit(2);
  }
  if (transmit_modem) {
    make_tx_filter(tx_coeff_sets, tx_coeffs_per_filter, carrier, baud_rate,
                   tx_excess_bandwidth, fixed_point, tx_tag);
  } else {
    make_rx_filter(rx_coeff_sets, rx_coeffs_per_filter, carrier, baud_rate,
                   rx_excess_bandwidth, fixed_point, rx_tag);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
lea    0xf19(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xedb(%rip),%rdx
call   1060 <getopt@plt>
mov    %eax,-0x24(%rbp)
cmp    $0xffffffff,%eax
je     1224 <main+0xc4>
mov    -0x24(%rbp),%eax
add    $0xffffff97,%eax
mov    %eax,%ecx
mov    %rcx,-0x70(%rbp)
sub    $0xb,%eax
ja     120e <main+0xae>
mov    -0x70(%rbp),%rax
lea    0xe7a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1,-0x2c(%rbp)
jmp    121f <main+0xbf>
mov    0x2e0e(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x68(%rbp)
jmp    121f <main+0xbf>
movl   $0x0,-0x28(%rbp)
jmp    121f <main+0xbf>
movl   $0x1,-0x28(%rbp)
jmp    121f <main+0xbf>
mov    $0x0,%al
call   1050 <usage@plt>
mov    $0x2,%edi
call   1070 <exit@plt>
jmp    118f <main+0x2f>
mov    -0x68(%rbp),%rdi
lea    0xe4f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1258 <main+0xf8>
mov    -0x68(%rbp),%rdi
lea    0xe3a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12c3 <main+0x163>
movl   $0xc0,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xdaa(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0xa,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xd87(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xd92(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xd5d(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xdf5(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xdea(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    1610 <main+0x4b0>
mov    -0x68(%rbp),%rdi
lea    0xdbd(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1348 <main+0x1e8>
movl   $0xc,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xd4d(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x28,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xd32(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xd15(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xd10(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xd70(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xd65(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    160b <main+0x4ab>
mov    -0x68(%rbp),%rdi
lea    0xd40(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13cd <main+0x26d>
movl   $0xc,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xcc8(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x28,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xcad(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xc90(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xc8b(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xce6(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xcdb(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    1606 <main+0x4a6>
mov    -0x68(%rbp),%rdi
lea    0xccd(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1452 <main+0x2f2>
movl   $0xc,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xc43(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x28,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xc28(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xbdb(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xc06(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xc73(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xc68(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    1601 <main+0x4a1>
mov    -0x68(%rbp),%rdi
lea    0xc5a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    14d7 <main+0x377>
movl   $0xc,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xb96(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x14,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xb7b(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xb7e(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xb79(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xbee(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xbe3(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    15fc <main+0x49c>
mov    -0x68(%rbp),%rdi
lea    0xbe1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    155c <main+0x3fc>
movl   $0x8,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xb11(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x5,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xaf6(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xaf9(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xae4(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xb87(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xb7c(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    15f7 <main+0x497>
mov    -0x68(%rbp),%rdi
lea    0xb6e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    15e1 <main+0x481>
movl   $0x30,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xa8c(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0xa,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xa69(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xa54(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xa3f(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xad7(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xacc(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    15f2 <main+0x492>
mov    $0x0,%al
call   1050 <usage@plt>
mov    $0x2,%edi
call   1070 <exit@plt>
jmp    15f7 <main+0x497>
jmp    15fc <main+0x49c>
jmp    1601 <main+0x4a1>
jmp    1606 <main+0x4a6>
jmp    160b <main+0x4ab>
jmp    1610 <main+0x4b0>
cmpl   $0x0,-0x28(%rbp)
je     1640 <main+0x4e0>
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
mov    -0x2c(%rbp),%edx
mov    -0x60(%rbp),%rcx
call   1080 <make_tx_filter@plt>
jmp    1661 <main+0x501>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
mov    -0x2c(%rbp),%edx
mov    -0x58(%rbp),%rcx
call   1030 <make_rx_filter@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbp
mov    %edi,%ebx
lea    0xefd(%rip),%r13
xor    %r14d,%r14d
lea    0xec7(%rip),%r15
mov    0x2e70(%rip),%r12
movl   $0x0,0x4(%rsp)
jmp    11a4 <main+0x44>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r12),%r13
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %r15,%rdx
call   1060 <getopt@plt>
cmp    $0x6d,%eax
je     11a0 <main+0x40>
cmp    $0x71,%eax
jg     11d3 <main+0x73>
cmp    $0xffffffff,%eax
je     11ee <main+0x8e>
cmp    $0x69,%eax
jne    144e <main+0x2ee>
movl   $0x1,0x4(%rsp)
jmp    11a4 <main+0x44>
cmp    $0x72,%eax
je     11e9 <main+0x89>
cmp    $0x74,%eax
jne    144e <main+0x2ee>
mov    $0x1,%r14d
jmp    11a4 <main+0x44>
xor    %r14d,%r14d
jmp    11a4 <main+0x44>
lea    0xe59(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
lea    0xe70(%rip),%rbx
movsd  0xdf4(%rip),%xmm3
movsd  0xdf4(%rip),%xmm2
movsd  0xdf4(%rip),%xmm1
movsd  0xdf4(%rip),%xmm0
mov    $0xc0,%r15d
mov    $0xa,%r12d
test   %rax,%rax
je     1375 <main+0x215>
lea    0xe13(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1349 <main+0x1e9>
lea    0xe03(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
movsd  0xdb8(%rip),%xmm2
movsd  0xdb8(%rip),%xmm1
movsd  0xdb8(%rip),%xmm0
mov    $0xc,%r15d
mov    $0x28,%r12d
test   %rax,%rax
je     1372 <main+0x212>
lea    0xdcf(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13b7 <main+0x257>
lea    0xdc9(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
lea    0xdc6(%rip),%rbp
test   %rax,%rax
je     13df <main+0x27f>
lea    0xdbc(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
movsd  0xd2d(%rip),%xmm2
test   %rax,%rax
je     1403 <main+0x2a3>
lea    0xda8(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     141b <main+0x2bb>
lea    0xda2(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    144e <main+0x2ee>
movsd  0xcf4(%rip),%xmm1
movsd  0xd1c(%rip),%xmm0
mov    $0x30,%r15d
mov    $0xa,%r12d
mov    %rbx,%rbp
mov    0x4(%rsp),%edx
movsd  0xcc9(%rip),%xmm2
movsd  0xcb9(%rip),%xmm3
jmp    137c <main+0x21c>
movsd  0xcc7(%rip),%xmm0
mov    %rbx,%rbp
mov    0x4(%rsp),%edx
movsd  0xca8(%rip),%xmm2
movsd  0xc98(%rip),%xmm3
movsd  0xca0(%rip),%xmm1
jmp    137c <main+0x21c>
movaps %xmm2,%xmm3
mov    %rbx,%rbp
mov    0x4(%rsp),%edx
test   %r14d,%r14d
je     1396 <main+0x236>
mov    %r12d,%edi
mov    $0x9,%esi
movaps %xmm3,%xmm2
mov    %rbp,%rcx
call   1080 <make_tx_filter@plt>
jmp    13a6 <main+0x246>
mov    %r15d,%edi
mov    $0x1b,%esi
mov    %rbp,%rcx
call   1030 <make_rx_filter@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcb1(%rip),%rbp
movsd  0xc5a(%rip),%xmm2
movaps %xmm2,%xmm3
mov    0x4(%rsp),%edx
movsd  0xc53(%rip),%xmm1
movsd  0xc53(%rip),%xmm0
jmp    137c <main+0x21c>
movsd  0xc29(%rip),%xmm0
movsd  0xc31(%rip),%xmm2
movaps %xmm2,%xmm3
mov    0x4(%rsp),%edx
movsd  0xc2a(%rip),%xmm1
jmp    137c <main+0x21c>
movsd  0xc25(%rip),%xmm1
mov    $0x14,%r12d
movsd  0xbff(%rip),%xmm0
jmp    1446 <main+0x2e6>
lea    0xc7d(%rip),%rbp
movsd  0xc0e(%rip),%xmm1
mov    $0x8,%r15d
mov    $0x5,%r12d
movsd  0xbda(%rip),%xmm0
movsd  0xbc2(%rip),%xmm2
movaps %xmm2,%xmm3
jmp    1378 <main+0x218>
xor    %eax,%eax
call   1050 <usage@plt>
mov    $0x2,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [6 x i8] c"im:rt\00"
@optarg = global i8* null
@.str.2 = [5 x i8] c"V.17\00"
@.str.3 = [8 x i8] c"V.32bis\00"
@.str.4 = [8 x i8] c"V.22bis\00"
@.str.5 = [12 x i8] c"V.22bis1200\00"
@.str.6 = [6 x i8] c"_1200\00"
@.str.7 = [12 x i8] c"V.22bis2400\00"
@.str.8 = [6 x i8] c"_2400\00"
@.str.9 = [12 x i8] c"V.27ter2400\00"
@.str.10 = [12 x i8] c"V.27ter4800\00"
@.str.11 = [6 x i8] c"_4800\00"
@.str.12 = [5 x i8] c"V.29\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %12
store i32 0, i32* %11
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %19
br label %20
20: ; preds = %35, %2
%21 = load i32, i32* %4
%22 = load i8**, i8*** %5
%23 = call i32 @getopt(i32 %21, i8** %22, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 %23, i32* %10
%24 = icmp ne i32 %23, -1
br i1 %24, label %25, label %36
25: ; preds = %20
%26 = load i32, i32* %10
switch i32 %26, label %32 [
i32 105, label %27
i32 109, label %28
i32 114, label %30
i32 116, label %31
]
27: ; preds = %25
store i32 1, i32* %12
br label %35
28: ; preds = %25
%29 = load i8*, i8** @optarg
store i8* %29, i8** %19
br label %35
30: ; preds = %25
store i32 0, i32* %11
br label %35
31: ; preds = %25
store i32 1, i32* %11
br label %35
32: ; preds = %25
%33 = call i32 (...) @usage()
%34 = call i32 @exit(i32 2)
unreachable
35: ; preds = %31, %30, %28, %27
br label %20
36: ; preds = %20
%37 = load i8*, i8** %19
%38 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %44, label %40
40: ; preds = %36
%41 = load i8*, i8** %19
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %40, %36
store i32 192, i32* %6
store i32 27, i32* %7
store double 5.000000e-01, double* %15
store i32 10, i32* %8
store i32 9, i32* %9
store double 2.500000e-01, double* %16
store double 1.800000e+03, double* %13
store double 2.400000e+03, double* %14
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %17
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %18
br label %84
45: ; preds = %40
%46 = load i8*, i8** %19
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %45
store i32 12, i32* %6
store i32 27, i32* %7
store double 7.500000e-01, double* %15
store i32 40, i32* %8
store i32 9, i32* %9
store double 7.500000e-01, double* %16
store double 1.200000e+03, double* %13
store double 6.000000e+02, double* %14
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %17
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %18
br label %83
50: ; preds = %45
%51 = load i8*, i8** %19
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %50
store i32 12, i32* %6
store i32 27, i32* %7
store double 7.500000e-01, double* %15
store i32 40, i32* %8
store i32 9, i32* %9
store double 7.500000e-01, double* %16
store double 1.200000e+03, double* %13
store double 6.000000e+02, double* %14
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8** %17
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8** %18
br label %82
55: ; preds = %50
%56 = load i8*, i8** %19
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %55
store i32 12, i32* %6
store i32 27, i32* %7
store double 7.500000e-01, double* %15
store i32 40, i32* %8
store i32 9, i32* %9
store double 7.500000e-01, double* %16
store double 2.400000e+03, double* %13
store double 6.000000e+02, double* %14
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8** %17
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8** %18
br label %81
60: ; preds = %55
%61 = load i8*, i8** %19
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %60
store i32 12, i32* %6
store i32 27, i32* %7
store double 5.000000e-01, double* %15
store i32 20, i32* %8
store i32 9, i32* %9
store double 5.000000e-01, double* %16
store double 1.800000e+03, double* %13
store double 1.200000e+03, double* %14
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8** %17
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8** %18
br label %80
65: ; preds = %60
%66 = load i8*, i8** %19
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %65
store i32 8, i32* %6
store i32 27, i32* %7
store double 5.000000e-01, double* %15
store i32 5, i32* %8
store i32 9, i32* %9
store double 5.000000e-01, double* %16
store double 1.800000e+03, double* %13
store double 1.600000e+03, double* %14
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8** %17
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8** %18
br label %79
70: ; preds = %65
%71 = load i8*, i8** %19
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %75
74: ; preds = %70
store i32 48, i32* %6
store i32 27, i32* %7
store double 5.000000e-01, double* %15
store i32 10, i32* %8
store i32 9, i32* %9
store double 2.500000e-01, double* %16
store double 1.700000e+03, double* %13
store double 2.400000e+03, double* %14
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %17
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %18
br label %78
75: ; preds = %70
%76 = call i32 (...) @usage()
%77 = call i32 @exit(i32 2)
unreachable
78: ; preds = %74
br label %79
79: ; preds = %78, %69
br label %80
80: ; preds = %79, %64
br label %81
81: ; preds = %80, %59
br label %82
82: ; preds = %81, %54
br label %83
83: ; preds = %82, %49
br label %84
84: ; preds = %83, %44
%85 = load i32, i32* %11
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %96
87: ; preds = %84
%88 = load i32, i32* %8
%89 = load i32, i32* %9
%90 = load double, double* %13
%91 = load double, double* %14
%92 = load double, double* %16
%93 = load i32, i32* %12
%94 = load i8*, i8** %18
%95 = call i32 @make_tx_filter(i32 %88, i32 %89, double %90, double %91, double %92, i32 %93, i8* %94)
br label %105
96: ; preds = %84
%97 = load i32, i32* %6
%98 = load i32, i32* %7
%99 = load double, double* %13
%100 = load double, double* %14
%101 = load double, double* %15
%102 = load i32, i32* %12
%103 = load i8*, i8** %17
%104 = call i32 @make_rx_filter(i32 %97, i32 %98, double %99, double %100, double %101, i32 %102, i8* %103)
br label %105
105: ; preds = %96, %87
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [6 x i8] c"im:rt\00"
@optarg = global i8* null
@.str.2 = [5 x i8] c"V.17\00"
@.str.3 = [8 x i8] c"V.32bis\00"
@.str.4 = [8 x i8] c"V.22bis\00"
@.str.5 = [12 x i8] c"V.22bis1200\00"
@.str.6 = [6 x i8] c"_1200\00"
@.str.7 = [12 x i8] c"V.22bis2400\00"
@.str.8 = [6 x i8] c"_2400\00"
@.str.9 = [12 x i8] c"V.27ter2400\00"
@.str.10 = [12 x i8] c"V.27ter4800\00"
@.str.11 = [6 x i8] c"_4800\00"
@.str.12 = [5 x i8] c"V.29\00"
define i32 @main(i32 %0, i8** %1) {
br label %3
3: ; preds = %16, %2
%4 = phi i32 [ 0, %2 ], [ %17, %16 ]
%5 = phi i32 [ 0, %2 ], [ %8, %16 ]
%6 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %2 ], [ %11, %16 ]
br label %7
7: ; preds = %10, %3
%8 = phi i32 [ %5, %3 ], [ 1, %10 ]
%9 = phi i8* [ %6, %3 ], [ %11, %10 ]
br label %10
10: ; preds = %7, %13
%11 = phi i8* [ %14, %13 ], [ %9, %7 ]
%12 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
switch i32 %12, label %18 [
i32 -1, label %21
i32 105, label %7
i32 109, label %13
i32 114, label %16
i32 116, label %15
]
13: ; preds = %10
%14 = load i8*, i8** @optarg
br label %10
15: ; preds = %10
br label %16
16: ; preds = %10, %15
%17 = phi i32 [ 1, %15 ], [ 0, %10 ]
br label %3
18: ; preds = %10
%19 = tail call i32 (...) @usage()
%20 = tail call i32 @exit(i32 2)
unreachable
21: ; preds = %10
%22 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %48, label %24
24: ; preds = %21
%25 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %48, label %27
27: ; preds = %24
%28 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %48, label %30
30: ; preds = %27
%31 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %48, label %33
33: ; preds = %30
%34 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %48, label %36
36: ; preds = %33
%37 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %48, label %39
39: ; preds = %36
%40 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %48, label %42
42: ; preds = %39
%43 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %48, label %45
45: ; preds = %42
%46 = tail call i32 (...) @usage()
%47 = tail call i32 @exit(i32 2)
unreachable
48: ; preds = %42, %39, %36, %33, %30, %27, %21, %24
%49 = phi i32 [ 10, %24 ], [ 10, %21 ], [ 40, %27 ], [ 40, %30 ], [ 40, %33 ], [ 20, %36 ], [ 5, %39 ], [ 10, %42 ]
%50 = phi i32 [ 192, %24 ], [ 192, %21 ], [ 12, %27 ], [ 12, %30 ], [ 12, %33 ], [ 12, %36 ], [ 8, %39 ], [ 48, %42 ]
%51 = phi double [ 1.800000e+03, %24 ], [ 1.800000e+03, %21 ], [ 1.200000e+03, %27 ], [ 1.200000e+03, %30 ], [ 2.400000e+03, %33 ], [ 1.800000e+03, %36 ], [ 1.800000e+03, %39 ], [ 1.700000e+03, %42 ]
%52 = phi double [ 2.400000e+03, %24 ], [ 2.400000e+03, %21 ], [ 6.000000e+02, %27 ], [ 6.000000e+02, %30 ], [ 6.000000e+02, %33 ], [ 1.200000e+03, %36 ], [ 1.600000e+03, %39 ], [ 2.400000e+03, %42 ]
%53 = phi double [ 5.000000e-01, %24 ], [ 5.000000e-01, %21 ], [ 7.500000e-01, %27 ], [ 7.500000e-01, %30 ], [ 7.500000e-01, %33 ], [ 5.000000e-01, %36 ], [ 5.000000e-01, %39 ], [ 5.000000e-01, %42 ]
%54 = phi double [ 2.500000e-01, %24 ], [ 2.500000e-01, %21 ], [ 7.500000e-01, %27 ], [ 7.500000e-01, %30 ], [ 7.500000e-01, %33 ], [ 5.000000e-01, %36 ], [ 5.000000e-01, %39 ], [ 2.500000e-01, %42 ]
%55 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %24 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %21 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %27 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), %30 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), %33 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), %36 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), %39 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %42 ]
%56 = icmp eq i32 %4, 0
br i1 %56, label %59, label %57
57: ; preds = %48
%58 = tail call i32 @make_tx_filter(i32 %49, i32 9, double %51, double %52, double %54, i32 %8, i8* %55)
br label %61
59: ; preds = %48
%60 = tail call i32 @make_rx_filter(i32 %50, i32 27, double %51, double %52, double %53, i32 %8, i8* %55)
br label %61
61: ; preds = %59, %57
ret i32 0
}