#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*/ binaire(char *, char *, char *, int, int *);
int /*<<< orphan*/ convolution(char *, char *, char *, int, int *);
char *incrementerInputOutput(char **, int *, int, int);
int /*<<< orphan*/ listeTestOption2(int, char **, int *, char *, char *);
int /*<<< orphan*/ panorama(char **, int, char *, int *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ testChargerImage(char *, char *);
scalar_t__ testOptionAvecParametre(char *, int, int, char **);
void listeTestOption(int argc, char **argv, int *i, char **input, int *idInput,
                     int nombreInput, char **output, int *idOutput,
                     int nombreOutput) {
  int bool_erreur;
  char *currentInput;
  char *currentOutput;
  if ((argv[*i][0] == '-' &&
       !(!strcmp(argv[*i], "-li") || !strcmp(argv[*i], "-i") ||
         !strcmp(argv[*i], "-o") || !strcmp(argv[*i], "-lo") ||
         !strcmp(argv[*i], "-r") || !strcmp(argv[*i], "--help") ||
         !strcmp(argv[*i], "-?")) &&
       argc > 1) ||
      (*i == 0 && argc > 1)) {
    currentInput = incrementerInputOutput(input, idInput, nombreInput, 1);
    currentOutput = incrementerInputOutput(output, idOutput, nombreOutput, 0);
  }
  bool_erreur = 0;
  if (!strcmp(argv[*i], "-p")) {
    panorama(input, nombreInput, currentOutput, &bool_erreur);
    *idInput = nombreInput;
  } else if (testOptionAvecParametre("-b", *i, argc, argv))
    binaire(currentInput, currentOutput, argv[*i + 1], 1, &bool_erreur);
  else if (testOptionAvecParametre("-c", *i, argc, argv))
    convolution(currentInput, currentOutput, argv[*i + 1], 1, &bool_erreur);
  else if ((*i == 0 || !strcmp(argv[*i], "-s")) && nombreInput)
    testChargerImage(currentInput, currentOutput);
  else
    listeTestOption2(argc, argv, i, currentInput, currentOutput);
}


x86 assembly (clang, -O0):
<listeTestOption>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%eax
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    %r9d,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    12cb <listeTestOption+0x14b>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe25(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12cb <listeTestOption+0x14b>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe05(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12cb <listeTestOption+0x14b>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xde4(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12cb <listeTestOption+0x14b>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdc3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12cb <listeTestOption+0x14b>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xda3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12cb <listeTestOption+0x14b>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd82(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12cb <listeTestOption+0x14b>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd65(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12cb <listeTestOption+0x14b>
cmpl   $0x1,-0x4(%rbp)
jg     12e2 <listeTestOption+0x162>
mov    -0x18(%rbp),%rax
cmpl   $0x0,(%rax)
jne    1311 <listeTestOption+0x191>
cmpl   $0x1,-0x4(%rbp)
jle    1311 <listeTestOption+0x191>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x2c(%rbp),%edx
mov    $0x1,%ecx
call   1030 <incrementerInputOutput@plt>
mov    %rax,-0x38(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    0x20(%rbp),%edx
xor    %ecx,%ecx
call   1030 <incrementerInputOutput@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xced(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    135e <listeTestOption+0x1de>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x40(%rbp),%rdx
lea    -0x30(%rbp),%rcx
call   1060 <panorama@plt>
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
jmp    1476 <listeTestOption+0x2f6>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x4(%rbp),%edx
mov    -0x10(%rbp),%rcx
lea    0xcac(%rip),%rdi
call   1050 <testOptionAvecParametre@plt>
cmp    $0x0,%rax
je     13b0 <listeTestOption+0x230>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
mov    $0x1,%ecx
lea    -0x30(%rbp),%r8
call   1080 <binaire@plt>
jmp    1471 <listeTestOption+0x2f1>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x4(%rbp),%edx
mov    -0x10(%rbp),%rcx
lea    0xc5d(%rip),%rdi
call   1050 <testOptionAvecParametre@plt>
cmp    $0x0,%rax
je     1402 <listeTestOption+0x282>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    (%rcx),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
mov    $0x1,%ecx
lea    -0x30(%rbp),%r8
call   1070 <convolution@plt>
jmp    146c <listeTestOption+0x2ec>
mov    -0x18(%rbp),%rax
cmpl   $0x0,(%rax)
je     1433 <listeTestOption+0x2b3>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xbff(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    144f <listeTestOption+0x2cf>
cmpl   $0x0,-0x2c(%rbp)
je     144f <listeTestOption+0x2cf>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   10a0 <testChargerImage@plt>
jmp    1467 <listeTestOption+0x2e7>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
call   1090 <listeTestOption2@plt>
jmp    146c <listeTestOption+0x2ec>
jmp    1471 <listeTestOption+0x2f1>
jmp    1476 <listeTestOption+0x2f6>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<listeTestOption>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9d,(%rsp)
mov    %r8,0x20(%rsp)
mov    %rcx,0x18(%rsp)
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x80(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    0x78(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    0x70(%rsp),%rax
mov    %rax,0x28(%rsp)
movslq (%rdx),%r12
mov    (%rsi,%r12,8),%r13
cmpb   $0x2d,0x0(%r13)
jne    125f <listeTestOption+0xdf>
lea    0xe24(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     125f <listeTestOption+0xdf>
lea    0xe15(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     125f <listeTestOption+0xdf>
lea    0xe05(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     125f <listeTestOption+0xdf>
lea    0xdf5(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     125f <listeTestOption+0xdf>
lea    0xde6(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     125f <listeTestOption+0xdf>
lea    0xdd6(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     125f <listeTestOption+0xdf>
lea    0xdca(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
cmp    $0x2,%ebp
jl     125f <listeTestOption+0xdf>
test   %eax,%eax
jne    1269 <listeTestOption+0xe9>
cmp    $0x2,%ebp
jl     12a4 <listeTestOption+0x124>
test   %r12d,%r12d
jne    12a4 <listeTestOption+0x124>
mov    0x18(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    (%rsp),%edx
mov    $0x1,%ecx
call   1030 <incrementerInputOutput@plt>
mov    %rax,0x8(%rsp)
mov    0x28(%rsp),%rdi
mov    0x30(%rsp),%rsi
mov    0x14(%rsp),%edx
xor    %ecx,%ecx
call   1030 <incrementerInputOutput@plt>
mov    %rax,%r15
movslq (%r14),%r12
mov    (%rbx,%r12,8),%r13
movl   $0x0,0x4(%rsp)
lea    0xd68(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12f9 <listeTestOption+0x179>
lea    0xd58(%rip),%rdi
mov    %r12d,%esi
mov    %ebp,%edx
mov    %rbx,%rcx
call   1050 <testOptionAvecParametre@plt>
movslq (%r14),%rsi
test   %rax,%rax
je     1319 <listeTestOption+0x199>
mov    0x8(%rbx,%rsi,8),%rdx
lea    0x4(%rsp),%r8
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
mov    $0x1,%ecx
call   1080 <binaire@plt>
jmp    134e <listeTestOption+0x1ce>
lea    0x4(%rsp),%rcx
mov    0x18(%rsp),%rdi
mov    (%rsp),%ebx
mov    %ebx,%esi
mov    %r15,%rdx
call   1060 <panorama@plt>
mov    0x20(%rsp),%rax
mov    %ebx,(%rax)
jmp    134e <listeTestOption+0x1ce>
lea    0xd01(%rip),%rdi
mov    %ebp,%edx
mov    %rbx,%rcx
call   1050 <testOptionAvecParametre@plt>
movslq (%r14),%rcx
test   %rax,%rax
je     135d <listeTestOption+0x1dd>
mov    0x8(%rbx,%rcx,8),%rdx
lea    0x4(%rsp),%r8
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
mov    $0x1,%ecx
call   1070 <convolution@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
test   %ecx,%ecx
je     1399 <listeTestOption+0x219>
mov    (%rbx,%rcx,8),%rdi
lea    0xcb8(%rip),%rsi
call   1040 <strcmp@plt>
cmpl   $0x0,(%rsp)
mov    0x8(%rsp),%rcx
je     13a4 <listeTestOption+0x224>
test   %eax,%eax
jne    13a4 <listeTestOption+0x224>
mov    %rcx,%rdi
mov    %r15,%rsi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10a0 <testChargerImage@plt>
cmpl   $0x0,(%rsp)
mov    0x8(%rsp),%rcx
jne    1380 <listeTestOption+0x200>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15,%r8
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1090 <listeTestOption2@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"-li\00"
@.str.1 = [3 x i8] c"-i\00"
@.str.2 = [3 x i8] c"-o\00"
@.str.3 = [4 x i8] c"-lo\00"
@.str.4 = [3 x i8] c"-r\00"
@.str.5 = [7 x i8] c"--help\00"
@.str.6 = [3 x i8] c"-?\00"
@.str.7 = [3 x i8] c"-p\00"
@.str.8 = [3 x i8] c"-b\00"
@.str.9 = [3 x i8] c"-c\00"
@.str.10 = [3 x i8] c"-s\00"
define void @listeTestOption(i32 %0, i8** %1, i32* %2, i8** %3, i32* %4, i32 %5, i8** %6, i32* %7, i32 %8) {
%10 = alloca i32
%11 = alloca i8**
%12 = alloca i32*
%13 = alloca i8**
%14 = alloca i32*
%15 = alloca i32
%16 = alloca i8**
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i8*
%21 = alloca i8*
store i32 %0, i32* %10
store i8** %1, i8*** %11
store i32* %2, i32** %12
store i8** %3, i8*** %13
store i32* %4, i32** %14
store i32 %5, i32* %15
store i8** %6, i8*** %16
store i32* %7, i32** %17
store i32 %8, i32* %18
%22 = load i8**, i8*** %11
%23 = load i32*, i32** %12
%24 = load i32, i32* %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8*, i8** %22, i64 %25
%27 = load i8*, i8** %26
%28 = getelementptr inbounds i8, i8* %27, i64 0
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 45
br i1 %31, label %32, label %98
32: ; preds = %9
%33 = load i8**, i8*** %11
%34 = load i32*, i32** %12
%35 = load i32, i32* %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8*, i8** %33, i64 %36
%38 = load i8*, i8** %37
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %98
41: ; preds = %32
%42 = load i8**, i8*** %11
%43 = load i32*, i32** %12
%44 = load i32, i32* %43
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8*, i8** %42, i64 %45
%47 = load i8*, i8** %46
%48 = call i32 @strcmp(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %98
50: ; preds = %41
%51 = load i8**, i8*** %11
%52 = load i32*, i32** %12
%53 = load i32, i32* %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %51, i64 %54
%56 = load i8*, i8** %55
%57 = call i32 @strcmp(i8* %56, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %98
59: ; preds = %50
%60 = load i8**, i8*** %11
%61 = load i32*, i32** %12
%62 = load i32, i32* %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8*, i8** %60, i64 %63
%65 = load i8*, i8** %64
%66 = call i32 @strcmp(i8* %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %98
68: ; preds = %59
%69 = load i8**, i8*** %11
%70 = load i32*, i32** %12
%71 = load i32, i32* %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8*, i8** %69, i64 %72
%74 = load i8*, i8** %73
%75 = call i32 @strcmp(i8* %74, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %98
77: ; preds = %68
%78 = load i8**, i8*** %11
%79 = load i32*, i32** %12
%80 = load i32, i32* %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8*, i8** %78, i64 %81
%83 = load i8*, i8** %82
%84 = call i32 @strcmp(i8* %83, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %98
86: ; preds = %77
%87 = load i8**, i8*** %11
%88 = load i32*, i32** %12
%89 = load i32, i32* %88
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8*, i8** %87, i64 %90
%92 = load i8*, i8** %91
%93 = call i32 @strcmp(i8* %92, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %86
%96 = load i32, i32* %10
%97 = icmp sgt i32 %96, 1
br i1 %97, label %105, label %98
98: ; preds = %95, %86, %77, %68, %59, %50, %41, %32, %9
%99 = load i32*, i32** %12
%100 = load i32, i32* %99
%101 = icmp eq i32 %100, 0
br i1 %101, label %102, label %114
102: ; preds = %98
%103 = load i32, i32* %10
%104 = icmp sgt i32 %103, 1
br i1 %104, label %105, label %114
105: ; preds = %102, %95
%106 = load i8**, i8*** %13
%107 = load i32*, i32** %14
%108 = load i32, i32* %15
%109 = call i8* @incrementerInputOutput(i8** %106, i32* %107, i32 %108, i32 1)
store i8* %109, i8** %20
%110 = load i8**, i8*** %16
%111 = load i32*, i32** %17
%112 = load i32, i32* %18
%113 = call i8* @incrementerInputOutput(i8** %110, i32* %111, i32 %112, i32 0)
store i8* %113, i8** %21
br label %114
114: ; preds = %105, %102, %98
store i32 0, i32* %19
%115 = load i8**, i8*** %11
%116 = load i32*, i32** %12
%117 = load i32, i32* %116
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8*, i8** %115, i64 %118
%120 = load i8*, i8** %119
%121 = call i32 @strcmp(i8* %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%122 = icmp ne i32 %121, 0
br i1 %122, label %130, label %123
123: ; preds = %114
%124 = load i8**, i8*** %13
%125 = load i32, i32* %15
%126 = load i8*, i8** %21
%127 = call i32 @panorama(i8** %124, i32 %125, i8* %126, i32* %19)
%128 = load i32, i32* %15
%129 = load i32*, i32** %14
store i32 %128, i32* %129
br label %196
130: ; preds = %114
%131 = load i32*, i32** %12
%132 = load i32, i32* %131
%133 = load i32, i32* %10
%134 = load i8**, i8*** %11
%135 = call i64 @testOptionAvecParametre(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %132, i32 %133, i8** %134)
%136 = icmp ne i64 %135, 0
br i1 %136, label %137, label %148
137: ; preds = %130
%138 = load i8*, i8** %20
%139 = load i8*, i8** %21
%140 = load i8**, i8*** %11
%141 = load i32*, i32** %12
%142 = load i32, i32* %141
%143 = add nsw i32 %142, 1
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i8*, i8** %140, i64 %144
%146 = load i8*, i8** %145
%147 = call i32 @binaire(i8* %138, i8* %139, i8* %146, i32 1, i32* %19)
br label %195
148: ; preds = %130
%149 = load i32*, i32** %12
%150 = load i32, i32* %149
%151 = load i32, i32* %10
%152 = load i8**, i8*** %11
%153 = call i64 @testOptionAvecParametre(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %150, i32 %151, i8** %152)
%154 = icmp ne i64 %153, 0
br i1 %154, label %155, label %166
155: ; preds = %148
%156 = load i8*, i8** %20
%157 = load i8*, i8** %21
%158 = load i8**, i8*** %11
%159 = load i32*, i32** %12
%160 = load i32, i32* %159
%161 = add nsw i32 %160, 1
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i8*, i8** %158, i64 %162
%164 = load i8*, i8** %163
%165 = call i32 @convolution(i8* %156, i8* %157, i8* %164, i32 1, i32* %19)
br label %194
166: ; preds = %148
%167 = load i32*, i32** %12
%168 = load i32, i32* %167
%169 = icmp eq i32 %168, 0
br i1 %169, label %179, label %170
170: ; preds = %166
%171 = load i8**, i8*** %11
%172 = load i32*, i32** %12
%173 = load i32, i32* %172
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8*, i8** %171, i64 %174
%176 = load i8*, i8** %175
%177 = call i32 @strcmp(i8* %176, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%178 = icmp ne i32 %177, 0
br i1 %178, label %186, label %179
179: ; preds = %170, %166
%180 = load i32, i32* %15
%181 = icmp ne i32 %180, 0
br i1 %181, label %182, label %186
182: ; preds = %179
%183 = load i8*, i8** %20
%184 = load i8*, i8** %21
%185 = call i32 @testChargerImage(i8* %183, i8* %184)
br label %193
186: ; preds = %179, %170
%187 = load i32, i32* %10
%188 = load i8**, i8*** %11
%189 = load i32*, i32** %12
%190 = load i8*, i8** %20
%191 = load i8*, i8** %21
%192 = call i32 @listeTestOption2(i32 %187, i8** %188, i32* %189, i8* %190, i8* %191)
br label %193
193: ; preds = %186, %182
br label %194
194: ; preds = %193, %155
br label %195
195: ; preds = %194, %137
br label %196
196: ; preds = %195, %123
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"-li\00"
@.str.1 = [3 x i8] c"-i\00"
@.str.2 = [3 x i8] c"-o\00"
@.str.3 = [4 x i8] c"-lo\00"
@.str.4 = [3 x i8] c"-r\00"
@.str.5 = [7 x i8] c"--help\00"
@.str.6 = [3 x i8] c"-?\00"
@.str.7 = [3 x i8] c"-p\00"
@.str.8 = [3 x i8] c"-b\00"
@.str.9 = [3 x i8] c"-c\00"
@.str.10 = [3 x i8] c"-s\00"
define void @listeTestOption(i32 %0, i8** %1, i32* %2, i8** %3, i32* %4, i32 %5, i8** %6, i32* %7, i32 %8) {
%10 = alloca i32
%11 = bitcast i32* %10 to i8*
%12 = load i32, i32* %2
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8*, i8** %1, i64 %13
%15 = load i8*, i8** %14
%16 = load i8, i8* %15
%17 = icmp eq i8 %16, 45
br i1 %17, label %18, label %41
18: ; preds = %9
%19 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %41, label %21
21: ; preds = %18
%22 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %41, label %24
24: ; preds = %21
%25 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %41, label %27
27: ; preds = %24
%28 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %41, label %30
30: ; preds = %27
%31 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %41, label %33
33: ; preds = %30
%34 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %41, label %36
36: ; preds = %33
%37 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%38 = icmp ne i32 %37, 0
%39 = icmp sgt i32 %0, 1
%40 = and i1 %39, %38
br i1 %40, label %45, label %41
41: ; preds = %36, %33, %30, %27, %24, %21, %18, %9
%42 = icmp eq i32 %12, 0
%43 = icmp sgt i32 %0, 1
%44 = and i1 %43, %42
br i1 %44, label %45, label %52
45: ; preds = %41, %36
%46 = tail call i8* @incrementerInputOutput(i8** %3, i32* %4, i32 %5, i32 1)
%47 = tail call i8* @incrementerInputOutput(i8** %6, i32* %7, i32 %8, i32 0)
%48 = load i32, i32* %2
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8*, i8** %1, i64 %49
%51 = load i8*, i8** %50
br label %52
52: ; preds = %45, %41
%53 = phi i8* [ %51, %45 ], [ %15, %41 ]
%54 = phi i32 [ %48, %45 ], [ %12, %41 ]
%55 = phi i8* [ %46, %45 ], [ undef, %41 ]
%56 = phi i8* [ %47, %45 ], [ undef, %41 ]
store i32 0, i32* %10
%57 = tail call i32 @strcmp(i8* dereferenceable(1) %53, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %52
%60 = call i32 @panorama(i8** %3, i32 %5, i8* %56, i32* %10)
store i32 %5, i32* %4
br label %97
61: ; preds = %52
%62 = tail call i64 @testOptionAvecParametre(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %54, i32 %0, i8** %1)
%63 = icmp eq i64 %62, 0
%64 = load i32, i32* %2
br i1 %63, label %71, label %65
65: ; preds = %61
%66 = add nsw i32 %64, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8*, i8** %1, i64 %67
%69 = load i8*, i8** %68
%70 = call i32 @binaire(i8* %55, i8* %56, i8* %69, i32 1, i32* %10)
br label %97
71: ; preds = %61
%72 = tail call i64 @testOptionAvecParametre(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %64, i32 %0, i8** %1)
%73 = icmp eq i64 %72, 0
%74 = load i32, i32* %2
br i1 %73, label %81, label %75
75: ; preds = %71
%76 = add nsw i32 %74, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %1, i64 %77
%79 = load i8*, i8** %78
%80 = call i32 @convolution(i8* %55, i8* %56, i8* %79, i32 1, i32* %10)
br label %97
81: ; preds = %71
%82 = icmp eq i32 %74, 0
br i1 %82, label %91, label %83
83: ; preds = %81
%84 = sext i32 %74 to i64
%85 = getelementptr inbounds i8*, i8** %1, i64 %84
%86 = load i8*, i8** %85
%87 = tail call i32 @strcmp(i8* dereferenceable(1) %86, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%88 = icmp eq i32 %87, 0
%89 = icmp ne i32 %5, 0
%90 = and i1 %89, %88
br i1 %90, label %93, label %95
91: ; preds = %81
%92 = icmp eq i32 %5, 0
br i1 %92, label %95, label %93
93: ; preds = %83, %91
%94 = tail call i32 @testChargerImage(i8* %55, i8* %56)
br label %97
95: ; preds = %91, %83
%96 = tail call i32 @listeTestOption2(i32 %0, i8** %1, i32* %2, i8* %55, i8* %56)
br label %97
97: ; preds = %65, %93, %95, %75, %59
ret void
}