#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 *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) {
    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;
    tag = "";
  } else if (strcmp(modem, "V.22bis") == 0) {
    rx_coeff_sets = 12;
    rx_coeffs_per_filter = 37;
    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;
    tag = "";
  } else if (strcmp(modem, "V.22bis1200") == 0) {
    rx_coeff_sets = 12;
    rx_coeffs_per_filter = 37;
    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;
    tag = "_1200";
  } else if (strcmp(modem, "V.22bis2400") == 0) {
    rx_coeff_sets = 12;
    rx_coeffs_per_filter = 37;
    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;
    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;
    tag = "_4800";
  } 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;
    tag = "_2400";
  } 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;
    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, tag);
  } else {
    make_rx_filter(rx_coeff_sets, rx_coeffs_per_filter, carrier, baud_rate,
                   rx_excess_bandwidth, fixed_point, 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    0xf11(%rip),%rax
mov    %rax,-0x60(%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,-0x68(%rbp)
sub    $0xb,%eax
ja     120e <main+0xae>
mov    -0x68(%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,-0x60(%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    -0x60(%rbp),%rdi
lea    0xe4f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    129e <main+0x13e>
movl   $0xc0,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xdc4(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0xa,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xda1(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xdac(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xd77(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xe07(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15a9 <main+0x449>
mov    -0x60(%rbp),%rdi
lea    0xdda(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1318 <main+0x1b8>
movl   $0xc,-0x14(%rbp)
movl   $0x25,-0x18(%rbp)
movsd  0xd72(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x28,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xd57(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xd2a(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xd35(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xd8d(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    15a4 <main+0x444>
mov    -0x60(%rbp),%rdi
lea    0xd68(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1392 <main+0x232>
movl   $0xc,-0x14(%rbp)
movl   $0x25,-0x18(%rbp)
movsd  0xcf8(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x28,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xcdd(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xcb0(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xcbb(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xd0e(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    159f <main+0x43f>
mov    -0x60(%rbp),%rdi
lea    0xd00(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    140c <main+0x2ac>
movl   $0xc,-0x14(%rbp)
movl   $0x25,-0x18(%rbp)
movsd  0xc7e(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x28,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xc63(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xc16(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xc41(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xca6(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    159a <main+0x43a>
mov    -0x60(%rbp),%rdi
lea    0xc98(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1486 <main+0x326>
movl   $0x8,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xbdc(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x5,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xbc1(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xbc4(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xbbf(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xc3e(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1595 <main+0x435>
mov    -0x60(%rbp),%rdi
lea    0xc30(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1500 <main+0x3a0>
movl   $0xc,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xb62(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x14,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xb47(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xb4a(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xb35(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xbb2(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1590 <main+0x430>
mov    -0x60(%rbp),%rdi
lea    0xbc2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    157a <main+0x41a>
movl   $0x30,-0x14(%rbp)
movl   $0x1b,-0x18(%rbp)
movsd  0xae8(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0xa,-0x1c(%rbp)
movl   $0x9,-0x20(%rbp)
movsd  0xac5(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xab0(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xa9b(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xb2b(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    158b <main+0x42b>
mov    $0x0,%al
call   1050 <usage@plt>
mov    $0x2,%edi
call   1070 <exit@plt>
jmp    1590 <main+0x430>
jmp    1595 <main+0x435>
jmp    159a <main+0x43a>
jmp    159f <main+0x43f>
jmp    15a4 <main+0x444>
jmp    15a9 <main+0x449>
cmpl   $0x0,-0x28(%rbp)
je     15d9 <main+0x479>
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    -0x58(%rbp),%rcx
call   1080 <make_tx_filter@plt>
jmp    15fa <main+0x49a>
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,%rbx
mov    %edi,%ebp
lea    0xef5(%rip),%r13
xor    %r15d,%r15d
lea    0xec7(%rip),%r14
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    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%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    142b <main+0x2cb>
movl   $0x1,0x4(%rsp)
jmp    11a4 <main+0x44>
cmp    $0x72,%eax
je     11e9 <main+0x89>
cmp    $0x74,%eax
jne    142b <main+0x2cb>
mov    $0x1,%r15d
jmp    11a4 <main+0x44>
xor    %r15d,%r15d
jmp    11a4 <main+0x44>
lea    0xe59(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
lea    0xe68(%rip),%rbx
movsd  0xdf4(%rip),%xmm3
movsd  0xe04(%rip),%xmm0
mov    $0xa,%r12d
mov    $0x1b,%r14d
test   %rax,%rax
je     1318 <main+0x1b8>
lea    0xe23(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
movsd  0xde0(%rip),%xmm2
movsd  0xde0(%rip),%xmm1
movsd  0xde0(%rip),%xmm0
mov    $0xc,%ebp
test   %rax,%rax
je     132f <main+0x1cf>
lea    0xdf6(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     135c <main+0x1fc>
lea    0xdf0(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
lea    0xded(%rip),%rcx
test   %rax,%rax
je     1384 <main+0x224>
lea    0xde3(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
movsd  0xd5c(%rip),%xmm2
test   %rax,%rax
je     13d5 <main+0x275>
lea    0xdd5(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13f4 <main+0x294>
lea    0xdc9(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    142b <main+0x2cb>
movsd  0xd23(%rip),%xmm1
movsd  0xd4b(%rip),%xmm0
mov    $0x30,%ebp
mov    0x4(%rsp),%edx
movsd  0xd02(%rip),%xmm2
movsd  0xcf2(%rip),%xmm3
test   %r15d,%r15d
jne    1347 <main+0x1e7>
jmp    13b7 <main+0x257>
movsd  0xce8(%rip),%xmm2
movsd  0xce8(%rip),%xmm1
mov    $0xc0,%ebp
jmp    133e <main+0x1de>
mov    $0x25,%r14d
mov    $0x28,%r12d
movaps %xmm2,%xmm3
mov    0x4(%rsp),%edx
test   %r15d,%r15d
je     13b7 <main+0x257>
mov    %r12d,%edi
mov    $0x9,%esi
movaps %xmm3,%xmm2
mov    %rbx,%rcx
call   1080 <make_tx_filter@plt>
jmp    13c4 <main+0x264>
lea    0xd04(%rip),%rbx
mov    $0x25,%r14d
mov    $0x28,%r12d
movsd  0xcb9(%rip),%xmm0
movsd  0xca1(%rip),%xmm2
movaps %xmm2,%xmm3
jmp    13a6 <main+0x246>
movsd  0xc84(%rip),%xmm0
mov    $0x25,%r14d
mov    $0x28,%r12d
movsd  0xc80(%rip),%xmm2
movaps %xmm2,%xmm3
mov    %rcx,%rbx
mov    0x4(%rsp),%edx
movsd  0xc76(%rip),%xmm1
test   %r15d,%r15d
jne    1347 <main+0x1e7>
mov    %ebp,%edi
mov    %r14d,%esi
mov    %rbx,%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    0xcaf(%rip),%rbx
movsd  0xc54(%rip),%xmm1
mov    $0x8,%ebp
mov    $0x5,%r12d
movaps %xmm2,%xmm3
jmp    1414 <main+0x2b4>
movsd  0xc34(%rip),%xmm1
mov    $0x14,%r12d
movsd  0xbfe(%rip),%xmm2
movaps %xmm2,%xmm3
lea    0xc65(%rip),%rbx
mov    0x4(%rsp),%edx
movsd  0xbf8(%rip),%xmm0
test   %r15d,%r15d
jne    1347 <main+0x1e7>
jmp    13b7 <main+0x257>
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.22bis\00"
@.str.4 = [12 x i8] c"V.22bis1200\00"
@.str.5 = [6 x i8] c"_1200\00"
@.str.6 = [12 x i8] c"V.22bis2400\00"
@.str.7 = [6 x i8] c"_2400\00"
@.str.8 = [12 x i8] c"V.27ter4800\00"
@.str.9 = [6 x i8] c"_4800\00"
@.str.10 = [12 x i8] c"V.27ter2400\00"
@.str.11 = [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*
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** %18
br label %19
19: ; preds = %34, %2
%20 = load i32, i32* %4
%21 = load i8**, i8*** %5
%22 = call i32 @getopt(i32 %20, i8** %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 %22, i32* %10
%23 = icmp ne i32 %22, -1
br i1 %23, label %24, label %35
24: ; preds = %19
%25 = load i32, i32* %10
switch i32 %25, label %31 [
i32 105, label %26
i32 109, label %27
i32 114, label %29
i32 116, label %30
]
26: ; preds = %24
store i32 1, i32* %12
br label %34
27: ; preds = %24
%28 = load i8*, i8** @optarg
store i8* %28, i8** %18
br label %34
29: ; preds = %24
store i32 0, i32* %11
br label %34
30: ; preds = %24
store i32 1, i32* %11
br label %34
31: ; preds = %24
%32 = call i32 (...) @usage()
%33 = call i32 @exit(i32 2)
unreachable
34: ; preds = %30, %29, %27, %26
br label %19
35: ; preds = %19
%36 = load i8*, i8** %18
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %35
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
br label %79
40: ; preds = %35
%41 = load i8*, i8** %18
%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
store i32 12, i32* %6
store i32 37, 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
br label %78
45: ; preds = %40
%46 = load i8*, i8** %18
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([12 x i8], [12 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 37, 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.5, i64 0, i64 0), i8** %17
br label %77
50: ; preds = %45
%51 = load i8*, i8** %18
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, 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 37, 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.7, i64 0, i64 0), i8** %17
br label %76
55: ; preds = %50
%56 = load i8*, i8** %18
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %55
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.9, i64 0, i64 0), i8** %17
br label %75
60: ; preds = %55
%61 = load i8*, i8** %18
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, 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.7, i64 0, i64 0), i8** %17
br label %74
65: ; preds = %60
%66 = load i8*, i8** %18
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %65
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
br label %73
70: ; preds = %65
%71 = call i32 (...) @usage()
%72 = call i32 @exit(i32 2)
unreachable
73: ; preds = %69
br label %74
74: ; preds = %73, %64
br label %75
75: ; preds = %74, %59
br label %76
76: ; preds = %75, %54
br label %77
77: ; preds = %76, %49
br label %78
78: ; preds = %77, %44
br label %79
79: ; preds = %78, %39
%80 = load i32, i32* %11
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %91
82: ; preds = %79
%83 = load i32, i32* %8
%84 = load i32, i32* %9
%85 = load double, double* %13
%86 = load double, double* %14
%87 = load double, double* %16
%88 = load i32, i32* %12
%89 = load i8*, i8** %17
%90 = call i32 @make_tx_filter(i32 %83, i32 %84, double %85, double %86, double %87, i32 %88, i8* %89)
br label %100
91: ; preds = %79
%92 = load i32, i32* %6
%93 = load i32, i32* %7
%94 = load double, double* %13
%95 = load double, double* %14
%96 = load double, double* %15
%97 = load i32, i32* %12
%98 = load i8*, i8** %17
%99 = call i32 @make_rx_filter(i32 %92, i32 %93, double %94, double %95, double %96, i32 %97, i8* %98)
br label %100
100: ; preds = %91, %82
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.22bis\00"
@.str.4 = [12 x i8] c"V.22bis1200\00"
@.str.5 = [6 x i8] c"_1200\00"
@.str.6 = [12 x i8] c"V.22bis2400\00"
@.str.7 = [6 x i8] c"_2400\00"
@.str.8 = [12 x i8] c"V.27ter4800\00"
@.str.9 = [6 x i8] c"_4800\00"
@.str.10 = [12 x i8] c"V.27ter2400\00"
@.str.11 = [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 %45, 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 %45, label %27
27: ; preds = %24
%28 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %45, label %30
30: ; preds = %27
%31 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %45, label %33
33: ; preds = %30
%34 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %45, label %36
36: ; preds = %33
%37 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %45, label %39
39: ; preds = %36
%40 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = tail call i32 (...) @usage()
%44 = tail call i32 @exit(i32 2)
unreachable
45: ; preds = %39, %36, %33, %30, %27, %24, %21
%46 = phi i32 [ 27, %21 ], [ 37, %24 ], [ 37, %27 ], [ 37, %30 ], [ 27, %33 ], [ 27, %36 ], [ 27, %39 ]
%47 = phi i32 [ 10, %21 ], [ 40, %24 ], [ 40, %27 ], [ 40, %30 ], [ 5, %33 ], [ 20, %36 ], [ 10, %39 ]
%48 = phi i32 [ 192, %21 ], [ 12, %24 ], [ 12, %27 ], [ 12, %30 ], [ 8, %33 ], [ 12, %36 ], [ 48, %39 ]
%49 = phi double [ 1.800000e+03, %21 ], [ 1.200000e+03, %24 ], [ 1.200000e+03, %27 ], [ 2.400000e+03, %30 ], [ 1.800000e+03, %33 ], [ 1.800000e+03, %36 ], [ 1.700000e+03, %39 ]
%50 = phi double [ 2.400000e+03, %21 ], [ 6.000000e+02, %24 ], [ 6.000000e+02, %27 ], [ 6.000000e+02, %30 ], [ 1.600000e+03, %33 ], [ 1.200000e+03, %36 ], [ 2.400000e+03, %39 ]
%51 = phi double [ 5.000000e-01, %21 ], [ 7.500000e-01, %24 ], [ 7.500000e-01, %27 ], [ 7.500000e-01, %30 ], [ 5.000000e-01, %33 ], [ 5.000000e-01, %36 ], [ 5.000000e-01, %39 ]
%52 = phi double [ 2.500000e-01, %21 ], [ 7.500000e-01, %24 ], [ 7.500000e-01, %27 ], [ 7.500000e-01, %30 ], [ 5.000000e-01, %33 ], [ 5.000000e-01, %36 ], [ 2.500000e-01, %39 ]
%53 = phi i8* [ 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), %24 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), %27 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %30 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), %33 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %36 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %39 ]
%54 = icmp eq i32 %4, 0
br i1 %54, label %57, label %55
55: ; preds = %45
%56 = tail call i32 @make_tx_filter(i32 %47, i32 9, double %49, double %50, double %52, i32 %8, i8* %53)
br label %59
57: ; preds = %45
%58 = tail call i32 @make_rx_filter(i32 %48, i32 %46, double %49, double %50, double %51, i32 %8, i8* %53)
br label %59
59: ; preds = %57, %55
ret i32 0
}