#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 */
char ft_atoi(char *);
int /*<<< orphan*/ ft_div_mod(int, int, int *, int *);
int /*<<< orphan*/ ft_ft(int *);
int /*<<< orphan*/ ft_putchar(char);
int /*<<< orphan*/ ft_putstr(char *);
int ft_strlen(char *);
char *ft_strrev(char *);
int /*<<< orphan*/ ft_swap(int *, int *);
int /*<<< orphan*/ ft_ultimate_div_mod(int *, int *);
int /*<<< orphan*/ ft_ultimate_ft(int *********);
int main(void) {
  int un = 1;
  int *********i;
  int ********j;
  int *******k;
  int ******l;
  int *****m;
  int ****n;
  int ***o;
  int **p;
  int *q;
  int a = 14, b = 3, div = 0, mod = 0;
  char str[5] = "haha";
  q = &un;
  p = &q;
  o = &p;
  n = &o;
  m = &n;
  l = &m;
  k = &l;
  j = &k;
  i = &j;
  ft_ft(q);
  ft_ultimate_ft(i);
  ft_putchar(un);
  ft_putchar('\n');
  ft_div_mod(a, b, &div, &mod);
  ft_putchar(div + 60);
  ft_putchar(mod + 60);
  ft_putchar('\n');
  a = 14;
  b = 3;
  ft_ultimate_div_mod(&a, &b);
  ft_putchar(a + 60);
  ft_putchar(b + 60);
  ft_putchar('\n');
  ft_putstr(str);
  ft_putchar('\n');
  ft_putchar(ft_strlen(str) + 60);
  ft_putchar('\n');
  ft_swap(&a, &b);
  ft_putchar(a + 60);
  ft_putchar(b + 60);
  ft_putchar('\n');
  ft_putstr(ft_strrev(str));
  ft_putchar('\n');
  ft_putchar(ft_atoi("123"));
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0xe,-0x54(%rbp)
movl   $0x3,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x60(%rbp)
mov    0xe28(%rip),%eax
mov    %eax,-0x65(%rbp)
mov    0xe23(%rip),%al
mov    %al,-0x61(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    -0x50(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x48(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x50(%rbp),%rdi
call   1070 <ft_ft@plt>
mov    -0x10(%rbp),%rdi
call   1050 <ft_ultimate_ft@plt>
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
mov    -0x54(%rbp),%edi
mov    -0x58(%rbp),%esi
lea    -0x5c(%rbp),%rdx
lea    -0x60(%rbp),%rcx
call   1080 <ft_div_mod@plt>
mov    -0x5c(%rbp),%eax
add    $0x3c,%eax
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    -0x60(%rbp),%eax
add    $0x3c,%eax
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
movl   $0xe,-0x54(%rbp)
movl   $0x3,-0x58(%rbp)
lea    -0x54(%rbp),%rdi
lea    -0x58(%rbp),%rsi
call   10a0 <ft_ultimate_div_mod@plt>
mov    -0x54(%rbp),%eax
add    $0x3c,%eax
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    -0x58(%rbp),%eax
add    $0x3c,%eax
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
lea    -0x65(%rbp),%rdi
call   10b0 <ft_putstr@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
lea    -0x65(%rbp),%rdi
call   1040 <ft_strlen@plt>
add    $0x3c,%eax
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
lea    -0x54(%rbp),%rdi
lea    -0x58(%rbp),%rsi
call   1060 <ft_swap@plt>
mov    -0x54(%rbp),%eax
add    $0x3c,%eax
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    -0x58(%rbp),%eax
add    $0x3c,%eax
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
lea    -0x65(%rbp),%rdi
call   1030 <ft_strrev@plt>
mov    %rax,%rdi
call   10b0 <ft_putstr@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
lea    0xcb2(%rip),%rdi
call   10c0 <ft_atoi@plt>
movsbl %al,%edi
call   1090 <ft_putchar@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x60,%rsp
movl   $0x1,0x14(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
movb   $0x0,0x1c(%rsp)
movl   $0x61686168,0x18(%rsp)
61
lea    0x14(%rsp),%rdi
mov    %rdi,0x20(%rsp)
lea    0x20(%rsp),%rax
mov    %rax,0x28(%rsp)
lea    0x28(%rsp),%rax
mov    %rax,0x30(%rsp)
lea    0x30(%rsp),%rax
mov    %rax,0x38(%rsp)
lea    0x38(%rsp),%rax
mov    %rax,0x40(%rsp)
lea    0x40(%rsp),%rax
mov    %rax,0x48(%rsp)
lea    0x48(%rsp),%rax
mov    %rax,0x50(%rsp)
lea    0x50(%rsp),%rax
mov    %rax,0x58(%rsp)
call   1070 <ft_ft@plt>
lea    0x58(%rsp),%rdi
call   1050 <ft_ultimate_ft@plt>
movsbl 0x14(%rsp),%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
mov    $0xe,%edi
mov    $0x3,%esi
call   1080 <ft_div_mod@plt>
mov    0x10(%rsp),%al
add    $0x3c,%al
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    0xc(%rsp),%al
add    $0x3c,%al
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
movl   $0xe,0x8(%rsp)
movl   $0x3,0x4(%rsp)
lea    0x8(%rsp),%r15
lea    0x4(%rsp),%r14
mov    %r15,%rdi
mov    %r14,%rsi
call   10a0 <ft_ultimate_div_mod@plt>
mov    0x8(%rsp),%al
add    $0x3c,%al
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    0x4(%rsp),%al
add    $0x3c,%al
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
lea    0x18(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <ft_putstr@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
mov    %rbx,%rdi
call   1040 <ft_strlen@plt>
add    $0x3c,%al
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1060 <ft_swap@plt>
mov    0x8(%rsp),%al
add    $0x3c,%al
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    0x4(%rsp),%al
add    $0x3c,%al
movsbl %al,%edi
call   1090 <ft_putchar@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
mov    %rbx,%rdi
call   1030 <ft_strrev@plt>
mov    %rax,%rdi
call   10b0 <ft_putstr@plt>
mov    $0xa,%edi
call   1090 <ft_putchar@plt>
lea    0xcb5(%rip),%rdi
call   10c0 <ft_atoi@plt>
movsbl %al,%edi
call   1090 <ft_putchar@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.str = [5 x i8] c"haha\00"
@.str = [4 x i8] c"123\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*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca [5 x i8]
store i32 0, i32* %1
store i32 1, i32* %2
store i32 14, i32* %12
store i32 3, i32* %13
store i32 0, i32* %14
store i32 0, i32* %15
%17 = bitcast [5 x i8]* %16 to i8*
store i32* %2, i32** %11
store i32** %11, i32*** %10
store i32*** %10, i32**** %9
store i32**** %9, i32***** %8
store i32***** %8, i32****** %7
store i32****** %7, i32******* %6
store i32******* %6, i32******** %5
store i32******** %5, i32********* %4
store i32********* %4, i32********** %3
%18 = load i32*, i32** %11
%19 = call i32 @ft_ft(i32* %18)
%20 = load i32*********, i32********** %3
%21 = call i32 @ft_ultimate_ft(i32********* %20)
%22 = load i32, i32* %2
%23 = trunc i32 %22 to i8
%24 = call i32 @ft_putchar(i8 signext %23)
%25 = call i32 @ft_putchar(i8 signext 10)
%26 = load i32, i32* %12
%27 = load i32, i32* %13
%28 = call i32 @ft_div_mod(i32 %26, i32 %27, i32* %14, i32* %15)
%29 = load i32, i32* %14
%30 = add nsw i32 %29, 60
%31 = trunc i32 %30 to i8
%32 = call i32 @ft_putchar(i8 signext %31)
%33 = load i32, i32* %15
%34 = add nsw i32 %33, 60
%35 = trunc i32 %34 to i8
%36 = call i32 @ft_putchar(i8 signext %35)
%37 = call i32 @ft_putchar(i8 signext 10)
store i32 14, i32* %12
store i32 3, i32* %13
%38 = call i32 @ft_ultimate_div_mod(i32* %12, i32* %13)
%39 = load i32, i32* %12
%40 = add nsw i32 %39, 60
%41 = trunc i32 %40 to i8
%42 = call i32 @ft_putchar(i8 signext %41)
%43 = load i32, i32* %13
%44 = add nsw i32 %43, 60
%45 = trunc i32 %44 to i8
%46 = call i32 @ft_putchar(i8 signext %45)
%47 = call i32 @ft_putchar(i8 signext 10)
%48 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%49 = call i32 @ft_putstr(i8* %48)
%50 = call i32 @ft_putchar(i8 signext 10)
%51 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%52 = call i32 @ft_strlen(i8* %51)
%53 = add nsw i32 %52, 60
%54 = trunc i32 %53 to i8
%55 = call i32 @ft_putchar(i8 signext %54)
%56 = call i32 @ft_putchar(i8 signext 10)
%57 = call i32 @ft_swap(i32* %12, i32* %13)
%58 = load i32, i32* %12
%59 = add nsw i32 %58, 60
%60 = trunc i32 %59 to i8
%61 = call i32 @ft_putchar(i8 signext %60)
%62 = load i32, i32* %13
%63 = add nsw i32 %62, 60
%64 = trunc i32 %63 to i8
%65 = call i32 @ft_putchar(i8 signext %64)
%66 = call i32 @ft_putchar(i8 signext 10)
%67 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%68 = call i8* @ft_strrev(i8* %67)
%69 = call i32 @ft_putstr(i8* %68)
%70 = call i32 @ft_putchar(i8 signext 10)
%71 = call signext i8 @ft_atoi(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%72 = call i32 @ft_putchar(i8 signext %71)
ret i32 0
}

LLVM IR (-O2):
@__const.main.str = [5 x i8] c"haha\00"
@.str = [4 x i8] c"123\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
%12 = alloca i32
%13 = alloca i32
%14 = alloca [5 x i8]
%15 = bitcast i32* %1 to i8*
store i32 1, i32* %1
%16 = bitcast i32********* %2 to i8*
%17 = bitcast i32******** %3 to i8*
%18 = bitcast i32******* %4 to i8*
%19 = bitcast i32****** %5 to i8*
%20 = bitcast i32***** %6 to i8*
%21 = bitcast i32**** %7 to i8*
%22 = bitcast i32*** %8 to i8*
%23 = bitcast i32** %9 to i8*
%24 = bitcast i32* %10 to i8*
%25 = bitcast i32* %11 to i8*
%26 = bitcast i32* %12 to i8*
store i32 0, i32* %12
%27 = bitcast i32* %13 to i8*
store i32 0, i32* %13
%28 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
store i32* %1, i32** %9
store i32** %9, i32*** %8
store i32*** %8, i32**** %7
store i32**** %7, i32***** %6
store i32***** %6, i32****** %5
store i32****** %5, i32******* %4
store i32******* %4, i32******** %3
store i32******** %3, i32********* %2
%29 = call i32 @ft_ft(i32* %1)
%30 = call i32 @ft_ultimate_ft(i32********* %2)
%31 = load i32, i32* %1
%32 = trunc i32 %31 to i8
%33 = call i32 @ft_putchar(i8 signext %32)
%34 = call i32 @ft_putchar(i8 signext 10)
%35 = call i32 @ft_div_mod(i32 14, i32 3, i32* %12, i32* %13)
%36 = load i32, i32* %12
%37 = trunc i32 %36 to i8
%38 = add i8 %37, 60
%39 = call i32 @ft_putchar(i8 signext %38)
%40 = load i32, i32* %13
%41 = trunc i32 %40 to i8
%42 = add i8 %41, 60
%43 = call i32 @ft_putchar(i8 signext %42)
%44 = call i32 @ft_putchar(i8 signext 10)
store i32 14, i32* %10
store i32 3, i32* %11
%45 = call i32 @ft_ultimate_div_mod(i32* %10, i32* %11)
%46 = load i32, i32* %10
%47 = trunc i32 %46 to i8
%48 = add i8 %47, 60
%49 = call i32 @ft_putchar(i8 signext %48)
%50 = load i32, i32* %11
%51 = trunc i32 %50 to i8
%52 = add i8 %51, 60
%53 = call i32 @ft_putchar(i8 signext %52)
%54 = call i32 @ft_putchar(i8 signext 10)
%55 = call i32 @ft_putstr(i8* %28)
%56 = call i32 @ft_putchar(i8 signext 10)
%57 = call i32 @ft_strlen(i8* %28)
%58 = trunc i32 %57 to i8
%59 = add i8 %58, 60
%60 = call i32 @ft_putchar(i8 signext %59)
%61 = call i32 @ft_putchar(i8 signext 10)
%62 = call i32 @ft_swap(i32* %10, i32* %11)
%63 = load i32, i32* %10
%64 = trunc i32 %63 to i8
%65 = add i8 %64, 60
%66 = call i32 @ft_putchar(i8 signext %65)
%67 = load i32, i32* %11
%68 = trunc i32 %67 to i8
%69 = add i8 %68, 60
%70 = call i32 @ft_putchar(i8 signext %69)
%71 = call i32 @ft_putchar(i8 signext 10)
%72 = call i8* @ft_strrev(i8* %28)
%73 = call i32 @ft_putstr(i8* %72)
%74 = call i32 @ft_putchar(i8 signext 10)
%75 = call signext i8 @ft_atoi(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%76 = call i32 @ft_putchar(i8 signext %75)
ret i32 0
}