#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*/ backtrack(char **, int /*<<< orphan*/);
int /*<<< orphan*/ ft_display(char **);
int /*<<< orphan*/ ft_putchar(char);
int /*<<< orphan*/ ft_putstr(char *);
char **ft_tabcpy(char **);
int main(int ac, char **av) {
  char **tab;
  if (ac == 10) {
    tab = ft_tabcpy(av);
    ft_display(tab);
    ft_putchar('\n');
    backtrack(tab, 0);
    ft_display(tab);
  } else
    ft_putstr("Erreur\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0xa,-0x8(%rbp)
jne    11a9 <main+0x59>
mov    -0x10(%rbp),%rdi
call   1060 <ft_tabcpy@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <ft_display@plt>
mov    $0xa,%edi
call   1040 <ft_putchar@plt>
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1030 <backtrack@plt>
mov    -0x18(%rbp),%rdi
call   1050 <ft_display@plt>
jmp    11b5 <main+0x65>
lea    0xe50(%rip),%rdi
call   1070 <ft_putstr@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0xa,%edi
jne    1187 <main+0x37>
mov    %rsi,%rdi
call   1060 <ft_tabcpy@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1050 <ft_display@plt>
mov    $0xa,%edi
call   1040 <ft_putchar@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <backtrack@plt>
mov    %rbx,%rdi
call   1050 <ft_display@plt>
jmp    1193 <main+0x43>
lea    0xe72(%rip),%rdi
call   1070 <ft_putstr@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"Erreur\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 10
br i1 %8, label %9, label %19
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = call i8** @ft_tabcpy(i8** %10)
store i8** %11, i8*** %6
%12 = load i8**, i8*** %6
%13 = call i32 @ft_display(i8** %12)
%14 = call i32 @ft_putchar(i8 signext 10)
%15 = load i8**, i8*** %6
%16 = call i32 @backtrack(i8** %15, i32 0)
%17 = load i8**, i8*** %6
%18 = call i32 @ft_display(i8** %17)
br label %21
19: ; preds = %2
%20 = call i32 @ft_putstr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %21
21: ; preds = %19, %9
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"Erreur\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp eq i32 %0, 10
br i1 %3, label %4, label %10
4: ; preds = %2
%5 = tail call i8** @ft_tabcpy(i8** %1)
%6 = tail call i32 @ft_display(i8** %5)
%7 = tail call i32 @ft_putchar(i8 signext 10)
%8 = tail call i32 @backtrack(i8** %5, i32 0)
%9 = tail call i32 @ft_display(i8** %5)
br label %12
10: ; preds = %2
%11 = tail call i32 @ft_putstr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %10, %4
ret i32 0
}