#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*/ congratulateStudent(char *, char *, int);
int /*<<< orphan*/ sleep(int);
int main(int argc, const char *argv[]) {
  congratulateStudent("Mark", "Cocoa", 5);
  sleep(2);
  congratulateStudent("Bo", "Objective-C", 2);
  sleep(2);
  congratulateStudent("Mike", "Python", 5);
  congratulateStudent("Ted", "iOS", 5);
  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    0xec3(%rip),%rdi
lea    0xec1(%rip),%rsi
mov    $0x5,%edx
call   1030 <congratulateStudent@plt>
mov    $0x2,%edi
call   1040 <sleep@plt>
lea    0xeac(%rip),%rdi
lea    0xea8(%rip),%rsi
mov    $0x2,%edx
call   1030 <congratulateStudent@plt>
mov    $0x2,%edi
call   1040 <sleep@plt>
lea    0xe99(%rip),%rdi
lea    0xe97(%rip),%rsi
mov    $0x5,%edx
call   1030 <congratulateStudent@plt>
lea    0xe8d(%rip),%rdi
lea    0xe8a(%rip),%rsi
mov    $0x5,%edx
call   1030 <congratulateStudent@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xed6(%rip),%rsi
mov    $0x5,%edx
call   1030 <congratulateStudent@plt>
mov    $0x2,%edi
call   1040 <sleep@plt>
lea    0xec1(%rip),%rdi
lea    0xebd(%rip),%rsi
mov    $0x2,%edx
call   1030 <congratulateStudent@plt>
mov    $0x2,%edi
call   1040 <sleep@plt>
lea    0xeae(%rip),%rdi
lea    0xeac(%rip),%rsi
mov    $0x5,%edx
call   1030 <congratulateStudent@plt>
lea    0xea2(%rip),%rdi
lea    0xe9f(%rip),%rsi
mov    $0x5,%edx
call   1030 <congratulateStudent@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"Mark\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"Ted\00"
@.str.7 = [4 x i8] c"iOS\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 @congratulateStudent(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 @congratulateStudent(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 @congratulateStudent(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 @congratulateStudent(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)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"Mark\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"Ted\00"
@.str.7 = [4 x i8] c"iOS\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @congratulateStudent(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 @congratulateStudent(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 @congratulateStudent(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 @congratulateStudent(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)
ret i32 0
}