#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 LONG_MAX;
int 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);
main() {
  printf("signed char min   = %d\n", SCHAR_MIN);
  printf("signed char max   = %d\n", SCHAR_MAX);
  printf("signed short min  = %d\n", SHRT_MIN);
  printf("signed short max  = %d\n", SHRT_MAX);
  printf("signed int min    = %d\n", INT_MIN);
  printf("signed int max    = %d\n", INT_MAX);
  printf("signed long min   = %ld\n", LONG_MIN);
  printf("signed long max   = %ld\n", LONG_MAX);
  printf("unsigned char max = %u\n", UCHAR_MAX);
  printf("unsigned short max= %u\n", USHRT_MAX);
  printf("unsigned int max  = %u\n", UINT_MAX);
  printf("unsigned long max = %lu\n", ULONG_MAX);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e95(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e78(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e53(%rip),%rax
mov    (%rax),%esi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%esi
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e51(%rip),%rax
mov    (%rax),%esi
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%esi
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%esi
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
mov    0x2df2(%rip),%rax
mov    (%rax),%esi
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%esi
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%esi
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d7e(%rip),%rax
mov    (%rax),%esi
lea    0xeff(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e98(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e7b(%rip),%rax
mov    (%rax),%esi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%esi
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%esi
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%esi
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%esi
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%esi
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e30(%rip),%rax
mov    (%rax),%esi
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%esi
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2de6(%rip),%rax
mov    (%rax),%esi
lea    0xeff(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d81(%rip),%rax
mov    (%rax),%esi
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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