#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 genero;
  int atividade;
  int objetivo;
  float pesoh;
  float alturah;
  float idadeh;
  float tmbh;
  float totalh;
  float objetivoh;
  float pesom;
  float alturam;
  float idadem;
  float tmbm;
  float totalm;
  float objetivom;
  float fatoratividade;
  printf("Digite [1] para homem \n");
  printf("Digite [2] para mulher \n");
  scanf("%i", &genero);
  while (genero != 1 && genero != 2) {
    printf("Escolha uma opção: \n");
    printf("Digite [1] para homem \n");
    printf("Digite [2] para mulher \n");
    scanf("%i", &genero);
  }
  switch (genero) {
  case 1:
    printf("Qual seu peso (KG):");
    scanf("%f", &pesoh);
    printf("Qual sua altura (CM):");
    scanf("%f", &alturah);
    printf("Qual sua idade (ANOS):");
    scanf("%f", &idadeh);
    tmbh = 66 + (13.7 * pesoh) + (5 * alturah) - (6.8 * idadeh);
    printf("Sua taxa metabolica basal é: %6.2f Kcal. \n", tmbh);
    printf("Qual seu fator atividade? \n");
    printf("Digite [1] para Sedentário - Pouco ou nenhum exercício diário \n");
    printf("Digite [2] para Levemente Ativo - Exercício leve de 1 a 3 dias na "
           "semana \n");
    printf("Digite [3] para Moderadamente Ativo - Exercício leve de 3 a 5 dias "
           "na semana \n");
    printf("Digite [4] para Bastante Ativo - Exercício pesado de 6 a 7 dias na "
           "semana \n");
    printf("Digite [5] para Muito Ativo - Exercício pesado todos os dias da "
           "semana ou treinos duas vezes ao dia \n");
    scanf("%i", &atividade);
    while ((atividade != 1) && (atividade != 2) && (atividade != 3) &&
           (atividade != 4) && (atividade != 5)) {
      printf("Escolha um fator de atividade: \n");
      printf(
          "Digite [1] para Sedentário - Pouco ou nenhum exercício diário \n");
      printf("Digite [2] para Levemente Ativo - Exercício leve de 1 a 3 dias "
             "na semana \n");
      printf("Digite [3] para Moderadamente Ativo - Exercício leve de 3 a 5 "
             "dias na semana \n");
      printf("Digite [4] para Bastante Ativo - Exercício pesado de 6 a 7 dias "
             "na semana \n");
      printf("Digite [5] para Muito Ativo - Exercício pesado todos os dias da "
             "semana ou treinos duas vezes ao dia \n");
      scanf("%i", &atividade);
    }
    switch (atividade) {
    case 1:
      fatoratividade = 1.20;
      break;
    case 2:
      fatoratividade = 1.37;
      break;
    case 3:
      fatoratividade = 1.55;
      break;
    case 4:
      fatoratividade = 1.72;
      break;
    case 5:
      fatoratividade = 1.90;
      break;
    }
    totalh = tmbh * fatoratividade;
    printf("Seu gasto calórico diário é %6.2f Kcal \n", totalh);
    break;
  case 2:
    printf("Qual seu peso (KG):");
    scanf("%f", &pesom);
    printf("Qual sua altura (CM):");
    scanf("%f", &alturam);
    printf("Qual sua idade (ANOS):");
    scanf("%f", &idadem);
    tmbm = 655 + (9.6 * pesom) + (1.8 * alturam) - (4.7 * idadem);
    printf("Sua taxa metabolica basal é: %6.2f Kcal. \n", tmbm);
    printf("Qual seu fator atividade? \n");
    printf("Digite [1] para Sedentário - Pouco ou nenhum exercício diário \n");
    printf("Digite [2] para Levemente Ativo - Exercício leve de 1 a 3 dias na "
           "semana \n");
    printf("Digite [3] para Moderadamente Ativo - Exercício leve de 3 a 5 dias "
           "na semana \n");
    printf("Digite [4] para Bastante Ativo - Exercício pesado de 6 a 7 dias na "
           "semana \n");
    printf("Digite [5] para Muito Ativo - Exercício pesado todos os dias da "
           "semana ou treinos duas vezes ao dia \n");
    scanf("%i", &atividade);
    while ((atividade != 1) && (atividade != 2) && (atividade != 3) &&
           (atividade != 4) && (atividade != 5)) {
      printf("Escolha um fator de atividade: \n");
      printf(
          "Digite [1] para Sedentário - Pouco ou nenhum exercício diário \n");
      printf("Digite [2] para Levemente Ativo - Exercício leve de 1 a 3 dias "
             "na semana \n");
      printf("Digite [3] para Moderadamente Ativo - Exercício leve de 3 a 5 "
             "dias na semana \n");
      printf("Digite [4] para Bastante Ativo - Exercício pesado de 6 a 7 dias "
             "na semana \n");
      printf("Digite [5] para Muito Ativo - Exercício pesado todos os dias da "
             "semana ou treinos duas vezes ao dia \n");
      scanf("%i", &atividade);
    }
    switch (atividade) {
    case 1:
      fatoratividade = 1.20;
      break;
    case 2:
      fatoratividade = 1.37;
      break;
    case 3:
      fatoratividade = 1.55;
      break;
    case 4:
      fatoratividade = 1.72;
      break;
    case 5:
      fatoratividade = 1.90;
      break;
    }
    totalm = tmbm * fatoratividade;
    printf("Seu gasto calórico diário é %6.2f Kcal \n", totalm);
    break;
  }
  printf("Qual seu objetivo? \n");
  printf("Digite [1] para ganhar massa muscular \n");
  printf("Digite [2] para perder gordura \n");
  printf("Digite [3] para manter o peso \n");
  if (genero == 1) {
    scanf("%i", &objetivo);
    while ((objetivo != 1) && (objetivo != 2) && (objetivo != 3)) {
      printf("Qual seu objetivo? \n");
      printf("Digite [1] para ganhar massa muscular \n");
      printf("Digite [2] para perder gordura \n");
      printf("Digite [3] para manter o peso \n");
      scanf("%i", &objetivo);
    }
    switch (objetivo) {
    case 1:
      objetivoh = totalh + 500;
      break;
    case 2:
      objetivoh = totalh - 500;
      break;
    case 3:
      objetivoh = totalh;
      break;
    }
    printf("Você precisa ingerir %6.2f Kcal por dia \n", objetivoh);
  } else {
    scanf("%i", &objetivo);
    while ((objetivo != 1) && (objetivo != 2) && (objetivo != 3)) {
      printf("Qual seu objetivo? \n");
      printf("Digite [1] para ganhar massa muscular \n");
      printf("Digite [2] para perder gordura \n");
      printf("Digite [3] para manter o peso \n");
      scanf("%i", &objetivo);
    }
    switch (objetivo) {
    case 1:
      objetivom = totalm + 500;
      break;
    case 2:
      objetivom = totalm - 500;
      break;
    case 3:
      objetivom = totalm;
      break;
    }
    printf("Você precisa ingerir %6.2f Kcal por dia \n", objetivom);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
xor    %eax,%eax
cmpl   $0x1,-0x8(%rbp)
mov    %al,-0x45(%rbp)
je     1179 <main+0x59>
cmpl   $0x2,-0x8(%rbp)
setne  %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
test   $0x1,%al
jne    1189 <main+0x69>
jmp    11ca <main+0xaa>
lea    0xf20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1160 <main+0x40>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4c(%rbp)
sub    $0x1,%eax
je     11ef <main+0xcf>
jmp    11de <main+0xbe>
mov    -0x4c(%rbp),%eax
sub    $0x2,%eax
je     148e <main+0x36e>
jmp    172c <main+0x60c>
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe97(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdc8(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xdc4(%rip),%xmm0
addsd  %xmm0,%xmm1
movss  0xdd4(%rip),%xmm0
mulss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  %xmm0,%xmm1
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd8a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe54(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd94(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
xor    %eax,%eax
cmpl   $0x1,-0xc(%rbp)
mov    %al,-0x4d(%rbp)
je     136a <main+0x24a>
xor    %eax,%eax
cmpl   $0x2,-0xc(%rbp)
mov    %al,-0x4d(%rbp)
je     136a <main+0x24a>
xor    %eax,%eax
cmpl   $0x3,-0xc(%rbp)
mov    %al,-0x4d(%rbp)
je     136a <main+0x24a>
xor    %eax,%eax
cmpl   $0x4,-0xc(%rbp)
mov    %al,-0x4d(%rbp)
je     136a <main+0x24a>
cmpl   $0x5,-0xc(%rbp)
setne  %al
mov    %al,-0x4d(%rbp)
mov    -0x4d(%rbp),%al
test   $0x1,%al
jne    137a <main+0x25a>
jmp    13e5 <main+0x2c5>
lea    0xf65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcd8(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1324 <main+0x204>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x58(%rbp)
sub    $0x4,%eax
ja     1463 <main+0x343>
mov    -0x58(%rbp),%rax
lea    0xc63(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movss  0xc32(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    1463 <main+0x343>
movss  0xc1c(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    1463 <main+0x343>
movss  0xc06(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    1463 <main+0x343>
movss  0xbf0(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    1463 <main+0x343>
movss  0xbda(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x20(%rbp),%xmm0
mulss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe85(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    172c <main+0x60c>
lea    0xc32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc38(%rip),%rdi
lea    -0x2c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xc29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc18(%rip),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbf8(%rip),%rdi
lea    -0x34(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb11(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb0d(%rip),%xmm1
addsd  %xmm1,%xmm0
movss  -0x30(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xae8(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xac7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x38(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbb1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xbcf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbdd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xaf1(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
xor    %eax,%eax
cmpl   $0x1,-0xc(%rbp)
mov    %al,-0x59(%rbp)
je     160d <main+0x4ed>
xor    %eax,%eax
cmpl   $0x2,-0xc(%rbp)
mov    %al,-0x59(%rbp)
je     160d <main+0x4ed>
xor    %eax,%eax
cmpl   $0x3,-0xc(%rbp)
mov    %al,-0x59(%rbp)
je     160d <main+0x4ed>
xor    %eax,%eax
cmpl   $0x4,-0xc(%rbp)
mov    %al,-0x59(%rbp)
je     160d <main+0x4ed>
cmpl   $0x5,-0xc(%rbp)
setne  %al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
test   $0x1,%al
jne    161d <main+0x4fd>
jmp    1688 <main+0x568>
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa35(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    15c7 <main+0x4a7>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x68(%rbp)
sub    $0x4,%eax
ja     1706 <main+0x5e6>
mov    -0x68(%rbp),%rax
lea    0x9ac(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movss  0x98f(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    1706 <main+0x5e6>
movss  0x979(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    1706 <main+0x5e6>
movss  0x963(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    1706 <main+0x5e6>
movss  0x94d(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    1706 <main+0x5e6>
movss  0x937(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x38(%rbp),%xmm0
mulss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x3c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbe2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xc00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    1895 <main+0x775>
lea    0x938(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
xor    %eax,%eax
cmpl   $0x1,-0x10(%rbp)
mov    %al,-0x69(%rbp)
je     17a8 <main+0x688>
xor    %eax,%eax
cmpl   $0x2,-0x10(%rbp)
mov    %al,-0x69(%rbp)
je     17a8 <main+0x688>
cmpl   $0x3,-0x10(%rbp)
setne  %al
mov    %al,-0x69(%rbp)
mov    -0x69(%rbp),%al
test   $0x1,%al
jne    17b8 <main+0x698>
jmp    1807 <main+0x6e7>
lea    0xb74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xba8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x8b6(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1780 <main+0x660>
mov    -0x10(%rbp),%eax
mov    %eax,-0x70(%rbp)
sub    $0x1,%eax
je     183d <main+0x71d>
jmp    181b <main+0x6fb>
mov    -0x70(%rbp),%eax
sub    $0x2,%eax
je     1854 <main+0x734>
jmp    182c <main+0x70c>
mov    -0x70(%rbp),%eax
sub    $0x3,%eax
je     186f <main+0x74f>
jmp    1879 <main+0x759>
movss  0x80b(%rip),%xmm0
addss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
jmp    1879 <main+0x759>
movss  -0x24(%rbp),%xmm0
movss  0x7ef(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
jmp    1879 <main+0x759>
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb28(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    19b7 <main+0x897>
lea    0x811(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
xor    %eax,%eax
cmpl   $0x1,-0x10(%rbp)
mov    %al,-0x71(%rbp)
je     18cf <main+0x7af>
xor    %eax,%eax
cmpl   $0x2,-0x10(%rbp)
mov    %al,-0x71(%rbp)
je     18cf <main+0x7af>
cmpl   $0x3,-0x10(%rbp)
setne  %al
mov    %al,-0x71(%rbp)
mov    -0x71(%rbp),%al
test   $0x1,%al
jne    18df <main+0x7bf>
jmp    192e <main+0x80e>
lea    0xa4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x78f(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    18a7 <main+0x787>
mov    -0x10(%rbp),%eax
mov    %eax,-0x78(%rbp)
sub    $0x1,%eax
je     1964 <main+0x844>
jmp    1942 <main+0x822>
mov    -0x78(%rbp),%eax
sub    $0x2,%eax
je     197b <main+0x85b>
jmp    1953 <main+0x833>
mov    -0x78(%rbp),%eax
sub    $0x3,%eax
je     1996 <main+0x876>
jmp    19a0 <main+0x880>
movss  0x6e4(%rip),%xmm0
addss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
jmp    19a0 <main+0x880>
movss  -0x3c(%rbp),%xmm0
movss  0x6c8(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x40(%rbp)
jmp    19a0 <main+0x880>
movss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa01(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0x1226(%rip),%rdi
call   1030 <puts@plt>
lea    0x1231(%rip),%rdi
call   1030 <puts@plt>
lea    0xeeb(%rip),%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x18(%rsp),%eax
lea    -0x3(%rax),%ecx
cmp    $0xfffffffd,%ecx
ja     11d1 <main+0xa1>
lea    0x11d9(%rip),%r14
lea    0x11e8(%rip),%r15
lea    0x11f8(%rip),%r12
lea    0xeb7(%rip),%rbp
lea    0x18(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x18(%rsp),%eax
lea    -0x3(%rax),%ecx
cmp    $0xfffffffe,%ecx
jb     11a0 <main+0x70>
cmp    $0x2,%eax
je     1396 <main+0x266>
cmp    $0x1,%eax
jne    157f <main+0x44f>
lea    0xe61(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe67(%rip),%rbx
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xe54(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xe4d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xdcd(%rip),%xmm0
addsd  0xdcd(%rip),%xmm0
movss  0x20(%rsp),%xmm1
mulss  0xdd3(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
addsd  %xmm0,%xmm1
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xdad(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0xdf3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
lea    0xf11(%rip),%rdi
call   1030 <puts@plt>
lea    0xf47(%rip),%rdi
call   1030 <puts@plt>
lea    0xf86(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1009(%rip),%rdi
call   1030 <puts@plt>
lea    0xd56(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%eax
lea    -0x6(%rax),%ecx
cmp    $0xfffffffa,%ecx
ja     1541 <main+0x411>
lea    0xef4(%rip),%r12
lea    0xf38(%rip),%r13
lea    0xf80(%rip),%rbx
lea    0xfc5(%rip),%rbp
lea    0xd17(%rip),%r14
lea    0x10(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
lea    0xe60(%rip),%rdi
call   1030 <puts@plt>
lea    0xe74(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%eax
lea    -0x6(%rax),%ecx
cmp    $0xfffffffb,%ecx
jb     1340 <main+0x210>
jmp    1541 <main+0x411>
lea    0xcae(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcb4(%rip),%rbx
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xca1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xc9a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xbfa(%rip),%xmm0
addsd  0xbfa(%rip),%xmm0
movss  0x20(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  0xbf0(%rip),%xmm1
addsd  %xmm0,%xmm1
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xbe2(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0xc40(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xd5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xd94(%rip),%rdi
call   1030 <puts@plt>
lea    0xdd3(%rip),%rdi
call   1030 <puts@plt>
lea    0xe16(%rip),%rdi
call   1030 <puts@plt>
lea    0xe56(%rip),%rdi
call   1030 <puts@plt>
lea    0xba3(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%eax
lea    -0x6(%rax),%ecx
cmp    $0xfffffffa,%ecx
ja     1541 <main+0x411>
lea    0xd41(%rip),%r12
lea    0xd85(%rip),%r13
lea    0xdcd(%rip),%rbx
lea    0xe12(%rip),%rbp
lea    0xb64(%rip),%r14
lea    0x10(%rsp),%r15
nopl   0x0(%rax)
lea    0xcb0(%rip),%rdi
call   1030 <puts@plt>
lea    0xcc4(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%eax
lea    -0x6(%rax),%ecx
cmp    $0xfffffffb,%ecx
jb     14f0 <main+0x3c0>
add    $0xfffffffe,%eax
cmp    $0x3,%eax
ja     1559 <main+0x429>
cltq
lea    0xe4a(%rip),%rcx
movss  (%rcx,%rax,4),%xmm0
jmp    1561 <main+0x431>
movss  0xad7(%rip),%xmm0
mulss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0xb43(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xb8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xb94(%rip),%rdi
call   1030 <puts@plt>
lea    0xbaf(%rip),%rdi
call   1030 <puts@plt>
lea    0xbc3(%rip),%rdi
call   1030 <puts@plt>
mov    0x18(%rsp),%ebx
lea    0xa8e(%rip),%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x14(%rsp),%eax
lea    -0x4(%rax),%ecx
cmp    $0x1,%ebx
jne    166e <main+0x53e>
cmp    $0xfffffffc,%ecx
ja     1649 <main+0x519>
lea    0xb30(%rip),%r14
lea    0xb3d(%rip),%r15
lea    0xb5d(%rip),%r12
lea    0xb76(%rip),%r13
lea    0xa4a(%rip),%rbx
lea    0x14(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x14(%rsp),%eax
lea    -0x4(%rax),%ecx
cmp    $0xfffffffd,%ecx
jb     1610 <main+0x4e0>
cmp    $0x2,%eax
je     16e2 <main+0x5b2>
cmp    $0x1,%eax
movss  0xc(%rsp),%xmm0
jne    16f0 <main+0x5c0>
addss  0x9db(%rip),%xmm0
jmp    16f0 <main+0x5c0>
cmp    $0xfffffffc,%ecx
ja     16d9 <main+0x5a9>
lea    0xa98(%rip),%r14
lea    0xaa5(%rip),%r15
lea    0xac5(%rip),%r12
lea    0xade(%rip),%r13
lea    0x9b2(%rip),%rbx
lea    0x14(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x14(%rsp),%eax
lea    -0x4(%rax),%ecx
cmp    $0xfffffffd,%ecx
jb     16a0 <main+0x570>
cmp    $0x2,%eax
jne    1652 <main+0x522>
movss  0xc(%rsp),%xmm0
addss  0x950(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x9ec(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Digite [1] para homem \0A\00"
@.str.1 = [25 x i8] c"Digite [2] para mulher \0A\00"
@.str.2 = [3 x i8] c"%i\00"
@.str.3 = [23 x i8] c"Escolha uma op\C3\A7\C3\A3o: \0A\00"
@.str.4 = [20 x i8] c"Qual seu peso (KG):\00"
@.str.5 = [3 x i8] c"%f\00"
@.str.6 = [22 x i8] c"Qual sua altura (CM):\00"
@.str.7 = [23 x i8] c"Qual sua idade (ANOS):\00"
@.str.8 = [44 x i8] c"Sua taxa metabolica basal \C3\A9: %6.2f Kcal. \0A\00"
@.str.9 = [28 x i8] c"Qual seu fator atividade? \0A\00"
@.str.10 = [67 x i8] c"Digite [1] para Sedent\C3\A1rio - Pouco ou nenhum exerc\C3\ADcio di\C3\A1rio \0A\00"
@.str.11 = [76 x i8] c"Digite [2] para Levemente Ativo - Exerc\C3\ADcio leve de 1 a 3 dias na semana \0A\00"
@.str.12 = [80 x i8] c"Digite [3] para Moderadamente Ativo - Exerc\C3\ADcio leve de 3 a 5 dias na semana \0A\00"
@.str.13 = [77 x i8] c"Digite [4] para Bastante Ativo - Exerc\C3\ADcio pesado de 6 a 7 dias na semana \0A\00"
@.str.14 = [103 x i8] c"Digite [5] para Muito Ativo - Exerc\C3\ADcio pesado todos os dias da semana ou treinos duas vezes ao dia \0A\00"
@.str.15 = [33 x i8] c"Escolha um fator de atividade: \0A\00"
@.str.16 = [44 x i8] c"Seu gasto cal\C3\B3rico di\C3\A1rio \C3\A9 %6.2f Kcal \0A\00"
@.str.17 = [21 x i8] c"Qual seu objetivo? \0A\00"
@.str.18 = [40 x i8] c"Digite [1] para ganhar massa muscular \0A\00"
@.str.19 = [33 x i8] c"Digite [2] para perder gordura \0A\00"
@.str.20 = [32 x i8] c"Digite [3] para manter o peso \0A\00"
@.str.21 = [43 x i8] c"Voc\C3\AA precisa ingerir %6.2f Kcal por dia \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
store i32 0, i32* %1
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
br label %21
21: ; preds = %29, %0
%22 = load i32, i32* %2
%23 = icmp ne i32 %22, 1
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, i32* %2
%26 = icmp ne i32 %25, 2
br label %27
27: ; preds = %24, %21
%28 = phi i1 [ false, %21 ], [ %26, %24 ]
br i1 %28, label %29, label %34
29: ; preds = %27
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
br label %21
34: ; preds = %27
%35 = load i32, i32* %2
switch i32 %35, label %169 [
i32 1, label %36
i32 2, label %103
]
36: ; preds = %34
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %5)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%40 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %6)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %7)
%43 = load float, float* %5
%44 = fpext float %43 to double
%45 = call double @llvm.fmuladd.f64(double 1.370000e+01, double %44, double 6.600000e+01)
%46 = load float, float* %6
%47 = fmul float 5.000000e+00, %46
%48 = fpext float %47 to double
%49 = fadd double %45, %48
%50 = load float, float* %7
%51 = fpext float %50 to double
%52 = call double @llvm.fmuladd.f64(double -6.800000e+00, double %51, double %49)
%53 = fptrunc double %52 to float
store float %53, float* %8
%54 = load float, float* %8
%55 = fpext float %54 to double
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0), double %55)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.10, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.11, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.12, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.13, i64 0, i64 0))
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.14, i64 0, i64 0))
%63 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
br label %64
64: ; preds = %81, %36
%65 = load i32, i32* %3
%66 = icmp ne i32 %65, 1
br i1 %66, label %67, label %79
67: ; preds = %64
%68 = load i32, i32* %3
%69 = icmp ne i32 %68, 2
br i1 %69, label %70, label %79
70: ; preds = %67
%71 = load i32, i32* %3
%72 = icmp ne i32 %71, 3
br i1 %72, label %73, label %79
73: ; preds = %70
%74 = load i32, i32* %3
%75 = icmp ne i32 %74, 4
br i1 %75, label %76, label %79
76: ; preds = %73
%77 = load i32, i32* %3
%78 = icmp ne i32 %77, 5
br label %79
79: ; preds = %76, %73, %70, %67, %64
%80 = phi i1 [ false, %73 ], [ false, %70 ], [ false, %67 ], [ false, %64 ], [ %78, %76 ]
br i1 %80, label %81, label %89
81: ; preds = %79
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.10, i64 0, i64 0))
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.11, i64 0, i64 0))
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.12, i64 0, i64 0))
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.13, i64 0, i64 0))
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.14, i64 0, i64 0))
%88 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
br label %64
89: ; preds = %79
%90 = load i32, i32* %3
switch i32 %90, label %96 [
i32 1, label %91
i32 2, label %92
i32 3, label %93
i32 4, label %94
i32 5, label %95
]
91: ; preds = %89
store float 0x3FF3333340000000, float* %17
br label %96
92: ; preds = %89
store float 0x3FF5EB8520000000, float* %17
br label %96
93: ; preds = %89
store float 0x3FF8CCCCC0000000, float* %17
br label %96
94: ; preds = %89
store float 0x3FFB851EC0000000, float* %17
br label %96
95: ; preds = %89
store float 0x3FFE666660000000, float* %17
br label %96
96: ; preds = %89, %95, %94, %93, %92, %91
%97 = load float, float* %8
%98 = load float, float* %17
%99 = fmul float %97, %98
store float %99, float* %9
%100 = load float, float* %9
%101 = fpext float %100 to double
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0), double %101)
br label %169
103: ; preds = %34
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %11)
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%107 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %12)
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%109 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %13)
%110 = load float, float* %11
%111 = fpext float %110 to double
%112 = call double @llvm.fmuladd.f64(double 0x4023333333333333, double %111, double 6.550000e+02)
%113 = load float, float* %12
%114 = fpext float %113 to double
%115 = call double @llvm.fmuladd.f64(double 1.800000e+00, double %114, double %112)
%116 = load float, float* %13
%117 = fpext float %116 to double
%118 = call double @llvm.fmuladd.f64(double -4.700000e+00, double %117, double %115)
%119 = fptrunc double %118 to float
store float %119, float* %14
%120 = load float, float* %14
%121 = fpext float %120 to double
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0), double %121)
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.10, i64 0, i64 0))
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.11, i64 0, i64 0))
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.12, i64 0, i64 0))
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.13, i64 0, i64 0))
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.14, i64 0, i64 0))
%129 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
br label %130
130: ; preds = %147, %103
%131 = load i32, i32* %3
%132 = icmp ne i32 %131, 1
br i1 %132, label %133, label %145
133: ; preds = %130
%134 = load i32, i32* %3
%135 = icmp ne i32 %134, 2
br i1 %135, label %136, label %145
136: ; preds = %133
%137 = load i32, i32* %3
%138 = icmp ne i32 %137, 3
br i1 %138, label %139, label %145
139: ; preds = %136
%140 = load i32, i32* %3
%141 = icmp ne i32 %140, 4
br i1 %141, label %142, label %145
142: ; preds = %139
%143 = load i32, i32* %3
%144 = icmp ne i32 %143, 5
br label %145
145: ; preds = %142, %139, %136, %133, %130
%146 = phi i1 [ false, %139 ], [ false, %136 ], [ false, %133 ], [ false, %130 ], [ %144, %142 ]
br i1 %146, label %147, label %155
147: ; preds = %145
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.10, i64 0, i64 0))
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.11, i64 0, i64 0))
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.12, i64 0, i64 0))
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.13, i64 0, i64 0))
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.14, i64 0, i64 0))
%154 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
br label %130
155: ; preds = %145
%156 = load i32, i32* %3
switch i32 %156, label %162 [
i32 1, label %157
i32 2, label %158
i32 3, label %159
i32 4, label %160
i32 5, label %161
]
157: ; preds = %155
store float 0x3FF3333340000000, float* %17
br label %162
158: ; preds = %155
store float 0x3FF5EB8520000000, float* %17
br label %162
159: ; preds = %155
store float 0x3FF8CCCCC0000000, float* %17
br label %162
160: ; preds = %155
store float 0x3FFB851EC0000000, float* %17
br label %162
161: ; preds = %155
store float 0x3FFE666660000000, float* %17
br label %162
162: ; preds = %155, %161, %160, %159, %158, %157
%163 = load float, float* %14
%164 = load float, float* %17
%165 = fmul float %163, %164
store float %165, float* %15
%166 = load float, float* %15
%167 = fpext float %166 to double
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0), double %167)
br label %169
169: ; preds = %34, %162, %96
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0))
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0))
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.19, i64 0, i64 0))
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0))
%174 = load i32, i32* %2
%175 = icmp eq i32 %174, 1
br i1 %175, label %176, label %209
176: ; preds = %169
%177 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
br label %178
178: ; preds = %189, %176
%179 = load i32, i32* %4
%180 = icmp ne i32 %179, 1
br i1 %180, label %181, label %187
181: ; preds = %178
%182 = load i32, i32* %4
%183 = icmp ne i32 %182, 2
br i1 %183, label %184, label %187
184: ; preds = %181
%185 = load i32, i32* %4
%186 = icmp ne i32 %185, 3
br label %187
187: ; preds = %184, %181, %178
%188 = phi i1 [ false, %181 ], [ false, %178 ], [ %186, %184 ]
br i1 %188, label %189, label %195
189: ; preds = %187
%190 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0))
%191 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0))
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.19, i64 0, i64 0))
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0))
%194 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
br label %178
195: ; preds = %187
%196 = load i32, i32* %4
switch i32 %196, label %205 [
i32 1, label %197
i32 2, label %200
i32 3, label %203
]
197: ; preds = %195
%198 = load float, float* %9
%199 = fadd float %198, 5.000000e+02
store float %199, float* %10
br label %205
200: ; preds = %195
%201 = load float, float* %9
%202 = fsub float %201, 5.000000e+02
store float %202, float* %10
br label %205
203: ; preds = %195
%204 = load float, float* %9
store float %204, float* %10
br label %205
205: ; preds = %195, %203, %200, %197
%206 = load float, float* %10
%207 = fpext float %206 to double
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.21, i64 0, i64 0), double %207)
br label %242
209: ; preds = %169
%210 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
br label %211
211: ; preds = %222, %209
%212 = load i32, i32* %4
%213 = icmp ne i32 %212, 1
br i1 %213, label %214, label %220
214: ; preds = %211
%215 = load i32, i32* %4
%216 = icmp ne i32 %215, 2
br i1 %216, label %217, label %220
217: ; preds = %214
%218 = load i32, i32* %4
%219 = icmp ne i32 %218, 3
br label %220
220: ; preds = %217, %214, %211
%221 = phi i1 [ false, %214 ], [ false, %211 ], [ %219, %217 ]
br i1 %221, label %222, label %228
222: ; preds = %220
%223 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0))
%224 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0))
%225 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.19, i64 0, i64 0))
%226 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0))
%227 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
br label %211
228: ; preds = %220
%229 = load i32, i32* %4
switch i32 %229, label %238 [
i32 1, label %230
i32 2, label %233
i32 3, label %236
]
230: ; preds = %228
%231 = load float, float* %15
%232 = fadd float %231, 5.000000e+02
store float %232, float* %16
br label %238
233: ; preds = %228
%234 = load float, float* %15
%235 = fsub float %234, 5.000000e+02
store float %235, float* %16
br label %238
236: ; preds = %228
%237 = load float, float* %15
store float %237, float* %16
br label %238
238: ; preds = %228, %236, %233, %230
%239 = load float, float* %16
%240 = fpext float %239 to double
%241 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.21, i64 0, i64 0), double %240)
br label %242
242: ; preds = %238, %205
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [3 x i8] c"%i\00"
@.str.4 = [20 x i8] c"Qual seu peso (KG):\00"
@.str.5 = [3 x i8] c"%f\00"
@.str.6 = [22 x i8] c"Qual sua altura (CM):\00"
@.str.7 = [23 x i8] c"Qual sua idade (ANOS):\00"
@.str.8 = [44 x i8] c"Sua taxa metabolica basal \C3\A9: %6.2f Kcal. \0A\00"
@.str.16 = [44 x i8] c"Seu gasto cal\C3\B3rico di\C3\A1rio \C3\A9 %6.2f Kcal \0A\00"
@.str.21 = [43 x i8] c"Voc\C3\AA precisa ingerir %6.2f Kcal por dia \0A\00"
@str.37 = [20 x i8] c"Qual seu objetivo? \00"
@str.38 = [39 x i8] c"Digite [1] para ganhar massa muscular \00"
@str.39 = [32 x i8] c"Digite [2] para perder gordura \00"
@str.40 = [31 x i8] c"Digite [3] para manter o peso \00"
@str.47 = [27 x i8] c"Qual seu fator atividade? \00"
@str.53 = [32 x i8] c"Escolha um fator de atividade: \00"
@str.54 = [66 x i8] c"Digite [1] para Sedent\C3\A1rio - Pouco ou nenhum exerc\C3\ADcio di\C3\A1rio \00"
@str.55 = [75 x i8] c"Digite [2] para Levemente Ativo - Exerc\C3\ADcio leve de 1 a 3 dias na semana \00"
@str.56 = [79 x i8] c"Digite [3] para Moderadamente Ativo - Exerc\C3\ADcio leve de 3 a 5 dias na semana \00"
@str.57 = [76 x i8] c"Digite [4] para Bastante Ativo - Exerc\C3\ADcio pesado de 6 a 7 dias na semana \00"
@str.58 = [102 x i8] c"Digite [5] para Muito Ativo - Exerc\C3\ADcio pesado todos os dias da semana ou treinos duas vezes ao dia \00"
@str.59 = [22 x i8] c"Escolha uma op\C3\A7\C3\A3o: \00"
@str.60 = [23 x i8] c"Digite [1] para homem \00"
@str.61 = [24 x i8] c"Digite [2] para mulher \00"
@switch.table.main.62 = [4 x float] [float 0x3FF5EB8520000000, float 0x3FF8CCCCC0000000, float 0x3FFB851EC0000000, float 0x3FFE666660000000]
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = bitcast i32* %1 to i8*
%11 = bitcast i32* %2 to i8*
%12 = bitcast i32* %3 to i8*
%13 = bitcast float* %4 to i8*
%14 = bitcast float* %5 to i8*
%15 = bitcast float* %6 to i8*
%16 = bitcast float* %7 to i8*
%17 = bitcast float* %8 to i8*
%18 = bitcast float* %9 to i8*
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.60, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.61, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%22 = load i32, i32* %1
%23 = add i32 %22, -3
%24 = icmp ult i32 %23, -2
br i1 %24, label %25, label %33
25: ; preds = %0, %25
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.59, i64 0, i64 0))
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.60, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.61, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%30 = load i32, i32* %1
%31 = add i32 %30, -3
%32 = icmp ult i32 %31, -2
br i1 %32, label %25, label %33
33: ; preds = %25, %0
%34 = phi i32 [ %22, %0 ], [ %30, %25 ]
switch i32 %34, label %144 [
i32 1, label %35
i32 2, label %87
]
35: ; preds = %33
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %4)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %5)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %6)
%42 = load float, float* %4
%43 = fpext float %42 to double
%44 = call double @llvm.fmuladd.f64(double %43, double 1.370000e+01, double 6.600000e+01)
%45 = load float, float* %5
%46 = fmul float %45, 5.000000e+00
%47 = fpext float %46 to double
%48 = fadd double %44, %47
%49 = load float, float* %6
%50 = fpext float %49 to double
%51 = call double @llvm.fmuladd.f64(double %50, double -6.800000e+00, double %48)
%52 = fptrunc double %51 to float
%53 = fpext float %52 to double
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0), double %53)
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.47, i64 0, i64 0))
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.54, i64 0, i64 0))
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.55, i64 0, i64 0))
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.56, i64 0, i64 0))
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.57, i64 0, i64 0))
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.58, i64 0, i64 0))
%61 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%62 = load i32, i32* %2
%63 = add i32 %62, -6
%64 = icmp ult i32 %63, -5
br i1 %64, label %65, label %76
65: ; preds = %35, %65
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.53, i64 0, i64 0))
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.54, i64 0, i64 0))
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.55, i64 0, i64 0))
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.56, i64 0, i64 0))
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.57, i64 0, i64 0))
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.58, i64 0, i64 0))
%72 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%73 = load i32, i32* %2
%74 = add i32 %73, -6
%75 = icmp ult i32 %74, -5
br i1 %75, label %65, label %76
76: ; preds = %65, %35
%77 = phi i32 [ %62, %35 ], [ %73, %65 ]
%78 = add i32 %77, -2
%79 = icmp ult i32 %78, 4
br i1 %79, label %80, label %84
80: ; preds = %76
%81 = sext i32 %78 to i64
%82 = getelementptr inbounds [4 x float], [4 x float]* @switch.table.main.62, i64 0, i64 %81
%83 = load float, float* %82
br label %84
84: ; preds = %80, %76
%85 = phi float [ 0x3FF3333340000000, %76 ], [ %83, %80 ]
%86 = fmul float %85, %52
br label %138
87: ; preds = %33
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%89 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %7)
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%91 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %8)
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%93 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), float* %9)
%94 = load float, float* %7
%95 = fpext float %94 to double
%96 = call double @llvm.fmuladd.f64(double %95, double 0x4023333333333333, double 6.550000e+02)
%97 = load float, float* %8
%98 = fpext float %97 to double
%99 = call double @llvm.fmuladd.f64(double %98, double 1.800000e+00, double %96)
%100 = load float, float* %9
%101 = fpext float %100 to double
%102 = call double @llvm.fmuladd.f64(double %101, double -4.700000e+00, double %99)
%103 = fptrunc double %102 to float
%104 = fpext float %103 to double
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0), double %104)
%106 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.47, i64 0, i64 0))
%107 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.54, i64 0, i64 0))
%108 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.55, i64 0, i64 0))
%109 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.56, i64 0, i64 0))
%110 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.57, i64 0, i64 0))
%111 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.58, i64 0, i64 0))
%112 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%113 = load i32, i32* %2
%114 = add i32 %113, -6
%115 = icmp ult i32 %114, -5
br i1 %115, label %116, label %127
116: ; preds = %87, %116
%117 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.53, i64 0, i64 0))
%118 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.54, i64 0, i64 0))
%119 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.55, i64 0, i64 0))
%120 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.56, i64 0, i64 0))
%121 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.57, i64 0, i64 0))
%122 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.58, i64 0, i64 0))
%123 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%124 = load i32, i32* %2
%125 = add i32 %124, -6
%126 = icmp ult i32 %125, -5
br i1 %126, label %116, label %127
127: ; preds = %116, %87
%128 = phi i32 [ %113, %87 ], [ %124, %116 ]
%129 = add i32 %128, -2
%130 = icmp ult i32 %129, 4
br i1 %130, label %131, label %135
131: ; preds = %127
%132 = sext i32 %129 to i64
%133 = getelementptr inbounds [4 x float], [4 x float]* @switch.table.main.62, i64 0, i64 %132
%134 = load float, float* %133
br label %135
135: ; preds = %131, %127
%136 = phi float [ 0x3FF3333340000000, %127 ], [ %134, %131 ]
%137 = fmul float %136, %103
br label %138
138: ; preds = %84, %135
%139 = phi float [ %137, %135 ], [ %86, %84 ]
%140 = phi float [ undef, %135 ], [ %86, %84 ]
%141 = phi float [ %137, %135 ], [ undef, %84 ]
%142 = fpext float %139 to double
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0), double %142)
br label %144
144: ; preds = %138, %33
%145 = phi float [ undef, %33 ], [ %140, %138 ]
%146 = phi float [ undef, %33 ], [ %141, %138 ]
%147 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.37, i64 0, i64 0))
%148 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.38, i64 0, i64 0))
%149 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.39, i64 0, i64 0))
%150 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.40, i64 0, i64 0))
%151 = load i32, i32* %1
%152 = icmp eq i32 %151, 1
%153 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%154 = load i32, i32* %3
%155 = add i32 %154, -4
%156 = icmp ult i32 %155, -3
br i1 %152, label %157, label %173
157: ; preds = %144
br i1 %156, label %158, label %167
158: ; preds = %157, %158
%159 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.37, i64 0, i64 0))
%160 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.38, i64 0, i64 0))
%161 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.39, i64 0, i64 0))
%162 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.40, i64 0, i64 0))
%163 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%164 = load i32, i32* %3
%165 = add i32 %164, -4
%166 = icmp ult i32 %165, -3
br i1 %166, label %158, label %167
167: ; preds = %158, %157
%168 = phi i32 [ %154, %157 ], [ %164, %158 ]
switch i32 %168, label %189 [
i32 1, label %169
i32 2, label %171
]
169: ; preds = %167
%170 = fadd float %145, 5.000000e+02
br label %189
171: ; preds = %167
%172 = fadd float %145, -5.000000e+02
br label %189
173: ; preds = %144
br i1 %156, label %174, label %183
174: ; preds = %173, %174
%175 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.37, i64 0, i64 0))
%176 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.38, i64 0, i64 0))
%177 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.39, i64 0, i64 0))
%178 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.40, i64 0, i64 0))
%179 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%180 = load i32, i32* %3
%181 = add i32 %180, -4
%182 = icmp ult i32 %181, -3
br i1 %182, label %174, label %183
183: ; preds = %174, %173
%184 = phi i32 [ %154, %173 ], [ %180, %174 ]
switch i32 %184, label %189 [
i32 1, label %185
i32 2, label %187
]
185: ; preds = %183
%186 = fadd float %146, 5.000000e+02
br label %189
187: ; preds = %183
%188 = fadd float %146, -5.000000e+02
br label %189
189: ; preds = %185, %187, %183, %169, %171, %167
%190 = phi float [ %172, %171 ], [ %170, %169 ], [ %145, %167 ], [ %188, %187 ], [ %186, %185 ], [ %146, %183 ]
%191 = fpext float %190 to double
%192 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.21, i64 0, i64 0), double %191)
ret i32 0
}