#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, 0xff0000);
  DrawLine(0, 0, 479, 0, 0x00ff00);
  DrawLine(0, 0, 479, 271, 0x0000ff);
  DrawLine(0, 271, 479, 0, 0x00ffff);
  DrawLine(0, 271, 479, 271, 0xff00ff);
  DrawLine(479, 271, 479, 0, 0xffff00);
  DrawLine(0, 136, 479, 136, 0x0123ff);
  DrawLine(240, 0, 240, 271, 0x0567ff);
}


x86 assembly (clang, -O0):
<draw_line>:
push   %rbp
mov    %rsp,%rbp
xor    %edx,%edx
mov    $0x10f,%ecx
mov    $0xff0000,%r8d
mov    %edx,%edi
mov    %edx,%esi
call   1030 <DrawLine@plt>
xor    %ecx,%ecx
mov    $0x1df,%edx
mov    $0xff00,%r8d
mov    %ecx,%edi
mov    %ecx,%esi
call   1030 <DrawLine@plt>
xor    %esi,%esi
mov    $0x1df,%edx
mov    $0x10f,%ecx
mov    $0xff,%r8d
mov    %esi,%edi
call   1030 <DrawLine@plt>
xor    %ecx,%ecx
mov    $0x10f,%esi
mov    $0x1df,%edx
mov    $0xffff,%r8d
mov    %ecx,%edi
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x10f,%ecx
mov    $0x1df,%edx
mov    $0xff00ff,%r8d
mov    %ecx,%esi
call   1030 <DrawLine@plt>
mov    $0x1df,%edx
mov    $0x10f,%esi
xor    %ecx,%ecx
mov    $0xffff00,%r8d
mov    %edx,%edi
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x88,%ecx
mov    $0x1df,%edx
mov    $0x123ff,%r8d
mov    %ecx,%esi
call   1030 <DrawLine@plt>
mov    $0xf0,%edx
xor    %esi,%esi
mov    $0x10f,%ecx
mov    $0x567ff,%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
mov    $0xff0000,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1df,%edx
xor    %ecx,%ecx
mov    $0xff00,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1df,%edx
mov    $0x10f,%ecx
mov    $0xff,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x10f,%esi
mov    $0x1df,%edx
xor    %ecx,%ecx
mov    $0xffff,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x10f,%esi
mov    $0x1df,%edx
mov    $0x10f,%ecx
mov    $0xff00ff,%r8d
call   1030 <DrawLine@plt>
mov    $0x1df,%edi
mov    $0x10f,%esi
mov    $0x1df,%edx
xor    %ecx,%ecx
mov    $0xffff00,%r8d
call   1030 <DrawLine@plt>
xor    %edi,%edi
mov    $0x88,%esi
mov    $0x1df,%edx
mov    $0x88,%ecx
mov    $0x123ff,%r8d
call   1030 <DrawLine@plt>
mov    $0xf0,%edi
xor    %esi,%esi
mov    $0xf0,%edx
mov    $0x10f,%ecx
mov    $0x567ff,%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 16711680)
%2 = call i32 @DrawLine(i32 0, i32 0, i32 479, i32 0, i32 65280)
%3 = call i32 @DrawLine(i32 0, i32 0, i32 479, i32 271, i32 255)
%4 = call i32 @DrawLine(i32 0, i32 271, i32 479, i32 0, i32 65535)
%5 = call i32 @DrawLine(i32 0, i32 271, i32 479, i32 271, i32 16711935)
%6 = call i32 @DrawLine(i32 479, i32 271, i32 479, i32 0, i32 16776960)
%7 = call i32 @DrawLine(i32 0, i32 136, i32 479, i32 136, i32 74751)
%8 = call i32 @DrawLine(i32 240, i32 0, i32 240, i32 271, i32 354303)
ret void
}

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