#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)
movss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x18(%rbp),%xmm3
movss  -0x10(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
lea    0xeac(%rip),%rdi
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    11b1 <main+0x91>
jp     11b1 <main+0x91>
jmp    1222 <main+0x102>
movss  -0x2c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11cd <main+0xad>
jp     11cd <main+0xad>
jmp    1222 <main+0x102>
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    1211 <main+0xf1>
jp     1211 <main+0xf1>
lea    0xe0b(%rip),%rdi
call   1030 <printf@plt>
jmp    121d <main+0xfd>
lea    0xe1b(%rip),%rdi
call   1030 <printf@plt>
jmp    1272 <main+0x152>
movss  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1261 <main+0x141>
jp     1261 <main+0x141>
movss  -0x2c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1261 <main+0x141>
jp     1261 <main+0x141>
lea    0xdbb(%rip),%rdi
call   1030 <printf@plt>
jmp    126d <main+0x14d>
lea    0xdcb(%rip),%rdi
call   1030 <printf@plt>
jmp    1272 <main+0x152>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <scanf@plt>
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
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 = load float, float* %2
%15 = load float, float* %5
%16 = load float, float* %3
%17 = load float, float* %6
%18 = load float, float* %4
%19 = load float, float* %7
%20 = call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), float %14, float %15, float %16, float %17, float %18, float %19)
%21 = load float, float* %6
%22 = load float, float* %5
%23 = fsub float %21, %22
store float %23, float* %8
%24 = load float, float* %7
%25 = load float, float* %5
%26 = fsub float %24, %25
store float %26, float* %9
%27 = load float, float* %3
%28 = load float, float* %2
%29 = fsub float %27, %28
store float %29, float* %10
%30 = load float, float* %4
%31 = load float, float* %2
%32 = fsub float %30, %31
store float %32, float* %11
%33 = load float, float* %10
%34 = fcmp une float %33, 0.000000e+00
br i1 %34, label %35, label %53
35: ; preds = %0
%36 = load float, float* %11
%37 = fcmp une float %36, 0.000000e+00
br i1 %37, label %38, label %53
38: ; preds = %35
%39 = load float, float* %8
%40 = load float, float* %10
%41 = fdiv float %39, %40
store float %41, float* %12
%42 = load float, float* %9
%43 = load float, float* %11
%44 = fdiv float %42, %43
store float %44, float* %13
%45 = load float, float* %12
%46 = load float, float* %13
%47 = fcmp oeq float %45, %46
br i1 %47, label %48, label %50
48: ; preds = %38
%49 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %52
50: ; preds = %38
%51 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %52
52: ; preds = %50, %48
br label %64
53: ; preds = %35, %0
%54 = load float, float* %10
%55 = fcmp oeq float %54, 0.000000e+00
br i1 %55, label %56, label %61
56: ; preds = %53
%57 = load float, float* %11
%58 = fcmp oeq float %57, 0.000000e+00
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %63
61: ; preds = %56, %53
%62 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %63
63: ; preds = %61, %59
br label %64
64: ; preds = %63, %52
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"%f %f %f %f %f %f\00"
@.str.2 = [37 x i8] c"All the points are not on same line.\00"
define i32 @main() {
%1 = tail call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), float undef, float undef, float undef, float undef, float undef, float undef)
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}