#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 */
int /*<<< orphan*/ asin(double);
double sin(int /*<<< orphan*/);
double toDegrees(int /*<<< orphan*/);
int /*<<< orphan*/ toRadians(double);
double solveTriangle(double _a, double _A, double _B) {
  double c;
  double b;
  double a = _a;
  double C;
  double B = _B;
  double A = _A;
  double ae = sin(toRadians(a)) / A;
  double be;
  double ce;
  b = toDegrees(asin(ae * B));
  be = sin(toRadians(b)) / B;
  c = 180 - a - b;
  C = sin(toRadians(c)) / be;
  return C * C;
}


x86 assembly (clang, -O0):
<solveTriangle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1050 <toRadians@plt>
mov    %eax,%edi
call   1030 <sin@plt>
divsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
call   1040 <asin@plt>
mov    %eax,%edi
call   1060 <toDegrees@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1050 <toRadians@plt>
mov    %eax,%edi
call   1030 <sin@plt>
divsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe32(%rip),%xmm0
subsd  -0x30(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1050 <toRadians@plt>
mov    %eax,%edi
call   1030 <sin@plt>
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solveTriangle>:
sub    $0x18,%rsp
movsd  %xmm2,(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
call   1050 <toRadians@plt>
mov    %eax,%edi
call   1030 <sin@plt>
divsd  0x8(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1040 <asin@plt>
mov    %eax,%edi
call   1060 <toDegrees@plt>
movsd  %xmm0,0x8(%rsp)
call   1050 <toRadians@plt>
mov    %eax,%edi
call   1030 <sin@plt>
divsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe64(%rip),%xmm0
subsd  0x10(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
call   1050 <toRadians@plt>
mov    %eax,%edi
call   1030 <sin@plt>
divsd  (%rsp),%xmm0
mulsd  %xmm0,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @solveTriangle(double %0, double %1, double %2) {
%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 double
%13 = alloca double
%14 = alloca double
%15 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%16 = load double, double* %4
store double %16, double* %9
%17 = load double, double* %6
store double %17, double* %11
%18 = load double, double* %5
store double %18, double* %12
%19 = load double, double* %9
%20 = call i32 @toRadians(double %19)
%21 = call double @sin(i32 %20)
%22 = load double, double* %12
%23 = fdiv double %21, %22
store double %23, double* %13
%24 = load double, double* %13
%25 = load double, double* %11
%26 = fmul double %24, %25
%27 = call i32 @asin(double %26)
%28 = call double @toDegrees(i32 %27)
store double %28, double* %8
%29 = load double, double* %8
%30 = call i32 @toRadians(double %29)
%31 = call double @sin(i32 %30)
%32 = load double, double* %11
%33 = fdiv double %31, %32
store double %33, double* %14
%34 = load double, double* %9
%35 = fsub double 1.800000e+02, %34
%36 = load double, double* %8
%37 = fsub double %35, %36
store double %37, double* %7
%38 = load double, double* %7
%39 = call i32 @toRadians(double %38)
%40 = call double @sin(i32 %39)
%41 = load double, double* %14
%42 = fdiv double %40, %41
store double %42, double* %10
%43 = load double, double* %10
%44 = load double, double* %10
%45 = fmul double %43, %44
ret double %45
}

LLVM IR (-O2):
define double @solveTriangle(double %0, double %1, double %2) {
%4 = tail call i32 @toRadians(double %0)
%5 = tail call double @sin(i32 %4)
%6 = fdiv double %5, %1
%7 = fmul double %6, %2
%8 = tail call i32 @asin(double %7)
%9 = tail call double @toDegrees(i32 %8)
%10 = tail call i32 @toRadians(double %9)
%11 = tail call double @sin(i32 %10)
%12 = fdiv double %11, %2
%13 = fsub double 1.800000e+02, %0
%14 = fsub double %13, %9
%15 = tail call i32 @toRadians(double %14)
%16 = tail call double @sin(i32 %15)
%17 = fdiv double %16, %12
%18 = fmul double %17, %17
ret double %18
}