#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, slope, v;
  scanf("%f%f%f%f%f%f", &x1, &y1, &x2, &y2, &x3, &y3);
  if (x1 == x2) {
    if (x3 == x1)
      printf("All the points are on same line.");
    else
      printf("All the points are not on same line.");
  } else {
    slope = (y2 - y1) / (x2 - x1);
    v = (y3 - y1) - slope * (x3 - x1);
    if (v == 0)
      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  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    11a3 <main+0x83>
jp     11a3 <main+0x83>
movss  -0x18(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jne    1192 <main+0x72>
jp     1192 <main+0x72>
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
jmp    119e <main+0x7e>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
jmp    122c <main+0x10c>
movss  -0x14(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
subss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm1
subss  -0xc(%rbp),%xmm1
movss  -0x20(%rbp),%xmm0
movss  -0x18(%rbp),%xmm2
subss  -0x8(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    121b <main+0xfb>
jp     121b <main+0xfb>
lea    0xdfc(%rip),%rdi
call   1030 <printf@plt>
jmp    1227 <main+0x107>
lea    0xe0c(%rip),%rdi
call   1030 <printf@plt>
jmp    122c <main+0x10c>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0x14(%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    0x10(%rsp),%r9
call   1040 <scanf@plt>
movss  0x24(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
ucomiss %xmm1,%xmm0
jne    116e <main+0x4e>
jp     116e <main+0x4e>
cmpeqss 0x10(%rsp),%xmm0
jmp    11aa <main+0x8a>
movss  0x18(%rsp),%xmm2
movss  0x20(%rsp),%xmm3
subss  %xmm3,%xmm2
subss  %xmm0,%xmm1
divss  %xmm1,%xmm2
movss  0x14(%rsp),%xmm1
subss  %xmm3,%xmm1
movss  0x10(%rsp),%xmm3
subss  %xmm0,%xmm3
mulss  %xmm2,%xmm3
subss  %xmm3,%xmm1
xorps  %xmm0,%xmm0
cmpeqss %xmm1,%xmm0
movd   %xmm0,%eax
and    $0x1,%eax
lea    0xe55(%rip),%rcx
lea    0xe6f(%rip),%rdi
test   %al,%al
cmovne %rcx,%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
%8 = alloca float
%9 = alloca float
store i32 0, i32* %1
%10 = 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)
%11 = load float, float* %2
%12 = load float, float* %4
%13 = fcmp oeq float %11, %12
br i1 %13, label %14, label %23
14: ; preds = %0
%15 = load float, float* %6
%16 = load float, float* %2
%17 = fcmp oeq float %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %22
20: ; preds = %14
%21 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %47
23: ; preds = %0
%24 = load float, float* %5
%25 = load float, float* %3
%26 = fsub float %24, %25
%27 = load float, float* %4
%28 = load float, float* %2
%29 = fsub float %27, %28
%30 = fdiv float %26, %29
store float %30, float* %8
%31 = load float, float* %7
%32 = load float, float* %3
%33 = fsub float %31, %32
%34 = load float, float* %8
%35 = load float, float* %6
%36 = load float, float* %2
%37 = fsub float %35, %36
%38 = fneg float %34
%39 = call float @llvm.fmuladd.f32(float %38, float %37, float %33)
store float %39, float* %9
%40 = load float, float* %9
%41 = fcmp oeq float %40, 0.000000e+00
br i1 %41, label %42, label %44
42: ; preds = %23
%43 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %46
44: ; preds = %23
%45 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %46
46: ; preds = %44, %42
br label %47
47: ; preds = %46, %22
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* %1
%15 = load float, float* %3
%16 = fcmp oeq float %14, %15
br i1 %16, label %17, label %20
17: ; preds = %0
%18 = load float, float* %5
%19 = fcmp oeq float %18, %14
br label %33
20: ; preds = %0
%21 = load float, float* %4
%22 = load float, float* %2
%23 = fsub float %21, %22
%24 = fsub float %15, %14
%25 = load float, float* %6
%26 = fsub float %25, %22
%27 = load float, float* %5
%28 = fsub float %27, %14
%29 = fneg float %23
%30 = fdiv float %29, %24
%31 = call float @llvm.fmuladd.f32(float %30, float %28, float %26)
%32 = fcmp oeq float %31, 0.000000e+00
br label %33
33: ; preds = %20, %17
%34 = phi i1 [ %32, %20 ], [ %19, %17 ]
%35 = select i1 %34, 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)
%36 = call i32 @printf(i8* dereferenceable(1) %35)
ret i32 0
}