#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*/ mvaddch(int, int, char);
void drawSix(int y, int x) {
  mvaddch(y + 5, x + 10, 'O');
  mvaddch(y + 5, x + 2, 'O');
  mvaddch(y + 3, x + 10, 'O');
  mvaddch(y + 3, x + 2, 'O');
  mvaddch(y + 1, x + 10, 'O');
  mvaddch(y + 1, x + 2, 'O');
}


x86 assembly (clang, -O0):
<drawSix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
add    $0x5,%edi
mov    -0x8(%rbp),%esi
add    $0xa,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x5,%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x3,%edi
mov    -0x8(%rbp),%esi
add    $0xa,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x3,%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
add    $0xa,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
add    $0x2,%esi
mov    $0x4f,%edx
call   1030 <mvaddch@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @drawSix(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 = add nsw i32 %5, 5
%7 = load i32, i32* %4
%8 = add nsw i32 %7, 10
%9 = call i32 @mvaddch(i32 %6, i32 %8, i8 signext 79)
%10 = load i32, i32* %3
%11 = add nsw i32 %10, 5
%12 = load i32, i32* %4
%13 = add nsw i32 %12, 2
%14 = call i32 @mvaddch(i32 %11, i32 %13, i8 signext 79)
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 3
%17 = load i32, i32* %4
%18 = add nsw i32 %17, 10
%19 = call i32 @mvaddch(i32 %16, i32 %18, i8 signext 79)
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 3
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 2
%24 = call i32 @mvaddch(i32 %21, i32 %23, i8 signext 79)
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 10
%29 = call i32 @mvaddch(i32 %26, i32 %28, i8 signext 79)
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 1
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 2
%34 = call i32 @mvaddch(i32 %31, i32 %33, i8 signext 79)
ret void
}

LLVM IR (-O2):
define void @drawSix(i32 %0, i32 %1) {
%3 = add nsw i32 %0, 5
%4 = add nsw i32 %1, 10
%5 = tail call i32 @mvaddch(i32 %3, i32 %4, i8 signext 79)
%6 = add nsw i32 %1, 2
%7 = tail call i32 @mvaddch(i32 %3, i32 %6, i8 signext 79)
%8 = add nsw i32 %0, 3
%9 = tail call i32 @mvaddch(i32 %8, i32 %4, i8 signext 79)
%10 = tail call i32 @mvaddch(i32 %8, i32 %6, i8 signext 79)
%11 = add nsw i32 %0, 1
%12 = tail call i32 @mvaddch(i32 %11, i32 %4, i8 signext 79)
%13 = tail call i32 @mvaddch(i32 %11, i32 %6, i8 signext 79)
ret void
}