#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, y1, y2, y3, area;
  scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
  area = ((x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)) / 2);
  if (area == 0) {
    printf("All the points are on the 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    0xece(%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  -0x8(%rbp),%xmm1
movss  -0x18(%rbp),%xmm2
subss  -0x1c(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
movss  -0x1c(%rbp),%xmm3
subss  -0x14(%rbp),%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm2
subss  -0x18(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xe60(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11d1 <main+0xb1>
jp     11d1 <main+0xb1>
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
jmp    11dd <main+0xbd>
lea    0xe63(%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    0xed0(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x14(%rsp),%r8
lea    0x1c(%rsp),%r9
call   1040 <scanf@plt>
movss  0x14(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
movaps %xmm0,%xmm2
subss  %xmm1,%xmm2
movss  0x18(%rsp),%xmm3
subss  %xmm3,%xmm1
mulss  0x20(%rsp),%xmm1
mulss  0x24(%rsp),%xmm2
addss  %xmm1,%xmm2
subss  %xmm0,%xmm3
mulss  0x1c(%rsp),%xmm3
addss  %xmm2,%xmm3
mulss  0xe6b(%rip),%xmm3
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm3
lea    0xe99(%rip),%rax
lea    0xe6d(%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 = [37 x i8] c"All the points are on the 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
store i32 0, i32* %1
%9 = 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)
%10 = load float, float* %2
%11 = load float, float* %6
%12 = load float, float* %7
%13 = fsub float %11, %12
%14 = load float, float* %3
%15 = load float, float* %7
%16 = load float, float* %5
%17 = fsub float %15, %16
%18 = fmul float %14, %17
%19 = call float @llvm.fmuladd.f32(float %10, float %13, float %18)
%20 = load float, float* %4
%21 = load float, float* %5
%22 = load float, float* %6
%23 = fsub float %21, %22
%24 = call float @llvm.fmuladd.f32(float %20, float %23, float %19)
%25 = fdiv float %24, 2.000000e+00
store float %25, float* %8
%26 = load float, float* %8
%27 = fcmp oeq float %26, 0.000000e+00
br i1 %27, label %28, label %30
28: ; preds = %0
%29 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
br label %32
30: ; preds = %0
%31 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"%f %f %f %f %f %f\00"
@.str.1 = [37 x i8] c"All the points are on the 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* %1
%15 = load float, float* %5
%16 = load float, float* %6
%17 = fsub float %15, %16
%18 = load float, float* %2
%19 = load float, float* %4
%20 = fsub float %16, %19
%21 = fmul float %18, %20
%22 = call float @llvm.fmuladd.f32(float %14, float %17, float %21)
%23 = load float, float* %3
%24 = fsub float %19, %15
%25 = call float @llvm.fmuladd.f32(float %23, float %24, float %22)
%26 = fmul float %25, 5.000000e-01
%27 = fcmp oeq float %26, 0.000000e+00
%28 = select i1 %27, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0)
%29 = call i32 @printf(i8* dereferenceable(1) %28)
ret i32 0
}