#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 *, char *);
int /*<<< orphan*/ puts(char *);
void printUsage(char **argv) {
  puts("Usage:");
  printf("    %s "
         "compile <file.zzp>"
         "\n",
         *argv);
  printf("    %s "
         "execute <file.zzz>"
         "\n",
         *argv);
  printf("    %s "
         "encrypt <file.zzz> <KEY>"
         "\n",
         *argv);
  printf("    %s "
         "decrypt <file.zze> <KEY>"
         "\n",
         *argv);
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xec1(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xec9(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xed1(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xedf(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%rsi
lea    0xecd(%rip),%rdi
call   1040 <printf@plt>
mov    (%rbx),%rsi
lea    0xed9(%rip),%rdi
call   1040 <printf@plt>
mov    (%rbx),%rsi
lea    0xee5(%rip),%rdi
call   1040 <printf@plt>
mov    (%rbx),%rsi
lea    0xef7(%rip),%rdi
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"Usage:\00"
@.str.1 = [27 x i8] c" %s compile <file.zzp>\0A\00"
@.str.2 = [27 x i8] c" %s execute <file.zzz>\0A\00"
@.str.3 = [33 x i8] c" %s encrypt <file.zzz> <KEY>\0A\00"
@.str.4 = [33 x i8] c" %s decrypt <file.zze> <KEY>\0A\00"
define void @printUsage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = load i8**, i8*** %2
%5 = load i8*, i8** %4
%6 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = load i8**, i8*** %2
%8 = load i8*, i8** %7
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %8)
%10 = load i8**, i8*** %2
%11 = load i8*, i8** %10
%12 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* %11)
%13 = load i8**, i8*** %2
%14 = load i8*, i8** %13
%15 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* %14)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"Usage:\00"
@.str.1 = [27 x i8] c" %s compile <file.zzp>\0A\00"
@.str.2 = [27 x i8] c" %s execute <file.zzz>\0A\00"
@.str.3 = [33 x i8] c" %s encrypt <file.zzz> <KEY>\0A\00"
@.str.4 = [33 x i8] c" %s decrypt <file.zze> <KEY>\0A\00"
define void @printUsage(i8** nocapture %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = load i8*, i8** %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %0
%6 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%7 = load i8*, i8** %0
%8 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %0
%10 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* %9)
ret void
}