#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 int clock_t;

/* Variables and functions */
int clock();
int /*<<< orphan*/ printf(char *);
void developer() {
  printf("\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n");
  printf("   * Game's Name: Pebble Dropping\n");
  printf("   * Developer: Minhas Kamal (BSSE-0509, IIT-5th, DU)\n");
  printf("   * Date: 24.April.2013\n");
  clock_t start = 0, finish = 0;
  start = clock();
  while ((finish - start) < 1800)
    finish = clock();
  return;
}


x86 assembly (clang, -O0):
<developer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
call   1040 <printf@plt>
lea    0xeee(%rip),%rdi
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x0,%al
call   1030 <clock@plt>
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x4(%rbp),%eax
cmp    $0x708,%eax
jge    1190 <developer+0x70>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %eax,-0x8(%rbp)
jmp    1170 <developer+0x50>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<developer>:
push   %rbx
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <clock@plt>
cmp    $0xfffff8f9,%eax
jl     1180 <developer+0x60>
mov    %eax,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <clock@plt>
sub    %ebx,%eax
cmp    $0x708,%eax
jl     1170 <developer+0x50>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"\0A\0A\0A\0A\0A \0A\0A\0A\0A\0A \0A\0A\0A\0A\0A\00"
@.str.1 = [35 x i8] c" * Game's Name: Pebble Dropping\0A\00"
@.str.2 = [55 x i8] c" * Developer: Minhas Kamal (BSSE-0509, IIT-5th, DU)\0A\00"
@.str.3 = [26 x i8] c" * Date: 24.April.2013\0A\00"
define void @developer() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
store i32 0, i32* %2
%7 = call i32 (...) @clock()
store i32 %7, i32* %1
br label %8
8: ; preds = %13, %0
%9 = load i32, i32* %2
%10 = load i32, i32* %1
%11 = sub nsw i32 %9, %10
%12 = icmp slt i32 %11, 1800
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 (...) @clock()
store i32 %14, i32* %2
br label %8
15: ; preds = %8
ret void
}

LLVM IR (-O2):
@str = [17 x i8] c"\0A\0A\0A\0A\0A \0A\0A\0A\0A\0A \0A\0A\0A\0A\00"
@str.4 = [34 x i8] c" * Game's Name: Pebble Dropping\00"
@str.5 = [54 x i8] c" * Developer: Minhas Kamal (BSSE-0509, IIT-5th, DU)\00"
@str.6 = [25 x i8] c" * Date: 24.April.2013\00"
define void @developer() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.4, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.6, i64 0, i64 0))
%5 = tail call i32 (...) @clock()
%6 = icmp sgt i32 %5, -1800
br i1 %6, label %7, label %11
7: ; preds = %0, %7
%8 = tail call i32 (...) @clock()
%9 = sub nsw i32 %8, %5
%10 = icmp slt i32 %9, 1800
br i1 %10, label %7, label %11
11: ; preds = %7, %0
ret void
}