#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 */
scalar_t__ CHAR_BIT;
scalar_t__ CHAR_MAX;
scalar_t__ CHAR_MIN;
int INT_MAX;
int INT_MIN;
int LONG_MAX;
int LONG_MIN;
scalar_t__ SCHAR_MAX;
scalar_t__ SCHAR_MIN;
scalar_t__ SHRT_MAX;
scalar_t__ SHRT_MIN;
scalar_t__ UCHAR_MAX;
int UINT_MAX;
int ULONG_MAX;
scalar_t__ USHRT_MAX;
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
void show_limits_h(void) {
  puts("[<limits.h>]");
  puts("    kind = header");
  printf("    CHAR_BIT = %d\n", (int)CHAR_BIT);
  printf("    SCHAR_MIN = %d\n", (int)SCHAR_MIN);
  printf("    SCHAR_MAX = %d\n", (int)SCHAR_MAX);
  printf("    UCHAR_MAX = %d\n", (int)UCHAR_MAX);
  printf("    CHAR_MIN = %d\n", (int)CHAR_MIN);
  printf("    CHAR_MAX = %d\n", (int)CHAR_MAX);
  puts("    MB_LEN_MAX = undefined");
  printf("    SHRT_MIN = %d\n", (int)SHRT_MIN);
  printf("    SHRT_MAX = %d\n", (int)SHRT_MAX);
  printf("    USHRT_MAX = %d\n", (int)USHRT_MAX);
  printf("    INT_MIN = %d\n", INT_MIN);
  printf("    INT_MAX = %d\n", INT_MAX);
  printf("    UINT_MAX = %u\n", UINT_MAX);
  printf("    LONG_MIN = %ld\n", LONG_MIN);
  printf("    LONG_MAX = %ld\n", LONG_MAX);
  printf("    ULONG_MAX = %lu\n", ULONG_MAX);
  puts("    LLONG_MIN = undefined");
  puts("    LLONG_MIN = undefined");
  puts("    ULLONG_MIN = undefined");
  putchar('\n');
}


x86 assembly (clang, -O0):
<show_limits_h>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <puts@plt>
lea    0xec6(%rip),%rdi
call   1040 <puts@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xec0(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xebb(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e15(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeb7(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e55(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeb3(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeaf(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e15(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeaa(%rip),%rdi
call   1050 <printf@plt>
lea    0xeb1(%rip),%rdi
call   1040 <puts@plt>
mov    0x2d91(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeb4(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeaf(%rip),%rdi
call   1050 <printf@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xeaa(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d79(%rip),%rax
mov    (%rax),%esi
lea    0xea9(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d7c(%rip),%rax
mov    (%rax),%esi
lea    0xea6(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d5f(%rip),%rax
mov    (%rax),%esi
lea    0xea3(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d42(%rip),%rax
mov    (%rax),%esi
lea    0xea1(%rip),%rdi
call   1050 <printf@plt>
mov    0x2cfd(%rip),%rax
mov    (%rax),%esi
lea    0xea0(%rip),%rdi
call   1050 <printf@plt>
mov    0x2cc8(%rip),%rax
mov    (%rax),%esi
lea    0xe9f(%rip),%rdi
call   1050 <printf@plt>
lea    0xea8(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9c(%rip),%rdi
call   1040 <puts@plt>
lea    0xeaa(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_limits_h>:
push   %rbx
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xec9(%rip),%rdi
call   1040 <puts@plt>
mov    0x2e40(%rip),%rax
mov    (%rax),%esi
lea    0xec6(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%esi
lea    0xec4(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%esi
lea    0xec3(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%esi
lea    0xec2(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%esi
lea    0xebf(%rip),%rdi
call   1050 <printf@plt>
lea    0xec6(%rip),%rdi
call   1040 <puts@plt>
mov    0x2da6(%rip),%rax
mov    (%rax),%esi
lea    0xecc(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%esi
lea    0xeca(%rip),%rdi
call   1050 <printf@plt>
mov    0x2dcc(%rip),%rax
mov    (%rax),%esi
lea    0xec8(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d97(%rip),%rax
mov    (%rax),%esi
lea    0xec7(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d9a(%rip),%rax
mov    (%rax),%esi
lea    0xec4(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%esi
lea    0xebf(%rip),%rdi
call   1050 <printf@plt>
mov    0x2d1b(%rip),%rax
mov    (%rax),%esi
lea    0xebe(%rip),%rdi
call   1050 <printf@plt>
mov    0x2ce6(%rip),%rax
mov    (%rax),%esi
lea    0xebd(%rip),%rdi
call   1050 <printf@plt>
lea    0xec6(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xec9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"[<limits.h>]\00"
@.str.1 = [18 x i8] c" kind = header\00"
@.str.2 = [19 x i8] c" CHAR_BIT = %d\0A\00"
@CHAR_BIT = global i64 0
@.str.3 = [20 x i8] c" SCHAR_MIN = %d\0A\00"
@SCHAR_MIN = global i64 0
@.str.4 = [20 x i8] c" SCHAR_MAX = %d\0A\00"
@SCHAR_MAX = global i64 0
@.str.5 = [20 x i8] c" UCHAR_MAX = %d\0A\00"
@UCHAR_MAX = global i64 0
@.str.6 = [19 x i8] c" CHAR_MIN = %d\0A\00"
@CHAR_MIN = global i64 0
@.str.7 = [19 x i8] c" CHAR_MAX = %d\0A\00"
@CHAR_MAX = global i64 0
@.str.8 = [27 x i8] c" MB_LEN_MAX = undefined\00"
@.str.9 = [19 x i8] c" SHRT_MIN = %d\0A\00"
@SHRT_MIN = global i64 0
@.str.10 = [19 x i8] c" SHRT_MAX = %d\0A\00"
@SHRT_MAX = global i64 0
@.str.11 = [20 x i8] c" USHRT_MAX = %d\0A\00"
@USHRT_MAX = global i64 0
@.str.12 = [18 x i8] c" INT_MIN = %d\0A\00"
@INT_MIN = global i32 0
@.str.13 = [18 x i8] c" INT_MAX = %d\0A\00"
@INT_MAX = global i32 0
@.str.14 = [19 x i8] c" UINT_MAX = %u\0A\00"
@UINT_MAX = global i32 0
@.str.15 = [20 x i8] c" LONG_MIN = %ld\0A\00"
@LONG_MIN = global i32 0
@.str.16 = [20 x i8] c" LONG_MAX = %ld\0A\00"
@LONG_MAX = global i32 0
@.str.17 = [21 x i8] c" ULONG_MAX = %lu\0A\00"
@ULONG_MAX = global i32 0
@.str.18 = [26 x i8] c" LLONG_MIN = undefined\00"
@.str.19 = [27 x i8] c" ULLONG_MIN = undefined\00"
define void @show_limits_h() {
%1 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%3 = load i64, i64* @CHAR_BIT
%4 = trunc i64 %3 to i32
%5 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = load i64, i64* @SCHAR_MIN
%7 = trunc i64 %6 to i32
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i64, i64* @SCHAR_MAX
%10 = trunc i64 %9 to i32
%11 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i64, i64* @UCHAR_MAX
%13 = trunc i64 %12 to i32
%14 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %13)
%15 = load i64, i64* @CHAR_MIN
%16 = trunc i64 %15 to i32
%17 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %16)
%18 = load i64, i64* @CHAR_MAX
%19 = trunc i64 %18 to i32
%20 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %19)
%21 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%22 = load i64, i64* @SHRT_MIN
%23 = trunc i64 %22 to i32
%24 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i32 %23)
%25 = load i64, i64* @SHRT_MAX
%26 = trunc i64 %25 to i32
%27 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 %26)
%28 = load i64, i64* @USHRT_MAX
%29 = trunc i64 %28 to i32
%30 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @INT_MIN
%32 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i32 %31)
%33 = load i32, i32* @INT_MAX
%34 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %33)
%35 = load i32, i32* @UINT_MAX
%36 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 %35)
%37 = load i32, i32* @LONG_MIN
%38 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i32 %37)
%39 = load i32, i32* @LONG_MAX
%40 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), i32 %39)
%41 = load i32, i32* @ULONG_MAX
%42 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i32 %41)
%43 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%44 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%45 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0))
%46 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"[<limits.h>]\00"
@.str.1 = [18 x i8] c" kind = header\00"
@.str.2 = [19 x i8] c" CHAR_BIT = %d\0A\00"
@CHAR_BIT = global i64 0
@.str.3 = [20 x i8] c" SCHAR_MIN = %d\0A\00"
@SCHAR_MIN = global i64 0
@.str.4 = [20 x i8] c" SCHAR_MAX = %d\0A\00"
@SCHAR_MAX = global i64 0
@.str.5 = [20 x i8] c" UCHAR_MAX = %d\0A\00"
@UCHAR_MAX = global i64 0
@.str.6 = [19 x i8] c" CHAR_MIN = %d\0A\00"
@CHAR_MIN = global i64 0
@.str.7 = [19 x i8] c" CHAR_MAX = %d\0A\00"
@CHAR_MAX = global i64 0
@.str.8 = [27 x i8] c" MB_LEN_MAX = undefined\00"
@.str.9 = [19 x i8] c" SHRT_MIN = %d\0A\00"
@SHRT_MIN = global i64 0
@.str.10 = [19 x i8] c" SHRT_MAX = %d\0A\00"
@SHRT_MAX = global i64 0
@.str.11 = [20 x i8] c" USHRT_MAX = %d\0A\00"
@USHRT_MAX = global i64 0
@.str.12 = [18 x i8] c" INT_MIN = %d\0A\00"
@INT_MIN = global i32 0
@.str.13 = [18 x i8] c" INT_MAX = %d\0A\00"
@INT_MAX = global i32 0
@.str.14 = [19 x i8] c" UINT_MAX = %u\0A\00"
@UINT_MAX = global i32 0
@.str.15 = [20 x i8] c" LONG_MIN = %ld\0A\00"
@LONG_MIN = global i32 0
@.str.16 = [20 x i8] c" LONG_MAX = %ld\0A\00"
@LONG_MAX = global i32 0
@.str.17 = [21 x i8] c" ULONG_MAX = %lu\0A\00"
@ULONG_MAX = global i32 0
@.str.18 = [26 x i8] c" LLONG_MIN = undefined\00"
@.str.19 = [27 x i8] c" ULLONG_MIN = undefined\00"
define void @show_limits_h() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%3 = load i64, i64* @CHAR_BIT
%4 = trunc i64 %3 to i32
%5 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = load i64, i64* @SCHAR_MIN
%7 = trunc i64 %6 to i32
%8 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i64, i64* @SCHAR_MAX
%10 = trunc i64 %9 to i32
%11 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i64, i64* @UCHAR_MAX
%13 = trunc i64 %12 to i32
%14 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %13)
%15 = load i64, i64* @CHAR_MIN
%16 = trunc i64 %15 to i32
%17 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %16)
%18 = load i64, i64* @CHAR_MAX
%19 = trunc i64 %18 to i32
%20 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %19)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%22 = load i64, i64* @SHRT_MIN
%23 = trunc i64 %22 to i32
%24 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i32 %23)
%25 = load i64, i64* @SHRT_MAX
%26 = trunc i64 %25 to i32
%27 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 %26)
%28 = load i64, i64* @USHRT_MAX
%29 = trunc i64 %28 to i32
%30 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @INT_MIN
%32 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i32 %31)
%33 = load i32, i32* @INT_MAX
%34 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %33)
%35 = load i32, i32* @UINT_MAX
%36 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 %35)
%37 = load i32, i32* @LONG_MIN
%38 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i32 %37)
%39 = load i32, i32* @LONG_MAX
%40 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), i32 %39)
%41 = load i32, i32* @ULONG_MAX
%42 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i32 %41)
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0))
%46 = tail call i32 @putchar(i8 signext 10)
ret void
}