#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 *, ...);
int main() {
  double x, a, d, r, p, G, F, Y, x_min = 0, x_max = 0;
  int n = 1, steps;
  printf("Если хотите вычислить G нажмите 1, если хотите вычислить F нажмите "
         "2, если хотите вычислить Y нажмите 3, выход 4\n");
  printf("Сделайте свой выбор:");
  scanf("%d", &n);
  while ((n < 4) & (n > 0)) {
    printf("Введите границы x\nот:\n");
    scanf("%lf", &x_min);
    printf("до:\n");
    scanf("%lf", &x_max);
    printf("Введите a:");
    scanf("%lf", &a);
    printf("Введите шаг:\n");
    scanf("%d", &steps);
    switch (n) {
    case 1:
      for (x = x_min; x <= x_max;) {
        d = (-pow(a, 2) + a * x + 6 * pow(x, 2));
        if (d == 0) {
          printf("Введите другие значения для x и a");
          continue;
        }
        G = (-10 * (18 * pow(a, 2) + 11 * a * x - 24 * pow(x, 2))) / d;
        printf("G=%f\n\n", G);
        x += (x_max + x_min) / (steps - 1);
      }
      break;
    case 2:
      for (x = x_min; x <= x_max;) {
        r = cosh(21 * pow(a, 2) - 34 * a * x + 9 * pow(x, 2));
        if (r == 0) {
          printf("Введите другие значения для x и a");
          continue;
        }
        F = cosh(21 * pow(a, 2) - 34 * a * x + 9 * pow(x, 2));
        printf("F=%f\n\n", F);
        x += (x_max + x_min) / (steps - 1);
      }
      break;
    case 3:
      for (x = x_min; x <= x_max;) {
        p = log(10);
        if (p == 0) {
          printf("Введите другие значения для x и a");
          continue;
        }
        Y = log(3 * pow(a, 2) - 25 * a * x + 8 * pow(x, 2) + 1) / log(10);
        printf("Y=%f\n\n", Y);
        x += (x_max + x_min) / (steps - 1);
      }
      break;
    default:
      printf("Вы выбрали неправильный вариант");
    }
    printf("Если хотите вычислить G нажмите 1, если хотите вычислить F нажмите "
           "2, если хотите вычислить Y нажмите 3, выход 4\n");
    printf("Сделайте свой выбор:\n");
    scanf("%d", &n);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x1,-0x5c(%rbp)
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf5f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf77(%rip),%rdi
lea    -0x5c(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cmpl   $0x4,-0x5c(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0x5c(%rbp)
setg   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     16d9 <main+0x589>
lea    0xf44(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x65(%rbp)
call   1040 <printf@plt>
mov    -0x65(%rbp),%al
lea    0xf57(%rip),%rdi
mov    %rdi,-0x70(%rbp)
lea    -0x50(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x65(%rbp),%al
lea    0xf44(%rip),%rdi
call   1040 <printf@plt>
mov    -0x70(%rbp),%rdi
mov    -0x65(%rbp),%al
lea    -0x58(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x65(%rbp),%al
lea    0xf2c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x70(%rbp),%rdi
mov    -0x65(%rbp),%al
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x65(%rbp),%al
lea    0xf1f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x65(%rbp),%al
lea    0xec9(%rip),%rdi
lea    -0x60(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x5c(%rbp),%eax
mov    %eax,-0x64(%rbp)
sub    $0x1,%eax
je     1289 <main+0x139>
jmp    1267 <main+0x117>
mov    -0x64(%rbp),%eax
sub    $0x2,%eax
je     13cf <main+0x27f>
jmp    1278 <main+0x128>
mov    -0x64(%rbp),%eax
sub    $0x3,%eax
je     1555 <main+0x405>
jmp    1698 <main+0x548>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     13ca <main+0x27a>
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,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x78(%rbp),%xmm0
imul   $0x6,%eax,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1326 <main+0x1d6>
jp     1326 <main+0x1d6>
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1293 <main+0x143>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x12,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xcdc(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x80(%rbp),%xmm1
imul   $0x18,%eax,%eax
cvtsi2sd %eax,%xmm0
subsd  %xmm0,%xmm1
movsd  0xc96(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
lea    0xe11(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x58(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
mov    -0x60(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1293 <main+0x143>
jmp    16a6 <main+0x556>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1550 <main+0x400>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x15,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xc05(%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,-0x88(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x88(%rbp),%xmm0
ff
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
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1497 <main+0x347>
jp     1497 <main+0x347>
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13d9 <main+0x289>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x15,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xb5b(%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,-0x90(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0x90(%rbp),%xmm0
ff
imul   $0x9,%eax,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <cosh@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
lea    0xc92(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x58(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
mov    -0x60(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    13d9 <main+0x289>
jmp    16a6 <main+0x556>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1693 <main+0x543>
mov    $0xa,%edi
call   1060 <log@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    15ad <main+0x45d>
jp     15ad <main+0x45d>
lea    0xbd1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    155f <main+0x40f>
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
imul   $0x3,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xa3d(%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,-0xa0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
movsd  -0xa0(%rbp),%xmm0
ff
shl    $0x3,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  0x9da(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1060 <log@plt>
movsd  %xmm0,-0x98(%rbp)
ff
mov    $0xa,%edi
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
lea    0xb56(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x58(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
mov    -0x60(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    155f <main+0x40f>
jmp    16a6 <main+0x556>
lea    0xb23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x97b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xa4a(%rip),%rdi
lea    -0x5c(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
jmp    11a7 <main+0x57>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movq   $0x0,0x30(%rsp)
movq   $0x0,0x20(%rsp)
movl   $0x1,0x1c(%rsp)
lea    0xf89(%rip),%rdi
call   1030 <puts@plt>
lea    0x1041(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe87(%rip),%rdi
lea    0x1c(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x1c(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x2,%eax
ja     16c7 <main+0x567>
lea    0xe67(%rip),%rbx
lea    0xe5d(%rip),%r12
lea    0xe6f(%rip),%rbp
lea    0xf37(%rip),%r14
lea    0xff4(%rip),%r15
lea    0x1c(%rsp),%r13
jmp    122b <main+0xcb>
nop
lea    0xea2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x1c(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
jae    16c7 <main+0x567>
lea    0xea3(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xdcf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
lea    0x28(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe7c(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
lea    0x3c(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x1c(%rsp),%eax
cmp    $0x3,%eax
je     15a0 <main+0x440>
cmp    $0x2,%eax
je     1430 <main+0x2d0>
cmp    $0x1,%eax
jne    11f0 <main+0x90>
movsd  0x30(%rsp),%xmm1
movsd  0x20(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jb     11fe <main+0x9e>
movsd  %xmm1,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x28(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
neg    %eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  0x28(%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    $0x2,%edi
call   1080 <pow@plt>
add    %eax,%eax
lea    (%rax,%rax,2),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x10(%rsp),%xmm0
ucomisd 0xcf1(%rip),%xmm0
jne    1360 <main+0x200>
jp     1360 <main+0x200>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm0
jae    12e0 <main+0x180>
jmp    11fe <main+0x9e>
nopl   0x0(%rax)
movsd  %xmm0,0x10(%rsp)
movsd  0x28(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
add    %eax,%eax
lea    (%rax,%rax,8),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x28(%rsp),%xmm2
mulsd  0xc88(%rip),%xmm2
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x40(%rsp)
mov    $0x2,%edi
call   1080 <pow@plt>
shl    $0x3,%eax
lea    (%rax,%rax,2),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x40(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xc53(%rip),%xmm1
divsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
lea    0xca6(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
addsd  %xmm0,%xmm1
mov    0x3c(%rsp),%eax
add    $0xffffffff,%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
divsd  %xmm2,%xmm1
movsd  0x8(%rsp),%xmm2
addsd  %xmm1,%xmm2
ucomisd %xmm2,%xmm0
movapd %xmm2,%xmm1
jae    12ce <main+0x16e>
jmp    11fe <main+0x9e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x30(%rsp),%xmm1
movsd  0x20(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jb     11fe <main+0x9e>
movsd  %xmm1,0x8(%rsp)
nopl   0x0(%rax)
movsd  0x28(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,4),%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  0x28(%rsp),%xmm1
mulsd  0xb95(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    $0x2,%edi
call   1080 <pow@plt>
lea    (%rax,%rax,8),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x10(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <cosh@plt>
ucomisd 0xb6e(%rip),%xmm0
jne    14f0 <main+0x390>
jp     14f0 <main+0x390>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm0
jae    1450 <main+0x2f0>
jmp    11fe <main+0x9e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x28(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x28(%rsp),%xmm2
mulsd  0xaf5(%rip),%xmm2
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x10(%rsp)
mov    $0x2,%edi
call   1080 <pow@plt>
lea    (%rax,%rax,8),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x10(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <cosh@plt>
lea    0xb32(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
addsd  %xmm0,%xmm1
mov    0x3c(%rsp),%eax
add    $0xffffffff,%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
divsd  %xmm2,%xmm1
movsd  0x8(%rsp),%xmm2
addsd  %xmm1,%xmm2
ucomisd %xmm2,%xmm0
movapd %xmm2,%xmm1
jae    1446 <main+0x2e6>
jmp    11fe <main+0x9e>
nop
movsd  0x30(%rsp),%xmm1
movsd  0x20(%rsp),%xmm0
movsd  %xmm1,0x8(%rsp)
ucomisd %xmm1,%xmm0
jb     11fe <main+0x9e>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1070 <log@plt>
ucomisd 0xa56(%rip),%xmm0
jne    15f3 <main+0x493>
jp     15f3 <main+0x493>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0x20(%rsp),%xmm0
ucomisd 0x8(%rsp),%xmm0
jae    15c0 <main+0x460>
jmp    11fe <main+0x9e>
movsd  0x28(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
lea    (%rax,%rax,2),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x28(%rsp),%xmm2
mulsd  0x9e5(%rip),%xmm2
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x10(%rsp)
mov    $0x2,%edi
call   1080 <pow@plt>
shl    $0x3,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x10(%rsp),%xmm0
addsd  0x9b7(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1070 <log@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0xa,%edi
call   1070 <log@plt>
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
lea    0xa17(%rip),%rdi
movapd %xmm1,%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
addsd  %xmm0,%xmm1
mov    0x3c(%rsp),%eax
add    $0xffffffff,%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
divsd  %xmm2,%xmm1
movsd  0x8(%rsp),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
ucomisd %xmm2,%xmm0
jae    15c0 <main+0x460>
jmp    11fe <main+0x9e>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [197 x i8] c"\D0\95\D1\81\D0\BB\D0\B8 \D1\85\D0\BE\D1\82\D0\B8\D1\82\D0\B5 \D0\B2\D1\8B\D1\87\D0\B8\D1\81\D0\BB\D0\B8\D1\82\D1\8C G \D0\BD\D0\B0\D0\B6\D0\BC\D0\B8\D1\82\D0\B5 1, \D0\B5\D1\81\D0\BB\D0\B8 \D1\85\D0\BE\D1\82\D0\B8\D1\82\D0\B5 \D0\B2\D1\8B\D1\87\D0\B8\D1\81\D0\BB\D0\B8\D1\82\D1\8C F \D0\BD\D0\B0\D0\B6\D0\BC\D0\B8\D1\82\D0\B5 2, \D0\B5\D1\81\D0\BB\D0\B8 \D1\85\D0\BE\D1\82\D0\B8\D1\82\D0\B5 \D0\B2\D1\8B\D1\87\D0\B8\D1\81\D0\BB\D0\B8\D1\82\D1\8C Y \D0\BD\D0\B0\D0\B6\D0\BC\D0\B8\D1\82\D0\B5 3, \D0\B2\D1\8B\D1\85\D0\BE\D0\B4 4\0A\00"
@.str.1 = [38 x i8] c"\D0\A1\D0\B4\D0\B5\D0\BB\D0\B0\D0\B9\D1\82\D0\B5 \D1\81\D0\B2\D0\BE\D0\B9 \D0\B2\D1\8B\D0\B1\D0\BE\D1\80:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [39 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B3\D1\80\D0\B0\D0\BD\D0\B8\D1\86\D1\8B x\0A\D0\BE\D1\82:\0A\00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [7 x i8] c"\D0\B4\D0\BE:\0A\00"
@.str.6 = [18 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 a:\00"
@.str.7 = [24 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\88\D0\B0\D0\B3:\0A\00"
@.str.8 = [59 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B4\D1\80\D1\83\D0\B3\D0\B8\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F \D0\B4\D0\BB\D1\8F x \D0\B8 a\00"
@.str.9 = [7 x i8] c"G=%f\0A\0A\00"
@.str.10 = [7 x i8] c"F=%f\0A\0A\00"
@.str.11 = [7 x i8] c"Y=%f\0A\0A\00"
@.str.12 = [60 x i8] c"\D0\92\D1\8B \D0\B2\D1\8B\D0\B1\D1\80\D0\B0\D0\BB\D0\B8 \D0\BD\D0\B5\D0\BF\D1\80\D0\B0\D0\B2\D0\B8\D0\BB\D1\8C\D0\BD\D1\8B\D0\B9 \D0\B2\D0\B0\D1\80\D0\B8\D0\B0\D0\BD\D1\82\00"
@.str.13 = [39 x i8] c"\D0\A1\D0\B4\D0\B5\D0\BB\D0\B0\D0\B9\D1\82\D0\B5 \D1\81\D0\B2\D0\BE\D0\B9 \D0\B2\D1\8B\D0\B1\D0\BE\D1\80:\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
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
store double 0.000000e+00, double* %10
store double 0.000000e+00, double* %11
store i32 1, i32* %12
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %12)
br label %17
17: ; preds = %190, %0
%18 = load i32, i32* %12
%19 = icmp slt i32 %18, 4
%20 = zext i1 %19 to i32
%21 = load i32, i32* %12
%22 = icmp sgt i32 %21, 0
%23 = zext i1 %22 to i32
%24 = and i32 %20, %23
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %194
26: ; preds = %17
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %10)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %11)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%32 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %3)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %13)
%35 = load i32, i32* %12
switch i32 %35, label %188 [
i32 1, label %36
i32 2, label %88
i32 3, label %144
]
36: ; preds = %26
%37 = load double, double* %10
store double %37, double* %2
br label %38
38: ; preds = %59, %57, %36
%39 = load double, double* %2
%40 = load double, double* %11
%41 = fcmp ole double %39, %40
br i1 %41, label %42, label %87
42: ; preds = %38
%43 = load double, double* %3
%44 = call i32 @pow(double %43, i32 2)
%45 = sub nsw i32 0, %44
%46 = sitofp i32 %45 to double
%47 = load double, double* %3
%48 = load double, double* %2
%49 = call double @llvm.fmuladd.f64(double %47, double %48, double %46)
%50 = load double, double* %2
%51 = call i32 @pow(double %50, i32 2)
%52 = mul nsw i32 6, %51
%53 = sitofp i32 %52 to double
%54 = fadd double %49, %53
store double %54, double* %4
%55 = load double, double* %4
%56 = fcmp oeq double %55, 0.000000e+00
br i1 %56, label %57, label %59
57: ; preds = %42
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
br label %38
59: ; preds = %42
%60 = load double, double* %3
%61 = call i32 @pow(double %60, i32 2)
%62 = mul nsw i32 18, %61
%63 = sitofp i32 %62 to double
%64 = load double, double* %3
%65 = fmul double 1.100000e+01, %64
%66 = load double, double* %2
%67 = call double @llvm.fmuladd.f64(double %65, double %66, double %63)
%68 = load double, double* %2
%69 = call i32 @pow(double %68, i32 2)
%70 = mul nsw i32 24, %69
%71 = sitofp i32 %70 to double
%72 = fsub double %67, %71
%73 = fmul double -1.000000e+01, %72
%74 = load double, double* %4
%75 = fdiv double %73, %74
store double %75, double* %7
%76 = load double, double* %7
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), double %76)
%78 = load double, double* %11
%79 = load double, double* %10
%80 = fadd double %78, %79
%81 = load i32, i32* %13
%82 = sub nsw i32 %81, 1
%83 = sitofp i32 %82 to double
%84 = fdiv double %80, %83
%85 = load double, double* %2
%86 = fadd double %85, %84
store double %86, double* %2
br label %38
87: ; preds = %38
br label %190
88: ; preds = %26
%89 = load double, double* %10
store double %89, double* %2
br label %90
90: ; preds = %115, %113, %88
%91 = load double, double* %2
%92 = load double, double* %11
%93 = fcmp ole double %91, %92
br i1 %93, label %94, label %143
94: ; preds = %90
%95 = load double, double* %3
%96 = call i32 @pow(double %95, i32 2)
%97 = mul nsw i32 21, %96
%98 = sitofp i32 %97 to double
%99 = load double, double* %3
%100 = fmul double 3.400000e+01, %99
%101 = load double, double* %2
%102 = fneg double %100
%103 = call double @llvm.fmuladd.f64(double %102, double %101, double %98)
%104 = load double, double* %2
%105 = call i32 @pow(double %104, i32 2)
%106 = mul nsw i32 9, %105
%107 = sitofp i32 %106 to double
%108 = fadd double %103, %107
%109 = fptosi double %108 to i32
%110 = call double @cosh(i32 %109)
store double %110, double* %5
%111 = load double, double* %5
%112 = fcmp oeq double %111, 0.000000e+00
br i1 %112, label %113, label %115
113: ; preds = %94
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
br label %90
115: ; preds = %94
%116 = load double, double* %3
%117 = call i32 @pow(double %116, i32 2)
%118 = mul nsw i32 21, %117
%119 = sitofp i32 %118 to double
%120 = load double, double* %3
%121 = fmul double 3.400000e+01, %120
%122 = load double, double* %2
%123 = fneg double %121
%124 = call double @llvm.fmuladd.f64(double %123, double %122, double %119)
%125 = load double, double* %2
%126 = call i32 @pow(double %125, i32 2)
%127 = mul nsw i32 9, %126
%128 = sitofp i32 %127 to double
%129 = fadd double %124, %128
%130 = fptosi double %129 to i32
%131 = call double @cosh(i32 %130)
store double %131, double* %8
%132 = load double, double* %8
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double %132)
%134 = load double, double* %11
%135 = load double, double* %10
%136 = fadd double %134, %135
%137 = load i32, i32* %13
%138 = sub nsw i32 %137, 1
%139 = sitofp i32 %138 to double
%140 = fdiv double %136, %139
%141 = load double, double* %2
%142 = fadd double %141, %140
store double %142, double* %2
br label %90
143: ; preds = %90
br label %190
144: ; preds = %26
%145 = load double, double* %10
store double %145, double* %2
br label %146
146: ; preds = %156, %154, %144
%147 = load double, double* %2
%148 = load double, double* %11
%149 = fcmp ole double %147, %148
br i1 %149, label %150, label %187
150: ; preds = %146
%151 = call double @log(i32 10)
store double %151, double* %6
%152 = load double, double* %6
%153 = fcmp oeq double %152, 0.000000e+00
br i1 %153, label %154, label %156
154: ; preds = %150
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
br label %146
156: ; preds = %150
%157 = load double, double* %3
%158 = call i32 @pow(double %157, i32 2)
%159 = mul nsw i32 3, %158
%160 = sitofp i32 %159 to double
%161 = load double, double* %3
%162 = fmul double 2.500000e+01, %161
%163 = load double, double* %2
%164 = fneg double %162
%165 = call double @llvm.fmuladd.f64(double %164, double %163, double %160)
%166 = load double, double* %2
%167 = call i32 @pow(double %166, i32 2)
%168 = mul nsw i32 8, %167
%169 = sitofp i32 %168 to double
%170 = fadd double %165, %169
%171 = fadd double %170, 1.000000e+00
%172 = fptosi double %171 to i32
%173 = call double @log(i32 %172)
%174 = call double @log(i32 10)
%175 = fdiv double %173, %174
store double %175, double* %9
%176 = load double, double* %9
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), double %176)
%178 = load double, double* %11
%179 = load double, double* %10
%180 = fadd double %178, %179
%181 = load i32, i32* %13
%182 = sub nsw i32 %181, 1
%183 = sitofp i32 %182 to double
%184 = fdiv double %180, %183
%185 = load double, double* %2
%186 = fadd double %185, %184
store double %186, double* %2
br label %146
187: ; preds = %146
br label %190
188: ; preds = %26
%189 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0))
br label %190
190: ; preds = %188, %187, %143, %87
%191 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0))
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0))
%193 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %12)
br label %17
194: ; preds = %17
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.6 = [18 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 a:\00"
@.str.8 = [59 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B4\D1\80\D1\83\D0\B3\D0\B8\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D1\8F \D0\B4\D0\BB\D1\8F x \D0\B8 a\00"
@.str.9 = [7 x i8] c"G=%f\0A\0A\00"
@.str.10 = [7 x i8] c"F=%f\0A\0A\00"
@.str.11 = [7 x i8] c"Y=%f\0A\0A\00"
@.str.12 = [60 x i8] c"\D0\92\D1\8B \D0\B2\D1\8B\D0\B1\D1\80\D0\B0\D0\BB\D0\B8 \D0\BD\D0\B5\D0\BF\D1\80\D0\B0\D0\B2\D0\B8\D0\BB\D1\8C\D0\BD\D1\8B\D0\B9 \D0\B2\D0\B0\D1\80\D0\B8\D0\B0\D0\BD\D1\82\00"
@str.14 = [38 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B3\D1\80\D0\B0\D0\BD\D0\B8\D1\86\D1\8B x\0A\D0\BE\D1\82:\00"
@str.15 = [6 x i8] c"\D0\B4\D0\BE:\00"
@str.16 = [23 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\88\D0\B0\D0\B3:\00"
@str.17 = [196 x i8] c"\D0\95\D1\81\D0\BB\D0\B8 \D1\85\D0\BE\D1\82\D0\B8\D1\82\D0\B5 \D0\B2\D1\8B\D1\87\D0\B8\D1\81\D0\BB\D0\B8\D1\82\D1\8C G \D0\BD\D0\B0\D0\B6\D0\BC\D0\B8\D1\82\D0\B5 1, \D0\B5\D1\81\D0\BB\D0\B8 \D1\85\D0\BE\D1\82\D0\B8\D1\82\D0\B5 \D0\B2\D1\8B\D1\87\D0\B8\D1\81\D0\BB\D0\B8\D1\82\D1\8C F \D0\BD\D0\B0\D0\B6\D0\BC\D0\B8\D1\82\D0\B5 2, \D0\B5\D1\81\D0\BB\D0\B8 \D1\85\D0\BE\D1\82\D0\B8\D1\82\D0\B5 \D0\B2\D1\8B\D1\87\D0\B8\D1\81\D0\BB\D0\B8\D1\82\D1\8C Y \D0\BD\D0\B0\D0\B6\D0\BC\D0\B8\D1\82\D0\B5 3, \D0\B2\D1\8B\D1\85\D0\BE\D0\B4 4\00"
@str.18 = [38 x i8] c"\D0\A1\D0\B4\D0\B5\D0\BB\D0\B0\D0\B9\D1\82\D0\B5 \D1\81\D0\B2\D0\BE\D0\B9 \D0\B2\D1\8B\D0\B1\D0\BE\D1\80:\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca i32
%5 = alloca i32
%6 = bitcast double* %1 to i8*
%7 = bitcast double* %2 to i8*
store double 0.000000e+00, double* %2
%8 = bitcast double* %3 to i8*
store double 0.000000e+00, double* %3
%9 = bitcast i32* %4 to i8*
store i32 1, i32* %4
%10 = bitcast i32* %5 to i8*
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([196 x i8], [196 x i8]* @str.17, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.18, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%14 = load i32, i32* %4
%15 = add i32 %14, -1
%16 = icmp ult i32 %15, 3
br i1 %16, label %17, label %171
17: ; preds = %0, %164
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %2)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.15, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %3)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %1)
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.16, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%26 = load i32, i32* %4
switch i32 %26, label %162 [
i32 1, label %27
i32 2, label %73
i32 3, label %122
]
27: ; preds = %17
%28 = load double, double* %2
%29 = load double, double* %3
%30 = fcmp ugt double %28, %29
br i1 %30, label %164, label %31
31: ; preds = %27, %49
%32 = phi double [ %71, %49 ], [ %28, %27 ]
br label %33
33: ; preds = %31, %45
%34 = load double, double* %1
%35 = call i32 @pow(double %34, i32 2)
%36 = sub nsw i32 0, %35
%37 = sitofp i32 %36 to double
%38 = load double, double* %1
%39 = call double @llvm.fmuladd.f64(double %38, double %32, double %37)
%40 = call i32 @pow(double %32, i32 2)
%41 = mul nsw i32 %40, 6
%42 = sitofp i32 %41 to double
%43 = fadd double %39, %42
%44 = fcmp oeq double %43, 0.000000e+00
br i1 %44, label %45, label %49
45: ; preds = %33
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%47 = load double, double* %3
%48 = fcmp ugt double %32, %47
br i1 %48, label %164, label %33
49: ; preds = %33
%50 = load double, double* %1
%51 = call i32 @pow(double %50, i32 2)
%52 = mul nsw i32 %51, 18
%53 = sitofp i32 %52 to double
%54 = load double, double* %1
%55 = fmul double %54, 1.100000e+01
%56 = call double @llvm.fmuladd.f64(double %55, double %32, double %53)
%57 = call i32 @pow(double %32, i32 2)
%58 = mul nsw i32 %57, 24
%59 = sitofp i32 %58 to double
%60 = fsub double %56, %59
%61 = fmul double %60, -1.000000e+01
%62 = fdiv double %61, %43
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), double %62)
%64 = load double, double* %3
%65 = load double, double* %2
%66 = fadd double %64, %65
%67 = load i32, i32* %5
%68 = add nsw i32 %67, -1
%69 = sitofp i32 %68 to double
%70 = fdiv double %66, %69
%71 = fadd double %32, %70
%72 = fcmp ugt double %71, %64
br i1 %72, label %164, label %31
73: ; preds = %17
%74 = load double, double* %2
%75 = load double, double* %3
%76 = fcmp ugt double %74, %75
br i1 %76, label %164, label %77
77: ; preds = %73, %98
%78 = phi double [ %120, %98 ], [ %74, %73 ]
br label %79
79: ; preds = %77, %94
%80 = load double, double* %1
%81 = call i32 @pow(double %80, i32 2)
%82 = mul nsw i32 %81, 21
%83 = sitofp i32 %82 to double
%84 = load double, double* %1
%85 = fmul double %84, -3.400000e+01
%86 = call double @llvm.fmuladd.f64(double %85, double %78, double %83)
%87 = call i32 @pow(double %78, i32 2)
%88 = mul nsw i32 %87, 9
%89 = sitofp i32 %88 to double
%90 = fadd double %86, %89
%91 = fptosi double %90 to i32
%92 = call double @cosh(i32 %91)
%93 = fcmp oeq double %92, 0.000000e+00
br i1 %93, label %94, label %98
94: ; preds = %79
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%96 = load double, double* %3
%97 = fcmp ugt double %78, %96
br i1 %97, label %164, label %79
98: ; preds = %79
%99 = load double, double* %1
%100 = call i32 @pow(double %99, i32 2)
%101 = mul nsw i32 %100, 21
%102 = sitofp i32 %101 to double
%103 = load double, double* %1
%104 = fmul double %103, -3.400000e+01
%105 = call double @llvm.fmuladd.f64(double %104, double %78, double %102)
%106 = call i32 @pow(double %78, i32 2)
%107 = mul nsw i32 %106, 9
%108 = sitofp i32 %107 to double
%109 = fadd double %105, %108
%110 = fptosi double %109 to i32
%111 = call double @cosh(i32 %110)
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double %111)
%113 = load double, double* %3
%114 = load double, double* %2
%115 = fadd double %113, %114
%116 = load i32, i32* %5
%117 = add nsw i32 %116, -1
%118 = sitofp i32 %117 to double
%119 = fdiv double %115, %118
%120 = fadd double %78, %119
%121 = fcmp ugt double %120, %113
br i1 %121, label %164, label %77
122: ; preds = %17
%123 = load double, double* %2
%124 = load double, double* %3
%125 = fcmp ugt double %123, %124
br i1 %125, label %164, label %126
126: ; preds = %122, %135
%127 = phi double [ %160, %135 ], [ %123, %122 ]
br label %128
128: ; preds = %126, %131
%129 = call double @log(i32 10)
%130 = fcmp oeq double %129, 0.000000e+00
br i1 %130, label %131, label %135
131: ; preds = %128
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%133 = load double, double* %3
%134 = fcmp ugt double %127, %133
br i1 %134, label %164, label %128
135: ; preds = %128
%136 = load double, double* %1
%137 = call i32 @pow(double %136, i32 2)
%138 = mul nsw i32 %137, 3
%139 = sitofp i32 %138 to double
%140 = load double, double* %1
%141 = fmul double %140, -2.500000e+01
%142 = call double @llvm.fmuladd.f64(double %141, double %127, double %139)
%143 = call i32 @pow(double %127, i32 2)
%144 = shl nsw i32 %143, 3
%145 = sitofp i32 %144 to double
%146 = fadd double %142, %145
%147 = fadd double %146, 1.000000e+00
%148 = fptosi double %147 to i32
%149 = call double @log(i32 %148)
%150 = call double @log(i32 10)
%151 = fdiv double %149, %150
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), double %151)
%153 = load double, double* %3
%154 = load double, double* %2
%155 = fadd double %153, %154
%156 = load i32, i32* %5
%157 = add nsw i32 %156, -1
%158 = sitofp i32 %157 to double
%159 = fdiv double %155, %158
%160 = fadd double %127, %159
%161 = fcmp ugt double %160, %153
br i1 %161, label %164, label %126
162: ; preds = %17
%163 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0))
br label %164
164: ; preds = %135, %98, %49, %131, %94, %45, %122, %73, %27, %162
%165 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([196 x i8], [196 x i8]* @str.17, i64 0, i64 0))
%166 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.18, i64 0, i64 0))
%167 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%168 = load i32, i32* %4
%169 = add i32 %168, -1
%170 = icmp ult i32 %169, 3
br i1 %170, label %17, label %171
171: ; preds = %164, %0
ret i32 0
}