#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 /*<<< orphan*/ puts(char *);
void printHelp(char *name) {
  puts("\nROT13 Version: "
       "0.7"
       "\n");
  printf("Usage: %s [options] [text || stdin]\n", name);
  printf("\nOptions:\n");
  printf("%10s, %-15s %s\n", "-", "--", "Reads from STDIN.");
  printf("%10s, %-15s %s\n", "-v", "--verbose", "Verbose output.");
  printf("%10s, %-15s %s\n", "-5", "--rot5",
         "Use ROT13 with ROT5 for numbers.");
  printf("%10s, %-15s %s\n", "-13", "--rot13", "Use ROT13 (default).");
  printf("%10s, %-15s %s\n", "-47", "--rot47", "Use ROT47.");
  printf("%10s, %-15s %s\n", "-h", "--help", "Prints help menu.");
  printf("\n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%rsi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xee9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
lea    0xef0(%rip),%rsi
lea    0xee8(%rip),%rdx
lea    0xee4(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
lea    0xee1(%rip),%rsi
lea    0xedd(%rip),%rdx
lea    0xee0(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea0(%rip),%rdi
lea    0xedb(%rip),%rsi
lea    0xed7(%rip),%rdx
lea    0xed7(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe7d(%rip),%rdi
lea    0xee3(%rip),%rsi
lea    0xee0(%rip),%rdx
lea    0xee1(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe5a(%rip),%rdi
lea    0xee1(%rip),%rsi
lea    0xede(%rip),%rdx
lea    0xedf(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe37(%rip),%rdi
lea    0xed5(%rip),%rsi
lea    0xed1(%rip),%rdx
lea    0xed1(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
call   1040 <puts@plt>
lea    0xece(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1040 <puts@plt>
lea    0xed6(%rip),%rbx
lea    0xee0(%rip),%rsi
lea    0xed8(%rip),%rdx
lea    0xed4(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed5(%rip),%rsi
lea    0xed1(%rip),%rdx
lea    0xed4(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed3(%rip),%rsi
lea    0xecf(%rip),%rdx
lea    0xecf(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xedf(%rip),%rsi
lea    0xedc(%rip),%rdx
lea    0xedd(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee1(%rip),%rsi
lea    0xede(%rip),%rdx
lea    0xedf(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed9(%rip),%rsi
lea    0xed5(%rip),%rdx
lea    0xed5(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"\0AROT13 Version: 0.7\0A\00"
@.str.1 = [37 x i8] c"Usage: %s [options] [text || stdin]\0A\00"
@.str.2 = [11 x i8] c"\0AOptions:\0A\00"
@.str.3 = [16 x i8] c"%10s, %-15s %s\0A\00"
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [3 x i8] c"--\00"
@.str.6 = [18 x i8] c"Reads from STDIN.\00"
@.str.7 = [3 x i8] c"-v\00"
@.str.8 = [10 x i8] c"--verbose\00"
@.str.9 = [16 x i8] c"Verbose output.\00"
@.str.10 = [3 x i8] c"-5\00"
@.str.11 = [7 x i8] c"--rot5\00"
@.str.12 = [33 x i8] c"Use ROT13 with ROT5 for numbers.\00"
@.str.13 = [4 x i8] c"-13\00"
@.str.14 = [8 x i8] c"--rot13\00"
@.str.15 = [21 x i8] c"Use ROT13 (default).\00"
@.str.16 = [4 x i8] c"-47\00"
@.str.17 = [8 x i8] c"--rot47\00"
@.str.18 = [11 x i8] c"Use ROT47.\00"
@.str.19 = [3 x i8] c"-h\00"
@.str.20 = [7 x i8] c"--help\00"
@.str.21 = [18 x i8] c"Prints help menu.\00"
@.str.22 = [2 x i8] c"\0A\00"
define void @printHelp(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"\0AROT13 Version: 0.7\0A\00"
@.str.1 = [37 x i8] c"Usage: %s [options] [text || stdin]\0A\00"
@.str.3 = [16 x i8] c"%10s, %-15s %s\0A\00"
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [3 x i8] c"--\00"
@.str.6 = [18 x i8] c"Reads from STDIN.\00"
@.str.7 = [3 x i8] c"-v\00"
@.str.8 = [10 x i8] c"--verbose\00"
@.str.9 = [16 x i8] c"Verbose output.\00"
@.str.10 = [3 x i8] c"-5\00"
@.str.11 = [7 x i8] c"--rot5\00"
@.str.12 = [33 x i8] c"Use ROT13 with ROT5 for numbers.\00"
@.str.13 = [4 x i8] c"-13\00"
@.str.14 = [8 x i8] c"--rot13\00"
@.str.15 = [21 x i8] c"Use ROT13 (default).\00"
@.str.16 = [4 x i8] c"-47\00"
@.str.17 = [8 x i8] c"--rot47\00"
@.str.18 = [11 x i8] c"Use ROT47.\00"
@.str.19 = [3 x i8] c"-h\00"
@.str.20 = [7 x i8] c"--help\00"
@.str.21 = [18 x i8] c"Prints help menu.\00"
@str = [10 x i8] c"\0AOptions:\00"
define void @printHelp(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0))
%11 = tail call i32 @putchar(i32 10)
ret void
}