#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stdout;
void show_help() {
  fprintf(stdout, "Use: parrot_cp [OPTIONS]... SOURCES ... DEST\n");
  fprintf(stdout, "Where options are:\n");
  fprintf(stdout, " %-30s Forcibly remove target before copying.\n",
          "-f,--force");
  fprintf(stdout, " %-30s Interactive mode: ask before overwriting.\n",
          "-i,--interactive");
  fprintf(stdout, " %-30s Recursively copy directories.\n",
          "-r,-R,--recursive");
  fprintf(stdout, " %-30s Make symbolic links instead of copying files.\n",
          "-s,--symlinks");
  fprintf(stdout, " %-30s Make hard links instead of copying files.\n",
          "-l,--hardlinks");
  fprintf(stdout,
          " %-30s Update mode: Copy only if source is newer than target.\n",
          "-u,--update-only");
  fprintf(stdout, " %-30s Verbose mode: Show names of files copied.\n",
          "-v,--verbose");
  fprintf(stdout, " %-30s Help: Show these options.\n", "-h,--help");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xef3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
lea    0xef0(%rip),%rsi
lea    0xf18(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%edi
lea    0xf0c(%rip),%rsi
lea    0xf37(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e5b(%rip),%rax
mov    (%rax),%edi
lea    0xf31(%rip),%rsi
lea    0xf50(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
lea    0xf4b(%rip),%rsi
lea    0xf7a(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%edi
lea    0xf71(%rip),%rsi
lea    0xf9c(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e01(%rip),%rax
mov    (%rax),%edi
lea    0xf94(%rip),%rsi
lea    0xfcc(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%edi
lea    0xfc6(%rip),%rsi
lea    0xff1(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%edi
lea    0xfe7(%rip),%rsi
lea    0x1002(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xefd(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf01(%rip),%rsi
lea    0xf29(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf24(%rip),%rsi
lea    0xf4f(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf50(%rip),%rsi
lea    0xf6f(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf71(%rip),%rsi
lea    0xfa0(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf9e(%rip),%rsi
lea    0xfc9(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc8(%rip),%rsi
lea    0x1000(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1001(%rip),%rsi
lea    0x102c(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1029(%rip),%rsi
lea    0x1044(%rip),%rdx
xor    %eax,%eax
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [46 x i8] c"Use: parrot_cp [OPTIONS]... SOURCES ... DEST\0A\00"
@.str.1 = [20 x i8] c"Where options are:\0A\00"
@.str.2 = [47 x i8] c" %-30s Forcibly remove target before copying.\0A\00"
@.str.3 = [11 x i8] c"-f,--force\00"
@.str.4 = [50 x i8] c" %-30s Interactive mode: ask before overwriting.\0A\00"
@.str.5 = [17 x i8] c"-i,--interactive\00"
@.str.6 = [38 x i8] c" %-30s Recursively copy directories.\0A\00"
@.str.7 = [18 x i8] c"-r,-R,--recursive\00"
@.str.8 = [54 x i8] c" %-30s Make symbolic links instead of copying files.\0A\00"
@.str.9 = [14 x i8] c"-s,--symlinks\00"
@.str.10 = [50 x i8] c" %-30s Make hard links instead of copying files.\0A\00"
@.str.11 = [15 x i8] c"-l,--hardlinks\00"
@.str.12 = [63 x i8] c" %-30s Update mode: Copy only if source is newer than target.\0A\00"
@.str.13 = [17 x i8] c"-u,--update-only\00"
@.str.14 = [50 x i8] c" %-30s Verbose mode: Show names of files copied.\0A\00"
@.str.15 = [13 x i8] c"-v,--verbose\00"
@.str.16 = [34 x i8] c" %-30s Help: Show these options.\0A\00"
@.str.17 = [10 x i8] c"-h,--help\00"
define void @show_help() {
%1 = load i32, i32* @stdout
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
%19 = load i32, i32* @stdout
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [46 x i8] c"Use: parrot_cp [OPTIONS]... SOURCES ... DEST\0A\00"
@.str.1 = [20 x i8] c"Where options are:\0A\00"
@.str.2 = [47 x i8] c" %-30s Forcibly remove target before copying.\0A\00"
@.str.3 = [11 x i8] c"-f,--force\00"
@.str.4 = [50 x i8] c" %-30s Interactive mode: ask before overwriting.\0A\00"
@.str.5 = [17 x i8] c"-i,--interactive\00"
@.str.6 = [38 x i8] c" %-30s Recursively copy directories.\0A\00"
@.str.7 = [18 x i8] c"-r,-R,--recursive\00"
@.str.8 = [54 x i8] c" %-30s Make symbolic links instead of copying files.\0A\00"
@.str.9 = [14 x i8] c"-s,--symlinks\00"
@.str.10 = [50 x i8] c" %-30s Make hard links instead of copying files.\0A\00"
@.str.11 = [15 x i8] c"-l,--hardlinks\00"
@.str.12 = [63 x i8] c" %-30s Update mode: Copy only if source is newer than target.\0A\00"
@.str.13 = [17 x i8] c"-u,--update-only\00"
@.str.14 = [50 x i8] c" %-30s Verbose mode: Show names of files copied.\0A\00"
@.str.15 = [13 x i8] c"-v,--verbose\00"
@.str.16 = [34 x i8] c" %-30s Help: Show these options.\0A\00"
@.str.17 = [10 x i8] c"-h,--help\00"
define void @show_help() {
%1 = load i32, i32* @stdout
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
%19 = load i32, i32* @stdout
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0))
ret void
}