#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;
unsigned long LONG_MAX;
unsigned long LONG_MIN;
int UCHAR_MAX;
int UINT_MAX;
unsigned long ULONG_MAX;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("\n%.20s (%lud bytes)\n------------------\n", "unsigned char",
         sizeof(unsigned char));
  printf(" min: %d 0x%x\n", 0, 0);
  printf(" max: %d 0x%x\n", UCHAR_MAX, UCHAR_MAX);
  printf("\n%.20s (%lud bytes)\n------------------\n", "char", sizeof(char));
  printf(" min: %d 0x%x\n", CHAR_MIN, CHAR_MIN);
  printf(" max: %d 0x%x\n", CHAR_MAX, CHAR_MAX);
  printf("\n%.20s (%lud bytes)\n------------------\n", "unsigned int",
         sizeof(unsigned int));
  printf(" min: %d 0x%x\n", 0, 0);
  printf(" max: %ud 0x%x\n", UINT_MAX, UINT_MAX);
  printf("\n%.20s (%lud bytes)\n------------------\n", "int", sizeof(int));
  printf(" min: %d 0x%x\n", INT_MIN, INT_MIN);
  printf(" max: %d 0x%x\n", INT_MAX, INT_MAX);
  printf("\n%.20s (%lud bytes)\n------------------\n", "unsigned long int",
         sizeof(unsigned long int));
  printf(" min: %ld 0x%x\n", (unsigned long int)0, 0);
  printf(" max: %lud 0x%lx\n", ULONG_MAX, ULONG_MAX);
  printf("\n%.20s (%lud bytes)\n------------------\n", "long int",
         sizeof(long int));
  printf(" min: %ld 0x%lx\n", LONG_MIN, LONG_MIN);
  printf(" max: %ld 0x%lx\n", LONG_MAX, LONG_MAX);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    0xefb(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
xor    %edx,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e9e(%rip),%rax
mov    (%rax),%esi
mov    0x2e95(%rip),%rax
mov    (%rax),%edx
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
lea    0xeb8(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%esi
mov    0x2e43(%rip),%rax
mov    (%rax),%edx
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
mov    0x2e2b(%rip),%rax
mov    (%rax),%edx
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe34(%rip),%rdi
lea    0xe81(%rip),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe50(%rip),%rdi
xor    %edx,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dd0(%rip),%rax
mov    (%rax),%esi
mov    0x2dc7(%rip),%rax
mov    (%rax),%edx
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xde8(%rip),%rdi
lea    0xe3e(%rip),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d86(%rip),%rax
mov    (%rax),%esi
mov    0x2d7d(%rip),%rax
mov    (%rax),%edx
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d7e(%rip),%rax
mov    (%rax),%esi
mov    0x2d75(%rip),%rax
mov    (%rax),%edx
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd8e(%rip),%rdi
lea    0xdf8(%rip),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf7(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cf8(%rip),%rax
mov    (%rax),%rsi
mov    0x2cee(%rip),%rax
mov    (%rax),%rdx
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd3e(%rip),%rdi
lea    0xdb1(%rip),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2ce4(%rip),%rax
mov    (%rax),%rsi
mov    0x2cda(%rip),%rax
mov    (%rax),%rdx
lea    0xdb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2caa(%rip),%rax
mov    (%rax),%rsi
mov    0x2ca0(%rip),%rax
mov    (%rax),%rdx
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0xee4(%rip),%r14
lea    0xf05(%rip),%rsi
mov    $0x1,%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefd(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edx
lea    0xeee(%rip),%r15
mov    %r15,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec7(%rip),%rsi
mov    $0x1,%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e58(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeaa(%rip),%rsi
mov    $0x4,%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2dfa(%rip),%rax
mov    (%rax),%edx
lea    0xe8a(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe76(%rip),%rsi
mov    $0x4,%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2dbb(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe4a(%rip),%rsi
mov    $0x8,%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe46(%rip),%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2d49(%rip),%rax
mov    (%rax),%rdx
lea    0xe3a(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe10(%rip),%rsi
mov    $0x8,%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2d40(%rip),%rax
mov    (%rax),%rdx
lea    0xe1b(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2d0d(%rip),%rax
mov    (%rax),%rdx
lea    0xe11(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [40 x i8] c"\0A%.20s (%lud bytes)\0A------------------\0A\00"
@.str.1 = [14 x i8] c"unsigned char\00"
@.str.2 = [15 x i8] c" min: %d 0x%x\0A\00"
@.str.3 = [15 x i8] c" max: %d 0x%x\0A\00"
@UCHAR_MAX = global i32 0
@.str.4 = [5 x i8] c"char\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.5 = [13 x i8] c"unsigned int\00"
@.str.6 = [16 x i8] c" max: %ud 0x%x\0A\00"
@UINT_MAX = global i32 0
@.str.7 = [4 x i8] c"int\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.8 = [18 x i8] c"unsigned long int\00"
@.str.9 = [16 x i8] c" min: %ld 0x%x\0A\00"
@.str.10 = [18 x i8] c" max: %lud 0x%lx\0A\00"
@ULONG_MAX = global i64 0
@.str.11 = [9 x i8] c"long int\00"
@.str.12 = [17 x i8] c" min: %ld 0x%lx\0A\00"
@LONG_MIN = global i64 0
@.str.13 = [17 x i8] c" max: %ld 0x%lx\0A\00"
@LONG_MAX = global i64 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i64 1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0)
%4 = load i32, i32* @UCHAR_MAX
%5 = load i32, i32* @UCHAR_MAX
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %4, i32 %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 1)
%8 = load i32, i32* @CHAR_MIN
%9 = load i32, i32* @CHAR_MIN
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %8, i32 %9)
%11 = load i32, i32* @CHAR_MAX
%12 = load i32, i32* @CHAR_MAX
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %11, i32 %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i64 4)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0)
%16 = load i32, i32* @UINT_MAX
%17 = load i32, i32* @UINT_MAX
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %16, i32 %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i64 4)
%20 = load i32, i32* @INT_MIN
%21 = load i32, i32* @INT_MIN
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %20, i32 %21)
%23 = load i32, i32* @INT_MAX
%24 = load i32, i32* @INT_MAX
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %23, i32 %24)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i64 8)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i64 0, i32 0)
%28 = load i64, i64* @ULONG_MAX
%29 = load i64, i64* @ULONG_MAX
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i64 %28, i64 %29)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i64 8)
%32 = load i64, i64* @LONG_MIN
%33 = load i64, i64* @LONG_MIN
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i64 %32, i64 %33)
%35 = load i64, i64* @LONG_MAX
%36 = load i64, i64* @LONG_MAX
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i64 %35, i64 %36)
ret i32 0
}

LLVM IR (-O2):
@.str = [40 x i8] c"\0A%.20s (%lud bytes)\0A------------------\0A\00"
@.str.1 = [14 x i8] c"unsigned char\00"
@.str.2 = [15 x i8] c" min: %d 0x%x\0A\00"
@.str.3 = [15 x i8] c" max: %d 0x%x\0A\00"
@UCHAR_MAX = global i32 0
@.str.4 = [5 x i8] c"char\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.5 = [13 x i8] c"unsigned int\00"
@.str.6 = [16 x i8] c" max: %ud 0x%x\0A\00"
@UINT_MAX = global i32 0
@.str.7 = [4 x i8] c"int\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.8 = [18 x i8] c"unsigned long int\00"
@.str.9 = [16 x i8] c" min: %ld 0x%x\0A\00"
@.str.10 = [18 x i8] c" max: %lud 0x%lx\0A\00"
@ULONG_MAX = global i64 0
@.str.11 = [9 x i8] c"long int\00"
@.str.12 = [17 x i8] c" min: %ld 0x%lx\0A\00"
@LONG_MIN = global i64 0
@.str.13 = [17 x i8] c" max: %ld 0x%lx\0A\00"
@LONG_MAX = global i64 0
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i64 1)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0)
%3 = load i32, i32* @UCHAR_MAX
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %3, i32 %3)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 1)
%6 = load i32, i32* @CHAR_MIN
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %6)
%8 = load i32, i32* @CHAR_MAX
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %8, i32 %8)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i64 4)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0)
%12 = load i32, i32* @UINT_MAX
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %12, i32 %12)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i64 4)
%15 = load i32, i32* @INT_MIN
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32 %15)
%17 = load i32, i32* @INT_MAX
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %17, i32 %17)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i64 8)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i64 0, i32 0)
%21 = load i64, i64* @ULONG_MAX
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i64 %21, i64 %21)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i64 8)
%24 = load i64, i64* @LONG_MIN
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i64 %24, i64 %24)
%26 = load i64, i64* @LONG_MAX
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i64 %26, i64 %26)
ret i32 0
}