#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, m1, m2;
  scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
  if (x2 != x1) {
    m1 = (y2 - y1) / (x2 - x1);
  }
  if (x2 != x3) {
    m2 = (y3 - y2) / (x3 - x2);
  }
  if ((x1 == x2) && (x2 == x3)) {
    printf("All the points are on same line.");
  } else if (x1 == x2 && x2 != x3) {
    printf("All the points are not on same line.");
  } else if (x1 != x2 && x2 == x3) {
    printf("All the points are not on same line.");
  } else {
    if (m1 == m2) {
      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  -0x10(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jne    1171 <main+0x51>
jp     1171 <main+0x51>
jmp    118e <main+0x6e>
movss  -0x14(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
subss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x10(%rbp),%xmm0
ucomiss -0x18(%rbp),%xmm0
jne    11a8 <main+0x88>
jp     11a8 <main+0x88>
jmp    11c5 <main+0xa5>
movss  -0x1c(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
subss  -0x10(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    1200 <main+0xe0>
jp     1200 <main+0xe0>
movss  -0x10(%rbp),%xmm0
ucomiss -0x18(%rbp),%xmm0
jne    1200 <main+0xe0>
jp     1200 <main+0xe0>
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
jmp    12c1 <main+0x1a1>
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    1240 <main+0x120>
jp     1240 <main+0x120>
movss  -0x10(%rbp),%xmm0
ucomiss -0x18(%rbp),%xmm0
jne    122f <main+0x10f>
jp     122f <main+0x10f>
jmp    1240 <main+0x120>
lea    0xdfd(%rip),%rdi
call   1030 <printf@plt>
jmp    12bc <main+0x19c>
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    125a <main+0x13a>
jp     125a <main+0x13a>
jmp    1280 <main+0x160>
movss  -0x10(%rbp),%xmm0
ucomiss -0x18(%rbp),%xmm0
jne    1280 <main+0x160>
jp     1280 <main+0x160>
lea    0xdbd(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
movss  -0x20(%rbp),%xmm0
ucomiss -0x24(%rbp),%xmm0
jne    12a6 <main+0x186>
jp     12a6 <main+0x186>
lea    0xd76(%rip),%rdi
call   1030 <printf@plt>
jmp    12b2 <main+0x192>
lea    0xd86(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
jmp    12bc <main+0x19c>
jmp    12c1 <main+0x1a1>
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    0x10(%rsp),%r8
lea    0x18(%rsp),%r9
call   1040 <scanf@plt>
movss  0x1c(%rsp),%xmm0
movss  0x24(%rsp),%xmm2
ucomiss %xmm2,%xmm0
jne    1165 <main+0x45>
jnp    117e <main+0x5e>
movss  0x10(%rsp),%xmm1
subss  0x20(%rsp),%xmm1
movaps %xmm0,%xmm3
subss  %xmm2,%xmm3
divss  %xmm3,%xmm1
jmp    117e <main+0x5e>
movss  0x18(%rsp),%xmm3
ucomiss %xmm3,%xmm0
jne    118b <main+0x6b>
jnp    11a4 <main+0x84>
movss  0x14(%rsp),%xmm4
subss  0x10(%rsp),%xmm4
movaps %xmm3,%xmm5
subss  %xmm0,%xmm5
divss  %xmm5,%xmm4
jmp    11a4 <main+0x84>
ucomiss %xmm0,%xmm2
jne    11bb <main+0x9b>
jp     11bb <main+0x9b>
ucomiss %xmm3,%xmm0
jne    11bb <main+0x9b>
jp     11bb <main+0x9b>
lea    0xe59(%rip),%rdi
jmp    11f7 <main+0xd7>
ucomiss %xmm0,%xmm2
lea    0xe6e(%rip),%rdi
jne    11d0 <main+0xb0>
jp     11d0 <main+0xb0>
ucomiss %xmm3,%xmm0
jne    11f7 <main+0xd7>
jp     11f7 <main+0xd7>
ucomiss %xmm2,%xmm0
jne    11d7 <main+0xb7>
jnp    11de <main+0xbe>
ucomiss %xmm3,%xmm0
jne    11de <main+0xbe>
jnp    11f7 <main+0xd7>
ucomiss %xmm4,%xmm1
lea    0xe4b(%rip),%rax
lea    0xe23(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [18 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 ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), float* %2, float* %3, float* %4, float* %5, float* %6, float* %7)
%11 = load float, float* %4
%12 = load float, float* %2
%13 = fcmp une float %11, %12
br i1 %13, label %14, label %22
14: ; preds = %0
%15 = load float, float* %5
%16 = load float, float* %3
%17 = fsub float %15, %16
%18 = load float, float* %4
%19 = load float, float* %2
%20 = fsub float %18, %19
%21 = fdiv float %17, %20
store float %21, float* %8
br label %22
22: ; preds = %14, %0
%23 = load float, float* %4
%24 = load float, float* %6
%25 = fcmp une float %23, %24
br i1 %25, label %26, label %34
26: ; preds = %22
%27 = load float, float* %7
%28 = load float, float* %5
%29 = fsub float %27, %28
%30 = load float, float* %6
%31 = load float, float* %4
%32 = fsub float %30, %31
%33 = fdiv float %29, %32
store float %33, float* %9
br label %34
34: ; preds = %26, %22
%35 = load float, float* %2
%36 = load float, float* %4
%37 = fcmp oeq float %35, %36
br i1 %37, label %38, label %44
38: ; preds = %34
%39 = load float, float* %4
%40 = load float, float* %6
%41 = fcmp oeq float %39, %40
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %75
44: ; preds = %38, %34
%45 = load float, float* %2
%46 = load float, float* %4
%47 = fcmp oeq float %45, %46
br i1 %47, label %48, label %54
48: ; preds = %44
%49 = load float, float* %4
%50 = load float, float* %6
%51 = fcmp une float %49, %50
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %74
54: ; preds = %48, %44
%55 = load float, float* %2
%56 = load float, float* %4
%57 = fcmp une float %55, %56
br i1 %57, label %58, label %64
58: ; preds = %54
%59 = load float, float* %4
%60 = load float, float* %6
%61 = fcmp oeq float %59, %60
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %73
64: ; preds = %58, %54
%65 = load float, float* %8
%66 = load float, float* %9
%67 = fcmp oeq float %65, %66
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %72
70: ; preds = %64
%71 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %72
72: ; preds = %70, %68
br label %73
73: ; preds = %72, %62
br label %74
74: ; preds = %73, %52
br label %75
75: ; preds = %74, %42
ret i32 0
}

LLVM IR (-O2):
@.str = [18 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 ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %3, float* %4, float* %5, float* %6)
%14 = load float, float* %3
%15 = load float, float* %1
%16 = fcmp une float %14, %15
br i1 %16, label %17, label %23
17: ; preds = %0
%18 = load float, float* %4
%19 = load float, float* %2
%20 = fsub float %18, %19
%21 = fsub float %14, %15
%22 = fdiv float %20, %21
br label %23
23: ; preds = %17, %0
%24 = phi float [ %22, %17 ], [ undef, %0 ]
%25 = load float, float* %5
%26 = fcmp une float %14, %25
br i1 %26, label %27, label %33
27: ; preds = %23
%28 = load float, float* %6
%29 = load float, float* %4
%30 = fsub float %28, %29
%31 = fsub float %25, %14
%32 = fdiv float %30, %31
br label %33
33: ; preds = %27, %23
%34 = phi float [ %32, %27 ], [ undef, %23 ]
%35 = fcmp oeq float %15, %14
%36 = fcmp oeq float %14, %25
%37 = select i1 %35, i1 %36, i1 false
br i1 %37, label %45, label %38
38: ; preds = %33
%39 = select i1 %35, i1 %26, i1 false
br i1 %39, label %45, label %40
40: ; preds = %38
%41 = select i1 %16, i1 %36, i1 false
br i1 %41, label %45, label %42
42: ; preds = %40
%43 = fcmp oeq float %24, %34
%44 = select i1 %43, 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)
br label %45
45: ; preds = %42, %40, %38, %33
%46 = phi i8* [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), %33 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), %38 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), %40 ], [ %44, %42 ]
%47 = call i32 @printf(i8* dereferenceable(1) %46)
ret i32 0
}