#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 *, float *, float *, float *, float *, float *,
                         float *);
int main() {
  float x1, y1, x2, y2, x3, y3;
  scanf("%f%f%f%f%f%f", &x1, &y1, &x2, &y2, &x3, &y3);
  if ((float)y2 - y1 / x2 - x1 == (float)y3 - y2 / x3 - x2) {
    printf("All the points are on same line.");
  } else {
    printf("All the points are not on same line.");
  }
  return 0;
}


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>
movss  -0x14(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
divss  -0x10(%rbp),%xmm1
subss  %xmm1,%xmm0
subss  -0x8(%rbp),%xmm0
movss  -0x1c(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
divss  -0x18(%rbp),%xmm2
subss  %xmm2,%xmm1
subss  -0x10(%rbp),%xmm1
ucomiss %xmm1,%xmm0
jne    11a7 <main+0x87>
jp     11a7 <main+0x87>
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
jmp    11b3 <main+0x93>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%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>
movss  0x20(%rsp),%xmm0
movss  0x18(%rsp),%xmm1
unpcklps %xmm1,%xmm0
movss  0x14(%rsp),%xmm2
movss  0x1c(%rsp),%xmm3
movss  0x24(%rsp),%xmm4
unpcklps %xmm3,%xmm4
unpcklps %xmm2,%xmm3
divps  %xmm3,%xmm0
movss  0x10(%rsp),%xmm2
unpcklps %xmm2,%xmm1
subps  %xmm0,%xmm1
subps  %xmm4,%xmm1
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
ucomiss %xmm0,%xmm1
lea    0xe92(%rip),%rax
lea    0xe6a(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%f%f%f%f%f%f\00"
@.str.1 = [33 x i8] c"All the points are on same line.\00"
@.str.2 = [37 x i8] c"All the points are not on same line.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
store i32 0, i32* %1
%8 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float* %2, float* %3, float* %4, float* %5, float* %6, float* %7)
%9 = load float, float* %5
%10 = load float, float* %3
%11 = load float, float* %4
%12 = fdiv float %10, %11
%13 = fsub float %9, %12
%14 = load float, float* %2
%15 = fsub float %13, %14
%16 = load float, float* %7
%17 = load float, float* %5
%18 = load float, float* %6
%19 = fdiv float %17, %18
%20 = fsub float %16, %19
%21 = load float, float* %4
%22 = fsub float %20, %21
%23 = fcmp oeq float %15, %22
br i1 %23, label %24, label %26
24: ; preds = %0
%25 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %28
26: ; preds = %0
%27 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %28
28: ; preds = %26, %24
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"%f%f%f%f%f%f\00"
@.str.1 = [33 x i8] c"All the points are on same line.\00"
@.str.2 = [37 x i8] c"All the points are not on same line.\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = bitcast float* %1 to i8*
%8 = bitcast float* %2 to i8*
%9 = bitcast float* %3 to i8*
%10 = bitcast float* %4 to i8*
%11 = bitcast float* %5 to i8*
%12 = bitcast float* %6 to i8*
%13 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %3, float* %4, float* %5, float* %6)
%14 = load float, float* %4
%15 = load float, float* %2
%16 = load float, float* %3
%17 = load float, float* %1
%18 = load float, float* %6
%19 = load float, float* %5
%20 = insertelement <2 x float> poison, float %15, i64 0
%21 = insertelement <2 x float> %20, float %14, i64 1
%22 = insertelement <2 x float> poison, float %16, i64 0
%23 = insertelement <2 x float> %22, float %19, i64 1
%24 = fdiv <2 x float> %21, %23
%25 = insertelement <2 x float> poison, float %14, i64 0
%26 = insertelement <2 x float> %25, float %18, i64 1
%27 = fsub <2 x float> %26, %24
%28 = insertelement <2 x float> poison, float %17, i64 0
%29 = insertelement <2 x float> %28, float %16, i64 1
%30 = fsub <2 x float> %27, %29
%31 = extractelement <2 x float> %30, i64 0
%32 = extractelement <2 x float> %30, i64 1
%33 = fcmp oeq float %31, %32
%34 = select i1 %33, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0)
%35 = call i32 @printf(i8* dereferenceable(1) %34)
ret i32 0
}