#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*/ box_walls(int /*<<< orphan*/, int, int /*<<< orphan*/, int,
                             int, int);
int /*<<< orphan*/ box_wireframe(int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int, int /*<<< orphan*/,
                                 int);
int /*<<< orphan*/ clrplane(int, int);
int /*<<< orphan*/ delay_ms(int);
void zoom_pyramid_clear(int delay) {
  box_walls(0, 0, 0, 7, 0, 7);
  delay_ms(delay);
  box_wireframe(0, 0, 0, 7, 0, 1);
  clrplane(2, 0);
  delay_ms(delay);
  clrplane(2, 1);
  box_walls(0, 2, 0, 7, 2, 7);
  delay_ms(delay);
  clrplane(2, 2);
  box_walls(0, 3, 0, 7, 3, 7);
  delay_ms(delay);
  clrplane(2, 3);
  box_walls(0, 4, 0, 7, 4, 7);
  delay_ms(delay);
  clrplane(2, 4);
  box_walls(0, 5, 0, 7, 5, 7);
  delay_ms(delay);
  clrplane(2, 5);
  box_walls(0, 6, 0, 7, 6, 7);
  delay_ms(delay);
  clrplane(2, 6);
  box_walls(0, 7, 0, 7, 7, 7);
  delay_ms(delay);
  clrplane(2, 7);
}


x86 assembly (clang, -O0):
<zoom_pyramid_clear>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %r8d,%r8d
mov    $0x7,%r9d
mov    %r8d,%edi
mov    %r8d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
call   1060 <box_walls@plt>
mov    -0x4(%rbp),%edi
call   1050 <delay_ms@plt>
xor    %r8d,%r8d
mov    $0x7,%ecx
mov    $0x1,%r9d
mov    %r8d,%edi
mov    %r8d,%esi
mov    %r8d,%edx
call   1040 <box_wireframe@plt>
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <clrplane@plt>
mov    -0x4(%rbp),%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x1,%esi
call   1030 <clrplane@plt>
xor    %edx,%edx
mov    $0x2,%r8d
mov    $0x7,%r9d
mov    %edx,%edi
mov    %r8d,%esi
mov    %r9d,%ecx
call   1060 <box_walls@plt>
mov    -0x4(%rbp),%edi
call   1050 <delay_ms@plt>
mov    $0x2,%esi
mov    %esi,%edi
call   1030 <clrplane@plt>
xor    %edx,%edx
mov    $0x3,%r8d
mov    $0x7,%r9d
mov    %edx,%edi
mov    %r8d,%esi
mov    %r9d,%ecx
call   1060 <box_walls@plt>
mov    -0x4(%rbp),%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x3,%esi
call   1030 <clrplane@plt>
xor    %edx,%edx
mov    $0x4,%r8d
mov    $0x7,%r9d
mov    %edx,%edi
mov    %r8d,%esi
mov    %r9d,%ecx
call   1060 <box_walls@plt>
mov    -0x4(%rbp),%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x4,%esi
call   1030 <clrplane@plt>
xor    %edx,%edx
mov    $0x5,%r8d
mov    $0x7,%r9d
mov    %edx,%edi
mov    %r8d,%esi
mov    %r9d,%ecx
call   1060 <box_walls@plt>
mov    -0x4(%rbp),%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x5,%esi
call   1030 <clrplane@plt>
xor    %edx,%edx
mov    $0x6,%r8d
mov    $0x7,%r9d
mov    %edx,%edi
mov    %r8d,%esi
mov    %r9d,%ecx
call   1060 <box_walls@plt>
mov    -0x4(%rbp),%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x6,%esi
call   1030 <clrplane@plt>
xor    %edx,%edx
mov    $0x7,%r9d
mov    %edx,%edi
mov    %r9d,%esi
mov    %r9d,%ecx
mov    %r9d,%r8d
call   1060 <box_walls@plt>
mov    -0x4(%rbp),%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x7,%esi
call   1030 <clrplane@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zoom_pyramid_clear>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x7,%ecx
xor    %r8d,%r8d
mov    $0x7,%r9d
call   1060 <box_walls@plt>
mov    %ebx,%edi
call   1050 <delay_ms@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x7,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1040 <box_wireframe@plt>
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <clrplane@plt>
mov    %ebx,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x1,%esi
call   1030 <clrplane@plt>
xor    %edi,%edi
mov    $0x2,%esi
xor    %edx,%edx
mov    $0x7,%ecx
mov    $0x2,%r8d
mov    $0x7,%r9d
call   1060 <box_walls@plt>
mov    %ebx,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x2,%esi
call   1030 <clrplane@plt>
xor    %edi,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x7,%ecx
mov    $0x3,%r8d
mov    $0x7,%r9d
call   1060 <box_walls@plt>
mov    %ebx,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x3,%esi
call   1030 <clrplane@plt>
xor    %edi,%edi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x7,%ecx
mov    $0x4,%r8d
mov    $0x7,%r9d
call   1060 <box_walls@plt>
mov    %ebx,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x4,%esi
call   1030 <clrplane@plt>
xor    %edi,%edi
mov    $0x5,%esi
xor    %edx,%edx
mov    $0x7,%ecx
mov    $0x5,%r8d
mov    $0x7,%r9d
call   1060 <box_walls@plt>
mov    %ebx,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x5,%esi
call   1030 <clrplane@plt>
xor    %edi,%edi
mov    $0x6,%esi
xor    %edx,%edx
mov    $0x7,%ecx
mov    $0x6,%r8d
mov    $0x7,%r9d
call   1060 <box_walls@plt>
mov    %ebx,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x6,%esi
call   1030 <clrplane@plt>
xor    %edi,%edi
mov    $0x7,%esi
xor    %edx,%edx
mov    $0x7,%ecx
mov    $0x7,%r8d
mov    $0x7,%r9d
call   1060 <box_walls@plt>
mov    %ebx,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
mov    $0x7,%esi
pop    %rbx
jmp    1030 <clrplane@plt>

LLVM IR (-O0):
define void @zoom_pyramid_clear(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @box_walls(i32 0, i32 0, i32 0, i32 7, i32 0, i32 7)
%4 = load i32, i32* %2
%5 = call i32 @delay_ms(i32 %4)
%6 = call i32 @box_wireframe(i32 0, i32 0, i32 0, i32 7, i32 0, i32 1)
%7 = call i32 @clrplane(i32 2, i32 0)
%8 = load i32, i32* %2
%9 = call i32 @delay_ms(i32 %8)
%10 = call i32 @clrplane(i32 2, i32 1)
%11 = call i32 @box_walls(i32 0, i32 2, i32 0, i32 7, i32 2, i32 7)
%12 = load i32, i32* %2
%13 = call i32 @delay_ms(i32 %12)
%14 = call i32 @clrplane(i32 2, i32 2)
%15 = call i32 @box_walls(i32 0, i32 3, i32 0, i32 7, i32 3, i32 7)
%16 = load i32, i32* %2
%17 = call i32 @delay_ms(i32 %16)
%18 = call i32 @clrplane(i32 2, i32 3)
%19 = call i32 @box_walls(i32 0, i32 4, i32 0, i32 7, i32 4, i32 7)
%20 = load i32, i32* %2
%21 = call i32 @delay_ms(i32 %20)
%22 = call i32 @clrplane(i32 2, i32 4)
%23 = call i32 @box_walls(i32 0, i32 5, i32 0, i32 7, i32 5, i32 7)
%24 = load i32, i32* %2
%25 = call i32 @delay_ms(i32 %24)
%26 = call i32 @clrplane(i32 2, i32 5)
%27 = call i32 @box_walls(i32 0, i32 6, i32 0, i32 7, i32 6, i32 7)
%28 = load i32, i32* %2
%29 = call i32 @delay_ms(i32 %28)
%30 = call i32 @clrplane(i32 2, i32 6)
%31 = call i32 @box_walls(i32 0, i32 7, i32 0, i32 7, i32 7, i32 7)
%32 = load i32, i32* %2
%33 = call i32 @delay_ms(i32 %32)
%34 = call i32 @clrplane(i32 2, i32 7)
ret void
}

LLVM IR (-O2):
define void @zoom_pyramid_clear(i32 %0) {
%2 = tail call i32 @box_walls(i32 0, i32 0, i32 0, i32 7, i32 0, i32 7)
%3 = tail call i32 @delay_ms(i32 %0)
%4 = tail call i32 @box_wireframe(i32 0, i32 0, i32 0, i32 7, i32 0, i32 1)
%5 = tail call i32 @clrplane(i32 2, i32 0)
%6 = tail call i32 @delay_ms(i32 %0)
%7 = tail call i32 @clrplane(i32 2, i32 1)
%8 = tail call i32 @box_walls(i32 0, i32 2, i32 0, i32 7, i32 2, i32 7)
%9 = tail call i32 @delay_ms(i32 %0)
%10 = tail call i32 @clrplane(i32 2, i32 2)
%11 = tail call i32 @box_walls(i32 0, i32 3, i32 0, i32 7, i32 3, i32 7)
%12 = tail call i32 @delay_ms(i32 %0)
%13 = tail call i32 @clrplane(i32 2, i32 3)
%14 = tail call i32 @box_walls(i32 0, i32 4, i32 0, i32 7, i32 4, i32 7)
%15 = tail call i32 @delay_ms(i32 %0)
%16 = tail call i32 @clrplane(i32 2, i32 4)
%17 = tail call i32 @box_walls(i32 0, i32 5, i32 0, i32 7, i32 5, i32 7)
%18 = tail call i32 @delay_ms(i32 %0)
%19 = tail call i32 @clrplane(i32 2, i32 5)
%20 = tail call i32 @box_walls(i32 0, i32 6, i32 0, i32 7, i32 6, i32 7)
%21 = tail call i32 @delay_ms(i32 %0)
%22 = tail call i32 @clrplane(i32 2, i32 6)
%23 = tail call i32 @box_walls(i32 0, i32 7, i32 0, i32 7, i32 7, i32 7)
%24 = tail call i32 @delay_ms(i32 %0)
%25 = tail call i32 @clrplane(i32 2, i32 7)
ret void
}