#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 acosh(int);
int cos(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
int main() {
  double a, x, G, F, Y;
  printf("Введите значение переменной а = ");
  scanf("%lf", &a);
  printf("Введите значение переменной x = ");
  scanf("%lf", &x);
  G = (4 * a * a + 3 * a * x + 10 * x * x) /
      (15 * a * a + 29 * a * x + 12 * x * x);
  printf("%s%f\n", "G = ", G);
  F = 1 / (cos(5 * a * a + 14 * a * x - 3 * x * x));
  printf("%s%f\n", "F = ", F);
  Y = acosh(9 * a * a + 42 * a * x + 40 * x * x + 1);
  printf("%s%f\n", "Y = ", Y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
movsd  0xec5(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  0xe7b(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe91(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe6f(%rip),%xmm2
mulsd  -0x10(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
movsd  0xe55(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xe33(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xead(%rip),%rdi
lea    0xeac(%rip),%rsi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xdee(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  0xdd4(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdb2(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1060 <cos@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
lea    0xe1a(%rip),%rdi
lea    0xe1e(%rip),%rsi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xd43(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  0xd29(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd07(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xce5(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <acosh@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
lea    0xda0(%rip),%rdi
lea    0xda9(%rip),%rsi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
lea    0xf1b(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf46(%rip),%rbx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xf36(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsd  0x10(%rsp),%xmm1
unpcklpd %xmm1,%xmm1
movapd 0xe69(%rip),%xmm0
mulpd  %xmm1,%xmm0
mulpd  %xmm1,%xmm0
mulpd  0xe69(%rip),%xmm1
movsd  0x8(%rsp),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd 0xe5f(%rip),%xmm0
mulpd  %xmm2,%xmm0
mulpd  %xmm2,%xmm0
addpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
divsd  %xmm1,%xmm0
lea    0xf01(%rip),%rbx
lea    0xf00(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0xe31(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  0xe29(%rip),%xmm0
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe1b(%rip),%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
call   1060 <cos@plt>
lea    0x1(%rax),%ecx
cmp    $0x3,%ecx
cmovae %ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
lea    0xe9b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0xddf(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  0xdd7(%rip),%xmm0
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xdc9(%rip),%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
addsd  0xdbd(%rip),%xmm1
cvttsd2si %xmm1,%edi
call   1040 <acosh@plt>
lea    0xe3e(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [59 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\BF\D0\B5\D1\80\D0\B5\D0\BC\D0\B5\D0\BD\D0\BD\D0\BE\D0\B9 \D0\B0 = \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [58 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\BF\D0\B5\D1\80\D0\B5\D0\BC\D0\B5\D0\BD\D0\BD\D0\BE\D0\B9 x = \00"
@.str.3 = [6 x i8] c"%s%f\0A\00"
@.str.4 = [5 x i8] c"G = \00"
@.str.5 = [5 x i8] c"F = \00"
@.str.6 = [5 x i8] c"Y = \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 ([59 x i8], [59 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 ([58 x i8], [58 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* %2
%12 = fmul double 4.000000e+00, %11
%13 = load double, double* %2
%14 = load double, double* %2
%15 = fmul double 3.000000e+00, %14
%16 = load double, double* %3
%17 = fmul double %15, %16
%18 = call double @llvm.fmuladd.f64(double %12, double %13, double %17)
%19 = load double, double* %3
%20 = fmul double 1.000000e+01, %19
%21 = load double, double* %3
%22 = call double @llvm.fmuladd.f64(double %20, double %21, double %18)
%23 = load double, double* %2
%24 = fmul double 1.500000e+01, %23
%25 = load double, double* %2
%26 = load double, double* %2
%27 = fmul double 2.900000e+01, %26
%28 = load double, double* %3
%29 = fmul double %27, %28
%30 = call double @llvm.fmuladd.f64(double %24, double %25, double %29)
%31 = load double, double* %3
%32 = fmul double 1.200000e+01, %31
%33 = load double, double* %3
%34 = call double @llvm.fmuladd.f64(double %32, double %33, double %30)
%35 = fdiv double %22, %34
store double %35, double* %4
%36 = load double, double* %4
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %36)
%38 = load double, double* %2
%39 = fmul double 5.000000e+00, %38
%40 = load double, double* %2
%41 = load double, double* %2
%42 = fmul double 1.400000e+01, %41
%43 = load double, double* %3
%44 = fmul double %42, %43
%45 = call double @llvm.fmuladd.f64(double %39, double %40, double %44)
%46 = load double, double* %3
%47 = fmul double 3.000000e+00, %46
%48 = load double, double* %3
%49 = fneg double %47
%50 = call double @llvm.fmuladd.f64(double %49, double %48, double %45)
%51 = fptosi double %50 to i32
%52 = call i32 @cos(i32 %51)
%53 = sdiv i32 1, %52
%54 = sitofp i32 %53 to double
store double %54, double* %5
%55 = load double, double* %5
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %55)
%57 = load double, double* %2
%58 = fmul double 9.000000e+00, %57
%59 = load double, double* %2
%60 = load double, double* %2
%61 = fmul double 4.200000e+01, %60
%62 = load double, double* %3
%63 = fmul double %61, %62
%64 = call double @llvm.fmuladd.f64(double %58, double %59, double %63)
%65 = load double, double* %3
%66 = fmul double 4.000000e+01, %65
%67 = load double, double* %3
%68 = call double @llvm.fmuladd.f64(double %66, double %67, double %64)
%69 = fadd double %68, 1.000000e+00
%70 = fptosi double %69 to i32
%71 = call double @acosh(i32 %70)
store double %71, double* %6
%72 = load double, double* %6
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), double %72)
ret i32 0
}

LLVM IR (-O2):
@.str = [59 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\BF\D0\B5\D1\80\D0\B5\D0\BC\D0\B5\D0\BD\D0\BD\D0\BE\D0\B9 \D0\B0 = \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [58 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5 \D0\BF\D0\B5\D1\80\D0\B5\D0\BC\D0\B5\D0\BD\D0\BD\D0\BE\D0\B9 x = \00"
@.str.3 = [6 x i8] c"%s%f\0A\00"
@.str.4 = [5 x i8] c"G = \00"
@.str.5 = [5 x i8] c"F = \00"
@.str.6 = [5 x i8] c"Y = \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 ([59 x i8], [59 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 ([58 x i8], [58 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* %1
%10 = load double, double* %2
%11 = insertelement <2 x double> poison, double %9, i64 0
%12 = shufflevector <2 x double> %11, <2 x double> poison, <2 x i32> zeroinitializer
%13 = fmul <2 x double> %12, <double 4.000000e+00, double 1.500000e+01>
%14 = fmul <2 x double> %12, <double 3.000000e+00, double 2.900000e+01>
%15 = insertelement <2 x double> poison, double %10, i64 0
%16 = shufflevector <2 x double> %15, <2 x double> poison, <2 x i32> zeroinitializer
%17 = fmul <2 x double> %14, %16
%18 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %13, <2 x double> %12, <2 x double> %17)
%19 = fmul <2 x double> %16, <double 1.000000e+01, double 1.200000e+01>
%20 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %19, <2 x double> %16, <2 x double> %18)
%21 = extractelement <2 x double> %20, i64 0
%22 = extractelement <2 x double> %20, i64 1
%23 = fdiv double %21, %22
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %23)
%25 = load double, double* %1
%26 = fmul double %25, 5.000000e+00
%27 = fmul double %25, 1.400000e+01
%28 = load double, double* %2
%29 = fmul double %27, %28
%30 = call double @llvm.fmuladd.f64(double %26, double %25, double %29)
%31 = fmul double %28, -3.000000e+00
%32 = call double @llvm.fmuladd.f64(double %31, double %28, double %30)
%33 = fptosi double %32 to i32
%34 = call i32 @cos(i32 %33)
%35 = add i32 %34, 1
%36 = icmp ult i32 %35, 3
%37 = select i1 %36, i32 %34, i32 0
%38 = sitofp i32 %37 to double
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %38)
%40 = load double, double* %1
%41 = fmul double %40, 9.000000e+00
%42 = fmul double %40, 4.200000e+01
%43 = load double, double* %2
%44 = fmul double %42, %43
%45 = call double @llvm.fmuladd.f64(double %41, double %40, double %44)
%46 = fmul double %43, 4.000000e+01
%47 = call double @llvm.fmuladd.f64(double %46, double %43, double %45)
%48 = fadd double %47, 1.000000e+00
%49 = fptosi double %48 to i32
%50 = call double @acosh(i32 %49)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), double %50)
ret i32 0
}