#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 SHRT_MAX;
int UCHAR_MAX;
int UINT_MAX;
int ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, int);
main() {
  printf("char %d\n", CHAR_BIT);
  printf("min char %d\n", CHAR_MIN);
  printf("max char %d\n", CHAR_MAX);
  printf("min short %d\n", SHRT_MAX);
  printf("max short  %d\n", SHRT_MAX);
  printf("min int %d\n", INT_MIN);
  printf("max int %d\n", INT_MAX);
  printf("min long %ld\n", LONG_MIN);
  printf("max long %ld\n", LONG_MAX);
  printf("max unsigned char %u\n", UCHAR_MAX);
  printf("max unsigned short %u\n", USHRT_MAX);
  printf("max unsigned int %u\n", UINT_MAX);
  printf("max unsigned long %lu\n", ULONG_MAX);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e85(%rip),%rax
mov    (%rax),%esi
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea8(%rip),%rax
mov    (%rax),%esi
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%esi
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%esi
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%esi
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e0a(%rip),%rax
mov    (%rax),%esi
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%esi
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%esi
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%esi
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%esi
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d69(%rip),%rax
mov    (%rax),%esi
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2e88(%rip),%rax
mov    (%rax),%esi
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eab(%rip),%rax
mov    (%rax),%esi
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9e(%rip),%rax
mov    (%rax),%esi
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e39(%rip),%rbx
mov    (%rbx),%esi
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%esi
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%esi
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e14(%rip),%rax
mov    (%rax),%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ddf(%rip),%rax
mov    (%rax),%esi
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%esi
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dc8(%rip),%rax
mov    (%rax),%esi
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%esi
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

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