#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 */
typedef int ssize_t;

/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int atoi(int /*<<< orphan*/);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, float);
int /*<<< orphan*/ free(char *);
int getline(char **, size_t *, int /*<<< orphan*/);
int getopt(int, char **, char *);
int /*<<< orphan*/ isprint(float);
int /*<<< orphan*/ optarg;
float optopt;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
char *strtok(char *, char *);
int /*<<< orphan*/ usage(char *);
int main(int argc, char **argv) {
  char *prog = argv[0];
  int num_fields, num_records, r_is_set = 0, f_is_set = 0;
  int c;
  while ((c = getopt(argc, argv, "f:r:")) != -1) {
    switch (c) {
    case 'f':
      f_is_set = 1;
      num_fields = atoi(optarg);
      break;
    case 'r':
      r_is_set = 1;
      num_records = atoi(optarg);
      break;
    case 'h':
      usage(prog);
      return 1;
    case '?':
      if ((optopt == 'f') || (optopt == 'r'))
        fprintf(stderr, "Option -%c requires an argument.\n", optopt);
      else if (isprint(optopt))
        fprintf(stderr, "Unknown option `-%c'.\n", optopt);
      else
        fprintf(stderr, "Unknown option character `\\x%x'.\n", optopt);
    default:
      usage(prog);
      return 1;
    }
  }
  if ((f_is_set == 0) || (r_is_set == 0)) {
    usage(prog);
    exit(EXIT_SUCCESS);
  }
  char *line = NULL;
  size_t len = 0;
  ssize_t read;
  char *pch;
  int gt;
  printf("%d\n%d\n", num_fields, num_records);
  while ((read = getline(&line, &len, stdin)) != -1) {
    if (line[0] != '#') {
      int i;
      pch = strtok(line, "\t");
      for (i = 0; i < 8; ++i) {
        pch = strtok(NULL, "\t");
      }
      pch = strtok(NULL, "\t");
      i = 0;
      while (pch != NULL) {
        if ((pch[0] == '0') && (pch[2] == '0'))
          gt = 0;
        else if ((pch[0] == '1') && (pch[2] == '0'))
          gt = 1;
        else if ((pch[0] == '0') && (pch[2] == '1'))
          gt = 1;
        else if ((pch[0] == '1') && (pch[2] == '1'))
          gt = 2;
        else
          gt = 3;
        if (i != 0)
          printf(" ");
        printf("%d", gt);
        pch = strtok(NULL, "\t");
        i += 1;
      }
      printf("\n");
    }
  }
  free(line);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe2b(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0xffffffff,%eax
je     1374 <main+0x1d4>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x5c(%rbp)
sub    $0x3f,%eax
je     1284 <main+0xe4>
jmp    1202 <main+0x62>
mov    -0x5c(%rbp),%eax
sub    $0x66,%eax
je     1235 <main+0x95>
jmp    1213 <main+0x73>
mov    -0x5c(%rbp),%eax
sub    $0x68,%eax
je     126f <main+0xcf>
jmp    1224 <main+0x84>
mov    -0x5c(%rbp),%eax
sub    $0x72,%eax
je     1252 <main+0xb2>
jmp    135a <main+0x1ba>
movl   $0x1,-0x28(%rbp)
mov    0x2db5(%rip),%rax
mov    (%rax),%edi
call   10a0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
jmp    136f <main+0x1cf>
movl   $0x1,-0x24(%rbp)
mov    0x2d98(%rip),%rax
mov    (%rax),%edi
call   10a0 <atoi@plt>
mov    %eax,-0x20(%rbp)
jmp    136f <main+0x1cf>
mov    -0x18(%rbp),%rdi
call   1060 <usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    15a1 <main+0x401>
mov    0x2d4d(%rip),%rax
movss  (%rax),%xmm0
movss  0xd69(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    12ab <main+0x10b>
jp     12ab <main+0x10b>
jmp    12cd <main+0x12d>
mov    0x2d26(%rip),%rax
movss  (%rax),%xmm0
movss  0xd46(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    12f2 <main+0x152>
jp     12f2 <main+0x152>
mov    0x2cf4(%rip),%rax
mov    (%rax),%edi
mov    0x2cfb(%rip),%rax
movss  (%rax),%xmm0
lea    0xd25(%rip),%rsi
call   1050 <fprintf@plt>
jmp    1355 <main+0x1b5>
mov    0x2cdf(%rip),%rax
movss  (%rax),%xmm0
call   1070 <isprint@plt>
cmp    $0x0,%eax
je     1330 <main+0x190>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
mov    0x2cbd(%rip),%rax
movss  (%rax),%xmm0
lea    0xd09(%rip),%rsi
call   1050 <fprintf@plt>
jmp    1350 <main+0x1b0>
mov    0x2c91(%rip),%rax
mov    (%rax),%edi
mov    0x2c98(%rip),%rax
movss  (%rax),%xmm0
lea    0xcfb(%rip),%rsi
call   1050 <fprintf@plt>
jmp    1355 <main+0x1b5>
jmp    135a <main+0x1ba>
mov    -0x18(%rbp),%rdi
call   1060 <usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    15a1 <main+0x401>
jmp    11cf <main+0x2f>
cmpl   $0x0,-0x28(%rbp)
je     1388 <main+0x1e8>
cmpl   $0x0,-0x24(%rbp)
jne    139f <main+0x1ff>
mov    -0x18(%rbp),%rdi
call   1060 <usage@plt>
mov    0x2c28(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c16(%rip),%rax
mov    (%rax),%edx
lea    -0x38(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   10b0 <getline@plt>
mov    %eax,-0x44(%rbp)
cmp    $0xffffffff,%eax
je     158a <main+0x3ea>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     1585 <main+0x3e5>
mov    -0x38(%rbp),%rdi
lea    0xc6f(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x58(%rbp)
cmpl   $0x8,-0x58(%rbp)
jge    143c <main+0x29c>
xor    %eax,%eax
mov    %eax,%edi
lea    0xc4a(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1410 <main+0x270>
xor    %eax,%eax
mov    %eax,%edi
lea    0xc28(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x58(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     1577 <main+0x3d7>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jne    148f <main+0x2ef>
mov    -0x50(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x30,%eax
jne    148f <main+0x2ef>
movl   $0x0,-0x54(%rbp)
jmp    152c <main+0x38c>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x31,%eax
jne    14bc <main+0x31c>
mov    -0x50(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x30,%eax
jne    14bc <main+0x31c>
movl   $0x1,-0x54(%rbp)
jmp    1527 <main+0x387>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jne    14e9 <main+0x349>
mov    -0x50(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x31,%eax
jne    14e9 <main+0x349>
movl   $0x1,-0x54(%rbp)
jmp    1522 <main+0x382>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x31,%eax
jne    1516 <main+0x376>
mov    -0x50(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x31,%eax
jne    1516 <main+0x376>
movl   $0x2,-0x54(%rbp)
jmp    151d <main+0x37d>
movl   $0x3,-0x54(%rbp)
jmp    1522 <main+0x382>
jmp    1527 <main+0x387>
jmp    152c <main+0x38c>
cmpl   $0x0,-0x58(%rbp)
je     1544 <main+0x3a4>
lea    0xb34(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
lea    0xb25(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xb0f(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1457 <main+0x2b7>
lea    0xac6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13c3 <main+0x223>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    0x2a26(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
mov    (%rsi),%rax
mov    %rax,0x18(%rsp)
xor    %r15d,%r15d
mov    $0x1,%al
mov    %eax,0x4(%rsp)
lea    0xe2d(%rip),%r13
mov    0x2e16(%rip),%r14
jmp    1201 <main+0x51>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r14),%edi
call   10b0 <atoi@plt>
mov    %eax,%r12d
mov    $0x1,%r15d
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r13,%rdx
call   10a0 <getopt@plt>
cmp    $0x66,%eax
je     11f0 <main+0x40>
cmp    $0x3f,%eax
je     1260 <main+0xb0>
cmp    $0x72,%eax
jne    1233 <main+0x83>
mov    (%r14),%edi
call   10b0 <atoi@plt>
mov    %eax,0x14(%rsp)
movl   $0x0,0x4(%rsp)
jmp    1201 <main+0x51>
cmp    $0xffffffff,%eax
jne    12be <main+0x10e>
test   %r15d,%r15d
setne  %al
mov    0x4(%rsp),%ecx
xor    $0x1,%cl
test   %cl,%al
jne    12dc <main+0x12c>
mov    0x18(%rsp),%rdi
call   1070 <usage@plt>
jmp    132b <main+0x17b>
mov    0x2d71(%rip),%rbx
movss  (%rbx),%xmm0
ucomiss 0xd8e(%rip),%xmm0
jne    1276 <main+0xc6>
jnp    12a0 <main+0xf0>
ucomiss 0xd87(%rip),%xmm0
jne    1281 <main+0xd1>
jnp    12a0 <main+0xf0>
call   1080 <isprint@plt>
mov    0x2d3b(%rip),%rcx
mov    (%rcx),%edi
movss  (%rbx),%xmm0
test   %eax,%eax
je     12b2 <main+0x102>
lea    0xd91(%rip),%rsi
jmp    12b9 <main+0x109>
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
lea    0xd5d(%rip),%rsi
jmp    12b9 <main+0x109>
lea    0xd8d(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x18(%rsp),%rdi
call   1070 <usage@plt>
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movq   $0x0,0x8(%rsp)
movq   $0x0,0x20(%rsp)
lea    0xd73(%rip),%rdi
mov    %r12d,%esi
mov    0x14(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cd6(%rip),%r15
mov    (%r15),%edx
lea    0x8(%rsp),%rdi
lea    0x20(%rsp),%rsi
call   10c0 <getline@plt>
cmp    $0xffffffff,%eax
jne    1339 <main+0x189>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x2c8e(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
lea    0x8(%rsp),%r13
lea    0x20(%rsp),%rbx
lea    0xd25(%rip),%r14
lea    0xd20(%rip),%r12
jmp    137d <main+0x1cd>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    (%r15),%edx
mov    %r13,%rdi
mov    %rbx,%rsi
call   10c0 <getline@plt>
cmp    $0xffffffff,%eax
je     1321 <main+0x171>
mov    0x8(%rsp),%rdi
cmpb   $0x23,(%rdi)
je     136a <main+0x1ba>
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
test   %rax,%rax
je     1360 <main+0x1b0>
mov    (%rax),%cl
cmp    $0x30,%cl
je     141d <main+0x26d>
mov    $0x3,%esi
cmp    $0x31,%cl
jne    1437 <main+0x287>
mov    0x2(%rax),%al
xor    %esi,%esi
cmp    $0x31,%al
sete   %sil
xor    $0x3,%esi
cmp    $0x30,%al
mov    $0x1,%eax
cmove  %eax,%esi
jmp    1437 <main+0x287>
mov    0x2(%rax),%al
xor    %ecx,%ecx
cmp    $0x31,%al
setne  %cl
lea    (%rcx,%rcx,1),%esi
add    $0x1,%esi
cmp    $0x30,%al
mov    $0x0,%eax
cmove  %eax,%esi
mov    %r12,%rdi
jmp    1468 <main+0x2b8>
nopl   0x0(%rax)
movzbl 0x2(%rax),%eax
xor    %ebp,%ebp
cmp    $0x31,%al
sete   %bpl
xor    $0x3,%ebp
cmp    $0x30,%al
mov    $0x1,%eax
cmove  %eax,%ebp
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    %r12,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
test   %rax,%rax
je     1360 <main+0x1b0>
movzbl (%rax),%ecx
cmp    $0x31,%cl
je     1440 <main+0x290>
mov    $0x3,%ebp
cmp    $0x30,%cl
jne    1459 <main+0x2a9>
movzbl 0x2(%rax),%eax
xor    %ecx,%ecx
cmp    $0x31,%al
setne  %cl
lea    (%rcx,%rcx,1),%ebp
add    $0x1,%ebp
cmp    $0x30,%al
mov    $0x0,%eax
cmove  %eax,%ebp
jmp    1459 <main+0x2a9>

LLVM IR (-O0):
@.str = [5 x i8] c"f:r:\00"
@optarg = global i32 0
@optopt = global float 0.000000e+00
@stderr = global i32 0
@.str.1 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.2 = [23 x i8] c"Unknown option `-%c'.\0A\00"
@.str.3 = [34 x i8] c"Unknown option character `\\x%x'.\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.4 = [7 x i8] c"%d\0A%d\0A\00"
@stdin = global i32 0
@.str.5 = [2 x i8] c"\09\00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 0
%20 = load i8*, i8** %19
store i8* %20, i8** %6
store i32 0, i32* %9
store i32 0, i32* %10
br label %21
21: ; preds = %64, %2
%22 = load i32, i32* %4
%23 = load i8**, i8*** %5
%24 = call i32 @getopt(i32 %22, i8** %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 %24, i32* %11
%25 = icmp ne i32 %24, -1
br i1 %25, label %26, label %65
26: ; preds = %21
%27 = load i32, i32* %11
switch i32 %27, label %61 [
i32 102, label %28
i32 114, label %31
i32 104, label %34
i32 63, label %37
]
28: ; preds = %26
store i32 1, i32* %10
%29 = load i32, i32* @optarg
%30 = call i32 @atoi(i32 %29)
store i32 %30, i32* %7
br label %64
31: ; preds = %26
store i32 1, i32* %9
%32 = load i32, i32* @optarg
%33 = call i32 @atoi(i32 %32)
store i32 %33, i32* %8
br label %64
34: ; preds = %26
%35 = load i8*, i8** %6
%36 = call i32 @usage(i8* %35)
store i32 1, i32* %3
br label %181
37: ; preds = %26
%38 = load float, float* @optopt
%39 = fcmp oeq float %38, 1.020000e+02
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = load float, float* @optopt
%42 = fcmp oeq float %41, 1.140000e+02
br i1 %42, label %43, label %47
43: ; preds = %40, %37
%44 = load i32, i32* @stderr
%45 = load float, float* @optopt
%46 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), float %45)
br label %60
47: ; preds = %40
%48 = load float, float* @optopt
%49 = call i32 @isprint(float %48)
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %47
%52 = load i32, i32* @stderr
%53 = load float, float* @optopt
%54 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), float %53)
br label %59
55: ; preds = %47
%56 = load i32, i32* @stderr
%57 = load float, float* @optopt
%58 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), float %57)
br label %59
59: ; preds = %55, %51
br label %60
60: ; preds = %59, %43
br label %61
61: ; preds = %26, %60
%62 = load i8*, i8** %6
%63 = call i32 @usage(i8* %62)
store i32 1, i32* %3
br label %181
64: ; preds = %31, %28
br label %21
65: ; preds = %21
%66 = load i32, i32* %10
%67 = icmp eq i32 %66, 0
br i1 %67, label %71, label %68
68: ; preds = %65
%69 = load i32, i32* %9
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %76
71: ; preds = %68, %65
%72 = load i8*, i8** %6
%73 = call i32 @usage(i8* %72)
%74 = load i32, i32* @EXIT_SUCCESS
%75 = call i32 @exit(i32 %74)
unreachable
76: ; preds = %68
store i8* null, i8** %12
store i64 0, i64* %13
%77 = load i32, i32* %7
%78 = load i32, i32* %8
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %77, i32 %78)
br label %80
80: ; preds = %175, %76
%81 = load i32, i32* @stdin
%82 = call i32 @getline(i8** %12, i64* %13, i32 %81)
store i32 %82, i32* %14
%83 = icmp ne i32 %82, -1
br i1 %83, label %84, label %176
84: ; preds = %80
%85 = load i8*, i8** %12
%86 = getelementptr inbounds i8, i8* %85, i64 0
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = icmp ne i32 %88, 35
br i1 %89, label %90, label %175
90: ; preds = %84
%91 = load i8*, i8** %12
%92 = call i8* @strtok(i8* %91, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %92, i8** %15
store i32 0, i32* %17
br label %93
93: ; preds = %98, %90
%94 = load i32, i32* %17
%95 = icmp slt i32 %94, 8
br i1 %95, label %96, label %101
96: ; preds = %93
%97 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %97, i8** %15
br label %98
98: ; preds = %96
%99 = load i32, i32* %17
%100 = add nsw i32 %99, 1
store i32 %100, i32* %17
br label %93
101: ; preds = %93
%102 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %102, i8** %15
store i32 0, i32* %17
br label %103
103: ; preds = %167, %101
%104 = load i8*, i8** %15
%105 = icmp ne i8* %104, null
br i1 %105, label %106, label %173
106: ; preds = %103
%107 = load i8*, i8** %15
%108 = getelementptr inbounds i8, i8* %107, i64 0
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 48
br i1 %111, label %112, label %119
112: ; preds = %106
%113 = load i8*, i8** %15
%114 = getelementptr inbounds i8, i8* %113, i64 2
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 48
br i1 %117, label %118, label %119
118: ; preds = %112
store i32 0, i32* %16
br label %162
119: ; preds = %112, %106
%120 = load i8*, i8** %15
%121 = getelementptr inbounds i8, i8* %120, i64 0
%122 = load i8, i8* %121
%123 = sext i8 %122 to i32
%124 = icmp eq i32 %123, 49
br i1 %124, label %125, label %132
125: ; preds = %119
%126 = load i8*, i8** %15
%127 = getelementptr inbounds i8, i8* %126, i64 2
%128 = load i8, i8* %127
%129 = sext i8 %128 to i32
%130 = icmp eq i32 %129, 48
br i1 %130, label %131, label %132
131: ; preds = %125
store i32 1, i32* %16
br label %161
132: ; preds = %125, %119
%133 = load i8*, i8** %15
%134 = getelementptr inbounds i8, i8* %133, i64 0
%135 = load i8, i8* %134
%136 = sext i8 %135 to i32
%137 = icmp eq i32 %136, 48
br i1 %137, label %138, label %145
138: ; preds = %132
%139 = load i8*, i8** %15
%140 = getelementptr inbounds i8, i8* %139, i64 2
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 49
br i1 %143, label %144, label %145
144: ; preds = %138
store i32 1, i32* %16
br label %160
145: ; preds = %138, %132
%146 = load i8*, i8** %15
%147 = getelementptr inbounds i8, i8* %146, i64 0
%148 = load i8, i8* %147
%149 = sext i8 %148 to i32
%150 = icmp eq i32 %149, 49
br i1 %150, label %151, label %158
151: ; preds = %145
%152 = load i8*, i8** %15
%153 = getelementptr inbounds i8, i8* %152, i64 2
%154 = load i8, i8* %153
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 49
br i1 %156, label %157, label %158
157: ; preds = %151
store i32 2, i32* %16
br label %159
158: ; preds = %151, %145
store i32 3, i32* %16
br label %159
159: ; preds = %158, %157
br label %160
160: ; preds = %159, %144
br label %161
161: ; preds = %160, %131
br label %162
162: ; preds = %161, %118
%163 = load i32, i32* %17
%164 = icmp ne i32 %163, 0
br i1 %164, label %165, label %167
165: ; preds = %162
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %167
167: ; preds = %165, %162
%168 = load i32, i32* %16
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %168)
%170 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %170, i8** %15
%171 = load i32, i32* %17
%172 = add nsw i32 %171, 1
store i32 %172, i32* %17
br label %103
173: ; preds = %103
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %175
175: ; preds = %173, %84
br label %80
176: ; preds = %80
%177 = load i8*, i8** %12
%178 = call i32 @free(i8* %177)
%179 = load i32, i32* @EXIT_SUCCESS
%180 = call i32 @exit(i32 %179)
unreachable
181: ; preds = %61, %34
%182 = load i32, i32* %3
ret i32 %182
}

LLVM IR (-O2):
@.str = [5 x i8] c"f:r:\00"
@optarg = global i32 0
@optopt = global float 0.000000e+00
@stderr = global i32 0
@.str.1 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.2 = [23 x i8] c"Unknown option `-%c'.\0A\00"
@.str.3 = [34 x i8] c"Unknown option character `\\x%x'.\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.4 = [7 x i8] c"%d\0A%d\0A\00"
@stdin = global i32 0
@.str.5 = [2 x i8] c"\09\00"
@.str.7 = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = load i8*, i8** %1
br label %6
6: ; preds = %18, %2
%7 = phi i32 [ %20, %18 ], [ undef, %2 ]
%8 = phi i1 [ false, %18 ], [ true, %2 ]
%9 = phi i32 [ %12, %18 ], [ 0, %2 ]
%10 = phi i32 [ %13, %18 ], [ undef, %2 ]
br label %11
11: ; preds = %6, %15
%12 = phi i32 [ 1, %15 ], [ %9, %6 ]
%13 = phi i32 [ %17, %15 ], [ %10, %6 ]
%14 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
switch i32 %14, label %123 [
i32 -1, label %38
i32 102, label %15
i32 114, label %18
i32 63, label %21
]
15: ; preds = %11
%16 = load i32, i32* @optarg
%17 = tail call i32 @atoi(i32 %16)
br label %11
18: ; preds = %11
%19 = load i32, i32* @optarg
%20 = tail call i32 @atoi(i32 %19)
br label %6
21: ; preds = %11
%22 = load float, float* @optopt
%23 = fcmp oeq float %22, 1.020000e+02
%24 = fcmp oeq float %22, 1.140000e+02
%25 = or i1 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), float %22)
br label %123
29: ; preds = %21
%30 = tail call i32 @isprint(float %22)
%31 = icmp eq i32 %30, 0
%32 = load i32, i32* @stderr
%33 = load float, float* @optopt
br i1 %31, label %36, label %34
34: ; preds = %29
%35 = tail call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), float %33)
br label %123
36: ; preds = %29
%37 = tail call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), float %33)
br label %123
38: ; preds = %11
%39 = icmp eq i32 %12, 0
%40 = or i1 %39, %8
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = tail call i32 @usage(i8* %5)
%43 = load i32, i32* @EXIT_SUCCESS
%44 = tail call i32 @exit(i32 %43)
unreachable
45: ; preds = %38
%46 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%47 = bitcast i64* %4 to i8*
store i64 0, i64* %4
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %13, i32 %7)
%49 = load i32, i32* @stdin
%50 = call i32 @getline(i8** %3, i64* %4, i32 %49)
%51 = icmp eq i32 %50, -1
br i1 %51, label %118, label %52
52: ; preds = %45, %114
%53 = load i8*, i8** %3
%54 = load i8, i8* %53
%55 = icmp eq i8 %54, 35
br i1 %55, label %114, label %56
56: ; preds = %52
%57 = call i8* @strtok(i8* %53, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%58 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%59 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%60 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%61 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%62 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%63 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%64 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%65 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%66 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%67 = icmp eq i8* %66, null
br i1 %67, label %112, label %68
68: ; preds = %56
%69 = load i8, i8* %66
switch i8 %69, label %84 [
i8 48, label %77
i8 49, label %70
]
70: ; preds = %68
%71 = getelementptr inbounds i8, i8* %66, i64 2
%72 = load i8, i8* %71
%73 = icmp eq i8 %72, 49
%74 = select i1 %73, i32 2, i32 3
%75 = icmp eq i8 %72, 48
%76 = select i1 %75, i32 1, i32 %74
br label %84
77: ; preds = %68
%78 = getelementptr inbounds i8, i8* %66, i64 2
%79 = load i8, i8* %78
%80 = icmp eq i8 %79, 49
%81 = select i1 %80, i32 1, i32 3
%82 = icmp eq i8 %79, 48
%83 = select i1 %82, i32 0, i32 %81
br label %84
84: ; preds = %68, %77, %70
%85 = phi i32 [ %76, %70 ], [ %83, %77 ], [ 3, %68 ]
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %85)
%87 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%88 = icmp eq i8* %87, null
br i1 %88, label %112, label %89
89: ; preds = %84, %106
%90 = phi i8* [ %110, %106 ], [ %87, %84 ]
%91 = load i8, i8* %90
switch i8 %91, label %106 [
i8 48, label %92
i8 49, label %99
]
92: ; preds = %89
%93 = getelementptr inbounds i8, i8* %90, i64 2
%94 = load i8, i8* %93
%95 = icmp eq i8 %94, 49
%96 = select i1 %95, i32 1, i32 3
%97 = icmp eq i8 %94, 48
%98 = select i1 %97, i32 0, i32 %96
br label %106
99: ; preds = %89
%100 = getelementptr inbounds i8, i8* %90, i64 2
%101 = load i8, i8* %100
%102 = icmp eq i8 %101, 49
%103 = select i1 %102, i32 2, i32 3
%104 = icmp eq i8 %101, 48
%105 = select i1 %104, i32 1, i32 %103
br label %106
106: ; preds = %89, %99, %92
%107 = phi i32 [ %98, %92 ], [ %105, %99 ], [ 3, %89 ]
%108 = call i32 @putchar(i32 32)
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %107)
%110 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%111 = icmp eq i8* %110, null
br i1 %111, label %112, label %89
112: ; preds = %106, %84, %56
%113 = call i32 @putchar(i32 10)
br label %114
114: ; preds = %112, %52
%115 = load i32, i32* @stdin
%116 = call i32 @getline(i8** %3, i64* %4, i32 %115)
%117 = icmp eq i32 %116, -1
br i1 %117, label %118, label %52
118: ; preds = %114, %45
%119 = load i8*, i8** %3
%120 = call i32 @free(i8* %119)
%121 = load i32, i32* @EXIT_SUCCESS
%122 = call i32 @exit(i32 %121)
unreachable
123: ; preds = %11, %34, %36, %26
%124 = tail call i32 @usage(i8* %5)
ret i32 1
}