#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*/ flyback();
int /*<<< orphan*/ hvflush();
int /*<<< orphan*/ move(double, double);
int /*<<< orphan*/ printf(char *, double, double, double, double);
double xsc(double);
double ysc(double);
void arc(double x, double y, double x0, double y0, double x1, double y1) {
  move(x0, y0);
  hvflush();
  printf("\\D'a%.3fi %.3fi %.3fi %.3fi'\n", xsc(x - x0), -ysc(y - y0),
         xsc(x1 - x), -ysc(y1 - y));
  flyback();
}


x86 assembly (clang, -O0):
<arc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
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  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
call   1080 <move@plt>
mov    $0x0,%al
call   1040 <hvflush@plt>
movsd  -0x8(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
call   1050 <xsc@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
call   1070 <ysc@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
call   1050 <xsc@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
call   1070 <ysc@plt>
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x38(%rbp),%xmm0
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
lea    0xdd2(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <flyback@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arc>:
sub    $0x48,%rsp
movsd  %xmm5,0x40(%rsp)
movsd  %xmm4,0x38(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x18(%rsp)
movsd  %xmm0,0x8(%rsp)
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
call   1080 <move@plt>
xor    %eax,%eax
call   1040 <hvflush@plt>
movsd  0x8(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
call   1050 <xsc@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
subsd  0x20(%rsp),%xmm0
call   1070 <ysc@plt>
xorpd  0xe36(%rip),%xmm0
movapd %xmm0,0x20(%rsp)
movsd  0x38(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
call   1050 <xsc@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x40(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
call   1070 <ysc@plt>
movapd 0xe00(%rip),%xmm3
xorpd  %xmm0,%xmm3
lea    0xe05(%rip),%rdi
movsd  0x10(%rsp),%xmm0
movaps 0x20(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
jmp    1060 <flyback@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"\\D'a%.3fi %.3fi %.3fi %.3fi'\0A\00"
define void @arc(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%13 = load double, double* %9
%14 = load double, double* %10
%15 = call i32 @move(double %13, double %14)
%16 = call i32 (...) @hvflush()
%17 = load double, double* %7
%18 = load double, double* %9
%19 = fsub double %17, %18
%20 = call double @xsc(double %19)
%21 = load double, double* %8
%22 = load double, double* %10
%23 = fsub double %21, %22
%24 = call double @ysc(double %23)
%25 = fneg double %24
%26 = load double, double* %11
%27 = load double, double* %7
%28 = fsub double %26, %27
%29 = call double @xsc(double %28)
%30 = load double, double* %12
%31 = load double, double* %8
%32 = fsub double %30, %31
%33 = call double @ysc(double %32)
%34 = fneg double %33
%35 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), double %20, double %25, double %29, double %34)
%36 = call i32 (...) @flyback()
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"\\D'a%.3fi %.3fi %.3fi %.3fi'\0A\00"
define void @arc(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = tail call i32 @move(double %2, double %3)
%8 = tail call i32 (...) @hvflush()
%9 = fsub double %0, %2
%10 = tail call double @xsc(double %9)
%11 = fsub double %1, %3
%12 = tail call double @ysc(double %11)
%13 = fneg double %12
%14 = fsub double %4, %0
%15 = tail call double @xsc(double %14)
%16 = fsub double %5, %1
%17 = tail call double @ysc(double %16)
%18 = fneg double %17
%19 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), double %10, double %13, double %15, double %18)
%20 = tail call i32 (...) @flyback()
ret void
}