#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*/ CHAR_MAX;
int /*<<< orphan*/ CHAR_MIN;
int /*<<< orphan*/ DBL_MAX;
int /*<<< orphan*/ FLT_MAX;
int /*<<< orphan*/ INT_MAX;
int /*<<< orphan*/ INT_MIN;
int /*<<< orphan*/ LDBL_MAX;
int /*<<< orphan*/ LLONG_MAX;
int /*<<< orphan*/ LLONG_MIN;
int /*<<< orphan*/ LONG_MAX;
int /*<<< orphan*/ LONG_MIN;
int /*<<< orphan*/ UCHAR_MAX;
int /*<<< orphan*/ UINT_MAX;
int /*<<< orphan*/ ULLONG_MAX;
int /*<<< orphan*/ ULONG_MAX;
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  printf("Type\t\t\tBytes\t\tMin Value\t\tMax Value\n");
  printf("---------------------------------------------------------------------"
         "------\n");
  printf("unsigned char\t\t%lu\t\t%d\t\t\t%d\n", sizeof(unsigned char), 0,
         UCHAR_MAX);
  printf("char\t\t\t%lu\t\t%d\t\t\t%d\n", sizeof(char), CHAR_MIN, CHAR_MAX);
  printf("unsigned int\t\t%lu\t\t%d\t\t\t%u\n", sizeof(unsigned int), 0,
         UINT_MAX);
  printf("int\t\t\t%lu\t\t%d\t\t%d\n", sizeof(int), INT_MIN, INT_MAX);
  printf("unsigned long\t\t%lu\t\t%d\t\t\t%lu\n", sizeof(unsigned long), 0,
         ULONG_MAX);
  printf("long\t\t\t%ld\t\t%ld\t%ld\n", sizeof(long), LONG_MIN, LONG_MAX);
  printf("unsigned long long\t%lu\t\t%d\t\t\t%llu\n",
         sizeof(unsigned long long), 0, ULLONG_MAX);
  printf("long long\t\t%lu\t\t%lld\t%lld\n", sizeof(long long), LLONG_MIN,
         LLONG_MAX);
  printf("float\t\t\t%lu\t\t%e\t\t%e\n", sizeof(float), -FLT_MAX, FLT_MAX);
  printf("double\t\t\t%lu\t\t%e\t\t%e\n", sizeof(double), -DBL_MAX, DBL_MAX);
  printf("long double\t\t%lu\t\t%Le\t\t%Le\n", sizeof(long double), -LDBL_MAX,
         LDBL_MAX);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%ecx
lea    0xf26(%rip),%rdi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e78(%rip),%rax
mov    (%rax),%edx
mov    0x2e77(%rip),%rax
mov    (%rax),%ecx
lea    0xf1c(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%ecx
lea    0xf15(%rip),%rdi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edx
mov    0x2e1c(%rip),%rax
mov    (%rax),%ecx
lea    0xf0a(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%ecx
lea    0xf01(%rip),%rdi
mov    $0x8,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dd2(%rip),%rax
mov    (%rax),%edx
mov    0x2d91(%rip),%rax
mov    (%rax),%ecx
lea    0xef8(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%ecx
lea    0xef1(%rip),%rdi
mov    $0x8,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d67(%rip),%rax
mov    (%rax),%edx
mov    0x2d76(%rip),%rax
mov    (%rax),%ecx
lea    0xeed(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edx,%edx
mov    0x2d50(%rip),%rax
sub    (%rax),%edx
mov    0x2d47(%rip),%rax
mov    (%rax),%ecx
lea    0xee1(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edx,%edx
mov    0x2d01(%rip),%rax
sub    (%rax),%edx
mov    0x2cf8(%rip),%rax
mov    (%rax),%ecx
lea    0xecf(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edx,%edx
mov    0x2cea(%rip),%rax
sub    (%rax),%edx
mov    0x2ce1(%rip),%rax
mov    (%rax),%ecx
lea    0xebe(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xff1(%rip),%rdi
call   1030 <puts@plt>
lea    0x1008(%rip),%rdi
call   1030 <puts@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%ecx
lea    0xeb7(%rip),%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e7a(%rip),%rax
mov    (%rax),%edx
mov    0x2e79(%rip),%rax
mov    (%rax),%ecx
lea    0xead(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%ecx
lea    0xea6(%rip),%rdi
mov    $0x4,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edx
mov    0x2e1e(%rip),%rax
mov    (%rax),%ecx
lea    0xe9b(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2da2(%rip),%rax
mov    (%rax),%ecx
lea    0xe92(%rip),%rdi
mov    $0x8,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edx
mov    0x2d93(%rip),%rax
mov    (%rax),%ecx
lea    0xe89(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dc7(%rip),%rax
mov    (%rax),%ecx
lea    0xe82(%rip),%rdi
mov    $0x8,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d69(%rip),%rax
mov    (%rax),%edx
mov    0x2d78(%rip),%rax
mov    (%rax),%ecx
lea    0xe7e(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d54(%rip),%rax
mov    (%rax),%ecx
mov    %ecx,%edx
neg    %edx
lea    0xe79(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d0c(%rip),%rax
mov    (%rax),%ecx
mov    %ecx,%edx
neg    %edx
lea    0xe6e(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2cfc(%rip),%rax
mov    (%rax),%ecx
mov    %ecx,%edx
neg    %edx
lea    0xe64(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"Type\09\09\09Bytes\09\09Min Value\09\09Max Value\0A\00"
@.str.1 = [77 x i8] c"---------------------------------------------------------------------------\0A\00"
@.str.2 = [29 x i8] c"unsigned char\09\09%lu\09\09%d\09\09\09%d\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [21 x i8] c"char\09\09\09%lu\09\09%d\09\09\09%d\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.4 = [28 x i8] c"unsigned int\09\09%lu\09\09%d\09\09\09%u\0A\00"
@UINT_MAX = global i32 0
@.str.5 = [19 x i8] c"int\09\09\09%lu\09\09%d\09\09%d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.6 = [30 x i8] c"unsigned long\09\09%lu\09\09%d\09\09\09%lu\0A\00"
@ULONG_MAX = global i32 0
@.str.7 = [21 x i8] c"long\09\09\09%ld\09\09%ld\09%ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.8 = [35 x i8] c"unsigned long long\09%lu\09\09%d\09\09\09%llu\0A\00"
@ULLONG_MAX = global i32 0
@.str.9 = [27 x i8] c"long long\09\09%lu\09\09%lld\09%lld\0A\00"
@LLONG_MIN = global i32 0
@LLONG_MAX = global i32 0
@.str.10 = [21 x i8] c"float\09\09\09%lu\09\09%e\09\09%e\0A\00"
@FLT_MAX = global i32 0
@.str.11 = [22 x i8] c"double\09\09\09%lu\09\09%e\09\09%e\0A\00"
@DBL_MAX = global i32 0
@.str.12 = [28 x i8] c"long double\09\09%lu\09\09%Le\09\09%Le\0A\00"
@LDBL_MAX = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @UCHAR_MAX
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i64 1, i32 0, i32 %7)
%9 = load i32, i32* @CHAR_MIN
%10 = load i32, i32* @CHAR_MAX
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i64 1, i32 %9, i32 %10)
%12 = load i32, i32* @UINT_MAX
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i64 4, i32 0, i32 %12)
%14 = load i32, i32* @INT_MIN
%15 = load i32, i32* @INT_MAX
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 4, i32 %14, i32 %15)
%17 = load i32, i32* @ULONG_MAX
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i64 8, i32 0, i32 %17)
%19 = load i32, i32* @LONG_MIN
%20 = load i32, i32* @LONG_MAX
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i64 8, i32 %19, i32 %20)
%22 = load i32, i32* @ULLONG_MAX
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i64 8, i32 0, i32 %22)
%24 = load i32, i32* @LLONG_MIN
%25 = load i32, i32* @LLONG_MAX
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i64 8, i32 %24, i32 %25)
%27 = load i32, i32* @FLT_MAX
%28 = sub nsw i32 0, %27
%29 = load i32, i32* @FLT_MAX
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i64 4, i32 %28, i32 %29)
%31 = load i32, i32* @DBL_MAX
%32 = sub nsw i32 0, %31
%33 = load i32, i32* @DBL_MAX
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i64 8, i32 %32, i32 %33)
%35 = load i32, i32* @LDBL_MAX
%36 = sub nsw i32 0, %35
%37 = load i32, i32* @LDBL_MAX
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i64 16, i32 %36, i32 %37)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [29 x i8] c"unsigned char\09\09%lu\09\09%d\09\09\09%d\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [21 x i8] c"char\09\09\09%lu\09\09%d\09\09\09%d\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.4 = [28 x i8] c"unsigned int\09\09%lu\09\09%d\09\09\09%u\0A\00"
@UINT_MAX = global i32 0
@.str.5 = [19 x i8] c"int\09\09\09%lu\09\09%d\09\09%d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.6 = [30 x i8] c"unsigned long\09\09%lu\09\09%d\09\09\09%lu\0A\00"
@ULONG_MAX = global i32 0
@.str.7 = [21 x i8] c"long\09\09\09%ld\09\09%ld\09%ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.8 = [35 x i8] c"unsigned long long\09%lu\09\09%d\09\09\09%llu\0A\00"
@ULLONG_MAX = global i32 0
@.str.9 = [27 x i8] c"long long\09\09%lu\09\09%lld\09%lld\0A\00"
@LLONG_MIN = global i32 0
@LLONG_MAX = global i32 0
@.str.10 = [21 x i8] c"float\09\09\09%lu\09\09%e\09\09%e\0A\00"
@FLT_MAX = global i32 0
@.str.11 = [22 x i8] c"double\09\09\09%lu\09\09%e\09\09%e\0A\00"
@DBL_MAX = global i32 0
@.str.12 = [28 x i8] c"long double\09\09%lu\09\09%Le\09\09%Le\0A\00"
@LDBL_MAX = global i32 0
@str = [35 x i8] c"Type\09\09\09Bytes\09\09Min Value\09\09Max Value\00"
@str.13 = [76 x i8] c"---------------------------------------------------------------------------\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.13, i64 0, i64 0))
%5 = load i32, i32* @UCHAR_MAX
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i64 1, i32 0, i32 %5)
%7 = load i32, i32* @CHAR_MIN
%8 = load i32, i32* @CHAR_MAX
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i64 1, i32 %7, i32 %8)
%10 = load i32, i32* @UINT_MAX
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i64 4, i32 0, i32 %10)
%12 = load i32, i32* @INT_MIN
%13 = load i32, i32* @INT_MAX
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 4, i32 %12, i32 %13)
%15 = load i32, i32* @ULONG_MAX
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i64 8, i32 0, i32 %15)
%17 = load i32, i32* @LONG_MIN
%18 = load i32, i32* @LONG_MAX
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i64 8, i32 %17, i32 %18)
%20 = load i32, i32* @ULLONG_MAX
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i64 8, i32 0, i32 %20)
%22 = load i32, i32* @LLONG_MIN
%23 = load i32, i32* @LLONG_MAX
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i64 8, i32 %22, i32 %23)
%25 = load i32, i32* @FLT_MAX
%26 = sub nsw i32 0, %25
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i64 4, i32 %26, i32 %25)
%28 = load i32, i32* @DBL_MAX
%29 = sub nsw i32 0, %28
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i64 8, i32 %29, i32 %28)
%31 = load i32, i32* @LDBL_MAX
%32 = sub nsw i32 0, %31
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i64 16, i32 %32, i32 %31)
ret i32 0
}