#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 gcd(int /*<<< orphan*/, int);
int /*<<< orphan*/ get_hour();
int get_sec();
int /*<<< orphan*/ printf(char *);
int rand();
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ usleep(int);
int main() {
  int nowcounter, counter = 15;
  int i, space, star;
  unsigned long long int fib[50];
  fib[0] = 0;
  fib[1] = 1;
  for (i = 2; i < 50; i++)
    fib[i] = fib[i - 1] + fib[i - 2];
  int fib_counter;
  for (nowcounter = 0; nowcounter < counter; nowcounter++) {
    system("clear");
    fib_counter = (get_sec() % 4) * (rand() % 3);
    for (i = 0; i <= fib[fib_counter + 2]; i++) {
      for (space = 0; space < nowcounter; space++)
        printf(" ");
      for (star = 0; star <= gcd(get_hour(), (get_sec() + 1)); star++)
        printf("*");
      printf("\n");
    }
    usleep(1000000);
  }
  system("clear");
  printf("The End of the animation.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xf,-0xc(%rbp)
movq   $0x0,-0x1b0(%rbp)
movq   $0x1,-0x1a8(%rbp)
movl   $0x2,-0x10(%rbp)
cmpl   $0x32,-0x10(%rbp)
jge    11ea <main+0x7a>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x1b0(%rbp,%rax,8),%rcx
ff
mov    -0x10(%rbp),%eax
sub    $0x2,%eax
cltq
add    -0x1b0(%rbp,%rax,8),%rcx
ff
movslq -0x10(%rbp),%rax
mov    %rcx,-0x1b0(%rbp,%rax,8)
ff
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11a6 <main+0x36>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1320 <main+0x1b0>
lea    0xdfc(%rip),%rdi
call   1030 <system@plt>
mov    $0x0,%al
call   1060 <get_sec@plt>
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %edx,-0x1b8(%rbp)
mov    $0x0,%al
call   1080 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    -0x1b8(%rbp),%edx
imul   %eax,%edx
mov    %edx,-0x1b4(%rbp)
movl   $0x0,-0x10(%rbp)
movslq -0x10(%rbp),%rax
mov    -0x1b4(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
cmp    -0x1b0(%rbp,%rcx,8),%rax
ff
ja     1308 <main+0x198>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1290 <main+0x120>
lea    0xd89(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    126a <main+0xfa>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1bc(%rbp)
mov    $0x0,%al
call   1050 <get_hour@plt>
mov    %eax,-0x1c0(%rbp)
mov    $0x0,%al
call   1060 <get_sec@plt>
mov    -0x1c0(%rbp),%edi
mov    %eax,%esi
add    $0x1,%esi
call   1070 <gcd@plt>
mov    %eax,%ecx
mov    -0x1bc(%rbp),%eax
cmp    %ecx,%eax
jg     12ee <main+0x17e>
lea    0xd2d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1297 <main+0x127>
lea    0xd2e(%rip),%rdi
call   1040 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1245 <main+0xd5>
mov    $0xf4240,%edi
call   1090 <usleep@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11f1 <main+0x81>
lea    0xcd9(%rip),%rdi
call   1030 <system@plt>
lea    0xcd7(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x1c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x198,%rsp
movaps 0xe68(%rip),%xmm0
movaps %xmm0,(%rsp)
movq   $0x1,0x10(%rsp)
mov    $0x1,%edx
mov    $0x6,%eax
nop
add    -0x28(%rsp,%rax,8),%rdx
mov    %rdx,-0x18(%rsp,%rax,8)
mov    -0x20(%rsp,%rax,8),%rcx
add    %rdx,%rcx
mov    %rcx,-0x10(%rsp,%rax,8)
add    %rdx,%rcx
mov    %rcx,-0x8(%rsp,%rax,8)
cmp    $0x32,%rax
je     11e7 <main+0x67>
add    -0x10(%rsp,%rax,8),%rcx
mov    %rcx,(%rsp,%rax,8)
add    $0x4,%rax
mov    %rcx,%rdx
jmp    11b0 <main+0x30>
lea    0xe22(%rip),%r14
xor    %r12d,%r12d
jmp    1218 <main+0x98>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xf4240,%edi
call   10a0 <usleep@plt>
add    $0x1,%r12d
cmp    $0xf,%r12d
je     1310 <main+0x190>
mov    %r14,%rdi
call   1050 <system@plt>
xor    %eax,%eax
call   1070 <get_sec@plt>
mov    %eax,%ebx
lea    0x3(%rbx),%eax
test   %ebx,%ebx
cmovns %ebx,%eax
and    $0xfffffffc,%eax
sub    %eax,%ebx
xor    %eax,%eax
call   1090 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
sub    %ecx,%eax
imul   %ebx,%eax
cltq
mov    0x10(%rsp,%rax,8),%r15
xor    %r13d,%r13d
jmp    128a <main+0x10a>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r13),%rax
cmp    %r15,%r13
mov    %rax,%r13
je     1200 <main+0x80>
mov    %r12d,%ebx
test   %r12d,%r12d
je     12af <main+0x12f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    12a0 <main+0x120>
xor    %eax,%eax
call   1060 <get_hour@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1070 <get_sec@plt>
lea    0x1(%rax),%esi
mov    %ebx,%edi
call   1080 <gcd@plt>
test   %eax,%eax
js     1270 <main+0xf0>
mov    $0xffffffff,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x2a,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1060 <get_hour@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1070 <get_sec@plt>
lea    0x1(%rax),%esi
mov    %ebx,%edi
call   1080 <gcd@plt>
add    $0x1,%ebp
cmp    %eax,%ebp
jl     12e0 <main+0x160>
jmp    1270 <main+0xf0>
lea    0xcf9(%rip),%rdi
call   1050 <system@plt>
lea    0xcf3(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [2 x i8] c"*\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [27 x i8] c"The End of the animation.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [50 x i64]
%8 = alloca i32
store i32 0, i32* %1
store i32 15, i32* %3
%9 = getelementptr inbounds [50 x i64], [50 x i64]* %7, i64 0, i64 0
store i64 0, i64* %9
%10 = getelementptr inbounds [50 x i64], [50 x i64]* %7, i64 0, i64 1
store i64 1, i64* %10
store i32 2, i32* %4
br label %11
11: ; preds = %29, %0
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 50
br i1 %13, label %14, label %32
14: ; preds = %11
%15 = load i32, i32* %4
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [50 x i64], [50 x i64]* %7, i64 0, i64 %17
%19 = load i64, i64* %18
%20 = load i32, i32* %4
%21 = sub nsw i32 %20, 2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [50 x i64], [50 x i64]* %7, i64 0, i64 %22
%24 = load i64, i64* %23
%25 = add i64 %19, %24
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [50 x i64], [50 x i64]* %7, i64 0, i64 %27
store i64 %25, i64* %28
br label %29
29: ; preds = %14
%30 = load i32, i32* %4
%31 = add nsw i32 %30, 1
store i32 %31, i32* %4
br label %11
32: ; preds = %11
store i32 0, i32* %2
br label %33
33: ; preds = %83, %32
%34 = load i32, i32* %2
%35 = load i32, i32* %3
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %86
37: ; preds = %33
%38 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%39 = call i32 (...) @get_sec()
%40 = srem i32 %39, 4
%41 = call i32 (...) @rand()
%42 = srem i32 %41, 3
%43 = mul nsw i32 %40, %42
store i32 %43, i32* %8
store i32 0, i32* %4
br label %44
44: ; preds = %78, %37
%45 = load i32, i32* %4
%46 = sext i32 %45 to i64
%47 = load i32, i32* %8
%48 = add nsw i32 %47, 2
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [50 x i64], [50 x i64]* %7, i64 0, i64 %49
%51 = load i64, i64* %50
%52 = icmp ule i64 %46, %51
br i1 %52, label %53, label %81
53: ; preds = %44
store i32 0, i32* %5
br label %54
54: ; preds = %60, %53
%55 = load i32, i32* %5
%56 = load i32, i32* %2
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %63
58: ; preds = %54
%59 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %60
60: ; preds = %58
%61 = load i32, i32* %5
%62 = add nsw i32 %61, 1
store i32 %62, i32* %5
br label %54
63: ; preds = %54
store i32 0, i32* %6
br label %64
64: ; preds = %73, %63
%65 = load i32, i32* %6
%66 = call i32 (...) @get_hour()
%67 = call i32 (...) @get_sec()
%68 = add nsw i32 %67, 1
%69 = call i32 @gcd(i32 %66, i32 %68)
%70 = icmp sle i32 %65, %69
br i1 %70, label %71, label %76
71: ; preds = %64
%72 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %73
73: ; preds = %71
%74 = load i32, i32* %6
%75 = add nsw i32 %74, 1
store i32 %75, i32* %6
br label %64
76: ; preds = %64
%77 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %78
78: ; preds = %76
%79 = load i32, i32* %4
%80 = add nsw i32 %79, 1
store i32 %80, i32* %4
br label %44
81: ; preds = %44
%82 = call i32 @usleep(i32 1000000)
br label %83
83: ; preds = %81
%84 = load i32, i32* %2
%85 = add nsw i32 %84, 1
store i32 %85, i32* %2
br label %33
86: ; preds = %33
%87 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%88 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@str = [26 x i8] c"The End of the animation.\00"
define i32 @main() {
%1 = alloca [50 x i64]
%2 = bitcast [50 x i64]* %1 to i8*
%3 = bitcast [50 x i64]* %1 to <2 x i64>*
store <2 x i64> <i64 0, i64 1>, <2 x i64>* %3
%4 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 2
store i64 1, i64* %4
br label %5
5: ; preds = %27, %0
%6 = phi i64 [ 3, %0 ], [ %32, %27 ]
%7 = phi i64 [ 1, %0 ], [ %30, %27 ]
%8 = phi i64 [ 2, %0 ], [ %25, %27 ]
%9 = add nsw i64 %8, -1
%10 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %9
%11 = load i64, i64* %10
%12 = add i64 %11, %7
%13 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %6
store i64 %12, i64* %13
%14 = add nuw nsw i64 %6, 1
%15 = add nsw i64 %6, -1
%16 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %15
%17 = load i64, i64* %16
%18 = add i64 %17, %12
%19 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %14
store i64 %18, i64* %19
%20 = add nuw nsw i64 %6, 2
%21 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %6
%22 = load i64, i64* %21
%23 = add i64 %22, %18
%24 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %20
store i64 %23, i64* %24
%25 = add nuw nsw i64 %6, 3
%26 = icmp eq i64 %25, 50
br i1 %26, label %33, label %27
27: ; preds = %5
%28 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %14
%29 = load i64, i64* %28
%30 = add i64 %29, %23
%31 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %25
store i64 %30, i64* %31
%32 = add nuw nsw i64 %6, 4
br label %5
33: ; preds = %5, %72
%34 = phi i32 [ %74, %72 ], [ 0, %5 ]
%35 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%36 = tail call i32 (...) @get_sec()
%37 = srem i32 %36, 4
%38 = tail call i32 (...) @rand()
%39 = srem i32 %38, 3
%40 = mul nsw i32 %39, %37
%41 = add nsw i32 %40, 2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [50 x i64], [50 x i64]* %1, i64 0, i64 %42
%44 = load i64, i64* %43
%45 = icmp eq i32 %34, 0
br label %46
46: ; preds = %33, %68
%47 = phi i64 [ 0, %33 ], [ %70, %68 ]
br i1 %45, label %48, label %54
48: ; preds = %54, %46
%49 = tail call i32 (...) @get_hour()
%50 = tail call i32 (...) @get_sec()
%51 = add nsw i32 %50, 1
%52 = tail call i32 @gcd(i32 %49, i32 %51)
%53 = icmp slt i32 %52, 0
br i1 %53, label %68, label %59
54: ; preds = %46, %54
%55 = phi i32 [ %57, %54 ], [ 0, %46 ]
%56 = tail call i32 @putchar(i32 32)
%57 = add nuw nsw i32 %55, 1
%58 = icmp eq i32 %57, %34
br i1 %58, label %48, label %54
59: ; preds = %48, %59
%60 = phi i32 [ %62, %59 ], [ 0, %48 ]
%61 = tail call i32 @putchar(i32 42)
%62 = add nuw nsw i32 %60, 1
%63 = tail call i32 (...) @get_hour()
%64 = tail call i32 (...) @get_sec()
%65 = add nsw i32 %64, 1
%66 = tail call i32 @gcd(i32 %63, i32 %65)
%67 = icmp slt i32 %60, %66
br i1 %67, label %59, label %68
68: ; preds = %59, %48
%69 = tail call i32 @putchar(i32 10)
%70 = add nuw i64 %47, 1
%71 = icmp eq i64 %47, %44
br i1 %71, label %72, label %46
72: ; preds = %68
%73 = tail call i32 @usleep(i32 1000000)
%74 = add nuw nsw i32 %34, 1
%75 = icmp eq i32 %74, 15
br i1 %75, label %76, label %33
76: ; preds = %72
%77 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%78 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
ret i32 0
}