#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 *);
int main() {
  float x1, x2, x3, y1, y2, y3, m1, m2;
  scanf("%f", &x1);
  scanf("%f", &y1);
  scanf("%f", &x2);
  scanf("%f", &y2);
  scanf("%f", &x3);
  scanf("%f", &y3);
  m1 = ((y2 - y1) / (x2 - x1));
  m2 = ((y3 - y2) / (x3 - x2));
  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
call   1040 <scanf@plt>
lea    0xeba(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeaa(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe9a(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe8a(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe7a(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x18(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
subss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
subss  -0x18(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
subss  -0xc(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x20(%rbp),%xmm0
ucomiss -0x24(%rbp),%xmm0
jne    11ef <main+0xcf>
jp     11ef <main+0xcf>
lea    0xe1e(%rip),%rdi
call   1030 <printf@plt>
jmp    11fb <main+0xdb>
lea    0xe2d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xed4(%rip),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
unpcklps %xmm1,%xmm2
unpcklps %xmm0,%xmm1
subps  %xmm2,%xmm1
movss  0x14(%rsp),%xmm0
movss  0x18(%rsp),%xmm2
movss  0x1c(%rsp),%xmm3
unpcklps %xmm2,%xmm3
unpcklps %xmm0,%xmm2
subps  %xmm3,%xmm2
divps  %xmm2,%xmm1
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
ucomiss %xmm0,%xmm1
lea    0xe5f(%rip),%rax
lea    0xe38(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [32 x i8] c"All the points are on same line\00"
@.str.2 = [36 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 ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %5)
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %6)
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %7)
%16 = load float, float* %6
%17 = load float, float* %5
%18 = fsub float %16, %17
%19 = load float, float* %3
%20 = load float, float* %2
%21 = fsub float %19, %20
%22 = fdiv float %18, %21
store float %22, float* %8
%23 = load float, float* %7
%24 = load float, float* %6
%25 = fsub float %23, %24
%26 = load float, float* %4
%27 = load float, float* %3
%28 = fsub float %26, %27
%29 = fdiv float %25, %28
store float %29, float* %9
%30 = load float, float* %8
%31 = load float, float* %9
%32 = fcmp oeq float %30, %31
br i1 %32, label %33, label %35
33: ; preds = %0
%34 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %37
35: ; preds = %0
%36 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
br label %37
37: ; preds = %35, %33
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [32 x i8] c"All the points are on same line\00"
@.str.2 = [36 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 ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %5)
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %6)
%19 = load float, float* %5
%20 = load float, float* %4
%21 = load float, float* %2
%22 = load float, float* %1
%23 = load float, float* %6
%24 = insertelement <2 x float> poison, float %19, i64 0
%25 = insertelement <2 x float> %24, float %23, i64 1
%26 = insertelement <2 x float> poison, float %20, i64 0
%27 = insertelement <2 x float> %26, float %19, i64 1
%28 = fsub <2 x float> %25, %27
%29 = load float, float* %3
%30 = insertelement <2 x float> poison, float %21, i64 0
%31 = insertelement <2 x float> %30, float %29, i64 1
%32 = insertelement <2 x float> poison, float %22, i64 0
%33 = insertelement <2 x float> %32, float %21, i64 1
%34 = fsub <2 x float> %31, %33
%35 = fdiv <2 x float> %28, %34
%36 = extractelement <2 x float> %35, i64 0
%37 = extractelement <2 x float> %35, i64 1
%38 = fcmp oeq float %36, %37
%39 = select i1 %38, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0)
%40 = call i32 @printf(i8* dereferenceable(1) %39)
ret i32 0
}