#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 LLONG_MAX;
long long LLONG_MIN;
int LONG_MAX;
long long LONG_MIN;
int SCHAR_MAX;
int SCHAR_MIN;
int SHRT_MAX;
int SHRT_MIN;
int UCHAR_MAX;
int UINT_MAX;
int ULLONG_MAX;
int ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, long long, int);
int main() {
  printf("signed char %d/%d\n", SCHAR_MIN, SCHAR_MAX);
  printf("unsigned char %u/%u\n", 0, UCHAR_MAX);
  printf("short int %d/%d\n", SHRT_MIN, SHRT_MAX);
  printf("unsigned short int %u/%u\n", 0, USHRT_MAX);
  printf("int %d/%d\n", INT_MIN, INT_MAX);
  printf("unsigned int %u/%u\n", 0, UINT_MAX);
  printf("long %ld/%ld\n", LONG_MIN, LONG_MAX);
  printf("unsigned long %lu/%lu\n", 0L, ULONG_MAX);
  printf("long long %lld/%lld\n", LLONG_MIN, LLONG_MAX);
  printf("unsigned long long %llu/%llu\n", 0LL, ULLONG_MAX);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e7a(%rip),%rax
movslq (%rax),%rsi
mov    0x2e68(%rip),%rax
mov    (%rax),%edx
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eab(%rip),%rax
mov    (%rax),%edx
lea    0xec5(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <printf@plt>
mov    0x2e22(%rip),%rax
movslq (%rax),%rsi
mov    0x2e10(%rip),%rax
mov    (%rax),%edx
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e5b(%rip),%rax
mov    (%rax),%edx
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <printf@plt>
mov    0x2e22(%rip),%rax
movslq (%rax),%rsi
mov    0x2e30(%rip),%rax
mov    (%rax),%edx
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e13(%rip),%rax
mov    (%rax),%edx
lea    0xe95(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <printf@plt>
mov    0x2df2(%rip),%rax
mov    (%rax),%rsi
mov    0x2db0(%rip),%rax
mov    (%rax),%edx
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d7b(%rip),%rax
mov    (%rax),%edx
lea    0xe7f(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <printf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%rsi
mov    0x2da0(%rip),%rax
mov    (%rax),%edx
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dbb(%rip),%rax
mov    (%rax),%edx
lea    0xe73(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e88(%rip),%rax
movslq (%rax),%rsi
mov    0x2e76(%rip),%rax
mov    (%rax),%edx
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eb9(%rip),%rax
mov    (%rax),%edx
lea    0xed3(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    0x2e32(%rip),%rax
movslq (%rax),%rsi
mov    0x2e20(%rip),%rax
mov    (%rax),%edx
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edx
lea    0xec3(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    0x2e34(%rip),%rax
movslq (%rax),%rsi
mov    0x2e42(%rip),%rax
mov    (%rax),%edx
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%edx
lea    0xea7(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    0x2e06(%rip),%rax
mov    (%rax),%rsi
mov    0x2dc4(%rip),%rax
mov    (%rax),%edx
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d8f(%rip),%rax
mov    (%rax),%edx
lea    0xe93(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%rsi
mov    0x2db6(%rip),%rax
mov    (%rax),%edx
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dd1(%rip),%rax
mov    (%rax),%edx
lea    0xe89(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"signed char %d/%d\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.1 = [21 x i8] c"unsigned char %u/%u\0A\00"
@UCHAR_MAX = global i32 0
@.str.2 = [17 x i8] c"short int %d/%d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.3 = [26 x i8] c"unsigned short int %u/%u\0A\00"
@USHRT_MAX = global i32 0
@.str.4 = [11 x i8] c"int %d/%d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.5 = [20 x i8] c"unsigned int %u/%u\0A\00"
@UINT_MAX = global i32 0
@.str.6 = [14 x i8] c"long %ld/%ld\0A\00"
@LONG_MIN = global i64 0
@LONG_MAX = global i32 0
@.str.7 = [23 x i8] c"unsigned long %lu/%lu\0A\00"
@ULONG_MAX = global i32 0
@.str.8 = [21 x i8] c"long long %lld/%lld\0A\00"
@LLONG_MIN = global i64 0
@LLONG_MAX = global i32 0
@.str.9 = [30 x i8] c"unsigned long long %llu/%llu\0A\00"
@ULLONG_MAX = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @SCHAR_MIN
%3 = sext i32 %2 to i64
%4 = load i32, i32* @SCHAR_MAX
%5 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i64 %3, i32 %4)
%6 = load i32, i32* @UCHAR_MAX
%7 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i64 0, i32 %6)
%8 = load i32, i32* @SHRT_MIN
%9 = sext i32 %8 to i64
%10 = load i32, i32* @SHRT_MAX
%11 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i64 %9, i32 %10)
%12 = load i32, i32* @USHRT_MAX
%13 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i64 0, i32 %12)
%14 = load i32, i32* @INT_MIN
%15 = sext i32 %14 to i64
%16 = load i32, i32* @INT_MAX
%17 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i64 %15, i32 %16)
%18 = load i32, i32* @UINT_MAX
%19 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i64 0, i32 %18)
%20 = load i64, i64* @LONG_MIN
%21 = load i32, i32* @LONG_MAX
%22 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i64 %20, i32 %21)
%23 = load i32, i32* @ULONG_MAX
%24 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i64 0, i32 %23)
%25 = load i64, i64* @LLONG_MIN
%26 = load i32, i32* @LLONG_MAX
%27 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i64 %25, i32 %26)
%28 = load i32, i32* @ULLONG_MAX
%29 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i64 0, i32 %28)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"signed char %d/%d\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.1 = [21 x i8] c"unsigned char %u/%u\0A\00"
@UCHAR_MAX = global i32 0
@.str.2 = [17 x i8] c"short int %d/%d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.3 = [26 x i8] c"unsigned short int %u/%u\0A\00"
@USHRT_MAX = global i32 0
@.str.4 = [11 x i8] c"int %d/%d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.5 = [20 x i8] c"unsigned int %u/%u\0A\00"
@UINT_MAX = global i32 0
@.str.6 = [14 x i8] c"long %ld/%ld\0A\00"
@LONG_MIN = global i64 0
@LONG_MAX = global i32 0
@.str.7 = [23 x i8] c"unsigned long %lu/%lu\0A\00"
@ULONG_MAX = global i32 0
@.str.8 = [21 x i8] c"long long %lld/%lld\0A\00"
@LLONG_MIN = global i64 0
@LLONG_MAX = global i32 0
@.str.9 = [30 x i8] c"unsigned long long %llu/%llu\0A\00"
@ULLONG_MAX = global i32 0
define i32 @main() {
%1 = load i32, i32* @SCHAR_MIN
%2 = sext i32 %1 to i64
%3 = load i32, i32* @SCHAR_MAX
%4 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i64 %2, i32 %3)
%5 = load i32, i32* @UCHAR_MAX
%6 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i64 0, i32 %5)
%7 = load i32, i32* @SHRT_MIN
%8 = sext i32 %7 to i64
%9 = load i32, i32* @SHRT_MAX
%10 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i64 %8, i32 %9)
%11 = load i32, i32* @USHRT_MAX
%12 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i64 0, i32 %11)
%13 = load i32, i32* @INT_MIN
%14 = sext i32 %13 to i64
%15 = load i32, i32* @INT_MAX
%16 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i64 %14, i32 %15)
%17 = load i32, i32* @UINT_MAX
%18 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i64 0, i32 %17)
%19 = load i64, i64* @LONG_MIN
%20 = load i32, i32* @LONG_MAX
%21 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i64 %19, i32 %20)
%22 = load i32, i32* @ULONG_MAX
%23 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i64 0, i32 %22)
%24 = load i64, i64* @LLONG_MIN
%25 = load i32, i32* @LLONG_MAX
%26 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i64 %24, i32 %25)
%27 = load i32, i32* @ULLONG_MAX
%28 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i64 0, i32 %27)
ret i32 0
}