#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*/ abort();
int /*<<< orphan*/ about();
int atoi(char *);
int /*<<< orphan*/ detail();
int getopt(int, char **, char *);
int /*<<< orphan*/ help();
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ special(int);
int yyparse();
int main(int argc, char *argv[]) {
  int c = 0;
  int number;
  while ((c = getopt(argc, argv, "vsadhb")) != -1)
    switch (c) {
    case 'v':
      printf(
          "%s\n",
          "NLPTEXT Version:Alpha (Dec 8,2016)\nOpen Source Project : Developed "
          "by Abhishek Verma, Jashanpreet Singh, Harshit Kashyap.");
      break;
    case 's':
      if (argc > 2) {
        number = atoi(argv[2]);
      } else
        break;
      special(number);
      break;
    case 'a':
      about();
      break;
    case 'd':
      detail();
      break;
    case 'h':
      help();
      break;
    case 'b':
      break;
    default:
      abort();
    }
  return yyparse();
}


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)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe9d(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     1273 <main+0xe3>
mov    -0x14(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x15,%eax
ja     1267 <main+0xd7>
mov    -0x20(%rbp),%rax
lea    0xe14(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe63(%rip),%rdi
lea    0xe60(%rip),%rsi
call   1060 <printf@plt>
jmp    126e <main+0xde>
cmpl   $0x2,-0x8(%rbp)
jle    122c <main+0x9c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x18(%rbp)
jmp    1231 <main+0xa1>
jmp    126e <main+0xde>
mov    -0x18(%rbp),%edi
call   1080 <special@plt>
jmp    126e <main+0xde>
mov    $0x0,%al
call   1070 <about@plt>
jmp    126e <main+0xde>
mov    $0x0,%al
call   1030 <detail@plt>
jmp    126e <main+0xde>
mov    $0x0,%al
call   10a0 <help@plt>
jmp    126e <main+0xde>
jmp    126e <main+0xde>
mov    $0x0,%al
call   1040 <abort@plt>
jmp    11ad <main+0x1d>
mov    $0x0,%al
call   1050 <yyparse@plt>
add    $0x20,%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    0xeb1(%rip),%r14
lea    0xe52(%rip),%r13
lea    0xeaa(%rip),%r15
lea    0xea7(%rip),%r12
jmp    11d0 <main+0x40>
xor    %eax,%eax
call   10a0 <help@plt>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1090 <getopt@plt>
lea    -0x61(%rax),%ecx
cmp    $0x15,%ecx
ja     1225 <main+0x95>
movslq 0x0(%r13,%rcx,4),%rax
add    %r13,%rax
jmp    *%rax
xor    %eax,%eax
call   1070 <about@plt>
jmp    11d0 <main+0x40>
xor    %eax,%eax
call   1030 <detail@plt>
jmp    11d0 <main+0x40>
cmp    $0x3,%ebp
jl     11d0 <main+0x40>
mov    0x10(%rbx),%rdi
call   10b0 <atoi@plt>
mov    %eax,%edi
call   1080 <special@plt>
jmp    11d0 <main+0x40>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <printf@plt>
jmp    11d0 <main+0x40>
cmp    $0xffffffff,%eax
jne    123f <main+0xaf>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <yyparse@plt>
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"vsadhb\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [122 x i8] c"NLPTEXT Version:Alpha (Dec 8,2016)\0AOpen Source Project : Developed by Abhishek Verma, Jashanpreet Singh, Harshit Kashyap.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %8
8: ; preds = %38, %2
%9 = load i32, i32* %4
%10 = load i8**, i8*** %5
%11 = call i32 @getopt(i32 %9, i8** %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 %11, i32* %6
%12 = icmp ne i32 %11, -1
br i1 %12, label %13, label %39
13: ; preds = %8
%14 = load i32, i32* %6
switch i32 %14, label %36 [
i32 118, label %15
i32 115, label %17
i32 97, label %29
i32 100, label %31
i32 104, label %33
i32 98, label %35
]
15: ; preds = %13
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.2, i64 0, i64 0))
br label %38
17: ; preds = %13
%18 = load i32, i32* %4
%19 = icmp sgt i32 %18, 2
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 2
%23 = load i8*, i8** %22
%24 = call i32 @atoi(i8* %23)
store i32 %24, i32* %7
br label %26
25: ; preds = %17
br label %38
26: ; preds = %20
%27 = load i32, i32* %7
%28 = call i32 @special(i32 %27)
br label %38
29: ; preds = %13
%30 = call i32 (...) @about()
br label %38
31: ; preds = %13
%32 = call i32 (...) @detail()
br label %38
33: ; preds = %13
%34 = call i32 (...) @help()
br label %38
35: ; preds = %13
br label %38
36: ; preds = %13
%37 = call i32 (...) @abort()
unreachable
38: ; preds = %35, %33, %31, %29, %26, %25, %15
br label %8
39: ; preds = %8
%40 = call i32 (...) @yyparse()
ret i32 %40
}

LLVM IR (-O2):
@.str = [7 x i8] c"vsadhb\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [122 x i8] c"NLPTEXT Version:Alpha (Dec 8,2016)\0AOpen Source Project : Developed by Abhishek Verma, Jashanpreet Singh, Harshit Kashyap.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp sgt i32 %0, 2
%4 = getelementptr inbounds i8*, i8** %1, i64 2
br label %5
5: ; preds = %7, %2
%6 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
switch i32 %6, label %21 [
i32 -1, label %23
i32 118, label %8
i32 115, label %10
i32 97, label %15
i32 100, label %17
i32 104, label %19
i32 98, label %7
]
7: ; preds = %5, %10, %19, %17, %15, %11, %8
br label %5
8: ; preds = %5
%9 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.2, i64 0, i64 0))
br label %7
10: ; preds = %5
br i1 %3, label %11, label %7
11: ; preds = %10
%12 = load i8*, i8** %4
%13 = tail call i32 @atoi(i8* %12)
%14 = tail call i32 @special(i32 %13)
br label %7
15: ; preds = %5
%16 = tail call i32 (...) @about()
br label %7
17: ; preds = %5
%18 = tail call i32 (...) @detail()
br label %7
19: ; preds = %5
%20 = tail call i32 (...) @help()
br label %7
21: ; preds = %5
%22 = tail call i32 (...) @abort()
unreachable
23: ; preds = %5
%24 = tail call i32 (...) @yyparse()
ret i32 %24
}