#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 */
double atan(double const);
double log(int);
int pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
int main() {
  double G, F, Y, a, x;
  const double PI = 3.14;
  printf("Введите x \n");
  scanf("%lf", &x);
  printf("Введите a \n");
  scanf("%lf", &a);
  G = -(16 * ((pow(a, 2) + 24 * a * x - 27 * (pow(x, 2))))) /
      (45 * (pow(a, 2)) - 29 * a * x + 4 * (pow(x, 2)));
  F = -(atan(PI * (10 * (a * a) + 3 * a * x - 30 * (x * x))));
  Y = -(log(2 * pow(a, 2) + 19 * a * x + 9 * pow(x, 2) + 1)) / log(10);
  printf("G = %lf \n", G);
  printf("F = %lf \n", F);
  printf("Y = %lf \n", Y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xea9(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebc(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1050 <scanf@plt>
movsd  -0x28(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe7d(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x60(%rbp),%xmm1
imul   $0x1b,%eax,%eax
cvtsi2sd %eax,%xmm0
subsd  %xmm0,%xmm1
movsd  0xe37(%rip),%xmm0
mulsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x2d,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xdf1(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
shl    $0x2,%eax
cvtsi2sd %eax,%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  0xd7c(%rip),%xmm1
mulsd  -0x28(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
movsd  0xd62(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x30(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
movsd  0xd40(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd28(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <atan@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xcdd(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x48(%rbp),%xmm0
imul   $0x9,%eax,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  0xc97(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1060 <log@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    $0xa,%edi
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
lea    0xcb9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
lea    0xcb0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
lea    0xca7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xee8(%rip),%rbx
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  0xe40(%rip),%xmm2
movsd  0x18(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x10(%rsp)
mov    $0x2,%edi
call   1080 <pow@plt>
lea    (%rax,%rax,8),%eax
lea    (%rax,%rax,2),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xe0b(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
lea    (%rax,%rax,8),%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x8(%rsp),%xmm2
movsd  0x18(%rsp),%xmm0
mulsd  0xddc(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x20(%rsp)
mov    $0x2,%edi
call   1080 <pow@plt>
shl    $0x2,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x20(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm1
movapd %xmm1,%xmm2
mulsd  0xd9a(%rip),%xmm1
mulsd  %xmm2,%xmm2
movsd  0x18(%rsp),%xmm0
mulsd  0xd90(%rip),%xmm2
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm0
mulsd  0xd88(%rip),%xmm0
addsd  %xmm1,%xmm2
addsd  %xmm2,%xmm0
mulsd  0xd80(%rip),%xmm0
call   1050 <atan@plt>
xorpd  0xd93(%rip),%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
add    %eax,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  0xd4e(%rip),%xmm2
movsd  0x18(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x20(%rsp)
mov    $0x2,%edi
call   1080 <pow@plt>
lea    (%rax,%rax,8),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x20(%rsp),%xmm0
addsd  0xd20(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1070 <log@plt>
xorpd  0xd1f(%rip),%xmm0
movapd %xmm0,0x20(%rsp)
mov    $0xa,%edi
call   1070 <log@plt>
movapd 0x20(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,0x20(%rsp)
lea    0xd0c(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd02(%rip),%rdi
movaps 0x30(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xcf9(%rip),%rdi
movaps 0x20(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 x \0A\00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [19 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 a \0A\00"
@.str.3 = [10 x i8] c"G = %lf \0A\00"
@.str.4 = [10 x i8] c"F = %lf \0A\00"
@.str.5 = [10 x i8] c"Y = %lf \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
store i32 0, i32* %1
store double 3.140000e+00, double* %7
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %6)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %5)
%12 = load double, double* %5
%13 = call i32 @pow(double %12, i32 2)
%14 = sitofp i32 %13 to double
%15 = load double, double* %5
%16 = fmul double 2.400000e+01, %15
%17 = load double, double* %6
%18 = call double @llvm.fmuladd.f64(double %16, double %17, double %14)
%19 = load double, double* %6
%20 = call i32 @pow(double %19, i32 2)
%21 = mul nsw i32 27, %20
%22 = sitofp i32 %21 to double
%23 = fsub double %18, %22
%24 = fmul double 1.600000e+01, %23
%25 = fneg double %24
%26 = load double, double* %5
%27 = call i32 @pow(double %26, i32 2)
%28 = mul nsw i32 45, %27
%29 = sitofp i32 %28 to double
%30 = load double, double* %5
%31 = fmul double 2.900000e+01, %30
%32 = load double, double* %6
%33 = fneg double %31
%34 = call double @llvm.fmuladd.f64(double %33, double %32, double %29)
%35 = load double, double* %6
%36 = call i32 @pow(double %35, i32 2)
%37 = mul nsw i32 4, %36
%38 = sitofp i32 %37 to double
%39 = fadd double %34, %38
%40 = fdiv double %25, %39
store double %40, double* %2
%41 = load double, double* %5
%42 = load double, double* %5
%43 = fmul double %41, %42
%44 = load double, double* %5
%45 = fmul double 3.000000e+00, %44
%46 = load double, double* %6
%47 = fmul double %45, %46
%48 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %43, double %47)
%49 = load double, double* %6
%50 = load double, double* %6
%51 = fmul double %49, %50
%52 = call double @llvm.fmuladd.f64(double -3.000000e+01, double %51, double %48)
%53 = fmul double 3.140000e+00, %52
%54 = call double @atan(double %53)
%55 = fneg double %54
store double %55, double* %3
%56 = load double, double* %5
%57 = call i32 @pow(double %56, i32 2)
%58 = mul nsw i32 2, %57
%59 = sitofp i32 %58 to double
%60 = load double, double* %5
%61 = fmul double 1.900000e+01, %60
%62 = load double, double* %6
%63 = call double @llvm.fmuladd.f64(double %61, double %62, double %59)
%64 = load double, double* %6
%65 = call i32 @pow(double %64, i32 2)
%66 = mul nsw i32 9, %65
%67 = sitofp i32 %66 to double
%68 = fadd double %63, %67
%69 = fadd double %68, 1.000000e+00
%70 = fptosi double %69 to i32
%71 = call double @log(i32 %70)
%72 = fneg double %71
%73 = call double @log(i32 10)
%74 = fdiv double %72, %73
store double %74, double* %4
%75 = load double, double* %2
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %75)
%77 = load double, double* %3
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), double %77)
%79 = load double, double* %4
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), double %79)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"%lf\00"
@.str.3 = [10 x i8] c"G = %lf \0A\00"
@.str.4 = [10 x i8] c"F = %lf \0A\00"
@.str.5 = [10 x i8] c"Y = %lf \0A\00"
@str = [18 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 x \00"
@str.6 = [18 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 a \00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.6, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%9 = load double, double* %1
%10 = call i32 @pow(double %9, i32 2)
%11 = sitofp i32 %10 to double
%12 = load double, double* %1
%13 = fmul double %12, 2.400000e+01
%14 = load double, double* %2
%15 = call double @llvm.fmuladd.f64(double %13, double %14, double %11)
%16 = call i32 @pow(double %14, i32 2)
%17 = mul nsw i32 %16, 27
%18 = sitofp i32 %17 to double
%19 = fsub double %15, %18
%20 = fmul double %19, -1.600000e+01
%21 = load double, double* %1
%22 = call i32 @pow(double %21, i32 2)
%23 = mul nsw i32 %22, 45
%24 = sitofp i32 %23 to double
%25 = load double, double* %1
%26 = load double, double* %2
%27 = fmul double %25, -2.900000e+01
%28 = call double @llvm.fmuladd.f64(double %27, double %26, double %24)
%29 = call i32 @pow(double %26, i32 2)
%30 = shl nsw i32 %29, 2
%31 = sitofp i32 %30 to double
%32 = fadd double %28, %31
%33 = fdiv double %20, %32
%34 = load double, double* %1
%35 = fmul double %34, %34
%36 = fmul double %34, 3.000000e+00
%37 = load double, double* %2
%38 = fmul double %36, %37
%39 = call double @llvm.fmuladd.f64(double %35, double 1.000000e+01, double %38)
%40 = fmul double %37, %37
%41 = call double @llvm.fmuladd.f64(double %40, double -3.000000e+01, double %39)
%42 = fmul double %41, 3.140000e+00
%43 = call double @atan(double %42)
%44 = fneg double %43
%45 = load double, double* %1
%46 = call i32 @pow(double %45, i32 2)
%47 = shl nsw i32 %46, 1
%48 = sitofp i32 %47 to double
%49 = load double, double* %1
%50 = fmul double %49, 1.900000e+01
%51 = load double, double* %2
%52 = call double @llvm.fmuladd.f64(double %50, double %51, double %48)
%53 = call i32 @pow(double %51, i32 2)
%54 = mul nsw i32 %53, 9
%55 = sitofp i32 %54 to double
%56 = fadd double %52, %55
%57 = fadd double %56, 1.000000e+00
%58 = fptosi double %57 to i32
%59 = call double @log(i32 %58)
%60 = fneg double %59
%61 = call double @log(i32 10)
%62 = fdiv double %60, %61
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %33)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), double %44)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), double %62)
ret i32 0
}