#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*/ render_lineto_pts(double, double);
int /*<<< orphan*/ render_moveto_pts(double, double);
void render_outline_rect_pts(double x1, double y1, double x2, double y2) {
  render_moveto_pts(x1, y1);
  render_lineto_pts(x2, y1);
  render_lineto_pts(x2, y2);
  render_lineto_pts(x1, y2);
  render_lineto_pts(x1, y1);
}


x86 assembly (clang, -O0):
<render_outline_rect_pts>:
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
call   1040 <render_moveto_pts@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <render_lineto_pts@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
call   1030 <render_lineto_pts@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
call   1030 <render_lineto_pts@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <render_lineto_pts@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @render_outline_rect_pts(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 = call i32 @render_moveto_pts(double %9, double %10)
%12 = load double, double* %7
%13 = load double, double* %6
%14 = call i32 @render_lineto_pts(double %12, double %13)
%15 = load double, double* %7
%16 = load double, double* %8
%17 = call i32 @render_lineto_pts(double %15, double %16)
%18 = load double, double* %5
%19 = load double, double* %8
%20 = call i32 @render_lineto_pts(double %18, double %19)
%21 = load double, double* %5
%22 = load double, double* %6
%23 = call i32 @render_lineto_pts(double %21, double %22)
ret void
}

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