#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 */
struct liang_barsky_clip_window {
  int dummy;
};

/* Variables and functions */
int clip_line(struct liang_barsky_clip_window *, float *, float *, float *,
              float *);
int clip_line_copy(struct liang_barsky_clip_window *c, float x1, float y1,
                   float x2, float y2, float *ox1, float *oy1, float *ox2,
                   float *oy2) {
  *ox1 = x1;
  *oy1 = y1;
  *ox2 = x2;
  *oy2 = y2;
  return clip_line(c, ox1, ox2, oy1, oy2);
}


x86 assembly (clang, -O0):
<clip_line_copy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
movss  %xmm3,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
movss  -0xc(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x10(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x14(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x18(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x38(%rbp),%r8
call   1030 <clip_line@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clip_line_copy>:
mov    %rdx,%rax
movss  %xmm0,(%rsi)
movss  %xmm1,(%rdx)
movss  %xmm2,(%rcx)
movss  %xmm3,(%r8)
mov    %rcx,%rdx
mov    %rax,%rcx
jmp    1030 <clip_line@plt>

LLVM IR (-O0):
%struct.liang_barsky_clip_window = type { i32 }
define i32 @clip_line_copy(%struct.liang_barsky_clip_window* %0, float %1, float %2, float %3, float %4, float* %5, float* %6, float* %7, float* %8) {
%10 = alloca %struct.liang_barsky_clip_window*
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float*
%16 = alloca float*
%17 = alloca float*
%18 = alloca float*
store %struct.liang_barsky_clip_window* %0, %struct.liang_barsky_clip_window** %10
store float %1, float* %11
store float %2, float* %12
store float %3, float* %13
store float %4, float* %14
store float* %5, float** %15
store float* %6, float** %16
store float* %7, float** %17
store float* %8, float** %18
%19 = load float, float* %11
%20 = load float*, float** %15
store float %19, float* %20
%21 = load float, float* %12
%22 = load float*, float** %16
store float %21, float* %22
%23 = load float, float* %13
%24 = load float*, float** %17
store float %23, float* %24
%25 = load float, float* %14
%26 = load float*, float** %18
store float %25, float* %26
%27 = load %struct.liang_barsky_clip_window*, %struct.liang_barsky_clip_window** %10
%28 = load float*, float** %15
%29 = load float*, float** %17
%30 = load float*, float** %16
%31 = load float*, float** %18
%32 = call i32 @clip_line(%struct.liang_barsky_clip_window* %27, float* %28, float* %29, float* %30, float* %31)
ret i32 %32
}

LLVM IR (-O2):
%struct.liang_barsky_clip_window = type { i32 }
define i32 @clip_line_copy(%struct.liang_barsky_clip_window* %0, float %1, float %2, float %3, float %4, float* %5, float* %6, float* %7, float* %8) {
store float %1, float* %5
store float %2, float* %6
store float %3, float* %7
store float %4, float* %8
%10 = tail call i32 @clip_line(%struct.liang_barsky_clip_window* %0, float* %5, float* %7, float* %6, float* %8)
ret i32 %10
}