#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 calc(int, int);
int compars(char *, char *);
int length(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  char *ville[11] = {"Brest",     "Grenoble",   "Lille",   "Lyon",
                     "Marseille", "Nantes",     "Paris",   "Rennes",
                     "Rouen",     "Strasbourg", "Toulouse"};
  int ville1 = 0, ville2 = 0;
  if (3 != argc) {
    printf("Nombre de param\212tres insuffisant");
    return 1;
  }
  int taille;
  taille = length(argv[1]);
  int j, i;
  char temp[taille + 1];
  for (j = 0; j < taille; j++) {
    temp[j] = argv[1][j];
  }
  temp[taille] = '\0';
  taille = length(argv[2]);
  char temp2[taille + 1];
  for (j = 0; j < taille; j++) {
    temp2[j] = argv[2][j];
  }
  temp2[taille] = '\0';
  for (j = 0; j < 11; j++) {
    if (1 == compars(ville[j], temp)) {
      ville1 = 1;
      break;
    }
  }
  for (i = 0; i < 11; i++) {
    if (1 == compars(ville[i], temp2)) {
      ville2 = 1;
      break;
    }
  }
  if (ville1 == 1 && ville2 == 1) {
    printf("%d", calc(j, i));
  } else
    printf("-1");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x70(%rbp),%rdi
lea    0x2c4c(%rip),%rsi
mov    $0x58,%edx
call   1060 <memcpy@plt>
movl   $0x0,-0x74(%rbp)
movl   $0x0,-0x78(%rbp)
mov    $0x3,%eax
cmp    -0x8(%rbp),%eax
je     11b4 <main+0x64>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13d5 <main+0x285>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <length@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x98(%rbp)
movl   $0x0,-0x80(%rbp)
mov    -0x80(%rbp),%eax
cmp    -0x7c(%rbp),%eax
jge    1234 <main+0xe4>
mov    -0xa8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    0x8(%rcx),%rcx
movslq -0x80(%rbp),%rdx
mov    (%rcx,%rdx,1),%dl
movslq -0x80(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    11fd <main+0xad>
mov    -0xa8(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <length@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xb0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xa0(%rbp)
movl   $0x0,-0x80(%rbp)
mov    -0x80(%rbp),%eax
cmp    -0x7c(%rbp),%eax
jge    12b9 <main+0x169>
mov    -0xb0(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    0x10(%rcx),%rcx
movslq -0x80(%rbp),%rdx
mov    (%rcx,%rdx,1),%dl
movslq -0x80(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    1282 <main+0x132>
mov    -0xb0(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x80(%rbp)
cmpl   $0xb,-0x80(%rbp)
jge    131c <main+0x1cc>
mov    -0xa8(%rbp),%rsi
movslq -0x80(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rdi
call   1070 <compars@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    %ecx,%eax
jne    1309 <main+0x1b9>
movl   $0x1,-0x74(%rbp)
jmp    131c <main+0x1cc>
jmp    130e <main+0x1be>
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    12cf <main+0x17f>
movl   $0x0,-0x84(%rbp)
cmpl   $0xb,-0x84(%rbp)
jge    137f <main+0x22f>
mov    -0xb0(%rbp),%rsi
movslq -0x84(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rdi
call   1070 <compars@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    %ecx,%eax
jne    1366 <main+0x216>
movl   $0x1,-0x78(%rbp)
jmp    137f <main+0x22f>
jmp    136b <main+0x21b>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1326 <main+0x1d6>
cmpl   $0x1,-0x74(%rbp)
jne    13b6 <main+0x266>
cmpl   $0x1,-0x78(%rbp)
jne    13b6 <main+0x266>
mov    -0x80(%rbp),%edi
mov    -0x84(%rbp),%esi
call   1050 <calc@plt>
mov    %eax,%esi
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13c4 <main+0x274>
lea    0xcb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x90(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x3,%edi
jne    12f3 <main+0x1b3>
mov    %rsi,%r15
mov    0x8(%rsi),%rdi
call   1030 <length@plt>
mov    %rsp,-0x30(%rbp)
lea    0x1(%rax),%ecx
mov    %rsp,%r14
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r14
mov    %r14,%rsp
test   %eax,%eax
jle    120f <main+0xcf>
mov    0x8(%r15),%rcx
mov    %eax,%r9d
cmp    $0x8,%eax
jb     11a9 <main+0x69>
lea    (%rcx,%r9,1),%rdx
cmp    %rdx,%r14
jae    15a1 <main+0x461>
lea    (%r14,%r9,1),%rdx
cmp    %rdx,%rcx
jae    15a1 <main+0x461>
xor    %esi,%esi
mov    %rsi,%rdi
not    %rdi
add    %r9,%rdi
mov    %r9,%rdx
and    $0x3,%rdx
je     11d2 <main+0x92>
nopl   (%rax)
movzbl (%rcx,%rsi,1),%ebx
mov    %bl,(%r14,%rsi,1)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rdx
jne    11c0 <main+0x80>
cmp    $0x3,%rdi
jb     120f <main+0xcf>
nopl   0x0(%rax,%rax,1)
movzbl (%rcx,%rsi,1),%edx
mov    %dl,(%r14,%rsi,1)
movzbl 0x1(%rcx,%rsi,1),%edx
mov    %dl,0x1(%r14,%rsi,1)
movzbl 0x2(%rcx,%rsi,1),%edx
mov    %dl,0x2(%r14,%rsi,1)
movzbl 0x3(%rcx,%rsi,1),%edx
mov    %dl,0x3(%r14,%rsi,1)
add    $0x4,%rsi
cmp    %rsi,%r9
jne    11e0 <main+0xa0>
cltq
movb   $0x0,(%r14,%rax,1)
mov    0x10(%r15),%rdi
call   1030 <length@plt>
lea    0x1(%rax),%ecx
mov    %rsp,%rbx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%rbx
mov    %rbx,%rsp
test   %eax,%eax
jle    12cb <main+0x18b>
mov    0x10(%r15),%rcx
mov    %eax,%r9d
cmp    $0x8,%eax
jb     1261 <main+0x121>
lea    (%rcx,%r9,1),%rdx
cmp    %rdx,%rbx
jae    15ad <main+0x46d>
lea    (%rbx,%r9,1),%rdx
cmp    %rdx,%rcx
jae    15ad <main+0x46d>
xor    %esi,%esi
mov    %rsi,%r8
not    %r8
add    %r9,%r8
mov    %r9,%rdi
and    $0x3,%rdi
je     1291 <main+0x151>
cs nopw 0x0(%rax,%rax,1)
nop
movzbl (%rcx,%rsi,1),%edx
mov    %dl,(%rbx,%rsi,1)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rdi
jne    1280 <main+0x140>
cmp    $0x3,%r8
jb     12cb <main+0x18b>
nopw   0x0(%rax,%rax,1)
movzbl (%rcx,%rsi,1),%edx
mov    %dl,(%rbx,%rsi,1)
movzbl 0x1(%rcx,%rsi,1),%edx
mov    %dl,0x1(%rbx,%rsi,1)
movzbl 0x2(%rcx,%rsi,1),%edx
mov    %dl,0x2(%rbx,%rsi,1)
movzbl 0x3(%rcx,%rsi,1),%edx
mov    %dl,0x3(%rbx,%rsi,1)
add    $0x4,%rsi
cmp    %rsi,%r9
jne    12a0 <main+0x160>
cltq
movb   $0x0,(%rbx,%rax,1)
lea    0xd28(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x1,%r13b
xor    %r15d,%r15d
cmp    $0x1,%eax
jne    130b <main+0x1cb>
xor    %r12d,%r12d
jmp    1429 <main+0x2e9>
lea    0xd58(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%eax
jmp    1592 <main+0x452>
lea    0xcf4(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x1,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xcdf(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x2,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xcc7(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x3,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xcae(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x4,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xc9a(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x5,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xc83(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x6,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xc6f(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x7,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xc5c(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x8,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xc48(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
mov    $0x9,%r12d
cmp    $0x1,%eax
je     1429 <main+0x2e9>
lea    0xc39(%rip),%rdi
mov    %r14,%rsi
call   1060 <compars@plt>
xor    %r13d,%r13d
cmp    $0x1,%eax
sete   %r13b
mov    %r13d,%r12d
xor    $0xb,%r12d
lea    0xbd0(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xbbe(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x1,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xba9(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x2,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xb91(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x3,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xb78(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x4,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xb64(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x5,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xb4d(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x6,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xb39(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x7,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xb26(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x8,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xb12(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0x9,%r15d
cmp    $0x1,%eax
je     1559 <main+0x419>
lea    0xb03(%rip),%rdi
mov    %rbx,%rsi
call   1060 <compars@plt>
mov    $0xa,%r15d
cmp    $0x1,%eax
jne    157b <main+0x43b>
test   %r13b,%r13b
je     157b <main+0x43b>
mov    %r12d,%edi
mov    %r15d,%esi
call   1050 <calc@plt>
lea    0xb03(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1589 <main+0x449>
lea    0xaf4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    $0x20,%eax
jae    15b9 <main+0x479>
xor    %esi,%esi
jmp    16ce <main+0x58e>
cmp    $0x20,%eax
jae    15e2 <main+0x4a2>
xor    %esi,%esi
jmp    17c0 <main+0x680>
mov    %r9d,%esi
and    $0xffffffe0,%esi
lea    -0x20(%rsi),%rdx
mov    %rdx,%rdi
shr    $0x5,%rdi
add    $0x1,%rdi
mov    %edi,%r8d
and    $0x3,%r8d
cmp    $0x60,%rdx
jae    160f <main+0x4cf>
xor    %ebx,%ebx
jmp    1680 <main+0x540>
mov    %r9d,%esi
and    $0xffffffe0,%esi
lea    -0x20(%rsi),%rdx
mov    %rdx,%rdi
shr    $0x5,%rdi
add    $0x1,%rdi
mov    %edi,%r8d
and    $0x3,%r8d
cmp    $0x60,%rdx
jae    16ff <main+0x5bf>
xor    %edx,%edx
jmp    1768 <main+0x628>
and    $0xfffffffffffffffc,%rdi
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movups (%rcx,%rbx,1),%xmm0
movups 0x10(%rcx,%rbx,1),%xmm1
movaps %xmm0,(%r14,%rbx,1)
movaps %xmm1,0x10(%r14,%rbx,1)
movups 0x20(%rcx,%rbx,1),%xmm0
movups 0x30(%rcx,%rbx,1),%xmm1
movaps %xmm0,0x20(%r14,%rbx,1)
movaps %xmm1,0x30(%r14,%rbx,1)
movups 0x40(%rcx,%rbx,1),%xmm0
movups 0x50(%rcx,%rbx,1),%xmm1
movaps %xmm0,0x40(%r14,%rbx,1)
movaps %xmm1,0x50(%r14,%rbx,1)
movups 0x60(%rcx,%rbx,1),%xmm0
movups 0x70(%rcx,%rbx,1),%xmm1
movaps %xmm0,0x60(%r14,%rbx,1)
movaps %xmm1,0x70(%r14,%rbx,1)
sub    $0xffffffffffffff80,%rbx
add    $0xfffffffffffffffc,%rdi
jne    1620 <main+0x4e0>
test   %r8,%r8
je     16bb <main+0x57b>
lea    (%r14,%rbx,1),%rdx
add    $0x10,%rdx
lea    (%rcx,%rbx,1),%rdi
add    $0x10,%rdi
shl    $0x5,%r8
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movups -0x10(%rdi,%rbx,1),%xmm0
movups (%rdi,%rbx,1),%xmm1
movaps %xmm0,-0x10(%rdx,%rbx,1)
movaps %xmm1,(%rdx,%rbx,1)
add    $0x20,%rbx
cmp    %rbx,%r8
jne    16a0 <main+0x560>
cmp    %r9,%rsi
je     120f <main+0xcf>
test   $0x18,%r9b
je     11ab <main+0x6b>
mov    %rsi,%rdx
mov    %r9d,%esi
and    $0xfffffff8,%esi
nopw   0x0(%rax,%rax,1)
mov    (%rcx,%rdx,1),%rdi
mov    %rdi,(%r14,%rdx,1)
add    $0x8,%rdx
cmp    %rdx,%rsi
jne    16e0 <main+0x5a0>
cmp    %r9,%rsi
je     120f <main+0xcf>
jmp    11ab <main+0x6b>
and    $0xfffffffffffffffc,%rdi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movups (%rcx,%rdx,1),%xmm0
movups 0x10(%rcx,%rdx,1),%xmm1
movaps %xmm0,(%rbx,%rdx,1)
movaps %xmm1,0x10(%rbx,%rdx,1)
movups 0x20(%rcx,%rdx,1),%xmm0
movups 0x30(%rcx,%rdx,1),%xmm1
movaps %xmm0,0x20(%rbx,%rdx,1)
movaps %xmm1,0x30(%rbx,%rdx,1)
movups 0x40(%rcx,%rdx,1),%xmm0
movups 0x50(%rcx,%rdx,1),%xmm1
movaps %xmm0,0x40(%rbx,%rdx,1)
movaps %xmm1,0x50(%rbx,%rdx,1)
movups 0x60(%rcx,%rdx,1),%xmm0
movups 0x70(%rcx,%rdx,1),%xmm1
movaps %xmm0,0x60(%rbx,%rdx,1)
movaps %xmm1,0x70(%rbx,%rdx,1)
sub    $0xffffffffffffff80,%rdx
add    $0xfffffffffffffffc,%rdi
jne    1710 <main+0x5d0>
test   %r8,%r8
je     17ad <main+0x66d>
lea    (%rbx,%rdx,1),%r10
add    $0x10,%r10
add    %rcx,%rdx
add    $0x10,%rdx
shl    $0x5,%r8
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movups -0x10(%rdx,%rdi,1),%xmm0
movups (%rdx,%rdi,1),%xmm1
movaps %xmm0,-0x10(%r10,%rdi,1)
movaps %xmm1,(%r10,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r8
jne    1790 <main+0x650>
cmp    %r9,%rsi
je     12cb <main+0x18b>
test   $0x18,%r9b
je     1263 <main+0x123>
mov    %rsi,%rdx
mov    %r9d,%esi
and    $0xfffffff8,%esi
nopl   0x0(%rax)
mov    (%rcx,%rdx,1),%rdi
mov    %rdi,(%rbx,%rdx,1)
add    $0x8,%rdx
cmp    %rdx,%rsi
jne    17d0 <main+0x690>
cmp    %r9,%rsi
je     12cb <main+0x18b>
jmp    1263 <main+0x123>

LLVM IR (-O0):
@.str = [6 x i8] c"Brest\00"
@.str.1 = [9 x i8] c"Grenoble\00"
@.str.2 = [6 x i8] c"Lille\00"
@.str.3 = [5 x i8] c"Lyon\00"
@.str.4 = [10 x i8] c"Marseille\00"
@.str.5 = [7 x i8] c"Nantes\00"
@.str.6 = [6 x i8] c"Paris\00"
@.str.7 = [7 x i8] c"Rennes\00"
@.str.8 = [6 x i8] c"Rouen\00"
@.str.9 = [11 x i8] c"Strasbourg\00"
@.str.10 = [9 x i8] c"Toulouse\00"
@__const.main.ville = [11 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i32 0, i32 0)]
@.str.11 = [33 x i8] c"Nombre de param\8Atres insuffisant\00"
@.str.12 = [3 x i8] c"%d\00"
@.str.13 = [3 x i8] c"-1\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [11 x i8*]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = bitcast [11 x i8*]* %6 to i8*
store i32 0, i32* %7
store i32 0, i32* %8
%16 = load i32, i32* %4
%17 = icmp ne i32 3, %16
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
store i32 1, i32* %3
br label %128
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @length(i8* %23)
store i32 %24, i32* %9
%25 = load i32, i32* %9
%26 = add nsw i32 %25, 1
%27 = zext i32 %26 to i64
%28 = call i8* @llvm.stacksave()
store i8* %28, i8** %12
%29 = alloca i8, i64 %27
store i64 %27, i64* %13
store i32 0, i32* %10
br label %30
30: ; preds = %45, %20
%31 = load i32, i32* %10
%32 = load i32, i32* %9
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %48
34: ; preds = %30
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 1
%37 = load i8*, i8** %36
%38 = load i32, i32* %10
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, i8* %37, i64 %39
%41 = load i8, i8* %40
%42 = load i32, i32* %10
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %29, i64 %43
store i8 %41, i8* %44
br label %45
45: ; preds = %34
%46 = load i32, i32* %10
%47 = add nsw i32 %46, 1
store i32 %47, i32* %10
br label %30
48: ; preds = %30
%49 = load i32, i32* %9
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, i8* %29, i64 %50
store i8 0, i8* %51
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds i8*, i8** %52, i64 2
%54 = load i8*, i8** %53
%55 = call i32 @length(i8* %54)
store i32 %55, i32* %9
%56 = load i32, i32* %9
%57 = add nsw i32 %56, 1
%58 = zext i32 %57 to i64
%59 = alloca i8, i64 %58
store i64 %58, i64* %14
store i32 0, i32* %10
br label %60
60: ; preds = %75, %48
%61 = load i32, i32* %10
%62 = load i32, i32* %9
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %78
64: ; preds = %60
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 2
%67 = load i8*, i8** %66
%68 = load i32, i32* %10
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %67, i64 %69
%71 = load i8, i8* %70
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, i8* %59, i64 %73
store i8 %71, i8* %74
br label %75
75: ; preds = %64
%76 = load i32, i32* %10
%77 = add nsw i32 %76, 1
store i32 %77, i32* %10
br label %60
78: ; preds = %60
%79 = load i32, i32* %9
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, i8* %59, i64 %80
store i8 0, i8* %81
store i32 0, i32* %10
br label %82
82: ; preds = %94, %78
%83 = load i32, i32* %10
%84 = icmp slt i32 %83, 11
br i1 %84, label %85, label %97
85: ; preds = %82
%86 = load i32, i32* %10
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [11 x i8*], [11 x i8*]* %6, i64 0, i64 %87
%89 = load i8*, i8** %88
%90 = call i32 @compars(i8* %89, i8* %29)
%91 = icmp eq i32 1, %90
br i1 %91, label %92, label %93
92: ; preds = %85
store i32 1, i32* %7
br label %97
93: ; preds = %85
br label %94
94: ; preds = %93
%95 = load i32, i32* %10
%96 = add nsw i32 %95, 1
store i32 %96, i32* %10
br label %82
97: ; preds = %92, %82
store i32 0, i32* %11
br label %98
98: ; preds = %110, %97
%99 = load i32, i32* %11
%100 = icmp slt i32 %99, 11
br i1 %100, label %101, label %113
101: ; preds = %98
%102 = load i32, i32* %11
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [11 x i8*], [11 x i8*]* %6, i64 0, i64 %103
%105 = load i8*, i8** %104
%106 = call i32 @compars(i8* %105, i8* %59)
%107 = icmp eq i32 1, %106
br i1 %107, label %108, label %109
108: ; preds = %101
store i32 1, i32* %8
br label %113
109: ; preds = %101
br label %110
110: ; preds = %109
%111 = load i32, i32* %11
%112 = add nsw i32 %111, 1
store i32 %112, i32* %11
br label %98
113: ; preds = %108, %98
%114 = load i32, i32* %7
%115 = icmp eq i32 %114, 1
br i1 %115, label %116, label %124
116: ; preds = %113
%117 = load i32, i32* %8
%118 = icmp eq i32 %117, 1
br i1 %118, label %119, label %124
119: ; preds = %116
%120 = load i32, i32* %10
%121 = load i32, i32* %11
%122 = call i32 @calc(i32 %120, i32 %121)
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32 %122)
br label %126
124: ; preds = %116, %113
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %126
126: ; preds = %124, %119
store i32 0, i32* %3
%127 = load i8*, i8** %12
br label %128
128: ; preds = %126, %18
%129 = load i32, i32* %3
ret i32 %129
}

LLVM IR (-O2):
@.str = [6 x i8] c"Brest\00"
@.str.1 = [9 x i8] c"Grenoble\00"
@.str.2 = [6 x i8] c"Lille\00"
@.str.3 = [5 x i8] c"Lyon\00"
@.str.4 = [10 x i8] c"Marseille\00"
@.str.5 = [7 x i8] c"Nantes\00"
@.str.6 = [6 x i8] c"Paris\00"
@.str.7 = [7 x i8] c"Rennes\00"
@.str.8 = [6 x i8] c"Rouen\00"
@.str.9 = [11 x i8] c"Strasbourg\00"
@.str.10 = [9 x i8] c"Toulouse\00"
@.str.11 = [33 x i8] c"Nombre de param\8Atres insuffisant\00"
@.str.12 = [3 x i8] c"%d\00"
@.str.13 = [3 x i8] c"-1\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 3
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
br label %394
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @length(i8* %8)
%10 = add nsw i32 %9, 1
%11 = zext i32 %10 to i64
%12 = tail call i8* @llvm.stacksave()
%13 = alloca i8, i64 %11
%14 = icmp sgt i32 %9, 0
br i1 %14, label %15, label %160
15: ; preds = %6
%16 = load i8*, i8** %7
%17 = zext i32 %9 to i64
%18 = icmp ult i32 %9, 8
br i1 %18, label %123, label %19
19: ; preds = %15
%20 = getelementptr i8, i8* %13, i64 %17
%21 = getelementptr i8, i8* %16, i64 %17
%22 = icmp ult i8* %13, %21
%23 = icmp ult i8* %16, %20
%24 = and i1 %22, %23
br i1 %24, label %123, label %25
25: ; preds = %19
%26 = icmp ult i32 %9, 32
br i1 %26, label %109, label %27
27: ; preds = %25
%28 = and i64 %17, 4294967264
%29 = add nsw i64 %28, -32
%30 = lshr exact i64 %29, 5
%31 = add nuw nsw i64 %30, 1
%32 = and i64 %31, 3
%33 = icmp ult i64 %29, 96
br i1 %33, label %85, label %34
34: ; preds = %27
%35 = and i64 %31, 1152921504606846972
br label %36
36: ; preds = %36, %34
%37 = phi i64 [ 0, %34 ], [ %82, %36 ]
%38 = phi i64 [ 0, %34 ], [ %83, %36 ]
%39 = getelementptr inbounds i8, i8* %16, i64 %37
%40 = bitcast i8* %39 to <16 x i8>*
%41 = load <16 x i8>, <16 x i8>* %40
%42 = getelementptr inbounds i8, i8* %39, i64 16
%43 = bitcast i8* %42 to <16 x i8>*
%44 = load <16 x i8>, <16 x i8>* %43
%45 = getelementptr inbounds i8, i8* %13, i64 %37
%46 = bitcast i8* %45 to <16 x i8>*
store <16 x i8> %41, <16 x i8>* %46
%47 = getelementptr inbounds i8, i8* %45, i64 16
%48 = bitcast i8* %47 to <16 x i8>*
store <16 x i8> %44, <16 x i8>* %48
%49 = or i64 %37, 32
%50 = getelementptr inbounds i8, i8* %16, i64 %49
%51 = bitcast i8* %50 to <16 x i8>*
%52 = load <16 x i8>, <16 x i8>* %51
%53 = getelementptr inbounds i8, i8* %50, i64 16
%54 = bitcast i8* %53 to <16 x i8>*
%55 = load <16 x i8>, <16 x i8>* %54
%56 = getelementptr inbounds i8, i8* %13, i64 %49
%57 = bitcast i8* %56 to <16 x i8>*
store <16 x i8> %52, <16 x i8>* %57
%58 = getelementptr inbounds i8, i8* %56, i64 16
%59 = bitcast i8* %58 to <16 x i8>*
store <16 x i8> %55, <16 x i8>* %59
%60 = or i64 %37, 64
%61 = getelementptr inbounds i8, i8* %16, i64 %60
%62 = bitcast i8* %61 to <16 x i8>*
%63 = load <16 x i8>, <16 x i8>* %62
%64 = getelementptr inbounds i8, i8* %61, i64 16
%65 = bitcast i8* %64 to <16 x i8>*
%66 = load <16 x i8>, <16 x i8>* %65
%67 = getelementptr inbounds i8, i8* %13, i64 %60
%68 = bitcast i8* %67 to <16 x i8>*
store <16 x i8> %63, <16 x i8>* %68
%69 = getelementptr inbounds i8, i8* %67, i64 16
%70 = bitcast i8* %69 to <16 x i8>*
store <16 x i8> %66, <16 x i8>* %70
%71 = or i64 %37, 96
%72 = getelementptr inbounds i8, i8* %16, i64 %71
%73 = bitcast i8* %72 to <16 x i8>*
%74 = load <16 x i8>, <16 x i8>* %73
%75 = getelementptr inbounds i8, i8* %72, i64 16
%76 = bitcast i8* %75 to <16 x i8>*
%77 = load <16 x i8>, <16 x i8>* %76
%78 = getelementptr inbounds i8, i8* %13, i64 %71
%79 = bitcast i8* %78 to <16 x i8>*
store <16 x i8> %74, <16 x i8>* %79
%80 = getelementptr inbounds i8, i8* %78, i64 16
%81 = bitcast i8* %80 to <16 x i8>*
store <16 x i8> %77, <16 x i8>* %81
%82 = add nuw i64 %37, 128
%83 = add i64 %38, 4
%84 = icmp eq i64 %83, %35
br i1 %84, label %85, label %36
85: ; preds = %36, %27
%86 = phi i64 [ 0, %27 ], [ %82, %36 ]
%87 = icmp eq i64 %32, 0
br i1 %87, label %104, label %88
88: ; preds = %85, %88
%89 = phi i64 [ %101, %88 ], [ %86, %85 ]
%90 = phi i64 [ %102, %88 ], [ 0, %85 ]
%91 = getelementptr inbounds i8, i8* %16, i64 %89
%92 = bitcast i8* %91 to <16 x i8>*
%93 = load <16 x i8>, <16 x i8>* %92
%94 = getelementptr inbounds i8, i8* %91, i64 16
%95 = bitcast i8* %94 to <16 x i8>*
%96 = load <16 x i8>, <16 x i8>* %95
%97 = getelementptr inbounds i8, i8* %13, i64 %89
%98 = bitcast i8* %97 to <16 x i8>*
store <16 x i8> %93, <16 x i8>* %98
%99 = getelementptr inbounds i8, i8* %97, i64 16
%100 = bitcast i8* %99 to <16 x i8>*
store <16 x i8> %96, <16 x i8>* %100
%101 = add nuw i64 %89, 32
%102 = add i64 %90, 1
%103 = icmp eq i64 %102, %32
br i1 %103, label %104, label %88
104: ; preds = %88, %85
%105 = icmp eq i64 %28, %17
br i1 %105, label %160, label %106
106: ; preds = %104
%107 = and i64 %17, 24
%108 = icmp eq i64 %107, 0
br i1 %108, label %123, label %109
109: ; preds = %25, %106
%110 = phi i64 [ %28, %106 ], [ 0, %25 ]
%111 = and i64 %17, 4294967288
br label %112
112: ; preds = %112, %109
%113 = phi i64 [ %110, %109 ], [ %119, %112 ]
%114 = getelementptr inbounds i8, i8* %16, i64 %113
%115 = bitcast i8* %114 to <8 x i8>*
%116 = load <8 x i8>, <8 x i8>* %115
%117 = getelementptr inbounds i8, i8* %13, i64 %113
%118 = bitcast i8* %117 to <8 x i8>*
store <8 x i8> %116, <8 x i8>* %118
%119 = add nuw i64 %113, 8
%120 = icmp eq i64 %119, %111
br i1 %120, label %121, label %112
121: ; preds = %112
%122 = icmp eq i64 %111, %17
br i1 %122, label %160, label %123
123: ; preds = %19, %15, %106, %121
%124 = phi i64 [ 0, %15 ], [ 0, %19 ], [ %28, %106 ], [ %111, %121 ]
%125 = xor i64 %124, -1
%126 = add nsw i64 %125, %17
%127 = and i64 %17, 3
%128 = icmp eq i64 %127, 0
br i1 %128, label %138, label %129
129: ; preds = %123, %129
%130 = phi i64 [ %135, %129 ], [ %124, %123 ]
%131 = phi i64 [ %136, %129 ], [ 0, %123 ]
%132 = getelementptr inbounds i8, i8* %16, i64 %130
%133 = load i8, i8* %132
%134 = getelementptr inbounds i8, i8* %13, i64 %130
store i8 %133, i8* %134
%135 = add nuw nsw i64 %130, 1
%136 = add i64 %131, 1
%137 = icmp eq i64 %136, %127
br i1 %137, label %138, label %129
138: ; preds = %129, %123
%139 = phi i64 [ %124, %123 ], [ %135, %129 ]
%140 = icmp ult i64 %126, 3
br i1 %140, label %160, label %141
141: ; preds = %138, %141
%142 = phi i64 [ %158, %141 ], [ %139, %138 ]
%143 = getelementptr inbounds i8, i8* %16, i64 %142
%144 = load i8, i8* %143
%145 = getelementptr inbounds i8, i8* %13, i64 %142
store i8 %144, i8* %145
%146 = add nuw nsw i64 %142, 1
%147 = getelementptr inbounds i8, i8* %16, i64 %146
%148 = load i8, i8* %147
%149 = getelementptr inbounds i8, i8* %13, i64 %146
store i8 %148, i8* %149
%150 = add nuw nsw i64 %142, 2
%151 = getelementptr inbounds i8, i8* %16, i64 %150
%152 = load i8, i8* %151
%153 = getelementptr inbounds i8, i8* %13, i64 %150
store i8 %152, i8* %153
%154 = add nuw nsw i64 %142, 3
%155 = getelementptr inbounds i8, i8* %16, i64 %154
%156 = load i8, i8* %155
%157 = getelementptr inbounds i8, i8* %13, i64 %154
store i8 %156, i8* %157
%158 = add nuw nsw i64 %142, 4
%159 = icmp eq i64 %158, %17
br i1 %159, label %160, label %141
160: ; preds = %138, %141, %104, %121, %6
%161 = sext i32 %9 to i64
%162 = getelementptr inbounds i8, i8* %13, i64 %161
store i8 0, i8* %162
%163 = getelementptr inbounds i8*, i8** %1, i64 2
%164 = load i8*, i8** %163
%165 = tail call i32 @length(i8* %164)
%166 = add nsw i32 %165, 1
%167 = zext i32 %166 to i64
%168 = alloca i8, i64 %167
%169 = icmp sgt i32 %165, 0
br i1 %169, label %170, label %315
170: ; preds = %160
%171 = load i8*, i8** %163
%172 = zext i32 %165 to i64
%173 = icmp ult i32 %165, 8
br i1 %173, label %278, label %174
174: ; preds = %170
%175 = getelementptr i8, i8* %168, i64 %172
%176 = getelementptr i8, i8* %171, i64 %172
%177 = icmp ult i8* %168, %176
%178 = icmp ult i8* %171, %175
%179 = and i1 %177, %178
br i1 %179, label %278, label %180
180: ; preds = %174
%181 = icmp ult i32 %165, 32
br i1 %181, label %264, label %182
182: ; preds = %180
%183 = and i64 %172, 4294967264
%184 = add nsw i64 %183, -32
%185 = lshr exact i64 %184, 5
%186 = add nuw nsw i64 %185, 1
%187 = and i64 %186, 3
%188 = icmp ult i64 %184, 96
br i1 %188, label %240, label %189
189: ; preds = %182
%190 = and i64 %186, 1152921504606846972
br label %191
191: ; preds = %191, %189
%192 = phi i64 [ 0, %189 ], [ %237, %191 ]
%193 = phi i64 [ 0, %189 ], [ %238, %191 ]
%194 = getelementptr inbounds i8, i8* %171, i64 %192
%195 = bitcast i8* %194 to <16 x i8>*
%196 = load <16 x i8>, <16 x i8>* %195
%197 = getelementptr inbounds i8, i8* %194, i64 16
%198 = bitcast i8* %197 to <16 x i8>*
%199 = load <16 x i8>, <16 x i8>* %198
%200 = getelementptr inbounds i8, i8* %168, i64 %192
%201 = bitcast i8* %200 to <16 x i8>*
store <16 x i8> %196, <16 x i8>* %201
%202 = getelementptr inbounds i8, i8* %200, i64 16
%203 = bitcast i8* %202 to <16 x i8>*
store <16 x i8> %199, <16 x i8>* %203
%204 = or i64 %192, 32
%205 = getelementptr inbounds i8, i8* %171, i64 %204
%206 = bitcast i8* %205 to <16 x i8>*
%207 = load <16 x i8>, <16 x i8>* %206
%208 = getelementptr inbounds i8, i8* %205, i64 16
%209 = bitcast i8* %208 to <16 x i8>*
%210 = load <16 x i8>, <16 x i8>* %209
%211 = getelementptr inbounds i8, i8* %168, i64 %204
%212 = bitcast i8* %211 to <16 x i8>*
store <16 x i8> %207, <16 x i8>* %212
%213 = getelementptr inbounds i8, i8* %211, i64 16
%214 = bitcast i8* %213 to <16 x i8>*
store <16 x i8> %210, <16 x i8>* %214
%215 = or i64 %192, 64
%216 = getelementptr inbounds i8, i8* %171, i64 %215
%217 = bitcast i8* %216 to <16 x i8>*
%218 = load <16 x i8>, <16 x i8>* %217
%219 = getelementptr inbounds i8, i8* %216, i64 16
%220 = bitcast i8* %219 to <16 x i8>*
%221 = load <16 x i8>, <16 x i8>* %220
%222 = getelementptr inbounds i8, i8* %168, i64 %215
%223 = bitcast i8* %222 to <16 x i8>*
store <16 x i8> %218, <16 x i8>* %223
%224 = getelementptr inbounds i8, i8* %222, i64 16
%225 = bitcast i8* %224 to <16 x i8>*
store <16 x i8> %221, <16 x i8>* %225
%226 = or i64 %192, 96
%227 = getelementptr inbounds i8, i8* %171, i64 %226
%228 = bitcast i8* %227 to <16 x i8>*
%229 = load <16 x i8>, <16 x i8>* %228
%230 = getelementptr inbounds i8, i8* %227, i64 16
%231 = bitcast i8* %230 to <16 x i8>*
%232 = load <16 x i8>, <16 x i8>* %231
%233 = getelementptr inbounds i8, i8* %168, i64 %226
%234 = bitcast i8* %233 to <16 x i8>*
store <16 x i8> %229, <16 x i8>* %234
%235 = getelementptr inbounds i8, i8* %233, i64 16
%236 = bitcast i8* %235 to <16 x i8>*
store <16 x i8> %232, <16 x i8>* %236
%237 = add nuw i64 %192, 128
%238 = add i64 %193, 4
%239 = icmp eq i64 %238, %190
br i1 %239, label %240, label %191
240: ; preds = %191, %182
%241 = phi i64 [ 0, %182 ], [ %237, %191 ]
%242 = icmp eq i64 %187, 0
br i1 %242, label %259, label %243
243: ; preds = %240, %243
%244 = phi i64 [ %256, %243 ], [ %241, %240 ]
%245 = phi i64 [ %257, %243 ], [ 0, %240 ]
%246 = getelementptr inbounds i8, i8* %171, i64 %244
%247 = bitcast i8* %246 to <16 x i8>*
%248 = load <16 x i8>, <16 x i8>* %247
%249 = getelementptr inbounds i8, i8* %246, i64 16
%250 = bitcast i8* %249 to <16 x i8>*
%251 = load <16 x i8>, <16 x i8>* %250
%252 = getelementptr inbounds i8, i8* %168, i64 %244
%253 = bitcast i8* %252 to <16 x i8>*
store <16 x i8> %248, <16 x i8>* %253
%254 = getelementptr inbounds i8, i8* %252, i64 16
%255 = bitcast i8* %254 to <16 x i8>*
store <16 x i8> %251, <16 x i8>* %255
%256 = add nuw i64 %244, 32
%257 = add i64 %245, 1
%258 = icmp eq i64 %257, %187
br i1 %258, label %259, label %243
259: ; preds = %243, %240
%260 = icmp eq i64 %183, %172
br i1 %260, label %315, label %261
261: ; preds = %259
%262 = and i64 %172, 24
%263 = icmp eq i64 %262, 0
br i1 %263, label %278, label %264
264: ; preds = %180, %261
%265 = phi i64 [ %183, %261 ], [ 0, %180 ]
%266 = and i64 %172, 4294967288
br label %267
267: ; preds = %267, %264
%268 = phi i64 [ %265, %264 ], [ %274, %267 ]
%269 = getelementptr inbounds i8, i8* %171, i64 %268
%270 = bitcast i8* %269 to <8 x i8>*
%271 = load <8 x i8>, <8 x i8>* %270
%272 = getelementptr inbounds i8, i8* %168, i64 %268
%273 = bitcast i8* %272 to <8 x i8>*
store <8 x i8> %271, <8 x i8>* %273
%274 = add nuw i64 %268, 8
%275 = icmp eq i64 %274, %266
br i1 %275, label %276, label %267
276: ; preds = %267
%277 = icmp eq i64 %266, %172
br i1 %277, label %315, label %278
278: ; preds = %174, %170, %261, %276
%279 = phi i64 [ 0, %170 ], [ 0, %174 ], [ %183, %261 ], [ %266, %276 ]
%280 = xor i64 %279, -1
%281 = add nsw i64 %280, %172
%282 = and i64 %172, 3
%283 = icmp eq i64 %282, 0
br i1 %283, label %293, label %284
284: ; preds = %278, %284
%285 = phi i64 [ %290, %284 ], [ %279, %278 ]
%286 = phi i64 [ %291, %284 ], [ 0, %278 ]
%287 = getelementptr inbounds i8, i8* %171, i64 %285
%288 = load i8, i8* %287
%289 = getelementptr inbounds i8, i8* %168, i64 %285
store i8 %288, i8* %289
%290 = add nuw nsw i64 %285, 1
%291 = add i64 %286, 1
%292 = icmp eq i64 %291, %282
br i1 %292, label %293, label %284
293: ; preds = %284, %278
%294 = phi i64 [ %279, %278 ], [ %290, %284 ]
%295 = icmp ult i64 %281, 3
br i1 %295, label %315, label %296
296: ; preds = %293, %296
%297 = phi i64 [ %313, %296 ], [ %294, %293 ]
%298 = getelementptr inbounds i8, i8* %171, i64 %297
%299 = load i8, i8* %298
%300 = getelementptr inbounds i8, i8* %168, i64 %297
store i8 %299, i8* %300
%301 = add nuw nsw i64 %297, 1
%302 = getelementptr inbounds i8, i8* %171, i64 %301
%303 = load i8, i8* %302
%304 = getelementptr inbounds i8, i8* %168, i64 %301
store i8 %303, i8* %304
%305 = add nuw nsw i64 %297, 2
%306 = getelementptr inbounds i8, i8* %171, i64 %305
%307 = load i8, i8* %306
%308 = getelementptr inbounds i8, i8* %168, i64 %305
store i8 %307, i8* %308
%309 = add nuw nsw i64 %297, 3
%310 = getelementptr inbounds i8, i8* %171, i64 %309
%311 = load i8, i8* %310
%312 = getelementptr inbounds i8, i8* %168, i64 %309
store i8 %311, i8* %312
%313 = add nuw nsw i64 %297, 4
%314 = icmp eq i64 %313, %172
br i1 %314, label %315, label %296
315: ; preds = %293, %296, %259, %276, %160
%316 = sext i32 %165 to i64
%317 = getelementptr inbounds i8, i8* %168, i64 %316
store i8 0, i8* %317
%318 = call i32 @compars(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %13)
%319 = icmp eq i32 %318, 1
br i1 %319, label %351, label %320
320: ; preds = %315
%321 = call i32 @compars(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%322 = icmp eq i32 %321, 1
br i1 %322, label %351, label %323
323: ; preds = %320
%324 = call i32 @compars(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %13)
%325 = icmp eq i32 %324, 1
br i1 %325, label %351, label %326
326: ; preds = %323
%327 = call i32 @compars(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %13)
%328 = icmp eq i32 %327, 1
br i1 %328, label %351, label %329
329: ; preds = %326
%330 = call i32 @compars(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %13)
%331 = icmp eq i32 %330, 1
br i1 %331, label %351, label %332
332: ; preds = %329
%333 = call i32 @compars(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %13)
%334 = icmp eq i32 %333, 1
br i1 %334, label %351, label %335
335: ; preds = %332
%336 = call i32 @compars(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %13)
%337 = icmp eq i32 %336, 1
br i1 %337, label %351, label %338
338: ; preds = %335
%339 = call i32 @compars(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %13)
%340 = icmp eq i32 %339, 1
br i1 %340, label %351, label %341
341: ; preds = %338
%342 = call i32 @compars(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* %13)
%343 = icmp eq i32 %342, 1
br i1 %343, label %351, label %344
344: ; preds = %341
%345 = call i32 @compars(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %13)
%346 = icmp eq i32 %345, 1
br i1 %346, label %351, label %347
347: ; preds = %344
%348 = call i32 @compars(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %13)
%349 = icmp eq i32 %348, 1
%350 = select i1 %349, i32 10, i32 11
br label %351
351: ; preds = %347, %344, %341, %338, %335, %332, %329, %326, %323, %320, %315
%352 = phi i32 [ 0, %315 ], [ 1, %320 ], [ 2, %323 ], [ 3, %326 ], [ 4, %329 ], [ 5, %332 ], [ 6, %335 ], [ 7, %338 ], [ 8, %341 ], [ 9, %344 ], [ %350, %347 ]
%353 = phi i1 [ true, %315 ], [ true, %320 ], [ true, %323 ], [ true, %326 ], [ true, %329 ], [ true, %332 ], [ true, %335 ], [ true, %338 ], [ true, %341 ], [ true, %344 ], [ %349, %347 ]
%354 = call i32 @compars(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %168)
%355 = icmp eq i32 %354, 1
br i1 %355, label %386, label %356
356: ; preds = %351
%357 = call i32 @compars(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %168)
%358 = icmp eq i32 %357, 1
br i1 %358, label %386, label %359
359: ; preds = %356
%360 = call i32 @compars(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %168)
%361 = icmp eq i32 %360, 1
br i1 %361, label %386, label %362
362: ; preds = %359
%363 = call i32 @compars(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %168)
%364 = icmp eq i32 %363, 1
br i1 %364, label %386, label %365
365: ; preds = %362
%366 = call i32 @compars(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %168)
%367 = icmp eq i32 %366, 1
br i1 %367, label %386, label %368
368: ; preds = %365
%369 = call i32 @compars(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %168)
%370 = icmp eq i32 %369, 1
br i1 %370, label %386, label %371
371: ; preds = %368
%372 = call i32 @compars(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %168)
%373 = icmp eq i32 %372, 1
br i1 %373, label %386, label %374
374: ; preds = %371
%375 = call i32 @compars(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %168)
%376 = icmp eq i32 %375, 1
br i1 %376, label %386, label %377
377: ; preds = %374
%378 = call i32 @compars(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* %168)
%379 = icmp eq i32 %378, 1
br i1 %379, label %386, label %380
380: ; preds = %377
%381 = call i32 @compars(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %168)
%382 = icmp eq i32 %381, 1
br i1 %382, label %386, label %383
383: ; preds = %380
%384 = call i32 @compars(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %168)
%385 = icmp eq i32 %384, 1
br i1 %385, label %386, label %391
386: ; preds = %383, %380, %377, %374, %371, %368, %365, %362, %359, %356, %351
%387 = phi i32 [ 0, %351 ], [ 1, %356 ], [ 2, %359 ], [ 3, %362 ], [ 4, %365 ], [ 5, %368 ], [ 6, %371 ], [ 7, %374 ], [ 8, %377 ], [ 9, %380 ], [ 10, %383 ]
br i1 %353, label %388, label %391
388: ; preds = %386
%389 = call i32 @calc(i32 %352, i32 %387)
%390 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32 %389)
br label %393
391: ; preds = %383, %386
%392 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %393
393: ; preds = %391, %388
br label %394
394: ; preds = %393, %4
%395 = phi i32 [ 1, %4 ], [ 0, %393 ]
ret i32 %395
}