#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 CF(double);
double DBO(double);
double FT(double);
double NT(double);
double OD(double);
double PH(double);
double ST(double);
double TU(double);
double VT(double);
double pow(double, double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
int main(void) {
  double cf, dbo, ft, nt, od, ph, st, tu, vt;
  printf("\x1b[31m"
         "\n\nDigite abaixo os parâmetros: \n \n"
         "\x1b[0m");
  printf("Coliformes Fecais (NMP/100mL): ");
  scanf("%lf", &cf);
  printf("DBO (mg/L): ");
  scanf("%lf", &dbo);
  printf("Fósforo Total (mg/L): ");
  scanf("%lf", &ft);
  printf("Nitrogênio Total (mg/L): ");
  scanf("%lf", &nt);
  printf("Oxigênio Dissolvido (%% saturação): ");
  scanf("%lf", &od);
  printf("pH (unidades de pH): ");
  scanf("%lf", &ph);
  printf("Sólidos Totais (mg/L): ");
  scanf("%lf", &st);
  printf("Turbidez (UNT): ");
  scanf("%lf", &tu);
  printf("Variação de Temperatura (°C): ");
  scanf("%lf", &vt);
  double IQA, results[9];
  results[0] = CF(cf);
  results[1] = DBO(dbo);
  results[2] = FT(ft);
  results[3] = NT(nt);
  results[4] = OD(od);
  results[5] = PH(ph);
  results[6] = ST(st);
  results[7] = TU(tu);
  results[8] = VT(vt);
  IQA = pow(results[0], 0.15) * pow(results[1], 0.10) * pow(results[2], 0.10) *
        pow(results[3], 0.10) * pow(results[4], 0.17) * pow(results[5], 0.12) *
        pow(results[6], 0.08) * pow(results[7], 0.08) * pow(results[8], 0.10);
  printf("\nValor de IQA ="
         "\x1b[31m"
         " %f\n"
         "\x1b[0m",
         IQA);
  printf("Classificação: ");
  if (IQA >= 80 && IQA <= 100) {
    printf("\x1b[32m"
           "Ótima"
           "\x1b[0m"
           "\n\n");
  } else if (IQA >= 51 && IQA < 80) {
    printf("\x1b[34m"
           "Boa"
           "\x1b[0m"
           "\n\n");
  } else if (IQA >= 37 && IQA < 51) {
    printf("\x1b[33m"
           "Aceitável"
           "\x1b[0m"
           "\n\n");
  } else if (IQA >= 20 && IQA < 37) {
    printf("\x1b[31m"
           "Ruim"
           "\x1b[0m"
           "\n\n");
  } else if (IQA >= 0 && IQA < 20) {
    printf("\x1b[31m"
           "Péssima"
           "\x1b[0m"
           "\n\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xea8(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xe8a(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xe6c(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xe4e(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xe30(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xe12(%rip),%rdi
lea    -0x38(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xdf4(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xdd6(%rip),%rdi
lea    -0x48(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xdb8(%rip),%rdi
lea    -0x50(%rbp),%rsi
call   10b0 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
call   1070 <CF@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
call   1090 <DBO@plt>
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   10e0 <FT@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1030 <NT@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   10a0 <OD@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1060 <PH@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1040 <ST@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1050 <TU@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
call   10d0 <VT@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
movsd  0xc97(%rip),%xmm1
call   10c0 <pow@plt>
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  0xc5a(%rip),%xmm1
call   10c0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  0xc2e(%rip),%xmm1
call   10c0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  0xc02(%rip),%xmm1
call   10c0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  0xbf1(%rip),%xmm1
call   10c0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  0xbc0(%rip),%xmm1
call   10c0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  0xb8f(%rip),%xmm1
call   10c0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  0xb66(%rip),%xmm1
call   10c0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xb0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  0xb35(%rip),%xmm1
call   10c0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
lea    0xc73(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movsd  -0x58(%rbp),%xmm0
movsd  0xae6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     154a <main+0x38a>
movsd  0xb04(%rip),%xmm0
ucomisd -0x58(%rbp),%xmm0
jb     154a <main+0x38a>
lea    0xc5c(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1648 <main+0x488>
movsd  -0x58(%rbp),%xmm0
movsd  0xae1(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1587 <main+0x3c7>
movsd  0xa97(%rip),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    1587 <main+0x3c7>
lea    0xc31(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1643 <main+0x483>
movsd  -0x58(%rbp),%xmm0
movsd  0xaac(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     15c4 <main+0x404>
movsd  0xa92(%rip),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    15c4 <main+0x404>
lea    0xc03(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    163e <main+0x47e>
movsd  -0x58(%rbp),%xmm0
movsd  0xa77(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1601 <main+0x441>
movsd  0xa5d(%rip),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    1601 <main+0x441>
lea    0xbdc(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1639 <main+0x479>
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1634 <main+0x474>
movsd  0xa2d(%rip),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    1634 <main+0x474>
lea    0xbb4(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1639 <main+0x479>
jmp    163e <main+0x47e>
jmp    1643 <main+0x483>
jmp    1648 <main+0x488>
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x90,%rsp
lea    0xe71(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xe90(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xea2(%rip),%rbx
lea    0x88(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x80(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xe7e(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x78(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xe7b(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x70(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xe7b(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x68(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xe88(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x60(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xe83(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x58(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xe81(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x50(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
lea    0xe77(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x48(%rsp),%rsi
mov    %rbx,%rdi
call   10c0 <scanf@plt>
movsd  0x88(%rsp),%xmm0
call   1080 <CF@plt>
movsd  %xmm0,(%rsp)
movsd  0x80(%rsp),%xmm0
call   10a0 <DBO@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x78(%rsp),%xmm0
call   10f0 <FT@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x70(%rsp),%xmm0
call   1030 <NT@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x68(%rsp),%xmm0
call   10b0 <OD@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x60(%rsp),%xmm0
call   1070 <PH@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x58(%rsp),%xmm0
call   1040 <ST@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x50(%rsp),%xmm0
call   1060 <TU@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0x48(%rsp),%xmm0
call   10e0 <VT@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0xc74(%rip),%xmm1
movsd  (%rsp),%xmm0
call   10d0 <pow@plt>
movsd  %xmm0,(%rsp)
movsd  0xc65(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   10d0 <pow@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xc41(%rip),%xmm1
call   10d0 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0xc22(%rip),%xmm1
call   10d0 <pow@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xc11(%rip),%xmm1
movsd  0x20(%rsp),%xmm0
call   10d0 <pow@plt>
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xbfa(%rip),%xmm1
movsd  0x28(%rsp),%xmm0
call   10d0 <pow@plt>
mulsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0xbe3(%rip),%xmm1
movsd  0x30(%rsp),%xmm0
call   10d0 <pow@plt>
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x38(%rsp),%xmm0
movsd  0xbbe(%rip),%xmm1
call   10d0 <pow@plt>
mulsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0x40(%rsp),%xmm0
movsd  0xb87(%rip),%xmm1
call   10d0 <pow@plt>
mulsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
lea    0xcd2(%rip),%rdi
mov    $0x1,%al
call   1090 <printf@plt>
lea    0xce1(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
movsd  0x40(%rsp),%xmm1
ucomisd 0xb6c(%rip),%xmm1
jb     14d8 <main+0x308>
movsd  0xb6a(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     14d8 <main+0x308>
lea    0xd0c(%rip),%rdi
jmp    155a <main+0x38a>
ucomisd 0xb58(%rip),%xmm1
jb     14f9 <main+0x329>
movsd  0xb3e(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    14f9 <main+0x329>
lea    0xcda(%rip),%rdi
jmp    155a <main+0x38a>
ucomisd 0xb3f(%rip),%xmm1
jb     151a <main+0x34a>
movsd  0xb2d(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    151a <main+0x34a>
lea    0xca4(%rip),%rdi
jmp    155a <main+0x38a>
ucomisd 0xb26(%rip),%xmm1
jb     153b <main+0x36b>
movsd  0xb14(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    153b <main+0x36b>
lea    0xc74(%rip),%rdi
jmp    155a <main+0x38a>
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     155f <main+0x38f>
movsd  0xafb(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    155f <main+0x38f>
lea    0xc40(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [45 x i8] c"\1B[31m\0A\0ADigite abaixo os par\C3\A2metros: \0A \0A\1B[0m\00"
@.str.1 = [32 x i8] c"Coliformes Fecais (NMP/100mL): \00"
@.str.2 = [4 x i8] c"%lf\00"
@.str.3 = [13 x i8] c"DBO (mg/L): \00"
@.str.4 = [24 x i8] c"F\C3\B3sforo Total (mg/L): \00"
@.str.5 = [27 x i8] c"Nitrog\C3\AAnio Total (mg/L): \00"
@.str.6 = [40 x i8] c"Oxig\C3\AAnio Dissolvido (%% satura\C3\A7\C3\A3o): \00"
@.str.7 = [22 x i8] c"pH (unidades de pH): \00"
@.str.8 = [25 x i8] c"S\C3\B3lidos Totais (mg/L): \00"
@.str.9 = [17 x i8] c"Turbidez (UNT): \00"
@.str.10 = [34 x i8] c"Varia\C3\A7\C3\A3o de Temperatura (\C2\B0C): \00"
@.str.11 = [29 x i8] c"\0AValor de IQA =\1B[31m %f\0A\1B[0m\00"
@.str.12 = [18 x i8] c"Classifica\C3\A7\C3\A3o: \00"
@.str.13 = [18 x i8] c"\1B[32m\C3\93tima\1B[0m\0A\0A\00"
@.str.14 = [15 x i8] c"\1B[34mBoa\1B[0m\0A\0A\00"
@.str.15 = [22 x i8] c"\1B[33mAceit\C3\A1vel\1B[0m\0A\0A\00"
@.str.16 = [16 x i8] c"\1B[31mRuim\1B[0m\0A\0A\00"
@.str.17 = [20 x i8] c"\1B[31mP\C3\A9ssima\1B[0m\0A\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
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca [9 x double]
store i32 0, i32* %1
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %2)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %3)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %4)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %5)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %6)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%25 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %7)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %8)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%29 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %9)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%31 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %10)
%32 = load double, double* %2
%33 = call double @CF(double %32)
%34 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 0
store double %33, double* %34
%35 = load double, double* %3
%36 = call double @DBO(double %35)
%37 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 1
store double %36, double* %37
%38 = load double, double* %4
%39 = call double @FT(double %38)
%40 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 2
store double %39, double* %40
%41 = load double, double* %5
%42 = call double @NT(double %41)
%43 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 3
store double %42, double* %43
%44 = load double, double* %6
%45 = call double @OD(double %44)
%46 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 4
store double %45, double* %46
%47 = load double, double* %7
%48 = call double @PH(double %47)
%49 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 5
store double %48, double* %49
%50 = load double, double* %8
%51 = call double @ST(double %50)
%52 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 6
store double %51, double* %52
%53 = load double, double* %9
%54 = call double @TU(double %53)
%55 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 7
store double %54, double* %55
%56 = load double, double* %10
%57 = call double @VT(double %56)
%58 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 8
store double %57, double* %58
%59 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 0
%60 = load double, double* %59
%61 = call double @pow(double %60, double 1.500000e-01)
%62 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 1
%63 = load double, double* %62
%64 = call double @pow(double %63, double 1.000000e-01)
%65 = fmul double %61, %64
%66 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 2
%67 = load double, double* %66
%68 = call double @pow(double %67, double 1.000000e-01)
%69 = fmul double %65, %68
%70 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 3
%71 = load double, double* %70
%72 = call double @pow(double %71, double 1.000000e-01)
%73 = fmul double %69, %72
%74 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 4
%75 = load double, double* %74
%76 = call double @pow(double %75, double 1.700000e-01)
%77 = fmul double %73, %76
%78 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 5
%79 = load double, double* %78
%80 = call double @pow(double %79, double 1.200000e-01)
%81 = fmul double %77, %80
%82 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 6
%83 = load double, double* %82
%84 = call double @pow(double %83, double 8.000000e-02)
%85 = fmul double %81, %84
%86 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 7
%87 = load double, double* %86
%88 = call double @pow(double %87, double 8.000000e-02)
%89 = fmul double %85, %88
%90 = getelementptr inbounds [9 x double], [9 x double]* %12, i64 0, i64 8
%91 = load double, double* %90
%92 = call double @pow(double %91, double 1.000000e-01)
%93 = fmul double %89, %92
store double %93, double* %11
%94 = load double, double* %11
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), double %94)
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%97 = load double, double* %11
%98 = fcmp oge double %97, 8.000000e+01
br i1 %98, label %99, label %104
99: ; preds = %0
%100 = load double, double* %11
%101 = fcmp ole double %100, 1.000000e+02
br i1 %101, label %102, label %104
102: ; preds = %99
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
br label %140
104: ; preds = %99, %0
%105 = load double, double* %11
%106 = fcmp oge double %105, 5.100000e+01
br i1 %106, label %107, label %112
107: ; preds = %104
%108 = load double, double* %11
%109 = fcmp olt double %108, 8.000000e+01
br i1 %109, label %110, label %112
110: ; preds = %107
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
br label %139
112: ; preds = %107, %104
%113 = load double, double* %11
%114 = fcmp oge double %113, 3.700000e+01
br i1 %114, label %115, label %120
115: ; preds = %112
%116 = load double, double* %11
%117 = fcmp olt double %116, 5.100000e+01
br i1 %117, label %118, label %120
118: ; preds = %115
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
br label %138
120: ; preds = %115, %112
%121 = load double, double* %11
%122 = fcmp oge double %121, 2.000000e+01
br i1 %122, label %123, label %128
123: ; preds = %120
%124 = load double, double* %11
%125 = fcmp olt double %124, 3.700000e+01
br i1 %125, label %126, label %128
126: ; preds = %123
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0))
br label %137
128: ; preds = %123, %120
%129 = load double, double* %11
%130 = fcmp oge double %129, 0.000000e+00
br i1 %130, label %131, label %136
131: ; preds = %128
%132 = load double, double* %11
%133 = fcmp olt double %132, 2.000000e+01
br i1 %133, label %134, label %136
134: ; preds = %131
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0))
br label %136
136: ; preds = %134, %131, %128
br label %137
137: ; preds = %136, %126
br label %138
138: ; preds = %137, %118
br label %139
139: ; preds = %138, %110
br label %140
140: ; preds = %139, %102
%141 = load i32, i32* %1
ret i32 %141
}

LLVM IR (-O2):
@.str = [45 x i8] c"\1B[31m\0A\0ADigite abaixo os par\C3\A2metros: \0A \0A\1B[0m\00"
@.str.1 = [32 x i8] c"Coliformes Fecais (NMP/100mL): \00"
@.str.2 = [4 x i8] c"%lf\00"
@.str.3 = [13 x i8] c"DBO (mg/L): \00"
@.str.4 = [24 x i8] c"F\C3\B3sforo Total (mg/L): \00"
@.str.5 = [27 x i8] c"Nitrog\C3\AAnio Total (mg/L): \00"
@.str.6 = [40 x i8] c"Oxig\C3\AAnio Dissolvido (%% satura\C3\A7\C3\A3o): \00"
@.str.7 = [22 x i8] c"pH (unidades de pH): \00"
@.str.8 = [25 x i8] c"S\C3\B3lidos Totais (mg/L): \00"
@.str.9 = [17 x i8] c"Turbidez (UNT): \00"
@.str.10 = [34 x i8] c"Varia\C3\A7\C3\A3o de Temperatura (\C2\B0C): \00"
@.str.11 = [29 x i8] c"\0AValor de IQA =\1B[31m %f\0A\1B[0m\00"
@.str.12 = [18 x i8] c"Classifica\C3\A7\C3\A3o: \00"
@str = [19 x i8] c"\1B[31mP\C3\A9ssima\1B[0m\0A\00"
@str.18 = [15 x i8] c"\1B[31mRuim\1B[0m\0A\00"
@str.19 = [21 x i8] c"\1B[33mAceit\C3\A1vel\1B[0m\0A\00"
@str.20 = [14 x i8] c"\1B[34mBoa\1B[0m\0A\00"
@str.21 = [17 x i8] c"\1B[32m\C3\93tima\1B[0m\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = bitcast double* %1 to i8*
%11 = bitcast double* %2 to i8*
%12 = bitcast double* %3 to i8*
%13 = bitcast double* %4 to i8*
%14 = bitcast double* %5 to i8*
%15 = bitcast double* %6 to i8*
%16 = bitcast double* %7 to i8*
%17 = bitcast double* %8 to i8*
%18 = bitcast double* %9 to i8*
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %1)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %2)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %3)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %4)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%29 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %5)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%31 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %6)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%33 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %7)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%35 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %8)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%37 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %9)
%38 = load double, double* %1
%39 = call double @CF(double %38)
%40 = load double, double* %2
%41 = call double @DBO(double %40)
%42 = load double, double* %3
%43 = call double @FT(double %42)
%44 = load double, double* %4
%45 = call double @NT(double %44)
%46 = load double, double* %5
%47 = call double @OD(double %46)
%48 = load double, double* %6
%49 = call double @PH(double %48)
%50 = load double, double* %7
%51 = call double @ST(double %50)
%52 = load double, double* %8
%53 = call double @TU(double %52)
%54 = load double, double* %9
%55 = call double @VT(double %54)
%56 = call double @pow(double %39, double 1.500000e-01)
%57 = call double @pow(double %41, double 1.000000e-01)
%58 = fmul double %56, %57
%59 = call double @pow(double %43, double 1.000000e-01)
%60 = fmul double %58, %59
%61 = call double @pow(double %45, double 1.000000e-01)
%62 = fmul double %60, %61
%63 = call double @pow(double %47, double 1.700000e-01)
%64 = fmul double %62, %63
%65 = call double @pow(double %49, double 1.200000e-01)
%66 = fmul double %64, %65
%67 = call double @pow(double %51, double 8.000000e-02)
%68 = fmul double %66, %67
%69 = call double @pow(double %53, double 8.000000e-02)
%70 = fmul double %68, %69
%71 = call double @pow(double %55, double 1.000000e-01)
%72 = fmul double %70, %71
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), double %72)
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%75 = fcmp oge double %72, 8.000000e+01
%76 = fcmp ole double %72, 1.000000e+02
%77 = and i1 %75, %76
br i1 %77, label %94, label %78
78: ; preds = %0
%79 = fcmp oge double %72, 5.100000e+01
%80 = fcmp olt double %72, 8.000000e+01
%81 = and i1 %79, %80
br i1 %81, label %94, label %82
82: ; preds = %78
%83 = fcmp oge double %72, 3.700000e+01
%84 = fcmp olt double %72, 5.100000e+01
%85 = and i1 %83, %84
br i1 %85, label %94, label %86
86: ; preds = %82
%87 = fcmp oge double %72, 2.000000e+01
%88 = fcmp olt double %72, 3.700000e+01
%89 = and i1 %87, %88
br i1 %89, label %94, label %90
90: ; preds = %86
%91 = fcmp oge double %72, 0.000000e+00
%92 = fcmp olt double %72, 2.000000e+01
%93 = and i1 %91, %92
br i1 %93, label %94, label %97
94: ; preds = %90, %86, %82, %78, %0
%95 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @str.21, i64 0, i64 0), %0 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @str.20, i64 0, i64 0), %78 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.19, i64 0, i64 0), %82 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.18, i64 0, i64 0), %86 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0), %90 ]
%96 = call i32 @puts(i8* dereferenceable(1) %95)
br label %97
97: ; preds = %94, %90
ret i32 0
}