#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*/ ft_ultimate_ft(int *********);
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int nbr;
  int *ptr;
  int **ptr2;
  int ***ptr3;
  int ****ptr4;
  int *****ptr5;
  int ******ptr6;
  int *******ptr7;
  int ********ptr8;
  int *********ptr9;
  nbr = 3;
  printf("Before the call, nbr: %i\n", nbr);
  ptr = &nbr;
  ptr2 = &ptr;
  ptr3 = &ptr2;
  ptr4 = &ptr3;
  ptr5 = &ptr4;
  ptr6 = &ptr5;
  ptr7 = &ptr6;
  ptr8 = &ptr7;
  ptr9 = &ptr8;
  ft_ultimate_ft(ptr9);
  printf("After the call, nbr: %i\n", nbr);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
lea    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
call   1040 <ft_ultimate_ft@plt>
mov    -0x8(%rbp),%esi
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movl   $0x3,0x4(%rsp)
lea    0xecd(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0x4(%rsp),%rax
mov    %rax,0x40(%rsp)
lea    0x40(%rsp),%rax
mov    %rax,0x38(%rsp)
lea    0x38(%rsp),%rax
mov    %rax,0x30(%rsp)
lea    0x30(%rsp),%rax
mov    %rax,0x28(%rsp)
lea    0x28(%rsp),%rax
mov    %rax,0x20(%rsp)
lea    0x20(%rsp),%rax
mov    %rax,0x18(%rsp)
lea    0x18(%rsp),%rax
mov    %rax,0x10(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,0x8(%rsp)
lea    0x8(%rsp),%rdi
call   1040 <ft_ultimate_ft@plt>
mov    0x4(%rsp),%esi
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Before the call, nbr: %i\0A\00"
@.str.1 = [25 x i8] c"After the call, nbr: %i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32**
%5 = alloca i32***
%6 = alloca i32****
%7 = alloca i32*****
%8 = alloca i32******
%9 = alloca i32*******
%10 = alloca i32********
%11 = alloca i32*********
store i32 0, i32* %1
store i32 3, i32* %2
%12 = load i32, i32* %2
%13 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %12)
store i32* %2, i32** %3
store i32** %3, i32*** %4
store i32*** %4, i32**** %5
store i32**** %5, i32***** %6
store i32***** %6, i32****** %7
store i32****** %7, i32******* %8
store i32******* %8, i32******** %9
store i32******** %9, i32********* %10
store i32********* %10, i32********** %11
%14 = load i32*********, i32********** %11
%15 = call i32 @ft_ultimate_ft(i32********* %14)
%16 = load i32, i32* %2
%17 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %16)
ret i32 0
}

LLVM IR (-O2):
@.str = [26 x i8] c"Before the call, nbr: %i\0A\00"
@.str.1 = [25 x i8] c"After the call, nbr: %i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32**
%4 = alloca i32***
%5 = alloca i32****
%6 = alloca i32*****
%7 = alloca i32******
%8 = alloca i32*******
%9 = alloca i32********
%10 = bitcast i32* %1 to i8*
%11 = bitcast i32** %2 to i8*
%12 = bitcast i32*** %3 to i8*
%13 = bitcast i32**** %4 to i8*
%14 = bitcast i32***** %5 to i8*
%15 = bitcast i32****** %6 to i8*
%16 = bitcast i32******* %7 to i8*
%17 = bitcast i32******** %8 to i8*
%18 = bitcast i32********* %9 to i8*
store i32 3, i32* %1
%19 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 3)
store i32* %1, i32** %2
store i32** %2, i32*** %3
store i32*** %3, i32**** %4
store i32**** %4, i32***** %5
store i32***** %5, i32****** %6
store i32****** %6, i32******* %7
store i32******* %7, i32******** %8
store i32******** %8, i32********* %9
%20 = call i32 @ft_ultimate_ft(i32********* %9)
%21 = load i32, i32* %1
%22 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %21)
ret i32 0
}