#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(int);
int pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
double sin(int);
int main() {
  double x, a, G, F, Y;
  printf("Введите x:");
  scanf("%lf", &x);
  printf("Введите a:");
  scanf("%lf", &a);
  G = (5 * (-2 * pow(a, 2) + a * x + 3 * pow(x, 2)) /
       (10 * pow(a, 2) + 11 * a * x + 3 * pow(x, 2)));
  printf("G=%f\n\n", G);
  printf("Введите x:");
  scanf("%lf", &x);
  printf("Введите a:");
  scanf("%lf", &a);
  F = sin(10 * pow(a, 2) - 7 * a * x + pow(x, 2));
  printf("F=%f\n\n", F);
  printf("Введите x:");
  scanf("%lf", &x);
  printf("Введите a:");
  scanf("%lf", &a);
  Y = atan(45 * pow(a, 2) + 79 * a * x + 30 * pow(x, 2));
  printf("Y=%f\n\n", Y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0xfffffffe,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x58(%rbp),%xmm1
imul   $0x3,%eax,%eax
cvtsi2sd %eax,%xmm0
addsd  %xmm0,%xmm1
movsd  0xe26(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0xa,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xdf7(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
imul   $0x3,%eax,%eax
cvtsi2sd %eax,%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xddf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdad(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd8f(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0xa,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xd3e(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x40(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
lea    0xd21(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xce8(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xcdc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcca(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x2d,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xc71(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x38(%rbp),%xmm0
imul   $0x1e,%eax,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1050 <atan@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
lea    0xc77(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x20,%rsp
lea    0xebc(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xebd(%rip),%rbx
lea    0x10(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <scanf@plt>
lea    0xeaa(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rsp,%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <scanf@plt>
movsd  (%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
add    %eax,%eax
neg    %eax
cvtsi2sd %eax,%xmm1
movsd  0x10(%rsp),%xmm0
movsd  (%rsp),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
mov    $0x2,%edi
call   1070 <pow@plt>
lea    (%rax,%rax,2),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x8(%rsp),%xmm0
mulsd  0xe0a(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
add    %eax,%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  (%rsp),%xmm2
mulsd  0xde4(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x18(%rsp)
mov    $0x2,%edi
call   1070 <pow@plt>
lea    (%rax,%rax,2),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0x18(%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
divsd  %xmm1,%xmm0
lea    0xde5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <scanf@plt>
movsd  (%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
add    %eax,%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  (%rsp),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  0xd4e(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
mov    $0x2,%edi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
lea    0xd58(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <scanf@plt>
movsd  (%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
lea    (%rax,%rax,8),%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  (%rsp),%xmm2
mulsd  0xcc7(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
mov    $0x2,%edi
call   1070 <pow@plt>
mov    %eax,%ecx
shl    $0x5,%ecx
sub    %eax,%ecx
sub    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
addsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <atan@plt>
lea    0xcc1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

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