#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 LONG_MAX;
int LONG_MIN;
int SCHAR_MAX;
int SCHAR_MIN;
int SHRT_MAX;
int SHRT_MIN;
int UCHAR_MAX;
int UINT_MAX;
int ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("Datatype Range: From limit.h Header\n");
  printf("Datatype:\tMinimum Value\t\t->\tMaximum Value\n");
  printf("Signed char:\t%d\t\t\t->\t%d\n", SCHAR_MIN, SCHAR_MAX);
  printf("Unsigned char:\t%d\t\t\t->\t%d\n", 0, UCHAR_MAX);
  printf("Signed short:\t%d\t\t\t->\t%d\n", SHRT_MIN, SHRT_MAX);
  printf("Unsigned short:\t%d\t\t\t->\t%d\n", 0, USHRT_MAX);
  printf("Signed int:\t%d\t\t->\t%d\n", INT_MIN, INT_MAX);
  printf("Unsigned int:\t%u\t\t\t->\t%u\n", 0, UINT_MAX);
  printf("Signed long:\t%ld\t->\t%ld\n", LONG_MIN, LONG_MAX);
  printf("Unsigned long:\t%d\t\t\t->\t%lu\n", 0, ULONG_MAX);
  printf("\n");
  printf("Datatype Range: Computed Values\n");
  printf("Datatype:\tMinimum Value\t\t->\tMaximum Value\n");
  printf("Signed char:\t%d\t\t\t->\t%d\n", -0x7f - 1, 0x7f);
  printf("Unsigned char:\t%d\t\t\t->\t%d\n", 0, 0xff);
  printf("Signed short:\t%d\t\t\t->\t%d\n", -0x7fff - 1, 0x7fff);
  printf("Unsigned short:\t%d\t\t\t->\t%d\n", 0, 0xffff);
  printf("Signed int:\t%d\t\t->\t%d\n", -0x7fffffff - 1, 0x7fffffff);
  printf("Unsigned int:\t%u\t\t\t->\t%u\n", 0, 0xffffffff);
  printf("Signed long:\t%ld\t->\t%ld\n", LONG_MIN, LONG_MAX);
  printf("Unsigned long:\t%d\t\t\t->\t%lu\n", 0, ULONG_MAX);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%esi
mov    0x2e5d(%rip),%rax
mov    (%rax),%edx
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edx
lea    0xefe(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%esi
mov    0x2e0c(%rip),%rax
mov    (%rax),%edx
lea    0xef7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e45(%rip),%rax
mov    (%rax),%edx
lea    0xefa(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e0c(%rip),%rax
mov    (%rax),%esi
mov    0x2e1b(%rip),%rax
mov    (%rax),%edx
lea    0xef4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%edx
lea    0xef4(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2ddb(%rip),%rax
mov    (%rax),%esi
mov    0x2daa(%rip),%rax
mov    (%rax),%edx
lea    0xeec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%edx
lea    0xeee(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe00(%rip),%rdi
mov    $0xffffff80,%esi
mov    $0x7f,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe01(%rip),%rdi
xor    %esi,%esi
mov    $0xff,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe07(%rip),%rdi
mov    $0xffff8000,%esi
mov    $0x7fff,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe09(%rip),%rdi
xor    %esi,%esi
mov    $0xffff,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe10(%rip),%rdi
mov    $0x80000000,%esi
mov    $0x7fffffff,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe0f(%rip),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cf1(%rip),%rax
mov    (%rax),%esi
mov    0x2cc0(%rip),%rax
mov    (%rax),%edx
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2c89(%rip),%rax
mov    (%rax),%edx
lea    0xe04(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xf8e(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1040 <puts@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%esi
mov    0x2e45(%rip),%rax
mov    (%rax),%edx
lea    0xe94(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edx
lea    0xe96(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e05(%rip),%rax
mov    (%rax),%esi
mov    0x2df4(%rip),%rax
mov    (%rax),%edx
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edx
lea    0xe92(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%esi
mov    0x2e03(%rip),%rax
mov    (%rax),%edx
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2de4(%rip),%rax
mov    (%rax),%edx
lea    0xe8c(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dc0(%rip),%r13
mov    0x0(%r13),%esi
mov    0x2d8d(%rip),%rbx
mov    (%rbx),%edx
lea    0xe7f(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d53(%rip),%rbp
mov    0x0(%rbp),%edx
lea    0xe7d(%rip),%r12
mov    %r12,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xea0(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb4(%rip),%rdi
call   1040 <puts@plt>
lea    0xd94(%rip),%rdi
mov    $0xffffff80,%esi
mov    $0x7f,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd95(%rip),%rdi
xor    %esi,%esi
mov    $0xff,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd9b(%rip),%rdi
mov    $0xffff8000,%esi
mov    $0x7fff,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd9d(%rip),%rdi
xor    %esi,%esi
mov    $0xffff,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xda4(%rip),%rdi
mov    $0x80000000,%esi
mov    $0x7fffffff,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13),%esi
mov    (%rbx),%edx
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%rbp),%edx
mov    %r12,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [37 x i8] c"Datatype Range: From limit.h Header\0A\00"
@.str.1 = [43 x i8] c"Datatype:\09Minimum Value\09\09->\09Maximum Value\0A\00"
@.str.2 = [25 x i8] c"Signed char:\09%d\09\09\09->\09%d\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.3 = [27 x i8] c"Unsigned char:\09%d\09\09\09->\09%d\0A\00"
@UCHAR_MAX = global i32 0
@.str.4 = [26 x i8] c"Signed short:\09%d\09\09\09->\09%d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.5 = [28 x i8] c"Unsigned short:\09%d\09\09\09->\09%d\0A\00"
@USHRT_MAX = global i32 0
@.str.6 = [23 x i8] c"Signed int:\09%d\09\09->\09%d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.7 = [26 x i8] c"Unsigned int:\09%u\09\09\09->\09%u\0A\00"
@UINT_MAX = global i32 0
@.str.8 = [25 x i8] c"Signed long:\09%ld\09->\09%ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.9 = [28 x i8] c"Unsigned long:\09%d\09\09\09->\09%lu\0A\00"
@ULONG_MAX = global i32 0
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [33 x i8] c"Datatype Range: Computed Values\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @SCHAR_MIN
%5 = load i32, i32* @SCHAR_MAX
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %4, i32 %5)
%7 = load i32, i32* @UCHAR_MAX
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 %7)
%9 = load i32, i32* @SHRT_MIN
%10 = load i32, i32* @SHRT_MAX
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %9, i32 %10)
%12 = load i32, i32* @USHRT_MAX
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 %12)
%14 = load i32, i32* @INT_MIN
%15 = load i32, i32* @INT_MAX
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %14, i32 %15)
%17 = load i32, i32* @UINT_MAX
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 %17)
%19 = load i32, i32* @LONG_MIN
%20 = load i32, i32* @LONG_MAX
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %19, i32 %20)
%22 = load i32, i32* @ULONG_MAX
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 -128, i32 127)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 255)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 -32768, i32 32767)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 65535)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 -2147483648, i32 2147483647)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 -1)
%33 = load i32, i32* @LONG_MIN
%34 = load i32, i32* @LONG_MAX
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %33, i32 %34)
%36 = load i32, i32* @ULONG_MAX
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 %36)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [25 x i8] c"Signed char:\09%d\09\09\09->\09%d\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.3 = [27 x i8] c"Unsigned char:\09%d\09\09\09->\09%d\0A\00"
@UCHAR_MAX = global i32 0
@.str.4 = [26 x i8] c"Signed short:\09%d\09\09\09->\09%d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.5 = [28 x i8] c"Unsigned short:\09%d\09\09\09->\09%d\0A\00"
@USHRT_MAX = global i32 0
@.str.6 = [23 x i8] c"Signed int:\09%d\09\09->\09%d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.7 = [26 x i8] c"Unsigned int:\09%u\09\09\09->\09%u\0A\00"
@UINT_MAX = global i32 0
@.str.8 = [25 x i8] c"Signed long:\09%ld\09->\09%ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.9 = [28 x i8] c"Unsigned long:\09%d\09\09\09->\09%lu\0A\00"
@ULONG_MAX = global i32 0
@str = [36 x i8] c"Datatype Range: From limit.h Header\00"
@str.13 = [32 x i8] c"Datatype Range: Computed Values\00"
@str.14 = [42 x i8] c"Datatype:\09Minimum Value\09\09->\09Maximum Value\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.14, i64 0, i64 0))
%3 = load i32, i32* @SCHAR_MIN
%4 = load i32, i32* @SCHAR_MAX
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 %4)
%6 = load i32, i32* @UCHAR_MAX
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 %6)
%8 = load i32, i32* @SHRT_MIN
%9 = load i32, i32* @SHRT_MAX
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %8, i32 %9)
%11 = load i32, i32* @USHRT_MAX
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 %11)
%13 = load i32, i32* @INT_MIN
%14 = load i32, i32* @INT_MAX
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %13, i32 %14)
%16 = load i32, i32* @UINT_MAX
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 %16)
%18 = load i32, i32* @LONG_MIN
%19 = load i32, i32* @LONG_MAX
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %18, i32 %19)
%21 = load i32, i32* @ULONG_MAX
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 %21)
%23 = tail call i32 @putchar(i32 10)
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.13, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.14, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 -128, i32 127)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 255)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 -32768, i32 32767)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 65535)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 -2147483648, i32 2147483647)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 -1)
%32 = load i32, i32* @LONG_MIN
%33 = load i32, i32* @LONG_MAX
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %32, i32 %33)
%35 = load i32, i32* @ULONG_MAX
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 %35)
ret i32 0
}