#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 cosh(int);
double log(int);
int pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
int main() {
  double x, a, G, F, Y;
  printf("Введите x:");
  scanf("%lf", &x);
  printf("Введите a:");
  scanf("%lf", &a);
  G = (-10 * (18 * pow(a, 2) + 11 * a * x - 24 * pow(x, 2))) /
      (-pow(a, 2) + a * x + 6 * pow(x, 2));
  printf("G=%f\n\n", G);
  printf("Введите x:");
  scanf("%lf", &x);
  printf("Введите a:");
  scanf("%lf", &a);
  F = cosh(21 * pow(a, 2) - 34 * a * x + 9 * pow(x, 2));
  printf("F=%f\n\n", F);
  printf("Введите x:");
  scanf("%lf", &x);
  printf("Введите a:");
  scanf("%lf", &a);
  Y = log(3 * pow(a, 2) - 25 * a * x + 8 * pow(x, 2) + 1) / log(10);
  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    0xec2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea8(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x12,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xe67(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x60(%rbp),%xmm1
imul   $0x18,%eax,%eax
cvtsi2sd %eax,%xmm0
subsd  %xmm0,%xmm1
movsd  0xe21(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%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
movsd  -0x50(%rbp),%xmm0
imul   $0x6,%eax,%eax
cvtsi2sd %eax,%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xde7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdb5(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd97(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x15,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xd46(%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,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x48(%rbp),%xmm0
imul   $0x9,%eax,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <cosh@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
lea    0xd26(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xced(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xce1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xccf(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x3,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xc76(%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
shl    $0x3,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  0xc19(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1060 <log@plt>
movsd  %xmm0,-0x38(%rbp)
mov    $0xa,%edi
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
lea    0xc3e(%rip),%rdi
mov    $0x1,%al
call   1040 <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    0xec4(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec5(%rip),%rbx
lea    0x10(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
lea    0xeb2(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
add    %eax,%eax
lea    (%rax,%rax,8),%eax
cvtsi2sd %eax,%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  0xe33(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
mov    $0x2,%edi
call   1070 <pow@plt>
shl    $0x3,%eax
lea    (%rax,%rax,2),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xe00(%rip),%xmm1
movsd  %xmm1,(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
neg    %eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x18(%rsp)
mov    $0x2,%edi
call   1070 <pow@plt>
add    %eax,%eax
lea    (%rax,%rax,2),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0x18(%rsp),%xmm1
movsd  (%rsp),%xmm0
divsd  %xmm1,%xmm0
lea    0xde4(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x8(%rsp),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  0xd42(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
mov    $0x2,%edi
call   1070 <pow@plt>
lea    (%rax,%rax,8),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  (%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <cosh@plt>
lea    0xd53(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
lea    (%rax,%rax,2),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x8(%rsp),%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  0xcb5(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
mov    $0x2,%edi
call   1070 <pow@plt>
shl    $0x3,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  (%rsp),%xmm0
addsd  0xc8f(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1060 <log@plt>
movsd  %xmm0,(%rsp)
mov    $0xa,%edi
call   1060 <log@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
lea    0xca5(%rip),%rdi
movapd %xmm1,%xmm0
mov    $0x1,%al
call   1040 <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 18, %12
%14 = sitofp i32 %13 to double
%15 = load double, double* %3
%16 = fmul double 1.100000e+01, %15
%17 = load double, double* %2
%18 = call double @llvm.fmuladd.f64(double %16, double %17, double %14)
%19 = load double, double* %2
%20 = call i32 @pow(double %19, i32 2)
%21 = mul nsw i32 24, %20
%22 = sitofp i32 %21 to double
%23 = fsub double %18, %22
%24 = fmul double -1.000000e+01, %23
%25 = load double, double* %3
%26 = call i32 @pow(double %25, i32 2)
%27 = sub nsw i32 0, %26
%28 = sitofp i32 %27 to double
%29 = load double, double* %3
%30 = load double, double* %2
%31 = call double @llvm.fmuladd.f64(double %29, double %30, double %28)
%32 = load double, double* %2
%33 = call i32 @pow(double %32, i32 2)
%34 = mul nsw i32 6, %33
%35 = sitofp i32 %34 to double
%36 = fadd double %31, %35
%37 = fdiv double %24, %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 21, %45
%47 = sitofp i32 %46 to double
%48 = load double, double* %3
%49 = fmul double 3.400000e+01, %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 = mul nsw i32 9, %54
%56 = sitofp i32 %55 to double
%57 = fadd double %52, %56
%58 = fptosi double %57 to i32
%59 = call double @cosh(i32 %58)
store double %59, double* %5
%60 = load double, double* %5
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %60)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%63 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%65 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%66 = load double, double* %3
%67 = call i32 @pow(double %66, i32 2)
%68 = mul nsw i32 3, %67
%69 = sitofp i32 %68 to double
%70 = load double, double* %3
%71 = fmul double 2.500000e+01, %70
%72 = load double, double* %2
%73 = fneg double %71
%74 = call double @llvm.fmuladd.f64(double %73, double %72, double %69)
%75 = load double, double* %2
%76 = call i32 @pow(double %75, i32 2)
%77 = mul nsw i32 8, %76
%78 = sitofp i32 %77 to double
%79 = fadd double %74, %78
%80 = fadd double %79, 1.000000e+00
%81 = fptosi double %80 to i32
%82 = call double @log(i32 %81)
%83 = call double @log(i32 10)
%84 = fdiv double %82, %83
store double %84, double* %6
%85 = load double, double* %6
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %85)
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, 18
%12 = sitofp i32 %11 to double
%13 = load double, double* %2
%14 = fmul double %13, 1.100000e+01
%15 = load double, double* %1
%16 = call double @llvm.fmuladd.f64(double %14, double %15, double %12)
%17 = call i32 @pow(double %15, i32 2)
%18 = mul nsw i32 %17, 24
%19 = sitofp i32 %18 to double
%20 = fsub double %16, %19
%21 = fmul double %20, -1.000000e+01
%22 = load double, double* %2
%23 = call i32 @pow(double %22, i32 2)
%24 = sub nsw i32 0, %23
%25 = sitofp i32 %24 to double
%26 = load double, double* %2
%27 = load double, double* %1
%28 = call double @llvm.fmuladd.f64(double %26, double %27, double %25)
%29 = call i32 @pow(double %27, i32 2)
%30 = mul nsw i32 %29, 6
%31 = sitofp i32 %30 to double
%32 = fadd double %28, %31
%33 = fdiv double %21, %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, 21
%42 = sitofp i32 %41 to double
%43 = load double, double* %2
%44 = load double, double* %1
%45 = fmul double %43, -3.400000e+01
%46 = call double @llvm.fmuladd.f64(double %45, double %44, double %42)
%47 = call i32 @pow(double %44, i32 2)
%48 = mul nsw i32 %47, 9
%49 = sitofp i32 %48 to double
%50 = fadd double %46, %49
%51 = fptosi double %50 to i32
%52 = call double @cosh(i32 %51)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %52)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%55 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%57 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%58 = load double, double* %2
%59 = call i32 @pow(double %58, i32 2)
%60 = mul nsw i32 %59, 3
%61 = sitofp i32 %60 to double
%62 = load double, double* %2
%63 = load double, double* %1
%64 = fmul double %62, -2.500000e+01
%65 = call double @llvm.fmuladd.f64(double %64, double %63, double %61)
%66 = call i32 @pow(double %63, i32 2)
%67 = shl nsw i32 %66, 3
%68 = sitofp i32 %67 to double
%69 = fadd double %65, %68
%70 = fadd double %69, 1.000000e+00
%71 = fptosi double %70 to i32
%72 = call double @log(i32 %71)
%73 = call double @log(i32 10)
%74 = fdiv double %72, %73
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %74)
ret i32 0
}