#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*/ md_draw_line_red(int, int, int, int, int);
void plot_node(int x, int y) {
  md_draw_line_red(x, y, x - 3, y, 2);
  md_draw_line_red(x, y, x + 3, y, 2);
  md_draw_line_red(x, y, x, y - 3, 2);
  md_draw_line_red(x, y, x, y + 3, 2);
}


x86 assembly (clang, -O0):
<plot_node>:
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    -0x4(%rbp),%edx
sub    $0x3,%edx
mov    -0x8(%rbp),%ecx
mov    $0x2,%r8d
call   1030 <md_draw_line_red@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%edx
add    $0x3,%edx
mov    -0x8(%rbp),%ecx
mov    $0x2,%r8d
call   1030 <md_draw_line_red@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
sub    $0x3,%ecx
mov    $0x2,%r8d
call   1030 <md_draw_line_red@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
add    $0x3,%ecx
mov    $0x2,%r8d
call   1030 <md_draw_line_red@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plot_node>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %edi,%ebx
lea    -0x3(%rbx),%edx
mov    %esi,%ecx
mov    $0x2,%r8d
call   1030 <md_draw_line_red@plt>
lea    0x3(%rbx),%edx
mov    %ebx,%edi
mov    %r14d,%esi
mov    %r14d,%ecx
mov    $0x2,%r8d
call   1030 <md_draw_line_red@plt>
lea    -0x3(%r14),%ecx
mov    %ebx,%edi
mov    %r14d,%esi
mov    %ebx,%edx
mov    $0x2,%r8d
call   1030 <md_draw_line_red@plt>
lea    0x3(%r14),%ecx
mov    %ebx,%edi
mov    %r14d,%esi
mov    %ebx,%edx
mov    $0x2,%r8d
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <md_draw_line_red@plt>

LLVM IR (-O0):
define void @plot_node(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 = load i32, i32* %3
%8 = sub nsw i32 %7, 3
%9 = load i32, i32* %4
%10 = call i32 @md_draw_line_red(i32 %5, i32 %6, i32 %8, i32 %9, i32 2)
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 3
%15 = load i32, i32* %4
%16 = call i32 @md_draw_line_red(i32 %11, i32 %12, i32 %14, i32 %15, i32 2)
%17 = load i32, i32* %3
%18 = load i32, i32* %4
%19 = load i32, i32* %3
%20 = load i32, i32* %4
%21 = sub nsw i32 %20, 3
%22 = call i32 @md_draw_line_red(i32 %17, i32 %18, i32 %19, i32 %21, i32 2)
%23 = load i32, i32* %3
%24 = load i32, i32* %4
%25 = load i32, i32* %3
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 3
%28 = call i32 @md_draw_line_red(i32 %23, i32 %24, i32 %25, i32 %27, i32 2)
ret void
}

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