#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 INT_MAX;
int INT_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 ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, int, ...);
int main(void) {
  printf("Signed CHAR: (%d,%d)\n", SCHAR_MIN, SCHAR_MAX);
  printf("Unsigned CHAR: (0,%u)\n\n", UCHAR_MAX);
  printf("Signed SHORT: (%d,%d)\n", SHRT_MIN, SHRT_MAX);
  printf("Unsigned SHORT: (0,%u)\n\n", USHRT_MAX);
  printf("Signed INT: (%d,%d)\n", INT_MIN, INT_MAX);
  printf("Unsigned INT: (0,%u)\n\n", UINT_MAX);
  printf("Signed LONG: (%ld,%ld)\n", LONG_MIN, LONG_MAX);
  printf("Unsigned LONG: (0,%lu)\n\n", ULONG_MAX);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e8a(%rip),%rax
mov    (%rax),%esi
mov    0x2e79(%rip),%rax
mov    (%rax),%edx
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2eaa(%rip),%rax
mov    (%rax),%esi
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%esi
mov    0x2e2a(%rip),%rax
mov    (%rax),%edx
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e63(%rip),%rax
mov    (%rax),%esi
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%esi
mov    0x2e3b(%rip),%rax
mov    (%rax),%edx
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e1c(%rip),%rax
mov    (%rax),%esi
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dfd(%rip),%rax
mov    (%rax),%esi
mov    0x2dcc(%rip),%rax
mov    (%rax),%edx
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d95(%rip),%rax
mov    (%rax),%esi
lea    0xeae(%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
mov    0x2e98(%rip),%rax
mov    (%rax),%esi
mov    0x2e87(%rip),%rax
mov    (%rax),%edx
lea    0xed6(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2eb8(%rip),%rax
mov    (%rax),%esi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e49(%rip),%rax
mov    (%rax),%esi
mov    0x2e38(%rip),%rax
mov    (%rax),%edx
lea    0xecd(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xecd(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%esi
mov    0x2e49(%rip),%rax
mov    (%rax),%edx
lea    0xec6(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%esi
lea    0xec4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%esi
mov    0x2dda(%rip),%rax
mov    (%rax),%edx
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2da3(%rip),%rax
mov    (%rax),%esi
lea    0xebc(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Signed CHAR: (%d,%d)\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.1 = [24 x i8] c"Unsigned CHAR: (0,%u)\0A\0A\00"
@UCHAR_MAX = global i32 0
@.str.2 = [23 x i8] c"Signed SHORT: (%d,%d)\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.3 = [25 x i8] c"Unsigned SHORT: (0,%u)\0A\0A\00"
@USHRT_MAX = global i32 0
@.str.4 = [21 x i8] c"Signed INT: (%d,%d)\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.5 = [23 x i8] c"Unsigned INT: (0,%u)\0A\0A\00"
@UINT_MAX = global i32 0
@.str.6 = [24 x i8] c"Signed LONG: (%ld,%ld)\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.7 = [25 x i8] c"Unsigned LONG: (0,%lu)\0A\0A\00"
@ULONG_MAX = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @SCHAR_MIN
%3 = load i32, i32* @SCHAR_MAX
%4 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3)
%5 = load i32, i32* @UCHAR_MAX
%6 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @SHRT_MIN
%8 = load i32, i32* @SHRT_MAX
%9 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %7, i32 %8)
%10 = load i32, i32* @USHRT_MAX
%11 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @INT_MIN
%13 = load i32, i32* @INT_MAX
%14 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %12, i32 %13)
%15 = load i32, i32* @UINT_MAX
%16 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @LONG_MIN
%18 = load i32, i32* @LONG_MAX
%19 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %17, i32 %18)
%20 = load i32, i32* @ULONG_MAX
%21 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"Signed CHAR: (%d,%d)\0A\00"
@SCHAR_MIN = global i32 0
@SCHAR_MAX = global i32 0
@.str.1 = [24 x i8] c"Unsigned CHAR: (0,%u)\0A\0A\00"
@UCHAR_MAX = global i32 0
@.str.2 = [23 x i8] c"Signed SHORT: (%d,%d)\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.3 = [25 x i8] c"Unsigned SHORT: (0,%u)\0A\0A\00"
@USHRT_MAX = global i32 0
@.str.4 = [21 x i8] c"Signed INT: (%d,%d)\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.5 = [23 x i8] c"Unsigned INT: (0,%u)\0A\0A\00"
@UINT_MAX = global i32 0
@.str.6 = [24 x i8] c"Signed LONG: (%ld,%ld)\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.7 = [25 x i8] c"Unsigned LONG: (0,%lu)\0A\0A\00"
@ULONG_MAX = global i32 0
define i32 @main() {
%1 = load i32, i32* @SCHAR_MIN
%2 = load i32, i32* @SCHAR_MAX
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2)
%4 = load i32, i32* @UCHAR_MAX
%5 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @SHRT_MIN
%7 = load i32, i32* @SHRT_MAX
%8 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %7)
%9 = load i32, i32* @USHRT_MAX
%10 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @INT_MIN
%12 = load i32, i32* @INT_MAX
%13 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %11, i32 %12)
%14 = load i32, i32* @UINT_MAX
%15 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @LONG_MIN
%17 = load i32, i32* @LONG_MAX
%18 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %16, i32 %17)
%19 = load i32, i32* @ULONG_MAX
%20 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %19)
ret i32 0
}