#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ execCommandeInterne(char **, char **);
int /*<<< orphan*/ execvp(char *, char **);
int fork();
int /*<<< orphan*/ free(char ***);
scalar_t__ malloc(int);
int nbCommSeq(char **);
int /*<<< orphan*/ nbCommandesCaractereSpeciaux(char **, int *);
int nbElementsCommande(char **);
int /*<<< orphan*/ perror(char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ testCommandeInterne(char *);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
void executeCommandeSequentielle(char *commande[], char *arge[]) {
  int nbElements = nbElementsCommande(commande);
  int nbCommande = nbCommSeq(commande);
  int tabNbCommande[nbCommande];
  nbCommandesCaractereSpeciaux(commande, tabNbCommande);
  int j, k = 0, m = 0;
  char ***tabTouteCommande =
      (char ***)malloc((nbCommande + 1) * sizeof(char **));
  for (j = 0; j <= nbCommande; j++) {
    tabTouteCommande[j] =
        (char **)malloc((tabNbCommande[j] + 1) * sizeof(char *));
    while (k < (nbElements) && strcmp(commande[k], ";") != 0) {
      tabTouteCommande[j][m] = commande[k];
      m++;
      k++;
    }
    tabTouteCommande[j][m] = (char *)NULL;
    if (k < (nbElements) && strcmp(commande[k], ";") == 0)
      k++;
    m = 0;
  }
  int i;
  for (i = 0; i < nbCommande; i++) {
    switch (fork()) {
    case -1:
      perror("Erreur fork\n");
      break;
    case 0:
      if (testCommandeInterne(tabTouteCommande[i][0]) != 0)
        execCommandeInterne(tabTouteCommande[i], arge);
      else
        execvp(tabTouteCommande[i][0], tabTouteCommande[i]);
      break;
    default:
      wait(NULL);
    }
  }
  free(tabTouteCommande);
}


x86 assembly (clang, -O0):
<executeCommandeSequentielle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <nbElementsCommande@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   10a0 <nbCommSeq@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0x50(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1080 <nbCommandesCaractereSpeciaux@plt>
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1358 <executeCommandeSequentielle+0x198>
mov    -0x50(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,%rdx
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x30(%rbp),%ecx
xor    %eax,%eax
cmp    -0x14(%rbp),%ecx
mov    %al,-0x51(%rbp)
jge    12ad <executeCommandeSequentielle+0xed>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd62(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    12bd <executeCommandeSequentielle+0xfd>
jmp    12f4 <executeCommandeSequentielle+0x134>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    127a <executeCommandeSequentielle+0xba>
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1343 <executeCommandeSequentielle+0x183>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcd5(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1343 <executeCommandeSequentielle+0x183>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1244 <executeCommandeSequentielle+0x84>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    141e <executeCommandeSequentielle+0x25e>
xor    %eax,%eax
call   10e0 <fork@plt>
mov    %eax,%ecx
mov    %ecx,-0x58(%rbp)
sub    $0xffffffff,%eax
je     1395 <executeCommandeSequentielle+0x1d5>
jmp    1385 <executeCommandeSequentielle+0x1c5>
mov    -0x58(%rbp),%eax
test   %eax,%eax
je     13a6 <executeCommandeSequentielle+0x1e6>
jmp    1402 <executeCommandeSequentielle+0x242>
lea    0xc66(%rip),%rdi
call   10b0 <perror@plt>
jmp    140b <executeCommandeSequentielle+0x24b>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rdi
call   1050 <testCommandeInterne@plt>
cmp    $0x0,%eax
je     13dd <executeCommandeSequentielle+0x21d>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <execCommandeInterne@plt>
jmp    13fd <executeCommandeSequentielle+0x23d>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rdi
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   10c0 <execvp@plt>
jmp    140b <executeCommandeSequentielle+0x24b>
xor    %eax,%eax
mov    %eax,%edi
call   10d0 <wait@plt>
jmp    1410 <executeCommandeSequentielle+0x250>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    135f <executeCommandeSequentielle+0x19f>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<executeCommandeSequentielle>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r15
mov    %rdi,%rbx
call   1060 <nbElementsCommande@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
call   10a0 <nbCommSeq@plt>
mov    %eax,%r14d
mov    %eax,%r12d
mov    %rsp,%rsi
lea    0xf(,%r12,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rsi
mov    %rsi,%rsp
mov    %rbx,-0x58(%rbp)
mov    %rbx,%rdi
mov    %rsi,-0x60(%rbp)
call   1080 <nbCommandesCaractereSpeciaux@plt>
lea    0x8(,%r14,8),%edi
call   1090 <malloc@plt>
mov    %rax,-0x30(%rbp)
test   %r14d,%r14d
js     13a7 <executeCommandeSequentielle+0x1e7>
mov    %r15,-0x50(%rbp)
mov    %r12,-0x48(%rbp)
lea    0x1(%r12),%r14d
xor    %r12d,%r12d
xor    %r15d,%r15d
mov    %r13d,-0x34(%rbp)
mov    %r14,-0x40(%rbp)
jmp    1296 <executeCommandeSequentielle+0xd6>
nopl   0x0(%rax)
mov    -0x30(%rbp),%rax
mov    (%rax,%r12,8),%rax
mov    %r13d,%ecx
movq   $0x0,(%rax,%rcx,8)
mov    (%r14,%r13,8),%rdi
lea    0xd92(%rip),%rsi
call   1070 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
sub    %r15d,%ecx
mov    %ecx,%r15d
mov    -0x34(%rbp),%r13d
mov    -0x40(%rbp),%r14
add    $0x1,%r12
cmp    %r14,%r12
je     1331 <executeCommandeSequentielle+0x171>
mov    -0x60(%rbp),%rax
mov    (%rax,%r12,4),%eax
lea    0x8(,%rax,8),%edi
call   1090 <malloc@plt>
mov    -0x30(%rbp),%rcx
mov    %rax,(%rcx,%r12,8)
mov    %r13d,%ebx
sub    %r15d,%ebx
jle    1320 <executeCommandeSequentielle+0x160>
movslq %r15d,%rax
neg    %r15d
mov    -0x58(%rbp),%rcx
lea    (%rcx,%rax,8),%r14
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
mov    (%r14,%r13,8),%rdi
lea    0xd25(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1250 <executeCommandeSequentielle+0x90>
mov    (%r14,%r13,8),%rax
mov    -0x30(%rbp),%rcx
mov    (%rcx,%r12,8),%rcx
mov    %rax,(%rcx,%r13,8)
add    $0x1,%r13
add    $0xffffffff,%r15d
cmp    %r13,%rbx
jne    12d0 <executeCommandeSequentielle+0x110>
neg    %r15d
mov    -0x30(%rbp),%rax
mov    (%rax,%r12,8),%rax
mov    -0x34(%rbp),%r13d
mov    -0x40(%rbp),%r14
jmp    1322 <executeCommandeSequentielle+0x162>
nopl   0x0(%rax,%rax,1)
xor    %ebx,%ebx
mov    %ebx,%ecx
movq   $0x0,(%rax,%rcx,8)
jmp    1289 <executeCommandeSequentielle+0xc9>
mov    -0x48(%rbp),%r12
test   %r12d,%r12d
mov    -0x50(%rbp),%r15
jle    13a7 <executeCommandeSequentielle+0x1e7>
lea    0xcbd(%rip),%r14
xor    %ebx,%ebx
mov    -0x30(%rbp),%r13
jmp    137a <executeCommandeSequentielle+0x1ba>
nopl   (%rax)
mov    0x0(%r13,%rbx,8),%rax
mov    (%rax),%rdi
call   1050 <testCommandeInterne@plt>
mov    0x0(%r13,%rbx,8),%rsi
test   %eax,%eax
je     1393 <executeCommandeSequentielle+0x1d3>
mov    %rsi,%rdi
mov    %r15,%rsi
call   1040 <execCommandeInterne@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
je     13a7 <executeCommandeSequentielle+0x1e7>
xor    %eax,%eax
call   10e0 <fork@plt>
test   %eax,%eax
je     1350 <executeCommandeSequentielle+0x190>
cmp    $0xffffffff,%eax
je     139d <executeCommandeSequentielle+0x1dd>
xor    %edi,%edi
call   10d0 <wait@plt>
jmp    1371 <executeCommandeSequentielle+0x1b1>
mov    (%rsi),%rdi
call   10c0 <execvp@plt>
jmp    1371 <executeCommandeSequentielle+0x1b1>
mov    %r14,%rdi
call   10b0 <perror@plt>
jmp    1371 <executeCommandeSequentielle+0x1b1>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c";\00"
@.str.1 = [13 x i8] c"Erreur fork\0A\00"
define void @executeCommandeSequentielle(i8** %0, i8** %1) {
%3 = alloca i8**
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8***
%13 = alloca i32
store i8** %0, i8*** %3
store i8** %1, i8*** %4
%14 = load i8**, i8*** %3
%15 = call i32 @nbElementsCommande(i8** %14)
store i32 %15, i32* %5
%16 = load i8**, i8*** %3
%17 = call i32 @nbCommSeq(i8** %16)
store i32 %17, i32* %6
%18 = load i32, i32* %6
%19 = zext i32 %18 to i64
%20 = call i8* @llvm.stacksave()
store i8* %20, i8** %7
%21 = alloca i32, i64 %19
store i64 %19, i64* %8
%22 = load i8**, i8*** %3
%23 = call i32 @nbCommandesCaractereSpeciaux(i8** %22, i32* %21)
store i32 0, i32* %10
store i32 0, i32* %11
%24 = load i32, i32* %6
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = mul i64 %26, 8
%28 = trunc i64 %27 to i32
%29 = call i64 @malloc(i32 %28)
%30 = inttoptr i64 %29 to i8***
store i8*** %30, i8**** %12
store i32 0, i32* %9
br label %31
31: ; preds = %106, %2
%32 = load i32, i32* %9
%33 = load i32, i32* %6
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %109
35: ; preds = %31
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, i32* %21, i64 %37
%39 = load i32, i32* %38
%40 = add nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 8
%43 = trunc i64 %42 to i32
%44 = call i64 @malloc(i32 %43)
%45 = inttoptr i64 %44 to i8**
%46 = load i8***, i8**** %12
%47 = load i32, i32* %9
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8**, i8*** %46, i64 %48
store i8** %45, i8*** %49
br label %50
50: ; preds = %64, %35
%51 = load i32, i32* %10
%52 = load i32, i32* %5
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %62
54: ; preds = %50
%55 = load i8**, i8*** %3
%56 = load i32, i32* %10
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8*, i8** %55, i64 %57
%59 = load i8*, i8** %58
%60 = call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%61 = icmp ne i64 %60, 0
br label %62
62: ; preds = %54, %50
%63 = phi i1 [ false, %50 ], [ %61, %54 ]
br i1 %63, label %64, label %82
64: ; preds = %62
%65 = load i8**, i8*** %3
%66 = load i32, i32* %10
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8*, i8** %65, i64 %67
%69 = load i8*, i8** %68
%70 = load i8***, i8**** %12
%71 = load i32, i32* %9
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8**, i8*** %70, i64 %72
%74 = load i8**, i8*** %73
%75 = load i32, i32* %11
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8*, i8** %74, i64 %76
store i8* %69, i8** %77
%78 = load i32, i32* %11
%79 = add nsw i32 %78, 1
store i32 %79, i32* %11
%80 = load i32, i32* %10
%81 = add nsw i32 %80, 1
store i32 %81, i32* %10
br label %50
82: ; preds = %62
%83 = load i8***, i8**** %12
%84 = load i32, i32* %9
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8**, i8*** %83, i64 %85
%87 = load i8**, i8*** %86
%88 = load i32, i32* %11
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8*, i8** %87, i64 %89
store i8* null, i8** %90
%91 = load i32, i32* %10
%92 = load i32, i32* %5
%93 = icmp slt i32 %91, %92
br i1 %93, label %94, label %105
94: ; preds = %82
%95 = load i8**, i8*** %3
%96 = load i32, i32* %10
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8*, i8** %95, i64 %97
%99 = load i8*, i8** %98
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %105
102: ; preds = %94
%103 = load i32, i32* %10
%104 = add nsw i32 %103, 1
store i32 %104, i32* %10
br label %105
105: ; preds = %102, %94, %82
store i32 0, i32* %11
br label %106
106: ; preds = %105
%107 = load i32, i32* %9
%108 = add nsw i32 %107, 1
store i32 %108, i32* %9
br label %31
109: ; preds = %31
store i32 0, i32* %13
br label %110
110: ; preds = %154, %109
%111 = load i32, i32* %13
%112 = load i32, i32* %6
%113 = icmp slt i32 %111, %112
br i1 %113, label %114, label %157
114: ; preds = %110
%115 = call i32 (...) @fork()
switch i32 %115, label %151 [
i32 -1, label %116
i32 0, label %118
]
116: ; preds = %114
%117 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %153
118: ; preds = %114
%119 = load i8***, i8**** %12
%120 = load i32, i32* %13
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8**, i8*** %119, i64 %121
%123 = load i8**, i8*** %122
%124 = getelementptr inbounds i8*, i8** %123, i64 0
%125 = load i8*, i8** %124
%126 = call i32 @testCommandeInterne(i8* %125)
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %136
128: ; preds = %118
%129 = load i8***, i8**** %12
%130 = load i32, i32* %13
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i8**, i8*** %129, i64 %131
%133 = load i8**, i8*** %132
%134 = load i8**, i8*** %4
%135 = call i32 @execCommandeInterne(i8** %133, i8** %134)
br label %150
136: ; preds = %118
%137 = load i8***, i8**** %12
%138 = load i32, i32* %13
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i8**, i8*** %137, i64 %139
%141 = load i8**, i8*** %140
%142 = getelementptr inbounds i8*, i8** %141, i64 0
%143 = load i8*, i8** %142
%144 = load i8***, i8**** %12
%145 = load i32, i32* %13
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i8**, i8*** %144, i64 %146
%148 = load i8**, i8*** %147
%149 = call i32 @execvp(i8* %143, i8** %148)
br label %150
150: ; preds = %136, %128
br label %153
151: ; preds = %114
%152 = call i32 @wait(i32* null)
br label %153
153: ; preds = %151, %150, %116
br label %154
154: ; preds = %153
%155 = load i32, i32* %13
%156 = add nsw i32 %155, 1
store i32 %156, i32* %13
br label %110
157: ; preds = %110
%158 = load i8***, i8**** %12
%159 = call i32 @free(i8*** %158)
%160 = load i8*, i8** %7
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c";\00"
@.str.1 = [13 x i8] c"Erreur fork\0A\00"
define void @executeCommandeSequentielle(i8** %0, i8** %1) {
%3 = tail call i32 @nbElementsCommande(i8** %0)
%4 = tail call i32 @nbCommSeq(i8** %0)
%5 = zext i32 %4 to i64
%6 = alloca i32, i64 %5
%7 = call i32 @nbCommandesCaractereSpeciaux(i8** %0, i32* %6)
%8 = shl i32 %4, 3
%9 = add i32 %8, 8
%10 = call i64 @malloc(i32 %9)
%11 = inttoptr i64 %10 to i8***
%12 = icmp slt i32 %4, 0
br i1 %12, label %92, label %13
13: ; preds = %2
%14 = add nuw i32 %4, 1
%15 = zext i32 %14 to i64
br label %18
16: ; preds = %66
%17 = icmp sgt i32 %4, 0
br i1 %17, label %70, label %92
18: ; preds = %13, %66
%19 = phi i64 [ 0, %13 ], [ %68, %66 ]
%20 = phi i32 [ 0, %13 ], [ %67, %66 ]
%21 = getelementptr inbounds i32, i32* %6, i64 %19
%22 = load i32, i32* %21
%23 = shl i32 %22, 3
%24 = add i32 %23, 8
%25 = call i64 @malloc(i32 %24)
%26 = inttoptr i64 %25 to i8**
%27 = getelementptr inbounds i8**, i8*** %11, i64 %19
store i8** %26, i8*** %27
%28 = icmp sgt i32 %3, %20
br i1 %28, label %29, label %60
29: ; preds = %18
%30 = sext i32 %20 to i64
%31 = sub i32 %3, %20
%32 = zext i32 %31 to i64
br label %33
33: ; preds = %29, %40
%34 = phi i64 [ %30, %29 ], [ %45, %40 ]
%35 = phi i64 [ 0, %29 ], [ %44, %40 ]
%36 = getelementptr inbounds i8*, i8** %0, i64 %34
%37 = load i8*, i8** %36
%38 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %47, label %40
40: ; preds = %33
%41 = load i8*, i8** %36
%42 = load i8**, i8*** %27
%43 = getelementptr inbounds i8*, i8** %42, i64 %35
store i8* %41, i8** %43
%44 = add nuw nsw i64 %35, 1
%45 = add nsw i64 %34, 1
%46 = icmp eq i64 %44, %32
br i1 %46, label %57, label %33
47: ; preds = %33
%48 = trunc i64 %34 to i32
%49 = load i8**, i8*** %27
%50 = and i64 %35, 4294967295
%51 = getelementptr inbounds i8*, i8** %49, i64 %50
store i8* null, i8** %51
%52 = load i8*, i8** %36
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
%55 = zext i1 %54 to i32
%56 = add nsw i32 %48, %55
br label %66
57: ; preds = %40
%58 = trunc i64 %45 to i32
%59 = load i8**, i8*** %27
br label %60
60: ; preds = %18, %57
%61 = phi i8** [ %59, %57 ], [ %26, %18 ]
%62 = phi i32 [ %58, %57 ], [ %20, %18 ]
%63 = phi i32 [ %31, %57 ], [ 0, %18 ]
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds i8*, i8** %61, i64 %64
store i8* null, i8** %65
br label %66
66: ; preds = %47, %60
%67 = phi i32 [ %62, %60 ], [ %56, %47 ]
%68 = add nuw nsw i64 %19, 1
%69 = icmp eq i64 %68, %15
br i1 %69, label %16, label %18
70: ; preds = %16, %89
%71 = phi i64 [ %90, %89 ], [ 0, %16 ]
%72 = call i32 (...) @fork()
switch i32 %72, label %87 [
i32 -1, label %73
i32 0, label %75
]
73: ; preds = %70
%74 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %89
75: ; preds = %70
%76 = getelementptr inbounds i8**, i8*** %11, i64 %71
%77 = load i8**, i8*** %76
%78 = load i8*, i8** %77
%79 = call i32 @testCommandeInterne(i8* %78)
%80 = icmp eq i32 %79, 0
%81 = load i8**, i8*** %76
br i1 %80, label %84, label %82
82: ; preds = %75
%83 = call i32 @execCommandeInterne(i8** %81, i8** %1)
br label %89
84: ; preds = %75
%85 = load i8*, i8** %81
%86 = call i32 @execvp(i8* %85, i8** %81)
br label %89
87: ; preds = %70
%88 = call i32 @wait(i32* null)
br label %89
89: ; preds = %73, %87, %84, %82
%90 = add nuw nsw i64 %71, 1
%91 = icmp eq i64 %90, %5
br i1 %91, label %92, label %70
92: ; preds = %89, %2, %16
%93 = call i32 @free(i8*** %11)
ret void
}