#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 derniereOption(int, char **);
int /*<<< orphan*/ listeTestOption(int, char **, int *, char **, int *, int,
                                   char **, int *, int);
void appelerFonction(int argc, char **argv, char **input, int nombreInput,
                     char **output, int nombreOutput) {
  int i;
  int idInput;
  int idOutput;
  for (i = 0, idInput = 0, idOutput = 0; i < argc; i += 1) {
    if (argv[i][0] == '-' || argc == 1) {
      listeTestOption(argc, argv, &i, input, &idInput, nombreInput, output,
                      &idOutput, nombreOutput);
    }
  }
  i = derniereOption(argc, argv);
  while (idInput < nombreInput) {
    listeTestOption(argc, argv, &i, input, &idInput, nombreInput, output,
                    &idOutput, nombreOutput);
  }
}


x86 assembly (clang, -O0):
<appelerFonction>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11c8 <appelerFonction+0xa8>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     1181 <appelerFonction+0x61>
cmpl   $0x1,-0x4(%rbp)
jne    11b5 <appelerFonction+0x95>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r9d
mov    -0x28(%rbp),%r11
mov    -0x2c(%rbp),%eax
lea    -0x30(%rbp),%rdx
lea    -0x34(%rbp),%r8
lea    -0x38(%rbp),%r10
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1030 <listeTestOption@plt>
jmp    11ba <appelerFonction+0x9a>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1153 <appelerFonction+0x33>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <derniereOption@plt>
mov    %eax,-0x30(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    121c <appelerFonction+0xfc>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r9d
mov    -0x28(%rbp),%r11
mov    -0x2c(%rbp),%eax
lea    -0x30(%rbp),%rdx
lea    -0x34(%rbp),%r8
lea    -0x38(%rbp),%r10
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1030 <listeTestOption@plt>
jmp    11d7 <appelerFonction+0xb7>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<appelerFonction>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,%r14d
mov    %r8,%r15
mov    %ecx,%ebp
mov    %rdx,%r12
mov    %rsi,%r13
mov    %edi,%ebx
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x14(%rsp)
test   %edi,%edi
jle    11af <appelerFonction+0x8f>
xor    %eax,%eax
jmp    119b <appelerFonction+0x7b>
xchg   %ax,%ax
sub    $0x8,%rsp
mov    %ebx,%edi
mov    %r13,%rsi
lea    0x14(%rsp),%rdx
mov    %r12,%rcx
lea    0x18(%rsp),%r8
mov    %ebp,%r9d
push   %r14
lea    0x24(%rsp),%rax
push   %rax
push   %r15
call   1030 <listeTestOption@plt>
add    $0x20,%rsp
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
cmp    %ebx,%eax
jge    11af <appelerFonction+0x8f>
cmp    $0x1,%ebx
je     1160 <appelerFonction+0x40>
movslq %eax,%rcx
mov    0x0(%r13,%rcx,8),%rcx
cmpb   $0x2d,(%rcx)
jne    1190 <appelerFonction+0x70>
jmp    1160 <appelerFonction+0x40>
mov    %ebx,%edi
mov    %r13,%rsi
call   1040 <derniereOption@plt>
mov    %eax,0xc(%rsp)
cmp    %ebp,0x10(%rsp)
jge    1202 <appelerFonction+0xe2>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
sub    $0x8,%rsp
mov    %ebx,%edi
mov    %r13,%rsi
lea    0x14(%rsp),%rdx
mov    %r12,%rcx
lea    0x18(%rsp),%r8
mov    %ebp,%r9d
push   %r14
lea    0x24(%rsp),%rax
push   %rax
push   %r15
call   1030 <listeTestOption@plt>
add    $0x20,%rsp
cmp    %ebp,0x10(%rsp)
jl     11d0 <appelerFonction+0xb0>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @appelerFonction(i32 %0, i8** %1, i8** %2, i32 %3, i8** %4, i32 %5) {
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i8**
%10 = alloca i32
%11 = alloca i8**
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 %0, i32* %7
store i8** %1, i8*** %8
store i8** %2, i8*** %9
store i32 %3, i32* %10
store i8** %4, i8*** %11
store i32 %5, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
store i32 0, i32* %15
br label %16
16: ; preds = %42, %6
%17 = load i32, i32* %13
%18 = load i32, i32* %7
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %45
20: ; preds = %16
%21 = load i8**, i8*** %8
%22 = load i32, i32* %13
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
%25 = load i8*, i8** %24
%26 = getelementptr inbounds i8, i8* %25, i64 0
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 45
br i1 %29, label %33, label %30
30: ; preds = %20
%31 = load i32, i32* %7
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %41
33: ; preds = %30, %20
%34 = load i32, i32* %7
%35 = load i8**, i8*** %8
%36 = load i8**, i8*** %9
%37 = load i32, i32* %10
%38 = load i8**, i8*** %11
%39 = load i32, i32* %12
%40 = call i32 @listeTestOption(i32 %34, i8** %35, i32* %13, i8** %36, i32* %14, i32 %37, i8** %38, i32* %15, i32 %39)
br label %41
41: ; preds = %33, %30
br label %42
42: ; preds = %41
%43 = load i32, i32* %13
%44 = add nsw i32 %43, 1
store i32 %44, i32* %13
br label %16
45: ; preds = %16
%46 = load i32, i32* %7
%47 = load i8**, i8*** %8
%48 = call i32 @derniereOption(i32 %46, i8** %47)
store i32 %48, i32* %13
br label %49
49: ; preds = %53, %45
%50 = load i32, i32* %14
%51 = load i32, i32* %10
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %61
53: ; preds = %49
%54 = load i32, i32* %7
%55 = load i8**, i8*** %8
%56 = load i8**, i8*** %9
%57 = load i32, i32* %10
%58 = load i8**, i8*** %11
%59 = load i32, i32* %12
%60 = call i32 @listeTestOption(i32 %54, i8** %55, i32* %13, i8** %56, i32* %14, i32 %57, i8** %58, i32* %15, i32 %59)
br label %49
61: ; preds = %49
ret void
}

LLVM IR (-O2):
define void @appelerFonction(i32 %0, i8** %1, i8** %2, i32 %3, i8** %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = bitcast i32* %7 to i8*
%11 = bitcast i32* %8 to i8*
%12 = bitcast i32* %9 to i8*
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
%13 = icmp sgt i32 %0, 0
br i1 %13, label %14, label %31
14: ; preds = %6
%15 = icmp eq i32 %0, 1
br label %16
16: ; preds = %14, %27
%17 = phi i32 [ 0, %14 ], [ %29, %27 ]
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8*, i8** %1, i64 %18
%20 = load i8*, i8** %19
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 45
%23 = or i1 %15, %22
br i1 %23, label %24, label %27
24: ; preds = %16
%25 = call i32 @listeTestOption(i32 %0, i8** %1, i32* %7, i8** %2, i32* %8, i32 %3, i8** %4, i32* %9, i32 %5)
%26 = load i32, i32* %7
br label %27
27: ; preds = %24, %16
%28 = phi i32 [ %26, %24 ], [ %17, %16 ]
%29 = add nsw i32 %28, 1
store i32 %29, i32* %7
%30 = icmp slt i32 %29, %0
br i1 %30, label %16, label %31
31: ; preds = %27, %6
%32 = call i32 @derniereOption(i32 %0, i8** %1)
store i32 %32, i32* %7
%33 = load i32, i32* %8
%34 = icmp slt i32 %33, %3
br i1 %34, label %35, label %39
35: ; preds = %31, %35
%36 = call i32 @listeTestOption(i32 %0, i8** %1, i32* %7, i8** %2, i32* %8, i32 %3, i8** %4, i32* %9, i32 %5)
%37 = load i32, i32* %8
%38 = icmp slt i32 %37, %3
br i1 %38, label %35, label %39
39: ; preds = %35, %31
ret void
}