#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*/ _vClear();
int /*<<< orphan*/ _vWriteFormat(char, int);
void drawFrame2() {
  int x, y;
  _vClear();
  for (y = 0; y < 25; y++) {
    for (x = 0; x < 80; x++) {
      if (x == 4 && y == 6)
        _vWriteFormat(' ', 0x00 | 0x0F);
      else
        _vWriteFormat(' ', 0xF0 | 0x0F);
    }
  }
}


x86 assembly (clang, -O0):
<drawFrame2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <_vClear@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x19,-0x8(%rbp)
jge    11ae <drawFrame2+0x8e>
movl   $0x0,-0x4(%rbp)
cmpl   $0x50,-0x4(%rbp)
jge    119b <drawFrame2+0x7b>
cmpl   $0x4,-0x4(%rbp)
jne    1179 <drawFrame2+0x59>
cmpl   $0x6,-0x8(%rbp)
jne    1179 <drawFrame2+0x59>
mov    $0x20,%edi
mov    $0xf,%esi
call   1030 <_vWriteFormat@plt>
jmp    1188 <drawFrame2+0x68>
mov    $0x20,%edi
mov    $0xff,%esi
call   1030 <_vWriteFormat@plt>
jmp    118d <drawFrame2+0x6d>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1147 <drawFrame2+0x27>
jmp    11a0 <drawFrame2+0x80>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <drawFrame2+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawFrame2>:
push   %rbp
push   %r14
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <_vClear@plt>
mov    $0xf,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x50,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebx,%eax
xor    $0x6,%eax
mov    %ebp,%ecx
xor    $0x4c,%ecx
or     %eax,%ecx
mov    $0xff,%esi
cmove  %r14d,%esi
mov    $0x20,%edi
call   1030 <_vWriteFormat@plt>
add    $0xffffffff,%ebp
jne    1150 <drawFrame2+0x30>
add    $0x1,%ebx
cmp    $0x19,%ebx
jne    1140 <drawFrame2+0x20>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @drawFrame2() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @_vClear()
store i32 0, i32* %2
br label %4
4: ; preds = %26, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 25
br i1 %6, label %7, label %29
7: ; preds = %4
store i32 0, i32* %1
br label %8
8: ; preds = %22, %7
%9 = load i32, i32* %1
%10 = icmp slt i32 %9, 80
br i1 %10, label %11, label %25
11: ; preds = %8
%12 = load i32, i32* %1
%13 = icmp eq i32 %12, 4
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 6
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @_vWriteFormat(i8 signext 32, i32 15)
br label %21
19: ; preds = %14, %11
%20 = call i32 @_vWriteFormat(i8 signext 32, i32 255)
br label %21
21: ; preds = %19, %17
br label %22
22: ; preds = %21
%23 = load i32, i32* %1
%24 = add nsw i32 %23, 1
store i32 %24, i32* %1
br label %8
25: ; preds = %8
br label %26
26: ; preds = %25
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %4
29: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @drawFrame2() {
%1 = tail call i32 (...) @_vClear()
br label %2
2: ; preds = %0, %13
%3 = phi i32 [ 0, %0 ], [ %14, %13 ]
%4 = icmp eq i32 %3, 6
br label %5
5: ; preds = %2, %5
%6 = phi i32 [ 0, %2 ], [ %11, %5 ]
%7 = icmp eq i32 %6, 4
%8 = select i1 %7, i1 %4, i1 false
%9 = select i1 %8, i32 15, i32 255
%10 = tail call i32 @_vWriteFormat(i8 signext 32, i32 %9)
%11 = add nuw nsw i32 %6, 1
%12 = icmp eq i32 %11, 80
br i1 %12, label %13, label %5
13: ; preds = %5
%14 = add nuw nsw i32 %3, 1
%15 = icmp eq i32 %14, 25
br i1 %15, label %16, label %2
16: ; preds = %13
ret void
}