#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 *, int *, int *, int *);
main() {
  int a, b, c;
  printf("Введите три нулевых числа\n");
  scanf("%d%d%d", &a, &b, &c);
  if (a != 0 && b != 0 && c != 0) {
    if (a * a == b * b + c * c || b * b == a * a + c * c ||
        c * c == a * a + b * b)
      printf("Эти числа чвляются сторонами треугольника\n");
    else
      printf("Эти числа не являются сторонами треугольника\n");
  } else
    printf("Числа не являются нулевыми\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
je     11f0 <main+0xd0>
cmpl   $0x0,-0xc(%rbp)
je     11f0 <main+0xd0>
cmpl   $0x0,-0x10(%rbp)
je     11f0 <main+0xd0>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0xc(%rbp),%ecx
mov    -0x10(%rbp),%edx
imul   -0x10(%rbp),%edx
add    %edx,%ecx
cmp    %ecx,%eax
je     11ce <main+0xae>
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
imul   -0x8(%rbp),%ecx
mov    -0x10(%rbp),%edx
imul   -0x10(%rbp),%edx
add    %edx,%ecx
cmp    %ecx,%eax
je     11ce <main+0xae>
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
mov    -0x8(%rbp),%ecx
imul   -0x8(%rbp),%ecx
mov    -0xc(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
cmp    %ecx,%eax
jne    11df <main+0xbf>
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
jmp    11eb <main+0xcb>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xedc(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
lea    0xee1(%rip),%rdi
test   %eax,%eax
je     119b <main+0x7b>
mov    0x10(%rsp),%ecx
test   %ecx,%ecx
je     119b <main+0x7b>
mov    0xc(%rsp),%edx
test   %edx,%edx
je     119b <main+0x7b>
imul   %eax,%eax
imul   %ecx,%ecx
imul   %edx,%edx
lea    (%rcx,%rax,1),%esi
cmp    %esi,%edx
lea    0xf3e(%rip),%r8
lea    0xee3(%rip),%rdi
cmove  %r8,%rdi
lea    (%rdx,%rax,1),%esi
cmp    %esi,%ecx
cmove  %r8,%rdi
add    %edx,%ecx
cmp    %ecx,%eax
cmove  %r8,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [49 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\82\D1\80\D0\B8 \D0\BD\D1\83\D0\BB\D0\B5\D0\B2\D1\8B\D1\85 \D1\87\D0\B8\D1\81\D0\BB\D0\B0\0A\00"
@.str.1 = [7 x i8] c"%d%d%d\00"
@.str.2 = [80 x i8] c"\D0\AD\D1\82\D0\B8 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 \D1\87\D0\B2\D0\BB\D1\8F\D1\8E\D1\82\D1\81\D1\8F \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\D0\BC\D0\B8 \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 = [85 x i8] c"\D0\AD\D1\82\D0\B8 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 \D0\BD\D0\B5 \D1\8F\D0\B2\D0\BB\D1\8F\D1\8E\D1\82\D1\81\D1\8F \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\D0\BC\D0\B8 \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 = [51 x i8] c"\D0\A7\D0\B8\D1\81\D0\BB\D0\B0 \D0\BD\D0\B5 \D1\8F\D0\B2\D0\BB\D1\8F\D1\8E\D1\82\D1\81\D1\8F \D0\BD\D1\83\D0\BB\D0\B5\D0\B2\D1\8B\D0\BC\D0\B8\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%7 = load i32, i32* %2
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %56
9: ; preds = %0
%10 = load i32, i32* %3
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %56
12: ; preds = %9
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %56
15: ; preds = %12
%16 = load i32, i32* %2
%17 = load i32, i32* %2
%18 = mul nsw i32 %16, %17
%19 = load i32, i32* %3
%20 = load i32, i32* %3
%21 = mul nsw i32 %19, %20
%22 = load i32, i32* %4
%23 = load i32, i32* %4
%24 = mul nsw i32 %22, %23
%25 = add nsw i32 %21, %24
%26 = icmp eq i32 %18, %25
br i1 %26, label %51, label %27
27: ; preds = %15
%28 = load i32, i32* %3
%29 = load i32, i32* %3
%30 = mul nsw i32 %28, %29
%31 = load i32, i32* %2
%32 = load i32, i32* %2
%33 = mul nsw i32 %31, %32
%34 = load i32, i32* %4
%35 = load i32, i32* %4
%36 = mul nsw i32 %34, %35
%37 = add nsw i32 %33, %36
%38 = icmp eq i32 %30, %37
br i1 %38, label %51, label %39
39: ; preds = %27
%40 = load i32, i32* %4
%41 = load i32, i32* %4
%42 = mul nsw i32 %40, %41
%43 = load i32, i32* %2
%44 = load i32, i32* %2
%45 = mul nsw i32 %43, %44
%46 = load i32, i32* %3
%47 = load i32, i32* %3
%48 = mul nsw i32 %46, %47
%49 = add nsw i32 %45, %48
%50 = icmp eq i32 %42, %49
br i1 %50, label %51, label %53
51: ; preds = %39, %27, %15
%52 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.2, i64 0, i64 0))
br label %55
53: ; preds = %39
%54 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.3, i64 0, i64 0))
br label %55
55: ; preds = %53, %51
br label %58
56: ; preds = %12, %9, %0
%57 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
br label %58
58: ; preds = %56, %55
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"%d%d%d\00"
@str = [48 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\82\D1\80\D0\B8 \D0\BD\D1\83\D0\BB\D0\B5\D0\B2\D1\8B\D1\85 \D1\87\D0\B8\D1\81\D0\BB\D0\B0\00"
@str.5 = [50 x i8] c"\D0\A7\D0\B8\D1\81\D0\BB\D0\B0 \D0\BD\D0\B5 \D1\8F\D0\B2\D0\BB\D1\8F\D1\8E\D1\82\D1\81\D1\8F \D0\BD\D1\83\D0\BB\D0\B5\D0\B2\D1\8B\D0\BC\D0\B8\00"
@str.6 = [84 x i8] c"\D0\AD\D1\82\D0\B8 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 \D0\BD\D0\B5 \D1\8F\D0\B2\D0\BB\D1\8F\D1\8E\D1\82\D1\81\D1\8F \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\D0\BC\D0\B8 \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.7 = [79 x i8] c"\D0\AD\D1\82\D0\B8 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 \D1\87\D0\B2\D0\BB\D1\8F\D1\8E\D1\82\D1\81\D1\8F \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D0\B0\D0\BC\D0\B8 \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"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%9 = load i32, i32* %1
%10 = icmp ne i32 %9, 0
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 0
%13 = select i1 %10, i1 %12, i1 false
%14 = load i32, i32* %3
%15 = icmp ne i32 %14, 0
%16 = select i1 %13, i1 %15, i1 false
br i1 %16, label %17, label %30
17: ; preds = %0
%18 = mul nsw i32 %9, %9
%19 = mul nsw i32 %11, %11
%20 = mul nsw i32 %14, %14
%21 = add nuw nsw i32 %20, %19
%22 = icmp eq i32 %18, %21
%23 = add nuw nsw i32 %20, %18
%24 = icmp eq i32 %19, %23
%25 = select i1 %22, i1 true, i1 %24
%26 = add nuw nsw i32 %19, %18
%27 = icmp eq i32 %20, %26
%28 = select i1 %25, i1 true, i1 %27
%29 = select i1 %28, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @str.7, i64 0, i64 0), i8* getelementptr inbounds ([84 x i8], [84 x i8]* @str.6, i64 0, i64 0)
br label %30
30: ; preds = %0, %17
%31 = phi i8* [ %29, %17 ], [ getelementptr inbounds ([50 x i8], [50 x i8]* @str.5, i64 0, i64 0), %0 ]
%32 = call i32 @puts(i8* dereferenceable(1) %31)
ret i32 0
}