#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 */
float acos(float);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *);
float sqrt(float);
main() {
  float a, b, c, S, sinY, cosY, cosA, cosB, angleA, angleB, angleY;
  printf("Надо найти остальные элементы треугольника.\n");
  printf("В треугольнике будут вами заданы только стороны a, b и площадь S.\n");
  printf("Угол Y между сторонами a, b; A между b, c; B между a, c.\n\n");
  printf("a=");
  scanf("%f", &a);
  printf("b=");
  scanf("%f", &b);
  printf("S=");
  scanf("%f", &S);
  if ((2 * S) < (a * b)) {
    sinY = (2 * S) / (a * b);
    cosY = sqrt((1 - (sinY * sinY)));
    c = sqrt(((a * a) + (b * b)) - (2 * a * b * cosY));
    printf("sinY=%.2f\n", sinY);
    printf("cosY=%.2f\n", cosY);
    printf("c=%.2f\n", c);
    printf("Находим теперь углы данного треугольника (angle - это угол)\n");
    angleA = acos((b * b + c * c - a * a) / (2 * b * c));
    angleB = acos((a * a + c * c - b * b) / (2 * a * c));
    angleY = acos(cosY);
    angleA = ((angleA * 180) / 3.14159265);
    printf("angleA=%f\n", angleA);
    angleB = ((angleB * 180) / 3.14159265);
    printf("angleB=%f\n", angleB);
    angleY = ((angleY * 180) / 3.14159265);
    printf("angleY=%f\n\n", angleY);
    printf("Итоги:\n");
    printf("a=%.2f\n"
           "b=%.2f\n"
           "c=%.2f\n",
           a, b, c);
    printf("Угол A=%f\n"
           "Угол B=%f\n"
           "Угол Y=%f\n",
           angleA, angleB, angleY);
  } else
    printf("Произведение числа 2 не может быть больше произведения a и b\nТ.к. "
           "при продолжении решения задачи sin>1");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xf9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8d(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xf83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
movss  0xe25(%rip),%xmm1
mulss  -0x14(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    14ca <main+0x38a>
movss  0xe05(%rip),%xmm0
mulss  -0x14(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm1,%xmm0
movss  0xdd2(%rip),%xmm1
addss  %xmm1,%xmm0
call   1060 <sqrt@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xd98(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  -0x1c(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <sqrt@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe9c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe90(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xf29(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xcd4(%rip),%xmm1
mulss  -0xc(%rbp),%xmm1
mulss  -0x10(%rbp),%xmm1
divss  %xmm1,%xmm0
call   1040 <acos@plt>
movss  %xmm0,-0x28(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
movss  -0x10(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xc79(%rip),%xmm1
mulss  -0x8(%rbp),%xmm1
mulss  -0x10(%rbp),%xmm1
divss  %xmm1,%xmm0
call   1040 <acos@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1040 <acos@plt>
movss  %xmm0,-0x30(%rbp)
movss  0xc4e(%rip),%xmm0
mulss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc49(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xddc(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xc11(%rip),%xmm0
mulss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc0c(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdaa(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xbd4(%rip),%xmm0
mulss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbcf(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd78(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x10(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xd5a(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x2c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x30(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xd47(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    14d8 <main+0x398>
lea    0xd5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xff4(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a1(%rip),%rdi
call   1030 <puts@plt>
lea    0xe98(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe8d(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xe7c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xe64(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
movss  0x34(%rsp),%xmm1
addss  %xmm1,%xmm1
movss  0xc(%rsp),%xmm0
mulss  0x8(%rsp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1214 <main+0xc4>
divss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
mulss  %xmm1,%xmm1
movss  0xdfe(%rip),%xmm0
subss  %xmm1,%xmm0
xorps  %xmm4,%xmm4
ucomiss %xmm4,%xmm0
jb     1227 <main+0xd7>
sqrtss %xmm0,%xmm3
jmp    1232 <main+0xe2>
lea    0xe82(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1467 <main+0x317>
call   1070 <sqrt@plt>
xorps  %xmm4,%xmm4
movaps %xmm0,%xmm3
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
movaps %xmm0,%xmm2
mulss  0xdbb(%rip),%xmm0
mulss  %xmm1,%xmm0
mulss  %xmm1,%xmm1
mulss  %xmm2,%xmm2
addss  %xmm1,%xmm2
movss  %xmm3,0x20(%rsp)
mulss  %xmm3,%xmm0
addss  %xmm2,%xmm0
ucomiss %xmm4,%xmm0
jb     1272 <main+0x122>
sqrtss %xmm0,%xmm0
jmp    1277 <main+0x127>
call   1070 <sqrt@plt>
movss  0x10(%rsp),%xmm1
movss  %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xd93(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd86(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0xda3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <puts@plt>
movss  0x8(%rsp),%xmm1
movss  0x10(%rsp),%xmm3
movaps %xmm3,%xmm2
mulss  %xmm3,%xmm2
movss  %xmm2,0x18(%rsp)
movaps %xmm1,%xmm0
mulss  %xmm1,%xmm0
addss  %xmm2,%xmm0
movss  0xc(%rsp),%xmm2
mulss  %xmm2,%xmm2
subss  %xmm2,%xmm0
addss  %xmm1,%xmm1
mulss  %xmm3,%xmm1
divss  %xmm1,%xmm0
call   1050 <acos@plt>
movss  %xmm0,0x30(%rsp)
movss  0xc(%rsp),%xmm1
movaps %xmm1,%xmm0
mulss  %xmm1,%xmm0
addss  0x18(%rsp),%xmm0
movss  0x8(%rsp),%xmm2
mulss  %xmm2,%xmm2
subss  %xmm2,%xmm0
addss  %xmm1,%xmm1
mulss  0x10(%rsp),%xmm1
divss  %xmm1,%xmm0
call   1050 <acos@plt>
movss  %xmm0,0x2c(%rsp)
movss  0x20(%rsp),%xmm0
call   1050 <acos@plt>
movss  %xmm0,0x18(%rsp)
movss  0x30(%rsp),%xmm1
mulss  0xc8c(%rip),%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
divsd  0xc85(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0xc9a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x2c(%rsp),%xmm0
mulss  0xc53(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
divsd  0xc4f(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
lea    0xc6f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
mulss  0xc1d(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
divsd  0xc19(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0xc44(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x8(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc22(%rip),%rdi
movsd  0x38(%rsp),%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xc24(%rip),%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
mov    $0x3,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [83 x i8] c"\D0\9D\D0\B0\D0\B4\D0\BE \D0\BD\D0\B0\D0\B9\D1\82\D0\B8 \D0\BE\D1\81\D1\82\D0\B0\D0\BB\D1\8C\D0\BD\D1\8B\D0\B5 \D1\8D\D0\BB\D0\B5\D0\BC\D0\B5\D0\BD\D1\82\D1\8B \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B0.\0A\00"
@.str.1 = [116 x i8] c"\D0\92 \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B5 \D0\B1\D1\83\D0\B4\D1\83\D1\82 \D0\B2\D0\B0\D0\BC\D0\B8 \D0\B7\D0\B0\D0\B4\D0\B0\D0\BD\D1\8B \D1\82\D0\BE\D0\BB\D1\8C\D0\BA\D0\BE \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D1\8B a, b \D0\B8 \D0\BF\D0\BB\D0\BE\D1\89\D0\B0\D0\B4\D1\8C S.\0A\00"
@.str.2 = [87 x i8] c"\D0\A3\D0\B3\D0\BE\D0\BB Y \D0\BC\D0\B5\D0\B6\D0\B4\D1\83 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\D0\BC\D0\B8 a, b; A \D0\BC\D0\B5\D0\B6\D0\B4\D1\83 b, c; B \D0\BC\D0\B5\D0\B6\D0\B4\D1\83 a, c.\0A\0A\00"
@.str.3 = [3 x i8] c"a=\00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [3 x i8] c"b=\00"
@.str.6 = [3 x i8] c"S=\00"
@.str.7 = [11 x i8] c"sinY=%.2f\0A\00"
@.str.8 = [11 x i8] c"cosY=%.2f\0A\00"
@.str.9 = [8 x i8] c"c=%.2f\0A\00"
@.str.10 = [104 x i8] c"\D0\9D\D0\B0\D1\85\D0\BE\D0\B4\D0\B8\D0\BC \D1\82\D0\B5\D0\BF\D0\B5\D1\80\D1\8C \D1\83\D0\B3\D0\BB\D1\8B \D0\B4\D0\B0\D0\BD\D0\BD\D0\BE\D0\B3\D0\BE \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B0 (angle - \D1\8D\D1\82\D0\BE \D1\83\D0\B3\D0\BE\D0\BB)\0A\00"
@.str.11 = [11 x i8] c"angleA=%f\0A\00"
@.str.12 = [11 x i8] c"angleB=%f\0A\00"
@.str.13 = [12 x i8] c"angleY=%f\0A\0A\00"
@.str.14 = [13 x i8] c"\D0\98\D1\82\D0\BE\D0\B3\D0\B8:\0A\00"
@.str.15 = [22 x i8] c"a=%.2f\0Ab=%.2f\0Ac=%.2f\0A\00"
@.str.16 = [43 x i8] c"\D0\A3\D0\B3\D0\BE\D0\BB A=%f\0A\D0\A3\D0\B3\D0\BE\D0\BB B=%f\0A\D0\A3\D0\B3\D0\BE\D0\BB Y=%f\0A\00"
@.str.17 = [179 x i8] c"\D0\9F\D1\80\D0\BE\D0\B8\D0\B7\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D0\B8\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 2 \D0\BD\D0\B5 \D0\BC\D0\BE\D0\B6\D0\B5\D1\82 \D0\B1\D1\8B\D1\82\D1\8C \D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5 \D0\BF\D1\80\D0\BE\D0\B8\D0\B7\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D0\B8\D1\8F a \D0\B8 b\0A\D0\A2.\D0\BA. \D0\BF\D1\80\D0\B8 \D0\BF\D1\80\D0\BE\D0\B4\D0\BE\D0\BB\D0\B6\D0\B5\D0\BD\D0\B8\D0\B8 \D1\80\D0\B5\D1\88\D0\B5\D0\BD\D0\B8\D1\8F \D0\B7\D0\B0\D0\B4\D0\B0\D1\87\D0\B8 sin>1\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
store i32 0, i32* %1
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %2)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %3)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %5)
%22 = load float, float* %5
%23 = fmul float 2.000000e+00, %22
%24 = load float, float* %2
%25 = load float, float* %3
%26 = fmul float %24, %25
%27 = fcmp olt float %23, %26
br i1 %27, label %28, label %137
28: ; preds = %0
%29 = load float, float* %5
%30 = fmul float 2.000000e+00, %29
%31 = load float, float* %2
%32 = load float, float* %3
%33 = fmul float %31, %32
%34 = fdiv float %30, %33
store float %34, float* %6
%35 = load float, float* %6
%36 = load float, float* %6
%37 = fneg float %35
%38 = call float @llvm.fmuladd.f32(float %37, float %36, float 1.000000e+00)
%39 = call float @sqrt(float %38)
store float %39, float* %7
%40 = load float, float* %2
%41 = load float, float* %2
%42 = load float, float* %3
%43 = load float, float* %3
%44 = fmul float %42, %43
%45 = call float @llvm.fmuladd.f32(float %40, float %41, float %44)
%46 = load float, float* %2
%47 = fmul float 2.000000e+00, %46
%48 = load float, float* %3
%49 = fmul float %47, %48
%50 = load float, float* %7
%51 = fneg float %49
%52 = call float @llvm.fmuladd.f32(float %51, float %50, float %45)
%53 = call float @sqrt(float %52)
store float %53, float* %4
%54 = load float, float* %6
%55 = fpext float %54 to double
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double %55)
%57 = load float, float* %7
%58 = fpext float %57 to double
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), double %58)
%60 = load float, float* %4
%61 = fpext float %60 to double
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), double %61)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.10, i64 0, i64 0))
%64 = load float, float* %3
%65 = load float, float* %3
%66 = load float, float* %4
%67 = load float, float* %4
%68 = fmul float %66, %67
%69 = call float @llvm.fmuladd.f32(float %64, float %65, float %68)
%70 = load float, float* %2
%71 = load float, float* %2
%72 = fneg float %70
%73 = call float @llvm.fmuladd.f32(float %72, float %71, float %69)
%74 = load float, float* %3
%75 = fmul float 2.000000e+00, %74
%76 = load float, float* %4
%77 = fmul float %75, %76
%78 = fdiv float %73, %77
%79 = call float @acos(float %78)
store float %79, float* %10
%80 = load float, float* %2
%81 = load float, float* %2
%82 = load float, float* %4
%83 = load float, float* %4
%84 = fmul float %82, %83
%85 = call float @llvm.fmuladd.f32(float %80, float %81, float %84)
%86 = load float, float* %3
%87 = load float, float* %3
%88 = fneg float %86
%89 = call float @llvm.fmuladd.f32(float %88, float %87, float %85)
%90 = load float, float* %2
%91 = fmul float 2.000000e+00, %90
%92 = load float, float* %4
%93 = fmul float %91, %92
%94 = fdiv float %89, %93
%95 = call float @acos(float %94)
store float %95, float* %11
%96 = load float, float* %7
%97 = call float @acos(float %96)
store float %97, float* %12
%98 = load float, float* %10
%99 = fmul float %98, 1.800000e+02
%100 = fpext float %99 to double
%101 = fdiv double %100, 0x400921FB53C8D4F1
%102 = fptrunc double %101 to float
store float %102, float* %10
%103 = load float, float* %10
%104 = fpext float %103 to double
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), double %104)
%106 = load float, float* %11
%107 = fmul float %106, 1.800000e+02
%108 = fpext float %107 to double
%109 = fdiv double %108, 0x400921FB53C8D4F1
%110 = fptrunc double %109 to float
store float %110, float* %11
%111 = load float, float* %11
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), double %112)
%114 = load float, float* %12
%115 = fmul float %114, 1.800000e+02
%116 = fpext float %115 to double
%117 = fdiv double %116, 0x400921FB53C8D4F1
%118 = fptrunc double %117 to float
store float %118, float* %12
%119 = load float, float* %12
%120 = fpext float %119 to double
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), double %120)
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%123 = load float, float* %2
%124 = fpext float %123 to double
%125 = load float, float* %3
%126 = fpext float %125 to double
%127 = load float, float* %4
%128 = fpext float %127 to double
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), double %124, double %126, double %128)
%130 = load float, float* %10
%131 = fpext float %130 to double
%132 = load float, float* %11
%133 = fpext float %132 to double
%134 = load float, float* %12
%135 = fpext float %134 to double
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0), double %131, double %133, double %135)
br label %139
137: ; preds = %0
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([179 x i8], [179 x i8]* @.str.17, i64 0, i64 0))
br label %139
139: ; preds = %137, %28
ret i32 0
}

LLVM IR (-O2):
@.str.3 = [3 x i8] c"a=\00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [3 x i8] c"b=\00"
@.str.6 = [3 x i8] c"S=\00"
@.str.7 = [11 x i8] c"sinY=%.2f\0A\00"
@.str.8 = [11 x i8] c"cosY=%.2f\0A\00"
@.str.9 = [8 x i8] c"c=%.2f\0A\00"
@.str.11 = [11 x i8] c"angleA=%f\0A\00"
@.str.12 = [11 x i8] c"angleB=%f\0A\00"
@.str.13 = [12 x i8] c"angleY=%f\0A\0A\00"
@.str.15 = [22 x i8] c"a=%.2f\0Ab=%.2f\0Ac=%.2f\0A\00"
@.str.16 = [43 x i8] c"\D0\A3\D0\B3\D0\BE\D0\BB A=%f\0A\D0\A3\D0\B3\D0\BE\D0\BB B=%f\0A\D0\A3\D0\B3\D0\BE\D0\BB Y=%f\0A\00"
@.str.17 = [179 x i8] c"\D0\9F\D1\80\D0\BE\D0\B8\D0\B7\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D0\B8\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 2 \D0\BD\D0\B5 \D0\BC\D0\BE\D0\B6\D0\B5\D1\82 \D0\B1\D1\8B\D1\82\D1\8C \D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5 \D0\BF\D1\80\D0\BE\D0\B8\D0\B7\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D0\B8\D1\8F a \D0\B8 b\0A\D0\A2.\D0\BA. \D0\BF\D1\80\D0\B8 \D0\BF\D1\80\D0\BE\D0\B4\D0\BE\D0\BB\D0\B6\D0\B5\D0\BD\D0\B8\D0\B8 \D1\80\D0\B5\D1\88\D0\B5\D0\BD\D0\B8\D1\8F \D0\B7\D0\B0\D0\B4\D0\B0\D1\87\D0\B8 sin>1\00"
@str = [82 x i8] c"\D0\9D\D0\B0\D0\B4\D0\BE \D0\BD\D0\B0\D0\B9\D1\82\D0\B8 \D0\BE\D1\81\D1\82\D0\B0\D0\BB\D1\8C\D0\BD\D1\8B\D0\B5 \D1\8D\D0\BB\D0\B5\D0\BC\D0\B5\D0\BD\D1\82\D1\8B \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B0.\00"
@str.18 = [115 x i8] c"\D0\92 \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B5 \D0\B1\D1\83\D0\B4\D1\83\D1\82 \D0\B2\D0\B0\D0\BC\D0\B8 \D0\B7\D0\B0\D0\B4\D0\B0\D0\BD\D1\8B \D1\82\D0\BE\D0\BB\D1\8C\D0\BA\D0\BE \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D1\8B a, b \D0\B8 \D0\BF\D0\BB\D0\BE\D1\89\D0\B0\D0\B4\D1\8C S.\00"
@str.19 = [86 x i8] c"\D0\A3\D0\B3\D0\BE\D0\BB Y \D0\BC\D0\B5\D0\B6\D0\B4\D1\83 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\D0\BC\D0\B8 a, b; A \D0\BC\D0\B5\D0\B6\D0\B4\D1\83 b, c; B \D0\BC\D0\B5\D0\B6\D0\B4\D1\83 a, c.\0A\00"
@str.20 = [103 x i8] c"\D0\9D\D0\B0\D1\85\D0\BE\D0\B4\D0\B8\D0\BC \D1\82\D0\B5\D0\BF\D0\B5\D1\80\D1\8C \D1\83\D0\B3\D0\BB\D1\8B \D0\B4\D0\B0\D0\BD\D0\BD\D0\BE\D0\B3\D0\BE \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B0 (angle - \D1\8D\D1\82\D0\BE \D1\83\D0\B3\D0\BE\D0\BB)\00"
@str.21 = [12 x i8] c"\D0\98\D1\82\D0\BE\D0\B3\D0\B8:\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([115 x i8], [115 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %1)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %2)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %3)
%16 = load float, float* %3
%17 = fmul float %16, 2.000000e+00
%18 = load float, float* %1
%19 = load float, float* %2
%20 = fmul float %18, %19
%21 = fcmp olt float %17, %20
br i1 %21, label %22, label %87
22: ; preds = %0
%23 = fdiv float %17, %20
%24 = fneg float %23
%25 = call float @llvm.fmuladd.f32(float %24, float %23, float 1.000000e+00)
%26 = call float @sqrt(float %25)
%27 = load float, float* %1
%28 = load float, float* %2
%29 = fmul float %28, %28
%30 = call float @llvm.fmuladd.f32(float %27, float %27, float %29)
%31 = fmul float %27, -2.000000e+00
%32 = fmul float %31, %28
%33 = call float @llvm.fmuladd.f32(float %32, float %26, float %30)
%34 = call float @sqrt(float %33)
%35 = fpext float %23 to double
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double %35)
%37 = fpext float %26 to double
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), double %37)
%39 = fpext float %34 to double
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), double %39)
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @str.20, i64 0, i64 0))
%42 = load float, float* %2
%43 = fmul float %34, %34
%44 = call float @llvm.fmuladd.f32(float %42, float %42, float %43)
%45 = load float, float* %1
%46 = fneg float %45
%47 = call float @llvm.fmuladd.f32(float %46, float %45, float %44)
%48 = fmul float %42, 2.000000e+00
%49 = fmul float %34, %48
%50 = fdiv float %47, %49
%51 = call float @acos(float %50)
%52 = load float, float* %1
%53 = call float @llvm.fmuladd.f32(float %52, float %52, float %43)
%54 = load float, float* %2
%55 = fneg float %54
%56 = call float @llvm.fmuladd.f32(float %55, float %54, float %53)
%57 = fmul float %52, 2.000000e+00
%58 = fmul float %34, %57
%59 = fdiv float %56, %58
%60 = call float @acos(float %59)
%61 = call float @acos(float %26)
%62 = fmul float %51, 1.800000e+02
%63 = fpext float %62 to double
%64 = fdiv double %63, 0x400921FB53C8D4F1
%65 = fptrunc double %64 to float
%66 = fpext float %65 to double
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), double %66)
%68 = fmul float %60, 1.800000e+02
%69 = fpext float %68 to double
%70 = fdiv double %69, 0x400921FB53C8D4F1
%71 = fptrunc double %70 to float
%72 = fpext float %71 to double
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), double %72)
%74 = fmul float %61, 1.800000e+02
%75 = fpext float %74 to double
%76 = fdiv double %75, 0x400921FB53C8D4F1
%77 = fptrunc double %76 to float
%78 = fpext float %77 to double
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), double %78)
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.21, i64 0, i64 0))
%81 = load float, float* %1
%82 = fpext float %81 to double
%83 = load float, float* %2
%84 = fpext float %83 to double
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), double %82, double %84, double %39)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0), double %66, double %72, double %78)
br label %89
87: ; preds = %0
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([179 x i8], [179 x i8]* @.str.17, i64 0, i64 0))
br label %89
89: ; preds = %87, %22
ret i32 0
}