#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*/ setPixel(int, int, int, char);
void drawBlock(int x, int y) {
  setPixel(x, y, 2, (char)201);
  setPixel(x, y + 1, 2, (char)204);
  setPixel(x, y + 2, 2, (char)200);
  setPixel(x + 1, y, 2, (char)187);
  setPixel(x + 1, y + 1, 2, (char)185);
  setPixel(x + 1, y + 2, 2, (char)188);
}


x86 assembly (clang, -O0):
<drawBlock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    $0x2,%edx
mov    $0xffffffc9,%ecx
call   1030 <setPixel@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    $0x2,%edx
mov    $0xffffffcc,%ecx
call   1030 <setPixel@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    $0x2,%edx
mov    $0xffffffc8,%ecx
call   1030 <setPixel@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
mov    $0x2,%edx
mov    $0xffffffbb,%ecx
call   1030 <setPixel@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    $0x2,%edx
mov    $0xffffffb9,%ecx
call   1030 <setPixel@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    $0x2,%edx
mov    $0xffffffbc,%ecx
call   1030 <setPixel@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawBlock>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %edi,%ebx
mov    $0x2,%edx
mov    $0xffffffc9,%ecx
call   1030 <setPixel@plt>
lea    0x1(%r14),%r15d
mov    %ebx,%edi
mov    %r15d,%esi
mov    $0x2,%edx
mov    $0xffffffcc,%ecx
call   1030 <setPixel@plt>
lea    0x2(%r14),%ebp
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x2,%edx
mov    $0xffffffc8,%ecx
call   1030 <setPixel@plt>
add    $0x1,%ebx
mov    %ebx,%edi
mov    %r14d,%esi
mov    $0x2,%edx
mov    $0xffffffbb,%ecx
call   1030 <setPixel@plt>
mov    %ebx,%edi
mov    %r15d,%esi
mov    $0x2,%edx
mov    $0xffffffb9,%ecx
call   1030 <setPixel@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x2,%edx
mov    $0xffffffbc,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <setPixel@plt>

LLVM IR (-O0):
define void @drawBlock(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 @setPixel(i32 %5, i32 %6, i32 2, i8 signext -55)
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = add nsw i32 %9, 1
%11 = call i32 @setPixel(i32 %8, i32 %10, i32 2, i8 signext -52)
%12 = load i32, i32* %3
%13 = load i32, i32* %4
%14 = add nsw i32 %13, 2
%15 = call i32 @setPixel(i32 %12, i32 %14, i32 2, i8 signext -56)
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
%18 = load i32, i32* %4
%19 = call i32 @setPixel(i32 %17, i32 %18, i32 2, i8 signext -69)
%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 @setPixel(i32 %21, i32 %23, i32 2, i8 signext -71)
%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 @setPixel(i32 %26, i32 %28, i32 2, i8 signext -68)
ret void
}

LLVM IR (-O2):
define void @drawBlock(i32 %0, i32 %1) {
%3 = tail call i32 @setPixel(i32 %0, i32 %1, i32 2, i8 signext -55)
%4 = add nsw i32 %1, 1
%5 = tail call i32 @setPixel(i32 %0, i32 %4, i32 2, i8 signext -52)
%6 = add nsw i32 %1, 2
%7 = tail call i32 @setPixel(i32 %0, i32 %6, i32 2, i8 signext -56)
%8 = add nsw i32 %0, 1
%9 = tail call i32 @setPixel(i32 %8, i32 %1, i32 2, i8 signext -69)
%10 = tail call i32 @setPixel(i32 %8, i32 %4, i32 2, i8 signext -71)
%11 = tail call i32 @setPixel(i32 %8, i32 %6, i32 2, i8 signext -68)
ret void
}