#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*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *, int *, int *, int *, int *);
int main() {
  int a, b, c, d, e, f;
  scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
  if ((a * (e - f) - d * (b - c) + (b * f - e * c)) == 0)
    printf("Points are collinear");
  else
    printf("Points are non-collinear");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
lea    -0x1c(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
imul   %ecx,%eax
mov    -0x14(%rbp),%ecx
mov    -0xc(%rbp),%edx
sub    -0x10(%rbp),%edx
imul   %edx,%ecx
sub    %ecx,%eax
mov    -0xc(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%edx
imul   -0x10(%rbp),%edx
sub    %edx,%ecx
add    %ecx,%eax
cmp    $0x0,%eax
jne    119d <main+0x7d>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
jmp    11a9 <main+0x89>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0xecc(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x14(%rsp),%r9
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
mov    0x10(%rsp),%ecx
mov    0x1c(%rsp),%edx
mov    %edx,%esi
imul   %eax,%edx
sub    %ecx,%eax
imul   0x24(%rsp),%eax
mov    0x20(%rsp),%edi
sub    %edi,%esi
imul   0x18(%rsp),%esi
add    %eax,%esi
imul   %ecx,%edi
sub    %edi,%edx
cmp    %edx,%esi
lea    0xe8d(%rip),%rax
lea    0xe9b(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"%d %d %d %d %d %d\00"
@.str.1 = [21 x i8] c"Points are collinear\00"
@.str.2 = [25 x i8] c"Points are non-collinear\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7)
%9 = load i32, i32* %2
%10 = load i32, i32* %6
%11 = load i32, i32* %7
%12 = sub nsw i32 %10, %11
%13 = mul nsw i32 %9, %12
%14 = load i32, i32* %5
%15 = load i32, i32* %3
%16 = load i32, i32* %4
%17 = sub nsw i32 %15, %16
%18 = mul nsw i32 %14, %17
%19 = sub nsw i32 %13, %18
%20 = load i32, i32* %3
%21 = load i32, i32* %7
%22 = mul nsw i32 %20, %21
%23 = load i32, i32* %6
%24 = load i32, i32* %4
%25 = mul nsw i32 %23, %24
%26 = sub nsw i32 %22, %25
%27 = add nsw i32 %19, %26
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %0
%30 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %33
31: ; preds = %0
%32 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %33
33: ; preds = %31, %29
%34 = load i32, i32* %1
ret i32 %34
}

LLVM IR (-O2):
@.str = [18 x i8] c"%d %d %d %d %d %d\00"
@.str.1 = [21 x i8] c"Points are collinear\00"
@.str.2 = [25 x i8] c"Points are non-collinear\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
%14 = load i32, i32* %1
%15 = load i32, i32* %5
%16 = load i32, i32* %6
%17 = sub nsw i32 %15, %16
%18 = mul nsw i32 %17, %14
%19 = load i32, i32* %4
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = sub i32 %21, %20
%23 = mul i32 %22, %19
%24 = add i32 %23, %18
%25 = mul nsw i32 %20, %16
%26 = mul nsw i32 %21, %15
%27 = sub i32 %26, %25
%28 = icmp eq i32 %24, %27
%29 = select i1 %28, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0)
%30 = call i32 @printf(i8* dereferenceable(1) %29)
ret i32 0
}