#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 asin(double);
double cos(double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
double sin(double);
double sqrt(double);
main() {
  double a, b, c, s, p, q, w, e;
  printf(" Введите сторону треугольника ");
  scanf("%lf", &a);
  printf(" Введите градусную меру прилежащего к стороне угла ");
  scanf("%lf", &q);
  printf(" Введите площадь треугольника ");
  scanf("%lf", &s);
  b = (0.5 * a * sin(q)) / s;
  c = sqrt((a * a) + (b * b) - (a * b * cos(q)));
  w = asin((sin(q) * b) / c);
  e = asin((sin(q) * a) / c);
  p = a + b + c;
  printf(" Стороны треугольника равны %lf ,", a);
  printf(" %lf ,", b);
  printf(" и %lf ;\n", c);
  printf(" Углы треугольника равны %lf ,", q);
  printf(" %lf ,", w);
  printf(" и %lf градусов ;\n", e);
  printf(" Площадь треугольника равна %lf .\n", p);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9f(%rip),%rdi
lea    -0x38(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe81(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1060 <scanf@plt>
movsd  0xe2f(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1070 <cos@plt>
movsd  -0x58(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1040 <sin@plt>
mulsd  -0x18(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1050 <asin@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1040 <sin@plt>
mulsd  -0x10(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1050 <asin@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
lea    0xe16(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
lea    0xe75(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
lea    0xe2a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x38(%rbp),%xmm0
lea    0xe22(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x40(%rbp),%xmm0
lea    0xe3c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x48(%rbp),%xmm0
lea    0xe30(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xe39(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xe9c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec7(%rip),%rbx
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xeb7(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xefb(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x38(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
movsd  0x18(%rsp),%xmm0
mulsd  0xe35(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x8(%rsp),%xmm0
divsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm2
movsd  %xmm2,0x20(%rsp)
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm2,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
call   1070 <cos@plt>
movsd  0x20(%rsp),%xmm1
mulsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  (%rsp),%xmm2
subsd  %xmm1,%xmm2
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm2
movapd %xmm2,%xmm0
jb     124b <main+0xeb>
sqrtsd %xmm0,%xmm0
jmp    1250 <main+0xf0>
call   1080 <sqrt@plt>
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x8(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1050 <asin@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x18(%rsp),%xmm0
divsd  (%rsp),%xmm0
call   1050 <asin@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
addsd  (%rsp),%xmm1
movsd  %xmm1,0x30(%rsp)
lea    0xe24(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe88(%rip),%rbx
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe39(%rip),%rdi
movsd  (%rsp),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0x10(%rsp),%xmm0
lea    0xe2b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    %rbx,%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe41(%rip),%rdi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe49(%rip),%rdi
movsd  0x30(%rsp),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [57 x i8] c" \D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D1\83 \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.1 = [4 x i8] c"%lf\00"
@.str.2 = [95 x i8] c" \D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B3\D1\80\D0\B0\D0\B4\D1\83\D1\81\D0\BD\D1\83\D1\8E \D0\BC\D0\B5\D1\80\D1\83 \D0\BF\D1\80\D0\B8\D0\BB\D0\B5\D0\B6\D0\B0\D1\89\D0\B5\D0\B3\D0\BE \D0\BA \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B5 \D1\83\D0\B3\D0\BB\D0\B0 \00"
@.str.3 = [57 x i8] c" \D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BF\D0\BB\D0\BE\D1\89\D0\B0\D0\B4\D1\8C \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.4 = [58 x i8] c" \D0\A1\D1\82\D0\BE\D1\80\D0\BE\D0\BD\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 \D1\80\D0\B0\D0\B2\D0\BD\D1\8B %lf ,\00"
@.str.5 = [7 x i8] c" %lf ,\00"
@.str.6 = [11 x i8] c" \D0\B8 %lf ;\0A\00"
@.str.7 = [52 x i8] c" \D0\A3\D0\B3\D0\BB\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 \D1\80\D0\B0\D0\B2\D0\BD\D1\8B %lf ,\00"
@.str.8 = [28 x i8] c" \D0\B8 %lf \D0\B3\D1\80\D0\B0\D0\B4\D1\83\D1\81\D0\BE\D0\B2 ;\0A\00"
@.str.9 = [59 x i8] c" \D0\9F\D0\BB\D0\BE\D1\89\D0\B0\D0\B4\D1\8C \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B0 \D1\80\D0\B0\D0\B2\D0\BD\D0\B0 %lf .\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
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %7)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %5)
%16 = load double, double* %2
%17 = fmul double 5.000000e-01, %16
%18 = load double, double* %7
%19 = call double @sin(double %18)
%20 = fmul double %17, %19
%21 = load double, double* %5
%22 = fdiv double %20, %21
store double %22, double* %3
%23 = load double, double* %2
%24 = load double, double* %2
%25 = load double, double* %3
%26 = load double, double* %3
%27 = fmul double %25, %26
%28 = call double @llvm.fmuladd.f64(double %23, double %24, double %27)
%29 = load double, double* %2
%30 = load double, double* %3
%31 = fmul double %29, %30
%32 = load double, double* %7
%33 = call double @cos(double %32)
%34 = fneg double %31
%35 = call double @llvm.fmuladd.f64(double %34, double %33, double %28)
%36 = call double @sqrt(double %35)
store double %36, double* %4
%37 = load double, double* %7
%38 = call double @sin(double %37)
%39 = load double, double* %3
%40 = fmul double %38, %39
%41 = load double, double* %4
%42 = fdiv double %40, %41
%43 = call double @asin(double %42)
store double %43, double* %8
%44 = load double, double* %7
%45 = call double @sin(double %44)
%46 = load double, double* %2
%47 = fmul double %45, %46
%48 = load double, double* %4
%49 = fdiv double %47, %48
%50 = call double @asin(double %49)
store double %50, double* %9
%51 = load double, double* %2
%52 = load double, double* %3
%53 = fadd double %51, %52
%54 = load double, double* %4
%55 = fadd double %53, %54
store double %55, double* %6
%56 = load double, double* %2
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0), double %56)
%58 = load double, double* %3
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %58)
%60 = load double, double* %4
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %60)
%62 = load double, double* %7
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), double %62)
%64 = load double, double* %8
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %64)
%66 = load double, double* %9
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), double %66)
%68 = load double, double* %6
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0), double %68)
ret i32 0
}

LLVM IR (-O2):
@.str = [57 x i8] c" \D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D1\83 \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.1 = [4 x i8] c"%lf\00"
@.str.2 = [95 x i8] c" \D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B3\D1\80\D0\B0\D0\B4\D1\83\D1\81\D0\BD\D1\83\D1\8E \D0\BC\D0\B5\D1\80\D1\83 \D0\BF\D1\80\D0\B8\D0\BB\D0\B5\D0\B6\D0\B0\D1\89\D0\B5\D0\B3\D0\BE \D0\BA \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B5 \D1\83\D0\B3\D0\BB\D0\B0 \00"
@.str.3 = [57 x i8] c" \D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BF\D0\BB\D0\BE\D1\89\D0\B0\D0\B4\D1\8C \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.4 = [58 x i8] c" \D0\A1\D1\82\D0\BE\D1\80\D0\BE\D0\BD\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 \D1\80\D0\B0\D0\B2\D0\BD\D1\8B %lf ,\00"
@.str.5 = [7 x i8] c" %lf ,\00"
@.str.6 = [11 x i8] c" \D0\B8 %lf ;\0A\00"
@.str.7 = [52 x i8] c" \D0\A3\D0\B3\D0\BB\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 \D1\80\D0\B0\D0\B2\D0\BD\D1\8B %lf ,\00"
@.str.8 = [28 x i8] c" \D0\B8 %lf \D0\B3\D1\80\D0\B0\D0\B4\D1\83\D1\81\D0\BE\D0\B2 ;\0A\00"
@.str.9 = [59 x i8] c" \D0\9F\D0\BB\D0\BE\D1\89\D0\B0\D0\B4\D1\8C \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B0 \D1\80\D0\B0\D0\B2\D0\BD\D0\B0 %lf .\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 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* %1)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 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 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%13 = load double, double* %1
%14 = fmul double %13, 5.000000e-01
%15 = load double, double* %3
%16 = call double @sin(double %15)
%17 = fmul double %14, %16
%18 = load double, double* %2
%19 = fdiv double %17, %18
%20 = load double, double* %1
%21 = fmul double %19, %19
%22 = call double @llvm.fmuladd.f64(double %20, double %20, double %21)
%23 = load double, double* %3
%24 = call double @cos(double %23)
%25 = fneg double %20
%26 = fmul double %19, %25
%27 = call double @llvm.fmuladd.f64(double %26, double %24, double %22)
%28 = call double @sqrt(double %27)
%29 = load double, double* %3
%30 = call double @sin(double %29)
%31 = fmul double %19, %30
%32 = fdiv double %31, %28
%33 = call double @asin(double %32)
%34 = load double, double* %3
%35 = call double @sin(double %34)
%36 = load double, double* %1
%37 = fmul double %35, %36
%38 = fdiv double %37, %28
%39 = call double @asin(double %38)
%40 = load double, double* %1
%41 = fadd double %19, %40
%42 = fadd double %28, %41
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0), double %40)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %19)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %28)
%46 = load double, double* %3
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), double %46)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %33)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), double %39)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0), double %42)
ret i32 0
}