#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*/ clearPixel(int, int);
void removeBlock(int x, int y) {
  clearPixel(x, y);
  clearPixel(x, y + 1);
  clearPixel(x, y + 2);
  clearPixel(x + 1, y);
  clearPixel(x + 1, y + 1);
  clearPixel(x + 1, y + 2);
}


x86 assembly (clang, -O0):
<removeBlock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <clearPixel@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    $0x1,%esi
call   1030 <clearPixel@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
call   1030 <clearPixel@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
call   1030 <clearPixel@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
add    $0x1,%esi
call   1030 <clearPixel@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
call   1030 <clearPixel@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<removeBlock>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %edi,%ebx
call   1030 <clearPixel@plt>
lea    0x1(%r14),%r15d
mov    %ebx,%edi
mov    %r15d,%esi
call   1030 <clearPixel@plt>
lea    0x2(%r14),%ebp
mov    %ebx,%edi
mov    %ebp,%esi
call   1030 <clearPixel@plt>
add    $0x1,%ebx
mov    %ebx,%edi
mov    %r14d,%esi
call   1030 <clearPixel@plt>
mov    %ebx,%edi
mov    %r15d,%esi
call   1030 <clearPixel@plt>
mov    %ebx,%edi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <clearPixel@plt>

LLVM IR (-O0):
define void @removeBlock(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 @clearPixel(i32 %5, i32 %6)
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = add nsw i32 %9, 1
%11 = call i32 @clearPixel(i32 %8, i32 %10)
%12 = load i32, i32* %3
%13 = load i32, i32* %4
%14 = add nsw i32 %13, 2
%15 = call i32 @clearPixel(i32 %12, i32 %14)
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
%18 = load i32, i32* %4
%19 = call i32 @clearPixel(i32 %17, i32 %18)
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 1
%24 = call i32 @clearPixel(i32 %21, i32 %23)
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 2
%29 = call i32 @clearPixel(i32 %26, i32 %28)
ret void
}

LLVM IR (-O2):
define void @removeBlock(i32 %0, i32 %1) {
%3 = tail call i32 @clearPixel(i32 %0, i32 %1)
%4 = add nsw i32 %1, 1
%5 = tail call i32 @clearPixel(i32 %0, i32 %4)
%6 = add nsw i32 %1, 2
%7 = tail call i32 @clearPixel(i32 %0, i32 %6)
%8 = add nsw i32 %0, 1
%9 = tail call i32 @clearPixel(i32 %8, i32 %1)
%10 = tail call i32 @clearPixel(i32 %8, i32 %4)
%11 = tail call i32 @clearPixel(i32 %8, i32 %6)
ret void
}