#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;
scalar_t__ UCHAR_MAX;
int UINT_MAX;
int ULONG_MAX;
scalar_t__ USHRT_MAX;
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("Bits of type char: %d\n", CHAR_BIT);
  printf("Maximum numeric value of type char: %d\n", CHAR_MAX);
  printf("Minimum numeric value of type char: %d\n", CHAR_MIN);
  printf("Maximum value of type signed char: %d\n", SCHAR_MAX);
  printf("Minimum value of type signed char: %d\n", SCHAR_MIN);
  printf("Maximum value of type unsigned short: %u\n", (unsigned)UCHAR_MAX);
  printf("Maximum value of type short: %d\n", SHRT_MAX);
  printf("Minimum value of type short: %d\n", SHRT_MIN);
  printf("Maximum value of type unsigned short: %u\n", (unsigned)USHRT_MAX);
  printf("Maximum value of type int: %d\n", INT_MAX);
  printf("Minimum value of type int: %d\n", INT_MIN);
  printf("Maximum value of type unsigned int: %u\n", UINT_MAX);
  printf("Maximum value of type long: %ld\n", LONG_MAX);
  printf("Minimum value of type long: %ld\n", LONG_MIN);
  printf("Maximum value of type unsigned long: %lu\n", ULONG_MAX);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e75(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e93(%rip),%rax
mov    (%rax),%esi
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%esi
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%esi
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xf25(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%esi
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dcf(%rip),%rax
mov    (%rax),%esi
lea    0xf46(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e0a(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dea(%rip),%rax
mov    (%rax),%esi
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dbd(%rip),%rax
mov    (%rax),%esi
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
mov    0x2db8(%rip),%rax
mov    (%rax),%esi
lea    0xf4e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d6b(%rip),%rax
mov    (%rax),%esi
lea    0xf61(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d86(%rip),%rax
mov    (%rax),%esi
lea    0xf6d(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d21(%rip),%rax
mov    (%rax),%esi
lea    0xf79(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2e78(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eb3(%rip),%rax
mov    (%rax),%esi
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e96(%rip),%rax
mov    (%rax),%esi
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%esi
lea    0xf07(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%esi
lea    0xf2b(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2ddf(%rip),%rax
mov    (%rax),%esi
lea    0xf3d(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dd2(%rip),%rax
mov    (%rax),%esi
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%esi
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dc7(%rip),%rax
mov    (%rax),%esi
lea    0xf4e(%rip),%rdi
call   1030 <printf@plt>
mov    0x2dc2(%rip),%rax
mov    (%rax),%esi
lea    0xf58(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%esi
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d90(%rip),%rax
mov    (%rax),%esi
lea    0xf77(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d2b(%rip),%rax
mov    (%rax),%esi
lea    0xf83(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Bits of type char: %d\0A\00"
@CHAR_BIT = global i32 0
@.str.1 = [40 x i8] c"Maximum numeric value of type char: %d\0A\00"
@CHAR_MAX = global i32 0
@.str.2 = [40 x i8] c"Minimum numeric value of type char: %d\0A\00"
@CHAR_MIN = global i32 0
@.str.3 = [39 x i8] c"Maximum value of type signed char: %d\0A\00"
@SCHAR_MAX = global i32 0
@.str.4 = [39 x i8] c"Minimum value of type signed char: %d\0A\00"
@SCHAR_MIN = global i32 0
@.str.5 = [42 x i8] c"Maximum value of type unsigned short: %u\0A\00"
@UCHAR_MAX = global i64 0
@.str.6 = [33 x i8] c"Maximum value of type short: %d\0A\00"
@SHRT_MAX = global i32 0
@.str.7 = [33 x i8] c"Minimum value of type short: %d\0A\00"
@SHRT_MIN = global i32 0
@USHRT_MAX = global i64 0
@.str.8 = [31 x i8] c"Maximum value of type int: %d\0A\00"
@INT_MAX = global i32 0
@.str.9 = [31 x i8] c"Minimum value of type int: %d\0A\00"
@INT_MIN = global i32 0
@.str.10 = [40 x i8] c"Maximum value of type unsigned int: %u\0A\00"
@UINT_MAX = global i32 0
@.str.11 = [33 x i8] c"Maximum value of type long: %ld\0A\00"
@LONG_MAX = global i32 0
@.str.12 = [33 x i8] c"Minimum value of type long: %ld\0A\00"
@LONG_MIN = global i32 0
@.str.13 = [42 x i8] c"Maximum value of type 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 ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @CHAR_MAX
%4 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @CHAR_MIN
%6 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @SCHAR_MAX
%8 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @SCHAR_MIN
%10 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i64, i64* @UCHAR_MAX
%12 = trunc i64 %11 to i32
%13 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @SHRT_MAX
%15 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @SHRT_MIN
%17 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i32 %16)
%18 = load i64, i64* @USHRT_MAX
%19 = trunc i64 %18 to i32
%20 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @INT_MAX
%22 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @INT_MIN
%24 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @UINT_MAX
%26 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @LONG_MAX
%28 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i32 %27)
%29 = load i32, i32* @LONG_MIN
%30 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @ULONG_MAX
%32 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0), i32 %31)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"Bits of type char: %d\0A\00"
@CHAR_BIT = global i32 0
@.str.1 = [40 x i8] c"Maximum numeric value of type char: %d\0A\00"
@CHAR_MAX = global i32 0
@.str.2 = [40 x i8] c"Minimum numeric value of type char: %d\0A\00"
@CHAR_MIN = global i32 0
@.str.3 = [39 x i8] c"Maximum value of type signed char: %d\0A\00"
@SCHAR_MAX = global i32 0
@.str.4 = [39 x i8] c"Minimum value of type signed char: %d\0A\00"
@SCHAR_MIN = global i32 0
@.str.5 = [42 x i8] c"Maximum value of type unsigned short: %u\0A\00"
@UCHAR_MAX = global i64 0
@.str.6 = [33 x i8] c"Maximum value of type short: %d\0A\00"
@SHRT_MAX = global i32 0
@.str.7 = [33 x i8] c"Minimum value of type short: %d\0A\00"
@SHRT_MIN = global i32 0
@USHRT_MAX = global i64 0
@.str.8 = [31 x i8] c"Maximum value of type int: %d\0A\00"
@INT_MAX = global i32 0
@.str.9 = [31 x i8] c"Minimum value of type int: %d\0A\00"
@INT_MIN = global i32 0
@.str.10 = [40 x i8] c"Maximum value of type unsigned int: %u\0A\00"
@UINT_MAX = global i32 0
@.str.11 = [33 x i8] c"Maximum value of type long: %ld\0A\00"
@LONG_MAX = global i32 0
@.str.12 = [33 x i8] c"Minimum value of type long: %ld\0A\00"
@LONG_MIN = global i32 0
@.str.13 = [42 x i8] c"Maximum value of type 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 ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @CHAR_MAX
%4 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @CHAR_MIN
%6 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @SCHAR_MAX
%8 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @SCHAR_MIN
%10 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i64, i64* @UCHAR_MAX
%12 = trunc i64 %11 to i32
%13 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @SHRT_MAX
%15 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @SHRT_MIN
%17 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i32 %16)
%18 = load i64, i64* @USHRT_MAX
%19 = trunc i64 %18 to i32
%20 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @INT_MAX
%22 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @INT_MIN
%24 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @UINT_MAX
%26 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @LONG_MAX
%28 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i32 %27)
%29 = load i32, i32* @LONG_MIN
%30 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @ULONG_MAX
%32 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0), i32 %31)
ret i32 0
}