#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 *, ...);
int /*<<< orphan*/ scanf(char *, float *);
float sin(float);
main() {
  float A, B, Y, a, b, c;
  printf("Сторона c=\n");
  scanf("%f", &c);
  printf("Прилегающий к стороне c угол A=\n");
  scanf("%f", &A);
  printf("Прилегающий к стороне c угол B=\n");
  scanf("%f", &B);
  Y = (180 - A - B);
  a = (c * sin(A) / sin(Y));
  b = (c * sin(B) / sin(Y));
  printf("Угол Y=%f\n", Y);
  printf("Сторона a=%f\n", a);
  printf("Сторона b=%f\n", b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe87(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
movss  0xe5f(%rip),%xmm0
subss  -0x8(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x2c(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x10(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x28(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0xc(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x10(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x20(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe4a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe42(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe40(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xeac(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xf04(%rip),%rdi
call   1030 <puts@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
movss  0x1c(%rsp),%xmm0
movss  0xe5b(%rip),%xmm1
subss  %xmm0,%xmm1
subss  0x18(%rsp),%xmm1
movss  %xmm1,0x10(%rsp)
movss  0x14(%rsp),%xmm1
movss  %xmm1,0xc(%rsp)
call   1050 <sin@plt>
mulss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0x10(%rsp),%xmm0
call   1050 <sin@plt>
movss  0xc(%rsp),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0x14(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0x18(%rsp),%xmm0
call   1050 <sin@plt>
mulss  0x8(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0x10(%rsp),%xmm0
call   1050 <sin@plt>
movss  0x8(%rsp),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdcb(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdc2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdbf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"\D0\A1\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0 c=\0A\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [56 x i8] c"\D0\9F\D1\80\D0\B8\D0\BB\D0\B5\D0\B3\D0\B0\D1\8E\D1\89\D0\B8\D0\B9 \D0\BA \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B5 c \D1\83\D0\B3\D0\BE\D0\BB A=\0A\00"
@.str.3 = [56 x i8] c"\D0\9F\D1\80\D0\B8\D0\BB\D0\B5\D0\B3\D0\B0\D1\8E\D1\89\D0\B8\D0\B9 \D0\BA \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B5 c \D1\83\D0\B3\D0\BE\D0\BB B=\0A\00"
@.str.4 = [15 x i8] c"\D0\A3\D0\B3\D0\BE\D0\BB Y=%f\0A\00"
@.str.5 = [21 x i8] c"\D0\A1\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0 a=%f\0A\00"
@.str.6 = [21 x i8] c"\D0\A1\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0 b=%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
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %7)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %3)
%14 = load float, float* %2
%15 = fsub float 1.800000e+02, %14
%16 = load float, float* %3
%17 = fsub float %15, %16
store float %17, float* %4
%18 = load float, float* %7
%19 = load float, float* %2
%20 = call float @sin(float %19)
%21 = fmul float %18, %20
%22 = load float, float* %4
%23 = call float @sin(float %22)
%24 = fdiv float %21, %23
store float %24, float* %5
%25 = load float, float* %7
%26 = load float, float* %3
%27 = call float @sin(float %26)
%28 = fmul float %25, %27
%29 = load float, float* %4
%30 = call float @sin(float %29)
%31 = fdiv float %28, %30
store float %31, float* %6
%32 = load float, float* %4
%33 = fpext float %32 to double
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), double %33)
%35 = load float, float* %5
%36 = fpext float %35 to double
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), double %36)
%38 = load float, float* %6
%39 = fpext float %38 to double
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), double %39)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%f\00"
@.str.4 = [15 x i8] c"\D0\A3\D0\B3\D0\BE\D0\BB Y=%f\0A\00"
@.str.5 = [21 x i8] c"\D0\A1\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0 a=%f\0A\00"
@.str.6 = [21 x i8] c"\D0\A1\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0 b=%f\0A\00"
@str = [18 x i8] c"\D0\A1\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0 c=\00"
@str.7 = [55 x i8] c"\D0\9F\D1\80\D0\B8\D0\BB\D0\B5\D0\B3\D0\B0\D1\8E\D1\89\D0\B8\D0\B9 \D0\BA \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B5 c \D1\83\D0\B3\D0\BE\D0\BB A=\00"
@str.8 = [55 x i8] c"\D0\9F\D1\80\D0\B8\D0\BB\D0\B5\D0\B3\D0\B0\D1\8E\D1\89\D0\B8\D0\B9 \D0\BA \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B5 c \D1\83\D0\B3\D0\BE\D0\BB B=\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 ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %3)
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.7, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.8, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%13 = load float, float* %1
%14 = fsub float 1.800000e+02, %13
%15 = load float, float* %2
%16 = fsub float %14, %15
%17 = load float, float* %3
%18 = call float @sin(float %13)
%19 = fmul float %17, %18
%20 = call float @sin(float %16)
%21 = fdiv float %19, %20
%22 = load float, float* %3
%23 = load float, float* %2
%24 = call float @sin(float %23)
%25 = fmul float %22, %24
%26 = call float @sin(float %16)
%27 = fdiv float %25, %26
%28 = fpext float %16 to double
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), double %28)
%30 = fpext float %21 to double
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), double %30)
%32 = fpext float %27 to double
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), double %32)
ret i32 0
}