#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 INT_MAX;
int INT_MIN;
int /*<<< orphan*/ itoa(int, char *);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  char s[128];
  printf("%-13s %s\n", "number", "string");
  printf("--------------------\n");
  itoa(INT_MIN, s);
  printf("%-13d %s\n", INT_MIN, s);
  itoa(-93048, s);
  printf("%-13d %s\n", -93048, s);
  itoa(INT_MAX, s);
  printf("%-13d %s\n", INT_MAX, s);
  itoa(56748, s);
  printf("%-13d %s\n", 56748, s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec7(%rip),%rdi
lea    0xeca(%rip),%rsi
lea    0xeca(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
lea    -0x90(%rbp),%rsi
call   1040 <itoa@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%esi
lea    -0x90(%rbp),%rdx
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x90(%rbp),%rsi
mov    $0xfffe9488,%edi
call   1040 <itoa@plt>
lea    -0x90(%rbp),%rdx
lea    0xe80(%rip),%rdi
mov    $0xfffe9488,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%edi
lea    -0x90(%rbp),%rsi
call   1040 <itoa@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%esi
lea    -0x90(%rbp),%rdx
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x90(%rbp),%rsi
mov    $0xddac,%edi
call   1040 <itoa@plt>
lea    -0x90(%rbp),%rdx
lea    0xe22(%rip),%rdi
mov    $0xddac,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
lea    0xebd(%rip),%rdi
lea    0xec0(%rip),%rsi
lea    0xec0(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e75(%rip),%r14
mov    (%r14),%edi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <itoa@plt>
mov    (%r14),%esi
lea    0xe95(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xfffe9488,%edi
mov    %rbx,%rsi
call   1050 <itoa@plt>
mov    %r14,%rdi
mov    $0xfffe9488,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e32(%rip),%r15
mov    (%r15),%edi
mov    %rbx,%rsi
call   1050 <itoa@plt>
mov    (%r15),%esi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xddac,%edi
mov    %rbx,%rsi
call   1050 <itoa@plt>
mov    %r14,%rdi
mov    $0xddac,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%-13s %s\0A\00"
@.str.1 = [7 x i8] c"number\00"
@.str.2 = [7 x i8] c"string\00"
@.str.3 = [22 x i8] c"--------------------\0A\00"
@INT_MIN = global i32 0
@.str.4 = [10 x i8] c"%-13d %s\0A\00"
@INT_MAX = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [128 x i8]
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%5 = load i32, i32* @INT_MIN
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%7 = call i32 @itoa(i32 %5, i8* %6)
%8 = load i32, i32* @INT_MIN
%9 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %8, i8* %9)
%11 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%12 = call i32 @itoa(i32 -93048, i8* %11)
%13 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 -93048, i8* %13)
%15 = load i32, i32* @INT_MAX
%16 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%17 = call i32 @itoa(i32 %15, i8* %16)
%18 = load i32, i32* @INT_MAX
%19 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %18, i8* %19)
%21 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%22 = call i32 @itoa(i32 56748, i8* %21)
%23 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 56748, i8* %23)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"%-13s %s\0A\00"
@.str.1 = [7 x i8] c"number\00"
@.str.2 = [7 x i8] c"string\00"
@INT_MIN = global i32 0
@.str.4 = [10 x i8] c"%-13d %s\0A\00"
@INT_MAX = global i32 0
@str = [21 x i8] c"--------------------\00"
define i32 @main() {
%1 = alloca [128 x i8]
%2 = getelementptr inbounds [128 x i8], [128 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%5 = load i32, i32* @INT_MIN
%6 = call i32 @itoa(i32 %5, i8* %2)
%7 = load i32, i32* @INT_MIN
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %7, i8* %2)
%9 = call i32 @itoa(i32 -93048, i8* %2)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 -93048, i8* %2)
%11 = load i32, i32* @INT_MAX
%12 = call i32 @itoa(i32 %11, i8* %2)
%13 = load i32, i32* @INT_MAX
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %13, i8* %2)
%15 = call i32 @itoa(i32 56748, i8* %2)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 56748, i8* %2)
ret i32 0
}