cansee(x0, y0, x1, y1, x2, y2) double x0, y0, x1, y1, x2, y2;
{
  if (clipxy(&x0, &y0, &x1, &y1) || clipxy(&x1, &y1, &x2, &y2) ||
      clipxy(&x0, &y0, &x2, &y2))
    return !0;
  else
    return 0;
}


x86 assembly (clang, -O0):
<cansee>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rcx
mov    $0x0,%al
call   1030 <clipxy@plt>
cmp    $0x0,%eax
jne    1196 <cansee+0x86>
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
mov    $0x0,%al
call   1030 <clipxy@plt>
cmp    $0x0,%eax
jne    1196 <cansee+0x86>
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
mov    $0x0,%al
call   1030 <clipxy@plt>
cmp    $0x0,%eax
je     11a2 <cansee+0x92>
movl   $0x1,-0x4(%rbp)
jmp    11a9 <cansee+0x99>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cansee>:
push   %rbx
sub    $0x30,%rsp
movsd  %xmm0,0x28(%rsp)
movsd  %xmm1,0x20(%rsp)
movsd  %xmm2,0x18(%rsp)
movsd  %xmm3,0x10(%rsp)
movsd  %xmm4,0x8(%rsp)
movsd  %xmm5,(%rsp)
lea    0x28(%rsp),%rdi
lea    0x20(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x10(%rsp),%rcx
xor    %eax,%eax
call   1030 <clipxy@plt>
mov    $0x1,%ebx
test   %eax,%eax
jne    1199 <cansee+0x89>
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1030 <clipxy@plt>
test   %eax,%eax
jne    1199 <cansee+0x89>
lea    0x28(%rsp),%rdi
lea    0x20(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1030 <clipxy@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
mov    %ebx,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @cansee(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
%14 = call i32 (double*, double*, double*, double*, ...) bitcast (i32 (...)* @clipxy to i32 (double*, double*, double*, double*, ...)*)(double* %8, double* %9, double* %10, double* %11)
%15 = icmp ne i32 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %6
%17 = call i32 (double*, double*, double*, double*, ...) bitcast (i32 (...)* @clipxy to i32 (double*, double*, double*, double*, ...)*)(double* %10, double* %11, double* %12, double* %13)
%18 = icmp ne i32 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = call i32 (double*, double*, double*, double*, ...) bitcast (i32 (...)* @clipxy to i32 (double*, double*, double*, double*, ...)*)(double* %8, double* %9, double* %12, double* %13)
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %19, %16, %6
store i32 1, i32* %7
br label %24
23: ; preds = %19
store i32 0, i32* %7
br label %24
24: ; preds = %23, %22
%25 = load i32, i32* %7
ret i32 %25
}

LLVM IR (-O2):
define i32 @cansee(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 = call i32 (double*, double*, double*, double*, ...) bitcast (i32 (...)* @clipxy to i32 (double*, double*, double*, double*, ...)*)(double* %7, double* %8, double* %9, double* %10)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %6
%16 = call i32 (double*, double*, double*, double*, ...) bitcast (i32 (...)* @clipxy to i32 (double*, double*, double*, double*, ...)*)(double* %9, double* %10, double* %11, double* %12)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = call i32 (double*, double*, double*, double*, ...) bitcast (i32 (...)* @clipxy to i32 (double*, double*, double*, double*, ...)*)(double* %7, double* %8, double* %11, double* %12)
%20 = icmp ne i32 %19, 0
%21 = zext i1 %20 to i32
br label %22
22: ; preds = %18, %6, %15
%23 = phi i32 [ 1, %15 ], [ 1, %6 ], [ %21, %18 ]
ret i32 %23
}