#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 convergence(double *, int, int, double, double);
double cords(double *, int, int, double, double *, long *, double, double, int);
double deriv2(double *, int, int, double);
double dicotomic(double *, int, int, double, double *, long *, double, double);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
double function(double *, int, int, double);
double integ_cav_simpson(double *, int, int, double *, int, double, double);
int /*<<< orphan*/ integ_rect(double *, int, int, double *, double *, double *,
                              int, double, double);
double integ_trap(double *, int, int, double *, int, double, double);
int menu_function();
int menu_integ(double, double, long);
int menu_root(int, int);
double newton(double *, int, int, double, double *, long *, double, double,
              int);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ system(char *);
int main(int argc, char *argv[]) {
  double extr_a;
  double extr_b;
  double funz_extr_a;
  double funz_extr_b;
  int choice;
  int functiontype;
  int dimension;
  double param[100];
  int conv = 0;
  int mode;
  double precision;
  double error;
  double errorinteg;
  long int inter;
  double root;
  double integ;
  choice = menu_function();
  functiontype = choice;
  switch (choice) {
  case 1: {
    int i;
    do {
      system("clear");
      fprintf(stdout, "[*] Polynomial :\n");
      fprintf(stdout, "Input The Polynomial's Degree : ");
      scanf("%i", &dimension);
      if (dimension <= 0) {
        fprintf(stderr, "error: Degree Has To Be More Than Zero !!!\n\n");
        sleep(3);
      }
    } while (dimension <= 0);
    fprintf(stdout, " \n");
    fprintf(stdout,
            "Input The Coefficients, Beginning From The Constant Term : \n");
    for (i = 0; i <= dimension; i++) {
      fprintf(stdout, "Coefficient[%i] = ", i);
      scanf("%lf", &param[i]);
      fprintf(stdout, "\n");
    }
    break;
  }
  case 2: {
    dimension = 3;
    system("clear");
    fprintf(stdout, "[*] a*e^x + b*x^n :\n");
    fprintf(stdout, "a = ");
    scanf("%lf", &param[0]);
    fprintf(stdout, "\n");
    fprintf(stdout, "b = ");
    scanf("%lf", &param[1]);
    fprintf(stdout, "\n");
    fprintf(stdout, "n =  ");
    scanf("%lf", &param[2]);
    fprintf(stdout, "\n");
    break;
  }
  case 3: {
    dimension = 6;
    system("clear");
    fprintf(stdout, "[*] A*sin(lx+t) + B*cos(mx+p) :\n");
    fprintf(stdout, "A = ");
    scanf("%lf", &param[0]);
    fprintf(stdout, "\n");
    fprintf(stdout, "l = ");
    scanf("%lf", &param[1]);
    fprintf(stdout, "\n");
    fprintf(stdout, "t = ");
    scanf("%lf", &param[2]);
    fprintf(stdout, "\n");
    fprintf(stdout, "B = ");
    scanf("%lf", &param[3]);
    fprintf(stdout, "\n");
    fprintf(stdout, "m = ");
    scanf("%lf", &param[4]);
    fprintf(stdout, "\n");
    fprintf(stdout, "p = ");
    scanf("%lf", &param[5]);
    fprintf(stdout, "\n");
    break;
  }
  case 4: {
    exit(0);
  }
  }
  while (conv < 2) {
    system("clear");
    fprintf(stdout, " \n");
    fprintf(stdout, "Input The First Extremous : ");
    scanf("%lf", &extr_a);
    funz_extr_a = function(param, dimension, functiontype, extr_a);
    if (funz_extr_a == 0) {
      fprintf(stdout, "The Value Is Already The Root !!!\n");
      root = extr_a;
      sleep(3);
      system("clear");
      fprintf(stdout, "Function's Root : %lf\n", root);
      return 0;
    }
    system("clear");
    fprintf(stdout, " \n");
    fprintf(stdout, "Input The Second Extremous : ");
    scanf("%lf", &extr_b);
    funz_extr_b = function(param, dimension, functiontype, extr_b);
    if (funz_extr_b == 0) {
      fprintf(stdout, "The Value Is Already The Root !!!\n");
      root = extr_b;
      sleep(3);
      system("clear");
      fprintf(stdout, "Function's Root : %lf\n", root);
      return 0;
    }
    conv = convergence(param, dimension, functiontype, extr_a, extr_b);
    if (conv == 7) {
      double der_der_extr_a = deriv2(param, dimension, functiontype, extr_a);
      if (funz_extr_a * der_der_extr_a > 0) {
        mode = 1;
      }
      if (funz_extr_a * der_der_extr_a < 0) {
        mode = 2;
      }
    } else {
      mode = 3;
    }
    fprintf(stderr, "Conv = %i", conv);
  }
  do {
    system("clear");
    fprintf(stdout, "Input The Precision Value (>0) : ");
    scanf("%lf", &precision);
    if (precision <= 0) {
      fprintf(stderr, "error: Precision <= 0 !!!\n\n");
      sleep(3);
    }
  } while (precision <= 0);
  choice = menu_root(mode, conv);
  switch (choice) {
  case 1: {
    root = dicotomic(param, dimension, functiontype, precision, &error, &inter,
                     extr_a, extr_b);
    system("clear");
    fprintf(stdout, "Function's Root [interaction = %li ] : %lf", inter, root);
    if (error == 0) {
      fprintf(stdout, " ± %lf\n", error);
    } else {
      fprintf(stdout, "\n");
    }
    sleep(3);
    break;
  }
  case 2: {
    root = cords(param, dimension, functiontype, precision, &error, &inter,
                 extr_a, extr_b, mode);
    system("clear");
    fprintf(stdout, "Function's Root [interaction = %li ] : %lf", inter, root);
    if (error == 0.) {
      fprintf(stdout, " ± %lf\n", error);
    } else {
      fprintf(stdout, "\n");
    }
    sleep(3);
    break;
  }
  case 3: {
    root = newton(param, dimension, functiontype, precision, &error, &inter,
                  extr_a, extr_b, mode);
    system("clear");
    fprintf(stdout, "Function's Root [interaction = %li ] : %lf", inter, root);
    if (error == 0.) {
      fprintf(stdout, " ± %lf\n", error);
    } else {
      fprintf(stdout, "\n");
    }
    sleep(3);
    break;
  }
  case 4: {
    break;
  }
  }
  system("clear");
  choice = menu_integ(root, error, inter);
  switch (choice) {
  case 1: {
    double integ_first;
    double integ_second;
    integ_rect(param, dimension, functiontype, &integ_first, &integ_second,
               &errorinteg, conv, extr_a, extr_b);
    system("clear");
    fprintf(stdout, "Function's Root [interaction = %li ] : %lf", inter, root);
    if (error == 0.) {
      fprintf(stdout, " ± %lf\n", error);
    } else {
      fprintf(stdout, "\n");
    }
    fprintf(stdout, "First Integral [ %lf , %lf ] = %lf", extr_a, extr_b,
            integ_first);
    if (errorinteg == 0.) {
      fprintf(stdout, " ± %lf\n", errorinteg);
    } else {
      fprintf(stdout, "\n");
    }
    fprintf(stdout, "Second Integral [ %lf , %lf ] = %lf", extr_a, extr_b,
            integ_second);
    if (errorinteg == 0.) {
      fprintf(stdout, " ± %lf\n", errorinteg);
    } else {
      fprintf(stdout, "\n");
    }
    sleep(3);
    break;
  }
  case 2: {
    integ = integ_trap(param, dimension, functiontype, &errorinteg, conv,
                       extr_a, extr_b);
    system("clear");
    fprintf(stdout, "Function's Root [interaction = %li ] : %lf", inter, root);
    if (error == 0.) {
      fprintf(stdout, " ± %lf\n", error);
    } else {
      fprintf(stdout, "\n");
    }
    fprintf(stdout, "Integral [ %lf , %lf ] = %lf", extr_a, extr_b, integ);
    if (errorinteg == 0.) {
      fprintf(stdout, " ± %lf\n", errorinteg);
    } else {
      fprintf(stdout, "\n");
    }
    sleep(3);
    break;
  }
  case 3: {
    integ = integ_cav_simpson(param, dimension, functiontype, &errorinteg, conv,
                              extr_a, extr_b);
    system("clear");
    fprintf(stdout, "Function's Root [interaction = %li ] : %lf", inter, root);
    if (error == 0.) {
      fprintf(stdout, " ± %lf\n", error);
    } else {
      fprintf(stdout, "\n");
    }
    fprintf(stdout, "Integral [ %lf , %lf ] = %lf", extr_a, extr_b, integ);
    if (errorinteg == 0.) {
      fprintf(stdout, " ± %lf\n", errorinteg);
    } else {
      fprintf(stdout, "\n");
    }
    sleep(3);
    break;
  }
  case 4: {
    system("clear");
    fprintf(stdout, "Function's Root [interaction = %li ] : %lf", inter, root);
    if (error == 0.) {
      fprintf(stdout, " ± %lf\n", error);
    } else {
      fprintf(stdout, "\n");
    }
    sleep(3);
    break;
  }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3e0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x364(%rbp)
xor    %eax,%eax
call   10c0 <menu_function@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x3c0(%rbp)
sub    $0x3,%eax
ja     1690 <main+0x480>
mov    -0x3c0(%rbp),%rax
lea    0x1d97(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1277 <main+0x67>
lea    0x1db2(%rip),%rdi
call   1070 <system@plt>
mov    0x3d4e(%rip),%rax
mov    (%rax),%edi
lea    0x1da3(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3d37(%rip),%rax
mov    (%rax),%edi
lea    0x1d9e(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    0x1f0e(%rip),%rdi
lea    -0x3c(%rbp),%rsi
mov    $0x0,%al
call   10e0 <scanf@plt>
cmpl   $0x0,-0x3c(%rbp)
jg     12ee <main+0xde>
mov    0x3d0c(%rip),%rax
mov    (%rax),%edi
lea    0x1d8c(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
jmp    12f3 <main+0xe3>
cmpl   $0x0,-0x3c(%rbp)
jle    1277 <main+0x67>
mov    0x3cd4(%rip),%rax
mov    (%rax),%edi
lea    0x1dc3(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3cbd(%rip),%rax
mov    (%rax),%edi
lea    0x1d72(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
movl   $0x0,-0x39c(%rbp)
mov    -0x39c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jg     13af <main+0x19f>
mov    0x3c8d(%rip),%rax
mov    (%rax),%edi
mov    -0x39c(%rbp),%edx
lea    0x1d79(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
movslq -0x39c(%rbp),%rax
lea    -0x360(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
lea    0x1eb1(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x3c4d(%rip),%rax
mov    (%rax),%edi
lea    0x1e71(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    -0x39c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x39c(%rbp)
jmp    1335 <main+0x125>
jmp    1690 <main+0x480>
movl   $0x3,-0x3c(%rbp)
lea    0x1c6e(%rip),%rdi
call   1070 <system@plt>
mov    0x3c0a(%rip),%rax
mov    (%rax),%edi
lea    0x1d0f(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3bf3(%rip),%rax
mov    (%rax),%edi
lea    0x1d0d(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
lea    0x1e2b(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x3bc7(%rip),%rax
mov    (%rax),%edi
lea    0x1deb(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3bb0(%rip),%rax
mov    (%rax),%edi
lea    0x1ccf(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
add    $0x8,%rsi
lea    0x1de4(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x3b80(%rip),%rax
mov    (%rax),%edi
lea    0x1da4(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3b69(%rip),%rax
mov    (%rax),%edi
lea    0x1c8d(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
add    $0x10,%rsi
lea    0x1d9d(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x3b39(%rip),%rax
mov    (%rax),%edi
lea    0x1d5d(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
jmp    1690 <main+0x480>
movl   $0x6,-0x3c(%rbp)
lea    0x1b6e(%rip),%rdi
call   1070 <system@plt>
mov    0x3b0a(%rip),%rax
mov    (%rax),%edi
lea    0x1c34(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3af3(%rip),%rax
mov    (%rax),%edi
lea    0x1c3e(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
lea    0x1d2b(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x3ac7(%rip),%rax
mov    (%rax),%edi
lea    0x1ceb(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3ab0(%rip),%rax
mov    (%rax),%edi
lea    0x1c00(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
add    $0x8,%rsi
lea    0x1ce4(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x3a80(%rip),%rax
mov    (%rax),%edi
lea    0x1ca4(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3a69(%rip),%rax
mov    (%rax),%edi
lea    0x1bbe(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
add    $0x10,%rsi
lea    0x1c9d(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x3a39(%rip),%rax
mov    (%rax),%edi
lea    0x1c5d(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3a22(%rip),%rax
mov    (%rax),%edi
lea    0x1b7c(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
add    $0x18,%rsi
lea    0x1c56(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x39f2(%rip),%rax
mov    (%rax),%edi
lea    0x1c16(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x39db(%rip),%rax
mov    (%rax),%edi
lea    0x1b3a(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
add    $0x20,%rsi
lea    0x1c0f(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x39ab(%rip),%rax
mov    (%rax),%edi
lea    0x1bcf(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3994(%rip),%rax
mov    (%rax),%edi
lea    0x1af8(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x360(%rbp),%rsi
add    $0x28,%rsi
lea    0x1bc8(%rip),%rdi
mov    $0x0,%al
call   10e0 <scanf@plt>
mov    0x3964(%rip),%rax
mov    (%rax),%edi
lea    0x1b88(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
jmp    1690 <main+0x480>
xor    %edi,%edi
call   1100 <exit@plt>
jmp    1695 <main+0x485>
cmpl   $0x2,-0x364(%rbp)
jge    1933 <main+0x723>
lea    0x1987(%rip),%rdi
call   1070 <system@plt>
mov    0x3923(%rip),%rax
mov    (%rax),%edi
lea    0x1a12(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x390c(%rip),%rax
mov    (%rax),%edi
lea    0x1a75(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    0x1b4b(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   10e0 <scanf@plt>
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
movsd  -0x18(%rbp),%xmm0
call   10f0 <function@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1787 <main+0x577>
jp     1787 <main+0x577>
mov    0x38af(%rip),%rax
mov    (%rax),%edi
lea    0x1a35(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x390(%rbp)
ff
mov    $0x3,%edi
call   1110 <sleep@plt>
lea    0x18d9(%rip),%rdi
call   1070 <system@plt>
mov    0x3875(%rip),%rax
mov    (%rax),%edi
movsd  -0x390(%rbp),%xmm0
ff
lea    0x1a16(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    21d3 <main+0xfc3>
lea    0x18a2(%rip),%rdi
call   1070 <system@plt>
mov    0x383e(%rip),%rax
mov    (%rax),%edi
lea    0x192d(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3827(%rip),%rax
mov    (%rax),%edi
lea    0x19e7(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    0x1a66(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   10e0 <scanf@plt>
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
movsd  -0x20(%rbp),%xmm0
call   10f0 <function@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    186c <main+0x65c>
jp     186c <main+0x65c>
mov    0x37ca(%rip),%rax
mov    (%rax),%edi
lea    0x1950(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x390(%rbp)
ff
mov    $0x3,%edi
call   1110 <sleep@plt>
lea    0x17f4(%rip),%rdi
call   1070 <system@plt>
mov    0x3790(%rip),%rax
mov    (%rax),%edi
movsd  -0x390(%rbp),%xmm0
ff
lea    0x1931(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    21d3 <main+0xfc3>
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
call   1090 <convergence@plt>
mov    %eax,-0x364(%rbp)
cmpl   $0x7,-0x364(%rbp)
jne    1907 <main+0x6f7>
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
movsd  -0x18(%rbp),%xmm0
call   1050 <deriv2@plt>
movsd  %xmm0,-0x3a8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
mulsd  -0x3a8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    18de <main+0x6ce>
movl   $0x1,-0x368(%rbp)
movsd  -0x28(%rbp),%xmm1
mulsd  -0x3a8(%rbp),%xmm1
ff
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1902 <main+0x6f2>
movl   $0x2,-0x368(%rbp)
jmp    1911 <main+0x701>
movl   $0x3,-0x368(%rbp)
mov    0x36c8(%rip),%rax
mov    (%rax),%edi
mov    -0x364(%rbp),%edx
lea    0x1898(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
jmp    1695 <main+0x485>
jmp    1938 <main+0x728>
lea    0x16f1(%rip),%rdi
call   1070 <system@plt>
mov    0x368d(%rip),%rax
mov    (%rax),%edi
lea    0x1875(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    0x18cc(%rip),%rdi
lea    -0x370(%rbp),%rsi
mov    $0x0,%al
call   10e0 <scanf@plt>
xorps  %xmm0,%xmm0
ucomisd -0x370(%rbp),%xmm0
ff
jb     19a2 <main+0x792>
mov    0x3658(%rip),%rax
mov    (%rax),%edi
lea    0x185a(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
jmp    19a7 <main+0x797>
xorps  %xmm0,%xmm0
ucomisd -0x370(%rbp),%xmm0
ff
jae    1938 <main+0x728>
mov    -0x368(%rbp),%edi
mov    -0x364(%rbp),%esi
call   1060 <menu_root@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x3c8(%rbp)
sub    $0x3,%eax
ja     1c81 <main+0xa71>
mov    -0x3c8(%rbp),%rax
lea    0x161e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
movsd  -0x370(%rbp),%xmm0
ff
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
lea    -0x378(%rbp),%rcx
lea    -0x388(%rbp),%r8
call   1030 <dicotomic@plt>
movsd  %xmm0,-0x390(%rbp)
ff
lea    0x15f4(%rip),%rdi
call   1070 <system@plt>
mov    0x3590(%rip),%rax
mov    (%rax),%edi
mov    -0x388(%rbp),%rdx
movsd  -0x390(%rbp),%xmm0
ff
lea    0x17a7(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  -0x378(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1aa6 <main+0x896>
jp     1aa6 <main+0x896>
mov    0x354f(%rip),%rax
mov    (%rax),%edi
movsd  -0x378(%rbp),%xmm0
ff
lea    0x1798(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1abd <main+0x8ad>
mov    0x352b(%rip),%rax
mov    (%rax),%edi
lea    0x174f(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
jmp    1c81 <main+0xa71>
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
movsd  -0x370(%rbp),%xmm0
ff
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    -0x368(%rbp),%r9d
lea    -0x378(%rbp),%rcx
lea    -0x388(%rbp),%r8
call   1040 <cords@plt>
movsd  %xmm0,-0x390(%rbp)
ff
lea    0x151c(%rip),%rdi
call   1070 <system@plt>
mov    0x34b8(%rip),%rax
mov    (%rax),%edi
mov    -0x388(%rbp),%rdx
movsd  -0x390(%rbp),%xmm0
ff
lea    0x16cf(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  -0x378(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1b7e <main+0x96e>
jp     1b7e <main+0x96e>
mov    0x3477(%rip),%rax
mov    (%rax),%edi
movsd  -0x378(%rbp),%xmm0
ff
lea    0x16c0(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1b95 <main+0x985>
mov    0x3453(%rip),%rax
mov    (%rax),%edi
lea    0x1677(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
jmp    1c81 <main+0xa71>
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
movsd  -0x370(%rbp),%xmm0
ff
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    -0x368(%rbp),%r9d
lea    -0x378(%rbp),%rcx
lea    -0x388(%rbp),%r8
call   1080 <newton@plt>
movsd  %xmm0,-0x390(%rbp)
ff
lea    0x1444(%rip),%rdi
call   1070 <system@plt>
mov    0x33e0(%rip),%rax
mov    (%rax),%edi
mov    -0x388(%rbp),%rdx
movsd  -0x390(%rbp),%xmm0
ff
lea    0x15f7(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  -0x378(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1c56 <main+0xa46>
jp     1c56 <main+0xa46>
mov    0x339f(%rip),%rax
mov    (%rax),%edi
movsd  -0x378(%rbp),%xmm0
ff
lea    0x15e8(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1c6d <main+0xa5d>
mov    0x337b(%rip),%rax
mov    (%rax),%edi
lea    0x159f(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
jmp    1c81 <main+0xa71>
jmp    1c81 <main+0xa71>
lea    0x13a8(%rip),%rdi
call   1070 <system@plt>
movsd  -0x390(%rbp),%xmm0
ff
movsd  -0x378(%rbp),%xmm1
ff
mov    -0x388(%rbp),%rdi
call   10d0 <menu_integ@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x3d0(%rbp)
sub    $0x3,%eax
ja     21cc <main+0xfbc>
mov    -0x3d0(%rbp),%rax
lea    0x134e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
mov    -0x364(%rbp),%eax
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
lea    -0x3b0(%rbp),%rcx
lea    -0x3b8(%rbp),%r8
lea    -0x380(%rbp),%r9
mov    %eax,(%rsp)
call   1120 <integ_rect@plt>
lea    0x1314(%rip),%rdi
call   1070 <system@plt>
mov    0x32b0(%rip),%rax
mov    (%rax),%edi
mov    -0x388(%rbp),%rdx
movsd  -0x390(%rbp),%xmm0
ff
lea    0x14c7(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  -0x378(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1d86 <main+0xb76>
jp     1d86 <main+0xb76>
mov    0x326f(%rip),%rax
mov    (%rax),%edi
movsd  -0x378(%rbp),%xmm0
ff
lea    0x14b8(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1d9d <main+0xb8d>
mov    0x324b(%rip),%rax
mov    (%rax),%edi
lea    0x146f(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x3234(%rip),%rax
mov    (%rax),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x3b0(%rbp),%xmm2
ff
lea    0x147c(%rip),%rsi
mov    $0x3,%al
call   10b0 <fprintf@plt>
movsd  -0x380(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1e05 <main+0xbf5>
jp     1e05 <main+0xbf5>
mov    0x31f0(%rip),%rax
mov    (%rax),%edi
movsd  -0x380(%rbp),%xmm0
ff
lea    0x1439(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1e1c <main+0xc0c>
mov    0x31cc(%rip),%rax
mov    (%rax),%edi
lea    0x13f0(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x31b5(%rip),%rax
mov    (%rax),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x3b8(%rbp),%xmm2
ff
lea    0x1420(%rip),%rsi
mov    $0x3,%al
call   10b0 <fprintf@plt>
movsd  -0x380(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1e84 <main+0xc74>
jp     1e84 <main+0xc74>
mov    0x3171(%rip),%rax
mov    (%rax),%edi
movsd  -0x380(%rbp),%xmm0
ff
lea    0x13ba(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1e9b <main+0xc8b>
mov    0x314d(%rip),%rax
mov    (%rax),%edi
lea    0x1371(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
jmp    21cc <main+0xfbc>
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
mov    -0x364(%rbp),%r8d
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
lea    -0x380(%rbp),%rcx
call   10a0 <integ_trap@plt>
movsd  %xmm0,-0x398(%rbp)
ff
lea    0x114d(%rip),%rdi
call   1070 <system@plt>
mov    0x30e9(%rip),%rax
mov    (%rax),%edi
mov    -0x388(%rbp),%rdx
movsd  -0x390(%rbp),%xmm0
ff
lea    0x1300(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  -0x378(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1f4d <main+0xd3d>
jp     1f4d <main+0xd3d>
mov    0x30a8(%rip),%rax
mov    (%rax),%edi
movsd  -0x378(%rbp),%xmm0
ff
lea    0x12f1(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1f64 <main+0xd54>
mov    0x3084(%rip),%rax
mov    (%rax),%edi
lea    0x12a8(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x306d(%rip),%rax
mov    (%rax),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x398(%rbp),%xmm2
ff
lea    0x12df(%rip),%rsi
mov    $0x3,%al
call   10b0 <fprintf@plt>
movsd  -0x380(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1fcc <main+0xdbc>
jp     1fcc <main+0xdbc>
mov    0x3029(%rip),%rax
mov    (%rax),%edi
movsd  -0x380(%rbp),%xmm0
ff
lea    0x1272(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1fe3 <main+0xdd3>
mov    0x3005(%rip),%rax
mov    (%rax),%edi
lea    0x1229(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
jmp    21cc <main+0xfbc>
lea    -0x360(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
mov    -0x364(%rbp),%r8d
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
lea    -0x380(%rbp),%rcx
call   1130 <integ_cav_simpson@plt>
movsd  %xmm0,-0x398(%rbp)
ff
lea    0x1005(%rip),%rdi
call   1070 <system@plt>
mov    0x2fa1(%rip),%rax
mov    (%rax),%edi
mov    -0x388(%rbp),%rdx
movsd  -0x390(%rbp),%xmm0
ff
lea    0x11b8(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  -0x378(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    2095 <main+0xe85>
jp     2095 <main+0xe85>
mov    0x2f60(%rip),%rax
mov    (%rax),%edi
movsd  -0x378(%rbp),%xmm0
ff
lea    0x11a9(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    20ac <main+0xe9c>
mov    0x2f3c(%rip),%rax
mov    (%rax),%edi
lea    0x1160(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x2f25(%rip),%rax
mov    (%rax),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x398(%rbp),%xmm2
ff
lea    0x1197(%rip),%rsi
mov    $0x3,%al
call   10b0 <fprintf@plt>
movsd  -0x380(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    2114 <main+0xf04>
jp     2114 <main+0xf04>
mov    0x2ee1(%rip),%rax
mov    (%rax),%edi
movsd  -0x380(%rbp),%xmm0
lea    0x112a(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    212b <main+0xf1b>
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
lea    0x10e1(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
jmp    21cc <main+0xfbc>
lea    0xeef(%rip),%rdi
call   1070 <system@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
mov    -0x388(%rbp),%rdx
movsd  -0x390(%rbp),%xmm0
ff
lea    0x10a2(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  -0x378(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    21ab <main+0xf9b>
jp     21ab <main+0xf9b>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edi
movsd  -0x378(%rbp),%xmm0
ff
lea    0x1093(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    21c2 <main+0xfb2>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
lea    0x104a(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x3e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x388,%rsp
xor    %eax,%eax
call   10c0 <menu_function@plt>
mov    %eax,0x28(%rsp)
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     1550 <main+0x340>
lea    0xdc9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d89(%rip),%r13
lea    0xdea(%rip),%r15
lea    0xf61(%rip),%rbx
lea    0xc(%rsp),%rbp
mov    0x2d77(%rip),%r12
lea    0xdf1(%rip),%r14
lea    0xdb1(%rip),%rdi
call   1070 <system@plt>
mov    0x0(%r13),%edi
lea    0xda7(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   10e0 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jg     12cf <main+0xbf>
mov    (%r12),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
cmpl   $0x0,0xc(%rsp)
jle    1270 <main+0x60>
mov    0x0(%r13),%edi
lea    0xdee(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x0(%r13),%edi
lea    0xda2(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
cmpl   $0x0,0xc(%rsp)
js     1550 <main+0x340>
mov    $0xffffffffffffffff,%rbx
lea    0x60(%rsp),%rbp
lea    0xdba(%rip),%r14
lea    0xf0e(%rip),%r15
lea    0xede(%rip),%r12
nop
mov    0x0(%r13),%edi
add    $0x1,%rbx
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    0x0(%r13),%edi
mov    %r12,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
movslq 0xc(%rsp),%rax
add    $0x8,%rbp
cmp    %rax,%rbx
jl     1320 <main+0x110>
jmp    1550 <main+0x340>
movl   $0x3,0xc(%rsp)
lea    0xcb7(%rip),%rdi
call   1070 <system@plt>
mov    0x2c5b(%rip),%rbx
mov    (%rbx),%edi
lea    0xd58(%rip),%rsi
xor    %ebp,%ebp
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd5b(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x2,%eax
mov    %rax,0x10(%rsp)
lea    0xd4d(%rip),%r14
mov    $0x1,%r13d
lea    0xd3b(%rip),%rbx
jmp    14af <main+0x29f>
movl   $0x6,0xc(%rsp)
lea    0xc57(%rip),%rdi
call   1070 <system@plt>
mov    0x2bfb(%rip),%rbx
mov    (%rbx),%edi
lea    0xd1d(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd2e(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
lea    0xe22(%rip),%r14
lea    0x60(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    (%rbx),%edi
lea    0xde1(%rip),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xcfa(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
lea    0x68(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    (%rbx),%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xcd4(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
lea    0x70(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    (%rbx),%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xcae(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x5,%eax
mov    %rax,0x10(%rsp)
lea    0xca0(%rip),%r14
mov    $0x4,%r13d
lea    0xc8e(%rip),%rbx
mov    $0x3,%ebp
lea    (%rsp,%rbp,8),%rsi
add    $0x60,%rsi
lea    0xd68(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    0x2b09(%rip),%r12
mov    (%r12),%edi
lea    0xd23(%rip),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%r12),%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
lea    (%rsp,%r13,8),%rsi
add    $0x60,%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    (%r12),%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%r12),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x10(%rsp),%rax
lea    (%rsp,%rax,8),%rsi
add    $0x60,%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    (%r12),%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xad1(%rip),%rdi
call   1070 <system@plt>
mov    0x2a75(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xb5b(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xbc4(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
lea    0xc9a(%rip),%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    0xc(%rsp),%esi
movsd  0x18(%rsp),%xmm0
lea    0x60(%rsp),%rdi
mov    0x28(%rsp),%ebx
mov    %ebx,%edx
call   10f0 <function@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    15c2 <main+0x3b2>
jnp    1684 <main+0x474>
movsd  %xmm0,0x10(%rsp)
lea    0xa59(%rip),%rdi
call   1070 <system@plt>
mov    0x0(%rbp),%edi
lea    0xaea(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xbaa(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
lea    0xc29(%rip),%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   10e0 <scanf@plt>
mov    0xc(%rsp),%esi
movsd  0x20(%rsp),%xmm0
lea    0x60(%rsp),%rdi
mov    %ebx,%edx
call   10f0 <function@plt>
ucomisd 0x9d9(%rip),%xmm0
jne    162b <main+0x41b>
jnp    169d <main+0x48d>
mov    0xc(%rsp),%esi
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
lea    0x60(%rsp),%rdi
mov    %ebx,%edx
call   1090 <convergence@plt>
mov    %eax,%r15d
cmp    $0x7,%eax
je     16ec <main+0x4dc>
mov    0x2986(%rip),%rax
mov    (%rax),%edi
lea    0xb54(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   10b0 <fprintf@plt>
cmp    $0x2,%r15d
jl     1550 <main+0x340>
movl   $0x3,0x10(%rsp)
jmp    1748 <main+0x538>
mov    0x0(%rbp),%edi
lea    0xad1(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
movsd  0x18(%rsp),%xmm0
jmp    16b4 <main+0x4a4>
mov    0x0(%rbp),%edi
lea    0xab8(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
mov    $0x3,%edi
call   1110 <sleep@plt>
lea    0x95d(%rip),%rdi
call   1070 <system@plt>
mov    0x0(%rbp),%edi
lea    0xaa8(%rip),%rsi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1b87 <main+0x977>
mov    0xc(%rsp),%esi
movsd  0x18(%rsp),%xmm0
lea    0x60(%rsp),%rdi
mov    %ebx,%edx
call   1050 <deriv2@plt>
movsd  0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
xor    %eax,%eax
ucomisd %xmm0,%xmm1
setbe  %al
add    %eax,%eax
add    $0x1,%eax
ucomisd %xmm1,%xmm0
mov    $0x2,%ecx
cmovbe %eax,%ecx
mov    %ecx,0x10(%rsp)
mov    0x28ab(%rip),%rax
mov    (%rax),%edi
lea    0xa79(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   10b0 <fprintf@plt>
lea    0x8d9(%rip),%r12
lea    0xa6b(%rip),%r13
lea    0xac9(%rip),%rbx
lea    0x48(%rsp),%r14
jmp    1776 <main+0x566>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
ucomisd %xmm0,%xmm1
jb     17d5 <main+0x5c5>
mov    %r12,%rdi
call   1070 <system@plt>
mov    0x0(%rbp),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   10e0 <scanf@plt>
xorpd  %xmm1,%xmm1
movsd  0x48(%rsp),%xmm0
ucomisd %xmm0,%xmm1
jb     1770 <main+0x560>
mov    0x2831(%rip),%rax
mov    (%rax),%edi
lea    0xa2b(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
xorpd  %xmm1,%xmm1
movsd  0x48(%rsp),%xmm0
jmp    1770 <main+0x560>
mov    0x10(%rsp),%ebx
mov    %ebx,%edi
mov    %r15d,%esi
call   1060 <menu_root@plt>
cmp    $0x3,%eax
je     182a <main+0x61a>
cmp    $0x2,%eax
mov    0x28(%rsp),%r14d
je     1861 <main+0x651>
cmp    $0x1,%eax
jne    18fc <main+0x6ec>
mov    0xc(%rsp),%esi
movsd  0x48(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
lea    0x60(%rsp),%rdi
lea    0x38(%rsp),%rcx
lea    0x30(%rsp),%r8
mov    %r14d,%edx
call   1030 <dicotomic@plt>
jmp    1891 <main+0x681>
mov    0xc(%rsp),%esi
movsd  0x48(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
lea    0x60(%rsp),%rdi
lea    0x38(%rsp),%rcx
lea    0x30(%rsp),%r8
mov    0x28(%rsp),%r14d
mov    %r14d,%edx
mov    %ebx,%r9d
call   1080 <newton@plt>
jmp    1891 <main+0x681>
mov    0xc(%rsp),%esi
movsd  0x48(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
lea    0x60(%rsp),%rdi
lea    0x38(%rsp),%rcx
lea    0x30(%rsp),%r8
mov    %r14d,%edx
mov    %ebx,%r9d
call   1040 <cords@plt>
movsd  %xmm0,0x10(%rsp)
lea    0x78a(%rip),%rdi
call   1070 <system@plt>
mov    0x0(%rbp),%edi
mov    0x30(%rsp),%rdx
lea    0x94d(%rip),%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  0x38(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    0x0(%rbp),%edi
jne    18e4 <main+0x6d4>
jp     18e4 <main+0x6d4>
lea    0x94f(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    18f2 <main+0x6e2>
lea    0x912(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
lea    0x725(%rip),%rdi
call   1070 <system@plt>
movsd  0x38(%rsp),%xmm1
mov    0x30(%rsp),%rdi
movsd  0x10(%rsp),%xmm0
call   10d0 <menu_integ@plt>
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     1b87 <main+0x977>
lea    0x6e7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0xc(%rsp),%esi
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mov    %r15d,(%rsp)
lea    0x60(%rsp),%rdi
lea    0x58(%rsp),%rcx
lea    0x50(%rsp),%r8
lea    0x40(%rsp),%r9
mov    %r14d,%edx
call   1120 <integ_rect@plt>
lea    0x6b7(%rip),%rdi
call   1070 <system@plt>
mov    0x0(%rbp),%edi
mov    0x30(%rsp),%rdx
lea    0x87a(%rip),%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  0x38(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    0x0(%rbp),%edi
jne    1ac3 <main+0x8b3>
jp     1ac3 <main+0x8b3>
lea    0x874(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1ad1 <main+0x8c1>
mov    0xc(%rsp),%esi
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
lea    0x60(%rsp),%rdi
lea    0x40(%rsp),%rcx
mov    %r14d,%edx
mov    %r15d,%r8d
call   10a0 <integ_trap@plt>
jmp    1a0e <main+0x7fe>
mov    0xc(%rsp),%esi
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
lea    0x60(%rsp),%rdi
lea    0x40(%rsp),%rcx
mov    %r14d,%edx
mov    %r15d,%r8d
call   1130 <integ_cav_simpson@plt>
movsd  %xmm0,0x28(%rsp)
lea    0x60d(%rip),%rdi
call   1070 <system@plt>
mov    0x0(%rbp),%edi
mov    0x30(%rsp),%rdx
lea    0x7d0(%rip),%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  0x38(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    0x0(%rbp),%edi
jne    1a94 <main+0x884>
jp     1a94 <main+0x884>
lea    0x7d2(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1aa2 <main+0x892>
lea    0x5c0(%rip),%rdi
call   1070 <system@plt>
mov    0x0(%rbp),%edi
mov    0x30(%rsp),%rdx
lea    0x783(%rip),%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   10b0 <fprintf@plt>
movsd  0x38(%rsp),%xmm0
jmp    1b50 <main+0x940>
lea    0x762(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x0(%rbp),%edi
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
lea    0x7a5(%rip),%rsi
movsd  0x28(%rsp),%xmm2
jmp    1b43 <main+0x933>
lea    0x733(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x0(%rbp),%edi
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x58(%rsp),%xmm2
lea    0x746(%rip),%rsi
mov    $0x3,%al
call   10b0 <fprintf@plt>
movsd  0x40(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    0x0(%rbp),%edi
jne    1b19 <main+0x909>
jp     1b19 <main+0x909>
lea    0x71a(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1b27 <main+0x917>
lea    0x6dd(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x0(%rbp),%edi
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x50(%rsp),%xmm2
lea    0x713(%rip),%rsi
mov    $0x3,%al
call   10b0 <fprintf@plt>
movsd  0x40(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    0x0(%rbp),%edi
jne    1b6f <main+0x95f>
jp     1b6f <main+0x95f>
lea    0x6c4(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    1b7d <main+0x96d>
lea    0x687(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x3,%edi
call   1110 <sleep@plt>
xor    %eax,%eax
add    $0x388,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@stdout = global i32 0
@.str.1 = [18 x i8] c"[*] Polynomial :\0A\00"
@.str.2 = [33 x i8] c"Input The Polynomial's Degree : \00"
@.str.3 = [3 x i8] c"%i\00"
@stderr = global i32 0
@.str.4 = [45 x i8] c"error: Degree Has To Be More Than Zero !!!\0A\0A\00"
@.str.5 = [3 x i8] c" \0A\00"
@.str.6 = [61 x i8] c"Input The Coefficients, Beginning From The Constant Term : \0A\00"
@.str.7 = [19 x i8] c"Coefficient[%i] = \00"
@.str.8 = [4 x i8] c"%lf\00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [21 x i8] c"[*] a*e^x + b*x^n :\0A\00"
@.str.11 = [5 x i8] c"a = \00"
@.str.12 = [5 x i8] c"b = \00"
@.str.13 = [6 x i8] c"n = \00"
@.str.14 = [33 x i8] c"[*] A*sin(lx+t) + B*cos(mx+p) :\0A\00"
@.str.15 = [5 x i8] c"A = \00"
@.str.16 = [5 x i8] c"l = \00"
@.str.17 = [5 x i8] c"t = \00"
@.str.18 = [5 x i8] c"B = \00"
@.str.19 = [5 x i8] c"m = \00"
@.str.20 = [5 x i8] c"p = \00"
@.str.21 = [29 x i8] c"Input The First Extremous : \00"
@.str.22 = [35 x i8] c"The Value Is Already The Root !!!\0A\00"
@.str.23 = [23 x i8] c"Function's Root : %lf\0A\00"
@.str.24 = [30 x i8] c"Input The Second Extremous : \00"
@.str.25 = [10 x i8] c"Conv = %i\00"
@.str.26 = [34 x i8] c"Input The Precision Value (>0) : \00"
@.str.27 = [28 x i8] c"error: Precision <= 0 !!!\0A\0A\00"
@.str.28 = [43 x i8] c"Function's Root [interaction = %li ] : %lf\00"
@.str.29 = [9 x i8] c" \C2\B1 %lf\0A\00"
@.str.30 = [35 x i8] c"First Integral [ %lf , %lf ] = %lf\00"
@.str.31 = [36 x i8] c"Second Integral [ %lf , %lf ] = %lf\00"
@.str.32 = [29 x i8] c"Integral [ %lf , %lf ] = %lf\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [100 x double]
%14 = alloca i32
%15 = alloca i32
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca i64
%20 = alloca double
%21 = alloca double
%22 = alloca i32
%23 = alloca double
%24 = alloca double
%25 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %14
%26 = call i32 (...) @menu_function()
store i32 %26, i32* %10
%27 = load i32, i32* %10
store i32 %27, i32* %11
%28 = load i32, i32* %10
switch i32 %28, label %134 [
i32 1, label %29
i32 2, label %70
i32 3, label %92
i32 4, label %132
]
29: ; preds = %2
br label %30
30: ; preds = %44, %29
%31 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%32 = load i32, i32* @stdout
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%34 = load i32, i32* @stdout
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %12)
%37 = load i32, i32* %12
%38 = icmp sle i32 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %30
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%42 = call i32 @sleep(i32 3)
br label %43
43: ; preds = %39, %30
br label %44
44: ; preds = %43
%45 = load i32, i32* %12
%46 = icmp sle i32 %45, 0
br i1 %46, label %30, label %47
47: ; preds = %44
%48 = load i32, i32* @stdout
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%50 = load i32, i32* @stdout
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %22
br label %52
52: ; preds = %66, %47
%53 = load i32, i32* %22
%54 = load i32, i32* %12
%55 = icmp sle i32 %53, %54
br i1 %55, label %56, label %69
56: ; preds = %52
%57 = load i32, i32* @stdout
%58 = load i32, i32* %22
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %22
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 %61
%63 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %62)
%64 = load i32, i32* @stdout
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %66
66: ; preds = %56
%67 = load i32, i32* %22
%68 = add nsw i32 %67, 1
store i32 %68, i32* %22
br label %52
69: ; preds = %52
br label %134
70: ; preds = %2
store i32 3, i32* %12
%71 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%72 = load i32, i32* @stdout
%73 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%74 = load i32, i32* @stdout
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%76 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%77 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %76)
%78 = load i32, i32* @stdout
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%80 = load i32, i32* @stdout
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%82 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 1
%83 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %82)
%84 = load i32, i32* @stdout
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%86 = load i32, i32* @stdout
%87 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%88 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 2
%89 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %88)
%90 = load i32, i32* @stdout
%91 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %134
92: ; preds = %2
store i32 6, i32* %12
%93 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%94 = load i32, i32* @stdout
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0))
%96 = load i32, i32* @stdout
%97 = call i32 (i32, i8*, ...) @fprintf(i32 %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%98 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%99 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %98)
%100 = load i32, i32* @stdout
%101 = call i32 (i32, i8*, ...) @fprintf(i32 %100, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%102 = load i32, i32* @stdout
%103 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%104 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 1
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %104)
%106 = load i32, i32* @stdout
%107 = call i32 (i32, i8*, ...) @fprintf(i32 %106, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%108 = load i32, i32* @stdout
%109 = call i32 (i32, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%110 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 2
%111 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %110)
%112 = load i32, i32* @stdout
%113 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%114 = load i32, i32* @stdout
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%116 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 3
%117 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %116)
%118 = load i32, i32* @stdout
%119 = call i32 (i32, i8*, ...) @fprintf(i32 %118, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%120 = load i32, i32* @stdout
%121 = call i32 (i32, i8*, ...) @fprintf(i32 %120, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%122 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 4
%123 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %122)
%124 = load i32, i32* @stdout
%125 = call i32 (i32, i8*, ...) @fprintf(i32 %124, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%126 = load i32, i32* @stdout
%127 = call i32 (i32, i8*, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%128 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 5
%129 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %128)
%130 = load i32, i32* @stdout
%131 = call i32 (i32, i8*, ...) @fprintf(i32 %130, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %134
132: ; preds = %2
%133 = call i32 @exit(i32 0)
unreachable
134: ; preds = %2, %92, %70, %69
br label %135
135: ; preds = %212, %134
%136 = load i32, i32* %14
%137 = icmp slt i32 %136, 2
br i1 %137, label %138, label %216
138: ; preds = %135
%139 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%140 = load i32, i32* @stdout
%141 = call i32 (i32, i8*, ...) @fprintf(i32 %140, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%142 = load i32, i32* @stdout
%143 = call i32 (i32, i8*, ...) @fprintf(i32 %142, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.21, i64 0, i64 0))
%144 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %6)
%145 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%146 = load i32, i32* %12
%147 = load i32, i32* %11
%148 = load double, double* %6
%149 = call double @function(double* %145, i32 %146, i32 %147, double %148)
store double %149, double* %8
%150 = load double, double* %8
%151 = fcmp oeq double %150, 0.000000e+00
br i1 %151, label %152, label %161
152: ; preds = %138
%153 = load i32, i32* @stdout
%154 = call i32 (i32, i8*, ...) @fprintf(i32 %153, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0))
%155 = load double, double* %6
store double %155, double* %20
%156 = call i32 @sleep(i32 3)
%157 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%158 = load i32, i32* @stdout
%159 = load double, double* %20
%160 = call i32 (i32, i8*, ...) @fprintf(i32 %158, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), double %159)
store i32 0, i32* %3
br label %469
161: ; preds = %138
%162 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%163 = load i32, i32* @stdout
%164 = call i32 (i32, i8*, ...) @fprintf(i32 %163, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%165 = load i32, i32* @stdout
%166 = call i32 (i32, i8*, ...) @fprintf(i32 %165, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.24, i64 0, i64 0))
%167 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %7)
%168 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%169 = load i32, i32* %12
%170 = load i32, i32* %11
%171 = load double, double* %7
%172 = call double @function(double* %168, i32 %169, i32 %170, double %171)
store double %172, double* %9
%173 = load double, double* %9
%174 = fcmp oeq double %173, 0.000000e+00
br i1 %174, label %175, label %184
175: ; preds = %161
%176 = load i32, i32* @stdout
%177 = call i32 (i32, i8*, ...) @fprintf(i32 %176, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0))
%178 = load double, double* %7
store double %178, double* %20
%179 = call i32 @sleep(i32 3)
%180 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%181 = load i32, i32* @stdout
%182 = load double, double* %20
%183 = call i32 (i32, i8*, ...) @fprintf(i32 %181, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), double %182)
store i32 0, i32* %3
br label %469
184: ; preds = %161
%185 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%186 = load i32, i32* %12
%187 = load i32, i32* %11
%188 = load double, double* %6
%189 = load double, double* %7
%190 = call i32 @convergence(double* %185, i32 %186, i32 %187, double %188, double %189)
store i32 %190, i32* %14
%191 = load i32, i32* %14
%192 = icmp eq i32 %191, 7
br i1 %192, label %193, label %211
193: ; preds = %184
%194 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%195 = load i32, i32* %12
%196 = load i32, i32* %11
%197 = load double, double* %6
%198 = call double @deriv2(double* %194, i32 %195, i32 %196, double %197)
store double %198, double* %23
%199 = load double, double* %8
%200 = load double, double* %23
%201 = fmul double %199, %200
%202 = fcmp ogt double %201, 0.000000e+00
br i1 %202, label %203, label %204
203: ; preds = %193
store i32 1, i32* %15
br label %204
204: ; preds = %203, %193
%205 = load double, double* %8
%206 = load double, double* %23
%207 = fmul double %205, %206
%208 = fcmp olt double %207, 0.000000e+00
br i1 %208, label %209, label %210
209: ; preds = %204
store i32 2, i32* %15
br label %210
210: ; preds = %209, %204
br label %212
211: ; preds = %184
store i32 3, i32* %15
br label %212
212: ; preds = %211, %210
%213 = load i32, i32* @stderr
%214 = load i32, i32* %14
%215 = call i32 (i32, i8*, ...) @fprintf(i32 %213, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i32 %214)
br label %135
216: ; preds = %135
br label %217
217: ; preds = %229, %216
%218 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%219 = load i32, i32* @stdout
%220 = call i32 (i32, i8*, ...) @fprintf(i32 %219, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.26, i64 0, i64 0))
%221 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %16)
%222 = load double, double* %16
%223 = fcmp ole double %222, 0.000000e+00
br i1 %223, label %224, label %228
224: ; preds = %217
%225 = load i32, i32* @stderr
%226 = call i32 (i32, i8*, ...) @fprintf(i32 %225, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.27, i64 0, i64 0))
%227 = call i32 @sleep(i32 3)
br label %228
228: ; preds = %224, %217
br label %229
229: ; preds = %228
%230 = load double, double* %16
%231 = fcmp ole double %230, 0.000000e+00
br i1 %231, label %217, label %232
232: ; preds = %229
%233 = load i32, i32* %15
%234 = load i32, i32* %14
%235 = call i32 @menu_root(i32 %233, i32 %234)
store i32 %235, i32* %10
%236 = load i32, i32* %10
switch i32 %236, label %312 [
i32 1, label %237
i32 2, label %261
i32 3, label %286
i32 4, label %311
]
237: ; preds = %232
%238 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%239 = load i32, i32* %12
%240 = load i32, i32* %11
%241 = load double, double* %16
%242 = load double, double* %6
%243 = load double, double* %7
%244 = call double @dicotomic(double* %238, i32 %239, i32 %240, double %241, double* %17, i64* %19, double %242, double %243)
store double %244, double* %20
%245 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%246 = load i32, i32* @stdout
%247 = load i64, i64* %19
%248 = load double, double* %20
%249 = call i32 (i32, i8*, ...) @fprintf(i32 %246, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %247, double %248)
%250 = load double, double* %17
%251 = fcmp oeq double %250, 0.000000e+00
br i1 %251, label %252, label %256
252: ; preds = %237
%253 = load i32, i32* @stdout
%254 = load double, double* %17
%255 = call i32 (i32, i8*, ...) @fprintf(i32 %253, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %254)
br label %259
256: ; preds = %237
%257 = load i32, i32* @stdout
%258 = call i32 (i32, i8*, ...) @fprintf(i32 %257, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %259
259: ; preds = %256, %252
%260 = call i32 @sleep(i32 3)
br label %312
261: ; preds = %232
%262 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%263 = load i32, i32* %12
%264 = load i32, i32* %11
%265 = load double, double* %16
%266 = load double, double* %6
%267 = load double, double* %7
%268 = load i32, i32* %15
%269 = call double @cords(double* %262, i32 %263, i32 %264, double %265, double* %17, i64* %19, double %266, double %267, i32 %268)
store double %269, double* %20
%270 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%271 = load i32, i32* @stdout
%272 = load i64, i64* %19
%273 = load double, double* %20
%274 = call i32 (i32, i8*, ...) @fprintf(i32 %271, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %272, double %273)
%275 = load double, double* %17
%276 = fcmp oeq double %275, 0.000000e+00
br i1 %276, label %277, label %281
277: ; preds = %261
%278 = load i32, i32* @stdout
%279 = load double, double* %17
%280 = call i32 (i32, i8*, ...) @fprintf(i32 %278, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %279)
br label %284
281: ; preds = %261
%282 = load i32, i32* @stdout
%283 = call i32 (i32, i8*, ...) @fprintf(i32 %282, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %284
284: ; preds = %281, %277
%285 = call i32 @sleep(i32 3)
br label %312
286: ; preds = %232
%287 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%288 = load i32, i32* %12
%289 = load i32, i32* %11
%290 = load double, double* %16
%291 = load double, double* %6
%292 = load double, double* %7
%293 = load i32, i32* %15
%294 = call double @newton(double* %287, i32 %288, i32 %289, double %290, double* %17, i64* %19, double %291, double %292, i32 %293)
store double %294, double* %20
%295 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%296 = load i32, i32* @stdout
%297 = load i64, i64* %19
%298 = load double, double* %20
%299 = call i32 (i32, i8*, ...) @fprintf(i32 %296, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %297, double %298)
%300 = load double, double* %17
%301 = fcmp oeq double %300, 0.000000e+00
br i1 %301, label %302, label %306
302: ; preds = %286
%303 = load i32, i32* @stdout
%304 = load double, double* %17
%305 = call i32 (i32, i8*, ...) @fprintf(i32 %303, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %304)
br label %309
306: ; preds = %286
%307 = load i32, i32* @stdout
%308 = call i32 (i32, i8*, ...) @fprintf(i32 %307, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %309
309: ; preds = %306, %302
%310 = call i32 @sleep(i32 3)
br label %312
311: ; preds = %232
br label %312
312: ; preds = %232, %311, %309, %284, %259
%313 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%314 = load double, double* %20
%315 = load double, double* %17
%316 = load i64, i64* %19
%317 = call i32 @menu_integ(double %314, double %315, i64 %316)
store i32 %317, i32* %10
%318 = load i32, i32* %10
switch i32 %318, label %468 [
i32 1, label %319
i32 2, label %373
i32 3, label %412
i32 4, label %451
]
319: ; preds = %312
%320 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%321 = load i32, i32* %12
%322 = load i32, i32* %11
%323 = load i32, i32* %14
%324 = load double, double* %6
%325 = load double, double* %7
%326 = call i32 @integ_rect(double* %320, i32 %321, i32 %322, double* %24, double* %25, double* %18, i32 %323, double %324, double %325)
%327 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%328 = load i32, i32* @stdout
%329 = load i64, i64* %19
%330 = load double, double* %20
%331 = call i32 (i32, i8*, ...) @fprintf(i32 %328, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %329, double %330)
%332 = load double, double* %17
%333 = fcmp oeq double %332, 0.000000e+00
br i1 %333, label %334, label %338
334: ; preds = %319
%335 = load i32, i32* @stdout
%336 = load double, double* %17
%337 = call i32 (i32, i8*, ...) @fprintf(i32 %335, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %336)
br label %341
338: ; preds = %319
%339 = load i32, i32* @stdout
%340 = call i32 (i32, i8*, ...) @fprintf(i32 %339, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %341
341: ; preds = %338, %334
%342 = load i32, i32* @stdout
%343 = load double, double* %6
%344 = load double, double* %7
%345 = load double, double* %24
%346 = call i32 (i32, i8*, ...) @fprintf(i32 %342, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.30, i64 0, i64 0), double %343, double %344, double %345)
%347 = load double, double* %18
%348 = fcmp oeq double %347, 0.000000e+00
br i1 %348, label %349, label %353
349: ; preds = %341
%350 = load i32, i32* @stdout
%351 = load double, double* %18
%352 = call i32 (i32, i8*, ...) @fprintf(i32 %350, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %351)
br label %356
353: ; preds = %341
%354 = load i32, i32* @stdout
%355 = call i32 (i32, i8*, ...) @fprintf(i32 %354, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %356
356: ; preds = %353, %349
%357 = load i32, i32* @stdout
%358 = load double, double* %6
%359 = load double, double* %7
%360 = load double, double* %25
%361 = call i32 (i32, i8*, ...) @fprintf(i32 %357, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.31, i64 0, i64 0), double %358, double %359, double %360)
%362 = load double, double* %18
%363 = fcmp oeq double %362, 0.000000e+00
br i1 %363, label %364, label %368
364: ; preds = %356
%365 = load i32, i32* @stdout
%366 = load double, double* %18
%367 = call i32 (i32, i8*, ...) @fprintf(i32 %365, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %366)
br label %371
368: ; preds = %356
%369 = load i32, i32* @stdout
%370 = call i32 (i32, i8*, ...) @fprintf(i32 %369, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %371
371: ; preds = %368, %364
%372 = call i32 @sleep(i32 3)
br label %468
373: ; preds = %312
%374 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%375 = load i32, i32* %12
%376 = load i32, i32* %11
%377 = load i32, i32* %14
%378 = load double, double* %6
%379 = load double, double* %7
%380 = call double @integ_trap(double* %374, i32 %375, i32 %376, double* %18, i32 %377, double %378, double %379)
store double %380, double* %21
%381 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%382 = load i32, i32* @stdout
%383 = load i64, i64* %19
%384 = load double, double* %20
%385 = call i32 (i32, i8*, ...) @fprintf(i32 %382, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %383, double %384)
%386 = load double, double* %17
%387 = fcmp oeq double %386, 0.000000e+00
br i1 %387, label %388, label %392
388: ; preds = %373
%389 = load i32, i32* @stdout
%390 = load double, double* %17
%391 = call i32 (i32, i8*, ...) @fprintf(i32 %389, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %390)
br label %395
392: ; preds = %373
%393 = load i32, i32* @stdout
%394 = call i32 (i32, i8*, ...) @fprintf(i32 %393, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %395
395: ; preds = %392, %388
%396 = load i32, i32* @stdout
%397 = load double, double* %6
%398 = load double, double* %7
%399 = load double, double* %21
%400 = call i32 (i32, i8*, ...) @fprintf(i32 %396, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.32, i64 0, i64 0), double %397, double %398, double %399)
%401 = load double, double* %18
%402 = fcmp oeq double %401, 0.000000e+00
br i1 %402, label %403, label %407
403: ; preds = %395
%404 = load i32, i32* @stdout
%405 = load double, double* %18
%406 = call i32 (i32, i8*, ...) @fprintf(i32 %404, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %405)
br label %410
407: ; preds = %395
%408 = load i32, i32* @stdout
%409 = call i32 (i32, i8*, ...) @fprintf(i32 %408, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %410
410: ; preds = %407, %403
%411 = call i32 @sleep(i32 3)
br label %468
412: ; preds = %312
%413 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 0
%414 = load i32, i32* %12
%415 = load i32, i32* %11
%416 = load i32, i32* %14
%417 = load double, double* %6
%418 = load double, double* %7
%419 = call double @integ_cav_simpson(double* %413, i32 %414, i32 %415, double* %18, i32 %416, double %417, double %418)
store double %419, double* %21
%420 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%421 = load i32, i32* @stdout
%422 = load i64, i64* %19
%423 = load double, double* %20
%424 = call i32 (i32, i8*, ...) @fprintf(i32 %421, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %422, double %423)
%425 = load double, double* %17
%426 = fcmp oeq double %425, 0.000000e+00
br i1 %426, label %427, label %431
427: ; preds = %412
%428 = load i32, i32* @stdout
%429 = load double, double* %17
%430 = call i32 (i32, i8*, ...) @fprintf(i32 %428, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %429)
br label %434
431: ; preds = %412
%432 = load i32, i32* @stdout
%433 = call i32 (i32, i8*, ...) @fprintf(i32 %432, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %434
434: ; preds = %431, %427
%435 = load i32, i32* @stdout
%436 = load double, double* %6
%437 = load double, double* %7
%438 = load double, double* %21
%439 = call i32 (i32, i8*, ...) @fprintf(i32 %435, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.32, i64 0, i64 0), double %436, double %437, double %438)
%440 = load double, double* %18
%441 = fcmp oeq double %440, 0.000000e+00
br i1 %441, label %442, label %446
442: ; preds = %434
%443 = load i32, i32* @stdout
%444 = load double, double* %18
%445 = call i32 (i32, i8*, ...) @fprintf(i32 %443, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %444)
br label %449
446: ; preds = %434
%447 = load i32, i32* @stdout
%448 = call i32 (i32, i8*, ...) @fprintf(i32 %447, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %449
449: ; preds = %446, %442
%450 = call i32 @sleep(i32 3)
br label %468
451: ; preds = %312
%452 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%453 = load i32, i32* @stdout
%454 = load i64, i64* %19
%455 = load double, double* %20
%456 = call i32 (i32, i8*, ...) @fprintf(i32 %453, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %454, double %455)
%457 = load double, double* %17
%458 = fcmp oeq double %457, 0.000000e+00
br i1 %458, label %459, label %463
459: ; preds = %451
%460 = load i32, i32* @stdout
%461 = load double, double* %17
%462 = call i32 (i32, i8*, ...) @fprintf(i32 %460, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %461)
br label %466
463: ; preds = %451
%464 = load i32, i32* @stdout
%465 = call i32 (i32, i8*, ...) @fprintf(i32 %464, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %466
466: ; preds = %463, %459
%467 = call i32 @sleep(i32 3)
br label %468
468: ; preds = %312, %466, %449, %410, %371
store i32 0, i32* %3
br label %469
469: ; preds = %468, %175, %152
%470 = load i32, i32* %3
ret i32 %470
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@stdout = global i32 0
@.str.1 = [18 x i8] c"[*] Polynomial :\0A\00"
@.str.2 = [33 x i8] c"Input The Polynomial's Degree : \00"
@.str.3 = [3 x i8] c"%i\00"
@stderr = global i32 0
@.str.4 = [45 x i8] c"error: Degree Has To Be More Than Zero !!!\0A\0A\00"
@.str.5 = [3 x i8] c" \0A\00"
@.str.6 = [61 x i8] c"Input The Coefficients, Beginning From The Constant Term : \0A\00"
@.str.7 = [19 x i8] c"Coefficient[%i] = \00"
@.str.8 = [4 x i8] c"%lf\00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [21 x i8] c"[*] a*e^x + b*x^n :\0A\00"
@.str.11 = [5 x i8] c"a = \00"
@.str.12 = [5 x i8] c"b = \00"
@.str.13 = [6 x i8] c"n = \00"
@.str.14 = [33 x i8] c"[*] A*sin(lx+t) + B*cos(mx+p) :\0A\00"
@.str.15 = [5 x i8] c"A = \00"
@.str.16 = [5 x i8] c"l = \00"
@.str.17 = [5 x i8] c"t = \00"
@.str.18 = [5 x i8] c"B = \00"
@.str.19 = [5 x i8] c"m = \00"
@.str.20 = [5 x i8] c"p = \00"
@.str.21 = [29 x i8] c"Input The First Extremous : \00"
@.str.22 = [35 x i8] c"The Value Is Already The Root !!!\0A\00"
@.str.23 = [23 x i8] c"Function's Root : %lf\0A\00"
@.str.24 = [30 x i8] c"Input The Second Extremous : \00"
@.str.25 = [10 x i8] c"Conv = %i\00"
@.str.26 = [34 x i8] c"Input The Precision Value (>0) : \00"
@.str.27 = [28 x i8] c"error: Precision <= 0 !!!\0A\0A\00"
@.str.28 = [43 x i8] c"Function's Root [interaction = %li ] : %lf\00"
@.str.29 = [9 x i8] c" \C2\B1 %lf\0A\00"
@.str.30 = [35 x i8] c"First Integral [ %lf , %lf ] = %lf\00"
@.str.31 = [36 x i8] c"Second Integral [ %lf , %lf ] = %lf\00"
@.str.32 = [29 x i8] c"Integral [ %lf , %lf ] = %lf\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca i32
%6 = alloca [100 x double]
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca i64
%11 = alloca double
%12 = alloca double
%13 = bitcast double* %3 to i8*
%14 = bitcast double* %4 to i8*
%15 = bitcast i32* %5 to i8*
%16 = bitcast [100 x double]* %6 to i8*
%17 = bitcast double* %7 to i8*
%18 = bitcast double* %8 to i8*
%19 = bitcast double* %9 to i8*
%20 = bitcast i64* %10 to i8*
%21 = tail call i32 (...) @menu_function()
switch i32 %21, label %111 [
i32 1, label %22
i32 2, label %57
i32 3, label %63
i32 4, label %87
]
22: ; preds = %2, %31
%23 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %5)
%29 = load i32, i32* %5
%30 = icmp slt i32 %29, 1
br i1 %30, label %31, label %37
31: ; preds = %22
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%34 = call i32 @sleep(i32 3)
%35 = load i32, i32* %5
%36 = icmp slt i32 %35, 1
br i1 %36, label %22, label %37
37: ; preds = %22, %31
%38 = load i32, i32* @stdout
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%40 = load i32, i32* @stdout
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%42 = load i32, i32* %5
%43 = icmp slt i32 %42, 0
br i1 %43, label %111, label %44
44: ; preds = %37, %44
%45 = phi i64 [ %53, %44 ], [ 0, %37 ]
%46 = load i32, i32* @stdout
%47 = trunc i64 %45 to i32
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %47)
%49 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %45
%50 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %49)
%51 = load i32, i32* @stdout
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%53 = add nuw nsw i64 %45, 1
%54 = load i32, i32* %5
%55 = sext i32 %54 to i64
%56 = icmp slt i64 %45, %55
br i1 %56, label %44, label %111
57: ; preds = %2
store i32 3, i32* %5
%58 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%59 = load i32, i32* @stdout
%60 = tail call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%61 = load i32, i32* @stdout
%62 = tail call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
br label %89
63: ; preds = %2
store i32 6, i32* %5
%64 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%65 = load i32, i32* @stdout
%66 = tail call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0))
%67 = load i32, i32* @stdout
%68 = tail call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%69 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 0
%70 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %69)
%71 = load i32, i32* @stdout
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%73 = load i32, i32* @stdout
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%75 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 1
%76 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %75)
%77 = load i32, i32* @stdout
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%79 = load i32, i32* @stdout
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%81 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 2
%82 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %81)
%83 = load i32, i32* @stdout
%84 = call i32 (i32, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%85 = load i32, i32* @stdout
%86 = call i32 (i32, i8*, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
br label %89
87: ; preds = %2
%88 = tail call i32 @exit(i32 0)
unreachable
89: ; preds = %57, %63
%90 = phi i64 [ 3, %63 ], [ 0, %57 ]
%91 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), %63 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), %57 ]
%92 = phi i64 [ 4, %63 ], [ 1, %57 ]
%93 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), %63 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), %57 ]
%94 = phi i64 [ 5, %63 ], [ 2, %57 ]
%95 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %90
%96 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %95)
%97 = load i32, i32* @stdout
%98 = call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%99 = load i32, i32* @stdout
%100 = call i32 (i32, i8*, ...) @fprintf(i32 %99, i8* %91)
%101 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %92
%102 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %101)
%103 = load i32, i32* @stdout
%104 = call i32 (i32, i8*, ...) @fprintf(i32 %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%105 = load i32, i32* @stdout
%106 = call i32 (i32, i8*, ...) @fprintf(i32 %105, i8* %93)
%107 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %94
%108 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %107)
%109 = load i32, i32* @stdout
%110 = call i32 (i32, i8*, ...) @fprintf(i32 %109, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %111
111: ; preds = %44, %89, %37, %2
%112 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 0
br label %115
113: ; preds = %170, %159
%114 = phi i32 [ %167, %159 ], [ 3, %170 ]
br label %174
115: ; preds = %111, %170
%116 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%117 = load i32, i32* @stdout
%118 = call i32 (i32, i8*, ...) @fprintf(i32 %117, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%119 = load i32, i32* @stdout
%120 = call i32 (i32, i8*, ...) @fprintf(i32 %119, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.21, i64 0, i64 0))
%121 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %3)
%122 = load i32, i32* %5
%123 = load double, double* %3
%124 = call double @function(double* %112, i32 %122, i32 %21, double %123)
%125 = fcmp oeq double %124, 0.000000e+00
br i1 %125, label %126, label %134
126: ; preds = %115
%127 = load i32, i32* @stdout
%128 = call i32 (i32, i8*, ...) @fprintf(i32 %127, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0))
%129 = load double, double* %3
%130 = call i32 @sleep(i32 3)
%131 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%132 = load i32, i32* @stdout
%133 = call i32 (i32, i8*, ...) @fprintf(i32 %132, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), double %129)
br label %371
134: ; preds = %115
%135 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%136 = load i32, i32* @stdout
%137 = call i32 (i32, i8*, ...) @fprintf(i32 %136, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%138 = load i32, i32* @stdout
%139 = call i32 (i32, i8*, ...) @fprintf(i32 %138, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.24, i64 0, i64 0))
%140 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %4)
%141 = load i32, i32* %5
%142 = load double, double* %4
%143 = call double @function(double* %112, i32 %141, i32 %21, double %142)
%144 = fcmp oeq double %143, 0.000000e+00
br i1 %144, label %145, label %153
145: ; preds = %134
%146 = load i32, i32* @stdout
%147 = call i32 (i32, i8*, ...) @fprintf(i32 %146, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0))
%148 = load double, double* %4
%149 = call i32 @sleep(i32 3)
%150 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%151 = load i32, i32* @stdout
%152 = call i32 (i32, i8*, ...) @fprintf(i32 %151, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), double %148)
br label %371
153: ; preds = %134
%154 = load i32, i32* %5
%155 = load double, double* %3
%156 = load double, double* %4
%157 = call i32 @convergence(double* %112, i32 %154, i32 %21, double %155, double %156)
%158 = icmp eq i32 %157, 7
br i1 %158, label %159, label %170
159: ; preds = %153
%160 = load i32, i32* %5
%161 = load double, double* %3
%162 = call double @deriv2(double* %112, i32 %160, i32 %21, double %161)
%163 = fmul double %124, %162
%164 = fcmp ogt double %163, 0.000000e+00
%165 = select i1 %164, i32 1, i32 3
%166 = fcmp olt double %163, 0.000000e+00
%167 = select i1 %166, i32 2, i32 %165
%168 = load i32, i32* @stderr
%169 = call i32 (i32, i8*, ...) @fprintf(i32 %168, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i32 %157)
br label %113
170: ; preds = %153
%171 = load i32, i32* @stderr
%172 = call i32 (i32, i8*, ...) @fprintf(i32 %171, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i32 %157)
%173 = icmp slt i32 %157, 2
br i1 %173, label %115, label %113
174: ; preds = %113, %186
%175 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%176 = load i32, i32* @stdout
%177 = call i32 (i32, i8*, ...) @fprintf(i32 %176, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.26, i64 0, i64 0))
%178 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double* %7)
%179 = load double, double* %7
%180 = fcmp ugt double %179, 0.000000e+00
br i1 %180, label %186, label %181
181: ; preds = %174
%182 = load i32, i32* @stderr
%183 = call i32 (i32, i8*, ...) @fprintf(i32 %182, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.27, i64 0, i64 0))
%184 = call i32 @sleep(i32 3)
%185 = load double, double* %7
br label %186
186: ; preds = %174, %181
%187 = phi double [ %179, %174 ], [ %185, %181 ]
%188 = fcmp ugt double %187, 0.000000e+00
br i1 %188, label %189, label %174
189: ; preds = %186
%190 = call i32 @menu_root(i32 %114, i32 %157)
switch i32 %190, label %245 [
i32 1, label %191
i32 2, label %208
i32 3, label %225
]
191: ; preds = %189
%192 = load i32, i32* %5
%193 = load double, double* %7
%194 = load double, double* %3
%195 = load double, double* %4
%196 = call double @dicotomic(double* %112, i32 %192, i32 %21, double %193, double* %8, i64* %10, double %194, double %195)
%197 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%198 = load i32, i32* @stdout
%199 = load i64, i64* %10
%200 = call i32 (i32, i8*, ...) @fprintf(i32 %198, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %199, double %196)
%201 = load double, double* %8
%202 = fcmp oeq double %201, 0.000000e+00
%203 = load i32, i32* @stdout
br i1 %202, label %204, label %206
204: ; preds = %191
%205 = call i32 (i32, i8*, ...) @fprintf(i32 %203, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %201)
br label %242
206: ; preds = %191
%207 = call i32 (i32, i8*, ...) @fprintf(i32 %203, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %242
208: ; preds = %189
%209 = load i32, i32* %5
%210 = load double, double* %7
%211 = load double, double* %3
%212 = load double, double* %4
%213 = call double @cords(double* %112, i32 %209, i32 %21, double %210, double* %8, i64* %10, double %211, double %212, i32 %114)
%214 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%215 = load i32, i32* @stdout
%216 = load i64, i64* %10
%217 = call i32 (i32, i8*, ...) @fprintf(i32 %215, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %216, double %213)
%218 = load double, double* %8
%219 = fcmp oeq double %218, 0.000000e+00
%220 = load i32, i32* @stdout
br i1 %219, label %221, label %223
221: ; preds = %208
%222 = call i32 (i32, i8*, ...) @fprintf(i32 %220, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %218)
br label %242
223: ; preds = %208
%224 = call i32 (i32, i8*, ...) @fprintf(i32 %220, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %242
225: ; preds = %189
%226 = load i32, i32* %5
%227 = load double, double* %7
%228 = load double, double* %3
%229 = load double, double* %4
%230 = call double @newton(double* %112, i32 %226, i32 %21, double %227, double* %8, i64* %10, double %228, double %229, i32 %114)
%231 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%232 = load i32, i32* @stdout
%233 = load i64, i64* %10
%234 = call i32 (i32, i8*, ...) @fprintf(i32 %232, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %233, double %230)
%235 = load double, double* %8
%236 = fcmp oeq double %235, 0.000000e+00
%237 = load i32, i32* @stdout
br i1 %236, label %238, label %240
238: ; preds = %225
%239 = call i32 (i32, i8*, ...) @fprintf(i32 %237, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %235)
br label %242
240: ; preds = %225
%241 = call i32 (i32, i8*, ...) @fprintf(i32 %237, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %242
242: ; preds = %238, %240, %221, %223, %204, %206
%243 = phi double [ %196, %206 ], [ %196, %204 ], [ %213, %223 ], [ %213, %221 ], [ %230, %240 ], [ %230, %238 ]
%244 = call i32 @sleep(i32 3)
br label %245
245: ; preds = %242, %189
%246 = phi double [ undef, %189 ], [ %243, %242 ]
%247 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%248 = load double, double* %8
%249 = load i64, i64* %10
%250 = call i32 @menu_integ(double %246, double %248, i64 %249)
switch i32 %250, label %371 [
i32 1, label %251
i32 2, label %297
i32 3, label %327
i32 4, label %357
]
251: ; preds = %245
%252 = bitcast double* %11 to i8*
%253 = bitcast double* %12 to i8*
%254 = load i32, i32* %5
%255 = load double, double* %3
%256 = load double, double* %4
%257 = call i32 @integ_rect(double* %112, i32 %254, i32 %21, double* %11, double* %12, double* %9, i32 %157, double %255, double %256)
%258 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%259 = load i32, i32* @stdout
%260 = load i64, i64* %10
%261 = call i32 (i32, i8*, ...) @fprintf(i32 %259, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %260, double %246)
%262 = load double, double* %8
%263 = fcmp oeq double %262, 0.000000e+00
%264 = load i32, i32* @stdout
br i1 %263, label %265, label %267
265: ; preds = %251
%266 = call i32 (i32, i8*, ...) @fprintf(i32 %264, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %262)
br label %269
267: ; preds = %251
%268 = call i32 (i32, i8*, ...) @fprintf(i32 %264, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %269
269: ; preds = %267, %265
%270 = load i32, i32* @stdout
%271 = load double, double* %3
%272 = load double, double* %4
%273 = load double, double* %11
%274 = call i32 (i32, i8*, ...) @fprintf(i32 %270, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.30, i64 0, i64 0), double %271, double %272, double %273)
%275 = load double, double* %9
%276 = fcmp oeq double %275, 0.000000e+00
%277 = load i32, i32* @stdout
br i1 %276, label %278, label %280
278: ; preds = %269
%279 = call i32 (i32, i8*, ...) @fprintf(i32 %277, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %275)
br label %282
280: ; preds = %269
%281 = call i32 (i32, i8*, ...) @fprintf(i32 %277, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %282
282: ; preds = %280, %278
%283 = load i32, i32* @stdout
%284 = load double, double* %3
%285 = load double, double* %4
%286 = load double, double* %12
%287 = call i32 (i32, i8*, ...) @fprintf(i32 %283, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.31, i64 0, i64 0), double %284, double %285, double %286)
%288 = load double, double* %9
%289 = fcmp oeq double %288, 0.000000e+00
%290 = load i32, i32* @stdout
br i1 %289, label %291, label %293
291: ; preds = %282
%292 = call i32 (i32, i8*, ...) @fprintf(i32 %290, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %288)
br label %295
293: ; preds = %282
%294 = call i32 (i32, i8*, ...) @fprintf(i32 %290, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %295
295: ; preds = %293, %291
%296 = call i32 @sleep(i32 3)
br label %371
297: ; preds = %245
%298 = load i32, i32* %5
%299 = load double, double* %3
%300 = load double, double* %4
%301 = call double @integ_trap(double* %112, i32 %298, i32 %21, double* %9, i32 %157, double %299, double %300)
%302 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%303 = load i32, i32* @stdout
%304 = load i64, i64* %10
%305 = call i32 (i32, i8*, ...) @fprintf(i32 %303, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %304, double %246)
%306 = load double, double* %8
%307 = fcmp oeq double %306, 0.000000e+00
%308 = load i32, i32* @stdout
br i1 %307, label %309, label %311
309: ; preds = %297
%310 = call i32 (i32, i8*, ...) @fprintf(i32 %308, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %306)
br label %313
311: ; preds = %297
%312 = call i32 (i32, i8*, ...) @fprintf(i32 %308, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %313
313: ; preds = %311, %309
%314 = load i32, i32* @stdout
%315 = load double, double* %3
%316 = load double, double* %4
%317 = call i32 (i32, i8*, ...) @fprintf(i32 %314, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.32, i64 0, i64 0), double %315, double %316, double %301)
%318 = load double, double* %9
%319 = fcmp oeq double %318, 0.000000e+00
%320 = load i32, i32* @stdout
br i1 %319, label %321, label %323
321: ; preds = %313
%322 = call i32 (i32, i8*, ...) @fprintf(i32 %320, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %318)
br label %325
323: ; preds = %313
%324 = call i32 (i32, i8*, ...) @fprintf(i32 %320, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %325
325: ; preds = %323, %321
%326 = call i32 @sleep(i32 3)
br label %371
327: ; preds = %245
%328 = load i32, i32* %5
%329 = load double, double* %3
%330 = load double, double* %4
%331 = call double @integ_cav_simpson(double* %112, i32 %328, i32 %21, double* %9, i32 %157, double %329, double %330)
%332 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%333 = load i32, i32* @stdout
%334 = load i64, i64* %10
%335 = call i32 (i32, i8*, ...) @fprintf(i32 %333, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %334, double %246)
%336 = load double, double* %8
%337 = fcmp oeq double %336, 0.000000e+00
%338 = load i32, i32* @stdout
br i1 %337, label %339, label %341
339: ; preds = %327
%340 = call i32 (i32, i8*, ...) @fprintf(i32 %338, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %336)
br label %343
341: ; preds = %327
%342 = call i32 (i32, i8*, ...) @fprintf(i32 %338, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %343
343: ; preds = %341, %339
%344 = load i32, i32* @stdout
%345 = load double, double* %3
%346 = load double, double* %4
%347 = call i32 (i32, i8*, ...) @fprintf(i32 %344, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.32, i64 0, i64 0), double %345, double %346, double %331)
%348 = load double, double* %9
%349 = fcmp oeq double %348, 0.000000e+00
%350 = load i32, i32* @stdout
br i1 %349, label %351, label %353
351: ; preds = %343
%352 = call i32 (i32, i8*, ...) @fprintf(i32 %350, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %348)
br label %355
353: ; preds = %343
%354 = call i32 (i32, i8*, ...) @fprintf(i32 %350, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %355
355: ; preds = %353, %351
%356 = call i32 @sleep(i32 3)
br label %371
357: ; preds = %245
%358 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%359 = load i32, i32* @stdout
%360 = load i64, i64* %10
%361 = call i32 (i32, i8*, ...) @fprintf(i32 %359, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.28, i64 0, i64 0), i64 %360, double %246)
%362 = load double, double* %8
%363 = fcmp oeq double %362, 0.000000e+00
%364 = load i32, i32* @stdout
br i1 %363, label %365, label %367
365: ; preds = %357
%366 = call i32 (i32, i8*, ...) @fprintf(i32 %364, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), double %362)
br label %369
367: ; preds = %357
%368 = call i32 (i32, i8*, ...) @fprintf(i32 %364, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %369
369: ; preds = %367, %365
%370 = call i32 @sleep(i32 3)
br label %371
371: ; preds = %295, %325, %355, %369, %245, %145, %126
ret i32 0
}