#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*/ screen_pintar(int, int, int, int);
void draw_footer() {
  int i, j;
  for (i = 45; i < 50; i++) {
    for (j = 0; j < 80; j++) {
      screen_pintar(32, (0x0 << 4), i, j);
    }
  }
}


x86 assembly (clang, -O0):
<draw_footer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x2d,-0x4(%rbp)
cmpl   $0x32,-0x4(%rbp)
jge    116d <draw_footer+0x5d>
movl   $0x0,-0x8(%rbp)
cmpl   $0x50,-0x8(%rbp)
jge    115a <draw_footer+0x4a>
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    $0x20,%edi
xor    %esi,%esi
call   1030 <screen_pintar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1130 <draw_footer+0x20>
jmp    115f <draw_footer+0x4f>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <draw_footer+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_footer>:
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x20,%edi
xor    %esi,%esi
mov    $0x2d,%edx
mov    %ebx,%ecx
call   1030 <screen_pintar@plt>
add    $0x1,%ebx
cmp    $0x50,%ebx
jne    1120 <draw_footer+0x10>
xor    %ebx,%ebx
nopl   (%rax)
mov    $0x20,%edi
xor    %esi,%esi
mov    $0x2e,%edx
mov    %ebx,%ecx
call   1030 <screen_pintar@plt>
add    $0x1,%ebx
cmp    $0x50,%ebx
jne    1140 <draw_footer+0x30>
xor    %ebx,%ebx
nopl   (%rax)
mov    $0x20,%edi
xor    %esi,%esi
mov    $0x2f,%edx
mov    %ebx,%ecx
call   1030 <screen_pintar@plt>
add    $0x1,%ebx
cmp    $0x50,%ebx
jne    1160 <draw_footer+0x50>
xor    %ebx,%ebx
nopl   (%rax)
mov    $0x20,%edi
xor    %esi,%esi
mov    $0x30,%edx
mov    %ebx,%ecx
call   1030 <screen_pintar@plt>
add    $0x1,%ebx
cmp    $0x50,%ebx
jne    1180 <draw_footer+0x70>
xor    %ebx,%ebx
nopl   (%rax)
mov    $0x20,%edi
xor    %esi,%esi
mov    $0x31,%edx
mov    %ebx,%ecx
call   1030 <screen_pintar@plt>
add    $0x1,%ebx
cmp    $0x50,%ebx
jne    11a0 <draw_footer+0x90>
pop    %rbx
ret

LLVM IR (-O0):
define void @draw_footer() {
%1 = alloca i32
%2 = alloca i32
store i32 45, i32* %1
br label %3
3: ; preds = %18, %0
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 50
br i1 %5, label %6, label %21
6: ; preds = %3
store i32 0, i32* %2
br label %7
7: ; preds = %14, %6
%8 = load i32, i32* %2
%9 = icmp slt i32 %8, 80
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, i32* %1
%12 = load i32, i32* %2
%13 = call i32 @screen_pintar(i32 32, i32 0, i32 %11, i32 %12)
br label %14
14: ; preds = %10
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
br label %7
17: ; preds = %7
br label %18
18: ; preds = %17
%19 = load i32, i32* %1
%20 = add nsw i32 %19, 1
store i32 %20, i32* %1
br label %3
21: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @draw_footer() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %4, %1 ]
%3 = tail call i32 @screen_pintar(i32 32, i32 0, i32 45, i32 %2)
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 80
br i1 %5, label %6, label %1
6: ; preds = %1, %6
%7 = phi i32 [ %9, %6 ], [ 0, %1 ]
%8 = tail call i32 @screen_pintar(i32 32, i32 0, i32 46, i32 %7)
%9 = add nuw nsw i32 %7, 1
%10 = icmp eq i32 %9, 80
br i1 %10, label %11, label %6
11: ; preds = %6, %11
%12 = phi i32 [ %14, %11 ], [ 0, %6 ]
%13 = tail call i32 @screen_pintar(i32 32, i32 0, i32 47, i32 %12)
%14 = add nuw nsw i32 %12, 1
%15 = icmp eq i32 %14, 80
br i1 %15, label %16, label %11
16: ; preds = %11, %16
%17 = phi i32 [ %19, %16 ], [ 0, %11 ]
%18 = tail call i32 @screen_pintar(i32 32, i32 0, i32 48, i32 %17)
%19 = add nuw nsw i32 %17, 1
%20 = icmp eq i32 %19, 80
br i1 %20, label %21, label %16
21: ; preds = %16, %21
%22 = phi i32 [ %24, %21 ], [ 0, %16 ]
%23 = tail call i32 @screen_pintar(i32 32, i32 0, i32 49, i32 %22)
%24 = add nuw nsw i32 %22, 1
%25 = icmp eq i32 %24, 80
br i1 %25, label %26, label %21
26: ; preds = %21
ret void
}