#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 *);
main() {
  int a, b, c;
  printf("Введите 3 числа , программа определит стороны  прямоугольного "
         "треугольника ли это\n");
  scanf("%d", &a);
  scanf("%d", &b);
  scanf("%d", &c);
  if (a * a == b * b + c * c || b * b == a * a + c * c ||
      c * c == a * a + b * b)
    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    0xf55(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xf45(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xf35(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
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     11c8 <main+0xa8>
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     11c8 <main+0xa8>
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    11d9 <main+0xb9>
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
jmp    11e5 <main+0xc5>
lea    0xf0b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
lea    0xec8(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
imul   %eax,%eax
mov    0x8(%rsp),%ecx
imul   %ecx,%ecx
mov    0x4(%rsp),%edx
imul   %edx,%edx
lea    (%rcx,%rax,1),%esi
cmp    %esi,%edx
lea    0xf6f(%rip),%rsi
lea    0xf12(%rip),%rdi
cmove  %rsi,%rdi
lea    (%rdx,%rax,1),%ebx
cmp    %ebx,%ecx
cmove  %rsi,%rdi
add    %edx,%ecx
cmp    %ecx,%eax
cmove  %rsi,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@str = [150 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 3 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 , \D0\BF\D1\80\D0\BE\D0\B3\D1\80\D0\B0\D0\BC\D0\BC\D0\B0 \D0\BE\D0\BF\D1\80\D0\B5\D0\B4\D0\B5\D0\BB\D0\B8\D1\82 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D1\8B \D0\BF\D1\80\D1\8F\D0\BC\D0\BE\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\BE\D0\B3\D0\BE \D1\82\D1\80\D0\B5\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\B8\D0\BA\D0\B0 \D0\BB\D0\B8 \D1\8D\D1\82\D0\BE\00"
@str.4 = [86 x i8] c"\D0\A7\D0\B8\D1\81\D0\BB\D0\B0 -\D0\BD\D0\B5 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D1\8B \D0\BF\D1\80\D1\8F\D0\BC\D0\BE\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\BE\D0\B3\D0\BE \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.5 = [80 x i8] c"\D0\A7\D0\B8\D1\81\D0\BB\D0\B0 \D1\81\D1\82\D0\BE\D1\80\D0\BE\D0\BD\D1\8B \D0\BF\D1\80\D1\8F\D0\BC\D0\BE\D1\83\D0\B3\D0\BE\D0\BB\D1\8C\D0\BD\D0\BE\D0\B3\D0\BE \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 ([150 x i8], [150 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), i32* %1)
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%11 = load i32, i32* %1
%12 = mul nsw i32 %11, %11
%13 = load i32, i32* %2
%14 = mul nsw i32 %13, %13
%15 = load i32, i32* %3
%16 = mul nsw i32 %15, %15
%17 = add nuw nsw i32 %16, %14
%18 = icmp eq i32 %12, %17
%19 = add nuw nsw i32 %16, %12
%20 = icmp eq i32 %14, %19
%21 = select i1 %18, i1 true, i1 %20
%22 = add nuw nsw i32 %14, %12
%23 = icmp eq i32 %16, %22
%24 = select i1 %21, i1 true, i1 %23
%25 = select i1 %24, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([86 x i8], [86 x i8]* @str.4, i64 0, i64 0)
%26 = call i32 @puts(i8* dereferenceable(1) %25)
ret i32 0
}