#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*/ DrawLine(int, int, int, int, int);
void draw_line(void) {
  DrawLine(0, 0, 0, 271, 0);
  DrawLine(0, 0, 479, 0, 1);
  DrawLine(0, 0, 479, 271, 2);
  DrawLine(0, 271, 479, 0, 3);
  DrawLine(0, 271, 479, 271, 1);
  DrawLine(479, 271, 479, 0, 2);
  DrawLine(0, 136, 479, 136, 3);
  DrawLine(240, 0, 240, 271, 1);
}


x86 assembly (clang, -O0):
<draw_line>:
push   %rbp
mov    %rsp,%rbp
xor    %r8d,%r8d
mov    $0x10f,%ecx
mov    %r8d,%edi
mov    %r8d,%esi
mov    %r8d,%edx
call   1030 <DrawLine@plt>
xor    %ecx,%ecx
mov    $0x1df,%edx
mov    $0x1,%r8d
mov    %ecx,%edi
mov    %ecx,%esi
call   1030 <DrawLine@plt>
xor    %esi,%esi
mov    $0x1df,%edx
mov    $0x10f,%ecx
mov    $0x2,%r8d
mov    %esi,%edi
call   1030 <DrawLine@plt>
xor    %ecx,%ecx
mov    $0x10f,%esi
mov    $0x1df,%edx
mov    $0x3,%r8d
mov    %ecx,%edi
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x10f,%ecx
mov    $0x1df,%edx
mov    $0x1,%r8d
mov    %ecx,%esi
call   1030 <DrawLine@plt>
mov    $0x1df,%edx
mov    $0x10f,%esi
xor    %ecx,%ecx
mov    $0x2,%r8d
mov    %edx,%edi
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x88,%ecx
mov    $0x1df,%edx
mov    $0x3,%r8d
mov    %ecx,%esi
call   1030 <DrawLine@plt>
mov    $0xf0,%edx
xor    %esi,%esi
mov    $0x10f,%ecx
mov    $0x1,%r8d
mov    %edx,%edi
call   1030 <DrawLine@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_line>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x10f,%ecx
xor    %r8d,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1df,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1df,%edx
mov    $0x10f,%ecx
mov    $0x2,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x10f,%esi
mov    $0x1df,%edx
xor    %ecx,%ecx
mov    $0x3,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x10f,%esi
mov    $0x1df,%edx
mov    $0x10f,%ecx
mov    $0x1,%r8d
call   1030 <DrawLine@plt>
mov    $0x1df,%edi
mov    $0x10f,%esi
mov    $0x1df,%edx
xor    %ecx,%ecx
mov    $0x2,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x88,%esi
mov    $0x1df,%edx
mov    $0x88,%ecx
mov    $0x3,%r8d
call   1030 <DrawLine@plt>
mov    $0xf0,%edi
xor    %esi,%esi
mov    $0xf0,%edx
mov    $0x10f,%ecx
mov    $0x1,%r8d
pop    %rax
jmp    1030 <DrawLine@plt>

LLVM IR (-O0):
define void @draw_line() {
%1 = call i32 @DrawLine(i32 0, i32 0, i32 0, i32 271, i32 0)
%2 = call i32 @DrawLine(i32 0, i32 0, i32 479, i32 0, i32 1)
%3 = call i32 @DrawLine(i32 0, i32 0, i32 479, i32 271, i32 2)
%4 = call i32 @DrawLine(i32 0, i32 271, i32 479, i32 0, i32 3)
%5 = call i32 @DrawLine(i32 0, i32 271, i32 479, i32 271, i32 1)
%6 = call i32 @DrawLine(i32 479, i32 271, i32 479, i32 0, i32 2)
%7 = call i32 @DrawLine(i32 0, i32 136, i32 479, i32 136, i32 3)
%8 = call i32 @DrawLine(i32 240, i32 0, i32 240, i32 271, i32 1)
ret void
}

LLVM IR (-O2):
define void @draw_line() {
%1 = tail call i32 @DrawLine(i32 0, i32 0, i32 0, i32 271, i32 0)
%2 = tail call i32 @DrawLine(i32 0, i32 0, i32 479, i32 0, i32 1)
%3 = tail call i32 @DrawLine(i32 0, i32 0, i32 479, i32 271, i32 2)
%4 = tail call i32 @DrawLine(i32 0, i32 271, i32 479, i32 0, i32 3)
%5 = tail call i32 @DrawLine(i32 0, i32 271, i32 479, i32 271, i32 1)
%6 = tail call i32 @DrawLine(i32 479, i32 271, i32 479, i32 0, i32 2)
%7 = tail call i32 @DrawLine(i32 0, i32 136, i32 479, i32 136, i32 3)
%8 = tail call i32 @DrawLine(i32 240, i32 0, i32 240, i32 271, i32 1)
ret void
}