#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 main() {
  int a, b, c;
  scanf("%d", &a);
  scanf("%d", &b);
  scanf("%d", &c);
  if (a > 0 && b > 0 && c > 0 && a < b + c && b < a + c && c < a + b) {
    if (a == b && b == c)
      printf("%s", "Triangulo equilatero.");
    else
      printf("%s", (a == b || b == c || c == a) ? "Triangulo isosceles."
                                                : "Triangulo escaleno.");
  } else
    printf("Nao e possivel formar um triangulo.");
}


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
call   1040 <scanf@plt>
lea    0xeba(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeaa(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    123b <main+0x11b>
cmpl   $0x0,-0xc(%rbp)
jle    123b <main+0x11b>
cmpl   $0x0,-0x10(%rbp)
jle    123b <main+0x11b>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    -0x10(%rbp),%ecx
cmp    %ecx,%eax
jge    123b <main+0x11b>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0x10(%rbp),%ecx
cmp    %ecx,%eax
jge    123b <main+0x11b>
mov    -0x10(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
cmp    %ecx,%eax
jge    123b <main+0x11b>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    11e2 <main+0xc2>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    11e2 <main+0xc2>
lea    0xe34(%rip),%rdi
lea    0xe30(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1236 <main+0x116>
mov    -0x8(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x11(%rbp)
je     1210 <main+0xf0>
mov    -0xc(%rbp),%ecx
mov    $0x1,%al
cmp    -0x10(%rbp),%ecx
mov    %al,-0x11(%rbp)
je     1210 <main+0xf0>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
sete   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%cl
lea    0xe17(%rip),%rsi
lea    0xdfb(%rip),%rax
test   $0x1,%cl
cmovne %rax,%rsi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1249 <main+0x129>
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%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
test   %eax,%eax
jle    1198 <main+0x78>
mov    0x8(%rsp),%ecx
test   %ecx,%ecx
jle    1198 <main+0x78>
mov    0x4(%rsp),%edx
test   %edx,%edx
jle    1198 <main+0x78>
lea    (%rdx,%rcx,1),%esi
cmp    %esi,%eax
jge    1198 <main+0x78>
lea    (%rdx,%rax,1),%esi
cmp    %esi,%ecx
jge    1198 <main+0x78>
lea    (%rcx,%rax,1),%esi
cmp    %esi,%edx
jge    1198 <main+0x78>
cmp    %ecx,%eax
jne    11a8 <main+0x88>
cmp    %edx,%ecx
jne    11a8 <main+0x88>
lea    0xe74(%rip),%rdi
lea    0xe70(%rip),%rsi
jmp    11cf <main+0xaf>
lea    0xea6(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11d6 <main+0xb6>
cmp    %eax,%edx
lea    0xe6b(%rip),%rdi
lea    0xe79(%rip),%rsi
cmove  %rdi,%rsi
cmp    %edx,%ecx
cmove  %rdi,%rsi
cmp    %ecx,%eax
cmove  %rdi,%rsi
lea    0xe34(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [22 x i8] c"Triangulo equilatero.\00"
@.str.3 = [21 x i8] c"Triangulo isosceles.\00"
@.str.4 = [20 x i8] c"Triangulo escaleno.\00"
@.str.5 = [36 x i8] c"Nao e possivel formar um triangulo.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %62
10: ; preds = %0
%11 = load i32, i32* %3
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %62
13: ; preds = %10
%14 = load i32, i32* %4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %62
16: ; preds = %13
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = add nsw i32 %18, %19
%21 = icmp slt i32 %17, %20
br i1 %21, label %22, label %62
22: ; preds = %16
%23 = load i32, i32* %3
%24 = load i32, i32* %2
%25 = load i32, i32* %4
%26 = add nsw i32 %24, %25
%27 = icmp slt i32 %23, %26
br i1 %27, label %28, label %62
28: ; preds = %22
%29 = load i32, i32* %4
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = add nsw i32 %30, %31
%33 = icmp slt i32 %29, %32
br i1 %33, label %34, label %62
34: ; preds = %28
%35 = load i32, i32* %2
%36 = load i32, i32* %3
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %44
38: ; preds = %34
%39 = load i32, i32* %3
%40 = load i32, i32* %4
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %61
44: ; preds = %38, %34
%45 = load i32, i32* %2
%46 = load i32, i32* %3
%47 = icmp eq i32 %45, %46
br i1 %47, label %56, label %48
48: ; preds = %44
%49 = load i32, i32* %3
%50 = load i32, i32* %4
%51 = icmp eq i32 %49, %50
br i1 %51, label %56, label %52
52: ; preds = %48
%53 = load i32, i32* %4
%54 = load i32, i32* %2
%55 = icmp eq i32 %53, %54
br label %56
56: ; preds = %52, %48, %44
%57 = phi i1 [ true, %48 ], [ true, %44 ], [ %55, %52 ]
%58 = zext i1 %57 to i64
%59 = select i1 %57, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %59)
br label %61
61: ; preds = %56, %42
br label %64
62: ; preds = %28, %22, %16, %13, %10, %0
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
br label %64
64: ; preds = %62, %61
%65 = load i32, i32* %1
ret i32 %65
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [22 x i8] c"Triangulo equilatero.\00"
@.str.3 = [21 x i8] c"Triangulo isosceles.\00"
@.str.4 = [20 x i8] c"Triangulo escaleno.\00"
@.str.5 = [36 x i8] c"Nao e possivel formar um triangulo.\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 ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%10 = load i32, i32* %1
%11 = icmp sgt i32 %10, 0
%12 = load i32, i32* %2
%13 = icmp sgt i32 %12, 0
%14 = select i1 %11, i1 %13, i1 false
%15 = load i32, i32* %3
%16 = icmp sgt i32 %15, 0
%17 = select i1 %14, i1 %16, i1 false
%18 = add nsw i32 %15, %12
%19 = icmp slt i32 %10, %18
%20 = select i1 %17, i1 %19, i1 false
%21 = add nsw i32 %15, %10
%22 = icmp slt i32 %12, %21
%23 = select i1 %20, i1 %22, i1 false
%24 = add nsw i32 %12, %10
%25 = icmp slt i32 %15, %24
%26 = select i1 %23, i1 %25, i1 false
br i1 %26, label %27, label %39
27: ; preds = %0
%28 = icmp eq i32 %10, %12
%29 = icmp eq i32 %12, %15
%30 = select i1 %28, i1 %29, i1 false
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %41
33: ; preds = %27
%34 = select i1 %28, i1 true, i1 %29
%35 = icmp eq i32 %15, %10
%36 = select i1 %34, i1 true, i1 %35
%37 = select i1 %36, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %37)
br label %41
39: ; preds = %0
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
br label %41
41: ; preds = %31, %33, %39
ret i32 0
}