#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 main(void) {
  drawLine(60, 25, 110, 25);
  drawLine(110, 25, 145, 60);
  drawLine(145, 60, 145, 110);
  drawLine(145, 110, 110, 145);
  drawLine(110, 145, 60, 145);
  drawLine(60, 145, 25, 110);
  drawLine(25, 110, 25, 60);
  drawLine(25, 60, 60, 25);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x3c,%edi
mov    $0x19,%ecx
mov    $0x6e,%edx
mov    %ecx,%esi
call   1030 <drawLine@plt>
mov    $0x6e,%edi
mov    $0x19,%esi
mov    $0x91,%edx
mov    $0x3c,%ecx
call   1030 <drawLine@plt>
mov    $0x91,%edx
mov    $0x3c,%esi
mov    $0x6e,%ecx
mov    %edx,%edi
call   1030 <drawLine@plt>
mov    $0x91,%ecx
mov    $0x6e,%edx
mov    %ecx,%edi
mov    %edx,%esi
call   1030 <drawLine@plt>
mov    $0x6e,%edi
mov    $0x91,%ecx
mov    $0x3c,%edx
mov    %ecx,%esi
call   1030 <drawLine@plt>
mov    $0x3c,%edi
mov    $0x91,%esi
mov    $0x19,%edx
mov    $0x6e,%ecx
call   1030 <drawLine@plt>
mov    $0x19,%edx
mov    $0x6e,%esi
mov    $0x3c,%ecx
mov    %edx,%edi
call   1030 <drawLine@plt>
mov    $0x19,%ecx
mov    $0x3c,%edx
mov    %ecx,%edi
mov    %edx,%esi
call   1030 <drawLine@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3c,%edi
mov    $0x19,%esi
mov    $0x6e,%edx
mov    $0x19,%ecx
call   1030 <drawLine@plt>
mov    $0x6e,%edi
mov    $0x19,%esi
mov    $0x91,%edx
mov    $0x3c,%ecx
call   1030 <drawLine@plt>
mov    $0x91,%edi
mov    $0x3c,%esi
mov    $0x91,%edx
mov    $0x6e,%ecx
call   1030 <drawLine@plt>
mov    $0x91,%edi
mov    $0x6e,%esi
mov    $0x6e,%edx
mov    $0x91,%ecx
call   1030 <drawLine@plt>
mov    $0x6e,%edi
mov    $0x91,%esi
mov    $0x3c,%edx
mov    $0x91,%ecx
call   1030 <drawLine@plt>
mov    $0x3c,%edi
mov    $0x91,%esi
mov    $0x19,%edx
mov    $0x6e,%ecx
call   1030 <drawLine@plt>
mov    $0x19,%edi
mov    $0x6e,%esi
mov    $0x19,%edx
mov    $0x3c,%ecx
call   1030 <drawLine@plt>
mov    $0x19,%edi
mov    $0x3c,%esi
mov    $0x3c,%edx
mov    $0x19,%ecx
call   1030 <drawLine@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @drawLine(i32 60, i32 25, i32 110, i32 25)
%3 = call i32 @drawLine(i32 110, i32 25, i32 145, i32 60)
%4 = call i32 @drawLine(i32 145, i32 60, i32 145, i32 110)
%5 = call i32 @drawLine(i32 145, i32 110, i32 110, i32 145)
%6 = call i32 @drawLine(i32 110, i32 145, i32 60, i32 145)
%7 = call i32 @drawLine(i32 60, i32 145, i32 25, i32 110)
%8 = call i32 @drawLine(i32 25, i32 110, i32 25, i32 60)
%9 = call i32 @drawLine(i32 25, i32 60, i32 60, i32 25)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @drawLine(i32 60, i32 25, i32 110, i32 25)
%2 = tail call i32 @drawLine(i32 110, i32 25, i32 145, i32 60)
%3 = tail call i32 @drawLine(i32 145, i32 60, i32 145, i32 110)
%4 = tail call i32 @drawLine(i32 145, i32 110, i32 110, i32 145)
%5 = tail call i32 @drawLine(i32 110, i32 145, i32 60, i32 145)
%6 = tail call i32 @drawLine(i32 60, i32 145, i32 25, i32 110)
%7 = tail call i32 @drawLine(i32 25, i32 110, i32 25, i32 60)
%8 = tail call i32 @drawLine(i32 25, i32 60, i32 60, i32 25)
ret i32 0
}