#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*/ clear();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
double *uncertainDiv(double, double, double, double);
double *uncertainMult(double, double, double, double);
double *uncertainPow(double, double, float);
double *uncertainSub(double, double, double, double);
double *uncertainSum(double, double, double, double);
int main() {
  char operando;
  double alfa[2];
  double beta[2];
  double *resolucao = NULL;
  float expoente = 0;
  bool menu = true;
  do {
    if (menu) {
      printf("\n");
      printf("|------------------------------------------\n");
      printf("| Esse programa executa propagação de erro.\n");
      printf("| Escolha a forma de propagação desejada.\n");
      printf("|\t( + ) - Soma.\n");
      printf("|\t( - ) - Subtraçãp.\n");
      printf("|\t( * ) - Multiplicação.\n");
      printf("|\t( / ) - Divisão.\n");
      printf("|\t( ^ ) - Potência.\n");
      printf("| Outras opções:\n");
      printf("|\t( o ) - Desativar esse menu\n");
      printf("|\t( q ) - Sair\n");
      printf("|------------------------------------------\n");
      printf("\n");
    } else {
      printf("Pressione O para reativar o menu\n\n");
    }
    scanf("%c", &operando);
    switch (operando) {
    case '+':
      printf("\e[1;1H\e[2J");
      printf("Entre com os valores na forma de:\n");
      printf("A, ErroA, B, ErroB\n\n");
      scanf("%lf %lf %lf %lf", &alfa[0], &alfa[1], &beta[0], &beta[1]);
      resolucao = uncertainSum(alfa[0], alfa[1], beta[0], beta[1]);
      printf("Resultado = %lf +/- %lf\n", resolucao[0], resolucao[1]);
      clear();
      break;
    case '-':
      printf("\e[1;1H\e[2J");
      printf("Entre com os valores na forma de:\n");
      printf("A, ErroA, B, ErroB\n\n");
      scanf("%lf %lf %lf %lf", &alfa[0], &alfa[1], &beta[0], &beta[1]);
      resolucao = uncertainSub(alfa[0], alfa[1], beta[0], beta[1]);
      printf("Resultado = %lf +/- %lf\n", resolucao[0], resolucao[1]);
      clear();
      break;
    case '*':
      printf("\e[1;1H\e[2J");
      printf("Entre com os valores na forma de:\n");
      printf("A, ErroA, B, ErroB\n\n");
      scanf("%lf %lf %lf %lf", &alfa[0], &alfa[1], &beta[0], &beta[1]);
      resolucao = uncertainMult(alfa[0], alfa[1], beta[0], beta[1]);
      printf("Resultado = %lf +/- %lf\n", resolucao[0], resolucao[1]);
      clear();
      break;
    case '/':
      printf("\e[1;1H\e[2J");
      printf("Entre com os valores na forma de:\n");
      printf("A, ErroA, B, ErroB\n\n");
      scanf("%lf %lf %lf %lf", &alfa[0], &alfa[1], &beta[0], &beta[1]);
      resolucao = uncertainDiv(alfa[0], alfa[1], beta[0], beta[1]);
      printf("Resultado = %lf +/- %lf\n", resolucao[0], resolucao[1]);
      clear();
      break;
    case '^':
      printf("\e[1;1H\e[2J");
      printf("Entre com os valores na forma de:\n");
      printf("A, ErroA, expoente\n\n");
      scanf("%lf %lf %f", &alfa[0], &alfa[1], expoente);
      resolucao = uncertainPow(alfa[0], alfa[1], expoente);
      printf("Resultado = %lf +/- %lf\n", resolucao[0], resolucao[1]);
      clear();
      break;
    case 'o':
    case 'O':
      menu = !menu;
      clear();
      break;
    case 'q':
    case 'Q':
      printf("Saindo do programa.\n");
      printf("Obrigado por utilizá-lo.\n");
      return 0;
      break;
    default:
      printf("\e[1;1H\e[2J");
      printf("Existe um erro na entrada escolhida\n");
      clear();
      break;
    }
  } while (operando != 'Q' && operando != 'q');
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movl   $0x1,-0x40(%rbp)
cmpl   $0x0,-0x40(%rbp)
je     1279 <main+0xf9>
lea    0x110c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf5b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf9b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfbd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfdc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfe4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfea(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xffb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1056(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1287 <main+0x107>
lea    0xfdc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xff1(%rip),%rdi
xor    %eax,%eax
lea    -0x5(%rbp),%rsi
call   1080 <scanf@plt>
movsbl -0x5(%rbp),%eax
add    $0xffffffd6,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x47,%eax
ja     15f8 <main+0x478>
mov    -0x48(%rbp),%rax
lea    0xd46(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfb5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
lea    -0x30(%rbp),%rcx
lea    -0x30(%rbp),%r8
add    $0x8,%r8
lea    0xfb9(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
call   1030 <uncertainSum@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm1
lea    0xf8d(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <clear@plt>
jmp    161b <main+0x49b>
lea    0xf20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
lea    -0x30(%rbp),%rcx
lea    -0x30(%rbp),%r8
add    $0x8,%r8
lea    0xf21(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
call   1090 <uncertainSub@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm1
lea    0xef5(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <clear@plt>
jmp    161b <main+0x49b>
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
lea    -0x30(%rbp),%rcx
lea    -0x30(%rbp),%r8
add    $0x8,%r8
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
call   1050 <uncertainMult@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm1
lea    0xe5d(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <clear@plt>
jmp    161b <main+0x49b>
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
lea    -0x30(%rbp),%rcx
lea    -0x30(%rbp),%r8
add    $0x8,%r8
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
call   1060 <uncertainDiv@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm1
lea    0xdc5(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <clear@plt>
jmp    161b <main+0x49b>
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
movss  -0x3c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd9a(%rip),%rdi
mov    $0x1,%al
call   1080 <scanf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movss  -0x3c(%rbp),%xmm2
call   1070 <uncertainPow@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm1
lea    0xd35(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <clear@plt>
jmp    161b <main+0x49b>
cmpl   $0x0,-0x40(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x40(%rbp)
mov    $0x0,%al
call   10a0 <clear@plt>
jmp    161b <main+0x49b>
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    164a <main+0x4ca>
lea    0xc83(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <clear@plt>
jmp    1620 <main+0x4a0>
movsbl -0x5(%rbp),%ecx
xor    %eax,%eax
cmp    $0x51,%ecx
mov    %al,-0x49(%rbp)
je     163f <main+0x4bf>
movsbl -0x5(%rbp),%eax
cmp    $0x71,%eax
setne  %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    11a6 <main+0x26>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    $0x1,%r14d
lea    0xf65(%rip),%r13
lea    0xf(%rsp),%rbx
lea    0xf5c(%rip),%rbp
lea    0xe32(%rip),%r12
lea    0x1150(%rip),%r15
jmp    125d <main+0xbd>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xfdb(%rip),%rdi
call   1050 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1050 <puts@plt>
xorps  %xmm0,%xmm0
lea    0xf51(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x18(%rsp),%rdx
mov    $0x1,%al
call   10a0 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
xorps  %xmm2,%xmm2
call   1090 <uncertainPow@plt>
nopl   0x0(%rax,%rax,1)
movsd  (%rax),%xmm0
movsd  0x8(%rax),%xmm1
lea    0xefe(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
xor    %eax,%eax
call   10c0 <clear@plt>
movzbl 0xf(%rsp),%eax
and    $0xdf,%al
cmp    $0x51,%al
je     151e <main+0x37e>
test   %r14d,%r14d
je     1310 <main+0x170>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r15,%rdi
call   1050 <puts@plt>
lea    0xfa1(%rip),%rdi
call   1050 <puts@plt>
lea    0xfc3(%rip),%rdi
call   1050 <puts@plt>
lea    0xfe3(%rip),%rdi
call   1050 <puts@plt>
lea    0xfe7(%rip),%rdi
call   1050 <puts@plt>
lea    0xff2(%rip),%rdi
call   1050 <puts@plt>
lea    0x1001(%rip),%rdi
call   1050 <puts@plt>
lea    0x1009(%rip),%rdi
call   1050 <puts@plt>
lea    0x1012(%rip),%rdi
call   1050 <puts@plt>
lea    0x1019(%rip),%rdi
call   1050 <puts@plt>
lea    0x102b(%rip),%rdi
call   1050 <puts@plt>
mov    %r15,%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
jmp    131c <main+0x17c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xe4b(%rip),%rdi
call   1050 <puts@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10a0 <scanf@plt>
movsbl 0xf(%rsp),%eax
add    $0xffffffd6,%eax
cmp    $0x47,%eax
ja     141f <main+0x27f>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
xor    %eax,%eax
test   %r14d,%r14d
sete   %al
mov    %eax,%r14d
jmp    1247 <main+0xa7>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe62(%rip),%rdi
call   1050 <puts@plt>
lea    0xe78(%rip),%rdi
call   1050 <puts@plt>
lea    0xdb2(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x28(%rsp),%r8
xor    %eax,%eax
call   10a0 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
call   1070 <uncertainMult@plt>
jmp    1230 <main+0x90>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdfc(%rip),%rdi
call   1050 <puts@plt>
lea    0xe12(%rip),%rdi
call   1050 <puts@plt>
lea    0xd4c(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x28(%rsp),%r8
xor    %eax,%eax
call   10a0 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
call   1030 <uncertainSum@plt>
jmp    1230 <main+0x90>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdcc(%rip),%rdi
call   1050 <puts@plt>
jmp    1247 <main+0xa7>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd7b(%rip),%rdi
call   1050 <puts@plt>
lea    0xd91(%rip),%rdi
call   1050 <puts@plt>
lea    0xccb(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x28(%rsp),%r8
xor    %eax,%eax
call   10a0 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
call   10b0 <uncertainSub@plt>
jmp    1230 <main+0x90>
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd15(%rip),%rdi
call   1050 <puts@plt>
lea    0xd2b(%rip),%rdi
call   1050 <puts@plt>
lea    0xc65(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x28(%rsp),%r8
xor    %eax,%eax
call   10a0 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
call   1080 <uncertainDiv@plt>
jmp    1230 <main+0x90>
lea    0xc77(%rip),%rdi
call   1050 <puts@plt>
lea    0xc7f(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [45 x i8] c"|------------------------------------------\0A\00"
@.str.2 = [47 x i8] c"| Esse programa executa propaga\C3\A7\C3\A3o de erro.\0A\00"
@.str.3 = [45 x i8] c"| Escolha a forma de propaga\C3\A7\C3\A3o desejada.\0A\00"
@.str.4 = [17 x i8] c"|\09( + ) - Soma.\0A\00"
@.str.5 = [24 x i8] c"|\09( - ) - Subtra\C3\A7\C3\A3p.\0A\00"
@.str.6 = [28 x i8] c"|\09( * ) - Multiplica\C3\A7\C3\A3o.\0A\00"
@.str.7 = [21 x i8] c"|\09( / ) - Divis\C3\A3o.\0A\00"
@.str.8 = [22 x i8] c"|\09( ^ ) - Pot\C3\AAncia.\0A\00"
@.str.9 = [20 x i8] c"| Outras op\C3\A7\C3\B5es:\0A\00"
@.str.10 = [31 x i8] c"|\09( o ) - Desativar esse menu\0A\00"
@.str.11 = [16 x i8] c"|\09( q ) - Sair\0A\00"
@.str.12 = [35 x i8] c"Pressione O para reativar o menu\0A\0A\00"
@.str.13 = [3 x i8] c"%c\00"
@.str.14 = [11 x i8] c"\1B[1;1H\1B[2J\00"
@.str.15 = [35 x i8] c"Entre com os valores na forma de:\0A\00"
@.str.16 = [21 x i8] c"A, ErroA, B, ErroB\0A\0A\00"
@.str.17 = [16 x i8] c"%lf %lf %lf %lf\00"
@.str.18 = [25 x i8] c"Resultado = %lf +/- %lf\0A\00"
@.str.19 = [21 x i8] c"A, ErroA, expoente\0A\0A\00"
@.str.20 = [11 x i8] c"%lf %lf %f\00"
@.str.21 = [21 x i8] c"Saindo do programa.\0A\00"
@.str.22 = [27 x i8] c"Obrigado por utiliz\C3\A1-lo.\0A\00"
@.str.23 = [37 x i8] c"Existe um erro na entrada escolhida\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca [2 x double]
%4 = alloca [2 x double]
%5 = alloca double*
%6 = alloca float
%7 = alloca i32
store i32 0, i32* %1
store double* null, double** %5
store float 0.000000e+00, float* %6
store i32 1, i32* %7
br label %8
8: ; preds = %181, %0
%9 = load i32, i32* %7
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %26
11: ; preds = %8
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %28
26: ; preds = %8
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
br label %28
28: ; preds = %26, %11
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* %2)
%30 = load i8, i8* %2
%31 = sext i8 %30 to i32
switch i32 %31, label %168 [
i32 43, label %32
i32 45, label %58
i32 42, label %84
i32 47, label %110
i32 94, label %136
i32 111, label %159
i32 79, label %159
i32 113, label %165
i32 81, label %165
]
32: ; preds = %28
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
%36 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%37 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%38 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%39 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%40 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), double* %36, double* %37, double* %38, double* %39)
%41 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%42 = load double, double* %41
%43 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%44 = load double, double* %43
%45 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%46 = load double, double* %45
%47 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%48 = load double, double* %47
%49 = call double* @uncertainSum(double %42, double %44, double %46, double %48)
store double* %49, double** %5
%50 = load double*, double** %5
%51 = getelementptr inbounds double, double* %50, i64 0
%52 = load double, double* %51
%53 = load double*, double** %5
%54 = getelementptr inbounds double, double* %53, i64 1
%55 = load double, double* %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %52, double %55)
%57 = call i32 (...) @clear()
br label %172
58: ; preds = %28
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
%62 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%63 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%64 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%65 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%66 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), double* %62, double* %63, double* %64, double* %65)
%67 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%68 = load double, double* %67
%69 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%70 = load double, double* %69
%71 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%72 = load double, double* %71
%73 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%74 = load double, double* %73
%75 = call double* @uncertainSub(double %68, double %70, double %72, double %74)
store double* %75, double** %5
%76 = load double*, double** %5
%77 = getelementptr inbounds double, double* %76, i64 0
%78 = load double, double* %77
%79 = load double*, double** %5
%80 = getelementptr inbounds double, double* %79, i64 1
%81 = load double, double* %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %78, double %81)
%83 = call i32 (...) @clear()
br label %172
84: ; preds = %28
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
%88 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%89 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%90 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%91 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%92 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), double* %88, double* %89, double* %90, double* %91)
%93 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%94 = load double, double* %93
%95 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%96 = load double, double* %95
%97 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%98 = load double, double* %97
%99 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%100 = load double, double* %99
%101 = call double* @uncertainMult(double %94, double %96, double %98, double %100)
store double* %101, double** %5
%102 = load double*, double** %5
%103 = getelementptr inbounds double, double* %102, i64 0
%104 = load double, double* %103
%105 = load double*, double** %5
%106 = getelementptr inbounds double, double* %105, i64 1
%107 = load double, double* %106
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %104, double %107)
%109 = call i32 (...) @clear()
br label %172
110: ; preds = %28
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
%114 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%115 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%116 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%117 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%118 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), double* %114, double* %115, double* %116, double* %117)
%119 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%120 = load double, double* %119
%121 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%122 = load double, double* %121
%123 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%124 = load double, double* %123
%125 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 1
%126 = load double, double* %125
%127 = call double* @uncertainDiv(double %120, double %122, double %124, double %126)
store double* %127, double** %5
%128 = load double*, double** %5
%129 = getelementptr inbounds double, double* %128, i64 0
%130 = load double, double* %129
%131 = load double*, double** %5
%132 = getelementptr inbounds double, double* %131, i64 1
%133 = load double, double* %132
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %130, double %133)
%135 = call i32 (...) @clear()
br label %172
136: ; preds = %28
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0))
%140 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%141 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%142 = load float, float* %6
%143 = fpext float %142 to double
%144 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0), double* %140, double* %141, double %143)
%145 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%146 = load double, double* %145
%147 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
%148 = load double, double* %147
%149 = load float, float* %6
%150 = call double* @uncertainPow(double %146, double %148, float %149)
store double* %150, double** %5
%151 = load double*, double** %5
%152 = getelementptr inbounds double, double* %151, i64 0
%153 = load double, double* %152
%154 = load double*, double** %5
%155 = getelementptr inbounds double, double* %154, i64 1
%156 = load double, double* %155
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %153, double %156)
%158 = call i32 (...) @clear()
br label %172
159: ; preds = %28, %28
%160 = load i32, i32* %7
%161 = icmp ne i32 %160, 0
%162 = xor i1 %161, true
%163 = zext i1 %162 to i32
store i32 %163, i32* %7
%164 = call i32 (...) @clear()
br label %172
165: ; preds = %28, %28
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0))
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.22, i64 0, i64 0))
store i32 0, i32* %1
br label %183
168: ; preds = %28
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.23, i64 0, i64 0))
%171 = call i32 (...) @clear()
br label %172
172: ; preds = %168, %159, %136, %110, %84, %58, %32
br label %173
173: ; preds = %172
%174 = load i8, i8* %2
%175 = sext i8 %174 to i32
%176 = icmp ne i32 %175, 81
br i1 %176, label %177, label %181
177: ; preds = %173
%178 = load i8, i8* %2
%179 = sext i8 %178 to i32
%180 = icmp ne i32 %179, 113
br label %181
181: ; preds = %177, %173
%182 = phi i1 [ false, %173 ], [ %180, %177 ]
br i1 %182, label %8, label %183
183: ; preds = %165, %181
%184 = load i32, i32* %1
ret i32 %184
}

LLVM IR (-O2):
@.str.13 = [3 x i8] c"%c\00"
@.str.14 = [11 x i8] c"\1B[1;1H\1B[2J\00"
@.str.17 = [16 x i8] c"%lf %lf %lf %lf\00"
@.str.18 = [25 x i8] c"Resultado = %lf +/- %lf\0A\00"
@.str.20 = [11 x i8] c"%lf %lf %f\00"
@str = [34 x i8] c"Pressione O para reativar o menu\0A\00"
@str.24 = [20 x i8] c"Saindo do programa.\00"
@str.25 = [26 x i8] c"Obrigado por utiliz\C3\A1-lo.\00"
@str.27 = [20 x i8] c"A, ErroA, expoente\0A\00"
@str.34 = [34 x i8] c"Entre com os valores na forma de:\00"
@str.35 = [20 x i8] c"A, ErroA, B, ErroB\0A\00"
@str.36 = [36 x i8] c"Existe um erro na entrada escolhida\00"
@str.38 = [46 x i8] c"| Esse programa executa propaga\C3\A7\C3\A3o de erro.\00"
@str.39 = [44 x i8] c"| Escolha a forma de propaga\C3\A7\C3\A3o desejada.\00"
@str.40 = [16 x i8] c"|\09( + ) - Soma.\00"
@str.41 = [23 x i8] c"|\09( - ) - Subtra\C3\A7\C3\A3p.\00"
@str.42 = [27 x i8] c"|\09( * ) - Multiplica\C3\A7\C3\A3o.\00"
@str.43 = [20 x i8] c"|\09( / ) - Divis\C3\A3o.\00"
@str.44 = [21 x i8] c"|\09( ^ ) - Pot\C3\AAncia.\00"
@str.45 = [19 x i8] c"| Outras op\C3\A7\C3\B5es:\00"
@str.46 = [30 x i8] c"|\09( o ) - Desativar esse menu\00"
@str.47 = [15 x i8] c"|\09( q ) - Sair\00"
@str.48 = [44 x i8] c"|------------------------------------------\00"
define i32 @main() {
%1 = alloca i8
%2 = alloca [2 x double]
%3 = alloca [2 x double]
%4 = bitcast [2 x double]* %2 to i8*
%5 = bitcast [2 x double]* %3 to i8*
%6 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 0
%7 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 1
%8 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%9 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
br label %10
10: ; preds = %110, %0
%11 = phi i32 [ 1, %0 ], [ %111, %110 ]
%12 = icmp eq i32 %11, 0
br i1 %12, label %28, label %13
13: ; preds = %10
%14 = call i32 @putchar(i32 10)
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.48, i64 0, i64 0))
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.38, i64 0, i64 0))
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.39, i64 0, i64 0))
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.40, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.41, i64 0, i64 0))
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.42, i64 0, i64 0))
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.43, i64 0, i64 0))
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.44, i64 0, i64 0))
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.45, i64 0, i64 0))
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.46, i64 0, i64 0))
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.47, i64 0, i64 0))
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.48, i64 0, i64 0))
%27 = call i32 @putchar(i32 10)
br label %30
28: ; preds = %10
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %30
30: ; preds = %28, %13
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* %1)
%32 = load i8, i8* %1
%33 = sext i8 %32 to i32
switch i32 %33, label %107 [
i32 43, label %34
i32 45, label %48
i32 42, label %62
i32 47, label %76
i32 94, label %90
i32 111, label %102
i32 79, label %102
i32 113, label %104
i32 81, label %104
]
34: ; preds = %30
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.34, i64 0, i64 0))
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.35, i64 0, i64 0))
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), double* %6, double* %7, double* %8, double* %9)
%39 = load double, double* %6
%40 = load double, double* %7
%41 = load double, double* %8
%42 = load double, double* %9
%43 = call double* @uncertainSum(double %39, double %40, double %41, double %42)
%44 = load double, double* %43
%45 = getelementptr inbounds double, double* %43, i64 1
%46 = load double, double* %45
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %44, double %46)
br label %110
48: ; preds = %30
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.34, i64 0, i64 0))
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.35, i64 0, i64 0))
%52 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), double* %6, double* %7, double* %8, double* %9)
%53 = load double, double* %6
%54 = load double, double* %7
%55 = load double, double* %8
%56 = load double, double* %9
%57 = call double* @uncertainSub(double %53, double %54, double %55, double %56)
%58 = load double, double* %57
%59 = getelementptr inbounds double, double* %57, i64 1
%60 = load double, double* %59
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %58, double %60)
br label %110
62: ; preds = %30
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.34, i64 0, i64 0))
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.35, i64 0, i64 0))
%66 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), double* %6, double* %7, double* %8, double* %9)
%67 = load double, double* %6
%68 = load double, double* %7
%69 = load double, double* %8
%70 = load double, double* %9
%71 = call double* @uncertainMult(double %67, double %68, double %69, double %70)
%72 = load double, double* %71
%73 = getelementptr inbounds double, double* %71, i64 1
%74 = load double, double* %73
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %72, double %74)
br label %110
76: ; preds = %30
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.34, i64 0, i64 0))
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.35, i64 0, i64 0))
%80 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), double* %6, double* %7, double* %8, double* %9)
%81 = load double, double* %6
%82 = load double, double* %7
%83 = load double, double* %8
%84 = load double, double* %9
%85 = call double* @uncertainDiv(double %81, double %82, double %83, double %84)
%86 = load double, double* %85
%87 = getelementptr inbounds double, double* %85, i64 1
%88 = load double, double* %87
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %86, double %88)
br label %110
90: ; preds = %30
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%92 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.34, i64 0, i64 0))
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.27, i64 0, i64 0))
%94 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0), double* %6, double* %7, double 0.000000e+00)
%95 = load double, double* %6
%96 = load double, double* %7
%97 = call double* @uncertainPow(double %95, double %96, float 0.000000e+00)
%98 = load double, double* %97
%99 = getelementptr inbounds double, double* %97, i64 1
%100 = load double, double* %99
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), double %98, double %100)
br label %110
102: ; preds = %30, %30
%103 = zext i1 %12 to i32
br label %110
104: ; preds = %30, %30
%105 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.24, i64 0, i64 0))
%106 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.25, i64 0, i64 0))
br label %116
107: ; preds = %30
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%109 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.36, i64 0, i64 0))
br label %110
110: ; preds = %34, %48, %62, %76, %90, %102, %107
%111 = phi i32 [ %11, %107 ], [ %103, %102 ], [ %11, %90 ], [ %11, %76 ], [ %11, %62 ], [ %11, %48 ], [ %11, %34 ]
%112 = call i32 (...) @clear()
%113 = load i8, i8* %1
%114 = and i8 %113, -33
%115 = icmp eq i8 %114, 81
br i1 %115, label %116, label %10
116: ; preds = %110, %104
ret i32 0
}