#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_BIT;
int CHAR_MAX;
int CHAR_MIN;
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, ...);
int /*<<< orphan*/ putchar(char);
main() {
  printf("The size of char is %d\n", CHAR_BIT);
  printf("The ranges of char is %d ~ %d\n", CHAR_MIN, CHAR_MAX);
  printf("The ranges of unsigned char is %d ~ %u\n", 0, UCHAR_MAX);
  printf("The ranges of signed char is %d ~ %d\n", SCHAR_MIN, SCHAR_MAX);
  putchar('\n');
  printf("The ranges of short is %d ~ %d\n", SHRT_MIN, SHRT_MAX);
  printf("The ranges of unsigned short is %d ~ %u\n", 0, USHRT_MAX);
  putchar('\n');
  printf("The ranges of int is %d ~ %d\n", INT_MIN, INT_MAX);
  printf("The ranges of unsigned int is %d ~ %u\n", 0, UINT_MAX);
  putchar('\n');
  printf("The ranges of long is %ld ~ %ld\n", LONG_MIN, LONG_MAX);
  printf("The ranges of unsigned long is %u ~ %lu\n", 0, ULONG_MAX);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e5a(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%esi
mov    0x2e8a(%rip),%rax
mov    (%rax),%edx
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2e83(%rip),%rax
mov    (%rax),%edx
lea    0xec1(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2e1a(%rip),%rax
mov    (%rax),%esi
mov    0x2e09(%rip),%rax
mov    (%rax),%edx
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2dd0(%rip),%rax
mov    (%rax),%esi
mov    0x2dbf(%rip),%rax
mov    (%rax),%edx
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2e00(%rip),%rax
mov    (%rax),%edx
lea    0xecc(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2dbd(%rip),%rax
mov    (%rax),%esi
mov    0x2dcc(%rip),%rax
mov    (%rax),%edx
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2dad(%rip),%rax
mov    (%rax),%edx
lea    0xed0(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2d82(%rip),%rax
mov    (%rax),%esi
mov    0x2d49(%rip),%rax
mov    (%rax),%edx
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d12(%rip),%rax
mov    (%rax),%edx
lea    0xed5(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e68(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e99(%rip),%rax
mov    (%rax),%esi
mov    0x2e98(%rip),%rax
mov    (%rax),%edx
lea    0xec7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edx
lea    0xecf(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e28(%rip),%rax
mov    (%rax),%esi
mov    0x2e17(%rip),%rax
mov    (%rax),%edx
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%esi
mov    0x2dcd(%rip),%rax
mov    (%rax),%edx
lea    0xed1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e0e(%rip),%rax
mov    (%rax),%edx
lea    0xeda(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2dcb(%rip),%rax
mov    (%rax),%esi
mov    0x2dda(%rip),%rax
mov    (%rax),%edx
lea    0xed7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dbb(%rip),%rax
mov    (%rax),%edx
lea    0xede(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2d90(%rip),%rax
mov    (%rax),%esi
mov    0x2d57(%rip),%rax
mov    (%rax),%edx
lea    0xed9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d20(%rip),%rax
mov    (%rax),%edx
lea    0xee3(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"The size of char is %d\0A\00"
@CHAR_BIT = global i32 0
@.str.1 = [31 x i8] c"The ranges of char is %d ~ %d\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.2 = [40 x i8] c"The ranges of unsigned char is %d ~ %u\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [38 x i8] c"The ranges of signed char is %d ~ %d\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.4 = [32 x i8] c"The ranges of short is %d ~ %d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.5 = [41 x i8] c"The ranges of unsigned short is %d ~ %u\0A\00"
@USHRT_MAX = global i32 0
@.str.6 = [30 x i8] c"The ranges of int is %d ~ %d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.7 = [39 x i8] c"The ranges of unsigned int is %d ~ %u\0A\00"
@UINT_MAX = global i32 0
@.str.8 = [33 x i8] c"The ranges of long is %ld ~ %ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.9 = [41 x i8] c"The ranges of unsigned long is %u ~ %lu\0A\00"
@ULONG_MAX = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @CHAR_BIT
%3 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @CHAR_MIN
%5 = load i32, i32* @CHAR_MAX
%6 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %4, i32 %5)
%7 = load i32, i32* @UCHAR_MAX
%8 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 %7)
%9 = load i32, i32* @SCHAR_MIN
%10 = load i32, i32* @SCHAR_MAX
%11 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i32 %9, i32 %10)
%12 = call i32 @putchar(i8 signext 10)
%13 = load i32, i32* @SHRT_MIN
%14 = load i32, i32* @SHRT_MAX
%15 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %13, i32 %14)
%16 = load i32, i32* @USHRT_MAX
%17 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 %16)
%18 = call i32 @putchar(i8 signext 10)
%19 = load i32, i32* @INT_MIN
%20 = load i32, i32* @INT_MAX
%21 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 %19, i32 %20)
%22 = load i32, i32* @UINT_MAX
%23 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 %22)
%24 = call i32 @putchar(i8 signext 10)
%25 = load i32, i32* @LONG_MIN
%26 = load i32, i32* @LONG_MAX
%27 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 %25, i32 %26)
%28 = load i32, i32* @ULONG_MAX
%29 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 %28)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"The size of char is %d\0A\00"
@CHAR_BIT = global i32 0
@.str.1 = [31 x i8] c"The ranges of char is %d ~ %d\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.2 = [40 x i8] c"The ranges of unsigned char is %d ~ %u\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [38 x i8] c"The ranges of signed char is %d ~ %d\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.4 = [32 x i8] c"The ranges of short is %d ~ %d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.5 = [41 x i8] c"The ranges of unsigned short is %d ~ %u\0A\00"
@USHRT_MAX = global i32 0
@.str.6 = [30 x i8] c"The ranges of int is %d ~ %d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.7 = [39 x i8] c"The ranges of unsigned int is %d ~ %u\0A\00"
@UINT_MAX = global i32 0
@.str.8 = [33 x i8] c"The ranges of long is %ld ~ %ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.9 = [41 x i8] c"The ranges of unsigned long is %u ~ %lu\0A\00"
@ULONG_MAX = global i32 0
define i32 @main() {
%1 = load i32, i32* @CHAR_BIT
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @CHAR_MIN
%4 = load i32, i32* @CHAR_MAX
%5 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %3, i32 %4)
%6 = load i32, i32* @UCHAR_MAX
%7 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 %6)
%8 = load i32, i32* @SCHAR_MIN
%9 = load i32, i32* @SCHAR_MAX
%10 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i32 %8, i32 %9)
%11 = tail call i32 @putchar(i8 signext 10)
%12 = load i32, i32* @SHRT_MIN
%13 = load i32, i32* @SHRT_MAX
%14 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %12, i32 %13)
%15 = load i32, i32* @USHRT_MAX
%16 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 %15)
%17 = tail call i32 @putchar(i8 signext 10)
%18 = load i32, i32* @INT_MIN
%19 = load i32, i32* @INT_MAX
%20 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 %18, i32 %19)
%21 = load i32, i32* @UINT_MAX
%22 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 %21)
%23 = tail call i32 @putchar(i8 signext 10)
%24 = load i32, i32* @LONG_MIN
%25 = load i32, i32* @LONG_MAX
%26 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 %24, i32 %25)
%27 = load i32, i32* @ULONG_MAX
%28 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 %27)
ret i32 0
}