#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*/ congratulatesStudent(char *, char *, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sleep(int);
int main(int argc, const char *argv[]) {
  congratulatesStudent("Kate", "Cocoa", 5);
  sleep(2);
  congratulatesStudent("Bo", "Objective-C", 2);
  sleep(2);
  congratulatesStudent("Mike", "Python", 5);
  sleep(2);
  congratulatesStudent("Liz", "iOS", 5);
  printf("\"It doesn't happen all at once,\" said the Skin Horse.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
lea    0xeb1(%rip),%rsi
mov    $0x5,%edx
call   1040 <congratulatesStudent@plt>
mov    $0x2,%edi
call   1050 <sleep@plt>
lea    0xe9c(%rip),%rdi
lea    0xe98(%rip),%rsi
mov    $0x2,%edx
call   1040 <congratulatesStudent@plt>
mov    $0x2,%edi
call   1050 <sleep@plt>
lea    0xe89(%rip),%rdi
lea    0xe87(%rip),%rsi
mov    $0x5,%edx
call   1040 <congratulatesStudent@plt>
mov    $0x2,%edi
call   1050 <sleep@plt>
lea    0xe73(%rip),%rdi
lea    0xe70(%rip),%rsi
mov    $0x5,%edx
call   1040 <congratulatesStudent@plt>
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xec6(%rip),%rsi
mov    $0x5,%edx
call   1040 <congratulatesStudent@plt>
mov    $0x2,%edi
call   1050 <sleep@plt>
lea    0xeb1(%rip),%rdi
lea    0xead(%rip),%rsi
mov    $0x2,%edx
call   1040 <congratulatesStudent@plt>
mov    $0x2,%edi
call   1050 <sleep@plt>
lea    0xe9e(%rip),%rdi
lea    0xe9c(%rip),%rsi
mov    $0x5,%edx
call   1040 <congratulatesStudent@plt>
mov    $0x2,%edi
call   1050 <sleep@plt>
lea    0xe88(%rip),%rdi
lea    0xe85(%rip),%rsi
mov    $0x5,%edx
call   1040 <congratulatesStudent@plt>
lea    0xe78(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"Kate\00"
@.str.1 = [6 x i8] c"Cocoa\00"
@.str.2 = [3 x i8] c"Bo\00"
@.str.3 = [12 x i8] c"Objective-C\00"
@.str.4 = [5 x i8] c"Mike\00"
@.str.5 = [7 x i8] c"Python\00"
@.str.6 = [4 x i8] c"Liz\00"
@.str.7 = [4 x i8] c"iOS\00"
@.str.8 = [55 x i8] c"\22It doesn't happen all at once,\22 said the Skin Horse.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @congratulatesStudent(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5)
%7 = call i32 @sleep(i32 2)
%8 = call i32 @congratulatesStudent(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 2)
%9 = call i32 @sleep(i32 2)
%10 = call i32 @congratulatesStudent(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 5)
%11 = call i32 @sleep(i32 2)
%12 = call i32 @congratulatesStudent(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 5)
%13 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"Kate\00"
@.str.1 = [6 x i8] c"Cocoa\00"
@.str.2 = [3 x i8] c"Bo\00"
@.str.3 = [12 x i8] c"Objective-C\00"
@.str.4 = [5 x i8] c"Mike\00"
@.str.5 = [7 x i8] c"Python\00"
@.str.6 = [4 x i8] c"Liz\00"
@.str.7 = [4 x i8] c"iOS\00"
@str = [54 x i8] c"\22It doesn't happen all at once,\22 said the Skin Horse.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @congratulatesStudent(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5)
%4 = tail call i32 @sleep(i32 2)
%5 = tail call i32 @congratulatesStudent(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 2)
%6 = tail call i32 @sleep(i32 2)
%7 = tail call i32 @congratulatesStudent(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 5)
%8 = tail call i32 @sleep(i32 2)
%9 = tail call i32 @congratulatesStudent(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 5)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
ret i32 0
}