#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, x2, x3;
  float y1, y2, y3;
  scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
  float Y2 = y2 - y1;
  float Y3 = y3 - y1;
  float X2 = x2 - x1;
  float X3 = x3 - x1;
  if (X2 != 0 && X3 != 0) {
    float slope1 = Y2 / X2;
    float slope2 = Y3 / X3;
    if (slope1 == slope2)
      printf("All the points are on same line.");
    else
      printf("All the points are not on same line.");
  } else if (X2 == 0 && X3 == 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    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0x14(%rbp),%rdx
lea    -0xc(%rbp),%rcx
lea    -0x18(%rbp),%r8
lea    -0x10(%rbp),%r9
lea    -0x1c(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <scanf@plt>
movss  -0x18(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x10(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11af <main+0x8f>
jp     11af <main+0x8f>
jmp    1220 <main+0x100>
movss  -0x2c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11cb <main+0xab>
jp     11cb <main+0xab>
jmp    1220 <main+0x100>
movss  -0x20(%rbp),%xmm0
divss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x24(%rbp),%xmm0
divss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x30(%rbp),%xmm0
ucomiss -0x34(%rbp),%xmm0
jne    120f <main+0xef>
jp     120f <main+0xef>
lea    0xe0d(%rip),%rdi
call   1030 <printf@plt>
jmp    121b <main+0xfb>
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
jmp    1270 <main+0x150>
movss  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    125f <main+0x13f>
jp     125f <main+0x13f>
movss  -0x2c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    125f <main+0x13f>
jp     125f <main+0x13f>
lea    0xdbd(%rip),%rdi
call   1030 <printf@plt>
jmp    126b <main+0x14b>
lea    0xdcd(%rip),%rdi
call   1030 <printf@plt>
jmp    1270 <main+0x150>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
lea    0x28(%rsp),%rax
mov    %rax,(%rsp)
lea    0xecc(%rip),%rdi
lea    0x20(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x34(%rsp),%rcx
lea    0x2c(%rsp),%r8
lea    0x30(%rsp),%r9
call   1040 <scanf@plt>
movss  0x30(%rsp),%xmm1
movss  0x34(%rsp),%xmm0
unpcklps %xmm1,%xmm0
movaps 0x20(%rsp),%xmm1
shufps $0x0,%xmm1,%xmm1
subps  %xmm1,%xmm0
movaps %xmm0,%xmm1
shufps $0x55,%xmm0,%xmm1
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm0
jne    117e <main+0x5e>
jnp    11b8 <main+0x98>
ucomiss %xmm2,%xmm1
jne    1185 <main+0x65>
jnp    11b8 <main+0x98>
movss  0x28(%rsp),%xmm1
movss  0x2c(%rsp),%xmm2
unpcklps %xmm1,%xmm2
movaps 0x10(%rsp),%xmm1
shufps $0x0,%xmm1,%xmm1
subps  %xmm1,%xmm2
divps  %xmm0,%xmm2
movaps %xmm2,%xmm0
shufps $0x55,%xmm2,%xmm0
cmpeqss %xmm2,%xmm0
movd   %xmm0,%eax
and    $0x1,%eax
jmp    11d0 <main+0xb0>
ucomiss %xmm2,%xmm0
setnp  %al
sete   %cl
and    %al,%cl
ucomiss %xmm2,%xmm1
setnp  %dl
sete   %al
and    %dl,%al
and    %cl,%al
lea    0xe3b(%rip),%rcx
lea    0xe55(%rip),%rdi
test   %al,%al
cmovne %rcx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%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
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
store i32 0, i32* %1
%14 = call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), float* %2, float* %5, float* %3, float* %6, float* %4, float* %7)
%15 = load float, float* %6
%16 = load float, float* %5
%17 = fsub float %15, %16
store float %17, float* %8
%18 = load float, float* %7
%19 = load float, float* %5
%20 = fsub float %18, %19
store float %20, float* %9
%21 = load float, float* %3
%22 = load float, float* %2
%23 = fsub float %21, %22
store float %23, float* %10
%24 = load float, float* %4
%25 = load float, float* %2
%26 = fsub float %24, %25
store float %26, float* %11
%27 = load float, float* %10
%28 = fcmp une float %27, 0.000000e+00
br i1 %28, label %29, label %47
29: ; preds = %0
%30 = load float, float* %11
%31 = fcmp une float %30, 0.000000e+00
br i1 %31, label %32, label %47
32: ; preds = %29
%33 = load float, float* %8
%34 = load float, float* %10
%35 = fdiv float %33, %34
store float %35, float* %12
%36 = load float, float* %9
%37 = load float, float* %11
%38 = fdiv float %36, %37
store float %38, float* %13
%39 = load float, float* %12
%40 = load float, float* %13
%41 = fcmp oeq float %39, %40
br i1 %41, label %42, label %44
42: ; preds = %32
%43 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %46
44: ; preds = %32
%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 %58
47: ; preds = %29, %0
%48 = load float, float* %10
%49 = fcmp oeq float %48, 0.000000e+00
br i1 %49, label %50, label %55
50: ; preds = %47
%51 = load float, float* %11
%52 = fcmp oeq float %51, 0.000000e+00
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %57
55: ; preds = %50, %47
%56 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %57
57: ; preds = %55, %53
br label %58
58: ; preds = %57, %46
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* %4, float* %2, float* %5, float* %3, float* %6)
%14 = load float, float* %2
%15 = load float, float* %1
%16 = load float, float* %3
%17 = insertelement <2 x float> poison, float %14, i64 0
%18 = insertelement <2 x float> %17, float %16, i64 1
%19 = insertelement <2 x float> poison, float %15, i64 0
%20 = shufflevector <2 x float> %19, <2 x float> poison, <2 x i32> zeroinitializer
%21 = fsub <2 x float> %18, %20
%22 = extractelement <2 x float> %21, i64 0
%23 = fcmp une float %22, 0.000000e+00
%24 = extractelement <2 x float> %21, i64 1
%25 = fcmp une float %24, 0.000000e+00
%26 = select i1 %23, i1 %25, i1 false
br i1 %26, label %27, label %40
27: ; preds = %0
%28 = load float, float* %4
%29 = load float, float* %6
%30 = load float, float* %5
%31 = insertelement <2 x float> poison, float %30, i64 0
%32 = insertelement <2 x float> %31, float %29, i64 1
%33 = insertelement <2 x float> poison, float %28, i64 0
%34 = shufflevector <2 x float> %33, <2 x float> poison, <2 x i32> zeroinitializer
%35 = fsub <2 x float> %32, %34
%36 = fdiv <2 x float> %35, %21
%37 = extractelement <2 x float> %36, i64 0
%38 = extractelement <2 x float> %36, i64 1
%39 = fcmp oeq float %37, %38
br label %44
40: ; preds = %0
%41 = fcmp oeq float %22, 0.000000e+00
%42 = fcmp oeq float %24, 0.000000e+00
%43 = select i1 %41, i1 %42, i1 false
br label %44
44: ; preds = %40, %27
%45 = phi i1 [ %43, %40 ], [ %39, %27 ]
%46 = select i1 %45, 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)
%47 = call i32 @printf(i8* dereferenceable(1) %46)
ret i32 0
}