#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 num1, num2, num3;
  printf("Num1: ");
  scanf("%i", &num1);
  printf("Num2: ");
  scanf("%i", &num2);
  printf("Num3: ");
  scanf("%i", &num3);
  if (num1 == num2 && num1 == num3)
    printf("Triangulo Equilatero");
  else if (num1 != num2 && num1 != num3 && num3 != num2)
    printf("Triangulo Escaleno");
  else
    printf("Triangulo Isosceles");
}


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    0xec5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
lea    0xe8d(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    11ac <main+0x8c>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    11ac <main+0x8c>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
jmp    11f2 <main+0xd2>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     11e1 <main+0xc1>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     11e1 <main+0xc1>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     11e1 <main+0xc1>
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
jmp    11ed <main+0xcd>
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
jmp    11f2 <main+0xd2>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
lea    0xecf(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0xc(%rsp),%edx
mov    0x8(%rsp),%eax
mov    0x4(%rsp),%ecx
cmp    %eax,%edx
jne    1194 <main+0x74>
cmp    %ecx,%edx
jne    1194 <main+0x74>
lea    0xe86(%rip),%rdi
jmp    11b0 <main+0x90>
cmp    %eax,%edx
je     11a9 <main+0x89>
cmp    %ecx,%edx
je     11a9 <main+0x89>
cmp    %eax,%ecx
je     11a9 <main+0x89>
lea    0xe86(%rip),%rdi
jmp    11b0 <main+0x90>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"Num1: \00"
@.str.1 = [3 x i8] c"%i\00"
@.str.2 = [7 x i8] c"Num2: \00"
@.str.3 = [7 x i8] c"Num3: \00"
@.str.4 = [21 x i8] c"Triangulo Equilatero\00"
@.str.5 = [19 x i8] c"Triangulo Escaleno\00"
@.str.6 = [20 x i8] c"Triangulo Isosceles\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 ([7 x i8], [7 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 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%9 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %20
14: ; preds = %0
%15 = load i32, i32* %2
%16 = load i32, i32* %4
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
br label %37
20: ; preds = %14, %0
%21 = load i32, i32* %2
%22 = load i32, i32* %3
%23 = icmp ne i32 %21, %22
br i1 %23, label %24, label %34
24: ; preds = %20
%25 = load i32, i32* %2
%26 = load i32, i32* %4
%27 = icmp ne i32 %25, %26
br i1 %27, label %28, label %34
28: ; preds = %24
%29 = load i32, i32* %4
%30 = load i32, i32* %3
%31 = icmp ne i32 %29, %30
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %36
34: ; preds = %28, %24, %20
%35 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
br label %36
36: ; preds = %34, %32
br label %37
37: ; preds = %36, %18
%38 = load i32, i32* %1
ret i32 %38
}

LLVM IR (-O2):
@.str = [7 x i8] c"Num1: \00"
@.str.1 = [3 x i8] c"%i\00"
@.str.2 = [7 x i8] c"Num2: \00"
@.str.3 = [7 x i8] c"Num3: \00"
@.str.4 = [21 x i8] c"Triangulo Equilatero\00"
@.str.5 = [19 x i8] c"Triangulo Escaleno\00"
@.str.6 = [20 x i8] c"Triangulo Isosceles\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 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 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 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%13 = load i32, i32* %1
%14 = load i32, i32* %2
%15 = icmp eq i32 %13, %14
%16 = load i32, i32* %3
%17 = icmp eq i32 %13, %16
%18 = select i1 %15, i1 %17, i1 false
br i1 %18, label %24, label %19
19: ; preds = %0
br i1 %15, label %23, label %20
20: ; preds = %19
%21 = icmp eq i32 %16, %14
%22 = select i1 %17, i1 true, i1 %21
br i1 %22, label %23, label %24
23: ; preds = %20, %19
br label %24
24: ; preds = %20, %0, %23
%25 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), %23 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), %20 ]
%26 = call i32 @printf(i8* dereferenceable(1) %25)
ret i32 0
}