#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 */
double abs(double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *, double *, double *);
int main() {
  double a, b, c;
  double g1, g2, g3;
  scanf("%lf %lf %lf", &a, &b, &c);
  if (a > b) {
    if (a > c) {
      if (b > c) {
        g1 = a;
        g2 = b;
        g3 = c;
      } else {
        g1 = a;
        g2 = c;
        g3 = b;
      }
    } else {
      g1 = c;
      g2 = a;
      g3 = b;
    }
  } else if (b > c) {
    if (a > c) {
      g1 = b;
      g2 = a;
      g3 = c;
    } else {
      g1 = b;
      g2 = c;
      g3 = a;
    }
  } else {
    g1 = c;
    g2 = b;
    g3 = a;
  }
  printf("%f\n%f\n%f\n", g1, g2, g3);
  if (g1 >= g2 + g3) {
    printf("NAO FORMA TRIANGULO\n");
  }
  if ((g1 * g1) == (g2 * g2) + (g3 * g3)) {
    printf("TRIANGULO RETANGULO\n");
  }
  if ((g1 * g1) > ((g2 * g2) + (g3 * g3))) {
    printf("TRIANGULO OBTUSANGULO\n");
  }
  if ((g1 * g1) < (g2 * g2) + (g3 * g3)) {
    printf("TRIANGULO ACUTANGULO\n");
  }
  if ((abs(g1 - g2) < 0.001) && ((abs(g2 - g3) < 0.001))) {
    printf("TRIANGULO EQUILATERO\n");
  }
  if ((abs(g1 - g2) < 0.001) && (abs(g3 - g1) > 0.001)) {
    printf("TRIANGULO ISOSCELES\n");
  }
  if ((abs(g2 - g3) < 0.001) && (abs(g1 - g2) > 0.001)) {
    printf("TRIANGULO ISOSCELES\n");
  }
  if ((abs(g3 - g1) < 0.001) && (abs(g2 - g3) > 0.001)) {
    printf("TRIANGULO ISOSCELES\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec2(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1050 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    11f0 <main+0xc0>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    11cd <main+0x9d>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    11aa <main+0x7a>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    11c8 <main+0x98>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    11eb <main+0xbb>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    1279 <main+0x149>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    1256 <main+0x126>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    1233 <main+0x103>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    1251 <main+0x121>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    1274 <main+0x144>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    1279 <main+0x149>
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
lea    0xd85(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
addsd  -0x38(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jb     12bd <main+0x18d>
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm2
mulsd  -0x38(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jne    1301 <main+0x1d1>
jp     1301 <main+0x1d1>
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm2
mulsd  -0x38(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    133f <main+0x20f>
lea    0xd10(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm2
mulsd  -0x38(%rbp),%xmm2
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    137d <main+0x24d>
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
call   1030 <abs@plt>
movaps %xmm0,%xmm1
movsd  0xc69(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13d3 <main+0x2a3>
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
call   1030 <abs@plt>
movaps %xmm0,%xmm1
movsd  0xc45(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13d3 <main+0x2a3>
lea    0xca9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
call   1030 <abs@plt>
movaps %xmm0,%xmm1
movsd  0xc13(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1426 <main+0x2f6>
movsd  -0x38(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
call   1030 <abs@plt>
movsd  0xbf2(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1426 <main+0x2f6>
lea    0xc6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
call   1030 <abs@plt>
movaps %xmm0,%xmm1
movsd  0xbc0(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1479 <main+0x349>
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
call   1030 <abs@plt>
movsd  0xb9f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1479 <main+0x349>
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x38(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
call   1030 <abs@plt>
movaps %xmm0,%xmm1
movsd  0xb6d(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    14cc <main+0x39c>
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
call   1030 <abs@plt>
movsd  0xb4c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14cc <main+0x39c>
lea    0xbc6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
lea    0xebd(%rip),%rdi
lea    0x40(%rsp),%rsi
lea    0x38(%rsp),%rdx
lea    0x30(%rsp),%rcx
call   1060 <scanf@plt>
movsd  0x40(%rsp),%xmm2
movsd  0x38(%rsp),%xmm4
ucomisd %xmm4,%xmm2
movsd  0x30(%rsp),%xmm0
jbe    1197 <main+0x57>
ucomisd %xmm0,%xmm2
jbe    11b7 <main+0x77>
movapd %xmm4,%xmm1
maxsd  %xmm0,%xmm1
movapd %xmm0,%xmm3
minsd  %xmm4,%xmm3
movapd %xmm2,%xmm0
movapd %xmm3,%xmm2
jmp    11c5 <main+0x85>
ucomisd %xmm0,%xmm4
jbe    11c1 <main+0x81>
movapd %xmm2,%xmm1
maxsd  %xmm0,%xmm1
movapd %xmm0,%xmm3
minsd  %xmm2,%xmm3
movapd %xmm3,%xmm2
movapd %xmm4,%xmm0
jmp    11c5 <main+0x85>
movapd %xmm2,%xmm1
movapd %xmm4,%xmm2
jmp    11c5 <main+0x85>
movapd %xmm4,%xmm1
movsd  %xmm0,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm2,0x18(%rsp)
lea    0xe36(%rip),%rdi
movsd  0x18(%rsp),%xmm2
mov    $0x3,%al
call   1050 <printf@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
movsd  0x18(%rsp),%xmm1
movapd %xmm2,%xmm0
addsd  %xmm1,%xmm0
ucomisd %xmm0,%xmm3
jb     1229 <main+0xe9>
lea    0xe74(%rip),%rdi
call   1030 <puts@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
movsd  0x18(%rsp),%xmm1
movapd %xmm3,%xmm4
mulsd  %xmm3,%xmm4
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm2,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
ucomisd %xmm1,%xmm4
movsd  %xmm4,0x20(%rsp)
movsd  %xmm1,0x28(%rsp)
jne    127d <main+0x13d>
jp     127d <main+0x13d>
lea    0xe12(%rip),%rdi
call   1030 <puts@plt>
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
ucomisd %xmm1,%xmm4
jbe    12a7 <main+0x167>
lea    0xdd2(%rip),%rdi
call   1030 <puts@plt>
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
ucomisd %xmm4,%xmm1
jbe    12c5 <main+0x185>
lea    0xd93(%rip),%rdi
call   1030 <puts@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
movapd %xmm3,%xmm0
subsd  %xmm2,%xmm0
movsd  %xmm0,0x20(%rsp)
call   1040 <abs@plt>
movsd  0xd20(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1311 <main+0x1d1>
movsd  0x8(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
call   1040 <abs@plt>
movsd  0xd01(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1311 <main+0x1d1>
lea    0xd26(%rip),%rdi
call   1030 <puts@plt>
movsd  0x20(%rsp),%xmm0
call   1040 <abs@plt>
movsd  0xcdc(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1351 <main+0x211>
movsd  0x18(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
call   1040 <abs@plt>
ucomisd 0xcbd(%rip),%xmm0
jbe    1351 <main+0x211>
lea    0xcd2(%rip),%rdi
call   1030 <puts@plt>
movsd  0x8(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
call   1040 <abs@plt>
movsd  0xc90(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1397 <main+0x257>
movsd  0x20(%rsp),%xmm0
call   1040 <abs@plt>
ucomisd 0xc77(%rip),%xmm0
jbe    1397 <main+0x257>
lea    0xc8c(%rip),%rdi
call   1030 <puts@plt>
movsd  0x18(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
call   1040 <abs@plt>
movsd  0xc50(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    13d7 <main+0x297>
movsd  0x8(%rsp),%xmm0
call   1040 <abs@plt>
ucomisd 0xc37(%rip),%xmm0
jbe    13d7 <main+0x297>
lea    0xc4c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [10 x i8] c"%f\0A%f\0A%f\0A\00"
@.str.2 = [21 x i8] c"NAO FORMA TRIANGULO\0A\00"
@.str.3 = [21 x i8] c"TRIANGULO RETANGULO\0A\00"
@.str.4 = [23 x i8] c"TRIANGULO OBTUSANGULO\0A\00"
@.str.5 = [22 x i8] c"TRIANGULO ACUTANGULO\0A\00"
@.str.6 = [22 x i8] c"TRIANGULO EQUILATERO\0A\00"
@.str.7 = [21 x i8] c"TRIANGULO ISOSCELES\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store i32 0, i32* %1
%8 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %4)
%9 = load double, double* %2
%10 = load double, double* %3
%11 = fcmp ogt double %9, %10
br i1 %11, label %12, label %34
12: ; preds = %0
%13 = load double, double* %2
%14 = load double, double* %4
%15 = fcmp ogt double %13, %14
br i1 %15, label %16, label %29
16: ; preds = %12
%17 = load double, double* %3
%18 = load double, double* %4
%19 = fcmp ogt double %17, %18
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load double, double* %2
store double %21, double* %5
%22 = load double, double* %3
store double %22, double* %6
%23 = load double, double* %4
store double %23, double* %7
br label %28
24: ; preds = %16
%25 = load double, double* %2
store double %25, double* %5
%26 = load double, double* %4
store double %26, double* %6
%27 = load double, double* %3
store double %27, double* %7
br label %28
28: ; preds = %24, %20
br label %33
29: ; preds = %12
%30 = load double, double* %4
store double %30, double* %5
%31 = load double, double* %2
store double %31, double* %6
%32 = load double, double* %3
store double %32, double* %7
br label %33
33: ; preds = %29, %28
br label %56
34: ; preds = %0
%35 = load double, double* %3
%36 = load double, double* %4
%37 = fcmp ogt double %35, %36
br i1 %37, label %38, label %51
38: ; preds = %34
%39 = load double, double* %2
%40 = load double, double* %4
%41 = fcmp ogt double %39, %40
br i1 %41, label %42, label %46
42: ; preds = %38
%43 = load double, double* %3
store double %43, double* %5
%44 = load double, double* %2
store double %44, double* %6
%45 = load double, double* %4
store double %45, double* %7
br label %50
46: ; preds = %38
%47 = load double, double* %3
store double %47, double* %5
%48 = load double, double* %4
store double %48, double* %6
%49 = load double, double* %2
store double %49, double* %7
br label %50
50: ; preds = %46, %42
br label %55
51: ; preds = %34
%52 = load double, double* %4
store double %52, double* %5
%53 = load double, double* %3
store double %53, double* %6
%54 = load double, double* %2
store double %54, double* %7
br label %55
55: ; preds = %51, %50
br label %56
56: ; preds = %55, %33
%57 = load double, double* %5
%58 = load double, double* %6
%59 = load double, double* %7
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), double %57, double %58, double %59)
%61 = load double, double* %5
%62 = load double, double* %6
%63 = load double, double* %7
%64 = fadd double %62, %63
%65 = fcmp oge double %61, %64
br i1 %65, label %66, label %68
66: ; preds = %56
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %68
68: ; preds = %66, %56
%69 = load double, double* %5
%70 = load double, double* %5
%71 = fmul double %69, %70
%72 = load double, double* %6
%73 = load double, double* %6
%74 = load double, double* %7
%75 = load double, double* %7
%76 = fmul double %74, %75
%77 = call double @llvm.fmuladd.f64(double %72, double %73, double %76)
%78 = fcmp oeq double %71, %77
br i1 %78, label %79, label %81
79: ; preds = %68
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
br label %81
81: ; preds = %79, %68
%82 = load double, double* %5
%83 = load double, double* %5
%84 = fmul double %82, %83
%85 = load double, double* %6
%86 = load double, double* %6
%87 = load double, double* %7
%88 = load double, double* %7
%89 = fmul double %87, %88
%90 = call double @llvm.fmuladd.f64(double %85, double %86, double %89)
%91 = fcmp ogt double %84, %90
br i1 %91, label %92, label %94
92: ; preds = %81
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
br label %94
94: ; preds = %92, %81
%95 = load double, double* %5
%96 = load double, double* %5
%97 = fmul double %95, %96
%98 = load double, double* %6
%99 = load double, double* %6
%100 = load double, double* %7
%101 = load double, double* %7
%102 = fmul double %100, %101
%103 = call double @llvm.fmuladd.f64(double %98, double %99, double %102)
%104 = fcmp olt double %97, %103
br i1 %104, label %105, label %107
105: ; preds = %94
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
br label %107
107: ; preds = %105, %94
%108 = load double, double* %5
%109 = load double, double* %6
%110 = fsub double %108, %109
%111 = call double @abs(double %110)
%112 = fcmp olt double %111, 1.000000e-03
br i1 %112, label %113, label %121
113: ; preds = %107
%114 = load double, double* %6
%115 = load double, double* %7
%116 = fsub double %114, %115
%117 = call double @abs(double %116)
%118 = fcmp olt double %117, 1.000000e-03
br i1 %118, label %119, label %121
119: ; preds = %113
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
br label %121
121: ; preds = %119, %113, %107
%122 = load double, double* %5
%123 = load double, double* %6
%124 = fsub double %122, %123
%125 = call double @abs(double %124)
%126 = fcmp olt double %125, 1.000000e-03
br i1 %126, label %127, label %135
127: ; preds = %121
%128 = load double, double* %7
%129 = load double, double* %5
%130 = fsub double %128, %129
%131 = call double @abs(double %130)
%132 = fcmp ogt double %131, 1.000000e-03
br i1 %132, label %133, label %135
133: ; preds = %127
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
br label %135
135: ; preds = %133, %127, %121
%136 = load double, double* %6
%137 = load double, double* %7
%138 = fsub double %136, %137
%139 = call double @abs(double %138)
%140 = fcmp olt double %139, 1.000000e-03
br i1 %140, label %141, label %149
141: ; preds = %135
%142 = load double, double* %5
%143 = load double, double* %6
%144 = fsub double %142, %143
%145 = call double @abs(double %144)
%146 = fcmp ogt double %145, 1.000000e-03
br i1 %146, label %147, label %149
147: ; preds = %141
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
br label %149
149: ; preds = %147, %141, %135
%150 = load double, double* %7
%151 = load double, double* %5
%152 = fsub double %150, %151
%153 = call double @abs(double %152)
%154 = fcmp olt double %153, 1.000000e-03
br i1 %154, label %155, label %163
155: ; preds = %149
%156 = load double, double* %6
%157 = load double, double* %7
%158 = fsub double %156, %157
%159 = call double @abs(double %158)
%160 = fcmp ogt double %159, 1.000000e-03
br i1 %160, label %161, label %163
161: ; preds = %155
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
br label %163
163: ; preds = %161, %155, %149
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [10 x i8] c"%f\0A%f\0A%f\0A\00"
@str.9 = [20 x i8] c"TRIANGULO ISOSCELES\00"
@str.10 = [21 x i8] c"TRIANGULO EQUILATERO\00"
@str.11 = [21 x i8] c"TRIANGULO ACUTANGULO\00"
@str.12 = [22 x i8] c"TRIANGULO OBTUSANGULO\00"
@str.13 = [20 x i8] c"TRIANGULO RETANGULO\00"
@str.14 = [20 x i8] c"NAO FORMA TRIANGULO\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%8 = load double, double* %1
%9 = load double, double* %2
%10 = fcmp ogt double %8, %9
%11 = load double, double* %3
br i1 %10, label %12, label %18
12: ; preds = %0
%13 = fcmp ogt double %8, %11
br i1 %13, label %14, label %24
14: ; preds = %12
%15 = fcmp ogt double %9, %11
%16 = select i1 %15, double %9, double %11
%17 = select i1 %15, double %11, double %9
br label %24
18: ; preds = %0
%19 = fcmp ogt double %9, %11
br i1 %19, label %20, label %24
20: ; preds = %18
%21 = fcmp ogt double %8, %11
%22 = select i1 %21, double %8, double %11
%23 = select i1 %21, double %11, double %8
br label %24
24: ; preds = %18, %20, %12, %14
%25 = phi double [ %8, %14 ], [ %11, %12 ], [ %9, %20 ], [ %11, %18 ]
%26 = phi double [ %16, %14 ], [ %8, %12 ], [ %22, %20 ], [ %9, %18 ]
%27 = phi double [ %17, %14 ], [ %9, %12 ], [ %23, %20 ], [ %8, %18 ]
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), double %25, double %26, double %27)
%29 = fadd double %26, %27
%30 = fcmp ult double %25, %29
br i1 %30, label %33, label %31
31: ; preds = %24
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.14, i64 0, i64 0))
br label %33
33: ; preds = %31, %24
%34 = fmul double %25, %25
%35 = fmul double %27, %27
%36 = call double @llvm.fmuladd.f64(double %26, double %26, double %35)
%37 = fcmp oeq double %34, %36
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.13, i64 0, i64 0))
br label %40
40: ; preds = %38, %33
%41 = fcmp ogt double %34, %36
br i1 %41, label %42, label %44
42: ; preds = %40
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.12, i64 0, i64 0))
br label %44
44: ; preds = %42, %40
%45 = fcmp olt double %34, %36
br i1 %45, label %46, label %48
46: ; preds = %44
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.11, i64 0, i64 0))
br label %48
48: ; preds = %46, %44
%49 = fsub double %25, %26
%50 = call double @abs(double %49)
%51 = fcmp olt double %50, 1.000000e-03
br i1 %51, label %52, label %58
52: ; preds = %48
%53 = fsub double %26, %27
%54 = call double @abs(double %53)
%55 = fcmp olt double %54, 1.000000e-03
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.10, i64 0, i64 0))
br label %58
58: ; preds = %56, %52, %48
%59 = call double @abs(double %49)
%60 = fcmp olt double %59, 1.000000e-03
br i1 %60, label %61, label %67
61: ; preds = %58
%62 = fsub double %27, %25
%63 = call double @abs(double %62)
%64 = fcmp ogt double %63, 1.000000e-03
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.9, i64 0, i64 0))
br label %67
67: ; preds = %65, %61, %58
%68 = fsub double %26, %27
%69 = call double @abs(double %68)
%70 = fcmp olt double %69, 1.000000e-03
br i1 %70, label %71, label %76
71: ; preds = %67
%72 = call double @abs(double %49)
%73 = fcmp ogt double %72, 1.000000e-03
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.9, i64 0, i64 0))
br label %76
76: ; preds = %74, %71, %67
%77 = fsub double %27, %25
%78 = call double @abs(double %77)
%79 = fcmp olt double %78, 1.000000e-03
br i1 %79, label %80, label %85
80: ; preds = %76
%81 = call double @abs(double %68)
%82 = fcmp ogt double %81, 1.000000e-03
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.9, i64 0, i64 0))
br label %85
85: ; preds = %83, %80, %76
ret i32 0
}