#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 atoi(char *);
int buildprior();
int buildsstats();
int createpop();
int createtab();
int createtab2();
int createtab3();
int createtab4();
int joinfiles();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char **);
void toolsMenu() {
  char str[256];
  int option, r;
  do {
    printf("\n\n\n  *Tools Menu*\n\n");
    printf("  1. Build prior file (.prs)\n\n");
    printf("  2. Build summary statistics set file (.sst)\n\n");
    printf("  3. Convert sample file (.pop) to table file (.len)\n\n");
    printf("  4. Convert IMa input file to table file (.len)\n\n");
    printf("  5. Convert GenePop input file to table file (.len)\n\n");
    printf("  6. Convert Nexus file (.nex) to table file (.len)\n\n");
    printf("  7. Create sample file (.pop) from table file (.len)\n\n");
    printf("  8. Join data files together (.dat)\n\n");
    printf("  9. Exit to Main Menu\n\n");
    printf("  choose an option: ");
    scanf("%s", &str);
    option = atoi(str);
    switch (option) {
    case 1:
      printf("\n\n\n  *Build prior file (.prs)*\n\n");
      r = buildprior();
      if (r == 0)
        printf("\n\n>prior file (.prs) created.");
      else if (r == 1)
        printf("\n\n>error::cannot create .prs file!");
      break;
    case 2:
      printf("\n\n\n  *Build summary statistics set file (.prs)*\n\n");
      r = buildsstats();
      if (r == 0)
        printf("\n\n>summary statistics set file (.sst) created.");
      else if (r == 1)
        printf("\n\n>error::cannot create .sst file!");
      break;
    case 3:
      printf("\n\n\n  *Convert sample file (.pop) to table file (.len)*\n\n");
      r = createtab();
      if (r == 0)
        printf("\n\n>table file (.len) build.");
      else if (r == 1)
        printf("\n\n>error::cannot open .pop file!");
      else if (r == 2)
        printf("\n\n>error::cannot create .len file!");
      else if (r == 3)
        printf("\n\n>error::individual has no information!");
      else if (r == 4)
        printf("\n\n>error::different number of ploidy or number of sites in "
               "alleles of a loci!");
      break;
    case 4:
      printf("\n\n\n  *Convert IMa file to table file (.len)*\n\n");
      r = createtab2();
      if (r == 0)
        printf("\n\n>table file (.len) build.");
      else if (r == 1)
        printf("\n\n>error::cannot open sample file!");
      else if (r == 2)
        printf("\n\n>error::cannot create .len file!");
      else if (r == 3)
        printf("\n\n>error::cannot deal with specified data type!");
      break;
    case 5:
      printf("\n\n\n  *Convert GenePop file to table file (.len)*\n\n");
      r = createtab3();
      if (r == 0)
        printf("\n\n>table file (.len) build.");
      else if (r == 1)
        printf("\n\n>error::cannot open sample file!");
      else if (r == 2)
        printf("\n\n>error::cannot create .len file!");
      else if (r == 3)
        printf("\n\n>error::file ended before the display of data!");
      else if (r == 4)
        printf("\n\n>error::incorrect number of digits in locus!");
      break;
    case 6:
      printf("\n\n\n  *Convert Nexus file (.nex) to table file (.len)*\n\n");
      r = createtab4();
      if (r == 0)
        printf("\n\n>table file (.len) build.");
      else if (r == 1)
        printf("\n\n>error::cannot open .nex file!");
      else if (r == 2)
        printf("\n\n>error::cannot create .len file!");
      else if (r == 3)
        printf("\n\n>error::cannot deal with specified data type!");
      else if (r == 4)
        printf("\n\n>error::problems reading MATRIX!");
      else if (r == 5)
        printf("\n\n>error::problems reading TAXSET!");
      else if (r == 6)
        printf("\n\n>error::problem defining TAXSET: n1>=n2!");
      else if (r == 7)
        printf("\n\n>error::unrecognized specifier after BEGIN SETS (use "
               "TAXSET)!");
      else if (r == 8)
        printf("\n\n>error::unrecognized specifier after BEGIN (use DATA or "
               "SETS)!");
      else if (r == 9)
        printf("\n\n>error::unrecognized command (only BEGIN accepted)!");
      break;
    case 7:
      printf("\n\n\n  *Create sample file (.pop) from table file (.len)*\n\n");
      r = createpop();
      if (r == 0)
        printf("\n\n>sample file (.pop) converted.");
      else if (r == 1)
        printf("\n\n>error::cannot open .pop files!");
      else if (r == 2)
        printf("\n\n>error::cannot create .len file!");
      break;
    case 8:
      printf("\n\n\n  *Join data files (.dat) together*\n\n");
      r = joinfiles();
      if (r == 0)
        printf("\n\n>files joined.");
      else if (r == 1)
        printf("\n\n>error::cannot create output file!");
      else if (r == 2)
        printf("\n\n>error::cannot open an input files!");
      break;
    case 9:
      break;
    default:
      printf("\n\n>error::option not available\n");
      break;
    }
  } while (option != 9);
}


x86 assembly (clang, -O0):
<toolsMenu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
lea    0xe62(%rip),%rdi
call   1050 <printf@plt>
lea    0xe6a(%rip),%rdi
call   1050 <printf@plt>
lea    0xe7d(%rip),%rdi
call   1050 <printf@plt>
lea    0xea1(%rip),%rdi
call   1050 <printf@plt>
lea    0xecc(%rip),%rdi
call   1050 <printf@plt>
lea    0xef3(%rip),%rdi
call   1050 <printf@plt>
lea    0xf1e(%rip),%rdi
call   1050 <printf@plt>
lea    0xf48(%rip),%rdi
call   1050 <printf@plt>
lea    0xf74(%rip),%rdi
call   1050 <printf@plt>
lea    0xf8f(%rip),%rdi
call   1050 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1050 <printf@plt>
lea    0xfa5(%rip),%rdi
lea    -0x100(%rbp),%rsi
mov    %rsi,-0x118(%rbp)
call   10b0 <scanf@plt>
mov    -0x118(%rbp),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x104(%rbp)
mov    -0x104(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x110(%rbp)
sub    $0x8,%eax
ja     17e8 <toolsMenu+0x638>
mov    -0x110(%rbp),%rax
lea    0xd6c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf4a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <buildprior@plt>
mov    %eax,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jne    12d4 <toolsMenu+0x124>
lea    0xf45(%rip),%rdi
call   1050 <printf@plt>
jmp    12f2 <toolsMenu+0x142>
cmpl   $0x1,-0x108(%rbp)
jne    12ed <toolsMenu+0x13d>
lea    0xf45(%rip),%rdi
call   1050 <printf@plt>
jmp    12f2 <toolsMenu+0x142>
jmp    17f4 <toolsMenu+0x644>
lea    0xf52(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <buildsstats@plt>
mov    %eax,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jne    132e <toolsMenu+0x17e>
lea    0xf5e(%rip),%rdi
call   1050 <printf@plt>
jmp    134c <toolsMenu+0x19c>
cmpl   $0x1,-0x108(%rbp)
jne    1347 <toolsMenu+0x197>
lea    0xf6f(%rip),%rdi
call   1050 <printf@plt>
jmp    134c <toolsMenu+0x19c>
jmp    17f4 <toolsMenu+0x644>
lea    0xf7c(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10d0 <createtab@plt>
mov    %eax,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jne    1388 <toolsMenu+0x1d8>
lea    0xf8f(%rip),%rdi
call   1050 <printf@plt>
jmp    140f <toolsMenu+0x25f>
cmpl   $0x1,-0x108(%rbp)
jne    13a6 <toolsMenu+0x1f6>
lea    0xf8d(%rip),%rdi
call   1050 <printf@plt>
jmp    140a <toolsMenu+0x25a>
cmpl   $0x2,-0x108(%rbp)
jne    13c4 <toolsMenu+0x214>
lea    0xf90(%rip),%rdi
call   1050 <printf@plt>
jmp    1405 <toolsMenu+0x255>
cmpl   $0x3,-0x108(%rbp)
jne    13e2 <toolsMenu+0x232>
lea    0xf95(%rip),%rdi
call   1050 <printf@plt>
jmp    1400 <toolsMenu+0x250>
cmpl   $0x4,-0x108(%rbp)
jne    13fb <toolsMenu+0x24b>
lea    0xfa0(%rip),%rdi
call   1050 <printf@plt>
jmp    1400 <toolsMenu+0x250>
jmp    1405 <toolsMenu+0x255>
jmp    140a <toolsMenu+0x25a>
jmp    140f <toolsMenu+0x25f>
jmp    17f4 <toolsMenu+0x644>
lea    0xfc9(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <createtab2@plt>
mov    %eax,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jne    144b <toolsMenu+0x29b>
lea    0xecc(%rip),%rdi
call   1050 <printf@plt>
jmp    14af <toolsMenu+0x2ff>
cmpl   $0x1,-0x108(%rbp)
jne    1469 <toolsMenu+0x2b9>
lea    0xfb4(%rip),%rdi
call   1050 <printf@plt>
jmp    14aa <toolsMenu+0x2fa>
cmpl   $0x2,-0x108(%rbp)
jne    1487 <toolsMenu+0x2d7>
lea    0xecd(%rip),%rdi
call   1050 <printf@plt>
jmp    14a5 <toolsMenu+0x2f5>
cmpl   $0x3,-0x108(%rbp)
jne    14a0 <toolsMenu+0x2f0>
lea    0xf9b(%rip),%rdi
call   1050 <printf@plt>
jmp    14a5 <toolsMenu+0x2f5>
jmp    14aa <toolsMenu+0x2fa>
jmp    14af <toolsMenu+0x2ff>
jmp    17f4 <toolsMenu+0x644>
lea    0xfab(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <createtab3@plt>
mov    %eax,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jne    14eb <toolsMenu+0x33b>
lea    0xe2c(%rip),%rdi
call   1050 <printf@plt>
jmp    1572 <toolsMenu+0x3c2>
cmpl   $0x1,-0x108(%rbp)
jne    1509 <toolsMenu+0x359>
lea    0xf14(%rip),%rdi
call   1050 <printf@plt>
jmp    156d <toolsMenu+0x3bd>
cmpl   $0x2,-0x108(%rbp)
jne    1527 <toolsMenu+0x377>
lea    0xe2d(%rip),%rdi
call   1050 <printf@plt>
jmp    1568 <toolsMenu+0x3b8>
cmpl   $0x3,-0x108(%rbp)
jne    1545 <toolsMenu+0x395>
lea    0xf5e(%rip),%rdi
call   1050 <printf@plt>
jmp    1563 <toolsMenu+0x3b3>
cmpl   $0x4,-0x108(%rbp)
jne    155e <toolsMenu+0x3ae>
lea    0xf71(%rip),%rdi
call   1050 <printf@plt>
jmp    1563 <toolsMenu+0x3b3>
jmp    1568 <toolsMenu+0x3b8>
jmp    156d <toolsMenu+0x3bd>
jmp    1572 <toolsMenu+0x3c2>
jmp    17f4 <toolsMenu+0x644>
lea    0xf7b(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <createtab4@plt>
mov    %eax,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jne    15ae <toolsMenu+0x3fe>
lea    0xd69(%rip),%rdi
call   1050 <printf@plt>
jmp    16e4 <toolsMenu+0x534>
cmpl   $0x1,-0x108(%rbp)
jne    15cc <toolsMenu+0x41c>
lea    0xf6f(%rip),%rdi
call   1050 <printf@plt>
jmp    16df <toolsMenu+0x52f>
cmpl   $0x2,-0x108(%rbp)
jne    15ea <toolsMenu+0x43a>
lea    0xd6a(%rip),%rdi
call   1050 <printf@plt>
jmp    16da <toolsMenu+0x52a>
cmpl   $0x3,-0x108(%rbp)
jne    1608 <toolsMenu+0x458>
lea    0xe38(%rip),%rdi
call   1050 <printf@plt>
jmp    16d5 <toolsMenu+0x525>
cmpl   $0x4,-0x108(%rbp)
jne    1626 <toolsMenu+0x476>
lea    0xf36(%rip),%rdi
call   1050 <printf@plt>
jmp    16d0 <toolsMenu+0x520>
cmpl   $0x5,-0x108(%rbp)
jne    1644 <toolsMenu+0x494>
lea    0xf3b(%rip),%rdi
call   1050 <printf@plt>
jmp    16cb <toolsMenu+0x51b>
cmpl   $0x6,-0x108(%rbp)
jne    1662 <toolsMenu+0x4b2>
lea    0xf40(%rip),%rdi
call   1050 <printf@plt>
jmp    16c6 <toolsMenu+0x516>
cmpl   $0x7,-0x108(%rbp)
jne    1680 <toolsMenu+0x4d0>
lea    0xf4d(%rip),%rdi
call   1050 <printf@plt>
jmp    16c1 <toolsMenu+0x511>
cmpl   $0x8,-0x108(%rbp)
jne    169e <toolsMenu+0x4ee>
lea    0xf6f(%rip),%rdi
call   1050 <printf@plt>
jmp    16bc <toolsMenu+0x50c>
cmpl   $0x9,-0x108(%rbp)
jne    16b7 <toolsMenu+0x507>
lea    0xf92(%rip),%rdi
call   1050 <printf@plt>
jmp    16bc <toolsMenu+0x50c>
jmp    16c1 <toolsMenu+0x511>
jmp    16c6 <toolsMenu+0x516>
jmp    16cb <toolsMenu+0x51b>
jmp    16d0 <toolsMenu+0x520>
jmp    16d5 <toolsMenu+0x525>
jmp    16da <toolsMenu+0x52a>
jmp    16df <toolsMenu+0x52f>
jmp    16e4 <toolsMenu+0x534>
jmp    17f4 <toolsMenu+0x644>
lea    0xf8a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <createpop@plt>
mov    %eax,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jne    1720 <toolsMenu+0x570>
lea    0xf9e(%rip),%rdi
call   1050 <printf@plt>
jmp    1761 <toolsMenu+0x5b1>
cmpl   $0x1,-0x108(%rbp)
jne    173e <toolsMenu+0x58e>
lea    0xfa1(%rip),%rdi
call   1050 <printf@plt>
jmp    175c <toolsMenu+0x5ac>
cmpl   $0x2,-0x108(%rbp)
jne    1757 <toolsMenu+0x5a7>
lea    0xbf8(%rip),%rdi
call   1050 <printf@plt>
jmp    175c <toolsMenu+0x5ac>
jmp    1761 <toolsMenu+0x5b1>
jmp    17f4 <toolsMenu+0x644>
lea    0xf8a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <joinfiles@plt>
mov    %eax,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jne    179d <toolsMenu+0x5ed>
lea    0xf8d(%rip),%rdi
call   1050 <printf@plt>
jmp    17de <toolsMenu+0x62e>
cmpl   $0x1,-0x108(%rbp)
jne    17bb <toolsMenu+0x60b>
lea    0xf80(%rip),%rdi
call   1050 <printf@plt>
jmp    17d9 <toolsMenu+0x629>
cmpl   $0x2,-0x108(%rbp)
jne    17d4 <toolsMenu+0x624>
lea    0xf87(%rip),%rdi
call   1050 <printf@plt>
jmp    17d9 <toolsMenu+0x629>
jmp    17de <toolsMenu+0x62e>
jmp    17f4 <toolsMenu+0x644>
jmp    17f4 <toolsMenu+0x644>
lea    0xf8d(%rip),%rdi
call   1050 <printf@plt>
jmp    17f9 <toolsMenu+0x649>
cmpl   $0x9,-0x104(%rbp)
jne    11bb <toolsMenu+0xb>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toolsMenu>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
lea    0x1433(%rip),%r12
lea    0x1452(%rip),%r13
lea    0xe9e(%rip),%rbx
lea    0xeac(%rip),%rbp
mov    %rsp,%r14
lea    0xe09(%rip),%r15
jmp    1210 <toolsMenu+0x50>
lea    0x15ca(%rip),%rdi
call   1030 <puts@plt>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x128a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1291(%rip),%rdi
call   1030 <puts@plt>
lea    0x12a3(%rip),%rdi
call   1030 <puts@plt>
lea    0x12c6(%rip),%rdi
call   1030 <puts@plt>
lea    0x12f0(%rip),%rdi
call   1030 <puts@plt>
lea    0x1316(%rip),%rdi
call   1030 <puts@plt>
lea    0x1340(%rip),%rdi
call   1030 <puts@plt>
lea    0x1369(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   10c0 <scanf@plt>
mov    %r14,%rdi
call   10d0 <atoi@plt>
add    $0xffffffff,%eax
cmp    $0x8,%eax
ja     11f9 <toolsMenu+0x39>
movslq (%r15,%rax,4),%rax
add    %r15,%rax
jmp    *%rax
lea    0x14f3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <buildprior@plt>
cmp    $0x1,%eax
je     1486 <toolsMenu+0x2c6>
test   %eax,%eax
jne    1210 <toolsMenu+0x50>
lea    0xdc1(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0x148d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <buildsstats@plt>
cmp    $0x1,%eax
je     1497 <toolsMenu+0x2d7>
test   %eax,%eax
jne    1210 <toolsMenu+0x50>
lea    0xdcd(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0x1420(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10e0 <createtab@plt>
cmp    $0x4,%eax
ja     1210 <toolsMenu+0x50>
mov    %eax,%eax
lea    0xd31(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xdfc(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0x13b3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10a0 <createtab2@plt>
cmp    $0x3,%eax
ja     1210 <toolsMenu+0x50>
mov    %eax,%eax
lea    0xce2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1353(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <createtab3@plt>
cmp    $0x4,%eax
ja     1210 <toolsMenu+0x50>
mov    %eax,%eax
lea    0xca0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe4a(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0x12dd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1090 <createtab4@plt>
cmp    $0x9,%eax
ja     1210 <toolsMenu+0x50>
mov    %eax,%eax
lea    0xc39(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd34(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0x1265(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <createpop@plt>
cmp    $0x2,%eax
je     1475 <toolsMenu+0x2b5>
cmp    $0x1,%eax
je     14b9 <toolsMenu+0x2f9>
test   %eax,%eax
jne    1210 <toolsMenu+0x50>
lea    0xfcd(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0x1203(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10b0 <joinfiles@plt>
cmp    $0x2,%eax
je     14ca <toolsMenu+0x30a>
cmp    $0x1,%eax
je     14db <toolsMenu+0x31b>
test   %eax,%eax
jne    1210 <toolsMenu+0x50>
lea    0xfda(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xcf0(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xc2d(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xc6e(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xd7a(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xf63(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xfaa(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xf74(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xc9c(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xcb4(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xd44(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xd64(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xd82(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xd92(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xda4(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xdb6(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xdd0(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xdff(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
lea    0xe2f(%rip),%rdi
call   1060 <printf@plt>
jmp    1210 <toolsMenu+0x50>
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"\0A\0A\0A *Tools Menu*\0A\0A\00"
@.str.1 = [31 x i8] c" 1. Build prior file (.prs)\0A\0A\00"
@.str.2 = [48 x i8] c" 2. Build summary statistics set file (.sst)\0A\0A\00"
@.str.3 = [55 x i8] c" 3. Convert sample file (.pop) to table file (.len)\0A\0A\00"
@.str.4 = [51 x i8] c" 4. Convert IMa input file to table file (.len)\0A\0A\00"
@.str.5 = [55 x i8] c" 5. Convert GenePop input file to table file (.len)\0A\0A\00"
@.str.6 = [54 x i8] c" 6. Convert Nexus file (.nex) to table file (.len)\0A\0A\00"
@.str.7 = [56 x i8] c" 7. Create sample file (.pop) from table file (.len)\0A\0A\00"
@.str.8 = [39 x i8] c" 8. Join data files together (.dat)\0A\0A\00"
@.str.9 = [25 x i8] c" 9. Exit to Main Menu\0A\0A\00"
@.str.10 = [21 x i8] c" choose an option: \00"
@.str.11 = [3 x i8] c"%s\00"
@.str.12 = [33 x i8] c"\0A\0A\0A *Build prior file (.prs)*\0A\0A\00"
@.str.13 = [30 x i8] c"\0A\0A>prior file (.prs) created.\00"
@.str.14 = [35 x i8] c"\0A\0A>error::cannot create .prs file!\00"
@.str.15 = [50 x i8] c"\0A\0A\0A *Build summary statistics set file (.prs)*\0A\0A\00"
@.str.16 = [47 x i8] c"\0A\0A>summary statistics set file (.sst) created.\00"
@.str.17 = [35 x i8] c"\0A\0A>error::cannot create .sst file!\00"
@.str.18 = [57 x i8] c"\0A\0A\0A *Convert sample file (.pop) to table file (.len)*\0A\0A\00"
@.str.19 = [28 x i8] c"\0A\0A>table file (.len) build.\00"
@.str.20 = [33 x i8] c"\0A\0A>error::cannot open .pop file!\00"
@.str.21 = [35 x i8] c"\0A\0A>error::cannot create .len file!\00"
@.str.22 = [41 x i8] c"\0A\0A>error::individual has no information!\00"
@.str.23 = [78 x i8] c"\0A\0A>error::different number of ploidy or number of sites in alleles of a loci!\00"
@.str.24 = [47 x i8] c"\0A\0A\0A *Convert IMa file to table file (.len)*\0A\0A\00"
@.str.25 = [35 x i8] c"\0A\0A>error::cannot open sample file!\00"
@.str.26 = [48 x i8] c"\0A\0A>error::cannot deal with specified data type!\00"
@.str.27 = [51 x i8] c"\0A\0A\0A *Convert GenePop file to table file (.len)*\0A\0A\00"
@.str.28 = [49 x i8] c"\0A\0A>error::file ended before the display of data!\00"
@.str.29 = [47 x i8] c"\0A\0A>error::incorrect number of digits in locus!\00"
@.str.30 = [56 x i8] c"\0A\0A\0A *Convert Nexus file (.nex) to table file (.len)*\0A\0A\00"
@.str.31 = [33 x i8] c"\0A\0A>error::cannot open .nex file!\00"
@.str.32 = [35 x i8] c"\0A\0A>error::problems reading MATRIX!\00"
@.str.33 = [35 x i8] c"\0A\0A>error::problems reading TAXSET!\00"
@.str.34 = [43 x i8] c"\0A\0A>error::problem defining TAXSET: n1>=n2!\00"
@.str.35 = [64 x i8] c"\0A\0A>error::unrecognized specifier after BEGIN SETS (use TAXSET)!\00"
@.str.36 = [65 x i8] c"\0A\0A>error::unrecognized specifier after BEGIN (use DATA or SETS)!\00"
@.str.37 = [54 x i8] c"\0A\0A>error::unrecognized command (only BEGIN accepted)!\00"
@.str.38 = [58 x i8] c"\0A\0A\0A *Create sample file (.pop) from table file (.len)*\0A\0A\00"
@.str.39 = [33 x i8] c"\0A\0A>sample file (.pop) converted.\00"
@.str.40 = [34 x i8] c"\0A\0A>error::cannot open .pop files!\00"
@.str.41 = [41 x i8] c"\0A\0A\0A *Join data files (.dat) together*\0A\0A\00"
@.str.42 = [17 x i8] c"\0A\0A>files joined.\00"
@.str.43 = [37 x i8] c"\0A\0A>error::cannot create output file!\00"
@.str.44 = [38 x i8] c"\0A\0A>error::cannot open an input files!\00"
@.str.45 = [32 x i8] c"\0A\0A>error::option not available\0A\00"
define void @toolsMenu() {
%1 = alloca [256 x i8]
%2 = alloca i32
%3 = alloca i32
br label %4
4: ; preds = %245, %0
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%16 = bitcast [256 x i8]* %1 to i8**
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8** %16)
%18 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%19 = call i32 @atoi(i8* %18)
store i32 %19, i32* %2
%20 = load i32, i32* %2
switch i32 %20, label %242 [
i32 1, label %21
i32 2, label %35
i32 3, label %49
i32 4, label %81
i32 5, label %107
i32 6, label %139
i32 7, label %201
i32 8, label %221
i32 9, label %241
]
21: ; preds = %4
%22 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%23 = call i32 (...) @buildprior()
store i32 %23, i32* %3
%24 = load i32, i32* %3
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %21
%27 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
br label %34
28: ; preds = %21
%29 = load i32, i32* %3
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0))
br label %33
33: ; preds = %31, %28
br label %34
34: ; preds = %33, %26
br label %244
35: ; preds = %4
%36 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.15, i64 0, i64 0))
%37 = call i32 (...) @buildsstats()
store i32 %37, i32* %3
%38 = load i32, i32* %3
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0))
br label %48
42: ; preds = %35
%43 = load i32, i32* %3
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.17, i64 0, i64 0))
br label %47
47: ; preds = %45, %42
br label %48
48: ; preds = %47, %40
br label %244
49: ; preds = %4
%50 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.18, i64 0, i64 0))
%51 = call i32 (...) @createtab()
store i32 %51, i32* %3
%52 = load i32, i32* %3
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %49
%55 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %80
56: ; preds = %49
%57 = load i32, i32* %3
%58 = icmp eq i32 %57, 1
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.20, i64 0, i64 0))
br label %79
61: ; preds = %56
%62 = load i32, i32* %3
%63 = icmp eq i32 %62, 2
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %78
66: ; preds = %61
%67 = load i32, i32* %3
%68 = icmp eq i32 %67, 3
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0))
br label %77
71: ; preds = %66
%72 = load i32, i32* %3
%73 = icmp eq i32 %72, 4
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.23, i64 0, i64 0))
br label %76
76: ; preds = %74, %71
br label %77
77: ; preds = %76, %69
br label %78
78: ; preds = %77, %64
br label %79
79: ; preds = %78, %59
br label %80
80: ; preds = %79, %54
br label %244
81: ; preds = %4
%82 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.24, i64 0, i64 0))
%83 = call i32 (...) @createtab2()
store i32 %83, i32* %3
%84 = load i32, i32* %3
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %81
%87 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %106
88: ; preds = %81
%89 = load i32, i32* %3
%90 = icmp eq i32 %89, 1
br i1 %90, label %91, label %93
91: ; preds = %88
%92 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.25, i64 0, i64 0))
br label %105
93: ; preds = %88
%94 = load i32, i32* %3
%95 = icmp eq i32 %94, 2
br i1 %95, label %96, label %98
96: ; preds = %93
%97 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %104
98: ; preds = %93
%99 = load i32, i32* %3
%100 = icmp eq i32 %99, 3
br i1 %100, label %101, label %103
101: ; preds = %98
%102 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.26, i64 0, i64 0))
br label %103
103: ; preds = %101, %98
br label %104
104: ; preds = %103, %96
br label %105
105: ; preds = %104, %91
br label %106
106: ; preds = %105, %86
br label %244
107: ; preds = %4
%108 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.27, i64 0, i64 0))
%109 = call i32 (...) @createtab3()
store i32 %109, i32* %3
%110 = load i32, i32* %3
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %114
112: ; preds = %107
%113 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %138
114: ; preds = %107
%115 = load i32, i32* %3
%116 = icmp eq i32 %115, 1
br i1 %116, label %117, label %119
117: ; preds = %114
%118 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.25, i64 0, i64 0))
br label %137
119: ; preds = %114
%120 = load i32, i32* %3
%121 = icmp eq i32 %120, 2
br i1 %121, label %122, label %124
122: ; preds = %119
%123 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %136
124: ; preds = %119
%125 = load i32, i32* %3
%126 = icmp eq i32 %125, 3
br i1 %126, label %127, label %129
127: ; preds = %124
%128 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.28, i64 0, i64 0))
br label %135
129: ; preds = %124
%130 = load i32, i32* %3
%131 = icmp eq i32 %130, 4
br i1 %131, label %132, label %134
132: ; preds = %129
%133 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.29, i64 0, i64 0))
br label %134
134: ; preds = %132, %129
br label %135
135: ; preds = %134, %127
br label %136
136: ; preds = %135, %122
br label %137
137: ; preds = %136, %117
br label %138
138: ; preds = %137, %112
br label %244
139: ; preds = %4
%140 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.30, i64 0, i64 0))
%141 = call i32 (...) @createtab4()
store i32 %141, i32* %3
%142 = load i32, i32* %3
%143 = icmp eq i32 %142, 0
br i1 %143, label %144, label %146
144: ; preds = %139
%145 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %200
146: ; preds = %139
%147 = load i32, i32* %3
%148 = icmp eq i32 %147, 1
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.31, i64 0, i64 0))
br label %199
151: ; preds = %146
%152 = load i32, i32* %3
%153 = icmp eq i32 %152, 2
br i1 %153, label %154, label %156
154: ; preds = %151
%155 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %198
156: ; preds = %151
%157 = load i32, i32* %3
%158 = icmp eq i32 %157, 3
br i1 %158, label %159, label %161
159: ; preds = %156
%160 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.26, i64 0, i64 0))
br label %197
161: ; preds = %156
%162 = load i32, i32* %3
%163 = icmp eq i32 %162, 4
br i1 %163, label %164, label %166
164: ; preds = %161
%165 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.32, i64 0, i64 0))
br label %196
166: ; preds = %161
%167 = load i32, i32* %3
%168 = icmp eq i32 %167, 5
br i1 %168, label %169, label %171
169: ; preds = %166
%170 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.33, i64 0, i64 0))
br label %195
171: ; preds = %166
%172 = load i32, i32* %3
%173 = icmp eq i32 %172, 6
br i1 %173, label %174, label %176
174: ; preds = %171
%175 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.34, i64 0, i64 0))
br label %194
176: ; preds = %171
%177 = load i32, i32* %3
%178 = icmp eq i32 %177, 7
br i1 %178, label %179, label %181
179: ; preds = %176
%180 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.35, i64 0, i64 0))
br label %193
181: ; preds = %176
%182 = load i32, i32* %3
%183 = icmp eq i32 %182, 8
br i1 %183, label %184, label %186
184: ; preds = %181
%185 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.36, i64 0, i64 0))
br label %192
186: ; preds = %181
%187 = load i32, i32* %3
%188 = icmp eq i32 %187, 9
br i1 %188, label %189, label %191
189: ; preds = %186
%190 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.37, i64 0, i64 0))
br label %191
191: ; preds = %189, %186
br label %192
192: ; preds = %191, %184
br label %193
193: ; preds = %192, %179
br label %194
194: ; preds = %193, %174
br label %195
195: ; preds = %194, %169
br label %196
196: ; preds = %195, %164
br label %197
197: ; preds = %196, %159
br label %198
198: ; preds = %197, %154
br label %199
199: ; preds = %198, %149
br label %200
200: ; preds = %199, %144
br label %244
201: ; preds = %4
%202 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.38, i64 0, i64 0))
%203 = call i32 (...) @createpop()
store i32 %203, i32* %3
%204 = load i32, i32* %3
%205 = icmp eq i32 %204, 0
br i1 %205, label %206, label %208
206: ; preds = %201
%207 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.39, i64 0, i64 0))
br label %220
208: ; preds = %201
%209 = load i32, i32* %3
%210 = icmp eq i32 %209, 1
br i1 %210, label %211, label %213
211: ; preds = %208
%212 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.40, i64 0, i64 0))
br label %219
213: ; preds = %208
%214 = load i32, i32* %3
%215 = icmp eq i32 %214, 2
br i1 %215, label %216, label %218
216: ; preds = %213
%217 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %218
218: ; preds = %216, %213
br label %219
219: ; preds = %218, %211
br label %220
220: ; preds = %219, %206
br label %244
221: ; preds = %4
%222 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.41, i64 0, i64 0))
%223 = call i32 (...) @joinfiles()
store i32 %223, i32* %3
%224 = load i32, i32* %3
%225 = icmp eq i32 %224, 0
br i1 %225, label %226, label %228
226: ; preds = %221
%227 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.42, i64 0, i64 0))
br label %240
228: ; preds = %221
%229 = load i32, i32* %3
%230 = icmp eq i32 %229, 1
br i1 %230, label %231, label %233
231: ; preds = %228
%232 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.43, i64 0, i64 0))
br label %239
233: ; preds = %228
%234 = load i32, i32* %3
%235 = icmp eq i32 %234, 2
br i1 %235, label %236, label %238
236: ; preds = %233
%237 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.44, i64 0, i64 0))
br label %238
238: ; preds = %236, %233
br label %239
239: ; preds = %238, %231
br label %240
240: ; preds = %239, %226
br label %244
241: ; preds = %4
br label %244
242: ; preds = %4
%243 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.45, i64 0, i64 0))
br label %244
244: ; preds = %242, %241, %240, %220, %200, %138, %106, %80, %48, %34
br label %245
245: ; preds = %244
%246 = load i32, i32* %2
%247 = icmp ne i32 %246, 9
br i1 %247, label %4, label %248
248: ; preds = %245
ret void
}

LLVM IR (-O2):
@.str.10 = [21 x i8] c" choose an option: \00"
@.str.11 = [3 x i8] c"%s\00"
@.str.13 = [30 x i8] c"\0A\0A>prior file (.prs) created.\00"
@.str.14 = [35 x i8] c"\0A\0A>error::cannot create .prs file!\00"
@.str.16 = [47 x i8] c"\0A\0A>summary statistics set file (.sst) created.\00"
@.str.17 = [35 x i8] c"\0A\0A>error::cannot create .sst file!\00"
@.str.19 = [28 x i8] c"\0A\0A>table file (.len) build.\00"
@.str.20 = [33 x i8] c"\0A\0A>error::cannot open .pop file!\00"
@.str.21 = [35 x i8] c"\0A\0A>error::cannot create .len file!\00"
@.str.22 = [41 x i8] c"\0A\0A>error::individual has no information!\00"
@.str.23 = [78 x i8] c"\0A\0A>error::different number of ploidy or number of sites in alleles of a loci!\00"
@.str.25 = [35 x i8] c"\0A\0A>error::cannot open sample file!\00"
@.str.26 = [48 x i8] c"\0A\0A>error::cannot deal with specified data type!\00"
@.str.28 = [49 x i8] c"\0A\0A>error::file ended before the display of data!\00"
@.str.29 = [47 x i8] c"\0A\0A>error::incorrect number of digits in locus!\00"
@.str.31 = [33 x i8] c"\0A\0A>error::cannot open .nex file!\00"
@.str.32 = [35 x i8] c"\0A\0A>error::problems reading MATRIX!\00"
@.str.33 = [35 x i8] c"\0A\0A>error::problems reading TAXSET!\00"
@.str.34 = [43 x i8] c"\0A\0A>error::problem defining TAXSET: n1>=n2!\00"
@.str.35 = [64 x i8] c"\0A\0A>error::unrecognized specifier after BEGIN SETS (use TAXSET)!\00"
@.str.36 = [65 x i8] c"\0A\0A>error::unrecognized specifier after BEGIN (use DATA or SETS)!\00"
@.str.37 = [54 x i8] c"\0A\0A>error::unrecognized command (only BEGIN accepted)!\00"
@.str.39 = [33 x i8] c"\0A\0A>sample file (.pop) converted.\00"
@.str.40 = [34 x i8] c"\0A\0A>error::cannot open .pop files!\00"
@.str.42 = [17 x i8] c"\0A\0A>files joined.\00"
@.str.43 = [37 x i8] c"\0A\0A>error::cannot create output file!\00"
@.str.44 = [38 x i8] c"\0A\0A>error::cannot open an input files!\00"
@str = [19 x i8] c"\0A\0A\0A *Tools Menu*\0A\00"
@str.46 = [30 x i8] c" 1. Build prior file (.prs)\0A\00"
@str.47 = [47 x i8] c" 2. Build summary statistics set file (.sst)\0A\00"
@str.48 = [54 x i8] c" 3. Convert sample file (.pop) to table file (.len)\0A\00"
@str.49 = [50 x i8] c" 4. Convert IMa input file to table file (.len)\0A\00"
@str.50 = [54 x i8] c" 5. Convert GenePop input file to table file (.len)\0A\00"
@str.51 = [53 x i8] c" 6. Convert Nexus file (.nex) to table file (.len)\0A\00"
@str.52 = [55 x i8] c" 7. Create sample file (.pop) from table file (.len)\0A\00"
@str.53 = [38 x i8] c" 8. Join data files together (.dat)\0A\00"
@str.54 = [24 x i8] c" 9. Exit to Main Menu\0A\00"
@str.55 = [40 x i8] c"\0A\0A\0A *Join data files (.dat) together*\0A\00"
@str.56 = [57 x i8] c"\0A\0A\0A *Create sample file (.pop) from table file (.len)*\0A\00"
@str.57 = [55 x i8] c"\0A\0A\0A *Convert Nexus file (.nex) to table file (.len)*\0A\00"
@str.58 = [50 x i8] c"\0A\0A\0A *Convert GenePop file to table file (.len)*\0A\00"
@str.59 = [46 x i8] c"\0A\0A\0A *Convert IMa file to table file (.len)*\0A\00"
@str.60 = [56 x i8] c"\0A\0A\0A *Convert sample file (.pop) to table file (.len)*\0A\00"
@str.61 = [49 x i8] c"\0A\0A\0A *Build summary statistics set file (.prs)*\0A\00"
@str.62 = [32 x i8] c"\0A\0A\0A *Build prior file (.prs)*\0A\00"
@str.63 = [31 x i8] c"\0A\0A>error::option not available\00"
define void @toolsMenu() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = bitcast [256 x i8]* %1 to i8**
br label %4
4: ; preds = %104, %0
%5 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.46, i64 0, i64 0))
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.47, i64 0, i64 0))
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.48, i64 0, i64 0))
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.49, i64 0, i64 0))
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.50, i64 0, i64 0))
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.51, i64 0, i64 0))
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.52, i64 0, i64 0))
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.53, i64 0, i64 0))
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.54, i64 0, i64 0))
%15 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8** %3)
%17 = call i32 @atoi(i8* %2)
switch i32 %17, label %111 [
i32 1, label %18
i32 2, label %25
i32 3, label %32
i32 4, label %45
i32 5, label %56
i32 6, label %69
i32 7, label %92
i32 8, label %101
i32 9, label %113
]
18: ; preds = %4
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.62, i64 0, i64 0))
%20 = call i32 (...) @buildprior()
switch i32 %20, label %104 [
i32 0, label %21
i32 1, label %23
]
21: ; preds = %18
%22 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
br label %104
23: ; preds = %18
%24 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0))
br label %104
25: ; preds = %4
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.61, i64 0, i64 0))
%27 = call i32 (...) @buildsstats()
switch i32 %27, label %104 [
i32 0, label %28
i32 1, label %30
]
28: ; preds = %25
%29 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0))
br label %104
30: ; preds = %25
%31 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.17, i64 0, i64 0))
br label %104
32: ; preds = %4
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.60, i64 0, i64 0))
%34 = call i32 (...) @createtab()
switch i32 %34, label %104 [
i32 0, label %35
i32 1, label %37
i32 2, label %39
i32 3, label %41
i32 4, label %43
]
35: ; preds = %32
%36 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %104
37: ; preds = %32
%38 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.20, i64 0, i64 0))
br label %104
39: ; preds = %32
%40 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %104
41: ; preds = %32
%42 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0))
br label %104
43: ; preds = %32
%44 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.23, i64 0, i64 0))
br label %104
45: ; preds = %4
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.59, i64 0, i64 0))
%47 = call i32 (...) @createtab2()
switch i32 %47, label %104 [
i32 0, label %48
i32 1, label %50
i32 2, label %52
i32 3, label %54
]
48: ; preds = %45
%49 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %104
50: ; preds = %45
%51 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.25, i64 0, i64 0))
br label %104
52: ; preds = %45
%53 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %104
54: ; preds = %45
%55 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.26, i64 0, i64 0))
br label %104
56: ; preds = %4
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.58, i64 0, i64 0))
%58 = call i32 (...) @createtab3()
switch i32 %58, label %104 [
i32 0, label %59
i32 1, label %61
i32 2, label %63
i32 3, label %65
i32 4, label %67
]
59: ; preds = %56
%60 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %104
61: ; preds = %56
%62 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.25, i64 0, i64 0))
br label %104
63: ; preds = %56
%64 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %104
65: ; preds = %56
%66 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.28, i64 0, i64 0))
br label %104
67: ; preds = %56
%68 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.29, i64 0, i64 0))
br label %104
69: ; preds = %4
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.57, i64 0, i64 0))
%71 = call i32 (...) @createtab4()
switch i32 %71, label %104 [
i32 0, label %72
i32 1, label %74
i32 2, label %76
i32 3, label %78
i32 4, label %80
i32 5, label %82
i32 6, label %84
i32 7, label %86
i32 8, label %88
i32 9, label %90
]
72: ; preds = %69
%73 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %104
74: ; preds = %69
%75 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.31, i64 0, i64 0))
br label %104
76: ; preds = %69
%77 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %104
78: ; preds = %69
%79 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.26, i64 0, i64 0))
br label %104
80: ; preds = %69
%81 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.32, i64 0, i64 0))
br label %104
82: ; preds = %69
%83 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.33, i64 0, i64 0))
br label %104
84: ; preds = %69
%85 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.34, i64 0, i64 0))
br label %104
86: ; preds = %69
%87 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.35, i64 0, i64 0))
br label %104
88: ; preds = %69
%89 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.36, i64 0, i64 0))
br label %104
90: ; preds = %69
%91 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.37, i64 0, i64 0))
br label %104
92: ; preds = %4
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.56, i64 0, i64 0))
%94 = call i32 (...) @createpop()
switch i32 %94, label %104 [
i32 0, label %95
i32 1, label %97
i32 2, label %99
]
95: ; preds = %92
%96 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.39, i64 0, i64 0))
br label %104
97: ; preds = %92
%98 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.40, i64 0, i64 0))
br label %104
99: ; preds = %92
%100 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.21, i64 0, i64 0))
br label %104
101: ; preds = %4
%102 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.55, i64 0, i64 0))
%103 = call i32 (...) @joinfiles()
switch i32 %103, label %104 [
i32 0, label %105
i32 1, label %107
i32 2, label %109
]
104: ; preds = %101, %92, %69, %56, %45, %32, %25, %18, %111, %23, %21, %30, %28, %37, %41, %43, %39, %35, %50, %54, %52, %48, %61, %65, %67, %63, %59, %74, %78, %82, %86, %90, %88, %84, %80, %76, %72, %97, %99, %95, %107, %109, %105
br label %4
105: ; preds = %101
%106 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.42, i64 0, i64 0))
br label %104
107: ; preds = %101
%108 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.43, i64 0, i64 0))
br label %104
109: ; preds = %101
%110 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.44, i64 0, i64 0))
br label %104
111: ; preds = %4
%112 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.63, i64 0, i64 0))
br label %104
113: ; preds = %4
ret void
}