#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*/ printf(char *, float);
int /*<<< orphan*/ scanf(char *, float *, float *, float *);
float sin(float);
int main() {
  float A, B, C, a, b, c, R;
  scanf("%f%f%f", &a, &B, &R);
  printf("A=%f\n", A = 57.2956 * sin(a / R / 2));
  printf("b=%f\n", b = 2 * sin(B * 0.0175) * R);
  printf("C=%f\n", C = 180 - A - B);
  printf("c=%f\n", c = R * 2 * sin(C * 0.0175));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1050 <scanf@plt>
movss  -0x14(%rbp),%xmm0
divss  -0x20(%rbp),%xmm0
movss  0xea7(%rip),%xmm1
divss  %xmm1,%xmm0
call   1040 <sin@plt>
cvtss2sd %xmm0,%xmm1
movsd  0xe8a(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe58(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movss  0xe50(%rip),%xmm0
mulss  %xmm1,%xmm0
mulss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xe50(%rip),%rdi
call   1030 <printf@plt>
movss  0xe32(%rip),%xmm0
subss  -0x8(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
movss  0xe0b(%rip),%xmm0
mulss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xde0(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
lea    0xdec(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xedd(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   1050 <scanf@plt>
movss  0x14(%rsp),%xmm0
divss  0x8(%rsp),%xmm0
mulss  0xe9d(%rip),%xmm0
call   1040 <sin@plt>
cvtss2sd %xmm0,%xmm0
mulsd  0xe94(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xe74(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <sin@plt>
addss  %xmm0,%xmm0
mulss  0x8(%rsp),%xmm0
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
movss  0xe41(%rip),%xmm0
subss  0x4(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
movss  0x8(%rsp),%xmm0
addss  %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xe0d(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <sin@plt>
mulss  0x4(%rsp),%xmm0
lea    0xe18(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%f%f%f\00"
@.str.1 = [6 x i8] c"A=%f\0A\00"
@.str.2 = [6 x i8] c"b=%f\0A\00"
@.str.3 = [6 x i8] c"C=%f\0A\00"
@.str.4 = [6 x i8] c"c=%f\0A\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
store i32 0, i32* %1
%9 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float* %5, float* %3, float* %8)
%10 = load float, float* %5
%11 = load float, float* %8
%12 = fdiv float %10, %11
%13 = fdiv float %12, 2.000000e+00
%14 = call float @sin(float %13)
%15 = fpext float %14 to double
%16 = fmul double 5.729560e+01, %15
%17 = fptrunc double %16 to float
store float %17, float* %2
%18 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %17)
%19 = load float, float* %3
%20 = fpext float %19 to double
%21 = fmul double %20, 1.750000e-02
%22 = fptrunc double %21 to float
%23 = call float @sin(float %22)
%24 = fmul float 2.000000e+00, %23
%25 = load float, float* %8
%26 = fmul float %24, %25
store float %26, float* %6
%27 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %26)
%28 = load float, float* %2
%29 = fsub float 1.800000e+02, %28
%30 = load float, float* %3
%31 = fsub float %29, %30
store float %31, float* %4
%32 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), float %31)
%33 = load float, float* %8
%34 = fmul float %33, 2.000000e+00
%35 = load float, float* %4
%36 = fpext float %35 to double
%37 = fmul double %36, 1.750000e-02
%38 = fptrunc double %37 to float
%39 = call float @sin(float %38)
%40 = fmul float %34, %39
store float %40, float* %7
%41 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), float %40)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%f%f%f\00"
@.str.1 = [6 x i8] c"A=%f\0A\00"
@.str.2 = [6 x i8] c"b=%f\0A\00"
@.str.3 = [6 x i8] c"C=%f\0A\00"
@.str.4 = [6 x i8] c"c=%f\0A\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 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float* %2, float* %1, float* %3)
%8 = load float, float* %2
%9 = load float, float* %3
%10 = fdiv float %8, %9
%11 = fmul float %10, 5.000000e-01
%12 = call float @sin(float %11)
%13 = fpext float %12 to double
%14 = fmul double %13, 5.729560e+01
%15 = fptrunc double %14 to float
%16 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %15)
%17 = load float, float* %1
%18 = fpext float %17 to double
%19 = fmul double %18, 1.750000e-02
%20 = fptrunc double %19 to float
%21 = call float @sin(float %20)
%22 = fmul float %21, 2.000000e+00
%23 = load float, float* %3
%24 = fmul float %22, %23
%25 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %24)
%26 = fsub float 1.800000e+02, %15
%27 = load float, float* %1
%28 = fsub float %26, %27
%29 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), float %28)
%30 = load float, float* %3
%31 = fmul float %30, 2.000000e+00
%32 = fpext float %28 to double
%33 = fmul double %32, 1.750000e-02
%34 = fptrunc double %33 to float
%35 = call float @sin(float %34)
%36 = fmul float %31, %35
%37 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), float %36)
ret i32 0
}