#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 /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ print_error_ce(char *, char *);
int /*<<< orphan*/ print_help_ce();
int /*<<< orphan*/ print_licence_snmf();
char *remove_ext(char *, char, char);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void analyse_param_ce(int argc, char *argv[], int *m, int *K, char *input,
                      char *input_file_Q, char *input_file_F,
                      char *input_file_I) {
  int i;
  int g_data = -1;
  char *tmp_file;
  char tmp[512];
  int g_m = 0;
  for (i = 1; i < argc; i++) {
    if (argv[i][0] == '-') {
      switch (argv[i][1]) {
      case 'K':
        i++;
        if (argc == i || argv[i][0] == '-')
          print_error_ce("cmd", "K (number of ancestral populations)");
        *K = atoi(argv[i]);
        strcpy(tmp, argv[i]);
        break;
      case 'm':
        i++;
        if (argc == i || argv[i][0] == '-')
          print_error_ce("cmd", "m (number of alleles)");
        *m = atoi(argv[i]);
        g_m = 1;
        break;
      case 'h':
        print_help_ce();
        exit(1);
        break;
      case 'l':
        print_licence_snmf();
        exit(1);
        break;
      case 'x':
        i++;
        if (argc == i || argv[i][0] == '-')
          print_error_ce("cmd", "x (genotype file)");
        g_data = 0;
        strcpy(input, argv[i]);
        break;
      case 'q':
        i++;
        if (argc == i || argv[i][0] == '-')
          print_error_ce("cmd", "q (individual admixture coefficients file)");
        strcpy(input_file_Q, argv[i]);
        break;
      case 'g':
        i++;
        if (argc == i || argv[i][0] == '-')
          print_error_ce("cmd", "g (ancestral genotype frequencies file)");
        strcpy(input_file_F, argv[i]);
        break;
      case 'i':
        i++;
        if (argc == i || argv[i][0] == '-')
          print_error_ce("cmd", "i (genotype file with masked genotypes)");
        strcpy(input_file_I, argv[i]);
        break;
      default:
        print_error_ce("basic", NULL);
      }
    } else {
      print_error_ce("basic", NULL);
    }
  }
  if (g_data == -1)
    print_error_ce("option", "-x genotype_file");
  if (g_m && *m <= 0)
    print_error_ce("missing", NULL);
  if (*K <= 0)
    print_error_ce("missing", NULL);
  tmp_file = remove_ext(input, '.', '/');
  if (!strcmp(input_file_F, "")) {
    strcpy(input_file_F, tmp_file);
    strcat(input_file_F, "_I.");
    strcat(input_file_F, tmp);
    strcat(input_file_F, ".G");
  }
  if (!strcmp(input_file_Q, "")) {
    strcpy(input_file_Q, tmp_file);
    strcat(input_file_Q, "_I.");
    strcat(input_file_Q, tmp);
    strcat(input_file_Q, ".Q");
  }
  if (!strcmp(input_file_I, "")) {
    strcpy(input_file_I, tmp_file);
    strcat(input_file_I, "_I.geno");
  }
  free(tmp_file);
}


x86 assembly (clang, -O0):
<analyse_param_ce>:
push   %rbp
mov    %rsp,%rbp
sub    $0x250,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0xffffffff,-0x38(%rbp)
movl   $0x0,-0x244(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    14e9 <analyse_param_ce+0x349>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    14c6 <analyse_param_ce+0x326>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
add    $0xffffffb5,%eax
mov    %eax,%ecx
mov    %rcx,-0x250(%rbp)
sub    $0x2d,%eax
ja     14b1 <analyse_param_ce+0x311>
mov    -0x250(%rbp),%rax
lea    0xdc7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     126f <analyse_param_ce+0xcf>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1282 <analyse_param_ce+0xe2>
lea    0xe42(%rip),%rdi
lea    0xe3f(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10a0 <atoi@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <strcpy@plt>
jmp    14c1 <analyse_param_ce+0x321>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     12e5 <analyse_param_ce+0x145>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    12f8 <analyse_param_ce+0x158>
lea    0xdcc(%rip),%rdi
lea    0xded(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10a0 <atoi@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x244(%rbp)
jmp    14c1 <analyse_param_ce+0x321>
mov    $0x0,%al
call   1030 <print_help_ce@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    $0x0,%al
call   1090 <print_licence_snmf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     136f <analyse_param_ce+0x1cf>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1382 <analyse_param_ce+0x1e2>
lea    0xd42(%rip),%rdi
lea    0xd79(%rip),%rsi
call   1070 <print_error_ce@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <strcpy@plt>
jmp    14c1 <analyse_param_ce+0x321>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     13d0 <analyse_param_ce+0x230>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    13e3 <analyse_param_ce+0x243>
lea    0xce1(%rip),%rdi
lea    0xd2a(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <strcpy@plt>
jmp    14c1 <analyse_param_ce+0x321>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     142a <analyse_param_ce+0x28a>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    143d <analyse_param_ce+0x29d>
lea    0xc87(%rip),%rdi
lea    0xcfb(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    0x10(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <strcpy@plt>
jmp    14c1 <analyse_param_ce+0x321>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x34(%rbp),%eax
je     1484 <analyse_param_ce+0x2e4>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1497 <analyse_param_ce+0x2f7>
lea    0xc2d(%rip),%rdi
lea    0xcc9(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <strcpy@plt>
jmp    14c1 <analyse_param_ce+0x321>
lea    0xccb(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <print_error_ce@plt>
jmp    14d6 <analyse_param_ce+0x336>
lea    0xcb6(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <print_error_ce@plt>
jmp    14db <analyse_param_ce+0x33b>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11e2 <analyse_param_ce+0x42>
cmpl   $0xffffffff,-0x38(%rbp)
jne    1506 <analyse_param_ce+0x366>
lea    0xc8f(%rip),%rdi
lea    0xc8f(%rip),%rsi
call   1070 <print_error_ce@plt>
cmpl   $0x0,-0x244(%rbp)
je     1530 <analyse_param_ce+0x390>
mov    -0x18(%rbp),%rax
cmpl   $0x0,(%rax)
jg     1530 <analyse_param_ce+0x390>
lea    0xc7a(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <print_error_ce@plt>
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jg     154d <analyse_param_ce+0x3ad>
lea    0xc5d(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1070 <print_error_ce@plt>
mov    -0x28(%rbp),%rdi
mov    $0x2e,%esi
mov    $0x2f,%edx
call   1060 <remove_ext@plt>
mov    %rax,-0x40(%rbp)
mov    0x10(%rbp),%rdi
lea    0xb98(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    15ba <analyse_param_ce+0x41a>
mov    0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1050 <strcpy@plt>
mov    0x10(%rbp),%rdi
lea    0xc14(%rip),%rsi
call   10b0 <strcat@plt>
mov    0x10(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   10b0 <strcat@plt>
mov    0x10(%rbp),%rdi
lea    0xbf8(%rip),%rsi
call   10b0 <strcat@plt>
mov    -0x30(%rbp),%rdi
lea    0xb42(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1610 <analyse_param_ce+0x470>
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1050 <strcpy@plt>
mov    -0x30(%rbp),%rdi
lea    0xbbe(%rip),%rsi
call   10b0 <strcat@plt>
mov    -0x30(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   10b0 <strcat@plt>
mov    -0x30(%rbp),%rdi
lea    0xba5(%rip),%rsi
call   10b0 <strcat@plt>
mov    0x18(%rbp),%rdi
lea    0xaec(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1646 <analyse_param_ce+0x4a6>
mov    0x18(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1050 <strcpy@plt>
mov    0x18(%rbp),%rdi
lea    0xb72(%rip),%rsi
call   10b0 <strcat@plt>
mov    -0x40(%rbp),%rdi
call   1040 <free@plt>
add    $0x250,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<analyse_param_ce>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x238,%rsp
mov    %r9,%r13
mov    %r8,0x20(%rsp)
mov    %rcx,0x18(%rsp)
mov    %rdx,0x10(%rsp)
mov    0x270(%rsp),%rbx
xor    %ebp,%ebp
cmp    $0x2,%edi
jl     13da <analyse_param_ce+0x24a>
mov    %rsi,%r14
mov    %edi,%r15d
movl   $0xffffffff,0x4(%rsp)
ff
mov    $0x1,%r12d
xor    %eax,%eax
mov    %rax,0x8(%rsp)
lea    0xe18(%rip),%rbx
mov    %r13,0x28(%rsp)
jmp    120b <analyse_param_ce+0x7b>
nop
lea    0xf8c(%rip),%rdi
xor    %esi,%esi
call   1070 <print_error_ce@plt>
add    $0x1,%r12d
cmp    %r15d,%r12d
jge    13c6 <analyse_param_ce+0x236>
movslq %r12d,%rax
mov    (%r14,%rax,8),%rax
cmpb   $0x2d,(%rax)
jne    11f0 <analyse_param_ce+0x60>
movsbl 0x1(%rax),%eax
add    $0xffffffb5,%eax
cmp    $0x2d,%eax
ja     11f0 <analyse_param_ce+0x60>
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
add    $0x1,%r12d
movslq %r12d,%rbp
cmp    %r15d,%r12d
je     1243 <analyse_param_ce+0xb3>
mov    (%r14,%rbp,8),%r13
cmpb   $0x2d,0x0(%r13)
jne    125a <analyse_param_ce+0xca>
lea    0xe6e(%rip),%rdi
lea    0xe6b(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    (%r14,%rbp,8),%r13
mov    %r13,%rdi
call   1090 <atoi@plt>
mov    0x18(%rsp),%rcx
mov    %eax,(%rcx)
lea    0x30(%rsp),%rdi
mov    %r13,%rsi
call   1050 <strcpy@plt>
mov    0x28(%rsp),%r13
lea    0xd7e(%rip),%rbx
jmp    11fe <analyse_param_ce+0x6e>
add    $0x1,%r12d
movslq %r12d,%rbp
cmp    %r15d,%r12d
je     129c <analyse_param_ce+0x10c>
mov    (%r14,%rbp,8),%rsi
cmpb   $0x2d,(%rsi)
jne    12b3 <analyse_param_ce+0x123>
lea    0xe15(%rip),%rdi
lea    0xe89(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    (%r14,%rbp,8),%rsi
mov    0x270(%rsp),%rdi
call   1050 <strcpy@plt>
jmp    11fe <analyse_param_ce+0x6e>
add    $0x1,%r12d
movslq %r12d,%rbp
cmp    %r15d,%r12d
je     12da <analyse_param_ce+0x14a>
mov    (%r14,%rbp,8),%rsi
cmpb   $0x2d,(%rsi)
jne    12f1 <analyse_param_ce+0x161>
lea    0xdd7(%rip),%rdi
lea    0xe73(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    (%r14,%rbp,8),%rsi
mov    0x278(%rsp),%rdi
call   1050 <strcpy@plt>
jmp    11fe <analyse_param_ce+0x6e>
add    $0x1,%r12d
movslq %r12d,%rbp
cmp    %r15d,%r12d
je     1318 <analyse_param_ce+0x188>
mov    (%r14,%rbp,8),%rdi
cmpb   $0x2d,(%rdi)
jne    132f <analyse_param_ce+0x19f>
lea    0xd99(%rip),%rdi
lea    0xdba(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    (%r14,%rbp,8),%rdi
call   1090 <atoi@plt>
mov    0x10(%rsp),%rcx
mov    %eax,(%rcx)
mov    $0x1,%eax
mov    %rax,0x8(%rsp)
jmp    11fe <analyse_param_ce+0x6e>
add    $0x1,%r12d
movslq %r12d,%rbp
cmp    %r15d,%r12d
je     135f <analyse_param_ce+0x1cf>
mov    (%r14,%rbp,8),%rsi
cmpb   $0x2d,(%rsi)
jne    1376 <analyse_param_ce+0x1e6>
lea    0xd52(%rip),%rdi
lea    0xd9b(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    (%r14,%rbp,8),%rsi
mov    %r13,%rdi
call   1050 <strcpy@plt>
jmp    11fe <analyse_param_ce+0x6e>
add    $0x1,%r12d
movslq %r12d,%rbp
cmp    %r15d,%r12d
je     1398 <analyse_param_ce+0x208>
mov    (%r14,%rbp,8),%rsi
cmpb   $0x2d,(%rsi)
jne    13af <analyse_param_ce+0x21f>
lea    0xd19(%rip),%rdi
lea    0xd50(%rip),%rsi
call   1070 <print_error_ce@plt>
mov    (%r14,%rbp,8),%rsi
mov    0x20(%rsp),%rdi
call   1050 <strcpy@plt>
movl   $0x0,0x4(%rsp)
jmp    11fe <analyse_param_ce+0x6e>
cmpl   $0xffffffff,0x4(%rsp)
mov    0x270(%rsp),%rbx
mov    0x8(%rsp),%rbp
jne    13ed <analyse_param_ce+0x25d>
lea    0xda8(%rip),%rdi
lea    0xda8(%rip),%rsi
call   1070 <print_error_ce@plt>
test   %ebp,%ebp
je     1409 <analyse_param_ce+0x279>
mov    0x10(%rsp),%rax
cmpl   $0x0,(%rax)
jg     1409 <analyse_param_ce+0x279>
lea    0xd9f(%rip),%rdi
xor    %esi,%esi
call   1070 <print_error_ce@plt>
mov    0x18(%rsp),%rax
cmpl   $0x0,(%rax)
jg     1421 <analyse_param_ce+0x291>
lea    0xd87(%rip),%rdi
xor    %esi,%esi
call   1070 <print_error_ce@plt>
mov    0x20(%rsp),%rdi
mov    $0x2e,%esi
mov    $0x2f,%edx
call   1060 <remove_ext@plt>
mov    %rax,%rbp
cmpb   $0x0,(%rbx)
je     1485 <analyse_param_ce+0x2f5>
cmpb   $0x0,0x0(%r13)
je     14c2 <analyse_param_ce+0x332>
mov    0x278(%rsp),%rbx
cmpb   $0x0,(%rbx)
jne    146b <analyse_param_ce+0x2db>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <strcpy@plt>
lea    0xd50(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
mov    %rbp,%rdi
call   1040 <free@plt>
add    $0x238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <strcpy@plt>
lea    0xd12(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
lea    0xcfa(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcat@plt>
cmpb   $0x0,0x0(%r13)
jne    1444 <analyse_param_ce+0x2b4>
mov    %r13,%rdi
mov    %rbp,%rsi
call   1050 <strcpy@plt>
lea    0xcd5(%rip),%rsi
mov    %r13,%rdi
call   10a0 <strcat@plt>
lea    0x30(%rsp),%rsi
mov    %r13,%rdi
call   10a0 <strcat@plt>
lea    0xcc0(%rip),%rsi
mov    %r13,%rdi
call   10a0 <strcat@plt>
jmp    1444 <analyse_param_ce+0x2b4>
xor    %eax,%eax
call   1030 <print_help_ce@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
xor    %eax,%eax
call   1080 <print_licence_snmf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"cmd\00"
@.str.1 = [36 x i8] c"K (number of ancestral populations)\00"
@.str.2 = [22 x i8] c"m (number of alleles)\00"
@.str.3 = [18 x i8] c"x (genotype file)\00"
@.str.4 = [43 x i8] c"q (individual admixture coefficients file)\00"
@.str.5 = [40 x i8] c"g (ancestral genotype frequencies file)\00"
@.str.6 = [40 x i8] c"i (genotype file with masked genotypes)\00"
@.str.7 = [6 x i8] c"basic\00"
@.str.8 = [7 x i8] c"option\00"
@.str.9 = [17 x i8] c"-x genotype_file\00"
@.str.10 = [8 x i8] c"missing\00"
@.str.11 = [1 x i8] zeroinitializer
@.str.12 = [4 x i8] c"_I.\00"
@.str.13 = [3 x i8] c".G\00"
@.str.14 = [3 x i8] c".Q\00"
@.str.15 = [8 x i8] c"_I.geno\00"
define void @analyse_param_ce(i32 %0, i8** %1, i32* %2, i32* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca i32
%10 = alloca i8**
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i32
%18 = alloca i32
%19 = alloca i8*
%20 = alloca [512 x i8]
%21 = alloca i32
store i32 %0, i32* %9
store i8** %1, i8*** %10
store i32* %2, i32** %11
store i32* %3, i32** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i8* %7, i8** %16
store i32 -1, i32* %18
store i32 0, i32* %21
store i32 1, i32* %17
br label %22
22: ; preds = %220, %8
%23 = load i32, i32* %17
%24 = load i32, i32* %9
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %223
26: ; preds = %22
%27 = load i8**, i8*** %10
%28 = load i32, i32* %17
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8*, i8** %27, i64 %29
%31 = load i8*, i8** %30
%32 = getelementptr inbounds i8, i8* %31, i64 0
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 45
br i1 %35, label %36, label %217
36: ; preds = %26
%37 = load i8**, i8*** %10
%38 = load i32, i32* %17
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8*, i8** %37, i64 %39
%41 = load i8*, i8** %40
%42 = getelementptr inbounds i8, i8* %41, i64 1
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
switch i32 %44, label %214 [
i32 75, label %45
i32 109, label %78
i32 104, label %104
i32 108, label %107
i32 120, label %110
i32 113, label %136
i32 103, label %162
i32 105, label %188
]
45: ; preds = %36
%46 = load i32, i32* %17
%47 = add nsw i32 %46, 1
store i32 %47, i32* %17
%48 = load i32, i32* %9
%49 = load i32, i32* %17
%50 = icmp eq i32 %48, %49
br i1 %50, label %61, label %51
51: ; preds = %45
%52 = load i8**, i8*** %10
%53 = load i32, i32* %17
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %52, i64 %54
%56 = load i8*, i8** %55
%57 = getelementptr inbounds i8, i8* %56, i64 0
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 45
br i1 %60, label %61, label %63
61: ; preds = %51, %45
%62 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
br label %63
63: ; preds = %61, %51
%64 = load i8**, i8*** %10
%65 = load i32, i32* %17
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8*, i8** %64, i64 %66
%68 = load i8*, i8** %67
%69 = call i32 @atoi(i8* %68)
%70 = load i32*, i32** %12
store i32 %69, i32* %70
%71 = getelementptr inbounds [512 x i8], [512 x i8]* %20, i64 0, i64 0
%72 = load i8**, i8*** %10
%73 = load i32, i32* %17
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8*, i8** %72, i64 %74
%76 = load i8*, i8** %75
%77 = call i32 @strcpy(i8* %71, i8* %76)
br label %216
78: ; preds = %36
%79 = load i32, i32* %17
%80 = add nsw i32 %79, 1
store i32 %80, i32* %17
%81 = load i32, i32* %9
%82 = load i32, i32* %17
%83 = icmp eq i32 %81, %82
br i1 %83, label %94, label %84
84: ; preds = %78
%85 = load i8**, i8*** %10
%86 = load i32, i32* %17
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8*, i8** %85, i64 %87
%89 = load i8*, i8** %88
%90 = getelementptr inbounds i8, i8* %89, i64 0
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 45
br i1 %93, label %94, label %96
94: ; preds = %84, %78
%95 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %96
96: ; preds = %94, %84
%97 = load i8**, i8*** %10
%98 = load i32, i32* %17
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8*, i8** %97, i64 %99
%101 = load i8*, i8** %100
%102 = call i32 @atoi(i8* %101)
%103 = load i32*, i32** %11
store i32 %102, i32* %103
store i32 1, i32* %21
br label %216
104: ; preds = %36
%105 = call i32 (...) @print_help_ce()
%106 = call i32 @exit(i32 1)
unreachable
107: ; preds = %36
%108 = call i32 (...) @print_licence_snmf()
%109 = call i32 @exit(i32 1)
unreachable
110: ; preds = %36
%111 = load i32, i32* %17
%112 = add nsw i32 %111, 1
store i32 %112, i32* %17
%113 = load i32, i32* %9
%114 = load i32, i32* %17
%115 = icmp eq i32 %113, %114
br i1 %115, label %126, label %116
116: ; preds = %110
%117 = load i8**, i8*** %10
%118 = load i32, i32* %17
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8*, i8** %117, i64 %119
%121 = load i8*, i8** %120
%122 = getelementptr inbounds i8, i8* %121, i64 0
%123 = load i8, i8* %122
%124 = sext i8 %123 to i32
%125 = icmp eq i32 %124, 45
br i1 %125, label %126, label %128
126: ; preds = %116, %110
%127 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %128
128: ; preds = %126, %116
store i32 0, i32* %18
%129 = load i8*, i8** %13
%130 = load i8**, i8*** %10
%131 = load i32, i32* %17
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i8*, i8** %130, i64 %132
%134 = load i8*, i8** %133
%135 = call i32 @strcpy(i8* %129, i8* %134)
br label %216
136: ; preds = %36
%137 = load i32, i32* %17
%138 = add nsw i32 %137, 1
store i32 %138, i32* %17
%139 = load i32, i32* %9
%140 = load i32, i32* %17
%141 = icmp eq i32 %139, %140
br i1 %141, label %152, label %142
142: ; preds = %136
%143 = load i8**, i8*** %10
%144 = load i32, i32* %17
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8*, i8** %143, i64 %145
%147 = load i8*, i8** %146
%148 = getelementptr inbounds i8, i8* %147, i64 0
%149 = load i8, i8* %148
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 45
br i1 %151, label %152, label %154
152: ; preds = %142, %136
%153 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
br label %154
154: ; preds = %152, %142
%155 = load i8*, i8** %14
%156 = load i8**, i8*** %10
%157 = load i32, i32* %17
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i8*, i8** %156, i64 %158
%160 = load i8*, i8** %159
%161 = call i32 @strcpy(i8* %155, i8* %160)
br label %216
162: ; preds = %36
%163 = load i32, i32* %17
%164 = add nsw i32 %163, 1
store i32 %164, i32* %17
%165 = load i32, i32* %9
%166 = load i32, i32* %17
%167 = icmp eq i32 %165, %166
br i1 %167, label %178, label %168
168: ; preds = %162
%169 = load i8**, i8*** %10
%170 = load i32, i32* %17
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i8*, i8** %169, i64 %171
%173 = load i8*, i8** %172
%174 = getelementptr inbounds i8, i8* %173, i64 0
%175 = load i8, i8* %174
%176 = sext i8 %175 to i32
%177 = icmp eq i32 %176, 45
br i1 %177, label %178, label %180
178: ; preds = %168, %162
%179 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
br label %180
180: ; preds = %178, %168
%181 = load i8*, i8** %15
%182 = load i8**, i8*** %10
%183 = load i32, i32* %17
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8*, i8** %182, i64 %184
%186 = load i8*, i8** %185
%187 = call i32 @strcpy(i8* %181, i8* %186)
br label %216
188: ; preds = %36
%189 = load i32, i32* %17
%190 = add nsw i32 %189, 1
store i32 %190, i32* %17
%191 = load i32, i32* %9
%192 = load i32, i32* %17
%193 = icmp eq i32 %191, %192
br i1 %193, label %204, label %194
194: ; preds = %188
%195 = load i8**, i8*** %10
%196 = load i32, i32* %17
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i8*, i8** %195, i64 %197
%199 = load i8*, i8** %198
%200 = getelementptr inbounds i8, i8* %199, i64 0
%201 = load i8, i8* %200
%202 = sext i8 %201 to i32
%203 = icmp eq i32 %202, 45
br i1 %203, label %204, label %206
204: ; preds = %194, %188
%205 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
br label %206
206: ; preds = %204, %194
%207 = load i8*, i8** %16
%208 = load i8**, i8*** %10
%209 = load i32, i32* %17
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i8*, i8** %208, i64 %210
%212 = load i8*, i8** %211
%213 = call i32 @strcpy(i8* %207, i8* %212)
br label %216
214: ; preds = %36
%215 = call i32 @print_error_ce(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* null)
br label %216
216: ; preds = %214, %206, %180, %154, %128, %96, %63
br label %219
217: ; preds = %26
%218 = call i32 @print_error_ce(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* null)
br label %219
219: ; preds = %217, %216
br label %220
220: ; preds = %219
%221 = load i32, i32* %17
%222 = add nsw i32 %221, 1
store i32 %222, i32* %17
br label %22
223: ; preds = %22
%224 = load i32, i32* %18
%225 = icmp eq i32 %224, -1
br i1 %225, label %226, label %228
226: ; preds = %223
%227 = call i32 @print_error_ce(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %228
228: ; preds = %226, %223
%229 = load i32, i32* %21
%230 = icmp ne i32 %229, 0
br i1 %230, label %231, label %237
231: ; preds = %228
%232 = load i32*, i32** %11
%233 = load i32, i32* %232
%234 = icmp sle i32 %233, 0
br i1 %234, label %235, label %237
235: ; preds = %231
%236 = call i32 @print_error_ce(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* null)
br label %237
237: ; preds = %235, %231, %228
%238 = load i32*, i32** %12
%239 = load i32, i32* %238
%240 = icmp sle i32 %239, 0
br i1 %240, label %241, label %243
241: ; preds = %237
%242 = call i32 @print_error_ce(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* null)
br label %243
243: ; preds = %241, %237
%244 = load i8*, i8** %13
%245 = call i8* @remove_ext(i8* %244, i8 signext 46, i8 signext 47)
store i8* %245, i8** %19
%246 = load i8*, i8** %15
%247 = call i32 @strcmp(i8* %246, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%248 = icmp ne i32 %247, 0
br i1 %248, label %260, label %249
249: ; preds = %243
%250 = load i8*, i8** %15
%251 = load i8*, i8** %19
%252 = call i32 @strcpy(i8* %250, i8* %251)
%253 = load i8*, i8** %15
%254 = call i32 @strcat(i8* %253, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%255 = load i8*, i8** %15
%256 = getelementptr inbounds [512 x i8], [512 x i8]* %20, i64 0, i64 0
%257 = call i32 @strcat(i8* %255, i8* %256)
%258 = load i8*, i8** %15
%259 = call i32 @strcat(i8* %258, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %260
260: ; preds = %249, %243
%261 = load i8*, i8** %14
%262 = call i32 @strcmp(i8* %261, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%263 = icmp ne i32 %262, 0
br i1 %263, label %275, label %264
264: ; preds = %260
%265 = load i8*, i8** %14
%266 = load i8*, i8** %19
%267 = call i32 @strcpy(i8* %265, i8* %266)
%268 = load i8*, i8** %14
%269 = call i32 @strcat(i8* %268, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%270 = load i8*, i8** %14
%271 = getelementptr inbounds [512 x i8], [512 x i8]* %20, i64 0, i64 0
%272 = call i32 @strcat(i8* %270, i8* %271)
%273 = load i8*, i8** %14
%274 = call i32 @strcat(i8* %273, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %275
275: ; preds = %264, %260
%276 = load i8*, i8** %16
%277 = call i32 @strcmp(i8* %276, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%278 = icmp ne i32 %277, 0
br i1 %278, label %285, label %279
279: ; preds = %275
%280 = load i8*, i8** %16
%281 = load i8*, i8** %19
%282 = call i32 @strcpy(i8* %280, i8* %281)
%283 = load i8*, i8** %16
%284 = call i32 @strcat(i8* %283, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %285
285: ; preds = %279, %275
%286 = load i8*, i8** %19
%287 = call i32 @free(i8* %286)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"cmd\00"
@.str.1 = [36 x i8] c"K (number of ancestral populations)\00"
@.str.2 = [22 x i8] c"m (number of alleles)\00"
@.str.3 = [18 x i8] c"x (genotype file)\00"
@.str.4 = [43 x i8] c"q (individual admixture coefficients file)\00"
@.str.5 = [40 x i8] c"g (ancestral genotype frequencies file)\00"
@.str.6 = [40 x i8] c"i (genotype file with masked genotypes)\00"
@.str.7 = [6 x i8] c"basic\00"
@.str.8 = [7 x i8] c"option\00"
@.str.9 = [17 x i8] c"-x genotype_file\00"
@.str.10 = [8 x i8] c"missing\00"
@.str.12 = [4 x i8] c"_I.\00"
@.str.13 = [3 x i8] c".G\00"
@.str.14 = [3 x i8] c".Q\00"
@.str.15 = [8 x i8] c"_I.geno\00"
define void @analyse_param_ce(i32 %0, i8** nocapture %1, i32* nocapture %2, i32* nocapture %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca [512 x i8]
%10 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%11 = icmp sgt i32 %0, 1
br i1 %11, label %12, label %140
12: ; preds = %8, %132
%13 = phi i32 [ %135, %132 ], [ 0, %8 ]
%14 = phi i32 [ %136, %132 ], [ 1, %8 ]
%15 = phi i32 [ %133, %132 ], [ -1, %8 ]
%16 = sext i32 %14 to i64
%17 = getelementptr inbounds i8*, i8** %1, i64 %16
%18 = load i8*, i8** %17
%19 = load i8, i8* %18
%20 = icmp eq i8 %19, 45
br i1 %20, label %21, label %130
21: ; preds = %12
%22 = getelementptr inbounds i8, i8* %18, i64 1
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
switch i32 %24, label %128 [
i32 75, label %25
i32 109, label %42
i32 104, label %58
i32 108, label %61
i32 120, label %64
i32 113, label %80
i32 103, label %96
i32 105, label %112
]
25: ; preds = %21
%26 = add nsw i32 %14, 1
%27 = icmp eq i32 %26, %0
%28 = sext i32 %26 to i64
br i1 %27, label %34, label %29
29: ; preds = %25
%30 = getelementptr inbounds i8*, i8** %1, i64 %28
%31 = load i8*, i8** %30
%32 = load i8, i8* %31
%33 = icmp eq i8 %32, 45
br i1 %33, label %34, label %38
34: ; preds = %25, %29
%35 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%36 = getelementptr inbounds i8*, i8** %1, i64 %28
%37 = load i8*, i8** %36
br label %38
38: ; preds = %34, %29
%39 = phi i8* [ %37, %34 ], [ %31, %29 ]
%40 = call i32 @atoi(i8* %39)
store i32 %40, i32* %3
%41 = call i32 @strcpy(i8* %10, i8* %39)
br label %132
42: ; preds = %21
%43 = add nsw i32 %14, 1
%44 = icmp eq i32 %43, %0
%45 = sext i32 %43 to i64
br i1 %44, label %51, label %46
46: ; preds = %42
%47 = getelementptr inbounds i8*, i8** %1, i64 %45
%48 = load i8*, i8** %47
%49 = load i8, i8* %48
%50 = icmp eq i8 %49, 45
br i1 %50, label %51, label %55
51: ; preds = %42, %46
%52 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%53 = getelementptr inbounds i8*, i8** %1, i64 %45
%54 = load i8*, i8** %53
br label %55
55: ; preds = %51, %46
%56 = phi i8* [ %54, %51 ], [ %48, %46 ]
%57 = call i32 @atoi(i8* %56)
store i32 %57, i32* %2
br label %132
58: ; preds = %21
%59 = call i32 (...) @print_help_ce()
%60 = call i32 @exit(i32 1)
unreachable
61: ; preds = %21
%62 = call i32 (...) @print_licence_snmf()
%63 = call i32 @exit(i32 1)
unreachable
64: ; preds = %21
%65 = add nsw i32 %14, 1
%66 = icmp eq i32 %65, %0
%67 = sext i32 %65 to i64
br i1 %66, label %73, label %68
68: ; preds = %64
%69 = getelementptr inbounds i8*, i8** %1, i64 %67
%70 = load i8*, i8** %69
%71 = load i8, i8* %70
%72 = icmp eq i8 %71, 45
br i1 %72, label %73, label %77
73: ; preds = %64, %68
%74 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%75 = getelementptr inbounds i8*, i8** %1, i64 %67
%76 = load i8*, i8** %75
br label %77
77: ; preds = %73, %68
%78 = phi i8* [ %76, %73 ], [ %70, %68 ]
%79 = call i32 @strcpy(i8* %4, i8* %78)
br label %132
80: ; preds = %21
%81 = add nsw i32 %14, 1
%82 = icmp eq i32 %81, %0
%83 = sext i32 %81 to i64
br i1 %82, label %89, label %84
84: ; preds = %80
%85 = getelementptr inbounds i8*, i8** %1, i64 %83
%86 = load i8*, i8** %85
%87 = load i8, i8* %86
%88 = icmp eq i8 %87, 45
br i1 %88, label %89, label %93
89: ; preds = %80, %84
%90 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%91 = getelementptr inbounds i8*, i8** %1, i64 %83
%92 = load i8*, i8** %91
br label %93
93: ; preds = %89, %84
%94 = phi i8* [ %92, %89 ], [ %86, %84 ]
%95 = call i32 @strcpy(i8* %5, i8* %94)
br label %132
96: ; preds = %21
%97 = add nsw i32 %14, 1
%98 = icmp eq i32 %97, %0
%99 = sext i32 %97 to i64
br i1 %98, label %105, label %100
100: ; preds = %96
%101 = getelementptr inbounds i8*, i8** %1, i64 %99
%102 = load i8*, i8** %101
%103 = load i8, i8* %102
%104 = icmp eq i8 %103, 45
br i1 %104, label %105, label %109
105: ; preds = %96, %100
%106 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%107 = getelementptr inbounds i8*, i8** %1, i64 %99
%108 = load i8*, i8** %107
br label %109
109: ; preds = %105, %100
%110 = phi i8* [ %108, %105 ], [ %102, %100 ]
%111 = call i32 @strcpy(i8* %6, i8* %110)
br label %132
112: ; preds = %21
%113 = add nsw i32 %14, 1
%114 = icmp eq i32 %113, %0
%115 = sext i32 %113 to i64
br i1 %114, label %121, label %116
116: ; preds = %112
%117 = getelementptr inbounds i8*, i8** %1, i64 %115
%118 = load i8*, i8** %117
%119 = load i8, i8* %118
%120 = icmp eq i8 %119, 45
br i1 %120, label %121, label %125
121: ; preds = %112, %116
%122 = call i32 @print_error_ce(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%123 = getelementptr inbounds i8*, i8** %1, i64 %115
%124 = load i8*, i8** %123
br label %125
125: ; preds = %121, %116
%126 = phi i8* [ %124, %121 ], [ %118, %116 ]
%127 = call i32 @strcpy(i8* %7, i8* %126)
br label %132
128: ; preds = %21
%129 = call i32 @print_error_ce(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* null)
br label %132
130: ; preds = %12
%131 = call i32 @print_error_ce(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* null)
br label %132
132: ; preds = %130, %128, %125, %109, %93, %77, %55, %38
%133 = phi i32 [ %15, %128 ], [ %15, %125 ], [ %15, %109 ], [ %15, %93 ], [ 0, %77 ], [ %15, %55 ], [ %15, %38 ], [ %15, %130 ]
%134 = phi i32 [ %14, %128 ], [ %113, %125 ], [ %97, %109 ], [ %81, %93 ], [ %65, %77 ], [ %43, %55 ], [ %26, %38 ], [ %14, %130 ]
%135 = phi i32 [ %13, %128 ], [ %13, %125 ], [ %13, %109 ], [ %13, %93 ], [ %13, %77 ], [ 1, %55 ], [ %13, %38 ], [ %13, %130 ]
%136 = add nsw i32 %134, 1
%137 = icmp slt i32 %136, %0
br i1 %137, label %12, label %138
138: ; preds = %132
%139 = icmp eq i32 %133, -1
br i1 %139, label %140, label %143
140: ; preds = %8, %138
%141 = phi i32 [ %135, %138 ], [ 0, %8 ]
%142 = call i32 @print_error_ce(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %143
143: ; preds = %140, %138
%144 = phi i32 [ %141, %140 ], [ %135, %138 ]
%145 = icmp eq i32 %144, 0
br i1 %145, label %151, label %146
146: ; preds = %143
%147 = load i32, i32* %2
%148 = icmp slt i32 %147, 1
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = call i32 @print_error_ce(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* null)
br label %151
151: ; preds = %149, %146, %143
%152 = load i32, i32* %3
%153 = icmp slt i32 %152, 1
br i1 %153, label %154, label %156
154: ; preds = %151
%155 = call i32 @print_error_ce(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* null)
br label %156
156: ; preds = %154, %151
%157 = call i8* @remove_ext(i8* %4, i8 signext 46, i8 signext 47)
%158 = load i8, i8* %6
%159 = icmp eq i8 %158, 0
br i1 %159, label %160, label %165
160: ; preds = %156
%161 = call i32 @strcpy(i8* %6, i8* %157)
%162 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%163 = call i32 @strcat(i8* %6, i8* %10)
%164 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %165
165: ; preds = %160, %156
%166 = load i8, i8* %5
%167 = icmp eq i8 %166, 0
br i1 %167, label %168, label %173
168: ; preds = %165
%169 = call i32 @strcpy(i8* %5, i8* %157)
%170 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%171 = call i32 @strcat(i8* %5, i8* %10)
%172 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %173
173: ; preds = %168, %165
%174 = load i8, i8* %7
%175 = icmp eq i8 %174, 0
br i1 %175, label %176, label %179
176: ; preds = %173
%177 = call i32 @strcpy(i8* %7, i8* %157)
%178 = call i32 @strcat(i8* %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %179
179: ; preds = %176, %173
%180 = call i32 @free(i8* %157)
ret void
}