#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*/ d2x24_printf(int, char *, ...);
int /*<<< orphan*/ usleep(int);
int wait_key(char *);
int main(int argc, char *argv[]) {
  int mych = ' ';
  while (1) {
    d2x24_printf(0, "%s", "SITEUR Guadalajara  CBTC");
    usleep(800000);
    mych = wait_key("Hit a key");
    d2x24_printf(1, "You hit %c", mych);
    d2x24_printf(0, "%s", "1234567890!@#$%*()_+<>?\\");
    usleep(800000);
    mych = wait_key("Hit a key");
    d2x24_printf(1, "You hit %c", mych);
    d2x24_printf(0, "%s", "abcdefghigklmnopqrstuvwx");
    usleep(800000);
    mych = wait_key("Hit a key");
    d2x24_printf(1, "You hit %c", mych);
    d2x24_printf(0, "%s", "ABCDEFGHIJKLMNOPQRSTUVWX");
    usleep(800000);
    mych = wait_key("Hit a key");
    d2x24_printf(1, "You hit %c", mych);
    d2x24_printf(0, "%s", "yzYZ,./[]{}|~\"1234567890");
    usleep(800000);
    mych = wait_key("Hit a key");
    d2x24_printf(1, "You hit %c", mych);
  }
}


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)
movl   $0x20,-0x14(%rbp)
xor    %edi,%edi
lea    0xeaa(%rip),%rsi
lea    0xea6(%rip),%rdx
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
lea    0xea7(%rip),%rdi
call   1030 <wait_key@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
lea    0xe9a(%rip),%rsi
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
xor    %edi,%edi
lea    0xe64(%rip),%rsi
lea    0xe8e(%rip),%rdx
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
lea    0xe61(%rip),%rdi
call   1030 <wait_key@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
xor    %edi,%edi
lea    0xe1e(%rip),%rsi
lea    0xe61(%rip),%rdx
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
lea    0xe1b(%rip),%rdi
call   1030 <wait_key@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
lea    0xe0e(%rip),%rsi
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
xor    %edi,%edi
lea    0xdd8(%rip),%rsi
lea    0xe34(%rip),%rdx
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
lea    0xdd5(%rip),%rdi
call   1030 <wait_key@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
lea    0xdc8(%rip),%rsi
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
xor    %edi,%edi
lea    0xd92(%rip),%rsi
lea    0xe07(%rip),%rdx
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
lea    0xd8f(%rip),%rdi
call   1030 <wait_key@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
lea    0xd82(%rip),%rsi
mov    $0x0,%al
call   1040 <d2x24_printf@plt>
jmp    114d <main+0x1d>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xebe(%rip),%r15
lea    0xed3(%rip),%r12
lea    0xed6(%rip),%rbx
lea    0xef3(%rip),%rbp
lea    0xf05(%rip),%r14
lea    0xf17(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nop
xor    %edi,%edi
mov    %r15,%rsi
lea    0xe87(%rip),%rdx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
mov    %r12,%rdi
call   1030 <wait_key@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
xor    %edi,%edi
mov    %r15,%rsi
lea    0xe7f(%rip),%rdx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
mov    %r12,%rdi
call   1030 <wait_key@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
xor    %edi,%edi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
mov    %r12,%rdi
call   1030 <wait_key@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
xor    %edi,%edi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
mov    %r12,%rdi
call   1030 <wait_key@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
xor    %edi,%edi
mov    %r15,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
mov    $0xc3500,%edi
call   1050 <usleep@plt>
mov    %r12,%rdi
call   1030 <wait_key@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <d2x24_printf@plt>
jmp    1170 <main+0x40>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [25 x i8] c"SITEUR Guadalajara CBTC\00"
@.str.2 = [10 x i8] c"Hit a key\00"
@.str.3 = [11 x i8] c"You hit %c\00"
@.str.4 = [25 x i8] c"1234567890!@#$%*()_+<>?\\\00"
@.str.5 = [25 x i8] c"abcdefghigklmnopqrstuvwx\00"
@.str.6 = [25 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWX\00"
@.str.7 = [25 x i8] c"yzYZ,./[]{}|~\221234567890\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 32, i32* %6
br label %7
7: ; preds = %2, %7
%8 = call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @usleep(i32 800000)
%10 = call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
store i32 %10, i32* %6
%11 = load i32, i32* %6
%12 = call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %11)
%13 = call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @usleep(i32 800000)
%15 = call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
store i32 %15, i32* %6
%16 = load i32, i32* %6
%17 = call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %16)
%18 = call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%19 = call i32 @usleep(i32 800000)
%20 = call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
store i32 %20, i32* %6
%21 = load i32, i32* %6
%22 = call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%23 = call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%24 = call i32 @usleep(i32 800000)
%25 = call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
store i32 %25, i32* %6
%26 = load i32, i32* %6
%27 = call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%28 = call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%29 = call i32 @usleep(i32 800000)
%30 = call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
store i32 %30, i32* %6
%31 = load i32, i32* %6
%32 = call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %31)
br label %7
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [25 x i8] c"SITEUR Guadalajara CBTC\00"
@.str.2 = [10 x i8] c"Hit a key\00"
@.str.3 = [11 x i8] c"You hit %c\00"
@.str.4 = [25 x i8] c"1234567890!@#$%*()_+<>?\\\00"
@.str.5 = [25 x i8] c"abcdefghigklmnopqrstuvwx\00"
@.str.6 = [25 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWX\00"
@.str.7 = [25 x i8] c"yzYZ,./[]{}|~\221234567890\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %3, %2
%4 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @usleep(i32 800000)
%6 = tail call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %6)
%8 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @usleep(i32 800000)
%10 = tail call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 @usleep(i32 800000)
%14 = tail call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%15 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%16 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%17 = tail call i32 @usleep(i32 800000)
%18 = tail call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%19 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %18)
%20 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%21 = tail call i32 @usleep(i32 800000)
%22 = tail call i32 @wait_key(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%23 = tail call i32 (i32, i8*, ...) @d2x24_printf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %22)
br label %3
}