#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 *, double *);
int main(void) {
  double a1, b1, c1, d1;
  double a2, b2, c2, d2;
  printf("Escribe los coeficientes del primer plano Ax+By+Cz+D\n");
  scanf("%lf", &a1);
  scanf("%lf", &b1);
  scanf("%lf", &c1);
  scanf("%lf", &d1);
  printf("Escribe los coeficientes del segundo plano Ax+By+Cz+D\n");
  scanf("%lf", &a2);
  scanf("%lf", &b2);
  scanf("%lf", &c2);
  scanf("%lf", &d2);
  if (((a1 / a2) == (b1 / b2)) && ((a1 / a2) == (c1 / c2)) &&
      ((a1 / a2) == (d1 / d2)))
    printf("Los planos son coincidentes\n");
  else if (((a1 / a2) == (b1 / b2)) && ((a1 / a2) == (c1 / c2)) &&
           ((b1 / b2) == (c1 / c2)) && ((a1 / a2) != (d1 / d2)))
    printf("Los planos son paralelos\n");
  else if ((a1 * a2) + (b1 * b2) + (c1 * c2) == 0)
    printf("Los planos son perpendiculares\n");
  else {
    printf("Los planos son secantes\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xee4(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xed4(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec4(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
lea    0xea8(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe98(%rip),%rdi
lea    -0x38(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe88(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe78(%rip),%rdi
lea    -0x48(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
divsd  -0x38(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jne    1244 <main+0x124>
jp     1244 <main+0x124>
movsd  -0x10(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
divsd  -0x40(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jne    1244 <main+0x124>
jp     1244 <main+0x124>
movsd  -0x10(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
divsd  -0x48(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jne    1244 <main+0x124>
jp     1244 <main+0x124>
lea    0xe37(%rip),%rdi
call   1030 <printf@plt>
jmp    1352 <main+0x232>
movsd  -0x10(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
divsd  -0x38(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jne    12ea <main+0x1ca>
jp     12ea <main+0x1ca>
movsd  -0x10(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
divsd  -0x40(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jne    12ea <main+0x1ca>
jp     12ea <main+0x1ca>
movsd  -0x18(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
divsd  -0x40(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jne    12ea <main+0x1ca>
jp     12ea <main+0x1ca>
movsd  -0x10(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
divsd  -0x48(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jne    12d9 <main+0x1b9>
jp     12d9 <main+0x1b9>
jmp    12ea <main+0x1ca>
lea    0xdae(%rip),%rdi
call   1030 <printf@plt>
jmp    134d <main+0x22d>
movsd  -0x10(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    133c <main+0x21c>
jp     133c <main+0x21c>
lea    0xd76(%rip),%rdi
call   1030 <printf@plt>
jmp    1348 <main+0x228>
lea    0xd85(%rip),%rdi
call   1030 <printf@plt>
jmp    134d <main+0x22d>
jmp    1352 <main+0x232>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xec8(%rip),%rbx
lea    0x38(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movsd  0x38(%rsp),%xmm0
movsd  0x20(%rsp),%xmm9
movsd  0x30(%rsp),%xmm1
movsd  0x18(%rsp),%xmm3
movapd %xmm0,%xmm6
unpcklpd %xmm1,%xmm6
movapd %xmm9,%xmm4
unpcklpd %xmm3,%xmm4
divpd  %xmm4,%xmm6
movapd %xmm6,%xmm7
unpckhpd %xmm6,%xmm7
ucomisd %xmm7,%xmm6
movsd  0x28(%rsp),%xmm4
movsd  0x10(%rsp),%xmm8
jne    1246 <main+0x126>
jp     1246 <main+0x126>
movapd %xmm4,%xmm5
divsd  %xmm8,%xmm5
ucomisd %xmm5,%xmm6
jne    1246 <main+0x126>
jp     1246 <main+0x126>
movsd  0x8(%rsp),%xmm2
divsd  (%rsp),%xmm2
ucomisd %xmm2,%xmm6
jne    1222 <main+0x102>
jp     1222 <main+0x102>
lea    0xe9f(%rip),%rdi
jmp    127a <main+0x15a>
ucomisd %xmm5,%xmm7
jne    1246 <main+0x126>
jp     1246 <main+0x126>
movsd  0x8(%rsp),%xmm2
divsd  (%rsp),%xmm2
ucomisd %xmm2,%xmm6
jne    123d <main+0x11d>
jnp    1246 <main+0x126>
lea    0xe62(%rip),%rdi
jmp    127a <main+0x15a>
mulsd  %xmm3,%xmm1
mulsd  %xmm9,%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm8,%xmm4
addsd  %xmm0,%xmm4
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm4
lea    0xe04(%rip),%rax
lea    0xe15(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [54 x i8] c"Escribe los coeficientes del primer plano Ax+By+Cz+D\0A\00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [55 x i8] c"Escribe los coeficientes del segundo plano Ax+By+Cz+D\0A\00"
@.str.3 = [29 x i8] c"Los planos son coincidentes\0A\00"
@.str.4 = [26 x i8] c"Los planos son paralelos\0A\00"
@.str.5 = [32 x i8] c"Los planos son perpendiculares\0A\00"
@.str.6 = [25 x i8] c"Los planos son secantes\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32 0, i32* %1
%10 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%12 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%13 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %4)
%14 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %5)
%15 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %6)
%17 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %7)
%18 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %8)
%19 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %9)
%20 = load double, double* %2
%21 = load double, double* %6
%22 = fdiv double %20, %21
%23 = load double, double* %3
%24 = load double, double* %7
%25 = fdiv double %23, %24
%26 = fcmp oeq double %22, %25
br i1 %26, label %27, label %45
27: ; preds = %0
%28 = load double, double* %2
%29 = load double, double* %6
%30 = fdiv double %28, %29
%31 = load double, double* %4
%32 = load double, double* %8
%33 = fdiv double %31, %32
%34 = fcmp oeq double %30, %33
br i1 %34, label %35, label %45
35: ; preds = %27
%36 = load double, double* %2
%37 = load double, double* %6
%38 = fdiv double %36, %37
%39 = load double, double* %5
%40 = load double, double* %9
%41 = fdiv double %39, %40
%42 = fcmp oeq double %38, %41
br i1 %42, label %43, label %45
43: ; preds = %35
%44 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
br label %96
45: ; preds = %35, %27, %0
%46 = load double, double* %2
%47 = load double, double* %6
%48 = fdiv double %46, %47
%49 = load double, double* %3
%50 = load double, double* %7
%51 = fdiv double %49, %50
%52 = fcmp oeq double %48, %51
br i1 %52, label %53, label %79
53: ; preds = %45
%54 = load double, double* %2
%55 = load double, double* %6
%56 = fdiv double %54, %55
%57 = load double, double* %4
%58 = load double, double* %8
%59 = fdiv double %57, %58
%60 = fcmp oeq double %56, %59
br i1 %60, label %61, label %79
61: ; preds = %53
%62 = load double, double* %3
%63 = load double, double* %7
%64 = fdiv double %62, %63
%65 = load double, double* %4
%66 = load double, double* %8
%67 = fdiv double %65, %66
%68 = fcmp oeq double %64, %67
br i1 %68, label %69, label %79
69: ; preds = %61
%70 = load double, double* %2
%71 = load double, double* %6
%72 = fdiv double %70, %71
%73 = load double, double* %5
%74 = load double, double* %9
%75 = fdiv double %73, %74
%76 = fcmp une double %72, %75
br i1 %76, label %77, label %79
77: ; preds = %69
%78 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
br label %95
79: ; preds = %69, %61, %53, %45
%80 = load double, double* %2
%81 = load double, double* %6
%82 = load double, double* %3
%83 = load double, double* %7
%84 = fmul double %82, %83
%85 = call double @llvm.fmuladd.f64(double %80, double %81, double %84)
%86 = load double, double* %4
%87 = load double, double* %8
%88 = call double @llvm.fmuladd.f64(double %86, double %87, double %85)
%89 = fcmp oeq double %88, 0.000000e+00
br i1 %89, label %90, label %92
90: ; preds = %79
%91 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
br label %94
92: ; preds = %79
%93 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
br label %94
94: ; preds = %92, %90
br label %95
95: ; preds = %94, %77
br label %96
96: ; preds = %95, %43
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"%lf\00"
@str = [53 x i8] c"Escribe los coeficientes del primer plano Ax+By+Cz+D\00"
@str.7 = [54 x i8] c"Escribe los coeficientes del segundo plano Ax+By+Cz+D\00"
@str.8 = [24 x i8] c"Los planos son secantes\00"
@str.9 = [31 x i8] c"Los planos son perpendiculares\00"
@str.10 = [25 x i8] c"Los planos son paralelos\00"
@str.11 = [28 x i8] c"Los planos son coincidentes\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = bitcast double* %1 to i8*
%10 = bitcast double* %2 to i8*
%11 = bitcast double* %3 to i8*
%12 = bitcast double* %4 to i8*
%13 = bitcast double* %5 to i8*
%14 = bitcast double* %6 to i8*
%15 = bitcast double* %7 to i8*
%16 = bitcast double* %8 to i8*
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%19 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%20 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%21 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %4)
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.7, i64 0, i64 0))
%23 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %5)
%24 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %6)
%25 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %7)
%26 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %8)
%27 = load double, double* %1
%28 = load double, double* %5
%29 = load double, double* %2
%30 = load double, double* %6
%31 = insertelement <2 x double> poison, double %27, i64 0
%32 = insertelement <2 x double> %31, double %29, i64 1
%33 = insertelement <2 x double> poison, double %28, i64 0
%34 = insertelement <2 x double> %33, double %30, i64 1
%35 = fdiv <2 x double> %32, %34
%36 = extractelement <2 x double> %35, i64 0
%37 = extractelement <2 x double> %35, i64 1
%38 = fcmp oeq double %36, %37
%39 = load double, double* %3
%40 = load double, double* %7
br i1 %38, label %41, label %56
41: ; preds = %0
%42 = fdiv double %39, %40
%43 = fcmp oeq double %36, %42
br i1 %43, label %44, label %56
44: ; preds = %41
%45 = load double, double* %4
%46 = load double, double* %8
%47 = fdiv double %45, %46
%48 = fcmp oeq double %36, %47
br i1 %48, label %62, label %49
49: ; preds = %44
%50 = fcmp oeq double %37, %42
br i1 %50, label %51, label %56
51: ; preds = %49
%52 = load double, double* %4
%53 = load double, double* %8
%54 = fdiv double %52, %53
%55 = fcmp une double %36, %54
br i1 %55, label %62, label %56
56: ; preds = %0, %41, %51, %49
%57 = fmul double %29, %30
%58 = call double @llvm.fmuladd.f64(double %27, double %28, double %57)
%59 = call double @llvm.fmuladd.f64(double %39, double %40, double %58)
%60 = fcmp oeq double %59, 0.000000e+00
%61 = select i1 %60, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @str.9, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @str.8, i64 0, i64 0)
br label %62
62: ; preds = %56, %51, %44
%63 = phi i8* [ getelementptr inbounds ([28 x i8], [28 x i8]* @str.11, i64 0, i64 0), %44 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.10, i64 0, i64 0), %51 ], [ %61, %56 ]
%64 = call i32 @puts(i8* dereferenceable(1) %63)
ret i32 0
}