#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*/ appelerFonction(int, char **, char **, int, char **, int);
char **recupererInputOutput(int, char **, int, int *);
int gererOptions(int argc, char **argv) {
  int nombreInput;
  int nombreOutput;
  int int_result;
  char **input;
  char **output;
  int_result = 0;
  input = recupererInputOutput(argc, argv, 1, &nombreInput);
  output = recupererInputOutput(argc, argv, 0, &nombreOutput);
  appelerFonction(argc, argv, input, nombreInput, output, nombreOutput);
  return int_result;
}


x86 assembly (clang, -O0):
<gererOptions>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x1,%edx
lea    -0x14(%rbp),%rcx
call   1040 <recupererInputOutput@plt>
mov    %rax,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
lea    -0x18(%rbp),%rcx
call   1040 <recupererInputOutput@plt>
mov    %rax,-0x30(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x30(%rbp),%r8
mov    -0x18(%rbp),%r9d
call   1030 <appelerFonction@plt>
mov    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gererOptions>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xc(%rsp),%rcx
mov    $0x1,%edx
call   1040 <recupererInputOutput@plt>
mov    %rax,%r14
lea    0x8(%rsp),%rcx
mov    %ebp,%edi
mov    %rbx,%rsi
xor    %edx,%edx
call   1040 <recupererInputOutput@plt>
mov    0xc(%rsp),%ecx
mov    0x8(%rsp),%r9d
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %rax,%r8
call   1030 <appelerFonction@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @gererOptions(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 0, i32* %7
%10 = load i32, i32* %3
%11 = load i8**, i8*** %4
%12 = call i8** @recupererInputOutput(i32 %10, i8** %11, i32 1, i32* %5)
store i8** %12, i8*** %8
%13 = load i32, i32* %3
%14 = load i8**, i8*** %4
%15 = call i8** @recupererInputOutput(i32 %13, i8** %14, i32 0, i32* %6)
store i8** %15, i8*** %9
%16 = load i32, i32* %3
%17 = load i8**, i8*** %4
%18 = load i8**, i8*** %8
%19 = load i32, i32* %5
%20 = load i8**, i8*** %9
%21 = load i32, i32* %6
%22 = call i32 @appelerFonction(i32 %16, i8** %17, i8** %18, i32 %19, i8** %20, i32 %21)
%23 = load i32, i32* %7
ret i32 %23
}

LLVM IR (-O2):
define i32 @gererOptions(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = call i8** @recupererInputOutput(i32 %0, i8** %1, i32 1, i32* %3)
%8 = call i8** @recupererInputOutput(i32 %0, i8** %1, i32 0, i32* %4)
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = call i32 @appelerFonction(i32 %0, i8** %1, i8** %7, i32 %9, i8** %8, i32 %10)
ret i32 0
}