#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*/ printf(char *);
int printOption() {
  printf("\n");
  printf("fibonacci: fibonacci <number> <option> \n");
  printf("<number>: Any non-zero integer \n");
  printf("<option>: \n");
  printf(
      "\t -a: Generates the <number>-th number in the fibonacci sequence. \n");
  printf("\t -b: Generates the fibonacci sequence until <number>. \n \t (Note: "
         "If the number does not live in the fibonacci Sequence. The program "
         "will generate until the number that is just smaller than the number "
         "specified.)\n");
  printf("\t NOTE: -a and -b cannot used at the same time.");
  return 0;
}


x86 assembly (clang, -O0):
<printOption>:
push   %rbp
mov    %rsp,%rbp
lea    0xf7d(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
call   1030 <printf@plt>
lea    0x100d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<printOption>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeee(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf54(%rip),%rdi
call   1040 <puts@plt>
lea    0xe82(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [41 x i8] c"fibonacci: fibonacci <number> <option> \0A\00"
@.str.2 = [33 x i8] c"<number>: Any non-zero integer \0A\00"
@.str.3 = [12 x i8] c"<option>: \0A\00"
@.str.4 = [68 x i8] c"\09 -a: Generates the <number>-th number in the fibonacci sequence. \0A\00"
@.str.5 = [214 x i8] c"\09 -b: Generates the fibonacci sequence until <number>. \0A \09 (Note: If the number does not live in the fibonacci Sequence. The program will generate until the number that is just smaller than the number specified.)\0A\00"
@.str.6 = [48 x i8] c"\09 NOTE: -a and -b cannot used at the same time.\00"
define i32 @printOption() {
%1 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([214 x i8], [214 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.6 = [48 x i8] c"\09 NOTE: -a and -b cannot used at the same time.\00"
@str = [40 x i8] c"fibonacci: fibonacci <number> <option> \00"
@str.7 = [32 x i8] c"<number>: Any non-zero integer \00"
@str.8 = [11 x i8] c"<option>: \00"
@str.9 = [67 x i8] c"\09 -a: Generates the <number>-th number in the fibonacci sequence. \00"
@str.10 = [213 x i8] c"\09 -b: Generates the fibonacci sequence until <number>. \0A \09 (Note: If the number does not live in the fibonacci Sequence. The program will generate until the number that is just smaller than the number specified.)\00"
define i32 @printOption() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([213 x i8], [213 x i8]* @str.10, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}