#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 */
scalar_t__ powl(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int sqrt(scalar_t__);
main() {
  int Xa, Ya, Xb, Yb, Xc, Yc, AB, BC, AC;
  printf("Введите координаты первой вершины треугольника\n");
  scanf("%d", &Xa);
  scanf("%d", &Ya);
  printf("Введите координаты второй вершины треугольника\n");
  scanf("%d", &Xb);
  scanf("%d", &Yb);
  printf("Введите координаты третьей вершины треугольника\n");
  scanf("%d", &Xc);
  scanf("%d", &Yc);
  AB = sqrt(powl((Xa + Xb), 2) + powl((Ya + Yb), 2));
  BC = sqrt(powl((Xb + Xc), 2) + powl((Yb + Yc), 2));
  AB = sqrt(powl((Xa + Xc), 2) + powl((Ya + Yc), 2));
  if ((AB + BC) > AC && (AB + AC) > BC && (BC + AC) > AB) {
    printf("AB =%d\n", AB);
    printf("BC =%d\n", BC);
    printf("AC =%d\n", AC);
  } else
    printf("Введённые координаты и соответствующие им длины сторон не могут "
           "принадлежать треугольнику\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xee6(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec8(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xeb8(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe8a(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%edi
add    -0x10(%rbp),%edi
mov    $0x2,%esi
call   1030 <powl@plt>
mov    %rax,-0x40(%rbp)
mov    -0xc(%rbp),%edi
add    -0x14(%rbp),%edi
mov    $0x2,%esi
call   1030 <powl@plt>
mov    -0x40(%rbp),%rdi
add    %rax,%rdi
call   1060 <sqrt@plt>
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%edi
add    -0x18(%rbp),%edi
mov    $0x2,%esi
call   1030 <powl@plt>
mov    %rax,-0x38(%rbp)
mov    -0x14(%rbp),%edi
add    -0x1c(%rbp),%edi
mov    $0x2,%esi
call   1030 <powl@plt>
mov    -0x38(%rbp),%rdi
add    %rax,%rdi
call   1060 <sqrt@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%edi
add    -0x18(%rbp),%edi
mov    $0x2,%esi
call   1030 <powl@plt>
mov    %rax,-0x30(%rbp)
mov    -0xc(%rbp),%edi
add    -0x1c(%rbp),%edi
mov    $0x2,%esi
call   1030 <powl@plt>
mov    -0x30(%rbp),%rdi
add    %rax,%rdi
call   1060 <sqrt@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    -0x24(%rbp),%eax
cmp    -0x28(%rbp),%eax
jle    12d7 <main+0x197>
mov    -0x20(%rbp),%eax
add    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jle    12d7 <main+0x197>
mov    -0x24(%rbp),%eax
add    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jle    12d7 <main+0x197>
mov    -0x20(%rbp),%esi
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12e5 <main+0x1a5>
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
lea    0xea8(%rip),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    0x14(%rsp),%edi
add    0x1c(%rsp),%edi
mov    $0x2,%esi
call   1040 <powl@plt>
mov    %rax,%rbx
mov    0x10(%rsp),%edi
add    0x18(%rsp),%edi
mov    $0x2,%esi
call   1040 <powl@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1060 <sqrt@plt>
mov    0xc(%rsp),%edi
add    0x14(%rsp),%edi
mov    $0x2,%esi
call   1040 <powl@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%edi
add    0x10(%rsp),%edi
mov    $0x2,%esi
call   1040 <powl@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1060 <sqrt@plt>
mov    0xc(%rsp),%edi
add    0x1c(%rsp),%edi
mov    $0x2,%esi
call   1040 <powl@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%edi
add    0x18(%rsp),%edi
mov    $0x2,%esi
call   1040 <powl@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1060 <sqrt@plt>
lea    0xeb5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [90 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BA\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D0\BF\D0\B5\D1\80\D0\B2\D0\BE\D0\B9 \D0\B2\D0\B5\D1\80\D1\88\D0\B8\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\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [90 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BA\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D0\B2\D1\82\D0\BE\D1\80\D0\BE\D0\B9 \D0\B2\D0\B5\D1\80\D1\88\D0\B8\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\0A\00"
@.str.3 = [92 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BA\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D1\82\D1\80\D0\B5\D1\82\D1\8C\D0\B5\D0\B9 \D0\B2\D0\B5\D1\80\D1\88\D0\B8\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\0A\00"
@.str.4 = [8 x i8] c"AB =%d\0A\00"
@.str.5 = [8 x i8] c"BC =%d\0A\00"
@.str.6 = [8 x i8] c"AC =%d\0A\00"
@.str.7 = [170 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D1\91\D0\BD\D0\BD\D1\8B\D0\B5 \D0\BA\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D0\B8 \D1\81\D0\BE\D0\BE\D1\82\D0\B2\D0\B5\D1\82\D1\81\D1\82\D0\B2\D1\83\D1\8E\D1\89\D0\B8\D0\B5 \D0\B8\D0\BC \D0\B4\D0\BB\D0\B8\D0\BD\D1\8B \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD \D0\BD\D0\B5 \D0\BC\D0\BE\D0\B3\D1\83\D1\82 \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B0\D1\82\D1\8C \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D1\83\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%20 = load i32, i32* %2
%21 = load i32, i32* %4
%22 = add nsw i32 %20, %21
%23 = call i64 @powl(i32 %22, i32 2)
%24 = load i32, i32* %3
%25 = load i32, i32* %5
%26 = add nsw i32 %24, %25
%27 = call i64 @powl(i32 %26, i32 2)
%28 = add nsw i64 %23, %27
%29 = call i32 @sqrt(i64 %28)
store i32 %29, i32* %8
%30 = load i32, i32* %4
%31 = load i32, i32* %6
%32 = add nsw i32 %30, %31
%33 = call i64 @powl(i32 %32, i32 2)
%34 = load i32, i32* %5
%35 = load i32, i32* %7
%36 = add nsw i32 %34, %35
%37 = call i64 @powl(i32 %36, i32 2)
%38 = add nsw i64 %33, %37
%39 = call i32 @sqrt(i64 %38)
store i32 %39, i32* %9
%40 = load i32, i32* %2
%41 = load i32, i32* %6
%42 = add nsw i32 %40, %41
%43 = call i64 @powl(i32 %42, i32 2)
%44 = load i32, i32* %3
%45 = load i32, i32* %7
%46 = add nsw i32 %44, %45
%47 = call i64 @powl(i32 %46, i32 2)
%48 = add nsw i64 %43, %47
%49 = call i32 @sqrt(i64 %48)
store i32 %49, i32* %8
%50 = load i32, i32* %8
%51 = load i32, i32* %9
%52 = add nsw i32 %50, %51
%53 = load i32, i32* %10
%54 = icmp sgt i32 %52, %53
br i1 %54, label %55, label %74
55: ; preds = %0
%56 = load i32, i32* %8
%57 = load i32, i32* %10
%58 = add nsw i32 %56, %57
%59 = load i32, i32* %9
%60 = icmp sgt i32 %58, %59
br i1 %60, label %61, label %74
61: ; preds = %55
%62 = load i32, i32* %9
%63 = load i32, i32* %10
%64 = add nsw i32 %62, %63
%65 = load i32, i32* %8
%66 = icmp sgt i32 %64, %65
br i1 %66, label %67, label %74
67: ; preds = %61
%68 = load i32, i32* %8
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %9
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %10
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %72)
br label %76
74: ; preds = %61, %55, %0
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.7, i64 0, i64 0))
br label %76
76: ; preds = %74, %67
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@str = [89 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BA\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D0\BF\D0\B5\D1\80\D0\B2\D0\BE\D0\B9 \D0\B2\D0\B5\D1\80\D1\88\D0\B8\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\00"
@str.8 = [89 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BA\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D0\B2\D1\82\D0\BE\D1\80\D0\BE\D0\B9 \D0\B2\D0\B5\D1\80\D1\88\D0\B8\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\00"
@str.9 = [91 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\BA\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D1\82\D1\80\D0\B5\D1\82\D1\8C\D0\B5\D0\B9 \D0\B2\D0\B5\D1\80\D1\88\D0\B8\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\00"
@str.10 = [169 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D1\91\D0\BD\D0\BD\D1\8B\D0\B5 \D0\BA\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D0\B8 \D1\81\D0\BE\D0\BE\D1\82\D0\B2\D0\B5\D1\82\D1\81\D1\82\D0\B2\D1\83\D1\8E\D1\89\D0\B8\D0\B5 \D0\B8\D0\BC \D0\B4\D0\BB\D0\B8\D0\BD\D1\8B \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD \D0\BD\D0\B5 \D0\BC\D0\BE\D0\B3\D1\83\D1\82 \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B0\D1\82\D1\8C \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D1\83\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.8, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.9, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%22 = load i32, i32* %1
%23 = load i32, i32* %3
%24 = add nsw i32 %23, %22
%25 = call i64 @powl(i32 %24, i32 2)
%26 = load i32, i32* %2
%27 = load i32, i32* %4
%28 = add nsw i32 %27, %26
%29 = call i64 @powl(i32 %28, i32 2)
%30 = add nsw i64 %29, %25
%31 = call i32 @sqrt(i64 %30)
%32 = load i32, i32* %3
%33 = load i32, i32* %5
%34 = add nsw i32 %33, %32
%35 = call i64 @powl(i32 %34, i32 2)
%36 = load i32, i32* %4
%37 = load i32, i32* %6
%38 = add nsw i32 %37, %36
%39 = call i64 @powl(i32 %38, i32 2)
%40 = add nsw i64 %39, %35
%41 = call i32 @sqrt(i64 %40)
%42 = load i32, i32* %1
%43 = load i32, i32* %5
%44 = add nsw i32 %43, %42
%45 = call i64 @powl(i32 %44, i32 2)
%46 = load i32, i32* %2
%47 = load i32, i32* %6
%48 = add nsw i32 %47, %46
%49 = call i64 @powl(i32 %48, i32 2)
%50 = add nsw i64 %49, %45
%51 = call i32 @sqrt(i64 %50)
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([169 x i8], [169 x i8]* @str.10, i64 0, i64 0))
ret i32 0
}