#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 */
typedef scalar_t__ BOOL;

/* Variables and functions */
scalar_t__ YES;
int /*<<< orphan*/ congratulateStudent(char *, char *, int);
int /*<<< orphan*/ sleep(int);
int main(int argc, const char *argv[]) {
  congratulateStudent("Kate", "Cocoa", 5);
  sleep(2);
  congratulateStudent("Bo", "Objective-C", 2);
  sleep(2);
  congratulateStudent("Mike", "Python", 5);
  sleep(2);
  congratulateStudent("Tighe", "iOS", 5);
  BOOL done = YES;
  if (done)
    return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%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>
mov    $0x2,%edi
call   1040 <sleep@plt>
lea    0xe83(%rip),%rdi
lea    0xe82(%rip),%rsi
mov    $0x5,%edx
call   1030 <congratulateStudent@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     11d4 <main+0xb4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%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>
mov    $0x2,%edi
call   1040 <sleep@plt>
lea    0xe98(%rip),%rdi
lea    0xe97(%rip),%rsi
mov    $0x5,%edx
call   1030 <congratulateStudent@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 = [6 x i8] c"Tighe\00"
@.str.7 = [4 x i8] c"iOS\00"
@YES = global i64 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = 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)
%8 = call i32 @sleep(i32 2)
%9 = 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)
%10 = call i32 @sleep(i32 2)
%11 = 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)
%12 = call i32 @sleep(i32 2)
%13 = call i32 @congratulateStudent(i8* getelementptr inbounds ([6 x i8], [6 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)
%14 = load i64, i64* @YES
store i64 %14, i64* %6
%15 = load i64, i64* %6
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 0, i32* %3
br label %18
18: ; preds = %17, %2
%19 = load i32, i32* %3
ret i32 %19
}

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 = [6 x i8] c"Tighe\00"
@.str.7 = [4 x i8] c"iOS\00"
@YES = global i64 0
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 @sleep(i32 2)
%9 = tail call i32 @congratulateStudent(i8* getelementptr inbounds ([6 x i8], [6 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
}