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


x86 assembly (clang, -O0):
<zoom_pyramid_clear>:
push   %rbp
mov    %rsp,%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    $0xfa,%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   1030 <box_wireframe@plt>
xor    %edi,%edi
call   1040 <clrplane_y@plt>
mov    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x1,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x3,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x4,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x5,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x6,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x7,%edi
call   1040 <clrplane_y@plt>
mov    $0x1388,%edi
call   1050 <delay_ms@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<zoom_pyramid_clear>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x7,%ecx
xor    %r8d,%r8d
mov    $0x7,%r9d
call   1060 <box_walls@plt>
mov    $0xfa,%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   1030 <box_wireframe@plt>
xor    %edi,%edi
call   1040 <clrplane_y@plt>
mov    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x1,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x2,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x3,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x4,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x5,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x6,%edi
call   1040 <clrplane_y@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    $0xfa,%edi
call   1050 <delay_ms@plt>
mov    $0x7,%edi
call   1040 <clrplane_y@plt>
mov    $0x1388,%edi
pop    %rax
jmp    1050 <delay_ms@plt>

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

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