#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 getopt(int, char **, char *);
int /*<<< orphan*/ od(int /*<<< orphan*/);
int /*<<< orphan*/ optarg;
int /*<<< orphan*/ parse_input_word_format(int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ usage(char *);
int main(int argc, char **argv) {
  int opt;
  while ((opt = getopt(argc, argv, "W:")) != -1) {
    switch (opt) {
    case 'W':
      if (parse_input_word_format(optarg))
        usage(argv[0]);
      break;
    default:
      usage(argv[0]);
    }
  }
  od(stdin);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe9c(%rip),%rdx
call   1060 <getopt@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     11bf <main+0x7f>
mov    -0x14(%rbp),%eax
sub    $0x57,%eax
jne    11ae <main+0x6e>
jmp    1186 <main+0x46>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edi
call   1030 <parse_input_word_format@plt>
cmp    $0x0,%eax
je     11a9 <main+0x69>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1050 <usage@plt>
jmp    11ba <main+0x7a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1050 <usage@plt>
jmp    1156 <main+0x16>
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
call   1040 <od@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xead(%rip),%r14
mov    0x2e9e(%rip),%r15
jmp    116d <main+0x2d>
nopl   0x0(%rax)
cmp    $0xffffffff,%eax
je     118d <main+0x4d>
mov    (%rbx),%rdi
call   1050 <usage@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1060 <getopt@plt>
cmp    $0x57,%eax
jne    1160 <main+0x20>
mov    (%r15),%edi
call   1030 <parse_input_word_format@plt>
test   %eax,%eax
jne    1165 <main+0x25>
jmp    116d <main+0x2d>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
call   1040 <od@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"W:\00"
@optarg = global i32 0
@stdin = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %7
7: ; preds = %29, %2
%8 = load i32, i32* %4
%9 = load i8**, i8*** %5
%10 = call i32 @getopt(i32 %8, i8** %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 %10, i32* %6
%11 = icmp ne i32 %10, -1
br i1 %11, label %12, label %30
12: ; preds = %7
%13 = load i32, i32* %6
switch i32 %13, label %24 [
i32 87, label %14
]
14: ; preds = %12
%15 = load i32, i32* @optarg
%16 = call i32 @parse_input_word_format(i32 %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 @usage(i8* %21)
br label %23
23: ; preds = %18, %14
br label %29
24: ; preds = %12
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 0
%27 = load i8*, i8** %26
%28 = call i32 @usage(i8* %27)
br label %29
29: ; preds = %24, %23
br label %7
30: ; preds = %7
%31 = load i32, i32* @stdin
%32 = call i32 @od(i32 %31)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"W:\00"
@optarg = global i32 0
@stdin = global i32 0
define i32 @main(i32 %0, i8** %1) {
br label %3
3: ; preds = %12, %2
%4 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
switch i32 %4, label %9 [
i32 -1, label %13
i32 87, label %5
]
5: ; preds = %3
%6 = load i32, i32* @optarg
%7 = tail call i32 @parse_input_word_format(i32 %6)
%8 = icmp eq i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %3, %5
%10 = load i8*, i8** %1
%11 = tail call i32 @usage(i8* %10)
br label %12
12: ; preds = %9, %5
br label %3
13: ; preds = %3
%14 = load i32, i32* @stdin
%15 = tail call i32 @od(i32 %14)
ret i32 0
}