#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*/ linewidth(double);
int /*<<< orphan*/ setgray(double);
int /*<<< orphan*/ spline1(double, double, double, double, double, double,
                           double, double, int);
void spline(double x1, double y1, double x2, double y2, double x3, double y3,
            double x4, double y4, int ipart, double g, double w) {
  linewidth(w);
  setgray(g);
  spline1(x1, y1, x2, y2, x3, y3, x4, y4, ipart);
  linewidth(1.0);
  setgray(0.0);
  return;
}


x86 assembly (clang, -O0):
<spline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
mov    %edi,-0x44(%rbp)
movsd  0x18(%rbp),%xmm0
call   1030 <linewidth@plt>
movsd  0x10(%rbp),%xmm0
call   1050 <setgray@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
movsd  -0x38(%rbp),%xmm6
movsd  -0x40(%rbp),%xmm7
mov    -0x44(%rbp),%edi
call   1040 <spline1@plt>
movsd  0xe45(%rip),%xmm0
call   1030 <linewidth@plt>
xorps  %xmm0,%xmm0
call   1050 <setgray@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spline>:
push   %rbx
sub    $0x50,%rsp
mov    %edi,%ebx
movsd  %xmm7,0x48(%rsp)
movsd  %xmm6,0x40(%rsp)
movsd  %xmm5,0x38(%rsp)
movsd  %xmm4,0x30(%rsp)
movsd  %xmm3,0x28(%rsp)
movsd  %xmm2,0x20(%rsp)
movsd  %xmm1,0x18(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  0x60(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x68(%rsp),%xmm0
call   1030 <linewidth@plt>
movsd  0x8(%rsp),%xmm0
call   1050 <setgray@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
movsd  0x30(%rsp),%xmm4
movsd  0x38(%rsp),%xmm5
movsd  0x40(%rsp),%xmm6
movsd  0x48(%rsp),%xmm7
mov    %ebx,%edi
call   1040 <spline1@plt>
movsd  0xe38(%rip),%xmm0
call   1030 <linewidth@plt>
xorps  %xmm0,%xmm0
add    $0x50,%rsp
pop    %rbx
jmp    1050 <setgray@plt>

LLVM IR (-O0):
define void @spline(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, i32 %8, double %9, double %10) {
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca i32
%21 = alloca double
%22 = alloca double
store double %0, double* %12
store double %1, double* %13
store double %2, double* %14
store double %3, double* %15
store double %4, double* %16
store double %5, double* %17
store double %6, double* %18
store double %7, double* %19
store i32 %8, i32* %20
store double %9, double* %21
store double %10, double* %22
%23 = load double, double* %22
%24 = call i32 @linewidth(double %23)
%25 = load double, double* %21
%26 = call i32 @setgray(double %25)
%27 = load double, double* %12
%28 = load double, double* %13
%29 = load double, double* %14
%30 = load double, double* %15
%31 = load double, double* %16
%32 = load double, double* %17
%33 = load double, double* %18
%34 = load double, double* %19
%35 = load i32, i32* %20
%36 = call i32 @spline1(double %27, double %28, double %29, double %30, double %31, double %32, double %33, double %34, i32 %35)
%37 = call i32 @linewidth(double 1.000000e+00)
%38 = call i32 @setgray(double 0.000000e+00)
ret void
}

LLVM IR (-O2):
define void @spline(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, i32 %8, double %9, double %10) {
%12 = tail call i32 @linewidth(double %10)
%13 = tail call i32 @setgray(double %9)
%14 = tail call i32 @spline1(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, i32 %8)
%15 = tail call i32 @linewidth(double 1.000000e+00)
%16 = tail call i32 @setgray(double 0.000000e+00)
ret void
}