#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 *, ...);
main() {
  int a, b, C;
  float R, d, f, g, sinC, sinb, sina;
  printf("Введите 2 угла a , b и Радиус описанной окружности R\n");
  printf("1 угол =");
  scanf("%d\n", &a);
  printf("2 угол =");
  scanf("%d\n", &b);
  printf("Радиус =");
  scanf("%f\n", &R);
  if (a > 0 && b > 0 && R > 0) {
    C = (a + b) - 180;
    printf("%d 3угол\n", C);
    d = 2 * R * sina;
    printf("%f\n 1 сторона");
    f = 2 * R * sinb;
    printf("%f\n 2 сторона");
    g = 2 * R * sinC;
    printf("%f\n 3 сторона");
  } else
    printf("Введите другие числа");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    1255 <main+0x135>
cmpl   $0x0,-0xc(%rbp)
jle    1255 <main+0x135>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1255 <main+0x135>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
sub    $0xb4,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xe17(%rip),%xmm0
mulss  -0x14(%rbp),%xmm0
mulss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xdf2(%rip),%xmm0
mulss  -0x14(%rbp),%xmm0
mulss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xdcd(%rip),%xmm0
mulss  -0x14(%rbp),%xmm0
mulss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1263 <main+0x143>
lea    0xe81(%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    $0x10,%rsp
lea    0xf69(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb7(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xe95(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe96(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
lea    0xed0(%rip),%rdi
test   %eax,%eax
jle    1202 <main+0xd2>
mov    0x8(%rsp),%ecx
test   %ecx,%ecx
jle    1202 <main+0xd2>
movss  0x4(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1202 <main+0xd2>
lea    (%rax,%rcx,1),%esi
add    $0xffffff4c,%esi
lea    0xe59(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe59(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe60(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe67(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [91 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 2 \D1\83\D0\B3\D0\BB\D0\B0 a , b \D0\B8 \D0\A0\D0\B0\D0\B4\D0\B8\D1\83\D1\81 \D0\BE\D0\BF\D0\B8\D1\81\D0\B0\D0\BD\D0\BD\D0\BE\D0\B9 \D0\BE\D0\BA\D1\80\D1\83\D0\B6\D0\BD\D0\BE\D1\81\D1\82\D0\B8 R\0A\00"
@.str.1 = [13 x i8] c"1 \D1\83\D0\B3\D0\BE\D0\BB =\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [13 x i8] c"2 \D1\83\D0\B3\D0\BE\D0\BB =\00"
@.str.4 = [15 x i8] c"\D0\A0\D0\B0\D0\B4\D0\B8\D1\83\D1\81 =\00"
@.str.5 = [4 x i8] c"%f\0A\00"
@.str.6 = [14 x i8] c"%d 3\D1\83\D0\B3\D0\BE\D0\BB\0A\00"
@.str.7 = [21 x i8] c"%f\0A 1 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\00"
@.str.8 = [21 x i8] c"%f\0A 2 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\00"
@.str.9 = [21 x i8] c"%f\0A 3 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\00"
@.str.10 = [39 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B4\D1\80\D1\83\D0\B3\D0\B8\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\B0\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
store i32 0, i32* %1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), float* %5)
%19 = load i32, i32* %2
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %49
21: ; preds = %0
%22 = load i32, i32* %3
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %49
24: ; preds = %21
%25 = load float, float* %5
%26 = fcmp ogt float %25, 0.000000e+00
br i1 %26, label %27, label %49
27: ; preds = %24
%28 = load i32, i32* %2
%29 = load i32, i32* %3
%30 = add nsw i32 %28, %29
%31 = sub nsw i32 %30, 180
store i32 %31, i32* %4
%32 = load i32, i32* %4
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %32)
%34 = load float, float* %5
%35 = fmul float 2.000000e+00, %34
%36 = load float, float* %11
%37 = fmul float %35, %36
store float %37, float* %6
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%39 = load float, float* %5
%40 = fmul float 2.000000e+00, %39
%41 = load float, float* %10
%42 = fmul float %40, %41
store float %42, float* %7
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%44 = load float, float* %5
%45 = fmul float 2.000000e+00, %44
%46 = load float, float* %9
%47 = fmul float %45, %46
store float %47, float* %8
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
br label %51
49: ; preds = %24, %21, %0
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0))
br label %51
51: ; preds = %49, %27
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [13 x i8] c"1 \D1\83\D0\B3\D0\BE\D0\BB =\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [13 x i8] c"2 \D1\83\D0\B3\D0\BE\D0\BB =\00"
@.str.4 = [15 x i8] c"\D0\A0\D0\B0\D0\B4\D0\B8\D1\83\D1\81 =\00"
@.str.5 = [4 x i8] c"%f\0A\00"
@.str.6 = [14 x i8] c"%d 3\D1\83\D0\B3\D0\BE\D0\BB\0A\00"
@.str.7 = [21 x i8] c"%f\0A 1 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\00"
@.str.8 = [21 x i8] c"%f\0A 2 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\00"
@.str.9 = [21 x i8] c"%f\0A 3 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\00"
@.str.10 = [39 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B4\D1\80\D1\83\D0\B3\D0\B8\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\B0\00"
@str = [90 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 2 \D1\83\D0\B3\D0\BB\D0\B0 a , b \D0\B8 \D0\A0\D0\B0\D0\B4\D0\B8\D1\83\D1\81 \D0\BE\D0\BF\D0\B8\D1\81\D0\B0\D0\BD\D0\BD\D0\BE\D0\B9 \D0\BE\D0\BA\D1\80\D1\83\D0\B6\D0\BD\D0\BE\D1\81\D1\82\D0\B8 R\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), float* %3)
%14 = load i32, i32* %1
%15 = icmp sgt i32 %14, 0
%16 = load i32, i32* %2
%17 = icmp sgt i32 %16, 0
%18 = select i1 %15, i1 %17, i1 false
%19 = load float, float* %3
%20 = fcmp ogt float %19, 0.000000e+00
%21 = select i1 %18, i1 %20, i1 false
br i1 %21, label %22, label %28
22: ; preds = %0
%23 = add nsw i32 %14, -180
%24 = add i32 %23, %16
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %24)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
br label %28
28: ; preds = %0, %22
%29 = phi i8* [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), %22 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), %0 ]
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %29)
ret i32 0
}