#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*/ putInnerLine(double, double, double, double);
void putInnerBox(double sx, double sy, double ex, double ey) {
  putInnerLine(sx, sy, sx, ey);
  putInnerLine(ex, sy, ex, ey);
  putInnerLine(sx, sy, ex, sy);
  putInnerLine(sx, ey, ex, ey);
}


x86 assembly (clang, -O0):
<putInnerBox>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
call   1030 <putInnerLine@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
call   1030 <putInnerLine@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
call   1030 <putInnerLine@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
call   1030 <putInnerLine@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putInnerBox>:
sub    $0x28,%rsp
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x20(%rsp)
movaps %xmm0,%xmm2
call   1030 <putInnerLine@plt>
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movaps %xmm0,%xmm2
movsd  0x18(%rsp),%xmm3
call   1030 <putInnerLine@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
movaps %xmm1,%xmm3
call   1030 <putInnerLine@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
movaps %xmm1,%xmm3
add    $0x28,%rsp
jmp    1030 <putInnerLine@plt>

LLVM IR (-O0):
define void @putInnerBox(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %5
%10 = load double, double* %6
%11 = load double, double* %5
%12 = load double, double* %8
%13 = call i32 @putInnerLine(double %9, double %10, double %11, double %12)
%14 = load double, double* %7
%15 = load double, double* %6
%16 = load double, double* %7
%17 = load double, double* %8
%18 = call i32 @putInnerLine(double %14, double %15, double %16, double %17)
%19 = load double, double* %5
%20 = load double, double* %6
%21 = load double, double* %7
%22 = load double, double* %6
%23 = call i32 @putInnerLine(double %19, double %20, double %21, double %22)
%24 = load double, double* %5
%25 = load double, double* %8
%26 = load double, double* %7
%27 = load double, double* %8
%28 = call i32 @putInnerLine(double %24, double %25, double %26, double %27)
ret void
}

LLVM IR (-O2):
define void @putInnerBox(double %0, double %1, double %2, double %3) {
%5 = tail call i32 @putInnerLine(double %0, double %1, double %0, double %3)
%6 = tail call i32 @putInnerLine(double %2, double %1, double %2, double %3)
%7 = tail call i32 @putInnerLine(double %0, double %1, double %2, double %1)
%8 = tail call i32 @putInnerLine(double %0, double %3, double %2, double %3)
ret void
}