#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 CHAR_MAX;
int CHAR_MIN;
int INT_MAX;
int INT_MIN;
int LLONG_MAX;
int LLONG_MIN;
int LONG_MAX;
int LONG_MIN;
int SHRT_MAX;
int SHRT_MIN;
int /*<<< orphan*/ printf(char *, int, int);
int main(void) {
  printf("char  : % 20d % 20d\n", CHAR_MIN, CHAR_MAX);
  printf("short : % 20d % 20d\n", SHRT_MIN, SHRT_MAX);
  printf("int   : % 20d % 20d\n", INT_MIN, INT_MAX);
  printf("long  : % 20ld % 20ld\n", LONG_MIN, LONG_MAX);
  printf("llong : % 20lld % 20lld\n", LLONG_MIN, LLONG_MAX);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%esi
mov    0x2eb9(%rip),%rax
mov    (%rax),%edx
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
mov    0x2e4b(%rip),%rax
mov    (%rax),%edx
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%esi
mov    0x2e6d(%rip),%rax
mov    (%rax),%edx
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%esi
mov    0x2e1f(%rip),%rax
mov    (%rax),%edx
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%esi
mov    0x2e19(%rip),%rax
mov    (%rax),%edx
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
mov    0x2ec7(%rip),%rax
mov    (%rax),%edx
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6a(%rip),%rax
mov    (%rax),%esi
mov    0x2e59(%rip),%rax
mov    (%rax),%edx
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%esi
mov    0x2e7b(%rip),%rax
mov    (%rax),%edx
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e5e(%rip),%rax
mov    (%rax),%esi
mov    0x2e2d(%rip),%rax
mov    (%rax),%edx
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e20(%rip),%rax
mov    (%rax),%esi
mov    0x2e27(%rip),%rax
mov    (%rax),%edx
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"char : % 20d % 20d\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.1 = [21 x i8] c"short : % 20d % 20d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.2 = [21 x i8] c"int : % 20d % 20d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.3 = [23 x i8] c"long : % 20ld % 20ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.4 = [25 x i8] c"llong : % 20lld % 20lld\0A\00"
@LLONG_MIN = global i32 0
@LLONG_MAX = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @CHAR_MIN
%3 = load i32, i32* @CHAR_MAX
%4 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3)
%5 = load i32, i32* @SHRT_MIN
%6 = load i32, i32* @SHRT_MAX
%7 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %5, i32 %6)
%8 = load i32, i32* @INT_MIN
%9 = load i32, i32* @INT_MAX
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %8, i32 %9)
%11 = load i32, i32* @LONG_MIN
%12 = load i32, i32* @LONG_MAX
%13 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %11, i32 %12)
%14 = load i32, i32* @LLONG_MIN
%15 = load i32, i32* @LLONG_MAX
%16 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %14, i32 %15)
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"char : % 20d % 20d\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.1 = [21 x i8] c"short : % 20d % 20d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.2 = [21 x i8] c"int : % 20d % 20d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.3 = [23 x i8] c"long : % 20ld % 20ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.4 = [25 x i8] c"llong : % 20lld % 20lld\0A\00"
@LLONG_MIN = global i32 0
@LLONG_MAX = global i32 0
define i32 @main() {
%1 = load i32, i32* @CHAR_MIN
%2 = load i32, i32* @CHAR_MAX
%3 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2)
%4 = load i32, i32* @SHRT_MIN
%5 = load i32, i32* @SHRT_MAX
%6 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %4, i32 %5)
%7 = load i32, i32* @INT_MIN
%8 = load i32, i32* @INT_MAX
%9 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %7, i32 %8)
%10 = load i32, i32* @LONG_MIN
%11 = load i32, i32* @LONG_MAX
%12 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %10, i32 %11)
%13 = load i32, i32* @LLONG_MIN
%14 = load i32, i32* @LLONG_MAX
%15 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %13, i32 %14)
ret i32 0
}