#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 *);
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if (a >= b) {
    int x;
    x = a;
    a = b;
    b = x;
  }
  if (c <= b) {
    int y;
    y = b;
    b = c;
    c = y;
  }
  if ("a>=c") {
    int z;
    z = c;
    c = a;
    a = z;
  }
  if (a + b <= c) {
    printf("Invalid Triangle");
  } else {
    if (a * a + b * b == c * c) {
      printf("Right Triangle");
    } else if (a * a + b * b > c * c) {
      printf("Acute Triangle");
    } else {
      printf("Obtuse Triangle");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     1165 <main+0x45>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1183 <main+0x63>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    $0x1,%al
test   $0x1,%al
jne    1192 <main+0x72>
jmp    11a4 <main+0x84>
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     11c4 <main+0xa4>
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
jmp    123a <main+0x11a>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    %ecx,%eax
mov    -0x10(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cmp    %ecx,%eax
jne    11f4 <main+0xd4>
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
jmp    1235 <main+0x115>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    %ecx,%eax
mov    -0x10(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cmp    %ecx,%eax
jle    1224 <main+0x104>
lea    0xe14(%rip),%rdi
call   1030 <printf@plt>
jmp    1230 <main+0x110>
lea    0xe12(%rip),%rdi
call   1030 <printf@plt>
jmp    1235 <main+0x115>
jmp    123a <main+0x11a>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
mov    0xc(%rsp),%edx
cmp    %edx,%eax
jge    1151 <main+0x31>
mov    %eax,%ecx
mov    %edx,%eax
jmp    1157 <main+0x37>
mov    %eax,0xc(%rsp)
mov    %edx,%ecx
mov    0x10(%rsp),%esi
cmp    %eax,%esi
jle    1165 <main+0x45>
mov    %eax,%edx
mov    %esi,%eax
jmp    116b <main+0x4b>
mov    %esi,0xc(%rsp)
mov    %esi,%edx
mov    %ecx,0x10(%rsp)
mov    %eax,0x14(%rsp)
lea    (%rdx,%rax,1),%esi
cmp    %ecx,%esi
jle    1192 <main+0x72>
imul   %eax,%eax
imul   %edx,%edx
add    %eax,%edx
imul   %ecx,%ecx
cmp    %ecx,%edx
jne    119b <main+0x7b>
lea    0xe8a(%rip),%rdi
jmp    11ad <main+0x8d>
lea    0xe70(%rip),%rdi
jmp    11ad <main+0x8d>
lea    0xe87(%rip),%rax
lea    0xe8f(%rip),%rdi
cmova  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [5 x i8] c"a>=c\00"
@.str.2 = [17 x i8] c"Invalid Triangle\00"
@.str.3 = [15 x i8] c"Right Triangle\00"
@.str.4 = [15 x i8] c"Acute Triangle\00"
@.str.5 = [16 x i8] c"Obtuse Triangle\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
store i32 0, i32* %1
%8 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = load i32, i32* %2
store i32 %13, i32* %5
%14 = load i32, i32* %3
store i32 %14, i32* %2
%15 = load i32, i32* %5
store i32 %15, i32* %3
br label %16
16: ; preds = %12, %0
%17 = load i32, i32* %4
%18 = load i32, i32* %3
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, i32* %3
store i32 %21, i32* %6
%22 = load i32, i32* %4
store i32 %22, i32* %3
%23 = load i32, i32* %6
store i32 %23, i32* %4
br label %24
24: ; preds = %20, %16
br i1 true, label %25, label %29
25: ; preds = %24
%26 = load i32, i32* %4
store i32 %26, i32* %7
%27 = load i32, i32* %2
store i32 %27, i32* %4
%28 = load i32, i32* %7
store i32 %28, i32* %2
br label %29
29: ; preds = %25, %24
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = add nsw i32 %30, %31
%33 = load i32, i32* %4
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
br label %69
37: ; preds = %29
%38 = load i32, i32* %2
%39 = load i32, i32* %2
%40 = mul nsw i32 %38, %39
%41 = load i32, i32* %3
%42 = load i32, i32* %3
%43 = mul nsw i32 %41, %42
%44 = add nsw i32 %40, %43
%45 = load i32, i32* %4
%46 = load i32, i32* %4
%47 = mul nsw i32 %45, %46
%48 = icmp eq i32 %44, %47
br i1 %48, label %49, label %51
49: ; preds = %37
%50 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %68
51: ; preds = %37
%52 = load i32, i32* %2
%53 = load i32, i32* %2
%54 = mul nsw i32 %52, %53
%55 = load i32, i32* %3
%56 = load i32, i32* %3
%57 = mul nsw i32 %55, %56
%58 = add nsw i32 %54, %57
%59 = load i32, i32* %4
%60 = load i32, i32* %4
%61 = mul nsw i32 %59, %60
%62 = icmp sgt i32 %58, %61
br i1 %62, label %63, label %65
63: ; preds = %51
%64 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %67
65: ; preds = %51
%66 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %67
67: ; preds = %65, %63
br label %68
68: ; preds = %67, %49
br label %69
69: ; preds = %68, %35
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@.str.2 = [17 x i8] c"Invalid Triangle\00"
@.str.3 = [15 x i8] c"Right Triangle\00"
@.str.4 = [15 x i8] c"Acute Triangle\00"
@.str.5 = [16 x i8] c"Obtuse Triangle\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 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
br i1 %10, label %12, label %11
11: ; preds = %0
store i32 %8, i32* %2
br label %12
12: ; preds = %11, %0
%13 = phi i32 [ %9, %11 ], [ %8, %0 ]
%14 = phi i32 [ %8, %11 ], [ %9, %0 ]
%15 = load i32, i32* %3
%16 = icmp sgt i32 %15, %14
br i1 %16, label %18, label %17
17: ; preds = %12
store i32 %15, i32* %2
br label %18
18: ; preds = %12, %17
%19 = phi i32 [ %14, %12 ], [ %15, %17 ]
%20 = phi i32 [ %15, %12 ], [ %14, %17 ]
store i32 %13, i32* %3
store i32 %20, i32* %1
%21 = add nsw i32 %19, %20
%22 = icmp sgt i32 %21, %13
br i1 %22, label %23, label %32
23: ; preds = %18
%24 = mul nsw i32 %20, %20
%25 = mul nsw i32 %19, %19
%26 = add nuw nsw i32 %25, %24
%27 = mul nsw i32 %13, %13
%28 = icmp eq i32 %26, %27
br i1 %28, label %32, label %29
29: ; preds = %23
%30 = icmp ugt i32 %26, %27
%31 = select i1 %30, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0)
br label %32
32: ; preds = %29, %23, %18
%33 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), %18 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), %23 ], [ %31, %29 ]
%34 = call i32 @printf(i8* dereferenceable(1) %33)
ret i32 0
}