#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*/ getchar();
int /*<<< orphan*/ printf(char *);
int sin(float);
int /*<<< orphan*/ sleep(int);
int main() {
  float t, a;
  int s, b;
  char c;
  b = 0;
  for (t = 0; t < 40; t += .25) {
    a = 26 + 25 * sin(t);
    for (s = 0; s < a; s++)
      printf(" ");
    if (b == 0) {
      printf("Cymon's\n");
      b = 1;
    } else {
      printf(" Games\n");
      b = 0;
    }
    sleep(50);
  }
  printf("Press any key...");
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe9a(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    121f <main+0xdf>
movss  -0x8(%rbp),%xmm0
call   1050 <sin@plt>
imul   $0x19,%eax,%eax
add    $0x1a,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cvtsi2ssl -0x10(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    11bd <main+0x7d>
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1190 <main+0x50>
cmpl   $0x0,-0x14(%rbp)
jne    11df <main+0x9f>
lea    0xe44(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    11f2 <main+0xb2>
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    $0x32,%edi
call   1060 <sleep@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdfb(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    115e <main+0x1e>
lea    0xdfd(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
xorps  %xmm0,%xmm0
lea    0xead(%rip),%r14
lea    0xe9f(%rip),%r15
jmp    11b5 <main+0x55>
nopl   0x0(%rax)
test   %ebx,%ebx
mov    %r15,%rdi
cmove  %r14,%rdi
xor    $0x1,%ebx
call   1040 <puts@plt>
mov    $0x32,%edi
call   1080 <sleep@plt>
movss  (%rsp),%xmm0
addss  0xe58(%rip),%xmm0
movss  0xe54(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1214 <main+0xb4>
movss  %xmm0,(%rsp)
call   1070 <sin@plt>
lea    (%rax,%rax,4),%eax
lea    (%rax,%rax,4),%ecx
cmp    $0xffffffe7,%ecx
jl     1180 <main+0x20>
lea    (%rax,%rax,4),%eax
add    $0x1a,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x4(%rsp)
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
add    $0x1,%ebp
movss  0x4(%rsp),%xmm1
ucomiss %xmm0,%xmm1
ja     11f0 <main+0x90>
jmp    1180 <main+0x20>
lea    0xded(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [9 x i8] c"Cymon's\0A\00"
@.str.2 = [8 x i8] c" Games\0A\00"
@.str.3 = [17 x i8] c"Press any key...\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8
store i32 0, i32* %1
store i32 0, i32* %5
store float 0.000000e+00, float* %2
br label %7
7: ; preds = %35, %0
%8 = load float, float* %2
%9 = fcmp olt float %8, 4.000000e+01
br i1 %9, label %10, label %40
10: ; preds = %7
%11 = load float, float* %2
%12 = call i32 @sin(float %11)
%13 = mul nsw i32 25, %12
%14 = add nsw i32 26, %13
%15 = sitofp i32 %14 to float
store float %15, float* %3
store i32 0, i32* %4
br label %16
16: ; preds = %23, %10
%17 = load i32, i32* %4
%18 = sitofp i32 %17 to float
%19 = load float, float* %3
%20 = fcmp olt float %18, %19
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %23
23: ; preds = %21
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %16
26: ; preds = %16
%27 = load i32, i32* %5
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %5
br label %33
31: ; preds = %26
%32 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %5
br label %33
33: ; preds = %31, %29
%34 = call i32 @sleep(i32 50)
br label %35
35: ; preds = %33
%36 = load float, float* %2
%37 = fpext float %36 to double
%38 = fadd double %37, 2.500000e-01
%39 = fptrunc double %38 to float
store float %39, float* %2
br label %7
40: ; preds = %7
%41 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%42 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str.3 = [17 x i8] c"Press any key...\00"
@str = [7 x i8] c" Games\00"
@str.4 = [8 x i8] c"Cymon's\00"
define i32 @main() {
br label %1
1: ; preds = %0, %15
%2 = phi float [ 0.000000e+00, %0 ], [ %21, %15 ]
%3 = phi i32 [ 0, %0 ], [ %18, %15 ]
%4 = tail call i32 @sin(float %2)
%5 = mul nsw i32 %4, 25
%6 = add nsw i32 %5, 26
%7 = sitofp i32 %6 to float
%8 = icmp sgt i32 %5, -26
br i1 %8, label %9, label %15
9: ; preds = %1, %9
%10 = phi i32 [ %12, %9 ], [ 0, %1 ]
%11 = tail call i32 @putchar(i32 32)
%12 = add nuw nsw i32 %10, 1
%13 = sitofp i32 %12 to float
%14 = fcmp olt float %13, %7
br i1 %14, label %9, label %15
15: ; preds = %9, %1
%16 = icmp eq i32 %3, 0
%17 = select i1 %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0)
%18 = xor i32 %3, 1
%19 = tail call i32 @puts(i8* dereferenceable(1) %17)
%20 = tail call i32 @sleep(i32 50)
%21 = fadd float %2, 2.500000e-01
%22 = fcmp olt float %21, 4.000000e+01
br i1 %22, label %1, label %23
23: ; preds = %15
%24 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%25 = tail call i32 (...) @getchar()
ret i32 0
}