#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;
int /*<<< orphan*/ LLONG_MAX;
int /*<<< orphan*/ LLONG_MIN;
int /*<<< orphan*/ LONG_MAX;
int /*<<< orphan*/ LONG_MIN;
int SCHAR_MAX;
int SCHAR_MIN;
int SHRT_MAX;
int SHRT_MIN;
int UCHAR_MAX;
int UINT_MAX;
int /*<<< orphan*/ ULLONG_MAX;
int /*<<< orphan*/ ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf("int_limits = {\n");
  do {
    printf("  \""
           "char"
           "\": ("
           "%d"
           ", "
           "%d"
           "),\n",
           CHAR_MIN, CHAR_MAX);
  } while (0);
  do {
    printf("  \""
           "signed char"
           "\": ("
           "%d"
           ", "
           "%d"
           "),\n",
           SCHAR_MIN, SCHAR_MAX);
  } while (0);
  do {
    printf("  \""
           "signed short"
           "\": ("
           "%d"
           ", "
           "%d"
           "),\n",
           SHRT_MIN, SHRT_MAX);
  } while (0);
  do {
    printf("  \""
           "signed int"
           "\": ("
           "%d"
           ", "
           "%d"
           "),\n",
           INT_MIN, INT_MAX);
  } while (0);
  do {
    printf("  \""
           "signed long"
           "\": ("
           "%ld"
           ", "
           "%ld"
           "),\n",
           LONG_MIN, LONG_MAX);
  } while (0);
  do {
    printf("  \""
           "signed long long"
           "\": ("
           "%lld"
           ", "
           "%lld"
           "),\n",
           LLONG_MIN, LLONG_MAX);
  } while (0);
  do {
    printf("  \""
           "unsigned char"
           "\": (0, "
           "%u"
           "),\n",
           UCHAR_MAX);
  } while (0);
  do {
    printf("  \""
           "unsigned short"
           "\": (0, "
           "%u"
           "),\n",
           USHRT_MAX);
  } while (0);
  do {
    printf("  \""
           "unsigned int"
           "\": (0, "
           "%u"
           "),\n",
           UINT_MAX);
  } while (0);
  do {
    printf("  \""
           "unsigned long"
           "\": (0, "
           "%lu"
           "),\n",
           ULONG_MAX);
  } while (0);
  do {
    printf("  \""
           "unsigned long long"
           "\": (0, "
           "%llu"
           "),\n",
           ULLONG_MAX);
  } while (0);
  printf("}\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%esi
mov    0x2ea3(%rip),%rax
mov    (%rax),%edx
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1152 <main+0x42>
mov    0x2e37(%rip),%rax
mov    (%rax),%esi
mov    0x2e26(%rip),%rax
mov    (%rax),%edx
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1177 <main+0x67>
mov    0x2df2(%rip),%rax
mov    (%rax),%esi
mov    0x2de1(%rip),%rax
mov    (%rax),%edx
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119c <main+0x8c>
mov    0x2e05(%rip),%rax
mov    (%rax),%esi
mov    0x2e14(%rip),%rax
mov    (%rax),%edx
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11c1 <main+0xb1>
mov    0x2de8(%rip),%rax
mov    (%rax),%esi
mov    0x2da7(%rip),%rax
mov    (%rax),%edx
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e6 <main+0xd6>
mov    0x2d93(%rip),%rax
mov    (%rax),%esi
mov    0x2daa(%rip),%rax
mov    (%rax),%edx
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    120b <main+0xfb>
mov    0x2dde(%rip),%rax
mov    (%rax),%esi
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1227 <main+0x117>
mov    0x2d9a(%rip),%rax
mov    (%rax),%esi
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1243 <main+0x133>
mov    0x2d6e(%rip),%rax
mov    (%rax),%esi
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    125f <main+0x14f>
mov    0x2cf2(%rip),%rax
mov    (%rax),%esi
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    127b <main+0x16b>
mov    0x2d4e(%rip),%rax
mov    (%rax),%esi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0x101d(%rip),%rdi
call   1030 <puts@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%esi
mov    0x2ea3(%rip),%rax
mov    (%rax),%edx
lea    0xeba(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e3c(%rip),%rax
mov    (%rax),%esi
mov    0x2e2b(%rip),%rax
mov    (%rax),%edx
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%esi
mov    0x2deb(%rip),%rax
mov    (%rax),%edx
lea    0xeab(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e14(%rip),%rax
mov    (%rax),%esi
mov    0x2e23(%rip),%rax
mov    (%rax),%edx
lea    0xea8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%esi
mov    0x2dbb(%rip),%rax
mov    (%rax),%edx
lea    0xea3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dac(%rip),%rax
mov    (%rax),%esi
mov    0x2dc3(%rip),%rax
mov    (%rax),%edx
lea    0xea1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%esi
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dbd(%rip),%rax
mov    (%rax),%esi
lea    0xeb5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d96(%rip),%rax
mov    (%rax),%esi
lea    0xebc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d1f(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d80(%rip),%rax
mov    (%rax),%esi
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"int_limits = {\0A\00"
@.str.1 = [21 x i8] c" \22char\22: (%d, %d),\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.2 = [28 x i8] c" \22signed char\22: (%d, %d),\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.3 = [29 x i8] c" \22signed short\22: (%d, %d),\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.4 = [27 x i8] c" \22signed int\22: (%d, %d),\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.5 = [30 x i8] c" \22signed long\22: (%ld, %ld),\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.6 = [37 x i8] c" \22signed long long\22: (%lld, %lld),\0A\00"
@LLONG_MIN = global i32 0
@LLONG_MAX = global i32 0
@.str.7 = [29 x i8] c" \22unsigned char\22: (0, %u),\0A\00"
@UCHAR_MAX = global i32 0
@.str.8 = [30 x i8] c" \22unsigned short\22: (0, %u),\0A\00"
@USHRT_MAX = global i32 0
@.str.9 = [28 x i8] c" \22unsigned int\22: (0, %u),\0A\00"
@UINT_MAX = global i32 0
@.str.10 = [30 x i8] c" \22unsigned long\22: (0, %lu),\0A\00"
@ULONG_MAX = global i32 0
@.str.11 = [36 x i8] c" \22unsigned long long\22: (0, %llu),\0A\00"
@ULLONG_MAX = global i32 0
@.str.12 = [3 x i8] c"}\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
br label %3
3: ; preds = %0
%4 = load i32, i32* @CHAR_MIN
%5 = load i32, i32* @CHAR_MAX
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %4, i32 %5)
br label %7
7: ; preds = %3
br label %8
8: ; preds = %7
%9 = load i32, i32* @SCHAR_MIN
%10 = load i32, i32* @SCHAR_MAX
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %10)
br label %12
12: ; preds = %8
br label %13
13: ; preds = %12
%14 = load i32, i32* @SHRT_MIN
%15 = load i32, i32* @SHRT_MAX
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %14, i32 %15)
br label %17
17: ; preds = %13
br label %18
18: ; preds = %17
%19 = load i32, i32* @INT_MIN
%20 = load i32, i32* @INT_MAX
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %19, i32 %20)
br label %22
22: ; preds = %18
br label %23
23: ; preds = %22
%24 = load i32, i32* @LONG_MIN
%25 = load i32, i32* @LONG_MAX
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %24, i32 %25)
br label %27
27: ; preds = %23
br label %28
28: ; preds = %27
%29 = load i32, i32* @LLONG_MIN
%30 = load i32, i32* @LLONG_MAX
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %29, i32 %30)
br label %32
32: ; preds = %28
br label %33
33: ; preds = %32
%34 = load i32, i32* @UCHAR_MAX
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 %34)
br label %36
36: ; preds = %33
br label %37
37: ; preds = %36
%38 = load i32, i32* @USHRT_MAX
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %37
br label %41
41: ; preds = %40
%42 = load i32, i32* @UINT_MAX
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %42)
br label %44
44: ; preds = %41
br label %45
45: ; preds = %44
%46 = load i32, i32* @ULONG_MAX
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %46)
br label %48
48: ; preds = %45
br label %49
49: ; preds = %48
%50 = load i32, i32* @ULLONG_MAX
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i32 %50)
br label %52
52: ; preds = %49
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
ret i32 0
}

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