#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 *, double);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a, b, c, d, e, f;
  double x, y;
  scanf("%i", &a);
  scanf("%i", &b);
  scanf("%i", &c);
  scanf("%i", &d);
  scanf("%i", &e);
  scanf("%i", &f);
  double divisor = a * e - b * d;
  x = (c * e - b * f) / divisor;
  y = (a * f - c * d) / divisor;
  printf("O VALOR DE X E = %0.2f\n", x);
  printf("O VALOR DE Y E = %0.2f\n", y);
  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
call   1040 <scanf@plt>
lea    0xeba(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeaa(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe9a(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe8a(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe7a(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
imul   -0x18(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x14(%rbp),%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%eax
imul   -0x18(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x1c(%rbp),%eax
mov    -0x10(%rbp),%ecx
imul   -0x14(%rbp),%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
lea    0xe13(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xe1a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xed4(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
mov    0x4(%rsp),%ecx
mov    %ecx,%edx
imul   %eax,%edx
mov    0x10(%rsp),%esi
mov    0x8(%rsp),%ebx
mov    %ebx,%edi
imul   %esi,%edi
sub    %edi,%edx
cvtsi2sd %edx,%xmm1
mov    0xc(%rsp),%edx
imul   %edx,%ecx
imul   %ebx,%edx
mov    (%rsp),%edi
imul   %edi,%esi
sub    %esi,%ecx
cvtsi2sd %ecx,%xmm0
divsd  %xmm1,%xmm0
imul   %eax,%edi
sub    %edx,%edi
cvtsi2sd %edi,%xmm2
divsd  %xmm1,%xmm2
movsd  %xmm2,0x18(%rsp)
lea    0xe37(%rip),%rdi
call   1030 <printf@plt>
lea    0xe43(%rip),%rdi
movsd  0x18(%rsp),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%i\00"
@.str.1 = [24 x i8] c"O VALOR DE X E = %0.2f\0A\00"
@.str.2 = [24 x i8] c"O VALOR DE Y E = %0.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
store i32 0, i32* %1
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%17 = load i32, i32* %2
%18 = load i32, i32* %6
%19 = mul nsw i32 %17, %18
%20 = load i32, i32* %3
%21 = load i32, i32* %5
%22 = mul nsw i32 %20, %21
%23 = sub nsw i32 %19, %22
%24 = sitofp i32 %23 to double
store double %24, double* %10
%25 = load i32, i32* %4
%26 = load i32, i32* %6
%27 = mul nsw i32 %25, %26
%28 = load i32, i32* %3
%29 = load i32, i32* %7
%30 = mul nsw i32 %28, %29
%31 = sub nsw i32 %27, %30
%32 = sitofp i32 %31 to double
%33 = load double, double* %10
%34 = fdiv double %32, %33
store double %34, double* %8
%35 = load i32, i32* %2
%36 = load i32, i32* %7
%37 = mul nsw i32 %35, %36
%38 = load i32, i32* %4
%39 = load i32, i32* %5
%40 = mul nsw i32 %38, %39
%41 = sub nsw i32 %37, %40
%42 = sitofp i32 %41 to double
%43 = load double, double* %10
%44 = fdiv double %42, %43
store double %44, double* %9
%45 = load double, double* %8
%46 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), double %45)
%47 = load double, double* %9
%48 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), double %47)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%i\00"
@.str.1 = [24 x i8] c"O VALOR DE X E = %0.2f\0A\00"
@.str.2 = [24 x i8] c"O VALOR DE Y E = %0.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%19 = load i32, i32* %1
%20 = load i32, i32* %5
%21 = mul nsw i32 %20, %19
%22 = load i32, i32* %2
%23 = load i32, i32* %4
%24 = mul nsw i32 %23, %22
%25 = sub nsw i32 %21, %24
%26 = sitofp i32 %25 to double
%27 = load i32, i32* %3
%28 = mul nsw i32 %27, %20
%29 = load i32, i32* %6
%30 = mul nsw i32 %29, %22
%31 = sub nsw i32 %28, %30
%32 = sitofp i32 %31 to double
%33 = fdiv double %32, %26
%34 = mul nsw i32 %29, %19
%35 = mul nsw i32 %27, %23
%36 = sub nsw i32 %34, %35
%37 = sitofp i32 %36 to double
%38 = fdiv double %37, %26
%39 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), double %33)
%40 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), double %38)
ret i32 0
}