#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*/ drawPixel(int, int);
void Draw_4_Ellipse_Points(int CX, int CY, int X, int Y) {
  drawPixel(CX + X, CY + Y);
  drawPixel(CX - X, CY + Y);
  drawPixel(CX - X, CY - Y);
  drawPixel(CX + X, CY - Y);
  return;
}


x86 assembly (clang, -O0):
<Draw_4_Ellipse_Points>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
add    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
call   1030 <drawPixel@plt>
mov    -0x4(%rbp),%edi
sub    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x10(%rbp),%esi
call   1030 <drawPixel@plt>
mov    -0x4(%rbp),%edi
sub    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x10(%rbp),%esi
call   1030 <drawPixel@plt>
mov    -0x4(%rbp),%edi
add    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x10(%rbp),%esi
call   1030 <drawPixel@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Draw_4_Ellipse_Points>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%r12d
mov    %edi,%ebx
lea    (%r15,%rbx,1),%r13d
lea    (%r14,%r12,1),%ebp
mov    %r13d,%edi
mov    %ebp,%esi
call   1030 <drawPixel@plt>
sub    %r15d,%ebx
mov    %ebx,%edi
mov    %ebp,%esi
call   1030 <drawPixel@plt>
sub    %r14d,%r12d
mov    %ebx,%edi
mov    %r12d,%esi
call   1030 <drawPixel@plt>
mov    %r13d,%edi
mov    %r12d,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <drawPixel@plt>

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

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